pre production version : wordpress
authorhurons@caf4f556-3d62-0410-8435-a86758001935
Mon, 01 Feb 2010 09:51:57 +0000
branchwordpress
changeset 123 561aa6d282f6
parent 112 fb7cd02b9848
child 124 5cb854c0ff5a
pre production version : ****************************** Template evolution : - css ( so much things) - js ( new navigation tools ...) - lib for php ZIp - function.php (for download LDT and other litle function) - page (header, home, footer, single, search, searchform, post ...) ****************************** New plug in : - wp touch - wp explorer - TextCutter - ultimate-google-analytics - nice titles ****************************** Plug in customization : - related-posts-by-category - posts-of-current-category - order-categories - event-calendar - translation wp explorer - exec-php ****************************** Road map for next version : - cleaning php code put template function to new plugin - cleaning Css code - re organize Js code - all new correction ask
web/.htaccess
web/wp-content/plugins/Text_Cutter.php
web/wp-content/plugins/event-calendar/ec3.css
web/wp-content/plugins/event-calendar/eventcalendar3.php
web/wp-content/plugins/event-calendar/template-functions.php
web/wp-content/plugins/exec-php/css/admin.css
web/wp-content/plugins/exec-php/docs/readme-de_DE.html
web/wp-content/plugins/exec-php/docs/readme-generic.html
web/wp-content/plugins/exec-php/docs/readme.html
web/wp-content/plugins/exec-php/docs/screenshot-1-de_DE.png
web/wp-content/plugins/exec-php/docs/screenshot-1.png
web/wp-content/plugins/exec-php/docs/screenshot-2-de_DE.png
web/wp-content/plugins/exec-php/docs/screenshot-2.png
web/wp-content/plugins/exec-php/docs/screenshot-3-de_DE.png
web/wp-content/plugins/exec-php/docs/screenshot-3.png
web/wp-content/plugins/exec-php/exec-php.php
web/wp-content/plugins/exec-php/images/progress.gif
web/wp-content/plugins/exec-php/includes/admin.php
web/wp-content/plugins/exec-php/includes/ajax.php
web/wp-content/plugins/exec-php/includes/cache.php
web/wp-content/plugins/exec-php/includes/config_ui.php
web/wp-content/plugins/exec-php/includes/const.php
web/wp-content/plugins/exec-php/includes/l10n.php
web/wp-content/plugins/exec-php/includes/manager.php
web/wp-content/plugins/exec-php/includes/option.php
web/wp-content/plugins/exec-php/includes/runtime.php
web/wp-content/plugins/exec-php/includes/script.php
web/wp-content/plugins/exec-php/includes/style.php
web/wp-content/plugins/exec-php/includes/user_ui.php
web/wp-content/plugins/exec-php/includes/usermeta.php
web/wp-content/plugins/exec-php/includes/write_ui.php
web/wp-content/plugins/exec-php/js/admin.js
web/wp-content/plugins/exec-php/js/common.js
web/wp-content/plugins/exec-php/languages/exec-php-de_DE.mo
web/wp-content/plugins/exec-php/languages/exec-php-de_DE.po
web/wp-content/plugins/exec-php/languages/exec-php.pot
web/wp-content/plugins/exec-php/readme.txt
web/wp-content/plugins/exec-php/screenshot-1.png
web/wp-content/plugins/exec-php/screenshot-2.png
web/wp-content/plugins/exec-php/screenshot-3.png
web/wp-content/plugins/nice-titles/nicetitle.css
web/wp-content/plugins/nice-titles/nicetitle.js
web/wp-content/plugins/nice-titles/nt.php
web/wp-content/plugins/nice-titles/ntbg.png
web/wp-content/plugins/nice-titles/readme.txt
web/wp-content/plugins/nice-titles/screenshot-1.png
web/wp-content/plugins/order-categories/category-order.php
web/wp-content/plugins/posts-of-current-category/posts-of-current-category.php
web/wp-content/plugins/related-posts-by-category/related_posts.php
web/wp-content/plugins/ultimate-google-analytics/readme.txt
web/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php
web/wp-content/plugins/wp-cumulus/license.txt
web/wp-content/plugins/wp-cumulus/readme.txt
web/wp-content/plugins/wp-cumulus/screenshot-1.png
web/wp-content/plugins/wp-cumulus/screenshot-2.png
web/wp-content/plugins/wp-cumulus/screenshot-3.png
web/wp-content/plugins/wp-cumulus/swfobject.js
web/wp-content/plugins/wp-cumulus/tagcloud.swf
web/wp-content/plugins/wp-cumulus/wp-cumulus.php
web/wp-content/plugins/wp-explorer/icons/Thumbs.db
web/wp-content/plugins/wp-explorer/icons/_unknown.png
web/wp-content/plugins/wp-explorer/icons/attach.gif
web/wp-content/plugins/wp-explorer/icons/bmp.gif
web/wp-content/plugins/wp-explorer/icons/disk.png
web/wp-content/plugins/wp-explorer/icons/doc.gif
web/wp-content/plugins/wp-explorer/icons/edit.gif
web/wp-content/plugins/wp-explorer/icons/exe.gif
web/wp-content/plugins/wp-explorer/icons/folder.gif
web/wp-content/plugins/wp-explorer/icons/gif.gif
web/wp-content/plugins/wp-explorer/icons/help.png
web/wp-content/plugins/wp-explorer/icons/index.html
web/wp-content/plugins/wp-explorer/icons/jpe.gif
web/wp-content/plugins/wp-explorer/icons/jpeg.gif
web/wp-content/plugins/wp-explorer/icons/jpg.gif
web/wp-content/plugins/wp-explorer/icons/mov.gif
web/wp-content/plugins/wp-explorer/icons/mp3.gif
web/wp-content/plugins/wp-explorer/icons/mp3.gif_
web/wp-content/plugins/wp-explorer/icons/msi.gif
web/wp-content/plugins/wp-explorer/icons/page.gif
web/wp-content/plugins/wp-explorer/icons/pdf.gif
web/wp-content/plugins/wp-explorer/icons/php.gif
web/wp-content/plugins/wp-explorer/icons/png.gif
web/wp-content/plugins/wp-explorer/icons/psd.gif
web/wp-content/plugins/wp-explorer/icons/rar.gif
web/wp-content/plugins/wp-explorer/icons/rtf.gif
web/wp-content/plugins/wp-explorer/icons/swf.gif
web/wp-content/plugins/wp-explorer/icons/tif.gif
web/wp-content/plugins/wp-explorer/icons/tiff.gif
web/wp-content/plugins/wp-explorer/icons/txt.gif
web/wp-content/plugins/wp-explorer/icons/unknown.png
web/wp-content/plugins/wp-explorer/icons/wav.gif
web/wp-content/plugins/wp-explorer/icons/wmv.gif
web/wp-content/plugins/wp-explorer/icons/xls.gif
web/wp-content/plugins/wp-explorer/icons/xml.gif
web/wp-content/plugins/wp-explorer/icons/zip.gif
web/wp-content/plugins/wp-explorer/inc/functions_misc.php
web/wp-content/plugins/wp-explorer/readme.txt
web/wp-content/plugins/wp-explorer/wp-explorer-el.mo
web/wp-content/plugins/wp-explorer/wp-explorer-el.po
web/wp-content/plugins/wp-explorer/wp-explorer-fr_FR.mo
web/wp-content/plugins/wp-explorer/wp-explorer-fr_FR.po
web/wp-content/plugins/wp-explorer/wp-explorer-options.php
web/wp-content/plugins/wp-explorer/wp-explorer.php
web/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css
web/wp-content/plugins/wptouch/admin-css/bnc-global.css
web/wp-content/plugins/wptouch/admin-css/wptouch-admin.css
web/wp-content/plugins/wptouch/ajax/file_upload.php
web/wp-content/plugins/wptouch/ajax/load-plugins.php
web/wp-content/plugins/wptouch/html/ads-stats-area.php
web/wp-content/plugins/wptouch/html/advanced-area.php
web/wp-content/plugins/wptouch/html/general-settings-area.php
web/wp-content/plugins/wptouch/html/head-area.php
web/wp-content/plugins/wptouch/html/icon-area.php
web/wp-content/plugins/wptouch/html/page-area.php
web/wp-content/plugins/wptouch/html/plugin-compat-area.php
web/wp-content/plugins/wptouch/html/push-area.php
web/wp-content/plugins/wptouch/html/style-area.php
web/wp-content/plugins/wptouch/images/admin-ajax-loader.gif
web/wp-content/plugins/wptouch/images/bad.png
web/wp-content/plugins/wptouch/images/colorpicker/blank.gif
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_background.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hex.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_b.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_h.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_s.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_indic.gif
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_overlay.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_b.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_g.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_r.png
web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_submit.png
web/wp-content/plugins/wptouch/images/colorpicker/select.png
web/wp-content/plugins/wptouch/images/colorpicker/slider.png
web/wp-content/plugins/wptouch/images/default.jpg
web/wp-content/plugins/wptouch/images/fancybox/fancy_closebox.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_progress.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_e.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_n.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_ne.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_nw.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_s.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_se.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_sw.png
web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_w.png
web/wp-content/plugins/wptouch/images/good.png
web/wp-content/plugins/wptouch/images/h3_icons/adsense.png
web/wp-content/plugins/wptouch/images/h3_icons/advanced.png
web/wp-content/plugins/wptouch/images/h3_icons/general.png
web/wp-content/plugins/wptouch/images/h3_icons/iconpool.png
web/wp-content/plugins/wptouch/images/h3_icons/page.png
web/wp-content/plugins/wptouch/images/h3_icons/plugin.png
web/wp-content/plugins/wptouch/images/h3_icons/push.png
web/wp-content/plugins/wptouch/images/h3_icons/rss.png
web/wp-content/plugins/wptouch/images/h3_icons/style.png
web/wp-content/plugins/wptouch/images/icon-pool/Admin.png
web/wp-content/plugins/wptouch/images/icon-pool/Apps.png
web/wp-content/plugins/wptouch/images/icon-pool/Archives.png
web/wp-content/plugins/wptouch/images/icon-pool/Books.png
web/wp-content/plugins/wptouch/images/icon-pool/Calendar.png
web/wp-content/plugins/wptouch/images/icon-pool/Camera.png
web/wp-content/plugins/wptouch/images/icon-pool/Clock.png
web/wp-content/plugins/wptouch/images/icon-pool/Colors.png
web/wp-content/plugins/wptouch/images/icon-pool/Contacts.png
web/wp-content/plugins/wptouch/images/icon-pool/Default.png
web/wp-content/plugins/wptouch/images/icon-pool/Delicious.png
web/wp-content/plugins/wptouch/images/icon-pool/Digg.png
web/wp-content/plugins/wptouch/images/icon-pool/Facebook.png
web/wp-content/plugins/wptouch/images/icon-pool/Finder.png
web/wp-content/plugins/wptouch/images/icon-pool/Flickr.png
web/wp-content/plugins/wptouch/images/icon-pool/Google.png
web/wp-content/plugins/wptouch/images/icon-pool/Home.png
web/wp-content/plugins/wptouch/images/icon-pool/Mail.png
web/wp-content/plugins/wptouch/images/icon-pool/Maps.png
web/wp-content/plugins/wptouch/images/icon-pool/Music.png
web/wp-content/plugins/wptouch/images/icon-pool/MySpace.png
web/wp-content/plugins/wptouch/images/icon-pool/Notes.png
web/wp-content/plugins/wptouch/images/icon-pool/Photos.png
web/wp-content/plugins/wptouch/images/icon-pool/Podcast.png
web/wp-content/plugins/wptouch/images/icon-pool/RSS.png
web/wp-content/plugins/wptouch/images/icon-pool/Safari.png
web/wp-content/plugins/wptouch/images/icon-pool/Squares.png
web/wp-content/plugins/wptouch/images/icon-pool/Stocks.png
web/wp-content/plugins/wptouch/images/icon-pool/ToDo.png
web/wp-content/plugins/wptouch/images/icon-pool/Twitter.png
web/wp-content/plugins/wptouch/images/icon-pool/Videos.png
web/wp-content/plugins/wptouch/images/icon-pool/Wikipedia.png
web/wp-content/plugins/wptouch/images/icon-pool/WordPress.png
web/wp-content/plugins/wptouch/images/icon-pool/YouTube.png
web/wp-content/plugins/wptouch/images/icon-pool/iPod.png
web/wp-content/plugins/wptouch/images/icon-pool/iTunes.png
web/wp-content/plugins/wptouch/images/progress.gif
web/wp-content/plugins/wptouch/images/reset.png
web/wp-content/plugins/wptouch/images/saved.png
web/wp-content/plugins/wptouch/images/sortof.png
web/wp-content/plugins/wptouch/images/upload.png
web/wp-content/plugins/wptouch/images/wptouch-icon.jpg
web/wp-content/plugins/wptouch/include/adsense-new.php
web/wp-content/plugins/wptouch/include/adsense.php
web/wp-content/plugins/wptouch/include/class.prowl.php
web/wp-content/plugins/wptouch/include/compat.php
web/wp-content/plugins/wptouch/include/icons.php
web/wp-content/plugins/wptouch/include/plugin.php
web/wp-content/plugins/wptouch/include/submit.php
web/wp-content/plugins/wptouch/js/admin_1.9.js
web/wp-content/plugins/wptouch/js/ajax_upload_3.6.js
web/wp-content/plugins/wptouch/js/colorpicker_1.4.js
web/wp-content/plugins/wptouch/js/fancybox_1.2.5.js
web/wp-content/plugins/wptouch/readme.txt
web/wp-content/plugins/wptouch/screenshot-1.jpg
web/wp-content/plugins/wptouch/screenshot-10.jpg
web/wp-content/plugins/wptouch/screenshot-2.jpg
web/wp-content/plugins/wptouch/screenshot-3.jpg
web/wp-content/plugins/wptouch/screenshot-4.jpg
web/wp-content/plugins/wptouch/screenshot-5.jpg
web/wp-content/plugins/wptouch/screenshot-6.jpg
web/wp-content/plugins/wptouch/screenshot-7.jpg
web/wp-content/plugins/wptouch/screenshot-8.jpg
web/wp-content/plugins/wptouch/screenshot-9.jpg
web/wp-content/plugins/wptouch/themes/core/core-css/gigpress.css
web/wp-content/plugins/wptouch/themes/core/core-css/wptouch-switch-link.css
web/wp-content/plugins/wptouch/themes/core/core-functions.php
web/wp-content/plugins/wptouch/themes/core/core-header.php
web/wp-content/plugins/wptouch/themes/core/core-images/ajax-loader.gif
web/wp-content/plugins/wptouch/themes/core/core-images/argyle-tie.gif
web/wp-content/plugins/wptouch/themes/core/core-images/arrow.png
web/wp-content/plugins/wptouch/themes/core/core-images/blank_gravatar.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/delicious.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/digg.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/magnolia.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/newsvine.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/reddit.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/technorati.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/com_arrow.png
web/wp-content/plugins/wptouch/themes/core/core-images/comment-ajax-loader.gif
web/wp-content/plugins/wptouch/themes/core/core-images/gigpress.png
web/wp-content/plugins/wptouch/themes/core/core-images/grid.gif
web/wp-content/plugins/wptouch/themes/core/core-images/head-close.png
web/wp-content/plugins/wptouch/themes/core/core-images/head-fade-bk.png
web/wp-content/plugins/wptouch/themes/core/core-images/menu-sprite.png
web/wp-content/plugins/wptouch/themes/core/core-images/menu/wptouch-menu-acct.png
web/wp-content/plugins/wptouch/themes/core/core-images/menu/wptouch-menu-cats.png
web/wp-content/plugins/wptouch/themes/core/core-images/menu/wptouch-menu-login.png
web/wp-content/plugins/wptouch/themes/core/core-images/menu/wptouch-menu-tags.png
web/wp-content/plugins/wptouch/themes/core/core-images/off.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/on.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/onoff.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/pinstripes-classic.gif
web/wp-content/plugins/wptouch/themes/core/core-images/pinstripes-diagonal.gif
web/wp-content/plugins/wptouch/themes/core/core-images/pinstripes-horizontal.gif
web/wp-content/plugins/wptouch/themes/core/core-images/post-arrow.png
web/wp-content/plugins/wptouch/themes/core/core-images/post-options.png
web/wp-content/plugins/wptouch/themes/core/core-images/push-fail.png
web/wp-content/plugins/wptouch/themes/core/core-images/push-icon.png
web/wp-content/plugins/wptouch/themes/core/core-images/push-success.png
web/wp-content/plugins/wptouch/themes/core/core-images/quotes.png
web/wp-content/plugins/wptouch/themes/core/core-images/skated-concrete.gif
web/wp-content/plugins/wptouch/themes/core/core-images/sprite.png
web/wp-content/plugins/wptouch/themes/core/core-images/thumb-corners.png
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/1.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/10.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/11.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/12.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/13.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/14.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/15.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/16.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/17.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/18.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/19.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/2.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/20.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/21.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/22.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/23.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/24.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/3.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/4.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/5.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/6.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/7.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/8.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/9.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/thumb-empty.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/twitter-arrow.jpg
web/wp-content/plugins/wptouch/themes/core/core-images/twitter/tweetie.png
web/wp-content/plugins/wptouch/themes/core/core-images/twitter/twinkle.png
web/wp-content/plugins/wptouch/themes/core/core-images/twitter/twittelator.png
web/wp-content/plugins/wptouch/themes/core/core-images/twitter/twitteriffic.png
web/wp-content/plugins/wptouch/themes/core/core-images/wptouch-menu-dropper.png
web/wp-content/plugins/wptouch/themes/core/core-styles.php
web/wp-content/plugins/wptouch/themes/core/core.js
web/wp-content/plugins/wptouch/themes/default/comments-ajax.php
web/wp-content/plugins/wptouch/themes/default/comments.php
web/wp-content/plugins/wptouch/themes/default/footer.php
web/wp-content/plugins/wptouch/themes/default/functions.php
web/wp-content/plugins/wptouch/themes/default/header.php
web/wp-content/plugins/wptouch/themes/default/index.php
web/wp-content/plugins/wptouch/themes/default/page.php
web/wp-content/plugins/wptouch/themes/default/single.php
web/wp-content/plugins/wptouch/themes/default/style-compressed.css
web/wp-content/plugins/wptouch/themes/default/style.css
web/wp-content/plugins/wptouch/wptouch.php
web/wp-content/themes/IRI-Theme/404.php
web/wp-content/themes/IRI-Theme/archive.php
web/wp-content/themes/IRI-Theme/css/lib/grid.css
web/wp-content/themes/IRI-Theme/css/lib/ie.css
web/wp-content/themes/IRI-Theme/css/lib/typography.css
web/wp-content/themes/IRI-Theme/footer.php
web/wp-content/themes/IRI-Theme/functions.php
web/wp-content/themes/IRI-Theme/header.php
web/wp-content/themes/IRI-Theme/home.php
web/wp-content/themes/IRI-Theme/images/download_g.jpg
web/wp-content/themes/IRI-Theme/images/external.png
web/wp-content/themes/IRI-Theme/images/get.png
web/wp-content/themes/IRI-Theme/images/help.png
web/wp-content/themes/IRI-Theme/images/search_bg.gif
web/wp-content/themes/IRI-Theme/images/search_bg_hover.gif
web/wp-content/themes/IRI-Theme/images/search_box_bgd.gif
web/wp-content/themes/IRI-Theme/images/search_box_bgd_h.gif
web/wp-content/themes/IRI-Theme/images/search_bt.jpg
web/wp-content/themes/IRI-Theme/js/jquery-1.3.2.min.js
web/wp-content/themes/IRI-Theme/js/jquery-ui-1.7.2.custom.min.js
web/wp-content/themes/IRI-Theme/lib/zip.lib.php
web/wp-content/themes/IRI-Theme/player/player.swf
web/wp-content/themes/IRI-Theme/player/swfobject.js
web/wp-content/themes/IRI-Theme/post.php
web/wp-content/themes/IRI-Theme/search.php
web/wp-content/themes/IRI-Theme/searchform.php
web/wp-content/themes/IRI-Theme/single.php
web/wp-content/themes/IRI-Theme/style.css
--- a/web/.htaccess	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/.htaccess	Mon Feb 01 09:51:57 2010 +0000
@@ -1,7 +1,11 @@
-<IfModule mod_rewrite.c>
-RewriteEngine On
-RewriteBase /iritest/
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . /iritest/index.php [L]
-</IfModule>
+
+# BEGIN WordPress
+<IfModule mod_rewrite.c>
+RewriteEngine On
+RewriteBase /dev/~hurons/
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . /dev/~hurons/index.php [L]
+</IfModule>
+
+# END WordPress
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/Text_Cutter.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,52 @@
+<?php
+/**
+ * @package Title_Cutter
+ * @author Samuel Huron
+ * @version 0.1
+ */
+/*
+Plugin Name: Text Cutter
+Plugin URI: http://www.iri.centrepompidou.fr
+Description: This is just a simple thing to cut the title visible in navigation and in the page of post.
+Author: Samuel Huron 
+Version: 0.1
+Author URI: http://www.cybunk.com/
+*/
+
+function Expert_without_BR ($content){
+
+	$symbole= "<br/>";
+
+	return (str_replace($symbole, "", $content)." YO");
+}
+
+function Title_Cutter($content){
+	
+	$length = 200;
+	$symbole= "<!-- cut -->";
+
+	if(!is_single(get_the_ID())){
+		
+		$lastpos = strrpos($content,$symbole); 	
+		
+		if($lastpos!=FALSE){
+			return (substr($content, 0, $lastpos)."");
+			
+		} else {
+			if(strlen($content)>$length){
+				return (substr($content, 0, $length)."[...]");
+			} else {
+				return ($content);
+			}
+		}
+	}else{
+		return ("".str_replace($symbole, "", $content));
+	}
+	
+}
+
+// Cut 
+add_action ( 'the_title', 'Title_Cutter');
+//add_action ( 'the_excerpt', 'Expert_without_BR',1);
+
+?>
--- a/web/wp-content/plugins/event-calendar/ec3.css	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/plugins/event-calendar/ec3.css	Mon Feb 01 09:51:57 2010 +0000
@@ -26,14 +26,16 @@
 	background-color:#333333;
 }
 
+#wp-calendar {
+	height:140px;
+}
 #wp-calendar table td,
 #wp-calendar table th {
   text-align:center;
 }
 
 #wp-calendar table td,
-#wp-calendar table td.pad:hover,
-#wp-calendar table.nav tr td {
+#wp-calendar table td.pad:hover {
  padding:1px;
  border:none;
 }
@@ -46,6 +48,23 @@
  border:solid 1px #999;
 }
 
+/* Nav fix*/
+.nav {
+ width:100%;
+ border-top: solid 1px #E8E8E8;
+}
+.nav tr td {
+ padding:1px;
+ border:none;
+}
+.nav #prev {
+  text-align:left;
+}
+.nav #next {
+  text-align:right;
+}
+
+
 /* The EC graphic. */
 .ec3_ec {
  display:block;
--- a/web/wp-content/plugins/event-calendar/eventcalendar3.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/plugins/event-calendar/eventcalendar3.php	Mon Feb 01 09:51:57 2010 +0000
@@ -34,7 +34,7 @@
 require_once(dirname(__FILE__).'/tz.php');
 
 
-$ec3_today_id=str_replace('_0','_',ec3_strftime("ec3_%Y_%m_%d"));
+$ec3_today_id = str_replace('_0','_',ec3_strftime("ec3_%Y_%m_%d"));
 
 
 /** Read the schedule table for the posts, and add an ec3_schedule array
@@ -508,12 +508,22 @@
       $a=$wp_query->query_vars['ec3_after'];
   else if( !empty($wp_query->query_vars['ec3_from']) )
       $a=$wp_query->query_vars['ec3_from'];
-  $b=$wp_query->query_vars['ec3_before'];
+
+  // clean by sam 
+  if(!empty($wp_query->query_vars['ec3_before'])){
+	  $b=$wp_query->query_vars['ec3_before'];
+  }
+  
+  // clean by sam 
+  if( !empty($a)){
   if( $a=='today' )
-      $a=ec3_strftime('%Y-%m-%d');
+      {$a=ec3_strftime('%Y-%m-%d');}
+	  }
+  // clean by sam 
+  if( !empty($a)){	  
   if( $b=='today' )
-      $b=ec3_strftime('%Y-%m-%d');
-
+      {$b=ec3_strftime('%Y-%m-%d');}
+  }
   $re='/\d\d\d\d[-_]\d?\d[-_]\d?\d/';
   if( !empty($a) && preg_match($re,$a) ||
       !empty($b) && preg_match($re,$b) )
--- a/web/wp-content/plugins/event-calendar/template-functions.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/plugins/event-calendar/template-functions.php	Mon Feb 01 09:51:57 2010 +0000
@@ -69,6 +69,7 @@
 
 
 /** Echos the event calendar navigation controls. */
+/* modified by samuel huron 05/01/2010 */
 function ec3_get_calendar_nav($date,$num_months)
 {
   global $ec3;
@@ -78,9 +79,11 @@
   $prev=$date->prev_month();
   echo "\t<td id='prev'><a id='ec3_prev' href='" . $prev->month_link() . "'"
      . '>&laquo;&nbsp;' . $prev->month_abbrev() . "</a></td>\n";
-
-  echo "\t<td><img id='ec3_spinner' style='display:none' src='" 
-     . $ec3->myfiles . "/ec_load.gif' alt='spinner' />\n";
+  
+  // --------------------------------------------------------------------------
+  // start modified by sam 
+ 
+ /*
   // iCalendar link.
   $webcal=get_option('home') . "/?ec3_ical";
   // Macintosh always understands webcal:// protocol.
@@ -90,9 +93,11 @@
   echo "\t    <a id='ec3_publish' href='$webcal'"
      . " title='" . __('Subscribe to iCalendar.','ec3') ."'>\n"
      . "\t     <img src='$ec3->myfiles/publish.gif' alt='iCalendar' />\n"
-     . "\t    </a>\n";
+     . "\t    </a>\n";*/
   echo "\t</td>\n";
-
+  // -------------------------------------------------------------------------- stop 
+  
+  
   // Next
   $next=$date->plus_months($num_months);
   echo "\t<td id='next'><a id='ec3_next' href='" . $next->month_link() . "'"
@@ -206,7 +211,7 @@
   // Table start.
   $title=
     sprintf(__('View posts for %1$s %2$s'),$date->month_name(),$date->year_num);
-  echo "<table id='" . $date->month_id() . "'>\n<caption>"
+  echo "<table id='" . $date->month_id() . "' >\n<caption>"
     . '<a href="' . $date->month_link() . '" title="' . $title . '">'
     . $date->month_name() . ' ' . $date->year_num . "</a></caption>\n";
   echo $thead;
@@ -273,7 +278,7 @@
   elseif($pad)
       echo "<td colspan='$pad' class='pad'>&nbsp;</td>";
 
-  echo "</tr>\n</tbody>\n</table>";
+  echo "</tr>\n</tbody>\n</table> <!-- LA --> ";
 }
 
 
@@ -320,12 +325,16 @@
     $this_month=$next_month;
   }
 
+  // ------------------------------
+  //modified
+
+  echo "</div>\n";
+  
   // Display navigation panel.
   if(1==$ec3->navigation)
     ec3_get_calendar_nav(new ec3_Date(),$ec3->num_months);
 
-  echo "</div>\n";
-
+  
   if(!$ec3->disable_popups)
     echo "\t<script type='text/javascript' src='"
     .    $ec3->myfiles . "/popup.js'></script>\n";
@@ -338,12 +347,13 @@
 {
   foreach($data as $k=>$v)
       $format=str_replace("%$k%",$v,$format);
+	 echo ("<!-- ".$k."".$v." -->");
   return $format;
 }
 
 
 define('EC3_DEFAULT_TEMPLATE_EVENT','<a href="%LINK%">%TITLE% (%TIME%)</a>');
-define('EC3_DEFAULT_TEMPLATE_DAY',  '%DATE%:');
+define('EC3_DEFAULT_TEMPLATE_DAY',  '%DATE% :');
 define('EC3_DEFAULT_DATE_FORMAT',   'j F');
 define('EC3_DEFAULT_TEMPLATE_MONTH','');
 define('EC3_DEFAULT_MONTH_FORMAT',  'F Y');
@@ -353,7 +363,9 @@
  *   - template_day: %DATE% %SINCE% (only with Time Since plugin)
  *   - template_event: %DATE% %TIME% %LINK% %TITLE% %AUTHOR%
  */
-function ec3_get_events(
+
+// version racine
+ function ec3_get_events(
   $limit,
   $template_event=EC3_DEFAULT_TEMPLATE_EVENT,
   $template_day  =EC3_DEFAULT_TEMPLATE_DAY,
@@ -405,8 +417,128 @@
      ORDER BY start $limit_numposts"
   );
 
+  echo "<ul class='ec3_events'>";
   echo "<!-- Generated by Event Calendar v$ec3->version -->\n";
-  echo "<ul id='accordion'>";
+  if($calendar_entries)
+  {
+    $time_format=get_option('time_format');
+    $current_month=false;
+    $current_date=false;
+    $data=array();
+    foreach($calendar_entries as $entry)
+    {
+      // To use %SINCE%, you need Dunstan's 'Time Since' plugin.
+      if(function_exists('time_since'))
+          $data['SINCE']=time_since( time(), ec3_to_time($entry->start) );
+
+      // Month changed?
+      $data['MONTH']=mysql2date($month_format,$entry->start);
+      if((!$current_month || $current_month!=$data['MONTH']) && $template_month)
+      {
+        if($current_date)
+            echo "</ul></li>\n";
+        if($current_month)
+            echo "</ul></li>\n";
+        echo "<li class='ec3_list ec3_list_month'>"
+        .    ec3_format_str($template_month,$data)."\n<ul>\n";
+        $current_month=$data['MONTH'];
+        $current_date=false;
+      }
+
+      // Date changed?
+      $data['DATE'] =mysql2date($date_format, $entry->start);
+      if((!$current_date || $current_date!=$data['DATE']) && $template_day)
+      {
+        if($current_date)
+            echo "</ul></li>\n";
+        echo "<li class='ec3_list ec3_list_day'>"
+        .    ec3_format_str($template_day,$data)."\n<ul>\n";
+        $current_date=$data['DATE'];
+      }
+
+      if($entry->allday)
+          $data['TIME']=__('all day','ec3');
+      else
+          $data['TIME']=mysql2date($time_format,$entry->start);
+
+      $data['TITLE'] =
+        htmlentities(
+          stripslashes(strip_tags($entry->post_title)),
+          ENT_QUOTES,get_option('blog_charset')
+        );
+      $data['LINK']  =get_permalink($entry->id);
+      $data['AUTHOR']=
+        htmlentities($entry->author,ENT_QUOTES,get_option('blog_charset'));
+      echo " <li>".ec3_format_str($template_event,$data)."</li>\n";
+    }
+    if($current_date)
+        echo "</ul></li>\n";
+    if($current_month)
+        echo "</ul></li>\n";
+  }
+  else
+  {
+    echo "<li>".__('No events.','ec3')."</li>\n";
+  }
+  echo "</ul>\n";
+}
+
+ 
+// version accordeon by samuel huron 
+function ec3_get_events_acc(
+  $limit,
+  $template_event=EC3_DEFAULT_TEMPLATE_EVENT,
+  $template_day  =EC3_DEFAULT_TEMPLATE_DAY,
+  $date_format   =EC3_DEFAULT_DATE_FORMAT,
+  $template_month=EC3_DEFAULT_TEMPLATE_MONTH,
+  $month_format  =EC3_DEFAULT_MONTH_FORMAT)
+{
+  if(!ec3_check_installed(__('Upcoming Events','ec3')))
+    return;
+  global $ec3,$wpdb,$wp_version;
+
+  // Parse $limit:
+  //  NUMBER      - limits number of posts
+  //  NUMBER days - next NUMBER of days
+  if(empty($limit))
+  {
+    $limit_numposts='LIMIT 5';
+  }
+  elseif(preg_match('/^ *([0-9]+) *d(ays?)?/',$limit,$matches))
+  {
+    $secs=intval($matches[1])*24*3600;
+    $and_before="AND start<='".ec3_strftime('%Y-%m-%d',time()+$secs)."'";
+  }
+  elseif(intval($limit)<1)
+  {
+    $limit_numposts='LIMIT 5';
+  }
+  else
+  {
+    $limit_numposts='LIMIT '.intval($limit);
+  }
+  
+  if(!$date_format)
+      $date_format=get_option('date_format');
+
+  // Find the upcoming events.
+  $calendar_entries = $wpdb->get_results(
+    "SELECT DISTINCT
+       p.id AS id,
+       post_title,
+       start,
+       u.$ec3->wp_user_nicename AS author,
+       allday
+     FROM $ec3->schedule s
+     LEFT JOIN $wpdb->posts p ON s.post_id=p.id
+     LEFT JOIN $wpdb->users u ON p.post_author = u.id
+     WHERE p.post_status='publish'
+       AND end>='$ec3->today' $and_before
+     ORDER BY start $limit_numposts"
+  );
+
+  echo "<!-- Generated by Event Calendar v$ec3->version  Modified by samuel huron for acc integration -->\n";
+  echo "<ul id='accordion_nav'>";
   // echo "<li id='test'>test</li>";
 	  if($calendar_entries)
 	  {
@@ -472,9 +604,143 @@
 	  {
 		echo "<li>".__('No events.','ec3')."</li>\n";
 	  }
+  echo " \n </ul> \n <div class='ui-helper-clearfix'>&nbsp;</div>";
+}
+
+// version pour la home by samuel huron 
+function ec3_get_events_home(
+  $limit,
+  $template_event=EC3_DEFAULT_TEMPLATE_EVENT,
+  $template_day  =EC3_DEFAULT_TEMPLATE_DAY,
+  $date_format   =EC3_DEFAULT_DATE_FORMAT,
+  $template_month=EC3_DEFAULT_TEMPLATE_MONTH,
+  $month_format  =EC3_DEFAULT_MONTH_FORMAT)
+{
+  if(!ec3_check_installed(__('Upcoming Events','ec3')))
+    return;
+  global $ec3,$wpdb,$wp_version;
+
+  // Parse $limit:
+  //  NUMBER      - limits number of posts
+  //  NUMBER days - next NUMBER of days
+  if(empty($limit))
+  {
+    $limit_numposts='LIMIT 5';
+  }
+  elseif(preg_match('/^ *([0-9]+) *d(ays?)?/',$limit,$matches))
+  {
+    $secs=intval($matches[1])*24*3600;
+    $and_before="AND start<='".ec3_strftime('%Y-%m-%d',time()+$secs)."'";
+  }
+  elseif(intval($limit)<1)
+  {
+    $limit_numposts='LIMIT 5';
+  }
+  else
+  {
+    $limit_numposts='LIMIT '.intval($limit);
+  }
+  
+  if(!$date_format)
+      $date_format = get_option('date_format');
+	  
+	 // echo("<!-- ".get_option('date_format')." -->");
+	  
+  // Find the upcoming events.
+  $calendar_entries = $wpdb->get_results(
+    "SELECT DISTINCT
+       p.id AS id,
+       post_title,
+	   post_content,
+       start,
+       u.$ec3->wp_user_nicename AS author,
+       allday
+     FROM $ec3->schedule s
+     LEFT JOIN $wpdb->posts p ON s.post_id=p.id
+     LEFT JOIN $wpdb->users u ON p.post_author = u.id
+     WHERE p.post_status='publish'
+       AND end>='$ec3->today' $and_before
+     ORDER BY start $limit_numposts"
+  );
+
+  echo "<!-- Generated by Event Calendar v$ec3->version  Modified by samuel huron for home integration -->\n";
+  echo "<ul>";
+  // echo "<li id='test'>test</li>";
+	  if($calendar_entries)
+	  {
+		$time_format=get_option('time_format');
+		$current_month=false;
+		$current_date=false;
+		$data=array();
+		foreach($calendar_entries as $entry)
+		{
+		  // To use %SINCE%, you need Dunstan's 'Time Since' plugin.
+		  if(function_exists('time_since'))
+			  $data['SINCE']=time_since( time(), ec3_to_time($entry->start) );
+
+		  // Month changed?
+		  $data['MONTH']=mysql2date($month_format,$entry->start);
+		  if((!$current_month || $current_month!=$data['MONTH']) && $template_month)
+		  {
+			if($current_date)
+				echo "</ul></li>\n";
+			if($current_month)
+			$id_accordion=str_replace(" ", "_",ec3_format_str($template_month,$data));
+			$id_accordion=str_replace(":", "",$id_accordion);
+				echo " </ul></li>\n";
+			echo "<li id='ec3_list ec3_list_month'> ".ec3_format_str($template_month,$data)." \n<ul id=".$id_accordion.">\n";
+			echo "<!-- ".$data." -->";
+			$current_month=$data['MONTH'];
+			$current_date=false;
+		  }
+
+		  
+		  // Date changed?
+		  $data['DATE'] =mysql2date($date_format, $entry->start);
+		  if((!$current_date || $current_date!=$data['DATE']) && $template_day)
+		  {
+			if($current_date)
+				echo "</ul></li>\n";
+				$id_accordion=str_replace(" ", "_",ec3_format_str($template_day,$data));
+				$id_accordion=str_replace(":", "",$id_accordion);
+				echo "<li > ".ec3_format_str($template_day,$data).$data['YEAR']." \n <ul id=".$id_accordion.">\n";
+			$current_date=$data['DATE'];
+		  }
+
+		  if($entry->allday)
+			  $data['TIME']=__('all day','ec3');
+		  else
+			  $data['TIME']=mysql2date($time_format,$entry->start);
+
+		  $data['TITLE'] =
+			htmlentities(
+			  stripslashes(strip_tags($entry->post_title)),
+			  ENT_QUOTES,get_option('blog_charset')
+			);
+		 $data['RESUME'] =
+			htmlentities(
+			  stripslashes(strip_tags(substr($entry->post_content,0,400)."[...]")),
+			  ENT_QUOTES,get_option('blog_charset')
+			);
+		  $data['LINK']  =get_permalink($entry->id);
+		  $data['AUTHOR']=
+			htmlentities($entry->author,ENT_QUOTES,get_option('blog_charset'));
+		  //echo " <li>".ec3_format_str($template_event,$data)."</li>\n";
+		  echo " <a href='".$data['LINK']."' nicetitle='".$data['RESUME']."' >".$data['TITLE']."</a>\n";
+		}
+		if($current_date)
+			echo "</ul></li>\n";
+		if($current_month)
+			echo "</ul></li>\n";
+	  }
+	  else
+	  {
+		echo "<li>".__('No events.','ec3')."</li>\n";
+	  }
   echo " \n </ul> \n";
 }
 
+
 define('EC3_DEFAULT_FORMAT_SINGLE','<tr><td colspan="3">%s</td></tr>');
 define('EC3_DEFAULT_FORMAT_RANGE','<tr><td class="ec3_start">%1$s</td>'
  . '<td class="ec3_to">%3$s</td><td class="ec3_end">%2$s</td></tr>');
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/css/admin.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,25 @@
+.execphp-user-list {
+	font-style: italic;
+	margin: 1em;
+}
+
+.execphp-user-list li {
+	float: left;
+	line-height: 1em;
+	width: 18em;
+}
+
+.execphp-user-list p {
+	text-align: center;
+}
+
+.execphp-user-list p * {
+	vertical-align: middle;
+}
+
+div#wpbody > div.wrap > form.wp-2-5 > fieldset {
+	border: 0;
+	margin: 0;
+	padding: 0;
+	width: 100%;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/docs/readme-de_DE.html	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,646 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<meta name="robots" content="noindex">
+<title>Bluesome - Exec-PHP Plugin für WordPress</title>
+</head>
+<body>
+<h1>Bluesome</h1>
+<h2>Exec-PHP plugin für WordPress</h2>
+
+<!-- start of content -->
+<h3>Wozu ist dieses Plugin gut?</h3>
+<p>Das Exec-PHP Plugin führt <code>&lt;?php ?&gt;</code> Code in deinen Beiträgen, Seiten und Text-Widgets aus.</p>
+
+<h3>Mach schnell. Wo kann ich das Plugin runterladen?</h3>
+<p class="marker centered"><a style="font-size: 1.5em;" href="http://bluesome.net/data/2005/08/exec-php.zip">Download Exec-PHP 4.9 hier!</a></p>
+
+<h3>Warum ist hier soviel Text?</h3>
+<p>Ich hasse coole Plugins, die schlecht dokumentiert sind. Selbst das kleinste Stück Code benötigt ein wenig Dokumentation. Der folgende Text ist ziemlich ausführlich. Überspringe einfach die Kapitel, die dich nicht interessieren. Wenn du Fragen zum Plugin hast, vergewissere dich, dass du die neuste Version benutzt und die Frage noch nicht auf dieser Seite oder in den <a href="http://bluesome.net/post/2005/08/18/50/#comments-50">Kommentaren der Plugin Homepage</a> beantwortet sind. Dann - und nur dann - <a href="http://bluesome.net/post/2005/08/18/50/#response-50">stell deine Frage hier</a>.</p><!--more-->
+
+<h3 id="toc">Inhaltsverzeichnis</h3>
+<ol>
+	<li><a href="#introduction">Einleitung</a>
+		<ol>
+			<li><a href="#motivation">Motivation</a></li>
+			<li><a href="#features">Features</a></li>
+			<li><a href="#concepts">Die Arbeitsweise von Exec-PHP</a></li>
+			<li><a href="#difference">Unterschiede zu ähnlichen Plugins</a>
+				<ol>
+					<li><a href="#sniplets">Sniplets</a></li>
+					<li><a href="#runphp_somerville">RunPHP 0.2.2 (Mark Somerville)</a></li>
+					<li><a href="#runphp_vanlommel">RunPHP 2.1.1 (James Van Lommel)</a></li>
+					<li><a href="#php_exec">PHP Exec 1.7</a></li>
+					<li><a href="#ezstatic_3">EzStatic 3</a></li>
+					<li><a href="#other_plugins">Andere Plugins</a></li>
+				</ol>
+			</li>
+		</ol>
+	</li>
+	<li><a href="#installation">Installation</a>
+		<ol>
+			<li><a href="#requirements">Anforderungen</a></li>
+			<li><a href="#install">Installation des Plugin</a></li>
+			<li><a href="#upgrade">Upgrade einer alten Version</a></li>
+			<li><a href="#upgrade_from_2_0">Upgrade von Version 2.0 oder niedriger</a></li>
+			<li><a href="#upgrade_to_4_2">Upgrade auf Version 4.2 oder höher</a></li>
+			<li><a href="#deactivation">Deaktivierung des Plugin</a></li>
+			<li><a href="#uninstall">Deinstallation des Plugin</a></li>
+			<li><a href="#translation">Exec-PHP in deiner Sprache</a></li>
+			<li><a href="#translating">Exec-PHP übersetzen</a></li>
+		</ol>
+	</li>
+	<li><a href="#usage">Benutzung</a>
+		<ol>
+			<li><a href="#execute_php">Ausführen von PHP Code</a></li>
+			<li><a href="#configuration">Konfiguration</a></li>
+			<li><a href="#misconfiguration">Fehlkonfiguration</a></li>
+			<li><a href="#basic_test">Ein erster Test</a></li>
+			<li><a href="#tag_balancing">WordPress' XHTML Tag-Balancing</a></li>
+			<li><a href="#wysiwyg_editor">Schreiben von PHP Code im WYSIWYG Editor</a></li>
+			<li><a href="#allow_writing">Zulassen des Schreibens von PHP Code in Artikeln</a></li>
+			<li><a href="#allow_execution">Zulassen des Ausführens von PHP Code in Artikeln</a></li>
+			<li><a href="#allow_widget">Zulassen von PHP Code in Text-Widgets</a></li>
+			<li><a href="#wp_configuration">Überblick über Tätigkeiten und ihre benötigte WordPress Konfiguration</a></li>
+			<li><a href="#security">Blogsicherheit</a></li>
+			<li><a href="#security_holes">Sicherheitsloch</a></li>
+		</ol>
+	</li>
+	<li><a href="#troubleshooting">Fehlerbehebung</a>
+		<ol>
+			<li><a href="#incompatibilities">Inkompatibilitäten mit anderen Plugins oder Themes</a></li>
+			<li><a href="#limitations">Limitierungen</a></li>
+			<li><a href="#bugs">Bugs melden</a></li>
+			<li><a href="#tests">Tests um die Funktionalität des Plugins sicherzustellen</a></li>
+			<li><a href="#faq">FAQ - Frequently asked questions</a>
+				<ol>
+					<li><a href="#generallybroken">Warum funktioniert Exec-PHP nicht, wie es hier beschrieben wurde?</a></li>
+					<li><a href="#brokentag">Warum zerstört mir WordPress meine <code>&lt;?php ?&gt;</code> Tags nach dem Speichern des Artikels?</a></li>
+					<li><a href="#evalerror">Warum schlägt das Plugin mit einem <code>eval()</code> Fehler fehl, wenn es meinen Code ausführt?</a></li>
+					<li><a href="#printcode">Wie kann ich einfach nur PHP Code anzeigen, anstatt ihn auszuführen?</a></li>
+					<li><a href="#already_defined">Warum erzeugt mein Newsfeed Parse-Fehler?</a></li>
+					<li><a href="#globals">Warum erzeugt meine includierte Datei Parse-Fehler?</a></li>
+					<li><a href="#wordpressmu">Funktioniert das Plugin in WordPress MU?</a></li>
+					<li><a href="#create_site">Wie wird die Plugin Homepage erstellt?</a></li>
+				</ol>
+			</li>
+		</ol>
+	</li>
+	<li><a href="#past_present_future">Vergangenheit, Gegenwart und Zukunft</a>
+		<ol>
+			<li><a href="#new_versions">Neue Versionen</a></li>
+			<li><a href="#history">Historie alter Versionen</a>
+				<ol>
+					<li><a href="#version_4_9">Version 4.9 (2009-01-07)</a></li>
+					<li><a href="#version_4_8">Version 4.8 (2008-07-05)</a></li>
+					<li><a href="#version_4_7">Version 4.7 (2008-05-05)</a></li>
+					<li><a href="#version_4_6">Version 4.6 (2008-04-06)</a></li>
+					<li><a href="#version_4_5">Version 4.5 (2008-03-24)</a></li>
+					<li><a href="#version_4_4">Version 4.4 (2008-01-29)</a></li>
+					<li><a href="#version_4_3">Version 4.3 (2007-12-11)</a></li>
+					<li><a href="#version_4_2">Version 4.2 (2007-11-03)</a></li>
+					<li><a href="#version_4_1">Version 4.1 (2007-10-27)</a></li>
+					<li><a href="#version_4_0">Version 4.0 (2007-10-25)</a></li>
+					<li><a href="#version_3_4">Version 3.4 (2007-10-08)</a></li>
+					<li><a href="#version_3_3">Version 3.3 (2007-08-11)</a></li>
+					<li><a href="#version_3_2">Version 3.2 (2007-02-10)</a></li>
+					<li><a href="#version_3_1">Version 3.1 (2007-02-09)</a></li>
+					<li><a href="#version_3_0">Version 3.0 (2006-08-06)</a></li>
+					<li><a href="#version_2_0">Version 2.0 (2005-12-22)</a></li>
+					<li><a href="#version_1_2">Version 1.2 (2005-12-04)</a></li>
+					<li><a href="#version_1_1">Version 1.1 (2005-08-19)</a></li>
+					<li><a href="#version_1_0">Version 1.0 (2005-08-18)</a></li>
+				</ol>
+			</li>
+			<li><a href="#roadmap">Roadmap</a></li>
+		</ol>
+	</li>
+</ol>
+
+<h3 id="introduction">Einleitung</h3>
+
+<h4 id="motivation">Motivation</h4>
+<p>Als ich 2005 auf der Suche nach einem PHP Plugin für WordPress war, gab es kein Plugin, dass es mir erlaubte, den Code so zu schreiben, wie ich es gewohnt war. Zum Beispiel verlangten einige Plugins, dass der Code in XHTML Tags wie <code>&lt;phpcode&gt; &lt;/phpcode&gt;</code> gekapselt wurde. Das wich von der üblichen Schreibweise für PHP Code ab, bei der einfach nur <code>&lt;?php ?&gt;</code> verwendet wird. Einige Plugins führten den Code erst aus, nachdem WordPress einige Filter wie zum Beispiel 'texturize' darauf angewendet hatten. Somit wurde auch der Code mit 'texturiert', was die Plugins dann wieder für den Codeteil des Artikels rückgängig machen mussten. Für komplexeren Code kann das auf Grund von Mehrdeutigkeiten nicht korrekt ausgeführt werden, was dann zu Parse-Fehlern führt obwohl der Code syntaktisch korrekt ist.</p>
+
+<h4 id="features">Features</h4>
+<ul>
+	<li><a href="#execute_php">Führt <code>&lt;?php ?&gt;</code> Code in der Kurzfassung und den Texten deiner Beiträge und Seiten aus</a></li>
+	<li><a href="#allow_widget">Konfigurierbare Ausführung von PHP Code in Text-Widgets (für WordPress 2.2 oder höher)</a></li>
+	<li><a href="#basic_test">Schreibe PHP Code in gewohnter Syntax, also <code>&lt;?php ... ?&gt;</code></a></li>
+	<li><a href="#execute_php">Funktioniert in Newsfeeds</a></li>
+	<li><a href="#configuration">Informationen über Benutzer, die PHP Code mit den aktuellen Sicherheitseinstellungen schreiben dürfen (für WordPress 2.1 oder höher)</a></li>
+	<li><a href="#execute_php">Konfigurierbare Warnungen pro Benutzer um auf ungünstige Blog- und Benutzereinstellung hinzuweisen (für WordPress 2.1 oder höher)</a></li>
+	<li><a href="#wp_configuration">Beschränkbare Ausführung von PHP Code in Beiträgen und Seiten auf bestimmte Benutzer mittels Rollen und Befugnissen</a></li>
+	<li><a href="http://wordpress.org/extend/plugins/exec-php/">Updatebenachrichtigungen durch das 'Plugins' Menu von WordPress, wenn eine neue Exec-PHP Version verfügbar ist (für WordPress 2.3 oder höher)</a></li>
+	<li><a href="#translation">Lokalisierungssupport (englisch und deutsch enthalten, viele andere verfügbar)</a></li>
+	<li><a href="#toc">Kommt mit Dokumentation</a></li>
+</ul>
+
+<h4 id="concepts">Die Arbeitsweise von Exec-PHP</h4>
+<p>Technisch betrachtet, führt Exec-PHP PHP Code in beliebigem Text dadurch aus, dass es den gesamten Text in <code>?&gt; &lt;?php</code> Tags kapselt und ihn and die PHP Funktion <a href="http://de.php.net/manual/en/function.eval.php"><code>eval()</code></a> übergibt. Das setzt allerdings voraus, dass der auszuführende PHP Code wiederum innerhalb von <code>&lt;?php ?&gt;</code> Tags gekapselt ist. Durch diese Arbeitsweise muss der Text nicht vom Plugin nach vorhandenen Codestücken geparst werden.</p>
+
+<h4 id="difference">Unterschiede zu ähnlichen Plugins</h4>
+<p>Es gibt jede Menge andere PHP Plugins, die alle ein wenig anders funktionieren. Die nachfolgende Liste wurde Anfang 2007 erstellt und ist nicht vollständig und vermutlich veraltet, da einige Plugins mittlerweile aktualisiert wurden. Dementsprechend ist neben dem Pluginnamen auch die Versionsnummer angegeben.</p>
+
+<h5 id="sniplets">Sniplets</h5>
+<p>Das <a href="http://urbangiraffe.com/plugins/sniplets/">Sniplets</a> Plugin von John Godley sieht nach der besten Alternative zu Exec-PHP aus. Obwohl es schwerer zu konfigurieren ist, erhältst du dadurch eine höhere Sicherheit auf Grund der Arbeitsweise des Plugins.</p>
+
+<h5 id="runphp_somerville">RunPHP 0.2.2 (Mark Somerville)</h5>
+<p>Das <a href="http://mark.scottishclimbs.com/2004/7/2/running-php-in-wordpress-posts/">RunPHP</a> Plugin von Mark Somerville benutzt XHTML Tag-Syntax um Code innerhalb von HTML auszuzeichnen. Es versucht mittels Konvertierung texturierten Code wieder in seine Ursprungsform zu wandeln und unterstützt nicht die Rollen und Befugnisse von WordPress 2.x.</p>
+
+<h5 id="runphp_vanlommel">RunPHP 2.1.1 (James Van Lommel)</h5>
+<p>Das <a href="http://www.nosq.com/blog/2006/01/runphp-plugin-for-WordPress/">RunPHP</a> Plugin von James Van Lommel erzeugt Parse-Fehler mit den meisten der <a href="#tests">unten stehenden Tests</a>.</p>
+
+<h5 id="php_exec">PHP Exec 1.7</h5>
+<p>Das <a href="http://priyadi.net/archives/2005/03/02/WordPress-php-exec-plugin/">PHP Exec</a> Plugin von Priyadi Iman Nurcahyo benutzt XHTML Tag-Syntax um Code innerhalb von HTML auszuzeichnen. Es versucht mittels Konvertierung texturierten Code wieder in seine Ursprungsform zu wandeln.</p>
+
+<h5 id="ezstatic_3">EzStatic 3</h5>
+<p>Das <a href="http://redalt.com/wiki/EzStatic3">EzStatic 3</a> Plugin von Owen Winkler scheitert an Test #16 (<a href="#tests">siehe unten</a>).</p>
+
+<h5 id="other_plugins">Andere Plugins</h5>
+<p>Heutzutage gibt es eine unerschöpfliche Fülle ähnlicher Plugins, die ich nicht mehr alle beschreiben kann. Wenn in Exec-PHP ein Feature fehlen sollte, dann schaue dich einfach mal in einer der WordPress Plugin Datenbanken um oder <a href="http://bluesome.net/post/2005/08/18/50/#response-50">frag nach, ob ich es implementiere</a>.</p>
+
+<h3 id="installation">Installation</h3>
+
+<h4 id="requirements">Anforderungen</h4>
+<p>Du brauchst die folgende Software auf deinem Webserver um das Exec-PHP Plugin benutzen zu können:</p>
+<ul>
+	<li><a href="http://WordPress.org">Eine lauffähige Installation von WordPress 2.0.11 oder höher</a></li>
+	<li><a href="http://bluesome.net/data/2005/08/exec-php.zip">Das Exec-PHP Plugin</a> ;-)</li>
+	<li><a href="http://im-web-gefunden.de/wordpress-plugins/role-manager/">Optional: Das Role Manager Plugin von Thomas Schneider</a></li>
+</ul>
+
+<h4 id="install">Installation des Plugin</h4>
+<p>Falls du jemals ein WordPress Plugin installiert hast, wird die Installation ziemlich einfach für dich sein:</p>
+<ul>
+	<li><a href="http://bluesome.net/data/2005/08/exec-php.zip">Lade das Exec-PHP Plugin Archiv runter und extrahiere die Dateien</a></li>
+	<li>Kopiere das entstandene <code>exec-php</code> Verzeichnis nach <code>/wp-content/plugins/</code></li>
+	<li>Aktiviere das Plugin im 'Plugins' Menu von WordPress</li>
+	<li><a href="#execute_php">Konfiguriere Blog- und Benutzereinstellungen, falls erforderlich (nach einer Neuinstallation kann erstmal nur der Administrator PHP Code ausführen)</a></li>
+</ul>
+<p>Fertig. Der Rest ist selbsterklärend. ;-)</p>
+
+<h4 id="upgrade">Upgrade einer alten Version</h4>
+<p>Sofern nicht anders angegeben kannst du von einer früheren Version des Plugins upgraden indem du das Plugin <a href="#uninstall">deinstallierst</a> und anschließend der <a href="#install">Installationsanleitung</a> folgst. Beachte, dass das Upgrade automatisch Einstellungen der älteren Plugin Version migriert. Aus diesem Grund ist ein Downgraden auf die vorherige Version des Plugins nicht möglich.</p>
+
+<h4 id="upgrade_from_2_0">Upgrade von Version 2.0 oder niedriger</h4>
+<p>Da sich das Verzeichnislayout geändert hat, musst du die alte Datei <code>exec-php.php</code> aus deinem<code>/wp-content/plugins/</code> Verzeichnis manuell entfernen. Folge danach der <a href="#install">Installationsanweisung</a>. Falls du die alternativen Tags <code>[?php ?]</code> oder das alte PHP-Tagformat <code>&lt; ?php ?&gt;</code> (beachte das Leerzeichen) oder <code>&lt;? ?&gt;</code> benutzt hast, must du sämtliche dieser Tags in das Format <code>&lt;?php ?&gt;</code> migrieren. Du kannst das entweder manuell machen oder du benutzt das <a href="http://thedeadone.net/software/search-and-replace-wordpress-plugin/">Search and Replace</a> Plugin. Seit Exec-PHP Version 3.1 wird eine automatische Migration nicht mehr unterstützt.</p>
+
+<h4 id="upgrade_to_4_2">Upgrade auf Version 4.2 oder höher</h4>
+<p>Abhängig von deiner zuvor installierten Exec-PHP Version bekommst du nach der Migration möglicherweise eine Sicherheitswarnung im Admin Menu. <a href="#security_holes">Lese diesen Absatz um das Problem zu beheben</a>.</p>
+
+<h4 id="deactivation">Deaktivierung des Plugin</h4>
+<p>Die Deaktivierung des Plugins wird höchstwahrscheinlich sämtliche deiner Artikel und Widgets mit PHP Code fehlerhaft anzeigen und wird vermutlich deinen PHP Code im Klartext deinen Lesern zeigen. Aus diesem Grund sollte dein PHP Code keine sensiblen Inhalte wie zum Beispiel Passwörter enthalten.</p>
+
+<h4 id="uninstall">Deinstallation des Plugin</h4>
+<p>Um das Plugin zu deinstallieren, lösche einfach das <code>exec-php</code> Verzeichnis aus dem <code>/wp-content/plugins/</code> Verzeichnis. Du brauchst das Plugin zuvor im WordPress Admin Menu noch nicht mal zu deaktivieren. <a href="#deactivation">Lese diesen Absatz</a> falls du wissen willst, was mit deinem PHP Code in diesem Fall passiert.</p>
+
+<h4 id="translation">Exec-PHP in deiner Sprache</h4>
+<p>Zur Zeit sind die englische und deutsche Übersetzung im Exec-PHP Archiv enthalten. Weitere Übersetzungen für die aktuelle Version sind für folgende Sprachen verfügbar:</p>
+<ul>
+	<li>Englisch (Default, ist im Exec-PHP Archiv enthalten)</li>
+	<li>Deutsch (ist im Exec-PHP Archiv enthalten)</li>
+	<li><a href="http://liseweb.fr/BLOG/?page_id=160">Französisch</a> (Dank an <a href="http://liseweb.fr/">Lise</a>)</li>
+	<li><a href="http://gidibao.net/index.php/2008/05/07/exec-php-in-italiano/">Italienisch</a> (Dank an <a href="http://gidibao.net/">Gianni</a>)</li>
+	<li><a href="http://dimox.name/exec-php-russian-translation/">Russisch</a> (Dank an <a href="http://dimox.name/">Dimox</a>)</li>
+	<li><a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanisch</a> (Dank an <a href="http://www.cabai.com.ar/">Diego</a>)</li>
+	<li><a href="http://www.wordthai.com/index.php?topic=34.0">Thai</a> (Dank an <a href="http://www.wordthai.com/index.php?action=profile;u=1">kazama</a>)</li>
+</ul>
+
+<h4 id="translating">Exec-PHP übersetzen</h4>
+<p>Falls du Exec-PHP in einer Sprache haben möchtest, die nicht hier enthalten ist, lade das Exec-PHP Archiv herunter und benutze ein Tool wie <a href="http://www.poedit.net/">poedit</a> um die Datei <code>languages/exec-php.pot</code> zu übersetzen. Wenn du ganz fleißig bist, kannst du auch noch die <code>readme.html</code> Datei übersetzen. Falls das zuviel ist, übersetze einfach die <code>readme-generic.html</code> Datei. Speichere die Readme Datei unter dem Namen <code>readme-&lt;locale&gt;.html</code> ab und packe das Ganze dann zu einem Zip Archiv <code>exec-php-&lt;locale&gt;.zip</code> zusammen. <code>&lt;locale&gt;</code> steht hierbei für die Kurzform deiner Sprache. Für die deutsche Übersetzung wäre dies 'de_DE'. Das entstehende Archiv würde dementsprechend <code>exec-php-de_DE.zip</code> heißen. Das Archiv sollte nicht mehr als die folgenden Dateien enthalten:</p>
+<ul>
+	<li><code>exec-php/docs/readme-&lt;locale&gt;.html</code></li>
+	<li><code>exec-php/docs/screenshot-1-&lt;locale&gt;.png</code> (optional)</li>
+	<li><code>exec-php/docs/screenshot-2-&lt;locale&gt;.png</code> (optional)</li>
+	<li><code>exec-php/docs/screenshot-3-&lt;locale&gt;.png</code> (optional)</li>
+	<li><code>exec-php/languages/exec-php-&lt;locale&gt;.mo</code></li>
+	<li><code>exec-php/languages/exec-php-&lt;locale&gt;.po</code> (optional)</li>
+</ul>
+<p>Stelle das Zip Archiv auf deiner Seite zum Download bereit und schreibe danach einen <a href="http://bluesome.net/post/2005/08/18/50/#comments-50">Kommentar</a> auf die Plugin Homepage damit du in den Credits verlinkt wirst.</p>
+<p>Sofern du auch noch für ältere Exec-PHP Versionen die Zip Archive zum Download anbieten möchtest, verlinke diese ebenfalls auf deiner Seite unter dem Namen <code>exec-php-&lt;locale&gt;.&lt;version&gt;.zip</code>. Also z.B. <code>exec-php.de_DE.4.2.zip</code> für die deutsche Lokalisierung von Exec-PHP 4.2.</p>
+
+<h3 id="usage">Benutzung</h3>
+
+<h4 id="execute_php">Ausführen von PHP Code</h4>
+<p>Mit Exec-PHP kannst du PHP Code in der Kurzfassung und dem Text deiner Beiträge und Seiten (im Folgenden Artikel genannt), als auch in Text-Widgets ausführen. Um Code auszuführen, kannst du diesen wie gewohnt, in <code>&lt;?php ?&gt;</code> Tags gekapselt, eintippen.</p>
+Um Code in Artikeln oder Text-Widgets auszuführen, musst du eventuell deine Blog- und Benutzereinstellungen ändern. Um Code in Artikeln erfolgreich auszuführen, stelle die folgenden Punkte sicher:</p>
+<ul>
+	<li><a href="#tag_balancing">Schalte das Tag-Balancing im 'Einstellungen &gt; Schreiben' Menu von WordPress mit der Option 'WordPress soll falsch verschachteltes XHTML automatisch korrigieren' ab</a></li>
+	<li><a href="#wysiwyg_editor">Schalte den WYSIWYG Editor im den Benutzereinstellungen im Menu 'Benutzer &gt; Dein Profil' ab</a></li>
+	<li><a href="#allow_writing">Weise dem Benutzer die Befugnis 'unfiltered_html' zu</a></li>
+	<li><a href="#allow_execution">Weise dem Benutzer die Befugnis 'exec_php' zu</a></li>
+</ul>
+
+<h4 id="configuration">Konfiguration</h4>
+<p>Das Plugin hat ein eigenes Konfigurationsmenu unter 'Einstellungen &gt; Exec-PHP'. Das Konfigurationsmenu wird nur für Benutzer angezeigt, die die 'edit_plugins' Befugnis haben. Diese ist üblicherweise nur den Administratoren zugewiesen. Wenn du Javascript in deinem Browser abgeschaltet hast oder du Exec-PHP mit WordPress 2.0.x laufen lässt, so wirst du gar keine oder nur Teile des Konfigurationsmenus sehen.</p>
+<p>Das Konfigurationsmenu ist in zwei Abschnitte unterteilt, dem Einstellungsabschnitt und dem Sicherheitsinformationsabschnitt. Im Einstellungsabschnitt kann <a href="#allow_widget">das Plugin konfiguriert</a> werden, während im Informatiosabschnitt angezeigt wird, <a href="#security_holes">welche Benutzer berechtigt sind, PHP Code auszuführen</a>.</p>
+<p><a href="../docs/screenshot-1-de_DE.png"><img src="../docs/screenshot-1-de_DE.png" alt="Das Exec-PHP Konfigurationsmenu" /></a></p>
+
+<h4 id="misconfiguration">Fehlkonfiguration</h4>
+<p>Wenn die Blog- oder Benutzereinstellungen nicht korrekt sind, um PHP Code zu schreiben, so wird eine Warnung im 'Schreiben' oder 'Widgets' Menu angezeigt.</p>
+<p><a href="../docs/screenshot-2-de_DE.png"><img src="../docs/screenshot-2-de_DE.png" alt="Eine Exec-PHP Warnung im 'Schreiben' Menu" /></a></p>
+<p>Die WYSIWYG Konvertierungswarnung kann im Menu 'Benutzer &gt; Dein Profil' abgeschaltet werden. Dies ist allerdings nicht empfohlen, da es dazu führen kann, dass PHP Code in Artikeln beim Speichern dauerhaft zerstört wird.</p>
+<p><a href="../docs/screenshot-3-de_DE.png"><img src="../docs/screenshot-3-de_DE.png" alt="Exec-PHP Warnungskonfiguration im 'Benutzer &gt; Dein Profile' menu" /></a></p>
+<p>Wenn du Javascript deaktiviert hast oder du Exec-PHP mit WordPress 2.0.x betreibst, so wirst du keine Warnungen angezeigt bekommen selbst wenn deine Blog- und Benutzereinstellungen nicht für den Betrieb von Exec-PHP geeignet sind.</p>
+
+<h4 id="basic_test">Ein erster Test</h4>
+<p>Um sicherzustellen, dass das Plugin richtig funktioniert, melde dich als Administrator an, <a href="#execute_php">mache die oben genannten Einstellungen</a> und schreibe einen neuen Artikel mit dem folgenden Text:</p>
+<pre><code code-lang="php">&lt;?php echo "Das ist das Exec-PHP 'Hello World'"; ?&gt;</code></pre>
+<p>Dieser Code sollte immer funktionieren. Wenn du dir diesen Artikel in deinem Blog anschaust und alles funktioniert, solltest du das hier sehen:</p>
+<pre><code>Das ist das Exec-PHP 'Hello World'</code></pre>
+
+<h4 id="tag_balancing">WordPress' XHTML Tag-Balancing</h4>
+<p>Abhängig von deinem PHP Code ist es möglicherweise notwendig WordPress' eingebautes XHTML Tag-Balancing abzuschalten sofern der Code in Artikeln ausgeführt werden soll. Die Option kann im Menu 'Einstellungen &gt; Schreiben' durch deaktivieren der Option 'WordPress soll falsch verschachteltes XHTML automatisch korrigieren' abgeschaltet werden. Im Zweifelsfall deaktiviere diese Option am besten. Anstatt diese Option zu deaktivieren, kann alternativ das <a href="http://wp.uberdose.com/2006/10/15/mime-type-plugin/">Mime Type Plugin</a> installiert werden. In diesem Fall muss für jeden Artikel mit enthaltenem PHP Code der Mime-Typ <code>text/html</code> gesetzt werden.</p>
+
+<h4 id="wysiwyg_editor">Schreiben von PHP Code im WYSIWYG Editor</h4>
+<p>Um erfolgreich PHP Code in Artikel zu schreiben, muss der WYSIWYG Editor im Menu
+'Benutzer &gt; Dein Profil' abgeschaltet werden. Es reicht nicht, den WYSIWYG
+Editor eingeschaltet zu lassen und einfach nur im 'HTML' Tab des Editors zu arbeiten. In diesem Fall wird beim Speichern dein PHP Code dauerhaft zerstört.</p>
+<p>Anstatt den WYSIWYG Editor in deinem Profil abzuschalten, kannst du ihn auch nur für ausgewählte Artikel mittels des <a href="http://wordpress.org/extend/plugins/deactive-visual-editor/">Deactivate Visual Editor</a> Plugins abschalten. Ich habe das zwar nicht getestet, es klingt aber nach einer brauchbaren Lösung.</p>
+<p>Wenn du immer noch meinst, PHP Code mit dem TinyMCE WYSIWYG Editor schreiben zu müssen, kannst du <a href="http://tinymce.moxiecode.com/punbb/viewtopic.php?id=3646">einige TinyMCE Plugins ausprobieren, die so etwas ermöglichen sollen</a>. Solche Experimente gehören allerdings nicht mehr in den Wirkungsbereich dieses Plugins. Aus meiner Sicht besteht ein genereller Konflikt, wenn du PHP Code mit irgendeiner Art visuellem Editor schreiben willst, da das gerenderte Aussehen deines Codes für den Editor unvorhersehbar ist. Aus diesem Grund ist es nicht geplant, das Schreiben von PHP Code im WYSIWYG Editor in absehbarer Zeit zu unterstützen.</p>
+
+<h4 id="allow_writing">Zulassen des Schreibens von PHP Code in Artikeln</h4>
+<p>Bevor PHP Code ausgeführt werden kann, muss der Benutzer diesen erstmal schreiben. ;-) Beim Schreiben und anschließenden Speichern von PHP Code in Artikeln kann es zur Zerstörung des Codes durch WordPress kommen, sofern der Benutzer nicht die 'unfiltered_html' Befugnis hat.</p>
+<p>Das Zuweisen von Befugnissen zu Rollen oder Benutzern gehört nicht zur Funktionalität dieses Plugins. Da es keine eingebaute WordPress Funktionalität gibt, um Befugnisse zuweisen zu können, benötigst du ein Rollenmanger Plugin wie oben in den <a href="#requirements">Anforderungen beschrieben</a>.</p>
+
+<h4 id="allow_execution">Zulassen des Ausführens von PHP Code in Artikeln</h4>
+<p>Nach der Installation des Plugins ist das das Ausführen von PHP Code nur der Administrator Rolle gestattet. Durch das Zuweisen der 'exec_php' Befugnis zu einer anderen Rolle oder Benutzer wird es diesen erlaubt ebenfalls PHP Code in Artikeln auszuführen zu können.</p>
+<p>Das Zuweisen von Befugnissen zu Rollen oder Benutzern gehört nicht zur Funktionalität dieses Plugins. Da es keine eingebaute WordPress Funktionalität gibt, um Befugnisse zuweisen zu können, benötigst du ein Rollenmanger Plugin wie oben in den <a href="#requirements">Anforderungen beschrieben</a>.</p>
+
+<h4 id="allow_widget">Zulassen von PHP Code in Text-Widgets</h4>
+<p>Nach der Installation ist das Ausführen von PHP Code in Text-Widgets aktiviert. Jeder User, der die 'switch_themes' Befugnis hat, kann nun PHP Code in Text-Widgets schreiben und ausführen. Da dies eventuell ein Sicherheitsrisiko darstellt, kannst du das Ausführen von PHP Code in Text-Widgets im Konfigurationsmenu des Plugins deaktivieren.</p>
+
+<h4 id="wp_configuration">Überblick über Tätigkeiten und ihre benötigte WordPress Konfiguration</h4>
+<p>Die folgende Tabelle zeigt, welche Einstellungen gesetzt sein müssen damit bestimmte Aktionen mit dem Plugin ausgeführt werden können:</p>
+<table>
+<tr><th style="text-align:center;"><strong>Task</strong></th><th style="text-align:center;"><strong><a href="#tag_balancing">Deaktiviere Tag-Balancing</a></strong></th><th style="text-align:center;"><strong><a href="#wysiwyg_editor">Deaktiviere WYSIWYG Editor</a></strong></th><th style="text-align:center;"><strong><a href="#allow_execution">Weise 'exec_php' Befugnis zu</a></strong></th><th style="text-align:center;"><strong><a href="#allow_writing">Weise 'unfiltered_html' Befugnis zu</a></strong></th><th style="text-align:center;"><strong><a href="#allow_widget">Weise 'switch_themes' Befugnis zu</a></strong></th></tr>
+<tr><td>Schreibe/Ändere PHP Code in Text von Artikeln</td><td style="text-align:center;"><strong>X</strong></td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td></tr>
+<tr><td>Führe PHP Code in Text von Artikeln aus</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td><td>&nbsp;</td></tr>
+<tr><td>Schreibe/Ändere PHP Code in der Kurzfassung von Artikeln</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td></tr>
+<tr><td>Führe PHP Code in der Kurzfassung von Artikeln aus</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td><td>&nbsp;</td></tr>
+<tr><td>Schreibe/Ändere PHP Code in Text-Widgets</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td style="text-align:center;"><strong>X</strong></td></tr>
+<tr><td>Führe PHP Code in Text-Widgets aus</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td></tr>
+</table>
+<p>Zur Klarstellung: Wenn ein Benutzer einen neuen Artikel schreiben und in diesem PHP Code ausführen will, so benötigt er sowohl die 'exec_php' als auch die 'unfiltered_html' Befugnis. Andernfalls wird der PHP Code beim Speichern des Artikels zerstört und der nackte PHP Code wird als Artikel angezeigt.</p>
+<p>Um PHP Code in der Kurzfassung von Artikeln zu schreiben, benötigt der Benutzer lediglich die 'unfiltered_html' Befugnis.</p>
+<p>Wenn ein Benutzer PHP Code in Text-Widgets schreiben und ausführen will, so benötigt er lediglich die 'unfiltered_html' Befugnis. Es gibt keine Befugnis, die das Ausführen von PHP Code in Text-Widgets beschränkt. Das bedeutet, dass jeder Benutzer, der Widgets schreiben darf (durch die 'switch_themes' Befugnis beschränkt) auch PHP Code ausführen kann.</p>
+
+<h4 id="security">Blogsicherheit</h4>
+<p>Durch die Installation dieses Plugins werden Benutzer in die Lage versetzt, die volle PHP API und WordPress API benutzen zu können. Es gibt keine Limitierungen nur bestimmte Teile der APIs benutzen zu können. Damit entblößt du deine WordPress- und Webserver Installation und ermöglichst es Benutzern die Kontrolle über dein Blog, deinen Server und das ganze Internet zu übernehmen (okay, das letzte war ein Spaß). Wenn du dir nicht sicher bist, erlaube es Benutzern nicht, PHP Code auszuführen. Dies kann leicht <a href="#allow_execution">pro Benutzer konfiguriert</a> werden.</p>
+
+<h4 id="security_holes">Sicherheitsloch</h4>
+<p>Abhängig von deiner Konfiguration, erhältst du möglicherweise einen Sicherheitsalarm, der dich auf den <a href="#configuration">'Sicherheitsloch' Hinweis im Konfigurationsmenu des Plugins</a> hinweist. Dies passiert dann, wenn du Benutzer in deinem Blog hast, denen es erlaubt ist, die Artikel anderer Benutzer zu ändern (üblicherweise Editoren genannt). Sofern es dem Editor selbst nicht gestattet ist PHP Code auszuführen, dem Benutzer des zu editierenden Artikels aber schon, so kann der Editor schadhaften Code in den Artikel des anderen Benutzers einfügen.</p>
+<p>Um dieses Problem zu beheben, führt das Exec-PHP Plugin die Befugnis 'edit_others_php' ein. Es ist empfohlen, entweder beide oder keine der beiden Befugnisse 'exec_php' und 'edit_others_php' einem Editor zuzuweisen. Möglicherweise ist es sinnvoll, die Editoren-Rolle in zwei unterschiedliche Editoren-Rollen zu teilen. Eine, der es erlaubt ist PHP Code auszuführen und eine nicht.</p>
+
+<h3 id="troubleshooting">Fehlerbehebung</h3>
+
+<h4 id="incompatibilities">Inkompatibilitäten mit anderen Plugins oder Themes</h4>
+<p>Zur Zeit sind keine Inkompatibilitäten mit anderen Plugins oder Themes bekannt.</p>
+
+<h4 id="limitations">Limitierungen</h4>
+<p>Neben den <a href="#wysiwyg_editor">vorher erwähnten Limitierungen durch den WYSIWYG Editor</a>, sind keine weiteren Probleme bekannt.</p>
+
+<h4 id="bugs">Bugs melden</h4>
+<p>Du kannst <a href="http://bluesome.net/post/2005/08/18/50/#response-50">Fehlerreports als Kommentar</a> auf der Plugin Homepage melden. Bevor du das tust, versichere dich, dass dein PHP Script fehlerfrei in einer separaten Datei läuft. Sofern das funktioniert, versichere dich, dass dein Code nicht vom <a href="#globals">&quot;Globals&quot; Fehler</a> betroffen bist. Wenn du dann immer noch meinst dass es ein Bug im Plugin ist, dann denk beim Schreiben deines Fehlerreports daran, dass WordPress nicht dazu gedacht ist mit Code in Kommentaren umzugehen. Deshalb konvertierst du deinen Code am besten in korrektes XHTML, bevor du ihn als Kommentar auf der Plugin Homepage schreibst. Du kannst gerne auch auf deinen Code verlinken oder mit mir direkt über <a href="http://bluesome.net/post/author/soeren/#contact-2">meine Kontaktseite</a> in Verbindung treten.</p>
+
+<h4 id="tests">Tests um die Funktionalität des Plugins sicherzustellen</h4>
+<p>Nachfolgend ist eine Liste der Tests, die gemacht wurden um die Funktionalität des Plugins sicherzustellen. Auf der linken Seite ist der PHP Code beschrieben, der im entsprechenden Test ausgeführt wird. Auf der rechten Seite ist die Live-Ausgabe des Exec-PHP Plugins für den Testcode. Sofern du dieses Dokument als statische HTML Datei ansiehst, wird der PHP Code natürlich nicht ausgeführt und sieht entsprechend kaputt aus. Auf Grund der Ausgabe der Tests wird diese Seite nicht als valides XHTML verifizieren. Wenn du denkst, dein Lieblings PHP Plugin ist besser als Exec-PHP, probiere alle nachfolgenden Tests aus und schaue ob es damit korrekt funktioniert.</p>
+<table width="100%" cellspacing="5px">
+<tr><th><strong>#</strong></th><th><strong>Code</strong></th><th><strong>Ausgabe</strong></th></tr>
+<tr><td>1</td><td><pre><code code-lang="php">&lt;?php ?&gt;</code></pre></td><td><?php ?></td></tr>
+<tr><td>2</td><td><pre><code code-lang="php">&lt;?php echo "a?&gt;1"; ?&gt;</code></pre></td><td><?php echo "a?>1"; ?></td></tr>
+<tr><td>3</td><td><pre><code code-lang="php">&lt;?php echo 'b?&gt;1'; ?&gt;</code></pre></td><td><?php echo 'b?>1'; ?></td></tr>
+<tr><td>4</td><td><pre><code code-lang="php">&lt;?php echo "a?&gt;2"; ?&gt;</code></pre></td><td><?php echo "a?>2"; ?></td></tr>
+<tr><td>5</td><td><pre><code code-lang="php">&lt;?php echo 'b?&gt;2'; ?&gt;</code></pre></td><td><?php echo 'b?>2'; ?></td></tr>
+<tr><td>6</td><td><pre><code code-lang="php">&lt;?php?&gt;</code></pre></td><td><?php?></td></tr>
+<tr><td>7</td><td><pre><code code-lang="php">&lt;?php echo"a?&gt;3";?&gt;</code></pre></td><td><?php echo"a?>3";?></td></tr>
+<tr><td>8</td><td><pre><code code-lang="php">&lt;?php echo'b?&gt;3';?&gt;</code></pre></td><td><?php echo'b?>3';?></td></tr>
+<tr><td>9</td><td><pre><code code-lang="php">&lt;?php echo"a?&gt;4";?&gt;</code></pre></td><td><?php echo"a?>4";?></td></tr>
+<tr><td>10</td><td><pre><code code-lang="php">&lt;?php echo'b?&gt;4';?&gt;</code></pre></td><td><?php echo'b?>4';?></td></tr>
+<tr><td>11</td><td><pre><code code-lang="php">&lt;?php echo "c";?&gt;1";?&gt;</code></pre></td><td><?php echo "c";?>1";?></td></tr>
+<tr><td>12</td><td><pre><code code-lang="php">&lt;?php echo 'd';?&gt;1';?&gt;</code></pre></td><td><?php echo 'd';?>1';?></td></tr>
+<tr><td>13</td><td><pre><code code-lang="php">&lt;?php echo "c';?&gt;2";?&gt;</code></pre></td><td><?php echo "c';?>2";?></td></tr>
+<tr><td>14</td><td><pre><code code-lang="php">&lt;?php echo 'd";?&gt;3';?&gt;</code></pre></td><td><?php echo 'd";?>3';?></td></tr>
+<tr><td>15</td><td><pre><code code-lang="php">&lt;?php
+echo "impressive\n '";
+echo 'string\' "';
+echo "\n\thandling\"";
+?&gt;</code></pre></td>
+<td><?php
+echo "impressive\n '";
+echo 'string\' "';
+echo "\n\thandling\"";
+?></td></tr>
+<tr><td>16</td><td><pre><code code-lang="php">&lt;?php if (1) { ?&gt;
+&lt;b&gt;Handle THIS!&lt;/b&gt;
+&lt;?php } else { ?&gt;
+&lt;i&gt;Handle THAT!&lt;/i&gt;
+&lt;?php } ?&gt;
+</code></pre></td>
+<td><?php if (1) { ?>
+<b>Handle THIS!</b>
+<?php } else { ?>
+<i>Handle THAT!</i>
+<?php } ?></td></tr>
+</table>
+
+<h4 id="faq">FAQ - Frequently asked questions</h4>
+
+<h5 id="generallybroken">Warum funktioniert Exec-PHP nicht, wie es hier beschrieben wurde?</h5>
+<p>Wenn das Plugin nicht funktioniert obwohl die <a href="#execute_php">Blog- und Benutzereinstellungen richtig konfiguriert sind</a>, dann kollidiert das Exec-PHP Plugin sehr wahrscheinlich mit einem anderen Plugin deines Blogs. Um das Problem einzukreisen, deaktiviere <em>alle</em> anderen Plugins außer Exec-PHP und schaue, ob Exec-PHP nun funktioniert.</p>
+
+<h5 id="brokentag">Warum zerstört mir WordPress meine <code>&lt;?php ?&gt;</code> Tags nach dem Speichern des Artikels?</h5>
+<p><a href="http://de.wikipedia.org/wiki/RTFM#R">RTFM</a>. <a href="#execute_php">Lese das hier</a>.</p>
+
+<h5 id="evalerror">Warum schlägt das Plugin mit einem <code>eval()</code> Fehler fehl, wenn es meinen Code ausführt?</h5>
+<p>Wenn du PHP Fehlermeldungen in der Art <code>'Some error in /home/minime/htdocs/blog/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 666'</code> bekommst, dann ist es an der Zeit, deinen PHP Code zu reparieren. Wenn du dir nicht sicher bist, an welcher Stelle dein Code defekt ist, lasse ihn in einer separaten Datei laufen. Entferne alle Fehler und kopiere den Code anschließend wieder in deinen Artikel oder Widget. Um die Menge an <a href="http://bluesome.net/post/2005/08/18/50/#comments-50">Kommentaren auf der Plugin Homepage</a> zu begrenzen, werde ich alle Fehlerreports zu diesem Problem löschen.</p>
+
+<h5 id="printcode">Wie kann ich einfach nur PHP Code anzeigen, anstatt ihn auszuführen?</h5>
+<p>Wenn du lediglich Code in deinem Blog anzeigen willst, anstatt ihn auszuführen (wie es z.B. auf dieser Seite gemacht wird), dann musst du den Code in die korrekte XHTML Schreibweise überführen. Dazu müssen die folgenden Zeichen konvertiert werden: <code>&lt;</code> in <code>&amp;lt;</code>, <code>&gt;</code> in <code>&amp;gt;</code> und <code>&amp;</code> in <code>&amp;amp;</code>. Du kannst diese Konvertierung auch automatisiert mittels des <a href="http://www.village-idiot.org/archives/2006/04/09/wp-simplecode/">WP-Simplecode</a> Plugin durchführen.</p>
+
+<h5 id="already_defined">Warum erzeugt mein Newsfeed Parse-Fehler?</h5>
+<p>Nehmen wir an, dein Code funktioniert außerhalb eines Artikels. Trotzdem wirft der PHP Parser eventuell Fehler in deinem Newsfeed aus, nicht aber beim Betrachten deiner Seite. Das passiert dann, wenn du eigene Funktionen, Klassen usw. in deinem Code definiert hast. Für die Generierung deines Newsfeeds liest WordPress deine Artikel nämlich zweimal (einmal für die Zusammenfassung und einmal für den kompletten Artikel) und führt somit auch deinen Code zweimal aus. Der folgende Code würde zwar beim Betrachten deiner Seite fehlerfrei funktionieren, würde aber dazu führen, dass dein Newsfeed PHP Fehler enthält:</p>
+<p>Article:</p>
+<pre><code code-lang="php">&lt;?php
+function hello()
+{
+  echo 'Hello World';
+}
+hello();
+?&gt;</code></pre>
+<p>Als Grundregel kann ich nur empfehlen, alle Definitionen in separate Dateien zu speichern und auf diese mit <code>require_once()</code> zu referenzieren. Das obige Beispiel würde dann in zwei Teile geteilt werden, dem Artikel und die Datei.</p>
+<p>Artikel:</p>
+<pre><code code-lang="php">&lt;?php
+require_once(get_option('home'). '/example.php');
+hello();
+?&gt;</code></pre>
+<p>Datei (hier example.php):</p>
+<pre><code code-lang="php">&lt;?php
+function hello()
+{
+  echo 'Hello World';
+}
+?&gt;</code></pre>
+<p>Bitte beachte, dass <code>require_once()</code> den vollqualifizierten Pfad benötigt. Das ist notwendig, da der relative Pfad sich abhängig vom Kontext (z.B. Betrachten deiner Blog Homepage, Betrachten des Artikels, Anzeigen des Newsfeeds, usw.), in dem deine Seite dargestellt wird, ändert.</p>
+
+<h5 id="globals">Warum erzeugt meine includierte Datei Parse-Fehler?</h5>
+<p>Nehmen wir an, dein includierter Code funktioniert außerhalb eines Artikels und der Pfad zur Include-Datei ist korrekt. Trotzdem wirft der PHP Parser eventuell Fehlermeldungen aus, obwohl alles korrekt aussieht. Das passiert dann, wenn der Programmierer der includierten Datei angenommen hat, dass die Datei im globalen Scope ausgeführt wird und nicht das Schlüsselwort <code>global</code> benutzt um globale Variablen zu deklarieren. Als Beispiel schreibe folgenden Artikel:</p>
+<p>Artikel:</p>
+<pre><code code-lang="php">&lt;?php require_once(get_option('home'). '/example.php'); ?&gt;</code></pre>
+<p>Kopiere den folgenden Code in eine neue Datei mit Namen <code>example.php</code> und speichere sie im Wurzelverzeichnis deines Webservers:</p>
+<p>Datei (hier example.php):</p>
+<pre><code code-lang="php">&lt;?php
+$g_text = 'Hello World';
+function hello()
+{
+  global $g_text;
+  echo $g_text;
+}
+hello();
+?&gt;</code></pre>
+<p>Obwohl die Datei <code>example.php</code> einwandfrei ausgeführt werden kann, sofern du sie direkt aufrufst, führt dieser Test zu undefinierten verhalten, sofern du den Artikel in WordPress ansiehst, da hier die Zuweisung des Wertes zur Variablen <code>$g_text</code> nicht innerhalb des globalen Scopes stattfand. Das liegt an der Art und Weise wie WordPress funktioniert und kann nicht durch einen Bugfix in Exec-PHP repariert werden. Du kannst diesen Fehler umgehen, indem du den folgenden Code in deinen Artikel vor die include Anweisung einbindest oder die includierte Datei am Anfang um folgenden Code ergänzts:</p>
+<pre><code code-lang="php">global $g_text;</code></pre>
+<p>Selbstverständlich musst du dass für jede globale Variable machen, bei der dies nicht schon vom Programmierer selbst gemacht wurde. Du kannst natürlich auch versuchen, den Programmierer des Codes zu kontaktieren, damit er seinen Code ändert.</p>
+
+<h5 id="wordpressmu">Funktioniert das Plugin in WordPress MU?</h5>
+<p>WordPress is nicht WordPress MU. Das Plugin ist für WordPress geschrieben aber eventuell funktioniert es ja auch mit WordPress MU. Wenn du einen Patch bereitstellst, um die Kompatibilität mit WordPress MU zu verbessern, werde ich diesen gerne in die nächste Version von Exec-PHP einbauen.</p>
+
+<h5 id="create_site">Wie wird die Plugin Homepage erstellt?</h5>
+<p>Gut das du fragst. Das ist eine gute Gelegenheit, um zu zeigen, welche Möglichkeiten das Exec-PHP Plugin bietet. Die <a href="http://bluesome.net/post/2005/08/18/50/">Plugin Homepage</a> ist ein WordPress Beitrag, der im Wesentlichen aus einem PHP Script besteht, dass durch Exec-PHP ausgeführt wird und die in der Exec-PHP Installation enthaltene readme.html liest und parst. Dadurch muss ich bei einer neuen Version des Plugins lediglich die Plugindateien auf den Webserver hochladen. Die Dokumentation wird dann automatisch auf der Plugin Homepage aktualisiert. Der komplette Code sieht wie folgt aus:</p>
+<pre><code code-lang="php">&lt;?php
+// read readme.html depending on locale; plugin translation not yet loaded
+global $wp_version;
+if (version_compare($wp_version, '2.6.dev') >= 0)
+  load_plugin_textdomain(ExecPhp_PLUGIN_ID,
+    false, ExecPhp_HOMEDIR. '/languages');
+else
+  load_plugin_textdomain(ExecPhp_PLUGIN_ID,
+    ExecPhp_PLUGINDIR. '/'. ExecPhp_HOMEDIR. '/languages');
+
+$doc_dir = ExecPhp_HOME_URL. '/docs/';
+$doc_filename = ExecPhp_HOME_DIR. '/docs/'. __s('readme.html', ExecPhp_PLUGIN_ID);
+$content = file_get_contents($doc_filename);
+
+// strip HTML header
+$content = preg_replace('/^.*&lt;!\-\-\s*start of content\s*\-\-&gt;/is',
+  '', $content);
+
+// strip HTML footer depending whether viewing the whole post or only
+// the excerpt
+$pattern = '/&lt;!\-\-\s*more\s*\-\-&gt;.*$/is';
+if (is_single())
+  $pattern = '/&lt;!\-\-\s*end of content\s*\-\-&gt;.*$/is';
+$content = preg_replace($pattern, '', $content);
+
+// eval readme.html to generate output of test cases
+ob_start();
+eval(" ?&gt; $content &lt;?php ");
+$content = ob_get_contents();
+ob_end_clean();
+
+// adjust relative image links
+$content = preg_replace('/&lt;img\s+src\s*=\s*([\'\"])/is',
+  '&lt;img src=\1'. $doc_dir, $content);
+$content = preg_replace('/&lt;a\s+href\s*=\s*([\'\"])\s*([^\1p]+\.png\s*\1)/isU',
+  '&lt;a href=\1'. $doc_dir. '\2', $content);
+
+// done
+echo $content;
+?&gt;</code></pre>
+
+<h3 id="past_present_future">Vergangenheit, Gegenwart und Zukunft</h3>
+
+<h4 id="new_versions">Neue Versionen</h4>
+<p>Neue Versionen des Plugins werden von Zeit zu Zeit veröffentlicht und können neue Features und/oder Bugfixes enthalten. Du kannst dich über die neusten Entwicklungen auf dem Laufenden halten, indem du die <a href="http://bluesome.net/post/2005/08/18/50/#comments-50">Kommentare</a> der Plugin-Homepage abonnierst. Seit WordPress 2.3 wirst du auch im 'Plugin' Menu von WordPress über neue Versionen informiert.</p>
+<p>Neue Versionen bringen immer Änderungen am Code mit sich und erhöhen die Versionsnummer. Bestehende Versionen können trotzdem noch nach der ursprünglichen Veröffentlichung verändert werden. Dies passiert dann, wenn lediglich die Dokumentation für das Plugin aktualisiert wurde. In diesem Fall gibt es keine Benachrichtigung auf dieser Seite.</p>
+
+<h4 id="history">Historie alter Versionen</h4>
+
+<h5 id="version_4_9">Version 4.9 (2009-01-07)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Download: <a href="http://gidibao.net/index.php/2008/05/07/exec-php-in-italiano/">Italienische Übersetzung</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russische Übersetzung</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanische Übersetzung</a></li>
+	<li>Download: <a href="http://www.wordthai.com/index.php?topic=34.0">Thai Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.0.11 oder höher</li>
+	<li>Feature: Verbesserte Performance beim Laden des Admin Menus</li>
+	<li>Feature: Neuer 'Einstellungen' Link im WordPress 'Plugin' Menu</li>
+	<li>Feature: WYSIWYG Konvertierungswarnung nun auch für WordPress 2.0.11</li>
+</ul>
+
+<h5 id="version_4_8">Version 4.8 (2008-07-05)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.8.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Download: <a href="http://gidibao.net/index.php/2008/05/07/exec-php-in-italiano/">Italienische Übersetzung</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russische Übersetzung</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanische Übersetzung</a></li>
+	<li>Download: <a href="http://www.wordthai.com/index.php?topic=34.0">Thai Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.0 oder höher</li>
+	<li>Feature: Support für WordPress 2.6 (Umplatzierung von wp-content)</li>
+</ul>
+
+<h5 id="version_4_7">Version 4.7 (2008-05-05)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.7.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Download: <a href="http://gidibao.net/index.php/2008/05/07/exec-php-in-italiano/">Italienische Übersetzung</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russische Übersetzung</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanische Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.0 oder höher</li>
+	<li>Bugfix: Die Cache Instanzen in PHP4 waren keine Referenzen, was zwar ein Fehler war, aber keine bekannten Probleme verursacht hat</li>
+	<li>Bugfix:  Javascript funktioniert mit Single Quotes in übersetztem Text</li>
+	<li>Feature: Verbesserte Performance des AJAX Aufrufs</li>
+	<li>Feature: Verbesserte Fremdsprachenunterstützung innerhalb des Plugins und der Readme</li>
+</ul>
+
+<h5 id="version_4_6">Version 4.6 (2008-04-06)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.6.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russische Übersetzung</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanische Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.0 oder höher</li>
+	<li>Feature: Im Falle eines AJAX Fehlers wird nun der Aufruf bis zu dreimal wiederholt</li>
+	<li>Bugfix: Das Konfigurationsmenu ist jetzt gültiges XHTML</li>
+</ul>
+
+<h5 id="version_4_5">Version 4.5 (2008-03-24)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.5.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russische Übersetzung</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanische Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.0 oder höher</li>
+	<li>Bugfix: Reparatur der Kompatibilität mit WordPress 2.1.x</li>
+	<li>Bugfix: WYSIWYG Konvertierungswarnung wird nun auch für das Schreiben von Seiten angezeigt</li>
+	<li>Änderung: Verbesserte Performance während der Plugin-Initialisierung</li>
+	<li>Änderung: Entfernung von modaler AJAX-Fehlermeldung</li>
+	<li>Feature: Support für WordPress 2.5 GUI</li>
+</ul>
+
+<h5 id="version_4_4">Version 4.4 (2008-01-29)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.4.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russische Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.0 oder höher</li>
+	<li>Bugfix: Kompatiblität mit WP-Shopping-Cart Plugin durch Umbenennung schlecht benamter Javascript Variablen</li>
+	<li>Change: Geänderte Verzeichnisstruktur</li>
+</ul>
+
+<h5 id="version_4_3">Version 4.3 (2007-12-11)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.3.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russische Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.0 oder höher</li>
+	<li>Bugfix: Anforderungen auf WordPress 2.0 oder höher gesenkt</li>
+	<li>Bugfix: Verzögerung des Ladens der übersetzten Texte für Support von Lokalisierungsplugins</li>
+	<li>Feature: Die WYSIWYG Konvertierungswarnung kann nun im Profil des Benutzers abgeschaltet werden</li>
+</ul>
+
+<h5 id="version_4_2">Version 4.2 (2007-11-03)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.2.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.2 oder höher</li>
+	<li>Change: Redesign des Sicherheitsinformationbereichs des Konfigurationsmenus</li>
+	<li>Feature: Anzeige eines Sicherheitsalarms im Sicherheitsinformationsbereich des Konfigurationsmenus</li>
+	<li>Feature: Es wird nun eine Warnung im 'Schreiben' und 'Widgets' Menu ausgegeben, falls die Blog- oder Benutzereinstellungen geschriebenen PHP Code beim Speichern zerstören würden</li>
+</ul>
+
+<h5 id="version_4_1">Version 4.1 (2007-10-27)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.1.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">Französische Übersetzung</a></li>
+	<li>Anforderungen: WordPress 2.2 oder höher</li>
+	<li>Bugfix: Die Anzeige des Konfigurationsmenus war mit einer falschen Befugnis geschützt</li>
+	<li>Bugfix: Das Konfigurationsmenu ist jetzt gültiges XHTML</li>
+	<li>Feature: Das Konfigurationsmenu zeigt nun an, welche Benutzer PHP Code schreiben und ausführen dürfen. Die Anzeige erfolgt mittels AJAX. Für WordPress Installationen mit vielen Benutzern sollte die Ladezeit der Seite trotzdem befriedigend sein</li>
+</ul>
+
+<h5 id="version_4_0">Version 4.0 (2007-10-25)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.0.zip">Plugin</a> (Englische und deutsche Übersetzung)</li>
+	<li>Anforderungen: WordPress 2.0 oder höher</li>
+	<li>Bugfix: Wenn die 'exec_php' Befugnis bei allen Rollen entfernt wird, wird die Befugnis nun automatisch wieder der Administrator Rolle zugewiesen</li>
+	<li>Change: Bei einer Neuinstallationen ist nur noch die Administrator Rolle berechtigt PHP Code auszuführen</li>
+	<li>Feature: Konfigurierbare Ausführung von PHP Code in Text-Widgets im Konfigurationsmenu. Dieses Feature funktioniert nur mit dem in WordPress 2.2 eingeführten Widget Support</li>
+</ul>
+
+<h5 id="version_3_4">Version 3.4 (2007-10-08)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.4.zip">Plugin</a></li>
+	<li>Anforderungen: WordPress 2.0 oder höher</li>
+	<li>Feature: Support für PHP Code in Text-Widgets</li>
+	<li>Feature: Support von Plugin Upgradebenachrichtigungen im 'Plugins' Menu von WordPress durch Eintragen in das <a href="http://wordpress.org/extend/plugins/exec-php/">offizielle WordPress Plugin Repository</a></li>
+</ul>
+
+<h5 id="version_3_3">Version 3.3 (2007-08-11)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.3.zip">Plugin</a></li>
+	<li>Bugfix: Entfernung von Leerzeichen um PHP Code</li>
+	<li>Bugfix: Entfernung ungenutzter Hooks für WordPress 1.x</li>
+</ul>
+
+<h5 id="version_3_2">Version 3.2 (2007-02-10)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.2.zip">Plugin</a></li>
+	<li>Bugfix: Entfernung ungenutzter Konfigurationsmenu-Hooks</li>
+</ul>
+
+<h5 id="version_3_1">Version 3.1 (2007-02-09)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.1.zip">Plugin</a></li>
+	<li>Bugfix: Entfernung des Tag-Style Konverters weil er a) das WordPress Admin Menu sehr langsam machte und b) PCRE sich als fehlerhaft und unzuverlässig erwiesen hat. Interner Vermerk: Benutze niemals wieder PCRE!</li>
+	<li>Feature: Lokalisierungssupport</li>
+	<li>Feature: Funktioniert nun auch in Newsfeeds</li>
+</ul>
+
+<h5 id="version_3_0">Version 3.0 (2006-08-06)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.0.zip">Plugin</a></li>
+	<li>Feature: Entfernung aller alternativen PHP Tag-Styles wie <code>&#91;?php ?&#93;</code> and <code>&lt; ?php ?&gt;</code>, da regex fehlerhaft und zu aufwändig zu supporten war</li>
+	<li>Feature: Entfernung von WordPress 1.x Support, da regex fehlerhaft und zu aufwändig zu supporten war</li>
+	<li>Feature: Neue Verzeichnisstruktur</li>
+	<li>Feature: Hinzugefügter Tag-Style Konverter</li>
+	<li>Feature: Nun auch PHP Code in der Kurzfassung von Artikeln</li>
+	<li>Bugfix: Durch Änderungen an der PHP Tag-Behandlung ist der Bug aus Kommentar 84 gefixt</li>
+</ul>
+
+<h5 id="version_2_0">Version 2.0 (2005-12-22)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.2.0.zip">Plugin</a></li>
+	<li>Feature: Für WordPress 2.0 ist die Ausführung von PHP Code nur Administratoren und Editoren erlaubt</li>
+	<li>Feature: Support für alternative PHP Tags <code>&#91;?php ?&#93;</code></li>
+</ul>
+
+<h5 id="version_1_2">Version 1.2 (2005-12-04)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.1.2.zip">Plugin</a></li>
+	<li>Bugfix: Test #16 funktioniert nun</li>
+</ul>
+
+<h5 id="version_1_1">Version 1.1 (2005-08-19)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.1.1.zip">Plugin</a></li>
+	<li>Bugfix: Anführungszeichen in Strings werden nun korrekt geparst</li>
+</ul>
+
+<h5 id="version_1_0">Version 1.0 (2005-08-18)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.1.0.zip">Plugin</a></li>
+	<li>Feature: Führt <code>&lt;?php ?&gt;</code> Code in deinen Beiträgen aus</li>
+</ul>
+
+<h4 id="roadmap">Roadmap</h4>
+<p>Zu diesem Zeitpunkt sind keine weiteren Features geplant. Du kannst aber gerne per <a href="http://bluesome.net/post/2005/08/18/50/#response-50">Kommentar</a> nach neuen Features fragen.</p>
+<!-- end of content -->
+
+</body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/docs/readme-generic.html	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<meta name="robots" content="noindex">
+<title>Bluesome - Exec-PHP plugin for WordPress</title>
+</head>
+<body>
+<h1>Bluesome</h1>
+<h2>Exec-PHP plugin for WordPress</h2>
+
+<!-- start of content -->
+<p>Sorry there isn't a translation of your chosen language available. <a href="readme.html">Please refer to the english documentation.</a></p>
+<!-- end of content -->
+
+</body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/docs/readme.html	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,644 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<meta name="robots" content="noindex">
+<title>Bluesome - Exec-PHP plugin for WordPress</title>
+</head>
+<body>
+<h1>Bluesome</h1>
+<h2>Exec-PHP plugin for WordPress</h2>
+
+<!-- start of content -->
+<h3>What does this plugin do?</h3>
+<p>The Exec-PHP plugin executes <code>&lt;?php ?&gt;</code> code in your posts, pages and text widgets.</p>
+
+<h3>Make it quick. Where can I download the plugin?</h3>
+<p class="marker centered"><a style="font-size: 1.5em;" href="http://bluesome.net/data/2005/08/exec-php.zip">Download Exec-PHP 4.9 here!</a></p>
+
+<h3>Why is there so much text below?</h3>
+<p>Because I hate cool plugins that are badly documented. Even the smallest piece of code needs some documentation. The following text is pretty exhaustive. Feel free to skip the sections you are not interested in. If you have a question about the plugin please first make sure you refer to the latest version and the question is not answered on this page or in the <a href="http://bluesome.net/post/2005/08/18/50/#comments-50">comments section of the plugin homepage</a>. Then - and only then - <a href="http://bluesome.net/post/2005/08/18/50/#response-50">post your question here</a>.</p><!--more-->
+
+<h3 id="toc">Table of content</h3>
+<ol>
+	<li><a href="#introduction">Introduction</a>
+		<ol>
+			<li><a href="#motivation">Motivation</a></li>
+			<li><a href="#features">Features</a></li>
+			<li><a href="#concepts">Concepts of Exec-PHP</a></li>
+			<li><a href="#difference">Difference to similar plugins</a>
+				<ol>
+					<li><a href="#sniplets">Sniplets</a></li>
+					<li><a href="#runphp_somerville">RunPHP 0.2.2 (Mark Somerville)</a></li>
+					<li><a href="#runphp_vanlommel">RunPHP 2.1.1 (James Van Lommel)</a></li>
+					<li><a href="#php_exec">PHP Exec 1.7</a></li>
+					<li><a href="#ezstatic_3">EzStatic 3</a></li>
+					<li><a href="#other_plugins">Other plugins</a></li>
+				</ol>
+			</li>
+		</ol>
+	</li>
+	<li><a href="#installation">Installation</a>
+		<ol>
+			<li><a href="#requirements">Requirements</a></li>
+			<li><a href="#install">Installing the plugin</a></li>
+			<li><a href="#upgrade">Upgrade from previous versions</a></li>
+			<li><a href="#upgrade_from_2_0">Upgrade from version 2.0 and earlier</a></li>
+			<li><a href="#upgrade_to_4_2">Upgrade to version 4.2 and above</a></li>
+			<li><a href="#deactivation">Deactivating the plugin</a></li>
+			<li><a href="#uninstall">Uninstalling the plugin</a></li>
+			<li><a href="#translation">Exec-PHP in your language</a></li>
+			<li><a href="#translating">Translating Exec-PHP</a></li>
+		</ol>
+	</li>
+	<li><a href="#usage">Usage</a>
+		<ol>
+			<li><a href="#execute_php">Executing PHP code</a></li>
+			<li><a href="#configuration">Configuration</a></li>
+			<li><a href="#misconfiguration">Misconfiguration</a></li>
+			<li><a href="#basic_test">Basic test</a></li>
+			<li><a href="#tag_balancing">WordPress' XHTML tag balancing</a></li>
+			<li><a href="#wysiwyg_editor">Writing PHP code with the WYSIWYG editor</a></li>
+			<li><a href="#allow_writing">Allowing PHP code to be written in articles</a></li>
+			<li><a href="#allow_execution">Allowing PHP code execution in articles</a></li>
+			<li><a href="#allow_widget">Allowing PHP code in text widgets</a></li>
+			<li><a href="#wp_configuration">Overview of tasks and their required WordPress configuration</a></li>
+			<li><a href="#security">A word about security</a></li>
+			<li><a href="#security_holes">Security holes</a></li>
+		</ol>
+	</li>
+	<li><a href="#troubleshooting">Troubleshooting</a>
+		<ol>
+			<li><a href="#incompatibilities">Incompatibilities to other plugins or themes</a></li>
+			<li><a href="#limitations">Limitations</a></li>
+			<li><a href="#bugs">Reporting bugs</a></li>
+			<li><a href="#tests">Tests to assert plugins functionality</a></li>
+			<li><a href="#faq">FAQ - Frequently asked questions</a>
+				<ol>
+					<li><a href="#generallybroken">Why doesn't the Exec-PHP plugin work as described here?</a></li>
+					<li><a href="#brokentag">Why does WordPress mess' up my <code>&lt;?php ?&gt;</code> tags after saving the article?</a></li>
+					<li><a href="#evalerror">Why does the plugin fail with an <code>eval()</code> error when executing my code?</a></li>
+					<li><a href="#printcode">How can I just print out PHP code and don't execute it?</a></li>
+					<li><a href="#already_defined">Why does my newsfeed spits out parsing errors?</a></li>
+					<li><a href="#globals">Why does my included PHP file causes parsing errors?</a></li>
+					<li><a href="#wordpressmu">Does the plugin works with WordPress MU?</a></li>
+					<li><a href="#create_site">How do you create the plugin homepage?</a></li>
+				</ol>
+			</li>
+		</ol>
+	</li>
+	<li><a href="#past_present_future">Past, present and future</a>
+		<ol>
+			<li><a href="#new_versions">New versions</a></li>
+			<li><a href="#history">History of older versions</a>
+				<ol>
+					<li><a href="#version_4_9">Version 4.9 (2009-01-07)</a></li>
+					<li><a href="#version_4_8">Version 4.8 (2008-07-05)</a></li>
+					<li><a href="#version_4_7">Version 4.7 (2008-05-05)</a></li>
+					<li><a href="#version_4_6">Version 4.6 (2008-04-06)</a></li>
+					<li><a href="#version_4_5">Version 4.5 (2008-03-24)</a></li>
+					<li><a href="#version_4_4">Version 4.4 (2008-01-29)</a></li>
+					<li><a href="#version_4_3">Version 4.3 (2007-12-11)</a></li>
+					<li><a href="#version_4_2">Version 4.2 (2007-11-03)</a></li>
+					<li><a href="#version_4_1">Version 4.1 (2007-10-27)</a></li>
+					<li><a href="#version_4_0">Version 4.0 (2007-10-25)</a></li>
+					<li><a href="#version_3_4">Version 3.4 (2007-10-08)</a></li>
+					<li><a href="#version_3_3">Version 3.3 (2007-08-11)</a></li>
+					<li><a href="#version_3_2">Version 3.2 (2007-02-10)</a></li>
+					<li><a href="#version_3_1">Version 3.1 (2007-02-09)</a></li>
+					<li><a href="#version_3_0">Version 3.0 (2006-08-06)</a></li>
+					<li><a href="#version_2_0">Version 2.0 (2005-12-22)</a></li>
+					<li><a href="#version_1_2">Version 1.2 (2005-12-04)</a></li>
+					<li><a href="#version_1_1">Version 1.1 (2005-08-19)</a></li>
+					<li><a href="#version_1_0">Version 1.0 (2005-08-18)</a></li>
+				</ol>
+			</li>
+			<li><a href="#roadmap">Roadmap</a></li>
+		</ol>
+	</li>
+</ol>
+
+<h3 id="introduction">Introduction</h3>
+
+<h4 id="motivation">Motivation</h4>
+<p>When I was in need of a PHP plugin for my WordPress blog back in 2005, there was no plugin available that allowed me to write PHP code the way I was used to. For example some plugins required the PHP code to be encapsulated in XHTML tags like <code>&lt;phpcode&gt; &lt;/phpcode&gt;</code>. This differed from the usual way you write PHP code where you only use <code>&lt;?php ?&gt;</code>. Some of the plugins evaluated the code after WordPress applied some filters like texturize. So it also texturized the PHP code and the plugins had to undo the texturize just for the code part. For more complex code this can not be done correctly because of ambiguity and often led into parsing errors even if the code was syntactically correct.</p>
+
+<h4 id="features">Features</h4>
+<ul>
+	<li><a href="#execute_php">Executes PHP code in the excerpt and the content portion of your posts and pages</a></li>
+	<li><a href="#allow_widget">Configurable execution of PHP code in text widgets (for WordPress 2.2 or higher)</a></li>
+	<li><a href="#basic_test">Write PHP code in familiar syntax, e.g. <code>&lt;?php ... ?&gt;</code></a></li>
+	<li><a href="#execute_php">Works in your newsfeeds</a></li>
+	<li><a href="#configuration">Information about which user is allowed to execute PHP with the current security settings (for WordPress 2.1 or higher)</a></li>
+	<li><a href="#execute_php">Configurable user warnings for inappropriate blog and user settings (for WordPress 2.1 or higher)</a></li>
+	<li><a href="#wp_configuration">Restrict execution of PHP code in posts and pages to certain users by using roles and capabilities</a></li>
+	<li><a href="http://wordpress.org/extend/plugins/exec-php/">Update notifications through the 'Plugins' menu in WordPress if a new version of the Exec-PHP plugin is available (for WordPress 2.3 or higher)</a></li>
+	<li><a href="#translation">Internationalization support (english and german included, many more available)</a></li>
+	<li><a href="#toc">Comes with documentation</a></li>
+</ul>
+
+<h4 id="concepts">Concepts of Exec-PHP</h4>
+<p>Technically Exec-PHP executes code inside of arbitrary text by wrapping the whole text into <code>?&gt; &lt;?php</code> tags and hand it over to the PHP <a href="http://de.php.net/manual/en/function.eval.php"><code>eval()</code></a> function. This requires that the executable code itself is encapsulated into <code>&lt;?php ?&gt;</code> tags. By that no parsing of your code needs to be done by the plugin itself.</p>
+
+<h4 id="difference">Difference to similar plugins</h4>
+<p>There are a lot of PHP plugins available all doing slightly different things. The following list was gathered back in the beginning of 2007 and may not be complete and probably outdated because some of the plugins may have been updated, including more features. Therefore the names of the compared plugins are given including the version number.</p>
+
+<h5 id="sniplets">Sniplets</h5>
+<p>The <a href="http://urbangiraffe.com/plugins/sniplets/">Sniplets</a> plugin by John Godley seems to be a good alternative to Exec-PHP. Although it is harder to configure than Exec-PHP, you may gain some improvements in security due to the way the Sniplets plugin is working.</p>
+
+<h5 id="runphp_somerville">RunPHP 0.2.2 (Mark Somerville)</h5>
+<p>The <a href="http://mark.scottishclimbs.com/2004/7/2/running-php-in-wordpress-posts/">RunPHP</a> plugin by Mark Somerville uses XHTML tag syntax to separate code from HTML. It does strange conversions to &quot;fix&quot; texturized posts and does not support WordPress' 2.x roles and capabilites system.</p>
+
+<h5 id="runphp_vanlommel">RunPHP 2.1.1 (James Van Lommel)</h5>
+<p>The <a href="http://www.nosq.com/blog/2006/01/runphp-plugin-for-WordPress/">RunPHP</a> plugin by James Van Lommel creates parsing errors with most of the <a href="#tests">test code below</a>.</p>
+
+<h5 id="php_exec">PHP Exec 1.7</h5>
+<p>The <a href="http://priyadi.net/archives/2005/03/02/WordPress-php-exec-plugin/">PHP Exec</a> plugin by Priyadi Iman Nurcahyo uses XHTML tag syntax to separate code from HTML. It does strange conversions to &quot;fix&quot; texturized posts.</p>
+
+<h5 id="ezstatic_3">EzStatic 3</h5>
+<p>The <a href="http://redalt.com/wiki/EzStatic3">EzStatic 3</a> plugin by Owen Winkler does not execute test #16 (<a href="#tests">see below</a>).</p>
+
+<h5 id="other_plugins">Other plugins</h5>
+<p>Nowadays there are a lot of similar plugins around that I am simply to lazy to write some further text to. If Exec-PHPs functionality does miss some feature you are desperatly seeking, you may want to take a look on one of the various WordPress plugin databases or <a href="http://bluesome.net/post/2005/08/18/50/#response-50">drop a feature request</a>.</p>
+
+<h3 id="installation">Installation</h3>
+
+<h4 id="requirements">Requirements</h4>
+<p>You need the following software to be installed on your webserver in order to run the Exec-PHP plugin:</p>
+<ul>
+	<li><a href="http://WordPress.org">A running installation of WordPress 2.0.11 or higher</a></li>
+	<li><a href="http://bluesome.net/data/2005/08/exec-php.zip">The Exec-PHP plugin</a> ;-)</li>
+	<li><a href="http://im-web-gefunden.de/wordpress-plugins/role-manager/">Optional: The Role Manager plugin by Thomas Schneider</a></li>
+</ul>
+
+<h4 id="install">Installing the plugin</h4>
+<p>If you have ever installed a WordPress plugin, then installation will be pretty easy:</p>
+<ul>
+	<li><a href="http://bluesome.net/data/2005/08/exec-php.zip">Download the Exec-PHP plugin archive and extract the files</a></li>
+	<li>Copy the resulting <code>exec-php</code> directory into <code>/wp-content/plugins/</code></li>
+	<li>Activate the plugin through the 'Plugins' menu of WordPress (after a fresh installation only the Administrator is allowed to execute PHP code)</li>
+	<li><a href="#execute_php">Configure blog and user settings if needed</a></li>
+</ul>
+<p>Finished. The rest is self-explanatory. ;-)</p>
+
+<h4 id="upgrade">Upgrade from previous versions</h4>
+<p>Usually if not specifically mentioned on this page you can upgrade from a previous version of this plugin by simply <a href="#uninstall">uninstalling the plugin</a> and afterwards <a href="#install">follow the installation instructions</a>. Note that an upgrade may implicitly migrate settings of an older plugin version. Therefore you will not be able to downgrade back to an older version of the plugin.</p>
+
+<h4 id="upgrade_from_2_0">Upgrade from version 2.0 and earlier</h4>
+<p>Because directory layout has changed, you have to remove your old <code>exec-php.php</code> file from your <code>/wp-content/plugins/</code> directory manually and afterwards <a href="#install">follow the installation instructions</a>. If you have used the alternative styled tags <code>[?php ?]</code> or you have used the old PHP tag formats of <code>&lt; ?php ?&gt;</code> (notice the space) or <code>&lt;? ?&gt;</code> you have to migrate all of these into the format of <code>&lt;?php ?&gt;</code>. You can either do this manually or use the <a href="http://thedeadone.net/software/search-and-replace-wordpress-plugin/">Search and Replace</a> plugin. Since version 3.1 an automatic migration isn't supported anymore for certain reasons.</p>
+
+<h4 id="upgrade_to_4_2">Upgrade to version 4.2 and above</h4>
+<p>Depending on your previously installed Exec-PHP version, you may receive an Exec-PHP security alert in your admin menu. <a href="#security_holes">Read this section to solve this issue</a>.</p>
+
+<h4 id="deactivation">Deactivating the plugin</h4>
+<p>Deactivating the plugin will most likely cause your articles and widgets that contain PHP code to display messed up and may display almost all of your PHP code to your readers. Because of that your PHP code shouldn't contain sensible data e.g. passwords.</p>
+
+<h4 id="uninstall">Uninstalling the plugin</h4>
+<p>For uninstalling the plugin simply delete the <code>exec-php</code> directory from the <code>/wp-content/plugins/</code> directory. You even don't need to deactivate the plugin in the WordPress admin menu. <a href="#deactivation">Read this topic</a> if you want to know what happens to your written PHP code in this case.</p>
+
+<h4 id="translation">Exec-PHP in your language</h4>
+<p>At the moment the english and german translation ships with the Exec-PHP archive. Further translations for the current version are available for:</p>
+<ul>
+	<li>English (default, ships with the Exec-PHP plugin archive)</li>
+	<li>German (ships with the Exec-PHP plugin archive)</li>
+	<li><a href="http://liseweb.fr/BLOG/?page_id=160">French</a> (thanks to <a href="http://liseweb.fr/">Lise</a>)</li>
+	<li><a href="http://gidibao.net/index.php/2008/05/07/exec-php-in-italiano/">Italian</a> (thanks to <a href="http://gidibao.net/">Gianni</a>)</li>
+	<li><a href="http://dimox.name/exec-php-russian-translation/">Russian</a> (thanks to <a href="http://dimox.name/">Dimox</a>)</li>
+	<li><a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanish</a> (thanks to <a href="http://www.cabai.com.ar/">Diego</a>)</li>
+	<li><a href="http://www.wordthai.com/index.php?topic=34.0">Thai</a> (thanks to <a href="http://www.wordthai.com/index.php?action=profile;u=1">kazama</a>)</li>
+</ul>
+
+<h4 id="translating">Translating Exec-PHP</h4>
+<p>If you like to see Exec-PHP in a language not listed above, get the Exec-PHP archive and use a tool like <a href="http://www.poedit.net/">poedit</a> to translate the <code>languages/exec-php.pot</code> file. If you are a really tough, you can also translate this <code>readme.html</code> file aswell. If this is to much work, just translate the <code>readme-generic.html</code> file. Save the readme as <code>readme-&lt;locale&gt;.html</code> and put it all into a Zip archive named <code>exec-php-&lt;locale&gt;.zip</code>. Here <code>&lt;locale&gt;</code> is the shortcut of your language. For the german translation this would be 'de_DE'. The resulting Zip archive would therefore be named <code>exec-php-de_DE.zip</code>. The archive must not contain more than the following files:</p>
+<ul>
+	<li><code>exec-php/docs/readme-&lt;locale&gt;.html</code></li>
+	<li><code>exec-php/docs/screenshot-1-&lt;locale&gt;.png</code> (optional)</li>
+	<li><code>exec-php/docs/screenshot-2-&lt;locale&gt;.png</code> (optional)</li>
+	<li><code>exec-php/docs/screenshot-3-&lt;locale&gt;.png</code> (optional)</li>
+	<li><code>exec-php/languages/exec-php-&lt;locale&gt;.mo</code></li>
+	<li><code>exec-php/languages/exec-php-&lt;locale&gt;.po</code> (optional)</li>
+</ul>
+Afterwards upload the archive to your site and write a comment at the <a href="http://bluesome.net/post/2005/08/18/50/#comments-50">comments of the plugin homepage</a> and you will be mentioned in the credits.</p>
+<p>In case you also provide translation for previous Exec-PHP versions, also link them on your page with the name <code>exec-php-&lt;locale&gt;.&lt;version&gt;.zip</code>. E.g. <code>exec-php.de_DE.4.2.zip</code> for the german translation of Exec-PHP 4.2.</p>
+
+<h3 id="usage">Usage</h3>
+
+<h4 id="execute_php">Executing PHP code</h4>
+<p>With Exec-PHP you can execute PHP code in the excerpt and the content portion of your posts and pages (in the following called articles) as also as in text widgets. To execute code, just type in the PHP code as you usually would, encapsulated in <code>&lt;?php ?&gt;</code> tags.</p>
+<p>Writing code in articles or text widgets may require some further tuning to the blog and user settings. To have the plugin work properly with PHP code in the content of a users article, do as follows:</p>
+<ul>
+	<li><a href="#tag_balancing">Disable tag balancing 'WordPress should correct invalidly nested XHTML automatically' through the 'Settings &gt; Write' menu in WordPress</a></li>
+	<li><a href="#wysiwyg_editor">Disable the WYSIWYG editor in the user's settings through the 'Users &gt; Your Profile' menu</a></li>
+	<li><a href="#allow_writing">Assign the 'unfiltered_html' capability to the user</a></li>
+	<li><a href="#allow_execution">Assign the 'exec_php' capability to the user</a></li>
+</ul>
+
+<h4 id="configuration">Configuration</h4>
+<p>The plugin comes with its own configuration menu that is accessible through 'Settings &gt;  Exec-PHP'. The configuration menu is only accessible for users that do have the 'edit_plugins' capability. This is usually only assigned to the Blog Administrator. If you have disabled Javascript or you are running Exec-PHP with WordPress 2.0.x you will not see or only see parts of the plugin configuration menu.</p>
+<p>The configuration menu is divided into two parts, the Settings section and the Information section. In the Settings section you can <a href="#allow_widget">adjust the plugin's behavior</a> to your needs while the Information section <a href="#security_holes">shows which users are allowed to execute PHP code</a>.</p>
+<p><a href="../docs/screenshot-1.png"><img src="../docs/screenshot-1.png" alt="The Exec-PHP configuration menu" /></a></p>
+
+<h4 id="misconfiguration">Misconfiguration</h4>
+<p>If the blog or user settings are not appropriate to write PHP code, you will get a warning on the 'Write' dialog or 'Widgets' menu respectivly.</p>
+<p><a href="../docs/screenshot-2.png"><img src="../docs/screenshot-2.png" alt="An Exec-PHP warning in the 'Write' menu" /></a></p>
+<p>The WYSIWYG Convesion Warning can be turned off through the 'Users &gt; Your Profile' menu. Nevertheless, this is not the recommended way, because this can cause you to accidently render PHP code in articles permanently unuseful.</p>
+<p><a href="../docs/screenshot-3.png"><img src="../docs/screenshot-3.png" alt="Exec-PHP warning configuration in the 'Users &gt; Your Profile' menu" /></a></p>
+<p>If you have disabled Javascript or you are running Exec-PHP with WordPress 2.0.x you will not receive any warnings even if your blog or user settings are not configured appropriately to run Exec-PHP.</p>
+
+<h4 id="basic_test">Basic test</h4>
+<p>For validating, that the plugin works properly, log in as Administrator, <a href="#execute_php">apply the settings listed above</a> and create a new article and write the following text:</p>
+<pre><code code-lang="php">&lt;?php echo "This is the Exec-PHP 'Hello World'"; ?&gt;</code></pre>
+<p>This should always work. When displaying the post and everything works fine, you should see:</p>
+<pre><code>This is the Exec-PHP 'Hello World'</code></pre>
+
+<h4 id="tag_balancing">WordPress' XHTML tag balancing</h4>
+<p>Depending on your PHP code it may be necessary to turn off WordPress' built in XHTML tag balancing if the code is written in the content of an article. This can be done through the setting 'WordPress should correct invalidly nested XHTML automatically' on the 'Settings &gt; Write' menu in WordPress. If in question, better turn this option off. An alternative to turning this option off may be to install the <a href="http://wp.uberdose.com/2006/10/15/mime-type-plugin/">Mime Type Plugin</a> and use the mime type <code>text/html</code> individually on each article that contains PHP.</p>
+
+<h4 id="wysiwyg_editor">Writing PHP code with the WYSIWYG editor</h4>
+<p>To successfully write PHP code in the content of an article, the WYSIWYG editor needs to be turned off through the 'Users &gt; Your Profile' menu. It is not enough to simply keep the WYSIWYG editor on, switch to the 'Code' tab of the editor in the 'Write' menu and save the article. This will render all contained PHP code permanently unuseful.</p>
+<p>Instead of turining off the WYSIWYG editor in your user profile you can temporarily disable it for certain articles by using the <a href="http://wordpress.org/extend/plugins/deactive-visual-editor/">Deactivate Visual Editor</a> plugin. I haven't tested it but it sounds like a reasonable solution for you guys that like to use the WYSIWYG editor.</p>
+<p>If you still are in need of writing PHP code with the TinyMCE WYSIWYG editor, you may want to experiment with <a href="http://tinymce.moxiecode.com/punbb/viewtopic.php?id=3646">some TinyMCE plugins that may allow to write PHP code</a>. Such experiments are outside of the scope of this plugin. From my point of view there is a general requirements conflict when you are in need of writing PHP code with any kind of WYSIWYG editor. Therefore it is not planned to natively support writing PHP code in the WYSIWYG editor for any upcoming release of the Exec-PHP plugin.</p>
+
+<h4 id="allow_writing">Allowing PHP code to be written in articles</h4>
+<p>Before executing PHP code, the user needs to write it first. ;-) A user may experience problems in writing PHP code in the content of an article, because in the way that WordPress will rewrite the code (and therefore will break it for later execution) during saving the article. This is because the user also needs the 'unfiltered_html' capability assigned to.</p>
+<p>Assigning capabilities to roles or users is out of the scope of this plugin. Because WordPress has no built-in configuration menu in the admin menu to assign roles/capabilities, you need to install one of the available role/capability manager plugins as the one <a href="#requirements">mentioned in the requirements</a>.</p>
+
+<h4 id="allow_execution">Allowing PHP code execution in articles</h4>
+<p>After installation, execution of PHP code is limited to the Administrator role by default. By assigning the 'exec_php' capability to another role or user will allow them to execute PHP code in their posts.</p>
+<p>Assigning capabilities to roles or users is out of the scope of this plugin. Because WordPress has no built-in configuration menu in the admin menu to assign roles/capabilities, you need to install one of the available role/capability manager plugins as the one <a href="#requirements">mentioned in the requirements</a>.</p>
+
+<h4 id="allow_widget">Allowing PHP code in text widgets</h4>
+<p>By default execution of PHP code in widgets is activated. Any user who has the 'switch_themes' capability can write and execute PHP code in text widgets. Because this may be a security issue, you may want to disable PHP code execution in widgets through the plugin configuration menu.</p>
+
+<h4 id="wp_configuration">Overview of tasks and their required WordPress configuration</h4>
+<p>The following matrix shows which settings need to be applied to perform specific tasks with the plugin:</p>
+<table>
+<tr><th style="text-align:center;"><strong>Task</strong></th><th style="text-align:center;"><strong><a href="#tag_balancing">Disable tag balancing</a></strong></th><th style="text-align:center;"><strong><a href="#wysiwyg_editor">Disable WYSIWYG editor</a></strong></th><th style="text-align:center;"><strong><a href="#allow_execution">Assign 'exec_php' cap</a></strong></th><th style="text-align:center;"><strong><a href="#allow_writing">Assign 'unfiltered_html' cap</a></strong></th><th style="text-align:center;"><strong><a href="#allow_widget">Assign 'switch_themes' cap</a></strong></th></tr>
+<tr><td>Write/edit PHP code in content of articles</td><td style="text-align:center;"><strong>X</strong></td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td></tr>
+<tr><td>Execute PHP code in content of articles</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td><td>&nbsp;</td></tr>
+<tr><td>Write/edit PHP code in excerpt of articles</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td></tr>
+<tr><td>Execute PHP code in excerpt of articles</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td>&nbsp;</td><td>&nbsp;</td></tr>
+<tr><td>Write/edit PHP code in widgets</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td><td style="text-align:center;"><strong>X</strong></td></tr>
+<tr><td>Execute PHP code in widgets</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:center;"><strong>X</strong></td></tr>
+</table>
+<p>To make things clear: If a user wants to write a new article and want to execute PHP code inside of its content, he needs to have both - the 'exec_php' and 'unfiltered_html' - capabilities assigned to. Otherwise the PHP code will get messed up during saving the article and the raw PHP code itself will be displayed instead of executing it.</p>
+<p>For writing and executing code in the excerpt of an article, the user only needs the 'unfiltered_html' capability.</p>
+<p>If a user wants to write PHP code inside of a text widget, he only needs the 'unfiltered_html' capability. The execution of PHP code inside of widgets is not restricted by any capability. This means that every user of your blog who can write widgets - which is restricted by the 'switch_themes' capability - can execute PHP code.</p>
+
+<h4 id="security">A word about security</h4>
+<p>By using this plugin a user can use the full PHP API and WordPress API. There are no restrictions to execute only certain subsets of functionality. Allowing your users to write and execute PHP code will expose your WordPress installation in specific and your server installation in general. By that a user can easily take over your blog, your server or the whole internet (just kidding about the last one). If in doubt, don't allow a user to execute PHP code. This can be easily <a href="#allow_execution">adjusted on a per user base</a>.</p>
+
+<h4 id="security_holes">Security holes</h4>
+<p>Depending on your configuration, you may receive a security alert that will point you to <a href="#configuration">the 'Security hole' Information section of the plugin configuration menu</a>. This is because you have users defined in your blog (typically called Editors), that are allowed to edit others users articles. If the Editor is not allowed to execute PHP code but the user that the Editor is allowed to edit its articles, then the Editor can add malicious PHP code in this users article.</p>
+<p>To solve this issue, the Exec-PHP plugin introduces the 'edit_others_php' capability. It is advised to either assign both or none of the 'exec_php' and 'edit_others_php' capability to your editors. You probably want to split the current Editor role into two different Editor roles, one that is allowed to execute and edit other PHP code, and the second that isn't.</p>
+
+<h3 id="troubleshooting">Troubleshooting</h3>
+
+<h4 id="incompatibilities">Incompatibilities to other plugins or themes</h4>
+<p>Currently there are no known incompatibilities to other plugins or themes.</p>
+
+<h4 id="limitations">Limitations</h4>
+<p>Besides of limitations with the <a href="#wysiwyg_editor">WYSIWYG editor mentioned above</a>, there currently are no known issues.</p>
+
+<h4 id="bugs">Reporting bugs</h4>
+<p>You can <a href="http://bluesome.net/post/2005/08/18/50/#response-50">post bug reports to the comments</a>. Before doing this make sure your PHP script is running properly in a separate file. If it does, assure that you did not hit the <a href="#globals">&quot;Globals&quot; issue</a>. If you still think it's a bug in the plugin, during writing of the bug report keep in mind that WordPress' commenting system is not build to write unescaped code. So better convert the code to the correct XHTML entities before commenting here. Alternativly point to your code using an external link or <a href="http://bluesome.net/post/author/soeren/#contact-2">get in contact with me by using the contact form of my author page</a>.</p>
+
+<h4 id="tests">Tests to assert plugins functionality</h4>
+<p>Following is a list of tests that were made to assert the plugins functionality. On the left side the PHP code taken directly from the tests is written. On the right side the live output generated by the Exec-PHP plugin is shown. If you view this documentation as a static HTML file obviously the PHP code isn't executed and will look messy. Because of the content of this test, this page will not verify as XHTML. If you think, your favorite PHP plugin is better than this one, try out all the tests below and see if this works correctly.</p>
+<table width="100%" cellspacing="5px">
+<tr><th><strong>#</strong></th><th><strong>Code</strong></th><th><strong>Output</strong></th></tr>
+<tr><td>1</td><td><pre><code code-lang="php">&lt;?php ?&gt;</code></pre></td><td><?php ?></td></tr>
+<tr><td>2</td><td><pre><code code-lang="php">&lt;?php echo "a?&gt;1"; ?&gt;</code></pre></td><td><?php echo "a?>1"; ?></td></tr>
+<tr><td>3</td><td><pre><code code-lang="php">&lt;?php echo 'b?&gt;1'; ?&gt;</code></pre></td><td><?php echo 'b?>1'; ?></td></tr>
+<tr><td>4</td><td><pre><code code-lang="php">&lt;?php echo "a?&gt;2"; ?&gt;</code></pre></td><td><?php echo "a?>2"; ?></td></tr>
+<tr><td>5</td><td><pre><code code-lang="php">&lt;?php echo 'b?&gt;2'; ?&gt;</code></pre></td><td><?php echo 'b?>2'; ?></td></tr>
+<tr><td>6</td><td><pre><code code-lang="php">&lt;?php?&gt;</code></pre></td><td><?php?></td></tr>
+<tr><td>7</td><td><pre><code code-lang="php">&lt;?php echo"a?&gt;3";?&gt;</code></pre></td><td><?php echo"a?>3";?></td></tr>
+<tr><td>8</td><td><pre><code code-lang="php">&lt;?php echo'b?&gt;3';?&gt;</code></pre></td><td><?php echo'b?>3';?></td></tr>
+<tr><td>9</td><td><pre><code code-lang="php">&lt;?php echo"a?&gt;4";?&gt;</code></pre></td><td><?php echo"a?>4";?></td></tr>
+<tr><td>10</td><td><pre><code code-lang="php">&lt;?php echo'b?&gt;4';?&gt;</code></pre></td><td><?php echo'b?>4';?></td></tr>
+<tr><td>11</td><td><pre><code code-lang="php">&lt;?php echo "c";?&gt;1";?&gt;</code></pre></td><td><?php echo "c";?>1";?></td></tr>
+<tr><td>12</td><td><pre><code code-lang="php">&lt;?php echo 'd';?&gt;1';?&gt;</code></pre></td><td><?php echo 'd';?>1';?></td></tr>
+<tr><td>13</td><td><pre><code code-lang="php">&lt;?php echo "c';?&gt;2";?&gt;</code></pre></td><td><?php echo "c';?>2";?></td></tr>
+<tr><td>14</td><td><pre><code code-lang="php">&lt;?php echo 'd";?&gt;3';?&gt;</code></pre></td><td><?php echo 'd";?>3';?></td></tr>
+<tr><td>15</td><td><pre><code code-lang="php">&lt;?php
+echo "impressive\n '";
+echo 'string\' "';
+echo "\n\thandling\"";
+?&gt;</code></pre></td>
+<td><?php
+echo "impressive\n '";
+echo 'string\' "';
+echo "\n\thandling\"";
+?></td></tr>
+<tr><td>16</td><td><pre><code code-lang="php">&lt;?php if (1) { ?&gt;
+&lt;b&gt;Handle THIS!&lt;/b&gt;
+&lt;?php } else { ?&gt;
+&lt;i&gt;Handle THAT!&lt;/i&gt;
+&lt;?php } ?&gt;
+</code></pre></td>
+<td><?php if (1) { ?>
+<b>Handle THIS!</b>
+<?php } else { ?>
+<i>Handle THAT!</i>
+<?php } ?></td></tr>
+</table>
+
+<h4 id="faq">FAQ - Frequently asked questions</h4>
+
+<h5 id="generallybroken">Why doesn't the Exec-PHP plugin work as described here?</h5>
+<p>If the plugin does not work as described on this site although you <a href="#execute_php">configured your blog and user settings properly</a> then it is very likely that a different plugin is interfering with Exec-PHPs functionality. To boil things down, deactivate <em>all</em> other plugins beside Exec-PHP and see if the malfunction has gone away.</p>
+
+<h5 id="brokentag">Why does WordPress mess' up my <code>&lt;?php ?&gt;</code> tags after saving the article?</h5>
+<p><a href="http://en.wikipedia.org/wiki/Rtfm">RTFM</a>. <a href="#execute_php">Read this</a>.</p>
+
+<h5 id="evalerror">Why does the plugin fail with an <code>eval()</code> error when executing my code?</h5>
+<p>If you experience a PHP error message like <code>'Some error in /home/minime/htdocs/blog/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 666'</code> then it's time to repair your PHP code. If you are unsure where your code breaks, first run it in a separate file to punch out all bugs and afterwards copy the code into your article or widget. To reduce the noise in the <a href="http://bluesome.net/post/2005/08/18/50/#comments-50">comments section of the plugin homepage</a> I will delete all entries refering to this topic.</p>
+
+<h5 id="printcode">How can I just print out PHP code and don't execute it?</h5>
+<p>If you just want to print out code and don't want to execute it, e.g. like it is done here on this page, you have to make sure to convert your code to the correct XHTML representation. To do so you have to escape the following characters: <code>&lt;</code> to <code>&amp;lt;</code>, <code>&gt;</code> to <code>&amp;gt;</code> and <code>&amp;</code> to <code>&amp;amp;</code>. You can do this conversion in a semi automated fashion by using the <a href="http://www.village-idiot.org/archives/2006/04/09/wp-simplecode/">WP-Simplecode</a> plugin.</p>
+
+<h5 id="already_defined">Why does my newsfeed spits out parsing errors?</h5>
+<p>Assume your code is working outside an article. The PHP parser may still spit out error messages in your newsfeed but not if you are viewing your article even if everything seems to be correct. This will happen if you have defined your own functions, classes, etc. For the newsfeeds WordPress will read the content of each article twice (once for the summary and once for the whole article) and so causing the PHP code to be executed twice. For example the following code in your article would work if you view the article on your webpage but would cause your newsfeed to break:</p>
+<p>Article:</p>
+<pre><code code-lang="php">&lt;?php
+function hello()
+{
+  echo 'Hello World';
+}
+hello();
+?&gt;</code></pre>
+<p>As a general rule I would advise to separate all definitions into a file and reference to it by calling <code>require_once()</code>. So the above example would be split into two parts, your article and a file.</p>
+<p>Article:</p>
+<pre><code code-lang="php">&lt;?php
+require_once(ABSPATH. 'example.php');
+hello();
+?&gt;</code></pre>
+<p>File (here example.php):</p>
+<pre><code code-lang="php">&lt;?php
+function hello()
+{
+  echo 'Hello World';
+}
+?&gt;</code></pre>
+<p>Please note that <code>require_once()</code> is using a fully qualified path. This is mandatory because depending on the context of the viewer a relative path would point to different locations e.g. for viewing your main blog page, viewing a single post, viewing the newsfeed, etc.</p>
+
+<h5 id="globals">Why does my included PHP file causes parsing errors?</h5>
+<p>Assume your included code is working outside an article and the path to the include file is correct. The PHP parser may still spit out error messages even if everything seems to be correct. This can happen when your included file assumes it runs on global scope level and does not use the keyword <code>global</code> to declare its global variables. As example create a new article with the following code:</p>
+<p>Article:</p>
+<pre><code code-lang="php">&lt;?php require_once(ABSPATH. 'example.php'); ?&gt;</code></pre>
+<p>After that copy the following code into a new file named <code>example.php</code> and store it in your webservers root directory:</p>
+<p>File (here example.php):</p>
+<pre><code code-lang="php">&lt;?php
+$g_text = 'Hello World';
+function hello()
+{
+  global $g_text;
+  echo $g_text;
+}
+hello();
+?&gt;</code></pre>
+<p>Although the file <code>example.php</code> will execute fine if you just access the file directly, this test will end up in unexpected behaviour because assigning a value to the <code>$g_text</code> variable hasn't taken place in global scope in terms of the used WordPress hook to execute your code. This is because of how WordPress works and there is no way to handle this in the plugin. You can work around this problem by adding the following PHP code into your post before the include statement or into the file you want to include at the very beginning:</p>
+<pre><code code-lang="php">global $g_text;</code></pre>
+<p>No need to say, you have to do this for each global variable where this wasn't already done by the original programmer of the code. Another way would be to contact the original programmer and kindly ask him to change his code.</p>
+
+<h5 id="wordpressmu">Does the plugin works with WordPress MU?</h5>
+<p>WordPress is not WordPress MU. The plugin was written for WordPress but it may probably also work with WordPress MU. If you want to provide a patch to increase compatiblity with WordPress MU, I will be happy to incooperate it in the next official plugin release.</p>
+
+<h5 id="create_site">How do you create the plugin homepage?</h5>
+<p>Glad you've asked. This is a great use case to show you what can be achieved by the Exec-PHP plugin. The <a href="http://bluesome.net/post/2005/08/18/50/">plugin homepage</a> is basically a WordPress post running a PHP script thru Exec-PHP that reads and parses the readme.html that comes with the Exec-PHP installation. By that, when I release a new plugin version, I only have to upload the plugin files to the webserver. The documentation will be updated automatically on the plugin homepage. The complete code is:</p>
+<pre><code code-lang="php" set_header_type="GESHI_HEADER_NONE" start_line_numbers_at="3" enable_line_numbers="GESHI_TABLED_LINE_NUMBERS">&lt;?php
+// read readme.html depending on locale; plugin translation not yet loaded
+global $wp_version;
+if (version_compare($wp_version, '2.6.dev') >= 0)
+  load_plugin_textdomain(ExecPhp_PLUGIN_ID,
+    false, ExecPhp_HOMEDIR. '/languages');
+else
+  load_plugin_textdomain(ExecPhp_PLUGIN_ID,
+    ExecPhp_PLUGINDIR. '/'. ExecPhp_HOMEDIR. '/languages');
+
+$doc_dir = ExecPhp_HOME_URL. '/docs/';
+$doc_filename = ExecPhp_HOME_DIR. '/docs/'. __s('readme.html', ExecPhp_PLUGIN_ID);
+$content = file_get_contents($doc_filename);
+
+// strip HTML header
+$content = preg_replace('/^.*&lt;!\-\-\s*start of content\s*\-\-&gt;/is',
+  '', $content);
+
+// strip HTML footer depending whether viewing the whole post or only
+// the excerpt
+$pattern = '/&lt;!\-\-\s*more\s*\-\-&gt;.*$/is';
+if (is_single())
+  $pattern = '/&lt;!\-\-\s*end of content\s*\-\-&gt;.*$/is';
+$content = preg_replace($pattern, '', $content);
+
+// eval readme.html to generate output of test cases
+ob_start();
+eval(" ?&gt; $content &lt;?php ");
+$content = ob_get_contents();
+ob_end_clean();
+
+// adjust relative image links
+$content = preg_replace('/&lt;img\s+src\s*=\s*([\'\"])/is',
+  '&lt;img src=\1'. $doc_dir, $content);
+$content = preg_replace('/&lt;a\s+href\s*=\s*([\'\"])\s*([^\1p]+\.png\s*\1)/isU',
+  '&lt;a href=\1'. $doc_dir. '\2', $content);
+
+// done
+echo $content;
+?&gt;</code></pre>
+
+<h3 id="past_present_future">Past, present and future</h3>
+
+<h4 id="new_versions">New versions</h4>
+<p>New versions may come out from time to time including new features or bugfixes. You can keep track of the plugins development by manually checking or subscribing to the <a href="http://bluesome.net/post/2005/08/18/50/#comments-50">comments</a>. Since WordPress 2.3 you will also be noticed about plugin upgrades through the 'Plugins' menu in WordPress.</p>
+<p>New releases will always justify the code and will cause the version number to be increased. Nevertheless the downloadable archive may change from time to time without having the version number to be increased. This will happen when the plugins documentation will be updated. In this case there will be no announcement on this site, because this may happen rather frequently.</p>
+
+<h4 id="history">History of older versions</h4>
+
+<h5 id="version_4_9">Version 4.9 (2009-01-07)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Download: <a href="http://gidibao.net/index.php/2008/05/07/exec-php-in-italiano/">Italian translation</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russian translation</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanish translation</a></li>
+	<li>Download: <a href="http://www.wordthai.com/index.php?topic=34.0">Thai translation</a></li>
+	<li>Requirements: WordPress 2.0.11 or higher</li>
+	<li>Feature: Improved performance during loading admin interface</li>
+	<li>Feature: New 'Settings' link in WordPress 'Plugin' menu</li>
+	<li>Feature: WYSIWYG Conversion Warning now also displays for WordPress 2.0.11</li>
+</ul>
+
+<h5 id="version_4_8">Version 4.8 (2008-07-05)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.8.zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Download: <a href="http://gidibao.net/index.php/2008/05/07/exec-php-in-italiano/">Italian translation</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russian translation</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanish translation</a></li>
+	<li>Download: <a href="http://www.wordthai.com/index.php?topic=34.0">Thai translation</a></li>
+	<li>Requirements: WordPress 2.0 or higher</li>
+	<li>Feature: Support for WordPress 2.6 (relocation of wp-content)</li>
+</ul>
+
+<h5 id="version_4_7">Version 4.7 (2008-05-05)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.7.zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Download: <a href="http://gidibao.net/index.php/2008/05/07/exec-php-in-italiano/">Italian translation</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russian translation</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanish translation</a></li>
+	<li>Requirements: WordPress 2.0 or higher</li>
+	<li>Bugfix: For PHP4 the cache instance wasn't a reference, which was a bug but did not cause any known issues</li>
+	<li>Bugfix: Now Javascript works with single quotes for translated text</li>
+	<li>Feature: Increased performance for AJAX call</li>
+	<li>Feature: Better localization support inside of the plugin and the readme</li>
+</ul>
+
+<h5 id="version_4_6">Version 4.6 (2008-04-06)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.6.zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russian translation</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanish translation</a></li>
+	<li>Requirements: WordPress 2.0 or higher</li>
+	<li>Feature: In case of AJAX error retry call at most three more times</li>
+	<li>Bugfix: Making Exec-PHP configuration menu valid XHTML</li>
+</ul>
+
+<h5 id="version_4_5">Version 4.5 (2008-03-24)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.5.zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russian translation</a></li>
+	<li>Download: <a href="http://dcabai.blogspot.com/2008/04/exec-php-en-espaol.html">Spanish translation</a></li>
+	<li>Requirements: WordPress 2.0 or higher</li>
+	<li>Bugfix: Fixing WordPress 2.1.x compatibility</li>
+	<li>Bugfix: WYSIWYG Conversion Warning now displays correctly for pages, too</li>
+	<li>Change: Performance optimization during plugin initialization</li>
+	<li>Change: Nonintrusive AJAX error display</li>
+	<li>Feature: Plugin interface support for WordPress 2.5</li>
+</ul>
+
+<h5 id="version_4_4">Version 4.4 (2008-01-29)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.4..zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russian translation</a></li>
+	<li>Requirements: WordPress 2.0 or higher</li>
+	<li>Bugfix: Incompatibilites with WP-Shopping-Cart because of Javascript global variable clash</li>
+	<li>Change: New directory structure</li>
+</ul>
+
+<h5 id="version_4_3">Version 4.3 (2007-12-11)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.3.zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Download: <a href="http://dimox.name/exec-php-russian-translation/">Russian translation</a></li>
+	<li>Requirements: WordPress 2.0 or higher</li>
+	<li>Bugfix: Requirements lowered to WordPress 2.0 or higher</li>
+	<li>Bugfix: Delay loading of text translations to support language switching plugins</li>
+	<li>Feature: The WYSIWYG Conversion Warning can now be turned off through the Profile menu of the user</li>
+</ul>
+
+<h5 id="version_4_2">Version 4.2 (2007-11-03)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.2.zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Requirements: WordPress 2.2 or higher</li>
+	<li>Change: Remodeling the Information section of the plugin configuration menu</li>
+	<li>Feature: Showing security alarms in the Information section of the plugin configuration menu</li>
+	<li>Feature: A warning will be printed on the 'Write' and the 'Widgets' menu in case blog or user settings will screw up written PHP code during saving the article or widgets</li>
+</ul>
+
+<h5 id="version_4_1">Version 4.1 (2007-10-27)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.1.zip">Plugin</a> (english and german translation)</li>
+	<li>Download: <a href="http://liseweb.fr/BLOG/?page_id=160">French translation</a></li>
+	<li>Requirements: WordPress 2.2 or higher</li>
+	<li>Bugfix: Display of the Exec-PHP configuration menu was restricted by an inappropriate capability</li>
+	<li>Bugfix: Making Exec-PHP configuration menu valid XHTML</li>
+	<li>Feature: The Exec-PHP configuration menu now displays which user is allowed to write and execute PHP. Display of this list is executed with AJAX. Therefore even for large WordPress installations with many users, the time to load the Exec-PHP configuration menu will still be satisfiying</li>
+</ul>
+
+<h5 id="version_4_0">Version 4.0 (2007-10-25)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.4.0.zip">Plugin</a></li>
+	<li>Requirements: WordPress 2.0 or higher</li>
+	<li>Bugfix: When the blog administrator removes the 'exec_php' capability from all roles, the plugin will not reassign the capability to the Administrator and Editor roles</li>
+	<li>Change: For new plugin installations only the Administrator role will be eligable to execute PHP code</li>
+	<li>Feature: Configurable execution of PHP code in text widgets through the Exec-PHP configuration menu. This will only work with native widgets support introduced in WordPress 2.2 or higher</li>
+</ul>
+
+<h5 id="version_3_4">Version 3.4 (2007-10-08)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.4.zip">Plugin</a></li>
+	<li>Requirements: WordPress 2.0 or higher</li>
+	<li>Feature: Now supports execution of code in text widgets</li>
+	<li>Feature: Now supports plugin upgrade notification through the 'Plugins' menu of WordPress by listing it in the <a href="http://wordpress.org/extend/plugins/exec-php/">official WordPress plugin repository</a></li>
+</ul>
+
+<h5 id="version_3_3">Version 3.3 (2007-08-11)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.3.zip">Plugin</a></li>
+	<li>Bugfix: Removing spaces around PHP code</li>
+	<li>Bugfix: Removing obsolete plugin hooks for WordPress 1.x</li>
+</ul>
+
+<h5 id="version_3_2">Version 3.2 (2007-02-10)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.2.zip">Plugin</a></li>
+	<li>Bugfix: Removing obsolete config interface hooks</li>
+</ul>
+
+<h5 id="version_3_1">Version 3.1 (2007-02-09)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.1.zip">Plugin</a></li>
+	<li>Bugfix: Removing tag style converter because a) it caused a serious slow down in the WordPress admin interface and b) PCRE proved to be very buggy and unreliable. Note for myself: Never use PCRE again!</li>
+	<li>Feature: Adding internationalization (just to be complete)</li>
+	<li>Feature: Now works in RSS feeds</li>
+</ul>
+
+<h5 id="version_3_0">Version 3.0 (2006-08-06)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.3.0.zip">Plugin</a></li>
+	<li>Feature: Removing all alternative PHP tag styles like <code>&#91;?php ?&#93;</code> and <code>&lt; ?php ?&gt;</code>, because regex was buggy and to tough to support</li>
+	<li>Feature: Removing support for WordPress 1.x, because regex was buggy and to tough to support</li>
+	<li>Feature: Moving plugin files to plugins subdirectory</li>
+	<li>Feature: Adding tag style converter</li>
+	<li>Feature: Adding support for excerpt field</li>
+	<li>Bugfix: Because of changes to PHP tag handling, the bug reported in comment 84 is fixed</li>
+</ul>
+
+<h5 id="version_2_0">Version 2.0 (2005-12-22)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.2.0.zip">Plugin</a></li>
+	<li>Feature: For WordPress 2.0 execution of PHP is now restricted to Administrators or Editors</li>
+	<li>Feature: Supporting alternative PHP tags <code>&#91;?php ?&#93;</code></li>
+</ul>
+
+<h5 id="version_1_2">Version 1.2 (2005-12-04)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.1.2.zip">Plugin</a></li>
+	<li>Bugfix: Reparing issue with reopening PHP tags (Test #16)</li>
+</ul>
+
+<h5 id="version_1_1">Version 1.1 (2005-08-19)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.1.1.zip">Plugin</a></li>
+	<li>Bugfix: Escaped string delimiters in PHP strings are now parsed correctly</li>
+</ul>
+
+<h5 id="version_1_0">Version 1.0 (2005-08-18)</h5>
+<ul>
+	<li>Download: <a href="http://bluesome.net/data/2005/08/exec-php.1.0.zip">Plugin</a></li>
+	<li>Feature: Allows <code>&lt;?php ?&gt;</code> tags inside your articles to execute the code inside of it</li>
+</ul>
+
+<h4 id="roadmap">Roadmap</h4>
+<p>At the moment it is not planned to include any further features into the plugin but you can add a <a href="http://bluesome.net/post/2005/08/18/50/#response-50">comment</a> to request further features.</p>
+<!-- end of content -->
+
+</body>
+</html>
Binary file web/wp-content/plugins/exec-php/docs/screenshot-1-de_DE.png has changed
Binary file web/wp-content/plugins/exec-php/docs/screenshot-1.png has changed
Binary file web/wp-content/plugins/exec-php/docs/screenshot-2-de_DE.png has changed
Binary file web/wp-content/plugins/exec-php/docs/screenshot-2.png has changed
Binary file web/wp-content/plugins/exec-php/docs/screenshot-3-de_DE.png has changed
Binary file web/wp-content/plugins/exec-php/docs/screenshot-3.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/exec-php.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,24 @@
+<?php
+/*
+Plugin Name: Exec-PHP
+Plugin URI: http://bluesome.net/post/2005/08/18/50/
+Description: Executes &lt;?php ?&gt; code in your posts, pages and text widgets.
+Author: S&ouml;ren Weber
+Author URI: http://bluesome.net
+Version: 4.9
+*/
+
+require_once(dirname(__FILE__).'/includes/manager.php');
+
+// ----------------------------------------------------------------------------
+// main
+// ----------------------------------------------------------------------------
+
+global $g_execphp_manager;
+if (!isset($g_execphp_manager))
+	// strange assignment because of explaination how references work;
+	// this will generate warnings with error_reporting(E_STRICT) using PHP5;
+	// http://www.php.net/manual/en/language.references.whatdo.php
+	$GLOBALS['g_execphp_manager'] =& new ExecPhp_Manager();
+
+?>
\ No newline at end of file
Binary file web/wp-content/plugins/exec-php/images/progress.gif has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/admin.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,111 @@
+<?php
+
+require_once(dirname(__FILE__).'/cache.php');
+require_once(dirname(__FILE__).'/const.php');
+require_once(dirname(__FILE__).'/config_ui.php');
+require_once(dirname(__FILE__).'/l10n.php');
+require_once(dirname(__FILE__).'/script.php');
+require_once(dirname(__FILE__).'/style.php');
+require_once(dirname(__FILE__).'/user_ui.php');
+require_once(dirname(__FILE__).'/write_ui.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Admin class provides functionality common to all displayed
+// admin menus
+// -----------------------------------------------------------------------------
+
+// use this guard to avoid error messages in WP admin panel if plugin
+// is disabled because of a version conflict but you still try to reload
+// the plugins config interface
+if (!class_exists('ExecPhp_Admin')) :
+class ExecPhp_Admin
+{
+	var $m_cache = NULL;
+	var $m_common_script = NULL;
+	var $m_common_l10n = NULL;
+	var $m_style = NULL;
+	var $m_write_ui = NULL;
+	var $m_user_ui = NULL;
+	var $m_admin_script = NULL;
+	var $m_admin_l10n = NULL;
+	var $m_config_ui = NULL;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_Admin(&$cache)
+	{
+
+		$this->m_cache =& $cache;
+
+		if (!is_admin())
+			return;
+
+		global $wp_version;
+		if (version_compare($wp_version, '2.6.dev') >= 0)
+			load_plugin_textdomain(ExecPhp_PLUGIN_ID, false, ExecPhp_HOMEDIR. '/languages');
+		else
+			load_plugin_textdomain(ExecPhp_PLUGIN_ID, ExecPhp_PLUGINDIR. '/'. ExecPhp_HOMEDIR. '/languages');
+
+		$this->m_common_l10n = array(
+			'messageContainer' => ExecPhp_ID_MESSAGE);
+		$this->m_common_script =& new ExecPhp_Script(ExecPhp_ID_SCRIPT_COMMON,
+			ExecPhp_ID_L10N_COMMON, $this->m_common_l10n, '/js/common.js', array());
+
+		$this->m_write_ui =& new ExecPhp_WriteUi($this->m_cache, $this->m_common_script);
+		$this->m_user_ui =& new ExecPhp_UserUi($this->m_cache);
+		add_action('admin_notices', array(&$this, 'action_admin_notices'), 5);
+
+		if (version_compare($wp_version, '2.1.dev') < 0)
+			return;
+
+		$this->m_style =& new ExecPhp_Style();
+		$this->m_config_ui =& new ExecPhp_ConfigUi($this->m_cache, $this->m_common_script);
+
+		if (current_user_can(ExecPhp_CAPABILITY_EDIT_PLUGINS)
+			|| current_user_can(ExecPhp_CAPABILITY_EDIT_USERS))
+		{
+			$this->m_admin_l10n = array(
+				'noUserFound' => escape_dquote(__s('No user matching the query.', ExecPhp_PLUGIN_ID)),
+				'securityAlertHeading' => escape_dquote(__s('Exec-PHP Security Alert.', ExecPhp_PLUGIN_ID)),
+				'securityAlertText' => escape_dquote(__s('The Exec-PHP plugin found a security hole with the configured user rights of this blog. For further information consult the plugin configuration menu or contact your blog administrator.', ExecPhp_PLUGIN_ID)),
+				'requestFile' => get_option('siteurl'). '/wp-admin/admin-ajax.php',
+				'ajaxError' => escape_dquote(__s("Exec-PHP AJAX HTTP error when receiving data: ", ExecPhp_PLUGIN_ID)),
+				'action' => ExecPhp_ACTION_REQUEST_USERS,
+				'executeArticlesContainer' => ExecPhp_ID_INFO_EXECUTE_ARTICLES,
+				'widgetsContainer' => ExecPhp_ID_INFO_WIDGETS,
+				'securityHoleContainer' => ExecPhp_ID_INFO_SECURITY_HOLE);
+			$this->m_admin_script =& new ExecPhp_Script(ExecPhp_ID_SCRIPT_ADMIN,
+				ExecPhp_ID_L10N_ADMIN, $this->m_admin_l10n, '/js/admin.js', array('sack'));
+
+			add_action('admin_footer', array(&$this, 'action_admin_footer'));
+		}
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function action_admin_notices()
+	{
+?>
+<div id="<?php echo ExecPhp_ID_MESSAGE; ?>"></div>
+<?php
+	}
+
+	function action_admin_footer()
+	{
+?>
+	<script type="text/javascript">
+		//<![CDATA[
+		ExecPhp_subscribeForFeature("<?php echo ExecPhp_REQUEST_FEATURE_SECURITY_HOLE; ?>");
+		ExecPhp_requestUser();
+		//]]>
+	</script>
+<?php
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/ajax.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,98 @@
+<?php
+
+require_once(dirname(__FILE__).'/const.php');
+require_once(dirname(__FILE__).'/l10n.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Ajax class handles the AJAX communication incoming from the
+// AdminUi for requesting which users are allowed to execute PHP in widgets
+// and articles
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_Ajax')) :
+class ExecPhp_Ajax
+{
+	var $m_cache = NULL;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_Ajax(&$cache)
+	{
+		$this->m_cache =& $cache;
+
+		global $wp_version;
+		if (version_compare($wp_version, '2.5.dev') >= 0 && !defined('DOING_AJAX'))
+			return;
+
+		add_action('wp_ajax_'. ExecPhp_ACTION_REQUEST_USERS,
+			array(&$this, 'action_ajax_request_user'));
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function action_ajax_request_user()
+	{
+		global $wpdb;
+
+		if (!current_user_can(ExecPhp_CAPABILITY_EDIT_PLUGINS)
+			&& !current_user_can(ExecPhp_CAPABILITY_EDIT_USERS))
+			die('-1');
+
+		$feature = explode(',', $_POST['feature']);
+		$wants_edit_others_php = in_array(ExecPhp_REQUEST_FEATURE_SECURITY_HOLE, $feature);
+		$wants_switch_themes = in_array(ExecPhp_REQUEST_FEATURE_WIDGETS, $feature);
+		$wants_exec_php = in_array(ExecPhp_REQUEST_FEATURE_EXECUTE_ARTICLES, $feature);
+
+		$query = "SELECT ID AS user_id FROM {$wpdb->users} ORDER BY display_name";
+		$wpdb->query($query);
+		$s = $wpdb->get_results($query);
+		if (!is_array($s))
+			$s = array();
+
+		$option =& $this->m_cache->get_option();
+		$widget_support = $option->get_widget_support();
+
+		$output_edit_others_php = '';
+		$output_switch_themes = '';
+		$output_exec_php = '';
+		foreach ($s as $i)
+		{
+			$user =& new WP_User($i->user_id);
+			$has_switch_themes = $user->has_cap(ExecPhp_CAPABILITY_EXECUTE_WIDGETS);
+			$has_exec_php = $user->has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES);
+			$has_edit_others_posts = $user->has_cap(ExecPhp_CAPABILITY_EDIT_OTHERS_POSTS);
+			$has_edit_others_pages = $user->has_cap(ExecPhp_CAPABILITY_EDIT_OTHERS_PAGES);
+			$has_edit_others_php = $user->has_cap(ExecPhp_CAPABILITY_EDIT_OTHERS_PHP);
+
+			if (($has_edit_others_posts || $has_edit_others_pages)
+				&& $has_edit_others_php && !$has_exec_php && $wants_edit_others_php)
+				$output_edit_others_php .= "<li>{$user->data->display_name}</li>";
+			if ($has_switch_themes && $widget_support && $wants_switch_themes)
+				$output_switch_themes .= "<li>{$user->data->display_name}</li>";
+			if ($has_exec_php && $wants_exec_php)
+				$output_exec_php .= "<li>{$user->data->display_name}</li>";
+		}
+		$output_edit_others_php = $this->adjust_reply('edit_others_php', $output_edit_others_php);
+		$output_switch_themes = $this->adjust_reply('switch_themes', $output_switch_themes);
+		$output_exec_php = $this->adjust_reply('exec_php', $output_exec_php);
+		die($output_edit_others_php. $output_switch_themes. $output_exec_php);
+	}
+
+	// ---------------------------------------------------------------------------
+	// tools
+	// ---------------------------------------------------------------------------
+
+	function adjust_reply($js_var, $output)
+	{
+		if (!empty($output))
+			$output = "$js_var = \"<ul>". escape_dquote($output). "</ul>\"; ";
+		return $output;
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/cache.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,45 @@
+<?php
+
+require_once(dirname(__FILE__).'/option.php');
+require_once(dirname(__FILE__).'/usermeta.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Cache serves as a cache for the option and usermeta
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_Cache')) :
+class ExecPhp_Cache
+{
+	var $m_option = NULL;
+	var $m_usermetas = array();
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_Cache()
+	{
+		$this->m_option =& new ExecPhp_Option();
+	}
+
+	// ---------------------------------------------------------------------------
+	// access
+	// ---------------------------------------------------------------------------
+
+	function &get_option()
+	{
+		return $this->m_option;
+	}
+
+	function &get_usermeta($user_id)
+	{
+		if (!isset($this->m_usermetas[$user_id]))
+			// this will generate warnings with error_reporting(E_STRICT) using PHP5
+			// see http://www.php.net/manual/en/language.references.whatdo.php
+			$this->m_usermetas[$user_id] =& new ExecPhp_UserMeta($user_id);
+		return $this->m_usermetas[$user_id];
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/config_ui.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,217 @@
+<?php
+
+require_once(dirname(__FILE__).'/cache.php');
+require_once(dirname(__FILE__).'/const.php');
+require_once(dirname(__FILE__).'/l10n.php');
+require_once(dirname(__FILE__).'/script.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_ConfigUi class displays the config interface in the
+// admin menu
+// -----------------------------------------------------------------------------
+
+// use this guard to avoid error messages in WP admin panel if plugin
+// is disabled because of a version conflict but you still try to reload
+// the plugins config interface
+if (!class_exists('ExecPhp_ConfigUi')) :
+
+define('ExecPhp_ACTION_UPDATE_OPTIONS', 'execphp_update_options');
+
+class ExecPhp_ConfigUi
+{
+	var $m_cache = NULL;
+	var $m_script = NULL;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	// Sets up the Exec-Php config menu
+	function ExecPhp_ConfigUi(&$cache, &$script)
+	{
+		$this->m_cache =& $cache;
+		$this->m_script =& $script;
+
+		$option =& $this->m_cache->get_option();
+		$this->toggle_action($option->get_status());
+		add_action('admin_menu', array(&$this, 'action_admin_menu'));
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function action_admin_menu()
+	{
+		if (current_user_can(ExecPhp_CAPABILITY_EDIT_PLUGINS))
+		{
+			add_submenu_page('options-general.php',
+				__s('Exec-PHP Settings', ExecPhp_PLUGIN_ID),
+				__s('Exec-PHP', ExecPhp_PLUGIN_ID),
+				ExecPhp_CAPABILITY_EDIT_PLUGINS, __FILE__,
+				array(&$this, 'submenu_page_option_general'));
+			add_filter('plugin_action_links', array(&$this, 'filter_plugin_actions_links'), 10, 2);
+		}
+	}
+
+	function filter_plugin_actions_links($links, $file)
+	{
+		if ($file == ExecPhp_HOMEDIR. '/exec-php.php')
+		{
+			$settings_link = $settings_link = '<a href="options-general.php?page='. ExecPhp_HOMEDIR. '/includes/config_ui.php">' . __('Settings') . '</a>';
+			array_unshift($links, $settings_link);
+		}
+		return $links;
+	}
+
+	function action_admin_footer_plugin_version()
+	{
+		$option =& $this->m_cache->get_option();
+		$heading = __s('Exec-PHP Error.', ExecPhp_PLUGIN_ID);
+		$text = __s('No necessary upgrade of the the Exec-PHP plugin could be performed. PHP code in your articles or widgets may be viewable to your blog readers. This is plugin version %1$s, previously there was version %2$s installed. Downgrading from a newer version to an older version of the plugin is not supported.', ExecPhp_PLUGIN_ID
+			, ExecPhp_VERSION, $option->get_version());
+		$this->m_script->print_message($heading, $text);
+	}
+
+	function action_admin_footer_unknown()
+	{
+		$option =& $this->m_cache->get_option();
+		$heading = __s('Exec-PHP Error.', ExecPhp_PLUGIN_ID);
+		$text = __s('An unknown error (%s) occured during execution of the Exec-PHP plugin. PHP code in your articles or widgets may be viewable to your blog readers. This error should never happen if you use the plugin with a compatible WordPress version and installed it as described in the documentation.', ExecPhp_PLUGIN_ID
+			, $option->get_status());
+		$this->m_script->print_message($heading, $text);
+	}
+
+	function toggle_action($status)
+	{
+		if ($status == ExecPhp_STATUS_PLUGIN_VERSION_MISMATCH)
+			add_action('admin_footer', array(&$this, 'action_admin_footer_plugin_version'));
+		else
+			remove_action('admin_footer', array(&$this, 'action_admin_footer_plugin_version'));
+
+		if ($status != ExecPhp_STATUS_OKAY
+			&& $status != ExecPhp_STATUS_PLUGIN_VERSION_MISMATCH)
+			add_action('admin_footer', array(&$this, 'action_admin_footer_unknown'));
+		else
+			remove_action('admin_footer', array(&$this, 'action_admin_footer_unknown'));
+	}
+
+	// ---------------------------------------------------------------------------
+	// interface
+	// ---------------------------------------------------------------------------
+
+	function print_request_users($display_id, $feature, $title, $introduction)
+	{
+		global $wp_version;
+		if (version_compare($wp_version, '2.6.dev') >= 0)
+			// since WP 2.6 it comes with its own progress animation
+			$image_url = get_option('siteurl'). '/wp-admin/images/loading.gif';
+		else
+			$image_url = ExecPhp_HOME_URL. '/images/progress.gif';
+?>
+			<fieldset class="options">
+				<table class="editform optiontable form-table">
+					<tr valign="top" id="<?php echo $display_id; ?>-container" >
+						<th scope="row"><?php echo $title; ?></th>
+						<td>
+							<label for="<?php echo ExecPhp_POST_WIDGET_SUPPORT; ?>">
+								<?php echo $introduction; ?>
+
+								<div class="execphp-user-list" id="<?php echo $display_id; ?>">
+									<?php _es('The list can not be displayed because you may have disabled Javascript or your browser does not support Javascript.', ExecPhp_PLUGIN_ID); ?>
+
+								</div>
+								<script type="text/javascript">
+									//<![CDATA[
+									document.getElementById("<?php echo $display_id; ?>").innerHTML =
+										"<p><img src=\"<?php echo $image_url; ?>\" alt=\"<?php escape_dquote(_es('An animated icon signaling that this information is still be loaded.', ExecPhp_PLUGIN_ID)); ?>\" /> <?php escape_dquote(_es('Loading user information...', ExecPhp_PLUGIN_ID)); ?></p>";
+									ExecPhp_subscribeForFeature("<?php echo $feature; ?>");
+									//]]>
+								</script>
+							</label>
+						</td>
+					</tr>
+				</table>
+			</fieldset>
+<?php
+	}
+
+	function submenu_page_option_general()
+	{
+		global $wpdb;
+		global $wp_version;
+
+		// executing form actions
+		$option =& $this->m_cache->get_option();
+		if (isset($_POST[ExecPhp_ACTION_UPDATE_OPTIONS]))
+		{
+			check_admin_referer(ExecPhp_ACTION_UPDATE_OPTIONS);
+			$option->set_from_POST();
+			$option->save();
+			echo '<div id="message" class="updated fade"><p><strong>'.
+				__s('Settings saved.', ExecPhp_PLUGIN_ID) . "</strong></p></div>\n";
+		}
+		$this->toggle_action($option->get_status());
+?>
+	<div class="wrap">
+<?php if (version_compare($wp_version, '2.7.dev') >= 0) : ?>
+		<div id="icon-options-general" class="icon32"><br /></div>
+<?php endif; ?>
+		<h2><?php _es('Exec-PHP Plugin', ExecPhp_PLUGIN_ID); ?></h2>
+		<p><?php echo __s('Exec-PHP executes <code>&lt;?php ?&gt;</code> code in your posts, pages and text widgets. See the <a href="%s">local documentation</a> for further information. The latest version of the plugin, documentation and information can be found on the <a href="http://bluesome.net/post/2005/08/18/50/">official plugin homepage</a>.', ExecPhp_PLUGIN_ID, ExecPhp_HOME_URL. '/docs/'. __s('readme.html', ExecPhp_PLUGIN_ID)); ?></p>
+
+<?php if (version_compare($wp_version, '2.2.dev') >= 0) : ?>
+		<h3><?php _es('Settings', ExecPhp_PLUGIN_ID); ?></h3>
+
+		<form action="" method="post" id="<?php echo ExecPhp_ID_CONFIG_FORM; ?>"<?php if (version_compare($wp_version, '2.5.dev') >= 0 && version_compare($wp_version, '2.6.dev') < 0) : ?> class="wp-2-5"<?php endif; ?>>
+			<?php wp_nonce_field(ExecPhp_ACTION_UPDATE_OPTIONS); ?>
+
+			<fieldset class="options">
+				<table class="editform optiontable form-table">
+					<tr valign="top">
+						<th scope="row"><?php _es('Execute PHP code in text widgets', ExecPhp_PLUGIN_ID); ?></th>
+						<td>
+							<label for="<?php echo ExecPhp_POST_WIDGET_SUPPORT; ?>">
+								<input type="checkbox" name="<?php echo ExecPhp_POST_WIDGET_SUPPORT; ?>" id="<?php echo ExecPhp_POST_WIDGET_SUPPORT; ?>" value="true" <?php if ($option->get_widget_support()) : ?>checked="checked" <?php endif; ?>/>
+								<?php _es('Executing PHP code in text widgets is not restricted to any user. By default users who can modify text widgets will also be able to execute PHP code in text widgets. Unselect this option to generally turn off execution of PHP code in text widgets.', ExecPhp_PLUGIN_ID); ?>
+
+							</label>
+						</td>
+					</tr>
+				</table>
+			</fieldset>
+
+			<p class="submit">
+				<input type="submit" name="<?php echo ExecPhp_ACTION_UPDATE_OPTIONS; ?>" class="button-primary" value="<?php _es('Save Changes', ExecPhp_PLUGIN_ID) ?>" />
+			</p>
+		</form>
+
+<?php endif; ?>
+		<h3><?php _es('Security Information', ExecPhp_PLUGIN_ID); ?></h3>
+		<p><?php _es('The following lists show which users are allowed to write or execute PHP code in different cases. Allowing to write or execute PHP code can be adjusted by assigning the necessary capabilities to individual users or roles by using a role manager plugin.', ExecPhp_PLUGIN_ID); ?></p>
+
+		<form action="" id="<?php echo ExecPhp_ID_INFO_FORM; ?>"<?php if (version_compare($wp_version, '2.5.dev') >= 0 && version_compare($wp_version, '2.6.dev') < 0) : ?> class="wp-2-5"<?php endif; ?>>
+<?php $this->print_request_users(ExecPhp_ID_INFO_SECURITY_HOLE,
+	ExecPhp_REQUEST_FEATURE_SECURITY_HOLE,
+	__s('Security Hole', ExecPhp_PLUGIN_ID),
+	__s('The following list shows which users have either or both of the &quot;%1$s&quot; or &quot;%2$s&quot; capability and are allowed to change others PHP code by having the &quot;%3$s&quot; capability but do not have the &quot;%4$s&quot; capability for themself. This is a security hole, because the listed users can write and execute PHP code in articles of other users although they are not supposed to execute PHP code at all.', ExecPhp_PLUGIN_ID, ExecPhp_CAPABILITY_EDIT_OTHERS_POSTS, ExecPhp_CAPABILITY_EDIT_OTHERS_PAGES, ExecPhp_CAPABILITY_EDIT_OTHERS_PHP, ExecPhp_CAPABILITY_EXECUTE_ARTICLES)); ?>
+
+<?php if (version_compare($wp_version, '2.2.dev') >= 0) : ?>
+<?php $this->print_request_users(ExecPhp_ID_INFO_WIDGETS,
+	ExecPhp_REQUEST_FEATURE_WIDGETS,
+	__s('Executing PHP Code in Text Widgets', ExecPhp_PLUGIN_ID),
+	__s('The following list shows which users have the &quot;%s&quot; capability and therefore are allowed to write and execute PHP code in text widgets. In case you have deselected the option &quot;Execute PHP code in text widgets&quot; from above, this list will appear empty.', ExecPhp_PLUGIN_ID, ExecPhp_CAPABILITY_EXECUTE_WIDGETS)); ?>
+
+<?php endif; ?>
+<?php $this->print_request_users(ExecPhp_ID_INFO_EXECUTE_ARTICLES,
+	ExecPhp_REQUEST_FEATURE_EXECUTE_ARTICLES,
+	__s('Executing PHP Code in Articles', ExecPhp_PLUGIN_ID),
+	__s('The following list shows which users have the &quot;%s&quot; capability and therefore are allowed to execute PHP code in articles.', ExecPhp_PLUGIN_ID, ExecPhp_CAPABILITY_EXECUTE_ARTICLES)); ?>
+		</form>
+	</div>
+<?php
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/const.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,87 @@
+<?php
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Const function defines plugin wide constants
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_Const')) :
+
+define('ExecPhp_VERSION', '4.9');
+define('ExecPhp_PLUGIN_ID', 'exec-php');
+
+// relative path of stored plugins to ABSPATH; only required for WP < 2.6
+global $wp_version;
+if (version_compare($wp_version, '2.6.dev') >= 0)
+{
+	// relative path of plugin to PLUGINDIR
+	$execphp_path = str_replace('\\', '/', dirname(dirname(__FILE__)));
+	$execphp_plugin_path = str_replace('\\', '/', WP_PLUGIN_DIR);
+	define('ExecPhp_HOMEDIR', trim(str_replace($execphp_plugin_path, '', $execphp_path), '/'));
+}
+else
+{
+	// ExecPhp_PLUGINDIR only available for WP < 2.6
+	if (defined('PLUGINDIR'))
+		define('ExecPhp_PLUGINDIR', PLUGINDIR);
+	else
+		define('ExecPhp_PLUGINDIR', 'wp-content/plugins');
+
+	// relative path of plugin to PLUGINDIR
+	$execphp_path = str_replace('\\', '/', dirname(dirname(__FILE__)));
+	$execphp_offset = 0;
+	while (($execphp_n = strpos($execphp_path, ExecPhp_PLUGINDIR, $execphp_offset)) !== false)
+		$execphp_offset = $execphp_n + 1;
+	define('ExecPhp_HOMEDIR', substr($execphp_path, $execphp_offset + strlen(ExecPhp_PLUGINDIR)));
+}
+
+if (defined('WP_PLUGIN_DIR'))
+	define('ExecPhp_HOME_DIR', WP_PLUGIN_DIR. '/'. ExecPhp_HOMEDIR);
+else
+	define('ExecPhp_HOME_DIR', ABSPATH. ExecPhp_PLUGINDIR. '/'. ExecPhp_HOMEDIR);
+
+if (defined('WP_PLUGIN_URL'))
+	define('ExecPhp_HOME_URL', WP_PLUGIN_URL. '/'. ExecPhp_HOMEDIR);
+else
+	define('ExecPhp_HOME_URL', get_option('siteurl'). '/'. ExecPhp_PLUGINDIR. '/'. ExecPhp_HOMEDIR);
+
+define('ExecPhp_CAPABILITY_EXECUTE_WIDGETS', 'switch_themes');
+define('ExecPhp_CAPABILITY_EXECUTE_ARTICLES', 'exec_php');
+define('ExecPhp_CAPABILITY_WRITE_PHP', 'unfiltered_html');
+define('ExecPhp_CAPABILITY_EDIT_PLUGINS', 'edit_plugins');
+define('ExecPhp_CAPABILITY_EDIT_USERS', 'edit_users');
+define('ExecPhp_CAPABILITY_EDIT_OTHERS_POSTS', 'edit_others_posts');
+define('ExecPhp_CAPABILITY_EDIT_OTHERS_PAGES', 'edit_others_pages');
+define('ExecPhp_CAPABILITY_EDIT_OTHERS_PHP', 'edit_others_php');
+
+define('ExecPhp_STATUS_OKAY', 0);
+define('ExecPhp_STATUS_UNINITIALIZED', 1);
+define('ExecPhp_STATUS_PLUGIN_VERSION_MISMATCH', 2);
+
+define('ExecPhp_ACTION_REQUEST_USERS', 'execphp_request_users');
+define('ExecPhp_REQUEST_FEATURE_SECURITY_HOLE', 'security_hole');
+define('ExecPhp_REQUEST_FEATURE_WIDGETS', 'widgets');
+define('ExecPhp_REQUEST_FEATURE_EXECUTE_ARTICLES', 'execute_articles');
+
+define('ExecPhp_POST_WIDGET_SUPPORT', 'execphp_widget_support');
+define('ExecPhp_POST_WYSIWYG_WARNING', 'execphp_wysiwyg_warning');
+
+define('ExecPhp_ID_CONFIG_FORM', 'execphp-configuration');
+define('ExecPhp_ID_INFO_FORM', 'execphp-information');
+
+define('ExecPhp_ID_INFO_SECURITY_HOLE', 'execphp-security-hole');
+define('ExecPhp_ID_INFO_WIDGETS', 'execphp-widgets');
+define('ExecPhp_ID_INFO_EXECUTE_ARTICLES', 'execphp-execute-articles');
+define('ExecPhp_ID_MESSAGE', 'execphp-message');
+
+define('ExecPhp_ID_SCRIPT_COMMON', 'execphp_common');
+define('ExecPhp_ID_SCRIPT_ADMIN', 'execphp_admin');
+define('ExecPhp_ID_L10N_COMMON', 'execphpCommonL10n');
+define('ExecPhp_ID_L10N_ADMIN', 'execphpAdminL10n');
+define('ExecPhp_ID_STYLE_ADMIN', 'execphp_admin');
+
+class ExecPhp_Const
+{
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/l10n.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,60 @@
+<?php
+
+if (!class_exists('ExecPhp_L10n')) :
+
+if (!function_exists('translate')) :
+// downward compatibility for older WP installations
+function translate($text, $domain)
+{
+	global $l10n;
+
+	if (isset($l10n[$domain])) {
+		return $l10n[$domain]->translate($text);
+	} else {
+		return $text;
+	}
+}
+endif;
+
+if (!function_exists('translate_sprintf')) :
+function translate_sprintf($text, $domain = 'default')
+{
+	if (func_num_args() <= 2)
+		return translate($text, $domain);
+	$args = func_get_args();
+	array_shift($args);
+	array_shift($args);
+	array_unshift($args, translate($text, $domain));
+	return call_user_func_array('sprintf', $args);
+}
+endif;
+
+if (!function_exists('__s')) :
+function __s($text, $domain = 'default')
+{
+	$args = func_get_args();
+	return call_user_func_array('translate_sprintf', $args);
+}
+endif;
+
+if (!function_exists('_es')) :
+function _es($text, $domain = 'default')
+{
+	$args = func_get_args();
+	echo call_user_func_array('translate_sprintf', $args);
+}
+endif;
+
+if (!function_exists('escape_dquote')) :
+function escape_dquote($text)
+{
+	return str_replace('"', '\"', $text);
+}
+endif;
+
+class ExecPhp_L10n
+{
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/manager.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,44 @@
+<?php
+
+require_once(dirname(__FILE__).'/admin.php');
+require_once(dirname(__FILE__).'/ajax.php');
+require_once(dirname(__FILE__).'/cache.php');
+require_once(dirname(__FILE__).'/const.php');
+require_once(dirname(__FILE__).'/runtime.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Manager class handles the plugin initialization phase,
+// assuring the infrastructure is set up properly
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_Manager')) :
+class ExecPhp_Manager
+{
+	var $m_ajax = NULL;
+	var $m_runtime = NULL;
+	var $m_admin = NULL;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_Manager()
+	{
+		add_action('init', array(&$this, 'action_init'));
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function action_init()
+	{
+		$cache =& new ExecPhp_Cache();
+		$this->m_ajax =& new ExecPhp_Ajax($cache);
+		$this->m_runtime =& new ExecPhp_Runtime($cache);
+		$this->m_admin =& new ExecPHP_Admin($cache);
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/option.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,171 @@
+<?php
+
+require_once(dirname(__FILE__).'/const.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Option class handles the loading and storing of the
+// plugin options including all needed conversion routines during upgrade
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_Option')) :
+
+define('ExecPhp_OPTION_VERSION', 'version');
+define('ExecPhp_OPTION_WIDGET_SUPPORT', 'widget_support');
+define('ExecPhp_OPTION_HAS_OLD_STYLE', 'exec-php_has_old_style');
+define('ExecPhp_OPTION_IGNORE_OLD_STYLE_WARNING', 'exec-php_ignore_old_style_warning');
+
+class ExecPhp_Option
+{
+	var $m_status = ExecPhp_STATUS_UNINITIALIZED;
+	var $m_version = ExecPhp_VERSION;
+
+	// default option values will be set during load()
+	var $m_widget_support = true;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_Option()
+	{
+		$this->m_status = $this->upgrade();
+	}
+
+	// ---------------------------------------------------------------------------
+	// option handling
+	// ---------------------------------------------------------------------------
+
+	// Upgrades plugin from previous versions or even installs it
+	function upgrade()
+	{
+		$old_version = $this->detect_plugin_version();
+		while ($old_version != ExecPhp_VERSION)
+		{
+			$this->load();
+			if (version_compare($old_version, '4.0.dev') < 0)
+			{
+				$this->upgrade_to_4_0();
+				$old_version = '4.0';
+			}
+			else if (version_compare($old_version, '4.1.dev') < 0)
+				$old_version = '4.1';
+			else if (version_compare($old_version, '4.2.dev') < 0)
+			{
+				$this->upgrade_to_4_2();
+				$old_version = '4.2';
+			}
+			else if (version_compare($old_version, '4.3.dev') < 0)
+				$old_version = '4.3';
+			else if (version_compare($old_version, '4.4.dev') < 0)
+				$old_version = '4.4';
+			else if (version_compare($old_version, '4.5.dev') < 0)
+				$old_version = '4.5';
+			else if (version_compare($old_version, '4.6.dev') < 0)
+				$old_version = '4.6';
+			else if (version_compare($old_version, '4.7.dev') < 0)
+				$old_version = '4.7';
+			else if (version_compare($old_version, '4.8.dev') < 0)
+				$old_version = '4.8';
+			else if (version_compare($old_version, '4.9.dev') < 0)
+				$old_version = '4.9';
+			else
+				// we are downgrading to an older version of the plugin by
+				// resetting the version to 0 and walking up the conversion path
+				$old_version = '0';
+
+			$this->m_version = $old_version;
+			$this->save();
+		}
+		$this->load();
+		return ExecPhp_STATUS_OKAY;
+	}
+
+	function save()
+	{
+		// introduced in 4.0
+		$option[ExecPhp_OPTION_VERSION] = $this->m_version;
+
+		// introduced in 4.0
+		$option[ExecPhp_OPTION_WIDGET_SUPPORT] = $this->m_widget_support;
+
+		update_option(ExecPhp_PLUGIN_ID, $option);
+	}
+
+	function load()
+	{
+		$option = get_option(ExecPhp_PLUGIN_ID);
+
+		// introduced in 4.0
+		if (isset($option[ExecPhp_OPTION_WIDGET_SUPPORT]))
+			$this->m_widget_support = $option[ExecPhp_OPTION_WIDGET_SUPPORT];
+		else
+			$this->m_widget_support = true;
+	}
+
+	// ---------------------------------------------------------------------------
+	// tools
+	// ---------------------------------------------------------------------------
+
+	function detect_plugin_version()
+	{
+		$option = get_option(ExecPhp_PLUGIN_ID);
+		if ($option === false)
+			$version = '0';
+		else
+			$version = $option[ExecPhp_OPTION_VERSION];
+		return $version;
+	}
+
+	function upgrade_to_4_0()
+	{
+		// this is first installation of the plugin or upgrade from a version
+		// prior to 4.0;
+		// still needed for deletion from the database - these are obsolete
+		// since version 3.1
+		delete_option(ExecPhp_OPTION_HAS_OLD_STYLE);
+		delete_option(ExecPhp_OPTION_IGNORE_OLD_STYLE_WARNING);
+
+		// be sure standard roles are available, these may be deleted or
+		// renamed by the blog administrator
+		$role = get_role('administrator');
+		if ($role !== NULL)
+			$role->add_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES);
+	}
+
+	function upgrade_to_4_2()
+	{
+		// be sure standard roles are available, these may be deleted or
+		// renamed by the blog administrator
+		$role = get_role('administrator');
+		if ($role !== NULL)
+			$role->add_cap(ExecPhp_CAPABILITY_EDIT_OTHERS_PHP);
+	}
+
+	// ---------------------------------------------------------------------------
+	// access
+	// ---------------------------------------------------------------------------
+
+	function set_from_POST()
+	{
+		$this->m_widget_support
+			= isset($_POST[ExecPhp_POST_WIDGET_SUPPORT]);
+	}
+
+	function get_status()
+	{
+		return $this->m_status;
+	}
+
+	function get_version()
+	{
+		return $this->m_version;
+	}
+
+	function get_widget_support()
+	{
+		return $this->m_widget_support;
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/runtime.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,117 @@
+<?php
+
+require_once(dirname(__FILE__).'/cache.php');
+require_once(dirname(__FILE__).'/const.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Runtime class handles the execution of PHP code during
+// access to the articles content or widget including checks against
+// the exec_php / edit_others_php capability or plugin options respectivly
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_Runtime')) :
+class ExecPhp_Runtime
+{
+	var $m_cache = NULL;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_Runtime(&$cache)
+	{
+		$this->m_cache =& $cache;
+
+		add_filter('the_content', array(&$this, 'filter_user_content'), 1);
+		add_filter('the_content_rss', array(&$this, 'filter_user_content'), 1);
+		add_filter('the_excerpt', array(&$this, 'filter_user_content'), 1);
+		add_filter('the_excerpt_rss', array(&$this, 'filter_user_content'), 1);
+		add_filter('widget_text', array(&$this, 'filter_widget_content'), 1);
+		add_filter('user_has_cap', array(&$this, 'filter_user_has_cap'), 10, 3);
+	}
+
+	// ---------------------------------------------------------------------------
+	// tools
+	// ---------------------------------------------------------------------------
+
+	function eval_php($content)
+	{
+		// to be compatible with older PHP4 installations
+		// don't use fancy ob_XXX shortcut functions
+		ob_start();
+		eval("?>$content<?php ");
+		$output = ob_get_contents();
+		ob_end_clean();
+		return $output;
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function filter_user_content($content)
+	{
+		global $post;
+
+		// check whether the article author is allowed to execute PHP code
+		if (!isset($post) || !isset($post->post_author))
+			return $content;
+		$poster = new WP_User($post->post_author);
+		if (!$poster->has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES))
+			return $content;
+		return $this->eval_php($content);
+	}
+
+	function filter_widget_content($content)
+	{
+		// check whether the admin has configured widget support
+		$option =& $this->m_cache->get_option();
+		if (!$option->get_widget_support())
+			return $content;
+
+		return $this->eval_php($content);
+	}
+
+	function filter_user_has_cap($allcaps, $caps, $args)
+	{
+		// $allcaps = Capabilities the user currently has
+		// $caps = Primitive capabilities being tested / requested
+		// $args = array with:
+		// $args[0] = original meta capability requested
+		// $args[1] = user being tested
+		// See code for assumptions
+
+		// This handler is only set up to deal with the edit_others_pages
+		// or edit_others_posts capability. Ignore all other calls into here.
+		$pages_request = in_array('edit_others_pages', $caps);
+		$posts_request = in_array('edit_others_posts', $caps);
+		if ((!$pages_request && !$posts_request)
+			|| ($pages_request && $posts_request)
+			|| !$args[0] || !$args[1] || $args[1] == 0)
+			return $allcaps;
+
+		global $post;
+		if (!isset($post))
+			return $allcaps;
+		$poster = new WP_User($post->post_author);
+		if (!$poster->has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES))
+			return $allcaps;
+
+		$editor_has_edit_others_php = (in_array(ExecPhp_CAPABILITY_EDIT_OTHERS_PHP, $allcaps)
+			&& $allcaps[ExecPhp_CAPABILITY_EDIT_OTHERS_PHP]);
+		if ($editor_has_edit_others_php)
+			return $allcaps;
+
+		// article may contain PHP code due to the original posters capabilities
+		// but the editor is not allowed to edit others PHP code, so filter out
+		// requested edit_others_xxx settings from the allowed caps
+		if ($pages_request)
+			unset($allcaps['edit_others_pages']);
+		if ($posts_request)
+			unset($allcaps['edit_others_posts']);
+		return $allcaps;
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/script.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,106 @@
+<?php
+
+require_once(dirname(__FILE__).'/const.php');
+require_once(dirname(__FILE__).'/l10n.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Script class displays the Exec-PHP javascript if necessary
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_Script')) :
+
+class ExecPhp_Script
+{
+	var $m_id = NULL;
+	var $tab_name = NULL;
+	var $m_l10n_tab = NULL;
+	var $m_path = NULL;
+	var $m_dependency = NULL;
+
+	function ExecPhp_Script($id, $tab_name, $l10n_tab, $path, $dependency)
+	{
+		$this->m_id =& $id;
+		$this->m_tab_name = $tab_name;
+		$this->m_l10n_tab = $l10n_tab;
+		$this->m_path = $path;
+		$this->m_dependency = $dependency;
+
+		if (function_exists('wp_enqueue_script'))
+			wp_enqueue_script($this->m_id, ExecPhp_HOME_URL. $this->m_path, $this->m_dependency);
+		else
+			// WP < 2.1
+			add_action('admin_head', array(&$this, 'action_admin_head_script'));
+
+		if (!$this->m_l10n_tab)
+			return;
+
+		global $wp_version;
+
+		if (version_compare($wp_version, '2.1.dev') >= 0)
+			add_action('wp_print_scripts', array(&$this, 'action_wp_print_scripts'));
+		else
+			add_action('admin_head', array(&$this, 'action_admin_head_tab'));
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function action_wp_print_scripts()
+	{
+		if (function_exists('wp_localize_script'))
+		{
+			$this->m_l10n_tab['l10n_print_after'] = 'try{convertEntities('. $this->m_tab_name. ');}catch(e){};';
+			wp_localize_script($this->m_id, $this->m_tab_name, $this->m_l10n_tab);
+		}
+		else
+			// WP < 2.2
+			add_action('admin_head', array(&$this, 'action_admin_head_tab'));
+	}
+
+	function action_admin_head_script()
+	{
+?>
+<script type='text/javascript' src='<?php echo ExecPhp_HOME_URL. $this->m_path; ?>'></script>
+<?php
+	}
+
+	function action_admin_head_tab()
+	{
+?>
+<script type='text/javascript'>
+/* <![CDATA[ */
+	<?php echo $this->m_tab_name; ?> = {
+<?php
+		foreach ($this->m_l10n_tab as $item => $value)
+		{
+			echo "\t\t$item: \"$value\",\n";
+		}
+		echo "\t\tlast: \"last\"\n\t}\n";
+?>
+	try{convertEntities(<?php echo $this->m_tab_name; ?>);}catch(e){};
+/* ]]> */
+</script>
+<?php
+	}
+
+	// ---------------------------------------------------------------------------
+	// tools
+	// ---------------------------------------------------------------------------
+
+	function print_message($heading, $text)
+	{
+		$heading = escape_dquote($heading);
+		$text = escape_dquote($text);
+?>
+	<script type="text/javascript">
+		//<![CDATA[
+		ExecPhp_setMessage("<?php echo $heading; ?>", "<?php echo $text; ?>");
+		//]]>
+	</script>
+<?php
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/style.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,38 @@
+<?php
+
+require_once(dirname(__FILE__).'/const.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_Style class displays the Exec-PHP style sheet if necessary
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_Style')) :
+class ExecPhp_Style
+{
+	function ExecPhp_Style()
+	{
+		if (current_user_can(ExecPhp_CAPABILITY_EDIT_PLUGINS)
+			|| current_user_can(ExecPhp_CAPABILITY_EDIT_USERS))
+		{
+			if (function_exists('wp_enqueue_style'))
+				wp_enqueue_style(ExecPhp_ID_STYLE_ADMIN, ExecPhp_HOME_URL. '/css/admin.css');
+			else
+				// WP < 2.6
+				add_action('admin_head', array(&$this, 'action_admin_head'), 5);
+		}
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function action_admin_head()
+	{
+?>
+<link rel='stylesheet' href='<?php echo ExecPhp_HOME_URL; ?>/css/admin.css' type='text/css' />
+<?php
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/user_ui.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,82 @@
+<?php
+
+require_once(dirname(__FILE__).'/cache.php');
+require_once(dirname(__FILE__).'/const.php');
+require_once(dirname(__FILE__).'/l10n.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_UserUi class shows user specific settings in the user profile
+// -----------------------------------------------------------------------------
+
+// use this guard to avoid error messages in WP admin panel if plugin
+// is disabled because of a version conflict but you still try to reload
+// the plugins config interface
+if (!class_exists('ExecPhp_UserUi')) :
+class ExecPhp_UserUi
+{
+	var $m_cache = NULL;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_UserUi(&$cache)
+	{
+		$this->m_cache =& $cache;
+
+		add_action('show_user_profile', array(&$this, 'action_user_profile'));
+		add_action('edit_user_profile', array(&$this, 'action_user_profile'));
+		add_action('profile_update', array(&$this, 'action_profile_update'));
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function action_user_profile()
+	{
+		global $profileuser;
+		global $wp_version;
+
+		if ($profileuser->has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES))
+		{
+			$usermeta =& $this->m_cache->get_usermeta($profileuser->ID);
+?>
+<?php if (version_compare($wp_version, '2.5.dev') >= 0) : ?>
+	<h3><?php _es('Exec-PHP Settings', ExecPhp_PLUGIN_ID); ?></h3>
+<?php else : ?>
+	<fieldset><legend><?php _es('Exec-PHP Settings', ExecPhp_PLUGIN_ID); ?></legend>
+<?php endif; ?>
+	<table class="form-table">
+		<tr valign="top">
+			<th scope="row"><?php _es('Disable WYSIWYG Conversion Warning', ExecPhp_PLUGIN_ID); ?></th>
+			<td>
+				<label for="<?php echo ExecPhp_POST_WYSIWYG_WARNING; ?>">
+					<input style="width: auto;" type="checkbox" name="<?php echo ExecPhp_POST_WYSIWYG_WARNING; ?>" id="<?php echo ExecPhp_POST_WYSIWYG_WARNING; ?>" value="true" <?php if ($usermeta->hide_wysiwyg_warning()) : ?>checked="checked" <?php endif; ?>/>
+					<?php _es('Select this option to turn off the WYSIWYG Conversion Warning in the Write menu. Nevertheless the recommended way is to switch off the WYSIWYG editor so you can be sure not to break existing PHP code by accident.', ExecPhp_PLUGIN_ID); ?>
+
+				</label>
+			</td>
+		</tr>
+	</table>
+<?php if (version_compare($wp_version, '2.5.dev') < 0) : ?>
+	</fieldset>
+<?php endif; ?>
+<?php
+		}
+	}
+
+	function action_profile_update($user_id)
+	{
+		$user = new WP_User($user_id);
+		if ($user->has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES))
+		{
+			$usermeta =& $this->m_cache->get_usermeta($user_id);
+			$usermeta->set_from_POST();
+			$usermeta->save();
+		}
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/usermeta.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,62 @@
+<?php
+
+require_once(dirname(__FILE__).'/const.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_UserMeta class handles the loading and storing of the
+// plugin settings for each individual article including all needed conversion
+// routines
+// -----------------------------------------------------------------------------
+
+if (!class_exists('ExecPhp_UserMeta')) :
+
+define('ExecPhp_META_WYSIWYG_WARNING', 'execphp_wysiwyg_warning');
+
+class ExecPhp_UserMeta
+{
+	var $m_user_id = -1;
+	var $m_hide_wysiwyg_warning = false;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_UserMeta($user_id)
+	{
+		$this->m_user_id = $user_id;
+		$this->load();
+	}
+
+	function save()
+	{
+		update_usermeta($this->m_user_id, ExecPhp_META_WYSIWYG_WARNING,
+			$this->m_hide_wysiwyg_warning);
+	}
+
+	function load()
+	{
+		if ($this->m_user_id > 0)
+		{
+			$this->m_hide_wysiwyg_warning =
+				get_usermeta($this->m_user_id, ExecPhp_META_WYSIWYG_WARNING);
+		}
+	}
+
+	// ---------------------------------------------------------------------------
+	// access
+	// ---------------------------------------------------------------------------
+
+	function set_from_POST()
+	{
+		$this->m_hide_wysiwyg_warning
+			= isset($_POST[ExecPhp_POST_WYSIWYG_WARNING]);
+	}
+
+	function hide_wysiwyg_warning()
+	{
+		return $this->m_hide_wysiwyg_warning;
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/includes/write_ui.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,117 @@
+<?php
+
+require_once(dirname(__FILE__).'/cache.php');
+require_once(dirname(__FILE__).'/const.php');
+require_once(dirname(__FILE__).'/l10n.php');
+require_once(dirname(__FILE__).'/script.php');
+
+// -----------------------------------------------------------------------------
+// the ExecPhp_WriteUi class displays the user warnings in case of false
+// configuration
+// -----------------------------------------------------------------------------
+
+// use this guard to avoid error messages in WP admin panel if plugin
+// is disabled because of a version conflict but you still try to reload
+// the plugins config interface
+if (!class_exists('ExecPhp_WriteUi')) :
+class ExecPhp_WriteUi
+{
+	var $m_cache = NULL;
+	var $m_script = NULL;
+
+	// ---------------------------------------------------------------------------
+	// init
+	// ---------------------------------------------------------------------------
+
+	function ExecPhp_WriteUi(&$cache, &$script)
+	{
+		$this->m_cache =& $cache;
+		$this->m_script =& $script;
+
+		add_action('edit_form_advanced', array(&$this, 'action_edit_form'));
+		add_action('edit_page_form', array(&$this, 'action_edit_form'));
+		add_action('sidebar_admin_page', array(&$this, 'action_sidebar_admin_page'));
+	}
+
+	// ---------------------------------------------------------------------------
+	// hooks
+	// ---------------------------------------------------------------------------
+
+	function action_edit_form()
+	{
+		if ($this->rtfm_article())
+		{
+			$heading = __s('Exec-PHP WYSIWYG Conversion Warning.', ExecPhp_PLUGIN_ID);
+			$text = __s('Saving this article will render all contained PHP code permanently unuseful. Even if you are saving this article through the Code editor. You can turn off this warning in your user profile. Ignore this warning in case this article does not contain PHP code. <a href="%s">Read the Exec-PHP documentation if you are unsure what to do next</a>.', ExecPhp_PLUGIN_ID
+				, ExecPhp_HOME_URL. '/docs/'. __s('readme.html', ExecPhp_PLUGIN_ID). '#execute_php');
+			$this->m_script->print_message($heading, $text);
+		}
+	}
+
+	function action_sidebar_admin_page()
+	{
+		if ($this->rtfm_widget())
+		{
+			$heading = __s('Exec-PHP Widget Conversion Warning.', ExecPhp_PLUGIN_ID);
+			$text = __s('Saving the widgets will render all contained PHP code permanently unuseful. Ignore this warning in case the text widgets do not contain PHP code. <a href="%s">Read the Exec-PHP documentation if you are unsure what to do next</a>.', ExecPhp_PLUGIN_ID
+				, ExecPhp_HOME_URL. '/docs/'. __s('readme.html', ExecPhp_PLUGIN_ID). '#execute_php');
+			$this->m_script->print_message($heading, $text);
+		}
+	}
+
+	// ---------------------------------------------------------------------------
+	// tools
+	// ---------------------------------------------------------------------------
+
+	// checks whether the author / editor has read the documentation
+	function rtfm_article()
+	{
+		global $post;
+
+		$current_user = wp_get_current_user();
+
+		// the user turned off the wysiwyg warning in its preferences
+		$usermeta =& $this->m_cache->get_usermeta($current_user->ID);
+		if ($usermeta->hide_wysiwyg_warning())
+			return false;
+
+		if (!isset($post->author) || $post->post_author == $current_user->ID)
+		{
+			// the editor is equal to the writer of the article
+			if (!current_user_can(ExecPhp_CAPABILITY_EXECUTE_ARTICLES))
+				return false;
+			if (!current_user_can(ExecPhp_CAPABILITY_WRITE_PHP))
+				return true;
+		}
+		else
+		{
+			// the editor is different to the writer of the article
+			$poster = new WP_User($post->post_author);
+			if (!$poster->has_cap(ExecPhp_CAPABILITY_EXECUTE_ARTICLES))
+				return false;
+			// no check for posters write cap because the editor may want to
+			// insert code after the poster created the article
+		}
+		if (!current_user_can(ExecPhp_CAPABILITY_WRITE_PHP))
+			return true;
+		if (user_can_richedit())
+			return true;
+		if (get_option('use_balanceTags'))
+			return true;
+		return false;
+	}
+
+	// checks whether the admin has read the documentation
+	function rtfm_widget()
+	{
+		$option =& $this->m_cache->get_option();
+		if (!$option->get_widget_support())
+			return false;
+		if (!current_user_can(ExecPhp_CAPABILITY_WRITE_PHP))
+			return true;
+		return false;
+	}
+}
+endif;
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/js/admin.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,97 @@
+g_execphp_ajax = new sack();
+g_execphp_error_message = "";
+g_execphp_retries = 0;
+g_execphp_max_retries = 3;
+g_execphp_feature = "";
+
+function ExecPhp_subscribeForFeature(feature)
+{
+	if (g_execphp_feature.length)
+		g_execphp_feature += ",";
+	g_execphp_feature += feature;
+}
+
+function ExecPhp_fillContainer(container_id, text)
+{
+	var container = document.getElementById(container_id);
+	try {container.innerHTML = text;}
+	catch (e) {;}
+}
+
+function ExecPhp_markContainer(container_id)
+{
+	var container = document.getElementById(container_id + "-container");
+	try {container.style.backgroundColor = "red";}
+	catch (e) {;}
+
+}
+function ExecPhp_ajaxCompletion()
+{
+	var edit_others_php = "";
+	var switch_themes = "";
+	var exec_php = "";
+
+	eval(g_execphp_ajax.response);
+
+	if (!exec_php.length)
+		exec_php = "<p>" + execphpAdminL10n.noUserFound + "</p>";
+	ExecPhp_fillContainer(execphpAdminL10n.executeArticlesContainer, exec_php);
+
+	if (!switch_themes.length)
+		switch_themes = "<p>" + execphpAdminL10n.noUserFound + "</p>";
+	ExecPhp_fillContainer(execphpAdminL10n.widgetsContainer, switch_themes);
+
+	if (!edit_others_php.length)
+		edit_others_php = "<p>" + execphpAdminL10n.noUserFound + "</p>";
+	else
+	{
+		heading = execphpAdminL10n.securityAlertHeading;
+		text = execphpAdminL10n.securityAlertText;
+		ExecPhp_setMessage(heading, text);
+		ExecPhp_markContainer(execphpAdminL10n.securityHoleContainer);
+	}
+	ExecPhp_fillContainer(execphpAdminL10n.securityHoleContainer, edit_others_php);
+}
+
+function ExecPhp_ajaxError()
+{
+	g_execphp_error_message += "<br />"
+		+ g_execphp_ajax.responseStatus[0] + " " + g_execphp_ajax.responseStatus[1];
+
+	if (g_execphp_retries < g_execphp_max_retries)
+	{
+		// retry call; sometimes it seems that the AJAX admin script returns 404
+		++g_execphp_retries;
+		g_execphp_ajax.runAJAX();
+	}
+	else
+	{
+		// finally give up after certain amount of retries
+		var error_message = "<p>" + execphpAdminL10n.AjaxError + "</p>"
+			+ g_execphp_ajax.requestFile + " - " + g_execphp_error_message;
+
+		ExecPhp_markContainer(execphpAdminL10n.executeArticlesContainer);
+		ExecPhp_fillContainer(execphpAdminL10n.executeArticlesContainer, error_message);
+
+		ExecPhp_markContainer(execphpAdminL10n.widgetsContainer);
+		ExecPhp_fillContainer(execphpAdminL10n.widgetsContainer, error_message);
+
+		ExecPhp_markContainer(execphpAdminL10n.securityHoleContainer);
+		ExecPhp_fillContainer(execphpAdminL10n.securityHoleContainer, error_message);
+
+		g_execphp_error_message = "";
+		g_execphp_retries = 0;
+	}
+}
+
+function ExecPhp_requestUser()
+{
+	g_execphp_ajax.setVar("cookie", document.cookie);
+	g_execphp_ajax.setVar("action", execphpAdminL10n.action);
+	g_execphp_ajax.setVar("feature", g_execphp_feature);
+	g_execphp_ajax.requestFile = execphpAdminL10n.requestFile;
+	g_execphp_ajax.onError = ExecPhp_ajaxError;
+	g_execphp_ajax.onCompletion = ExecPhp_ajaxCompletion;
+	g_execphp_ajax.runAJAX();
+	g_execphp_feature = "";
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/js/common.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,13 @@
+function ExecPhp_setMessage(heading, text)
+{
+	var message = '<p><strong>' + heading + '</strong> ' + text + '</p>';
+	var parent = document.getElementById(execphpCommonL10n.messageContainer);
+	try
+	{
+		container = document.createElement("div");
+		container.className = "updated fade";
+		container.innerHTML = container.innerHTML + message;
+		parent.appendChild(container);
+	}
+	catch(e) {;}
+}
Binary file web/wp-content/plugins/exec-php/languages/exec-php-de_DE.mo has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/languages/exec-php-de_DE.po	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,166 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Exec-PHP\n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: 2009-01-07 01:11+0100\n"
+"Last-Translator: Sören Weber <soeren@bluesome.net>\n"
+"Language-Team: Sören Weber <soeren@bluesome.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Basepath: ..\n"
+"X-Poedit-KeywordsList: __;_e;__s;_es\n"
+"X-Poedit-Language: German\n"
+"X-Poedit-Country: GERMANY\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: includes/admin.php:70
+msgid "No user matching the query."
+msgstr "Kein Benutzer erf&uuml;llt die Abfrage."
+
+#: includes/admin.php:71
+msgid "Exec-PHP Security Alert."
+msgstr "Exec-PHP Sicherheitsalarm."
+
+#: includes/admin.php:72
+msgid "The Exec-PHP plugin found a security hole with the configured user rights of this blog. For further information consult the plugin configuration menu or contact your blog administrator."
+msgstr "Das Exec-PHP Plugin hat ein Sicherheitsloch in der Konfiguration der Benutzerberechtigungen dieses Blogs gefunden. F&uuml;r weitere Informationen konsultiere das Konfigurationsmenu des Plugins oder kontaktiere deinen Administrator."
+
+#: includes/admin.php:74
+msgid "Exec-PHP AJAX HTTP error when receiving data: "
+msgstr "Exec-PHP AJAX HTTP Fehler beim Datenempfang: "
+
+#: includes/config_ui.php:49
+#: includes/user_ui.php:46
+#: includes/user_ui.php:48
+msgid "Exec-PHP Settings"
+msgstr "Exec-PHP Einstellungen"
+
+#: includes/config_ui.php:50
+msgid "Exec-PHP"
+msgstr "Exec-PHP"
+
+#: includes/config_ui.php:61
+#: includes/config_ui.php:164
+msgid "Settings"
+msgstr "Einstellungen"
+
+#: includes/config_ui.php:70
+#: includes/config_ui.php:79
+msgid "Exec-PHP Error."
+msgstr "Exec-PHP Fehler."
+
+#: includes/config_ui.php:71
+#, php-format
+msgid "No necessary upgrade of the the Exec-PHP plugin could be performed. PHP code in your articles or widgets may be viewable to your blog readers. This is plugin version %1$s, previously there was version %2$s installed. Downgrading from a newer version to an older version of the plugin is not supported."
+msgstr "Ein notwendiges Upgrade des Exec-PHP Plugins konnte nicht ausgef&uuml;hrt werden. PHP Code in Artikeln oder Widgets ist u.U. f&uuml;r Leser sichtbar. Dies ist Plugin-Version %1$s, zuvor war Version %2$s installiert. Downgrading von einer neueren Version auf eine &auml;ltere Version des Plugins wird nicht unterst&uuml;tzt."
+
+#: includes/config_ui.php:80
+#, php-format
+msgid "An unknown error (%s) occured during execution of the Exec-PHP plugin. PHP code in your articles or widgets may be viewable to your blog readers. This error should never happen if you use the plugin with a compatible WordPress version and installed it as described in the documentation."
+msgstr "Es ist ein unbekannter Fehler (%s) w&auml;hrend der Ausf&uuml;hrung des Exec-PHP Plugins aufgetreten. PHP Code in Artikeln oder Widgets ist u.U. f&uuml;r Leser sichtbar. So ein Fehler sollte niemals passieren wenn das Plugin mit einer kompatiblen WordPress Version benutzt wird und wie in der Dokumentation beschrieben, installiert wurde."
+
+#: includes/config_ui.php:121
+msgid "The list can not be displayed because you may have disabled Javascript or your browser does not support Javascript."
+msgstr "Die Liste kann nicht angzeigt werden, weil Javascript deaktiviert ist oder der Browser kein Javascript unterst&uuml;tzt."
+
+#: includes/config_ui.php:127
+msgid "An animated icon signaling that this information is still be loaded."
+msgstr "Ein animiertes Symbol, das signalisiert, dass die Informationen noch geladen werden."
+
+#: includes/config_ui.php:127
+msgid "Loading user information..."
+msgstr "Lade Benutzer Informationen..."
+
+#: includes/config_ui.php:152
+msgid "Settings saved."
+msgstr "Einstellungen gespeichert."
+
+#: includes/config_ui.php:160
+msgid "Exec-PHP Plugin"
+msgstr "Exec-PHP Plugin"
+
+#: includes/config_ui.php:161
+#: includes/write_ui.php:46
+#: includes/write_ui.php:57
+msgid "readme.html"
+msgstr "readme-de_DE.html"
+
+#: includes/config_ui.php:161
+#, php-format
+msgid "Exec-PHP executes <code>&lt;?php ?&gt;</code> code in your posts, pages and text widgets. See the <a href=\"%s\">local documentation</a> for further information. The latest version of the plugin, documentation and information can be found on the <a href=\"http://bluesome.net/post/2005/08/18/50/\">official plugin homepage</a>."
+msgstr "Exec-PHP f&uuml;hrt <code>&lt;?php ?&gt;</code> Code in Beitr&auml;gen, Seiten und Text Widgets aus. F&uuml;r weitere Informationen lese die <a href='%s'>lokale Dokumentation</a>. Die neuste Version des Plugins, Dokumentation und Informationen k&ouml;nnen auf der <a href='http://bluesome.net/post/2005/08/18/50/'>offiziellen Plugin Homepage</a> gefunden werden."
+
+#: includes/config_ui.php:172
+msgid "Execute PHP code in text widgets"
+msgstr "F&uuml;hre PHP Code in Text Widgets aus"
+
+#: includes/config_ui.php:176
+msgid "Executing PHP code in text widgets is not restricted to any user. By default users who can modify text widgets will also be able to execute PHP code in text widgets. Unselect this option to generally turn off execution of PHP code in text widgets."
+msgstr "Das Ausf&uuml;hren von PHP Code in Text Widgets ist nicht an bestimmte Benutzer gebunden. Benutzer, die Text Widgets modifizieren k&ouml;nnen, sind auch in der Lage, PHP Code in Text Widgets auszuf&uuml;hren. Deaktiviere diese Einstellung, wenn die Ausf&uuml;hrung von PHP Code in Widgets abgeschaltet werden soll."
+
+#: includes/config_ui.php:185
+msgid "Save Changes"
+msgstr "&Auml;nderungen speichern"
+
+#: includes/config_ui.php:190
+msgid "Security Information"
+msgstr "Sicherheitsinformationen"
+
+#: includes/config_ui.php:191
+msgid "The following lists show which users are allowed to write or execute PHP code in different cases. Allowing to write or execute PHP code can be adjusted by assigning the necessary capabilities to individual users or roles by using a role manager plugin."
+msgstr "Die nachfolgenden Listen zeigen an, welche Benutzer f&uuml;r unterschiedliche F&auml;lle die Berechtigung haben PHP Code auszuf&uuml;hren. Das Ausf&uuml;hren von PHP Code kann durch das Zuweisen von Berechtigungen zu einzelnen Benutzern oder Rollen mit Hilfe eines Rollen-Manager Plugins eingestellt werden."
+
+#: includes/config_ui.php:196
+msgid "Security Hole"
+msgstr "Sicherheitsl&uuml;cke"
+
+#: includes/config_ui.php:197
+#, php-format
+msgid "The following list shows which users have either or both of the &quot;%1$s&quot; or &quot;%2$s&quot; capability and are allowed to change others PHP code by having the &quot;%3$s&quot; capability but do not have the &quot;%4$s&quot; capability for themself. This is a security hole, because the listed users can write and execute PHP code in articles of other users although they are not supposed to execute PHP code at all."
+msgstr "Die nachfolgende Liste zeigt an, welche Benutzer eine oder beide der  &quot;%1$s&quot; oder &quot;%2$s&quot; Berechtigungen besitzten und au&szlig;erdem durch die Zuweisung der &quot;%3$s&quot; Berechtigung den PHP Code anderer Benutzer &auml;ndern k&ouml;nnen aber denen es selbst durch eine fehlende &quot;%4$s&quot; Berechtigung nicht erlaubt ist PHP Code auszuf&uuml;hren. Dies stellt eine Sicherheitsl&uuml;cke dar, denn die aufgelisteten Benutzer k&ouml;nnen nun PHP Code in Artikel von anderen Benutzern schreiben und ausf&uuml;hren, obwohl sie eigentlich &uuml;berhaupt keinen PHP Code ausf&uuml;hren d&uuml;rfen."
+
+#: includes/config_ui.php:202
+msgid "Executing PHP Code in Text Widgets"
+msgstr "PHP Code in Text Widgets ausf&uuml;hren"
+
+#: includes/config_ui.php:203
+#, php-format
+msgid "The following list shows which users have the &quot;%s&quot; capability and therefore are allowed to write and execute PHP code in text widgets. In case you have deselected the option &quot;Execute PHP code in text widgets&quot; from above, this list will appear empty."
+msgstr "Die folgende Liste zeigt an, welche Benutzer die &quot;%s&quot; Berechtigung haben und dementsprechend in der Lage sind, PHP Code in Text Widgets auszuf&uuml;hren. Die Liste wird keine Eintr&auml;ge anzeigen f&uuml;r den Fall, dass die Option &quot;F&uuml;hre PHP Code in Text Widgets aus&quot; abgew&auml;hlt wurde."
+
+#: includes/config_ui.php:208
+msgid "Executing PHP Code in Articles"
+msgstr "PHP Code in Artikeln ausf&uuml;hren"
+
+#: includes/config_ui.php:209
+#, php-format
+msgid "The following list shows which users have the &quot;%s&quot; capability and therefore are allowed to execute PHP code in articles."
+msgstr "Die folgende Liste zeigt an, welche Benutzer die &quot;%s&quot; Berechtigung haben und dementsprechend in der Lage sind, PHP Code in Artikeln auszuf&uuml;hren."
+
+#: includes/user_ui.php:52
+msgid "Disable WYSIWYG Conversion Warning"
+msgstr "Exec-PHP WYSIWYG Konvertierungswarnung"
+
+#: includes/user_ui.php:56
+msgid "Select this option to turn off the WYSIWYG Conversion Warning in the Write menu. Nevertheless the recommended way is to switch off the WYSIWYG editor so you can be sure not to break existing PHP code by accident."
+msgstr "Aktiviere diese Option um die WYSIWYG Konvertierungswarnung abzuschalten. Nichtsdestotrotz ist der empfohlene Weg, den WYSIWYG Editor ganz abzuschalten um sicherzustellen, dass du keinen bestehenden PHP Code ausversehen zerst&ouml;rst."
+
+#: includes/write_ui.php:44
+msgid "Exec-PHP WYSIWYG Conversion Warning."
+msgstr "Exec-PHP WYSIWYG Konvertierungswarnung."
+
+#: includes/write_ui.php:45
+#, php-format
+msgid "Saving this article will render all contained PHP code permanently unuseful. Even if you are saving this article through the Code editor. You can turn off this warning in your user profile. Ignore this warning in case this article does not contain PHP code. <a href=\"%s\">Read the Exec-PHP documentation if you are unsure what to do next</a>."
+msgstr "Wenn dieser Artikel gespeichert wird, wird jeglicher in ihm enthaltener PHP Code dauerhaft zerst&ouml;rt. Selbst wenn dieser Artikel über den Code Editor gespeichert wird. Du kannst diese Warnung in deinem Benutzerprofil abschalten. Ignoriere diese Warnung, falls dieser Artikel keinen PHP Code enth&auml;lt. <a href=\"%s\">Lese die Exec-PHP Dokumentation, falls du nicht wei&szlig;t, was diese Warnung bedeutet</a>."
+
+#: includes/write_ui.php:55
+msgid "Exec-PHP Widget Conversion Warning."
+msgstr "Exec-PHP Widget Konvertierungswarnung."
+
+#: includes/write_ui.php:56
+#, php-format
+msgid "Saving the widgets will render all contained PHP code permanently unuseful. Ignore this warning in case the text widgets do not contain PHP code. <a href=\"%s\">Read the Exec-PHP documentation if you are unsure what to do next</a>."
+msgstr "Wenn die Widgets gespeichert werden, wird jeglicher in ihnen enthaltener PHP Code dauerhaft zerst&ouml;rt. Ignoriere diese Warnung, falls die Text Widgets keinen PHP Code enthalten. <a href=\"%s\">Lese die Exec-PHP Dokumentation, falls du nicht wei&szlig;t, was diese Warnung bedeutet</a>."
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/languages/exec-php.pot	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,166 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Exec-PHP\n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: 2009-01-07 01:11+0100\n"
+"Last-Translator: Sören Weber <soeren@bluesome.net>\n"
+"Language-Team: Sören Weber <soeren@bluesome.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Basepath: ..\n"
+"X-Poedit-KeywordsList: __;_e;__s;_es\n"
+"X-Poedit-Language: German\n"
+"X-Poedit-Country: GERMANY\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: includes/admin.php:70
+msgid "No user matching the query."
+msgstr ""
+
+#: includes/admin.php:71
+msgid "Exec-PHP Security Alert."
+msgstr ""
+
+#: includes/admin.php:72
+msgid "The Exec-PHP plugin found a security hole with the configured user rights of this blog. For further information consult the plugin configuration menu or contact your blog administrator."
+msgstr ""
+
+#: includes/admin.php:74
+msgid "Exec-PHP AJAX HTTP error when receiving data: "
+msgstr ""
+
+#: includes/config_ui.php:49
+#: includes/user_ui.php:46
+#: includes/user_ui.php:48
+msgid "Exec-PHP Settings"
+msgstr ""
+
+#: includes/config_ui.php:50
+msgid "Exec-PHP"
+msgstr ""
+
+#: includes/config_ui.php:61
+#: includes/config_ui.php:164
+msgid "Settings"
+msgstr ""
+
+#: includes/config_ui.php:70
+#: includes/config_ui.php:79
+msgid "Exec-PHP Error."
+msgstr ""
+
+#: includes/config_ui.php:71
+#, php-format
+msgid "No necessary upgrade of the the Exec-PHP plugin could be performed. PHP code in your articles or widgets may be viewable to your blog readers. This is plugin version %1$s, previously there was version %2$s installed. Downgrading from a newer version to an older version of the plugin is not supported."
+msgstr ""
+
+#: includes/config_ui.php:80
+#, php-format
+msgid "An unknown error (%s) occured during execution of the Exec-PHP plugin. PHP code in your articles or widgets may be viewable to your blog readers. This error should never happen if you use the plugin with a compatible WordPress version and installed it as described in the documentation."
+msgstr ""
+
+#: includes/config_ui.php:121
+msgid "The list can not be displayed because you may have disabled Javascript or your browser does not support Javascript."
+msgstr ""
+
+#: includes/config_ui.php:127
+msgid "An animated icon signaling that this information is still be loaded."
+msgstr ""
+
+#: includes/config_ui.php:127
+msgid "Loading user information..."
+msgstr ""
+
+#: includes/config_ui.php:152
+msgid "Settings saved."
+msgstr ""
+
+#: includes/config_ui.php:160
+msgid "Exec-PHP Plugin"
+msgstr ""
+
+#: includes/config_ui.php:161
+#: includes/write_ui.php:46
+#: includes/write_ui.php:57
+msgid "readme.html"
+msgstr ""
+
+#: includes/config_ui.php:161
+#, php-format
+msgid "Exec-PHP executes <code>&lt;?php ?&gt;</code> code in your posts, pages and text widgets. See the <a href=\"%s\">local documentation</a> for further information. The latest version of the plugin, documentation and information can be found on the <a href=\"http://bluesome.net/post/2005/08/18/50/\">official plugin homepage</a>."
+msgstr ""
+
+#: includes/config_ui.php:172
+msgid "Execute PHP code in text widgets"
+msgstr ""
+
+#: includes/config_ui.php:176
+msgid "Executing PHP code in text widgets is not restricted to any user. By default users who can modify text widgets will also be able to execute PHP code in text widgets. Unselect this option to generally turn off execution of PHP code in text widgets."
+msgstr ""
+
+#: includes/config_ui.php:185
+msgid "Save Changes"
+msgstr ""
+
+#: includes/config_ui.php:190
+msgid "Security Information"
+msgstr ""
+
+#: includes/config_ui.php:191
+msgid "The following lists show which users are allowed to write or execute PHP code in different cases. Allowing to write or execute PHP code can be adjusted by assigning the necessary capabilities to individual users or roles by using a role manager plugin."
+msgstr ""
+
+#: includes/config_ui.php:196
+msgid "Security Hole"
+msgstr ""
+
+#: includes/config_ui.php:197
+#, php-format
+msgid "The following list shows which users have either or both of the &quot;%1$s&quot; or &quot;%2$s&quot; capability and are allowed to change others PHP code by having the &quot;%3$s&quot; capability but do not have the &quot;%4$s&quot; capability for themself. This is a security hole, because the listed users can write and execute PHP code in articles of other users although they are not supposed to execute PHP code at all."
+msgstr ""
+
+#: includes/config_ui.php:202
+msgid "Executing PHP Code in Text Widgets"
+msgstr ""
+
+#: includes/config_ui.php:203
+#, php-format
+msgid "The following list shows which users have the &quot;%s&quot; capability and therefore are allowed to write and execute PHP code in text widgets. In case you have deselected the option &quot;Execute PHP code in text widgets&quot; from above, this list will appear empty."
+msgstr ""
+
+#: includes/config_ui.php:208
+msgid "Executing PHP Code in Articles"
+msgstr ""
+
+#: includes/config_ui.php:209
+#, php-format
+msgid "The following list shows which users have the &quot;%s&quot; capability and therefore are allowed to execute PHP code in articles."
+msgstr ""
+
+#: includes/user_ui.php:52
+msgid "Disable WYSIWYG Conversion Warning"
+msgstr ""
+
+#: includes/user_ui.php:56
+msgid "Select this option to turn off the WYSIWYG Conversion Warning in the Write menu. Nevertheless the recommended way is to switch off the WYSIWYG editor so you can be sure not to break existing PHP code by accident."
+msgstr ""
+
+#: includes/write_ui.php:44
+msgid "Exec-PHP WYSIWYG Conversion Warning."
+msgstr ""
+
+#: includes/write_ui.php:45
+#, php-format
+msgid "Saving this article will render all contained PHP code permanently unuseful. Even if you are saving this article through the Code editor. You can turn off this warning in your user profile. Ignore this warning in case this article does not contain PHP code. <a href=\"%s\">Read the Exec-PHP documentation if you are unsure what to do next</a>."
+msgstr ""
+
+#: includes/write_ui.php:55
+msgid "Exec-PHP Widget Conversion Warning."
+msgstr ""
+
+#: includes/write_ui.php:56
+#, php-format
+msgid "Saving the widgets will render all contained PHP code permanently unuseful. Ignore this warning in case the text widgets do not contain PHP code. <a href=\"%s\">Read the Exec-PHP documentation if you are unsure what to do next</a>."
+msgstr ""
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/exec-php/readme.txt	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,149 @@
+=== Exec-PHP ===
+Contributors: McShelby
+Tags: code, exec, execute, eval, php, run
+Requires at least: 2.0.11
+Tested up to: 2.8
+Stable tag: 4.9
+
+The Exec-PHP plugin executes PHP code in posts, pages and text widgets.
+
+== Description ==
+
+The Exec-PHP plugin executes PHP code in posts, pages and text widgets.
+
+Features:
+
+* Executes PHP code in the excerpt and the content portion of your posts and pages
+* Configurable execution of PHP code in text widgets (for WordPress 2.2 or higher)
+* Write PHP code in familiar syntax, eg. `<?php ... ?>`
+* Works in your newsfeeds
+* Information about which users are allowed to execute PHP with the current security settings (for WordPress 2.1 or higher)
+* Configurable user warnings for inappropriate blog and user settings (for WordPress 2.1 or higher)
+* Restrict execution of PHP code in posts and pages to certain users by using roles and capabilities
+* Update notifications through the 'Plugins' menu in WordPress if a new version of the Exec-PHP plugin is available (for WordPress 2.3 or higher)
+* Internationalization support (english and german included, many more available)
+* Comes with documentation
+
+For support and further information about the Exec-PHP plugin see the plugins homepage at [http://bluesome.net/post/2005/08/18/50/](http://bluesome.net/post/2005/08/18/50/ "Link to Exec-PHPs homepage").
+
+== Installation ==
+
+If you have ever installed a WordPress plugin, then installation will be pretty easy:
+
+1. Download the Exec-PHP plugin archive and extract the files
+1. Copy the resulting exec-php directory into /wp-content/plugins/
+1. Activate the plugin through the 'Plugins' menu of WordPress
+1. Configure blog and user settings if needed
+
+For support and further information about the Exec-PHP plugin see the plugins homepage at [http://bluesome.net/post/2005/08/18/50/](http://bluesome.net/post/2005/08/18/50/ "Link to Exec-PHPs homepage").
+
+== Frequently Asked Questions ==
+
+= Where do I get support and further information =
+
+For support and further information about the Exec-PHP plugin see the plugins homepage at [http://bluesome.net/post/2005/08/18/50/](http://bluesome.net/post/2005/08/18/50/ "Link to Exec-PHPs homepage").
+
+== Screenshots ==
+
+1. The Exec-PHP configuration menu
+2. An Exec-PHP warning in the 'Write' menu
+3. Exec-PHP warning configuration in the 'Users &gt; Your Profile' menu
+
+== Changelog ==
+
+= 4.9 (2009-01-07) =
+* Requirements: WordPress 2.0.11 or higher
+* Feature: Improved performance during loading admin interface
+* Feature: New 'Settings' link in WordPress 'Plugin' menu
+* Feature: WYSIWYG Conversion Warning now also displays for WordPress 2.0.11
+
+= 4.8 (2008-07-05) =
+* Requirements: WordPress 2.0 or higher
+* Feature: Support for WordPress 2.6 (relocation of wp-content)
+
+= 4.7 (2008-05-05) =
+* Requirements: WordPress 2.0 or higher
+* Bugfix: For PHP4 the cache instance wasn't a reference, which was a bug but did not cause any known issues
+* Bugfix: Now Javascript works with single quotes for translated text
+* Feature: Increased performance for AJAX call
+* Feature: Better localization support inside of the plugin and the readme
+
+= 4.6 (2008-04-06) =
+* Requirements: WordPress 2.0 or higher
+* Feature: In case of AJAX error retry call at most three more times
+* Bugfix: Making Exec-PHP configuration menu valid XHTML
+
+= 4.5 (2008-03-24) =
+* Requirements: WordPress 2.0 or higher
+* Bugfix: Fixing WordPress 2.1.x compatibility
+* Bugfix: WYSIWYG Conversion Warning now displays correctly for pages, too
+* Change: Performance optimization during plugin initialization
+* Change: Nonintrusive AJAX error display
+* Feature: Plugin interface support for WordPress 2.5
+
+= 4.4 (2008-01-29) =
+* Requirements: WordPress 2.0 or higher
+* Bugfix: Incompatibilites with WP-Shopping-Cart because of Javascript global variable clash
+* Change: New directory structure
+
+= 4.3 (2007-12-11) =
+* Requirements: WordPress 2.0 or higher
+* Bugfix: Requirements lowered to WordPress 2.0 or higher
+* Bugfix: Delay loading of text translations to support language switching plugins
+* Feature: The WYSIWYG Conversion Warning can now be turned off through the Profile menu of the user
+
+= 4.2 (2007-11-03) =
+* Requirements: WordPress 2.2 or higher
+* Change: Remodeling the Information section of the plugin configuration menu
+* Feature: Showing security alarms in the Information section of the plugin configuration menu
+* Feature: A warning will be printed on the 'Write' and the 'Widgets' menu in case blog or user settings will screw up written PHP code during saving the article or widgets
+
+= 4.1 (2007-10-27) =
+* Requirements: WordPress 2.2 or higher
+* Bugfix: Display of the Exec-PHP configuration menu was restricted by an inappropriate capability
+* Bugfix: Making Exec-PHP configuration menu valid XHTML
+* Feature: The Exec-PHP configuration menu now displays which user is allowed to write and execute PHP. Display of this list is executed with AJAX. Therefore even for large WordPress installations with many users, the time to load the Exec-PHP configuration menu will still be satisfiying
+
+= 4.0 (2007-10-25) =
+* Requirements: WordPress 2.0 or higher
+* Bugfix: When the blog administrator removes the 'exec_php' capability from all roles, the plugin will not reassign the capability to the Administrator and Editor roles
+* Change: For new plugin installations only the Administrator role will be eligable to execute PHP code
+* Feature: Configurable execution of PHP code in text widgets through the Exec-PHP configuration menu. This will only work with native widgets support introduced in WordPress 2.2 or higher
+
+= 3.4 (2007-10-08) =
+* Requirements: WordPress 2.0 or higher
+* Feature: Now supports execution of code in text widgets
+* Feature: Now supports plugin upgrade notification through the 'Plugins' menu of WordPress by listing it in the <a href="http://wordpress.org/extend/plugins/exec-php/">official WordPress plugin repository</a>
+
+= 3.3 (2007-08-11) =
+* Bugfix: Removing spaces around PHP code
+* Bugfix: Removing obsolete plugin hooks for WordPress 1.x
+
+= 3.2 (2007-02-10) =
+* Bugfix: Removing obsolete config interface hooks
+
+= 3.1 (2007-02-09) =
+* Bugfix: Removing tag style converter because a) it caused a serious slow down in the WordPress admin interface and b) PCRE proved to be very buggy and unreliable. Note for myself: Never use PCRE again!
+* Feature: Adding internationalization (just to be complete)
+* Feature: Now works in RSS feeds
+
+= 3.0 (2006-08-06) =
+* Feature: Removing all alternative PHP tag styles like <code>&#91;?php ?&#93;</code> and <code>&lt; ?php ?&gt;</code>, because regex was buggy and to tough to support
+* Feature: Removing support for WordPress 1.x, because regex was buggy and to tough to support
+* Feature: Moving plugin files to plugins subdirectory
+* Feature: Adding tag style converter
+* Feature: Adding support for excerpt field
+* Bugfix: Because of changes to PHP tag handling, the bug reported in comment 84 is fixed
+
+= 2.0 (2005-12-22) =
+* Feature: For WordPress 2.0 execution of PHP is now restricted to Administrators or Editors
+* Feature: Supporting alternative PHP tags <code>&#91;?php ?&#93;</code>
+
+= 1.2 (2005-12-04) =
+* Bugfix: Reparing issue with reopening PHP tags (Test #16)
+
+= 1.1 (2005-08-19) =
+* Bugfix: Escaped string delimiters in PHP strings are now parsed correctly
+
+= 1.0 (2005-08-18) =
+* Feature: Allows `<?php ?>` tags inside your articles to execute the code inside of it
Binary file web/wp-content/plugins/exec-php/screenshot-1.png has changed
Binary file web/wp-content/plugins/exec-php/screenshot-2.png has changed
Binary file web/wp-content/plugins/exec-php/screenshot-3.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/nice-titles/nicetitle.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,25 @@
+div.nicetitle {
+    position: absolute;
+    padding: 4px;
+    top: 0px;
+    left: 0px;
+    color: white;
+    font-size: 10px;
+    font-family: Verdana, Helvetica, Arial, sans-serif;
+    width: 25em;
+    font-weight: bold;
+    background: url(ntbg.png);
+	z-index:1;
+    
+    /* Mozilla proprietary */
+    -moz-border-radius: 0px;
+}
+div.nicetitle p {
+    margin: 0; padding: 0 3px;
+}
+div.nicetitle p.destination {
+    font-size: 8px;
+    text-align: left;
+    padding-top: 3px;
+	/*visibility: hidden;*/
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/nice-titles/nicetitle.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,222 @@
+addEvent(window, "load", makeNiceTitles);
+
+var XHTMLNS = "http://www.w3.org/1999/xhtml";
+var CURRENT_NICE_TITLE;
+var browser = new Browser();
+
+function makeNiceTitles() {
+    if (!document.createElement || !document.getElementsByTagName) return;
+    // add namespace methods to HTML DOM; this makes the script work in both
+    // HTML and XML contexts.
+    if(!document.createElementNS)
+    {
+        document.createElementNS = function(ns,elt) {
+            return document.createElement(elt);
+        }
+    }
+
+    if( !document.links )
+    {
+        document.links = document.getElementsByTagName("a");
+    }
+    for (var ti=0;ti<document.links.length;ti++) {
+        var lnk = document.links[ti];
+        if (lnk.title) {
+            lnk.setAttribute("nicetitle",lnk.title);
+            lnk.removeAttribute("title");
+            addEvent(lnk,"mouseover",showNiceTitle);
+            addEvent(lnk,"mouseout",hideNiceTitle);
+            addEvent(lnk,"focus",showNiceTitle);
+            addEvent(lnk,"blur",hideNiceTitle);
+        }
+    }
+    var instags = document.getElementsByTagName("ins");
+    if (instags) {
+    for (var ti=0;ti<instags.length;ti++) {
+        var instag = instags[ti];
+        if (instag.dateTime) {
+            var strDate = instag.dateTime;
+            var dtIns = new Date(strDate.substring(0,4),parseInt(strDate.substring(4,6)-1),strDate.substring(6,8),strDate.substring(9,11),strDate.substring(11,13),strDate.substring(13,15));
+            instag.setAttribute("nicetitle","Added on "+dtIns.toString());
+            addEvent(instag,"mouseover",showNiceTitle);
+            addEvent(instag,"mouseout",hideNiceTitle);
+            addEvent(instag,"focus",showNiceTitle);
+            addEvent(instag,"blur",hideNiceTitle);
+        }
+    }
+    }
+}
+
+function findPosition( oLink ) {
+  if( oLink.offsetParent ) {
+    for( var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent ) {
+      posX += oLink.offsetLeft;
+      posY += oLink.offsetTop;
+    }
+    return [ posX, posY ];
+  } else {
+    return [ oLink.x, oLink.y ];
+  }
+}
+
+function showNiceTitle(e) {
+    if (CURRENT_NICE_TITLE) hideNiceTitle(CURRENT_NICE_TITLE);
+    if (!document.getElementsByTagName) return;
+    if (window.event && window.event.srcElement) {
+        lnk = window.event.srcElement
+    } else if (e && e.target) {
+        lnk = e.target
+    }
+    if (!lnk) return;
+    if (lnk.nodeName.toUpperCase() != 'A') {
+        // lnk is not actually the link -- ascend parents until we hit a link
+        lnk = getParent(lnk,"A");
+    }
+    if (!lnk) return;
+    nicetitle = lnk.getAttribute("nicetitle");
+    
+    var d = document.createElementNS(XHTMLNS,"div");
+    d.className = "nicetitle";
+    tnt = document.createTextNode(nicetitle);
+    pat = document.createElementNS(XHTMLNS,"p");
+    pat.className = "titletext";
+    pat.appendChild(tnt);
+    d.appendChild(pat);
+    if (lnk.href) {
+        tnd = document.createTextNode(lnk.href);
+        pad = document.createElementNS(XHTMLNS,"p");
+        pad.className = "destination";
+        pad.appendChild(tnd);
+        d.appendChild(pad);
+    }
+    
+	// sam modif START ----------
+    STD_WIDTH = 300;
+    if (lnk.href) {
+        h = lnk.href.length;
+    } else { h = nicetitle.length; }
+    if (nicetitle.length) {
+      t = nicetitle.length;
+    }
+	
+    //h_pixels = h*6; t_pixels = t*10;
+	h_pixels = 300;
+	t_pixels = t*10;
+    // sam modif END -------------
+	
+    if (h_pixels > STD_WIDTH) {
+        w = h_pixels;
+    } else if ((STD_WIDTH>t_pixels) && (t_pixels>h_pixels)) {
+        w = t_pixels;
+    } else if ((STD_WIDTH>t_pixels) && (h_pixels>t_pixels)) {
+        w = h_pixels;
+    } else {
+        w = STD_WIDTH;
+    }
+        
+    d.style.width = w + 'px';    
+
+    /*
+    mx = lnk.offsetLeft;
+    my = lnk.offsetTop;
+    */
+    mpos = findPosition(lnk);
+    mx = mpos[0];
+    my = mpos[1];
+    //xy = getMousePosition(e);
+    //mx = xy[0]; my = xy[1];
+    
+    d.style.left = (mx+15) + 'px';
+    d.style.top = (my+35) + 'px';
+    if (window.innerWidth && ((mx+w) > window.innerWidth)) {
+        d.style.left = (window.innerWidth - w - 25) + "px";
+    }
+    if (document.body.scrollWidth && ((mx+w) > document.body.scrollWidth)) {
+        d.style.left = (document.body.scrollWidth - w - 25) + "px";
+    }
+    
+    document.getElementsByTagName("body")[0].appendChild(d);
+    
+    CURRENT_NICE_TITLE = d;
+}
+
+function hideNiceTitle(e) {
+    if (!document.getElementsByTagName) return;
+    if (CURRENT_NICE_TITLE) {
+        document.getElementsByTagName("body")[0].removeChild(CURRENT_NICE_TITLE);
+        CURRENT_NICE_TITLE = null;
+    }
+}
+
+// Add an eventListener to browsers that can do it somehow.
+// Originally by the amazing Scott Andrew.
+function addEvent(obj, evType, fn){
+  if (obj.addEventListener){
+    obj.addEventListener(evType, fn, false);
+    return true;
+  } else if (obj.attachEvent){
+	var r = obj.attachEvent("on"+evType, fn);
+    return r;
+  } else {
+	return false;
+  }
+}
+
+function getParent(el, pTagName) {
+	if (el == null) return null;
+	else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase())	// Gecko bug, supposed to be uppercase
+		return el;
+	else
+		return getParent(el.parentNode, pTagName);
+}
+
+function getMousePosition(event) {
+  if (browser.isIE) {
+    x = window.event.clientX + document.documentElement.scrollLeft
+      + document.body.scrollLeft;
+    y = window.event.clientY + document.documentElement.scrollTop
+      + document.body.scrollTop;
+  }
+  if (browser.isNS) {
+    x = event.clientX + window.scrollX;
+    y = event.clientY + window.scrollY;
+  }
+  return [x,y];
+}
+
+// Determine browser and version.
+
+function Browser() {
+// blah, browser detect, but mouse-position stuff doesn't work any other way
+  var ua, s, i;
+
+  this.isIE    = false;
+  this.isNS    = false;
+  this.version = null;
+
+  ua = navigator.userAgent;
+
+  s = "MSIE";
+  if ((i = ua.indexOf(s)) >= 0) {
+    this.isIE = true;
+    this.version = parseFloat(ua.substr(i + s.length));
+    return;
+  }
+
+  s = "Netscape6/";
+  if ((i = ua.indexOf(s)) >= 0) {
+    this.isNS = true;
+    this.version = parseFloat(ua.substr(i + s.length));
+    return;
+  }
+
+  // Treat any other "Gecko" browser as NS 6.1.
+
+  s = "Gecko";
+  if ((i = ua.indexOf(s)) >= 0) {
+    this.isNS = true;
+    this.version = 6.1;
+    return;
+  }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/nice-titles/nt.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,31 @@
+<?php
+/*
+Plugin Name: Nice Titles
+Plugin URI: http://showfom.com/nice-titles-wordpress-plugin/
+Description: Nice Titles on your Wordpress Blog based on the Nice Titles script by <a href="http://www.kryogenix.org/code/browser/nicetitle/" title="Nice Titles">kryogenix.org</a>.
+Version: 1.0
+Author: Showfom
+Author URI: http://showfom.com/
+
+**********************************************************************
+Copyright (c) 2009 Showfom
+Released under the terms of the GNU GPL: http://www.gnu.org/licenses/gpl.txt
+
+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. 
+**********************************************************************
+
+Installation: Upload the folder "nice-titles" with its contents to "wp-content/plugins/"  and activate the plugin in your admin panel.
+*/
+
+function NiceTitles() {
+  /*  Path for snow */
+	$ntPath = get_option('siteurl').'/wp-content/plugins/nice-titles/';
+	$ntJS .= '<!-- Generated by Nice Titles 1.0 -->'."\n";
+	$ntJS .= '<script type="text/javascript" src="'.$ntPath.'nicetitle.js"></script>'."\n";
+	$ntJS .= '<link rel="stylesheet" href="'.$ntPath.'nicetitle.css" />'."\n";
+	print($ntJS);
+}
+add_action('wp_head', 'NiceTitles');
+?>
Binary file web/wp-content/plugins/nice-titles/ntbg.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/nice-titles/readme.txt	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,34 @@
+=== Plugin Name ===
+Contributors: Showfom
+Donate link: http://showfom.com/sweet-titles-wordpress-plugin/
+Tags: titles, pages
+Requires at least: 2.0.2
+Tested up to: 3.0
+Stable tag: trunk
+
+Nice Titles on your Wordpress Blog based on the Nice Titles script by http://www.kryogenix.org/code/browser/nicetitle/
+
+== Description ==
+
+Nice Titles on your Wordpress Blog based on the Nice Titles script by http://www.kryogenix.org/code/browser/nicetitle/
+
+== Installation ==
+
+
+1. Upload the folder "nice-titles" with its contents to "wp-content/plugins/".
+2. Activate the plugin in your admin panel.
+
+
+== Frequently Asked Questions ==
+
+= How to use =
+
+Upload the folder "nice-titles" with its contents to "wp-content/plugins/"  and activate the plugin in your admin panel.
+
+
+== Screenshots ==
+1.  `/trunk/screenshot-1.png`
+
+== Arbitrary section ==
+
+== A brief Markdown Example ==
\ No newline at end of file
Binary file web/wp-content/plugins/nice-titles/screenshot-1.png has changed
--- a/web/wp-content/plugins/order-categories/category-order.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/plugins/order-categories/category-order.php	Mon Feb 01 09:51:57 2010 +0000
@@ -17,9 +17,13 @@
 	}
 
 	function wpguy_category_order_scriptaculous() {
-		if($_GET['page'] == "wpguy_category_order_options"){
-			wp_enqueue_script('scriptaculous');
-		} 
+		
+		if(array_key_exists('page',$_GET)){
+		
+			if($_GET['page'] == "wpguy_category_order_options"){
+				wp_enqueue_script('scriptaculous');
+			} 
+		}
 	}
 	
 	add_action('admin_head', 'wpguy_category_order_options_head'); 
--- a/web/wp-content/plugins/posts-of-current-category/posts-of-current-category.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/plugins/posts-of-current-category/posts-of-current-category.php	Mon Feb 01 09:51:57 2010 +0000
@@ -6,6 +6,7 @@
 Version: 0.1
 Author: Anup Raj
 Author URI: http://anupraj.com.np/home/
+// modified by sam 21/01/2010
 */
 
 class posts_cur_cat extends WP_Widget {
@@ -147,12 +148,15 @@
 	$posts = get_posts($query); //get posts
 	$postlist = '';	
     foreach ($posts as $post) {
-		$post_title = htmlspecialchars(stripslashes($post->post_title));
-		$postlist .= '<li><a href="' . get_permalink($post->ID) . '" title="'. $post_title .'" >' . $post_title . '</a> </li>';
+		$post_title_s = htmlspecialchars(stripslashes(cache_cutter($post->post_title)));
+		$post_title_l = htmlspecialchars(stripslashes(text_cutter($post->post_title,200)));
+		// modif here (cache_cutter(); ) 				
+		$postlist .= '<li><a href="' . get_permalink($post->ID) . '" title="'.  $post_title_s .'" >' . $post_title_l . ' </a> </li>';
     }
 	
 	echo '<ul class="advanced-recent-posts">';		
 		echo $postlist;
 	echo '</ul>';
  }
+
 ?>
\ No newline at end of file
--- a/web/wp-content/plugins/related-posts-by-category/related_posts.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/plugins/related-posts-by-category/related_posts.php	Mon Feb 01 09:51:57 2010 +0000
@@ -6,6 +6,7 @@
 Author: Sergej M&uuml;ller
 Version: 0.4
 Author URI: http://www.wpseo.org
+// modified by samuel huron 20/01/01
 */
 
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/ultimate-google-analytics/readme.txt	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,56 @@
+=== Ultimate Google Analytics ===
+Contributors: wvanderdeijl
+Donate link: http://www.oratransplant.nl/uga/
+Tags: google analytics, google, statistics, stats, tracking
+Requires at least: 1.5.1.3
+Tested up to: 2.3.2
+Stable tag: trunk
+
+Adds Google Analytics JavaScript to each page on your weblog. Can also add tracking to outbound links, downloads from your site and mail links.
+
+== Description ==
+
+Plugin to add Google Analytics JavaScript to each page on your weblog without making any changes to your template. The plugin can also add tracking to outbound links, downloads from your own site and mailto: links. 
+
+The plugin is highly configurable. Read trough the list of features below to get a feeling of what this plugin can do. You can enable and disable all features individually, although the default configuration will suffice for 90% of the users.
+
+**Features**
+
+* Start with a simple configuration screen and hide more advanced/complex configuration in an Advanced Configuration mode. Most users will suffice with the simple configuration screen. If you're interested in tweaking and tuning this plugin, use the advanced settings.
+* Do not make any changes to feeds, as it is not wise to include JavaScript in those
+* Add the same JavaScript tracker code to the admin pages if you want to track those as well (switched off with the default settings)
+* When adding the JavaScript tracker code to a page, put it at the end of the body. There are quite a few WordPress plugins for Google Analytics out there. Most of them include the JavaScript in the head section. This can delay the loading of your page and is not advised by Google
+* When using a WordPress theme that does not invoke the wp_footer hook as it is supposed to do, the JavaScript tracker code will be added to the head section. This can delay the loading of your page. The only way to prevent this, is to have the theme author implement the correct plugin calls, fix the theme yourself or start using another theme
+* Automatic check-for-updates to warn you (on the UGA Options page) if your version of Ultimate Google Analytics is outdated
+* Does not add the tracker code to the pages when a logged on user of a configurable userlevel requests a page. This can be used to ignore your own page views and not skew your statistics. (Default configuration ignores page hits from users level 8 and up)
+* Add tracking to outgoing links. You can also specify hostnames which should be considered internal (e.g. www.example.com, example.com and example.org). Links to these hostnames will be considered internal and the tracking event will not be added to those links. You can also specify the prefix to append to the link when sending it to Google Analytics so your outbound links will be logged to a logical directory structure. This way, you will be able to easily identify what pages visitors clicked on to leave your site. (The default configuration is to check outgoing links in the /outgoing/ directory at Google Analytics)
+* Add tracking to download links. You can specify which file extensions should be considered downloads. Only internal links to these filetypes will be tracked. Internal links are either relative links (without a hostname) or links to the hostnames you defined as internal. You can also specify the prefix to append to the link when sending it to Google Analytics so your download links will be logged to a logical directory structure. This way, you will be able to easily identify what files your visitors downloaded. (The default configuration contains a list of common file extensions to be marked as downloads. These are tracked in the /downloads/ directory at Google Analytics by default)
+* Add tracking to mailto: links. You can also specify the prefix to append to the link when sending it to Google Analytics so your mailto: links will be logged to a logical directory structure. This way, you will be able to easily identify what mailto: links your visitors clicked. (The default configuration is to track mailto: links in the /mailto/ directory at Google Anaytics)
+* Specify if the outgoing, download and mailto: links should be tracked in the postings only, the comments, the comment author URL or any combination of these three.
+
+== Installation ==
+
+Installing is as simple as downloading the file from this site, placing it in your wp-content/plugins directory and activating the plugin. For the more detailed instructions read on.
+
+1. Get a Google Analytics account at http://analytics.google.com.
+1. Download the Ultimate Google Analytics ZIP file (see download section above)
+1. Extract the zipfile and place the PHP file in the wp-content/plugins directory of your WordPress installation
+1. Go to the administration page of your WordPress installation (normally at http://www.yourblog.com/wp-admin)
+1. Click on the Plugins tab and search for Ultimate Google Analytics in the list
+1. Activate the Ultimate Google Analytics plugin
+1. You can now find an Ultimate GA page under Options to set the options of the plug-in
+1. If you're comfortable reading HTML and feel like it, you can look at the HTML source code of your blog pages to see the included Google Analytics tracker code at the end of the page. You could also check if an onClick event is added to the outbound, download and/or mailto: links as specified in your options. Make sure that you’re not checking this as a logged on user if you’ve enabled Ignore Logged On Users. In that case, log out of WordPress before doing these checks. Also make sure you request your blog page at least twice to give the Ultimate Google Analytics plugin the change to detect is the wp_footer hook is called by your template.
+1. Wait until Google Analytics updates your reports. Currently it seems like this can take up to 24 hours. Note that by default Google Analytics selects a week ending yesterday as its reporting period. Click on today in the lefthand calendar to see today’s statistics, if they’ve already been reported.
+
+== Frequently Asked Questions ==
+
+= A question that someone might have =
+
+An answer to that question.
+
+== Screenshots ==
+
+1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
+the directory of the stable readme.txt, so in this case, `/tags/4.3/screenshot-1.png` (or jpg, jpeg, gif)
+2. This is the second screen shot
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,977 @@
+<?php
+/*
+Plugin Name: Ultimate Google Analytics
+Plugin URI: http://www.oratransplant.nl/uga
+Description: Enable Google Analytics on your blog. Has options to also track external links, mailto links and links to downloads on your own site. Check <a href="http://www.oratransplant.nl/uga/#versions">http://www.oratransplant.nl/uga/#versions</a> for version updates
+Version: 1.6.0
+Author: Wilfred van der Deijl
+Author URI: http://www.oratransplant.nl/about
+*/
+
+/*  Copyright 2006-2008 Wilfred van der Deijl  (email : wilfred _at_ vanderdeijl.com)
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+/*
+  Version History
+    + = new/improved feature
+    ! = fixed bug
+    - = removed feature
+  
+  version 0.1
+    Initial version
+    
+  version 0.2
+    !: Prevent two consecutive forward slashes in the virtual path for a 
+       download link if the URL for the link started with a forward slash
+       (e.g. /files/picture.jps would becomde /downloads//files/picture.jpg)
+    +: Default value for internal hostnames is no longer just the hostname
+       of the current webserver. If this hostnames starts with www. the
+       name without www is also added to the internal hostnames
+       (e.g. "www.oratransplant.nl,oratransplant.nl")
+    +: Renamed track_user to uga_track_user so all functions are prefixed
+       with uga to lower the chances of a naming conflict with another
+       plugin    
+    +: Small HTML comment is placed before the Google Analytics tracker
+       to show it was inserted by the Ultimate Google Analytics plugin
+    +: Debugging has been added and can be enabled/disabled from the 
+       Options page. It is disabled by default. If enabled, all debugging
+       info will be added as HTML comment in the footer of the page   
+       
+  version 1.0
+    +: Added filter to process links in the footer of a comment showing
+       the link to an author. This enables tracking of these outbound links
+       as well
+    +: Added phps as an extension for download tracking. Existing 
+       installations of Ultimate Google Analytics will not be affected.
+       This only applies to the default settings on a fresh install.
+    +: If debugging is disabled an empty dummy function is created for
+       debugging to improve performance
+    +: Added "secret" option to force debugging directly to the output
+       stream and not rely on WordPress actions being called. This can
+       be helpfull when using a WordPress theme that does not call the
+       actions as it shoud  
+    +: If content filtering is enabled, also add the filter for outbound, 
+       mailto and download tracking to the "the_excerpt" filter for pages 
+       showing only an excerpt and not the full article
+    !: The "Enable Tracker" option was not saved to the database. Disabling
+       the checkbox had no effect
+    +: Created a new function uga_set_option to save options to the database
+    +: The plugin now detects if the wp_footer action hook is called. Some
+       WordPress themes out there do not call this hook as they should.
+       If UGA detects this action cannot be hooked, the Google Analytics
+       code is added to the <head> section. This can delay the loading of
+       your pages (see http://www.websiteoptimization.com/speed/tweak/delay/)
+       When the tracker is in the head section the page will not be rendered
+       by your browser until the script is executed. That is why Ultimate
+       Google Analytics will place the tracker at the end of the <body> 
+       section whenever possible.
+
+  version 1.1
+    !: The first page that is requested after some other user requested a
+       feed had the tracker code in the header in stead of the footer, even
+       if the Theme does support the footer action hook.
+    !: Corrected two typing errors in debug output
+    
+  version 1.2
+    !: If a page was requested that did not call both the header and the 
+       footer hook, UGA would conclude that the footer hook is not implemented
+       in your template. UGA would then revert to using the header hook to
+       put the tracking javascript. On the next page request that does
+       call both the head and footer hook, UGA would detect this and switch
+       back to putting the tracking code in footer.
+       On my blog this happened with the statistics page produced by 
+       wp-stattraq. That page doesn't call either the head or footer hooked.
+       Before v1.2 UGA would just look if the footer was called and draw 
+       conclusions from that. Now UGA checks execution of both the
+       header and footer hook. If none of these are executed it doesn't
+       switch its behaviour. It only switches to head if a page is requested
+       that does call the wp_head but does not call wp_footer
+    !: In the admin page, there was no space between "checked" and the closing
+       /> for all checkboxes. Apparently this caused problems when using
+       Safari
+       
+  version 1.3
+    !: Another bugfix for a situation where the tracker code would sometimes
+       be inserted in the header. Will I ever get this right? :-(
+       This could occur when you're using a favicon.ico in your pages that
+       does not actually exist
+    +: Added check for updates in the options page
+    
+  version 1.4
+    +: Add a comment in the generated HTML to indicate the Google Analytics
+       JavaScript was suppressed because a logged on user is requesting the
+       page. This prevents misunderstanding where people would think the
+       UGA plugin isn't working
+       
+  version 1.5
+    !: Minor changes to the regular expressions. The old expressions could
+       wrongfully match in some rare cases
+    +: Download links using relative URLs are now rewritten to absolute URLs
+       in the urchinTracker. This makes sure that two different relative
+       URLs leading to the same file do get counted as the same file being
+       downloaded.
+    +: Configuration now starts with a very basic/simple screen and most
+       options are tucked away behind an "Advanced" button
+       
+  version 1.5.1
+    !: Removed the usage of a PHP session to store whether the advanced
+       or basic configuration should be shown. Now storing as a parameter
+       in the database
+
+  version 1.5.2
+    +: Added option to reset to factory settings. This can be used in the
+       rare case that the settings array in the MySQL database is corrupted
+       
+  version 1.5.3
+    !: Call load_plugin_textdomain from the init hook, not from the main 
+       code. See http://www.oratransplant.nl/uga/#comment-40300 for more
+       information. Without this fix, Ultimate Google Analytics is not
+       compatible with the Gengo plugin.
+
+  version 1.6.0
+    +: Using the new Google Analytics tracking code (ga.js not urchin.js)
+
+*/
+
+// constants
+define('uga_version', '1.6.0', true);
+
+// Uncomment the following line to force debugging regardless setting in
+// the Control Panel. With this forced debugging, the info will be written
+// directly to the HTML and the plugin will not rely on any WordPress hooks
+// This can break your HTML code
+// define('uga_force_debug', 'enabled', true);
+
+// add debugging statement to the debug info
+// function is an empty dummy function is debugging is disabled
+$uga_options = get_option('ultimate_ga_options'); 
+$uga_debug_enabled=$uga_options['debug'];
+if (defined('uga_force_debug')) {
+  // force debugging
+  function uga_debug($message) {
+    global $uga_debug;
+    $uga_debug .= "$message\n";
+    echo "<!-- \nUGA_DEBUG: $message\n -->";
+  }
+} else if ($uga_debug_enabled) {
+  // normal debugging is enabled
+  function uga_debug($message) {
+    global $uga_debug;
+    $uga_debug .= "$message\n";
+  }
+} else {
+  // no debugging
+  function uga_debug($message) {
+  }
+}
+
+// set an Ultimate GA option in the options table of WordPress
+function uga_set_option($option_name, $option_value) {
+  uga_debug ("Start uga_set_option: $option_name, $option_value");
+  // first get the existing options in the database
+  $uga_options = get_option('ultimate_ga_options');
+  // set the value
+  $uga_options[$option_name] = $option_value;
+  // write the new options to the database
+  update_option('ultimate_ga_options', $uga_options);
+  uga_debug ('End uga_set_option');
+}
+
+// get an Ultimate GA option from the WordPress options database table
+// if the option does not exist (yet), the default value is returned
+function uga_get_option($option_name) {
+  uga_debug("Start uga_get_option: $option_name");
+
+  // get options from the database
+  $uga_options = get_option('ultimate_ga_options'); 
+  uga_debug('uga_options: '.var_export($uga_options,true));
+  
+  if (!$uga_options || !array_key_exists($option_name, $uga_options)) {
+    // no options in database yet, or not this specific option 
+    // create default options array
+    uga_debug('Constructing default options array');
+    $uga_default_options=array();
+    $uga_default_options['internal_domains']  = $_SERVER['SERVER_NAME'];
+    if (preg_match('@www\.(.*)@i', $uga_default_options['internal_domains'], $parts)>=1) {
+      $uga_default_options['internal_domains'] .= ','.$parts[1];
+    }
+    $uga_default_options['account_id']             = 'UA-XXXXXX-X';  
+    $uga_default_options['enable_tracker']         = true;  
+    $uga_default_options['track_adm_pages']        = false;  
+    $uga_default_options['ignore_users']           = true;  
+    $uga_default_options['max_user_level']         = 8;  
+  
+    $uga_default_options['footer_hooked']          = false; // assume the worst
+    $uga_default_options['filter_content']         = true;  
+    $uga_default_options['filter_comments']        = true;  
+    $uga_default_options['filter_comment_authors'] = true;  
+    $uga_default_options['track_ext_links']        = true;  
+    $uga_default_options['prefix_ext_links']       = '/outgoing/';  
+    $uga_default_options['track_files']            = true;  
+    $uga_default_options['prefix_file_links']      = '/downloads/';  
+    $uga_default_options['track_extensions']       = 'gif,jpg,jpeg,bmp,png,pdf,mp3,wav,phps,zip,gz,tar,rar,jar,exe,pps,ppt,xls,doc';  
+    $uga_default_options['track_mail_links']       = true;  
+    $uga_default_options['prefix_mail_links']      = '/mailto/';  
+    $uga_default_options['debug']                  = false;  
+    $uga_default_options['check_updates']          = true;  
+    $uga_default_options['version_sent']           = '';  
+    $uga_default_options['advanced_config']        = false;  
+    uga_debug('uga_default_options: '.var_export($uga_default_options,true));
+    // add default options to the database (if options already exist, 
+    // add_option does nothing
+    add_option('ultimate_ga_options', $uga_default_options, 
+               'Settings for Ultimate Google Analytics plugin');
+
+    // return default option if option is not in the array in the database
+    // this can happen if a new option was added to the array in an upgrade
+    // and the options haven't been changed/saved to the database yet
+    $result = $uga_default_options[$option_name];
+
+  } else {
+    // option found in database
+    $result = $uga_options[$option_name];
+  }
+  
+  uga_debug("Ending uga_get_option: $option_name ($result)");
+  return $result;
+}
+
+// function to check for updates
+function uga_check_updates($echo) {
+  // prepare for making HTTP connection
+  $crlf = "\r\n";
+  $host = 'www.oratransplant.nl';
+  if ($_SERVER['SERVER_NAME']==$host) {
+    // overrule IP address for www.oratransplant.nl server itself
+    $host = $_SERVER['SERVER_ADDR'];
+  }
+  // open socket connection to oratransplant.nl server (timeout after 3 seconds)
+  $handle = fsockopen($host, 80, $error, $err_message, 3);
+  if (!$handle) {
+    if ($echo) {
+      echo __('Unable to get latest version', 'uga')." ($err_message)";
+    }
+  } else {
+    // build HTTP/1.0 request string
+    $req = 'GET http://'.$host.'/uga_version.php?version='.urlencode(uga_version)
+             . '&siteurl='.urlencode(get_option('siteurl')).' HTTP/1.0' . $crlf
+             . 'Host: '.$host. $crlf
+             . $crlf;
+    // send request to server and receive response
+    fwrite($handle, $req);
+    while(!feof($handle))
+      $response .= fread($handle, 1024);
+    fclose($handle);
+    // remove headers from the response
+    $splitter = $crlf.$crlf.'Latest version: ';
+    $pos = strpos($response, $splitter);
+    if ($pos === false) {
+      // no split between headers and body found
+      if ($echo) {
+        _e('Invalid response from server', 'uga');
+      }
+    } else {
+      $body = substr($response, $pos + strlen($splitter));
+      if ($body==uga_version) {
+        if ($echo) {
+          echo __('You are running the latest version', 'uga'). ' ('.uga_version.')';
+        }
+      } else {
+        if ($echo) {
+          _e ('You are running version', 'uga');
+          echo ' '.uga_version.'. ';
+          echo '<strong><span style="font-size:135%;"><a target="_blank" href="http://www.oratransplant.nl/uga/#versions">';
+          _e ('Version', 'uga');
+          echo " $body ";
+          _e ('is available', 'uga');
+          echo '</a></span></strong>';
+        }
+      }
+    }      
+  }
+}
+
+// function that is added as an Action to ADMIN_MENU
+// it adds an option subpage to the options menu in WordPress administration
+function uga_admin() {
+  uga_debug('Start uga_admin');
+  if (function_exists('add_options_page')) {
+    uga_debug('Adding options page');
+    add_options_page('Ultimate Google Analytics' /* page title */, 
+                     'Ultimate GA' /* menu title */, 
+                     8 /* min. user level */, 
+                     basename(__FILE__) /* php file */ , 
+                     'uga_options' /* function for subpanel */);
+  }
+  uga_debug('End uga_admin');
+}
+
+// displays options subpage to set options for Ultimate GA and save any
+// changes to these options back to the database
+function uga_options() {
+  uga_debug('Start uga_options');
+  if (isset($_POST['advanced_options'])) {
+    uga_set_option('advanced_config', true);
+  }
+  if (isset($_POST['simple_options'])) {
+    uga_set_option('advanced_config', false);
+  }
+  if (isset($_POST['factory_settings'])) {
+    $uga_factory_options = array();
+    update_option('ultimate_ga_options', $uga_factory_options);
+    ?><div class="updated"><p><strong><?php _e('Factory settings restored, remember to set Account ID', 'uga')?></strong></p></div><?php
+  }
+  if (isset($_POST['info_update'])) {
+    uga_debug('Saving posted options: '.var_export($_POST, true));
+    ?><div class="updated"><p><strong><?php 
+    // process submitted form
+    $uga_options = get_option('ultimate_ga_options');
+    $uga_options['account_id']             = $_POST['account_id'];
+    $uga_options['internal_domains']       = $_POST['internal_domains'];
+    $uga_options['max_user_level']         = $_POST['max_user_level'];
+    $uga_options['prefix_ext_links']       = $_POST['prefix_ext_links'];
+    $uga_options['prefix_mail_links']      = $_POST['prefix_mail_links'];
+    $uga_options['prefix_file_links']      = $_POST['prefix_file_links'];
+    $uga_options['track_extensions']       = $_POST['track_extensions'];
+
+    $uga_options['enable_tracker']         = ($_POST['enable_tracker']=="true"          ? true : false);
+    $uga_options['filter_content']         = ($_POST['filter_content']=="true"          ? true : false);
+    $uga_options['filter_comments']        = ($_POST['filter_comments']=="true"         ? true : false);
+    $uga_options['filter_comment_authors'] = ($_POST['filter_comment_authors']=="true"  ? true : false);
+    $uga_options['track_adm_pages']        = ($_POST['track_adm_pages']=="true"         ? true : false);
+    $uga_options['track_ext_links']        = ($_POST['track_ext_links']=="true"         ? true : false);
+    $uga_options['track_mail_links']       = ($_POST['track_mail_links']=="true"        ? true : false);
+    $uga_options['track_files']            = ($_POST['track_files']=="true"             ? true : false);
+    $uga_options['ignore_users']           = ($_POST['ignore_users']=="true"            ? true : false);
+    $uga_options['debug']                  = ($_POST['debug']=="true"                   ? true : false);
+    $uga_options['check_updates']          = ($_POST['check_updates']=="true"           ? true : false);
+    update_option('ultimate_ga_options', $uga_options);
+    
+    // add/remove filter immediately for admin page currently being rendered
+    if (uga_get_option('track_adm_pages')) {
+      add_action('admin_footer', 'uga_adm_footer_track');
+    } else {
+      remove_action('admin_footer', 'uga_adm_footer_track');
+    }
+    
+    _e('Options saved', 'uga')
+    ?></strong></p></div><?php
+	} 
+	
+	// show options form with current values
+	uga_debug('Showing options page with UGA options');
+	?>
+<div class=wrap>
+  <form method="post">
+    <h2>Ultimate Google Analytics</h2>
+    <fieldset class="options" name="general">
+      <legend><?php _e('General settings', 'uga') ?></legend>
+      <table width="100%" cellspacing="2" cellpadding="5" class="editform">
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Account ID', 'uga') ?></th>
+          <td><input name="account_id" type="text" id="account_id" value="<?php echo uga_get_option('account_id'); ?>" size="50" />
+            <br />Enter your Google Analytics account ID. Google Analytics supplies you with a snippet of JavaScript to put on
+            your webpage. In this JavaScript you can see your account ID in a format like UA-999999-9. There is no need to actually
+            include this JavaScript yourself on any page. That is all handled by Ultimate Google Analytics.
+          </td>
+        </tr>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Check for updates', 'uga') ?></th>
+          <td><input type="checkbox" name="check_updates" id="check_updates" value="true" <?php if (uga_get_option('check_updates')) echo "checked"; ?> />
+            <br />Check for updates to the Ultimate Google Analytics plugin
+            <?php if (uga_get_option('check_updates')) { echo "<br /><strong>Result</strong>: "; uga_check_updates(true); } ?>
+          </td>
+        </tr>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Enable tracker', 'uga') ?></th>
+          <td><input type="checkbox" name="enable_tracker" id="enable_tracker" value="true" <?php if (uga_get_option('enable_tracker')) echo "checked"; ?> />
+            <br />By unchecking this checkbox no JavaScript will be included on the page. It is basically the
+            same as disabling the whole plugin
+          </td>
+        </tr>
+        <tr<?php if (!uga_get_option('advanced_config')) echo ' style="display:none;"'; ?>>
+          <th nowrap valign="top" width="33%"><?php _e('Track admin pages', 'uga') ?></th>
+          <td><input type="checkbox" name="track_adm_pages" id="track_adm_pages" value="true" <?php if (uga_get_option('track_adm_pages')) echo "checked"; ?> />
+            <br />Enable or disable the inclusion of Google Analytics tracking on the admin pages of Wordpress.
+          </td>
+        </tr>
+        <tr<?php if (!uga_get_option('advanced_config')) echo ' style="display:none;"'; ?>>
+          <th nowrap valign="top" width="33%"><?php _e('Ignore logged on users', 'uga') ?></th>
+          <td><input type="checkbox" name="ignore_users" id="ignore_users" value="true" <?php if (uga_get_option('ignore_users')) echo "checked"; ?> />
+            of level <input name="max_user_level" type="text" id="max_user_level" value="<?php echo uga_get_option('max_user_level'); ?>" size="2" /> and above
+            <br />Check this checkbox and specify a user level to ignore users of a particular level or above. For such users the
+              Google Analytics JavaScript will not be included in the page
+          </td>
+        </tr>
+        <tr<?php if (!uga_get_option('advanced_config')) echo ' style="display:none;"'; ?>>
+          <th nowrap valign="top" width="33%"><?php _e('Enable debugging', 'uga') ?></th>
+          <td><input type="checkbox" name="debug" id="debug" value="true" <?php if (uga_get_option('debug')) echo "checked"; ?> />
+            <br />Enable or disable debugging info. If enabled, UGA debugging is written as HTML comments
+              to the page being rendered.
+          </td>
+        </tr>
+      </table>
+    </fieldset>
+    
+    <fieldset class="options" name="external" <?php if (!uga_get_option('advanced_config')) echo ' style="display:none;"'; ?>>
+      <legend><?php _e('Links tracking', 'uga') ?></legend>
+      <table width="100%" cellspacing="2" cellpadding="5" class="editform" <?php if (!uga_get_option('advanced_config')) echo ' style="display:none;"'; ?>>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Filter content', 'uga') ?></th>
+          <td><input type="checkbox" name="filter_content" id="filter_content" value="true" <?php if (uga_get_option('filter_content')) echo "checked"; ?> />
+            <br />Enable or disable tracking of links in the content of your articles. Which type(s) of links
+            should be tracked can be selected with the other options. If you plan to disable all of them, you
+            are better of disabling the entire filtering to save performance.
+          </td>
+        </tr>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Filter comments', 'uga') ?></th>
+          <td><input type="checkbox" name="filter_comments" id="filter_comments" value="true" <?php if (uga_get_option('filter_comments')) echo "checked"; ?> />
+            <br />Enable or disable tracking of links in the comments. Which type(s) of links
+            should be tracked can be selected with the other options. If you plan to disable all of them, you
+            are better of disabling the entire filtering to save performance.
+          </td>
+        </tr>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Filter comment author links', 'uga') ?></th>
+          <td><input type="checkbox" name="filter_comment_authors" id="filter_comment_authors" value="true" <?php if (uga_get_option('filter_comment_authors')) echo "checked"; ?> />
+            <br />Enable or disable tracking of links in the comments footer showing the author. 
+              If you plan to disable all filters, you are better of disabling the entire filtering to save performance.
+          </td>
+        </tr>
+
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Track external links', 'uga') ?></th>
+          <td><input type="checkbox" name="track_ext_links" id="track_ext_links" value="true" <?php if (uga_get_option('track_ext_links')) echo "checked"; ?> />
+            and prefix with <input name="prefix_ext_links" type="text" id="prefix_ext_links" value="<?php echo uga_get_option('prefix_ext_links'); ?>" size="40" />
+            <br />Include code to track links to external sites and specify what prefix should be used in the
+              tracking URL. This groups all your external links in a separate directory when looking at your
+              Google Analytics stats
+          </td>
+        </tr>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Internal host(s)', 'uga') ?></th>
+          <td><input name="internal_domains" type="text" id="internal_domains" value="<?php echo uga_get_option('internal_domains'); ?>" size="50" />
+            <br />Hostname(s) that are considered internal links. Links to these hosts are not tagged as external link.
+              You can specify multiple hostnames separated by commas. This list of internal hostnames is also used
+              for tagging download links (see below). Download links have to be of a specified file type and it has
+              to an internal link. An internal link can either be a relative link (without a hostname) or a link that starts 
+              with any of the specified internal hostnames.
+          </td>
+        </tr>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Track download links', 'uga') ?></th>
+          <td><input type="checkbox" name="track_files" id="track_files" value="true" <?php if (uga_get_option('track_files')) echo "checked"; ?> />
+            and prefix with <input name="prefix_file_links" type="text" id="prefix_file_links" value="<?php echo uga_get_option('prefix_file_links'); ?>" size="40" />
+            <br />Include code to track internal (within your own site) links to certain file types and specify what prefix should be used in the
+              tracking URL. This groups all your file links in a separate directory when looking at your
+              Google Analytics stats
+          </td>
+        </tr>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('File extensions to track', 'uga') ?></th>
+          <td><input name="track_extensions" type="text" id="track_extensions" value="<?php echo uga_get_option('track_extensions'); ?>" size="50" />
+            <br />Specify which file extensions you want to check when download link tracking is enabled.
+          </td>
+        </tr>
+        <tr>
+          <th nowrap valign="top" width="33%"><?php _e('Track mailto: links', 'uga') ?></th>
+          <td><input type="checkbox" name="track_mail_links" id="track_mail_links" value="true" <?php if (uga_get_option('track_mail_links')) echo "checked"; ?> />
+            and prefix with <input name="prefix_mail_links" type="text" id="prefix_mail_links" value="<?php echo uga_get_option('prefix_mail_links'); ?>" size="40" />
+            <br />Include code to track mailto: links to email addresses and specify what prefix should be used in the
+              tracking URL. This groups all your mail links in a separate directory when looking at your
+              Google Analytics stats
+          </td>
+        </tr>
+      </table>
+    </fieldset>
+    
+    <div class="submit">
+<?php if (uga_get_option('advanced_config')) { ?>
+      <input type="submit" name="simple_options" value="<?php _e('Simple configuration', 'uga') ?>" />
+      <input type="submit" name="factory_settings" value="<?php _e('Factory settings', 'uga') ?>" />
+<?php } else { ?>
+      <input type="submit" name="advanced_options" value="<?php _e('Advanced configuration', 'uga') ?>" />
+<?php } ?>
+      <input type="submit" name="info_update" value="<?php _e('Update options', 'uga') ?>" />
+	  </div>
+  </form>
+</div><?php
+  uga_debug('End uga_options');
+}
+
+// returns true if current user has to be tracked by UGA
+// return false if user does not have to be tracked. This is the case when
+// the 'ignore_users' option is enabled and the current userlevel is
+// equal or higher than the set limit.
+function uga_track_user() {
+  global $user_level;
+  uga_debug('Start uga_track_user');
+  if (!user_level) {
+    // user nog logged on -> track
+    uga_debug('User not logged on');
+    $result = true;
+  } else {
+    // user logged on
+    if (uga_get_option('ignore_users') && 
+        $user_level>=uga_get_option('max_user_level')) {
+      // ignore user because of userlevel
+      uga_debug("Not tracking user with level $user_level");
+      $result = false;
+    } else {
+      uga_debug("Tracking user with level $user_level");
+      $result = true;
+    }
+  }
+  uga_debug("Ending uga_track_user: $result");
+  return $result;
+}
+
+// returns true if a URL is internal. This is the case when a URL is
+// starts with any of the defined internal hostnames
+// The input URL has to be stripped of any protocol:// before calling this
+// function 
+function uga_is_url_internal($url) {
+  // check if the URL starts with any of the "internal" hostnames
+  uga_debug("Start uga_is_url_internal: $url");
+  $url=strtolower($url);
+  $internal=false;
+  $internals=explode(',', uga_get_option('internal_domains'));
+  foreach ($internals as $hostname) {
+    uga_debug("Checking hostname $hostname");
+    $hostname=strtolower($hostname);
+    if (substr($url, 0, strlen($hostname))==$hostname) {
+      // URL starts with hostname of this website
+      uga_debug('Match found, url is internal');
+      $internal=true;
+    }
+  }
+  uga_debug("Ending uga_is_url_internal: $internal");
+  return $internal;
+}
+
+// strips the hostname from the beginning of a URL. The URL already has
+// to be stripped of any "protocol://" before calling this function
+function uga_remove_hostname($url) {
+  // removes hostname (including first /) from URL
+  // result never starts with a /
+  uga_debug("Start uga_remove_hostname: $url");
+  $pos=strpos($url, '/');
+  $result='';
+  if ($pos===false) {
+    // url is only a hostname
+    uga_debug('URL just hostname, return empty string');
+    $result='';
+  } else {
+    uga_debug('Stripping everything up until and including first /');
+    $result=substr($url, $pos+1);
+  }
+  uga_debug("Ending uga_remove_hostname: $result");
+  return $result;
+}
+
+// returns the trackerString for a mailto: link
+// will return an empty string when mailto: tracking is disabled
+function uga_track_mailto($mailto) {
+  // return tracker string for mailto: link
+  uga_debug("Start uga_track_mailto: $mailto");
+  $tracker='';
+  if (uga_get_option('track_mail_links')) {
+    $tracker=uga_get_option('prefix_mail_links').$mailto;
+  }        
+  uga_debug("Ending uga_track_mailto: $tracker");
+  return $tracker;
+}
+
+// returns the trackerString for an internal download link
+// will return an empty string if this feature is disabled
+function uga_track_internal_url($url, $relative) {
+  // return tracker string for internal URL
+  // absolute url starts with hostname
+  uga_debug("Start uga_track_internal_url: $url, $relative");
+  $tracker='';
+  if (uga_get_option('track_files')) {
+    // check for specific file extensions on local site
+    uga_debug('Tracking files enabled');
+    if (strpos($url,'?') !== false) {
+      // remove query parameters from URL
+      $url=substr($url, 0, strpos($url, '?'));
+      uga_debug("Removed query params from url: $url");
+    }
+    // check file extension
+    $exts=explode(',', uga_get_option('track_extensions'));
+    foreach ($exts as $ext) {
+      uga_debug("Checking file extension $ext");
+      if (substr($url, -strlen($ext)-1) == ".$ext") {
+        // file extension found
+        uga_debug('File extension found');
+        if ($relative) {
+          uga_debug('Relative URL');
+          if (substr($url, 0, 1)=='/') {
+            // relative URL starts with / (root)
+            // remove starting slash as the prexif that will be appended
+            // already ends with /
+            $url=substr($url, 1);
+            uga_debug("Removed starting slash from url: $url");
+          } else {
+            // relative URL does not start with / (root)
+            // rewrite to URL that starts from root
+            uga_debug("Rewriting relative url: $url");
+            $base_dir=$_SERVER['REQUEST_URI'];  // URI of currently requested page
+            uga_debug("Request URI: $base_dir");
+            if (strpos($base_dir,'?')) {
+              // strip query parameters
+              $base_dir=substr($base_dir, 0, strpos($base_dir,'?'));
+            }
+            if ('/'!=substr($base_dir, -1, 1)) {
+              // strip file name from base-URL
+              $base_dir=substr($base_dir, 0, strrpos($base_dir,'/')+1);
+            }
+            //$url=print_r($_SERVER,true).$base_dir;
+            $url=substr($base_dir.$url, 1);
+            uga_debug("Rewrote url to absolute: $url");
+          }
+          $tracker=uga_get_option('prefix_file_links').$url;
+        } else {
+          uga_debug('Absolute URL, remove hostname from URL');
+          // remove hostname from url
+          $tracker=uga_get_option('prefix_file_links').uga_remove_hostname($url);
+        }
+      }
+    }
+  }
+  
+  uga_debug("Ending uga_track_internal_url: $tracker");
+  return $tracker;
+
+}
+
+// returns the trackerString for an external link
+// will return an empty string if this feature is disabled
+function uga_track_external_url($url) {
+  // return tracker string for external URL
+  // url is everything after the protocol:// (e.g. www.host.com/dir/file?param)
+  uga_debug("Start uga_track_external_url: $url");
+  $tracker='';
+  if (uga_get_option('track_ext_links')) {
+    uga_debug('Tracking external links enabled');
+    $tracker=uga_get_option('prefix_ext_links').$url;
+  }
+  uga_debug("Ending uga_track_external_url: $url");
+  return $tracker;
+}
+
+// returns the trackerString for an internal/external link
+// will return an empy string if tracking for this type of URL is disabled
+function uga_track_full_url($url) {
+  // url is everything after the protocol:// (e.g. www.host.com/dir/file?param)
+  uga_debug("Start uga_track_full_url: $url");
+
+  // check if the URL starts with any of the "internal" hostnames
+  $tracker = '';
+  if (uga_is_url_internal($url)) {
+    uga_debug('Get tracker for internal URL');
+    $tracker = uga_track_internal_url($url, false);
+  } else {
+    uga_debug('Get tracker for external URL');
+    $tracker = uga_track_external_url($url);
+  }
+  uga_debug("Ending uga_track_full_url: $tracker");
+  return $tracker;
+}
+
+// returns a (possibly modified) <a>...</a> link with onClick event
+// added if tracking for this type of link is enabled
+// this function is used as callback function in a preg_replace_callback
+function uga_preg_callback($match) {
+  uga_debug("Start uga_preg_callback: $match");
+
+  // $match[0] is the complete match
+  $before_href=1; // text between "<a" and "href"
+  $after_href=3;  // text between the "href" attribute and the closing ">"
+  $href_value=2;  // value of the href attribute
+  $a_content=4;   // text between <a> and </a> tags
+
+  $result = $match[0];
+  
+  // determine (if any) tracker string
+  $tracker='';
+  // disect target URL (1=protocol, 2=location) to determine type of URL
+  if (preg_match('@^([a-z]+)://(.*)@i', trim($match[$href_value]), $target) > 0) {
+    // URL with protocol and :// disected 
+    uga_debug('Get tracker for full url');
+    $tracker = uga_track_full_url($target[2]);
+  } else if (preg_match('@^(mailto):(.*)@i', trim($match[$href_value]), $target) > 0) {
+    // mailto: link found
+    uga_debug('Get tracker for mailto: link');
+    $tracker = uga_track_mailto($target[2]);
+  } else {
+    // relative URL
+    uga_debug('Get tracker for relative (and thus internal) url');
+    $tracker = uga_track_internal_url(trim($match[$href_value]), true);
+  }
+
+  if ($tracker) {
+    // add onClick attribute to the A tag
+    uga_debug("Adding onclick attribute for $tracker");
+    $onClick="javascript:pageTracker._trackPageview('$tracker');";
+    $result=preg_replace('@<a\s([^>]*?)href@i', // '@<a(.*)href@i', 
+                         '<a onclick="'.$onClick.'" $1 href', 
+                         $result);
+  }
+
+  uga_debug("Ending uga_preg_callback: $result");
+  return $result;
+
+}
+
+// returns true if we're currently building a feed
+function uga_in_feed() {
+  global $doing_rss;
+  uga_debug('Start uga_in_feed');
+  if (is_feed() || $doing_rss) {
+    $result = true;
+  } else {
+    $result = false;
+  }
+  uga_debug("Ending uga_in_feed: $result");
+  return $result;
+}
+
+// filter function used as filter on content and/or comments
+// will add onClick tracking JavaScript to any link that required tracking
+function uga_filter($content) {
+  uga_debug("Start uga_filter: $content");
+  if (!uga_in_feed() && uga_track_user()) {
+    // $pattern = '<a(.*?)href\s*=\s*[\'"](.*?)[\'"]([^>]*)>(.*?)<\s*/a\s*>';
+    $pattern = '<a\s([^>]*?)href\s*=\s*[\'"](.*?)[\'"]([^>]*)>(.*?)</a\s*>';
+    uga_debug("Calling preg_replace_callback: $pattern");
+    $content = preg_replace_callback('@'.$pattern.'@i', 'uga_preg_callback', $content);
+  }
+  uga_debug("Ending uga_filter: $content");
+  return $content;
+}
+
+// insert a snippet of HTML in either the header or the footer of the page
+// we prefer to put this in the footer, but if the wp_footer() hook is not
+// called by the template, we'll use the header
+function uga_insert_html_once($location, $html) {
+  uga_debug("Start uga_insert_html_once: $location, $html");
+  global $uga_header_hooked;
+  global $uga_footer_hooked;
+  global $uga_html_inserted;
+  uga_debug("Footer hooked: $uga_footer_hooked");
+  uga_debug("HTML inserted: $uga_html_inserted");
+  
+  if ('head'==$location) {
+    // header
+    uga_debug('Location is HEAD');
+    // notify uga_shutdown that the header hook got executed
+    $uga_header_hooked = true;
+    if (!uga_get_option('footer_hooked')) {
+      // only insert the HTML if the footer is not hooked
+      uga_debug('Inserting HTML since footer is not hooked');
+      echo $html;
+      $uga_html_inserted=true;
+    }
+  } else if ('footer'==$location) {
+    // footer
+    uga_debug('Location is FOOTER');
+    // notify uga_shutdown that the footer hook got executed
+    $uga_footer_hooked = true;
+    if (!$uga_html_inserted) {
+      // insert the HTML if it is not yet inserted by the HEAD filter
+      uga_debug('Inserting HTML');
+      echo $html;
+    }
+  } else if ('adm_footer'==$location) {
+    // footer of admin page
+    uga_debug('Location is ADM_FOOTER');
+    if (!$uga_html_inserted) {
+      // insert the HTML if it is not yet inserted by the HEAD filter
+      uga_debug('Inserting HTML');
+      echo $html;
+    }
+  }
+  uga_debug('End uga_insert_html');
+}
+
+// return snippet of HTML to insert in the page to activate Google Analytics
+function uga_get_tracker() {
+  uga_debug('Start uga_get_tracker');
+  $result='';
+  if (!uga_in_feed()) {
+    if (uga_track_user()) {
+      // add tracker JavaScript to the page
+      $result='
+<!-- tracker added by Ultimate Google Analytics plugin v'.uga_version.': http://www.oratransplant.nl/uga -->
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("'.uga_get_option('account_id').'");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script>
+';
+    } else {
+      // logged on user not tracked
+      $result='
+<!-- tracker not added by Ultimate Google Analytics plugin v'.uga_version.': http://www.oratransplant.nl/uga -->
+<!-- tracker is not added for a logged on user of this level -->
+';
+    }
+  }
+  uga_debug("Ending uga_get_tracker: $result");
+  return $result;
+}
+
+// Hook function for wp_head action to (possibly) include the GA tracker
+function uga_wp_head_track($dummy) {
+  uga_debug("Start uga_wp_head_track: $dummy");
+  uga_insert_html_once('head', uga_get_tracker());
+  uga_debug("Ending uga_wp_head_track: $dummy");
+  return $dummy;
+}
+
+// Hook function for wp_footer action to (possibly) include the GA tracker
+function uga_wp_footer_track($dummy) {
+  uga_debug("Start uga_wp_footer_track: $dummy");
+  uga_insert_html_once('footer', uga_get_tracker());
+  uga_debug("Ending uga_wp_footer_track: $dummy");
+  return $dummy;
+}
+
+// Hook function for admin_footer action to (possibly) include the GA tracker
+function uga_adm_footer_track($dummy) {
+  uga_debug("Start uga_adm_footer_track: $dummy");
+  uga_insert_html_once('adm_footer', uga_get_tracker());
+  uga_debug("Ending uga_adm_footer_track: $dummy");
+  return $dummy;
+}
+
+// Hook function for init action to do some initialization
+function uga_init() {
+  uga_debug("Start uga_init");
+  // load texts for localization
+  load_plugin_textdomain('uga');
+  uga_debug("Ending uga_init");
+}
+
+// Hook function called during shutdown (end of page)
+// this determines if the wp_footer hooks executed. If not, UGA is configured
+// to insert its HTML in the header and not the footer
+// It also adds the debug-info as HTML comments if debugging is enabled
+function uga_shutdown() {
+  uga_debug('Start uga_shutdown');
+  global $uga_header_hooked;
+  global $uga_footer_hooked;
+
+  if (is_404()) {
+    // do not set the flag when building a 404 page. This can lead to problems
+    // with a non-existing favicon.ico. In that case the header is executed
+    // but the footer is not. We do not want this to lead to flipping the flag
+    uga_debug('Building 404 page, not setting footer_hooked flag');
+  } else if (uga_in_feed()) {
+    uga_debug('Building feed, not setting footer_hooked flag');
+  } else if (!uga_track_user()) {
+    uga_debug('Not tracking this user, not setting footer_hooked flag');
+  } else {
+    // determine appropriate value of footer_hooked flag
+    if (!$uga_footer_hooked && !$uga_header_hooked) {
+      // both the header and the footer hook did not execute
+      // probably building some special page (e.g. wp-stattraq reports page)
+      // do not change the flag to indicate whether the footer is hooked
+      uga_debug('Header and footer hook were not executed');
+    } else if ($uga_footer_hooked) {
+      // footer hooks executed
+      uga_debug('Footer hook was executed');
+      if (!uga_get_option('footer_hooked')) {
+        uga_debug('Changing footer_hooked option to true');
+        uga_set_option('footer_hooked', true);
+      }
+    } else {
+      // footer hook did not execute , but header hook did
+      uga_debug('Footer hook was not executed, but header hook did');
+      if (uga_get_option('footer_hooked')) {
+        uga_debug('Changing footer_hooked option to false');
+        uga_set_option('footer_hooked', false);
+      }
+    }
+  }
+
+  // write the debug info
+  if (uga_get_option('debug')) {
+    global $uga_debug;
+    echo "\n<!-- \n$uga_debug -->";  
+  }
+  uga_debug('End uga_shutdown');
+}
+
+// **************
+// initialization
+
+uga_debug('Ultimate Google Analytics initialization');
+
+if (uga_get_option('check_updates') && uga_get_option('version_sent')!=uga_version) {
+  // this version has not been checked yet
+  uga_debug('Phone home with version number');
+  uga_set_option('version_sent', uga_version);
+  uga_check_updates(false);
+}
+
+// assume both header and footer are not hooked
+global $uga_header_hooked;
+global $uga_footer_hooked;
+$uga_header_hooked=false;
+$uga_footer_hooked=false;
+
+// add UGA Options page to the Option menu
+add_action('admin_menu', 'uga_admin');
+
+// add filters if enabled
+if (uga_get_option('enable_tracker') && uga_get_option('filter_content')) {
+  uga_debug('Adding the_content and the_excerpt filters');
+  add_filter('the_content', 'uga_filter', 50);
+  add_filter('the_excerpt', 'uga_filter', 50);
+}
+if (uga_get_option('enable_tracker') && uga_get_option('filter_comments')) {
+  uga_debug('Adding comment_text filter');
+  add_filter('comment_text', 'uga_filter', 50);
+}
+if (uga_get_option('enable_tracker') && uga_get_option('filter_comment_authors')) {
+  uga_debug('Adding get_comment_author_link filter');
+  add_filter('get_comment_author_link', 'uga_filter', 50);
+}
+
+// add actions if enabled
+if (uga_get_option('enable_tracker')) {
+  uga_debug('Adding wp_head and wp_footer action hooks for tracker');
+  add_action('wp_head',   'uga_wp_head_track');
+  add_action('wp_footer', 'uga_wp_footer_track');
+}
+if (uga_get_option('track_adm_pages')) {
+  uga_debug('Adding admin_footer action hook for tracker');
+  add_action('admin_footer', 'uga_adm_footer_track');
+}
+uga_debug('Adding init action hook');
+add_action('init', 'uga_init');
+uga_debug('Adding shutdown action hook for debugging and notice if wp_footer is hooked');
+add_action('shutdown', 'uga_shutdown');
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-cumulus/license.txt	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,674 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-cumulus/readme.txt	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,209 @@
+=== Plugin Name ===
+Contributors: weefselkweekje, LukeMorton
+Donate link: http://www.roytanck.com/about-my-themes/donations/
+Tags: tag cloud, flash, sphere, categories, widget, tags, 3D, cloud
+Requires at least: 2.3
+Tested up to: 2.9
+Stable tag: 1.23
+
+WP-Cumulus displays your tags and/or categories in 3D by placing them on a rotating sphere.
+
+== Description ==
+
+WP-Cumulus allows you to display your site's tags, categories or both using a Flash movie that rotates them in 3D. It works just like a regular tags cloud, but is more visually exciting. Clicking the tags can be a little hard (depending on your speed setting) but does take you to the appropriate page :).
+
+The sources code for the Flash movie are available from wordpress.org.
+
+== Installation ==
+
+= Installation =
+1. Make sure you're running WordPress version 2.3 or better. It won't work with older versions.
+1. Download the zip file and extract the contents.
+1. Upload the 'wp-cumulus' folder to your plugins directory (wp-content/plugins/).
+1. Activate the plugin through the 'plugins' page in WP.
+1. See 'Options->WP Cumulus' to adjust things like display size, etc...
+
+= In order to actually display the tag cloud, you have three options. =
+1. Create a page or post and type [wp-cumulus] anywhere in the content. This 'tag' will be replaced by the flash movie when viewing the page. See [here](http://www.roytanck.com/2009/03/11/how-to-use-wp-cumulus-shortcodes/) for more info.
+1. Add the following code anywhere in your theme to display the cloud. `<?php wp_cumulus_insert(); ?>` This can be used to add WP Cumulus to your sidebar, although it may not actually be wide enough in many cases to keep the tags readable.
+1. The plugin adds a widget, so you can place it on your sidebar through 'Appearance'->'Widgets'. Open the widget to access it's own set of settings (background color, size, etc).
+
+== Frequently Asked Questions ==
+
+= My theme/site appears not to like this plugin. It's not displaying correctly. =
+There are a number of things that may prevent WP-Cumulus from displaying or cause it to display a short message about how it needs the Flash plugin.
+
+* In 99% of all cases where this happens the issue is caused by markup errors in the page where the plugin is used. Please validate your blog using [validator.w3.org](http://validator.w3.org) and fix any errors you may encounter.
+* Older versions had issues with PHP 5.2 (or better). This has been fixed, so please upgrade to the latest version.
+* The plugin requires Flash Player 9 or better and javascript. Please make sure you have both.
+* There have been some cases where WordPress' Automatic Plugin Upgrade feature breaks the plugin. After upgrading the plugin the Flash movie file would be corrupt for some users. If this happens to you, please try disabling and reinstalling the plugin (through FTP).
+* Please try using the 'compatibility mode' if you're using version 1.20 or better. Although it's better to fix whatever is causing the issues with the normal mode, this can be used as a workaround solution.
+
+= Hey, but what about SEO? =
+I'm not sure how beneficial tag clouds are when it comes to SEO, but just in case WP Cumulus outputs the regular tag cloud (and/or categories listing) for non-flash users. This means that search engines will see the same links. They're hidden through CSS by default, but there's an options to make them visible.
+
+= I'd like to change something in the Flash movie, will you release the .fla? =
+As of  version 1.12 the source code is available from wordpress.org under the GPL license. Click "other versions" and get the developer version.
+
+= Some of my tags occasionally hit the sides of the movie and are cropped =
+If this happens you should change the aspect for the movie to make it wider. This can be done by increasing the width, but also by decreasing the height. Both will make the movie 'more landscape' giving long tags more room.
+
+= Some characters are not showing up =
+Because of the way Flash handles text, only Latin characters are supported in the current version. This is due to a limitation where in order to be able to animate text fields smoothly the glyphs need to be embedded in the movie. The Flash movie's source code is available for download through Subversion. Doing so will allow you to create a version for your language. There's a text field in the root of the movie that you can use to embed more characters. If you change to another font, you'll need to edit the Tag class as well.
+
+More info [here](http://www.roytanck.com/2008/08/04/how-to-add-more-characters-to-wp-cumulus/).
+
+= When I click on tags, nothing happens. =
+This is usually caused by a Flash security feature that affects movies served from another domain as the surrounding page. If your blog is http://yourblog.com, but you have http://www.yourblog.com listed as the 'WordPress address' under Settings -> General this issue can occur. In this case you should adjust this setting to match your blog's actual URL. If you haven't already, I recommend you decide on a single URL for your blog and redirect visitors using other options. This will increase your search engine ranking and in the process help solve this issue :).
+
+= I'm not using WordPress... =
+* Steve Springett has ported this to Movable Type. More info over on [his site](http://www.6000rpms.com/blog/2008/04/04/flash-tag-cloud-for-mt-4.html).
+* Michael Robinson has ported WP-Cumulus to RapidWeaver, see his tutorial [here](http://pagesofinterest.net/mikes/blog_of_interest_files/tag_cloud.php).
+* Amanda Fazani managed to get Cumulus working on Blogger. More info on Blogumus [here](http://www.bloggerbuster.com/2008/08/blogumus-flash-animated-label-cloud-for.html).
+* Yannick Lejeune has done a [TypePad version](http://www.yannicklejeune.com/2008/09/tumulus-wp-cumu.html) based in part on Steve's work.
+* Christian Philipp's created a [TYPO3 version](http://typo3.org/extensions/repository/view/t3m_cumulus_tagcloud/current/).
+* Rob Antonishen did a [Serendipity version](http://spartacus.s9y.org/index.php?mode=bygroups_event_en) (search for serendipity\_event\_freetag).
+* Big Bear maintains the [Joomla version](http://joomlabear.com/Joomulus/).
+* Pratul Kalia and Björn Jacob have ported it to [Drupal](http://drupal.org/project/cumulus).
+* Ryan Tomlinson has a [BlogEngine.NET version](http://www.99atoms.com/post/BlogCumulusNET-A-flash-based-tag-cloud.aspx).
+* Colin Seymour has created a [Habari version](http://www.lildude.co.uk/projects/hb-cumulus/).
+* Andreas Scherer uses [DasBlog](http://www.scherer.as/blog/).
+* Jean-Yves Zinsou did an [eZ version](http://ez.no/developer/contribs/applications/ezcumulus).
+* [Simple Tags](http://utilitees.silenz.org/index.php/notes/page/simple-tags-1.6.3/), an Expression Engien addon can now display tags using Cumulus. Thanks Oliver Heine.
+* Catchpen ported Cumulus to [Social Web CMS](http://forums.socialwebcms.com/index.php?topic=672.0).
+* Domi create a [PHP-Fusion](http://www.venue.nu/forum/viewthread.php?thread_id=672) port.
+* [Bysoft](http://www.bysoft.fr/) did a [Magento](http://www.magentocommerce.com/extension/925/3d-advanced-tags-clouds-based-on-wp-cumulus--admin-manager-by-bysoft) version.
+* Benjamin Anseaume created a [Sweetcron](http://www.anseaume.com/items/site/anseaume.com) version.
+* I wrote [this post](http://www.roytanck.com/2008/05/19/how-to-repurpose-my-tag-cloud-flash-movie/) on how to use the flash movie in other contexts.
+
+This list is far from complete. Chances are you'll find the port you need through search engines. If you're having trouble setting it up, please contact the author(s) of the port.
+
+== Screenshots ==
+
+1. The tag sphere. You can set colors that match your theme on the plugin's options page.
+2. The options panel.
+3. There's a separate one for the widget.
+
+== Options ==
+
+The options page allows you to change the Flash movie's dimensions, change the text color as well as the background.
+
+= Width of the Flash tag cloud =
+The movie will scale itself to fit inside whatever dimensions you decide to give it. If you make it really small, chances are people will not be able to read less-used tags that are further away. Anything up from 300 will work fine in most cases.
+
+= Height of the Flash tag cloud =
+Ideally, the height should be something like 3/4 of the width. This will make the rotating cloud fit nicely, while the extra width allows for the tags to be displayed without cropping. Western text is horizontal by nature, which is why the ideal aspect is slightly landscape even though the cloud is circular.
+
+= Color of the tags =
+Type the hexadecimal color value you'd like to use for the tags, but not the '#' that usually precedes those in HTML. Black (000000) will obviously work well with light backgrounds, white (ffffff) is recommended for use on dark backgrounds. Optionally, you can use the second input box to specify a different color. When two colors are available, each tag's color will be from a gradient between the two. This allows you to create a multi-colored tag cloud. The third input box lets you specify a mouseover highlight color.
+
+= Background color =
+The hex value for the background color you'd like to use. This options has no effect when 'Use transparent mode' is selected.
+
+= Use transparent mode =
+Turn on/off background transparency. Enabling this might cause issues with some (mostly older) browsers.
+
+= Rotation speed =
+Allows you to change the speed of the sphere. Options between 25 and 500 work best.
+
+= Distribute tags evenly on sphere =
+When enabled, the movie will attempt to distribute the tags evenly over the surface of the sphere.
+
+= Display =
+Choose whether to show tags only, categories only, or both mixed together. Choosing 'both' can result in 'duplicate tags' if you have categories and tags with the same name. These words will appear twice, with one linking to the tag and the other to the category overview.
+
+= wp tag cloud parameters = 
+This setting allows you to pass parameters to the wp\_tag\_cloud function, which is used to fetch the tag cloud. Use caution with this setting. Everything you enter will be passed to the function. Be sure to read the function's manual. Please also note that these parameters affect tags only. If you've chosen to show categories or both, the category 'tags' will not be affected.
+
+
+== Changelog ==
+
+= 1.23 =
+* Patches a potential XSS vulnerability (thanks to MustLive for alerting me to this).
+* Updates the credits to reflact that WP-Cumulus is now a team effort.
+* Implements the new changelog standard in the readme file.
+
+= 1.22 =
+* Fixes some minor HTML issues in the 'compatibility mode'.
+* Patches a potential XSS vulnerability (thanks to Thomas Scholz for alerting me to this).
+
+= 1.21 =
+* Adds an option to show the regular tag cloud to non-flash users (used to be hidden through CSS).
+* The widget title is now optional.
+* Adds support for 'target' attribute to the Flash movie.
+* XML path can now be set through a flashvar.
+* Fixed markup errors in the compatibility mode.
+* Several minor fixes.
+
+= 1.20 =
+* Adds a 'compatibility mode' which uses a simpler, non-javascript, way of embedding the Flash.
+* Adds proper shortcode support (See [here](http://www.roytanck.com/2009/03/11/how-to-use-wp-cumulus-shortcodes/) for more info)
+* Adds Turkish language support to the Flash movie.
+* Improves the plugin's default settings.
+
+= 1.19 =
+* Fixed the mouse pointer not changing to a hand when hovering tags.
+* Flash code cleanup
+
+= 1.18 =
+* Adds the ability to override individual tag colors when using the movie outside of WordPress (since WordPress has no color setting for tags).
+* Improves mouse detection in transparent mode
+* Fixes a bug affecting blogs with the admin using https.
+
+= 1.17 =
+* Fixes an issue with localized style sheet point sizes (e.g. 9,55pt instead of 9.55pt)
+* Adds an optional highlight color setting
+
+= 1.16 =
+* Fixes an issue with categories being rendered black when all of them have the same number of posts.
+* Reduces the default font size (from the biggest possible to "medium") in that same situation.
+* Significantly reduces CPU load when the cloud isn't moving.
+
+= 1.15 =
+* Adds the possibility to create a multi-colored tag cloud by entering a second tag color.
+
+= 1.14 =
+* Fixes an issue where no tags are displayed when viewing the movie locally in MSIE.
+* Fixes an issue where one random tag would not be displayed.
+
+= 1.13 =
+* No longer breaks when the wp-content folder is moved to a non-standard location.
+
+= 1.12 =
+* First version hosted on WordPress.org, and released under GPL license.
+* Uses the Arial font to avoid font licensing issues.
+
+= 1.11 =
+* Restores an earlier fix for IE to force loading of the Flash movie.
+
+= 1.1 =
+* Complete rewrite of the Flash movie (Actionscript 3, requires Flash Player 9 or better).
+* Better mouse detection.
+* Adds option to distribute the tags evenly over the sphere.
+* Adds support for categories.
+* Adds the ability to pass parameters to the WordPress wp_tag_cloud function.
+* Several smaller enhancements.
+
+= 1.05 =
+* Fixes several issues with IE, including an issue where it was impossible to use the regular version and the widget on the same page. Thanks to Fadi for alerting me to these.
+
+= 1.04 =
+* Fixes the 'it kills my blog' error for people using PHP 5.2 or newer. Thanks to Mujahid for helping me debug this.
+* Speed improvements in the Flash code.
+
+= 1.03 =
+* Removes the wp_head hook in yet another attempt to fix issues with some other plugins and themes.
+* Reduces system overhead by storing less options.
+* Adds setting for speed.
+* Adds a widget with seperate options (size, colors, speeds, etc).
+* Attemps to detect when the mouse leaves the movie, reducing the 'spinning, but not out of control' effect.
+* Several minor fixes.
+
+= 1.02 =
+* Fixes issues with sites not loading after activation, reduces server load and fixes lost spaces in tags. Thanks to Dimitry for helping me debug these issues.
+
+= 1.01 =
+* Fixes an issue where the cloud would spin out of control when the browsers loses focus on OSX.
+
+= 1.00 =
+* Initial release version.
Binary file web/wp-content/plugins/wp-cumulus/screenshot-1.png has changed
Binary file web/wp-content/plugins/wp-cumulus/screenshot-2.png has changed
Binary file web/wp-content/plugins/wp-cumulus/screenshot-3.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-cumulus/swfobject.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,133 @@
+/**
+ * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
+ *
+ * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * **SWFObject is the SWF embed script formarly known as FlashObject. The name was changed for
+ *   legal reasons.
+ */
+if(typeof deconcept=="undefined"){var deconcept=new Object();}
+if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
+if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
+deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
+if(!document.createElement||!document.getElementById){return;}
+this.DETECT_KEY=_b?_b:"detectflash";
+this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
+this.params=new Object();
+this.variables=new Object();
+this.attributes=new Array();
+if(_1){this.setAttribute("swf",_1);}
+if(id){this.setAttribute("id",id);}
+if(w){this.setAttribute("width",w);}
+if(h){this.setAttribute("height",h);}
+if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
+this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
+if(c){this.addParam("bgcolor",c);}
+var q=_8?_8:"high";
+this.addParam("quality",q);
+this.setAttribute("useExpressInstall",_7);
+this.setAttribute("doExpressInstall",false);
+var _d=(_9)?_9:window.location;
+this.setAttribute("xiRedirectUrl",_d);
+this.setAttribute("redirectUrl","");
+if(_a){this.setAttribute("redirectUrl",_a);}};
+deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
+this.attributes[_e]=_f;
+},getAttribute:function(_10){
+return this.attributes[_10];
+},addParam:function(_11,_12){
+this.params[_11]=_12;
+},getParams:function(){
+return this.params;
+},addVariable:function(_13,_14){
+this.variables[_13]=_14;
+},getVariable:function(_15){
+return this.variables[_15];
+},getVariables:function(){
+return this.variables;
+},getVariablePairs:function(){
+var _16=new Array();
+var key;
+var _18=this.getVariables();
+for(key in _18){
+_16.push(key+"="+_18[key]);}
+return _16;
+},getSWFHTML:function(){
+var _19="";
+if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
+if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
+_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
+_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
+var _1a=this.getParams();
+for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
+var _1c=this.getVariablePairs().join("&");
+if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}
+_19+="/>";
+}else{
+if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
+_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
+_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
+var _1d=this.getParams();
+for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
+var _1f=this.getVariablePairs().join("&");
+if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}
+_19+="</object>";}
+return _19;
+},write:function(_20){
+if(this.getAttribute("useExpressInstall")){
+var _21=new deconcept.PlayerVersion([6,0,65]);
+if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
+this.setAttribute("doExpressInstall",true);
+this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
+document.title=document.title.slice(0,47)+" - Flash Player Installation";
+this.addVariable("MMdoctitle",document.title);}}
+if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
+var n=(typeof _20=="string")?document.getElementById(_20):_20;
+n.innerHTML=this.getSWFHTML();
+return true;
+}else{
+if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
+return false;}};
+deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){
+var _25=new deconcept.PlayerVersion([0,0,0]);
+if(navigator.plugins&&navigator.mimeTypes.length){
+var x=navigator.plugins["Shockwave Flash"];
+if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
+}else{try{
+var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
+for(var i=3;axo!=null;i++){
+axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
+_25=new deconcept.PlayerVersion([i,0,0]);}}
+catch(e){}
+if(_23&&_25.major>_23.major){return _25;}
+if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){
+try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}
+catch(e){}}}
+return _25;};
+deconcept.PlayerVersion=function(_29){
+this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0;
+this.minor=parseInt(_29[1])||0;
+this.rev=parseInt(_29[2])||0;};
+deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
+if(this.major<fv.major){return false;}
+if(this.major>fv.major){return true;}
+if(this.minor<fv.minor){return false;}
+if(this.minor>fv.minor){return true;}
+if(this.rev<fv.rev){return false;}return true;};
+deconcept.util={getRequestParameter:function(_2b){
+var q=document.location.search||document.location.hash;
+if(q){
+var _2d=q.indexOf(_2b+"=");
+var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length;
+if(q.length>1&&_2d>-1){
+return q.substring(q.indexOf("=",_2d)+1,_2e);
+}}return "";}};
+if(Array.prototype.push==null){
+Array.prototype.push=function(_2f){
+this[this.length]=_2f;
+return this.length;};}
+var getQueryParamValue=deconcept.util.getRequestParameter;
+var FlashObject=deconcept.SWFObject; // for backwards compatibility
+var SWFObject=deconcept.SWFObject;
+
Binary file web/wp-content/plugins/wp-cumulus/tagcloud.swf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-cumulus/wp-cumulus.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,400 @@
+<?php
+/*
+	Plugin Name: WP-Cumulus
+	Plugin URI: http://www.roytanck.com/2008/03/15/wp-cumulus-released
+	Description: Flash based Tag Cloud for WordPress
+	Version: 1.23
+	Author: Roy Tanck
+	Author URI: http://www.roytanck.com
+	
+	Copyright 2009, Roy Tanck
+
+	This program is free software: you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation, either version 3 of the License, or
+	(at your option) any later version.
+
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+
+
+
+// check for WP context
+if ( !defined('ABSPATH') ){ die(); }
+
+//initially set the options
+function wp_cumulus_install () {
+	$newoptions = get_option('wpcumulus_options');
+	$newoptions['width'] = '100%';
+	$newoptions['height'] = '100%';
+	$newoptions['tcolor'] = '333333';
+	$newoptions['tcolor2'] = '333333';
+	$newoptions['hicolor'] = '333333';  
+	$newoptions['bgcolor'] = 'ffffff';
+	$newoptions['speed'] = '100';
+	$newoptions['trans'] = 'false';
+	$newoptions['distr'] = 'true';
+	$newoptions['args'] = '';
+	$newoptions['compmode'] = 'false';
+	$newoptions['showwptags'] = 'true';
+	$newoptions['mode'] = 'tags';
+	add_option('wpcumulus_options', $newoptions);
+	// widget options
+	$widgetoptions = get_option('wpcumulus_widget');
+	$newoptions['width'] = '160';
+	$newoptions['height'] = '160';
+	$newoptions['tcolor'] = '333333';
+	$newoptions['tcolor2'] = '333333';
+	$newoptions['hicolor'] = '000000';
+	$newoptions['bgcolor'] = 'ffffff';
+	$newoptions['speed'] = '100';
+	$newoptions['trans'] = 'false';
+	$newoptions['distr'] = 'true';
+	$newoptions['args'] = '';
+	$newoptions['mode'] = 'tags';
+	add_option('wpcumulus_widget', $newoptions);
+}
+
+// add the admin page
+function wp_cumulus_add_pages() {
+	add_options_page('WP Cumulus', 'WP Cumulus', 8, __FILE__, 'wp_cumulus_options');
+}
+
+// replace tag in content with tag cloud (non-shortcode version for WP 2.3.x)
+function wp_cumulus_init($content){
+	if( strpos($content, '[WP-CUMULUS]') === false ){
+		return $content;
+	} else {
+		$code = wp_cumulus_createflashcode(false);
+		$content = str_replace( '[WP-CUMULUS]', $code, $content );
+		return $content;
+	}
+}
+
+// template function
+function wp_cumulus_insert( $atts=NULL ){
+	echo wp_cumulus_createflashcode( false, $atts );
+}
+
+// shortcode function
+function wp_cumulus_shortcode( $atts=NULL ){
+	return wp_cumulus_createflashcode( false, $atts );
+}
+
+// piece together the flash code
+function wp_cumulus_createflashcode( $widget=false, $atts=NULL ){
+	// get the options
+	if( $widget == true ){
+		$options = get_option('wpcumulus_widget');
+		$soname = "widget_so";
+		$divname = "wpcumuluswidgetcontent";
+		// get compatibility mode variable from the main options
+		$mainoptions = get_option('wpcumulus_options');
+		$options['compmode'] = $mainoptions['compmode'];
+		$options['showwptags'] = $mainoptions['showwptags'];
+	} else if( $atts != NULL ){
+		$options = shortcode_atts( get_option('wpcumulus_options'), $atts );
+		$soname = "shortcode_so";
+		$divname = "wpcumuluscontent";
+	} else {
+		$options = get_option('wpcumulus_options');
+		$soname = "so";
+		$divname = "wpcumuluscontent";
+	}
+	// get the tag cloud...
+	if( $options['mode'] != "cats" ){
+		ob_start();	
+		wp_tag_cloud( $options['args'] );
+		$tagcloud = urlencode( str_replace( "&nbsp;", " ", ob_get_clean() ) );	
+	}
+	// get categories
+	if( $options['mode'] != "tags" ){
+		ob_start();
+		wp_list_categories('title_li=&show_count=1&hierarchical=0&style=none');
+		$cats = urlencode( ob_get_clean() );
+	}
+	// get some paths
+	if( function_exists('plugins_url') ){ 
+		// 2.6 or better
+		$movie = plugins_url('wp-cumulus/tagcloud.swf');
+		$path = plugins_url('wp-cumulus/');
+	} else {
+		// pre 2.6
+		$movie = get_bloginfo('wpurl') . "/wp-content/plugins/wp-cumulus/tagcloud.swf";
+		$path = get_bloginfo('wpurl')."/wp-content/plugins/wp-cumulus/";
+	}
+	// add random seeds to so name and movie url to avoid collisions and force reloading (needed for IE)
+	$soname .= rand(0,9999999);
+	$movie .= '?r=' . rand(0,9999999);
+	$divname .= rand(0,9999999);
+	// write flash tag
+	if( $options['compmode']!='true' ){
+		$flashtag = '<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/swfobject/ -->';	
+		$flashtag .= '<script type="text/javascript" src="'.$path.'swfobject.js"></script>';
+		// ------------------------------------------------------------------------------------
+		$flashtag .= '<div id="'.$divname.'" style="position:absolute;z-index:0;">';
+		if( $options['showwptags'] == 'true' ){ $flashtag .= '<p>'; } else { $flashtag .= '<p style="display:none;">'; };
+		// alternate content
+		if( $options['mode'] != "cats" ){ $flashtag .= urldecode($tagcloud); }
+		if( $options['mode'] != "tags" ){ $flashtag .= urldecode($cats); }
+		$flashtag .= '</p><!-- WP Cumulus Flash tag cloud by <a href="http://www.roytanck.com">Roy Tanck</a> and <a href="http://lukemorton.co.uk/">Luke Morton</a> requires <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> 9 or better.   --></div>';
+		$flashtag .= '<script type="text/javascript">';
+		$flashtag .= 'var '.$soname.' = new SWFObject("'.$movie.'", "tagcloudflash", "'.$options['width'].'", "'.$options['height'].'", "9", "#'.$options['bgcolor'].'");';
+		if( $options['trans'] == 'true' ){
+			$flashtag .= $soname.'.addParam("wmode", "transparent");';
+		}
+		$flashtag .= $soname.'.addParam("allowScriptAccess", "always");';
+		$flashtag .= $soname.'.addVariable("tcolor", "0x'.$options['tcolor'].'");';
+		$flashtag .= $soname.'.addVariable("tcolor2", "0x' . ($options['tcolor2'] == "" ? $options['tcolor'] : $options['tcolor2']) . '");';
+		$flashtag .= $soname.'.addVariable("hicolor", "0x' . ($options['hicolor'] == "" ? $options['tcolor'] : $options['hicolor']) . '");';
+		$flashtag .= $soname.'.addVariable("tspeed", "'.$options['speed'].'");';
+		$flashtag .= $soname.'.addVariable("distr", "'.$options['distr'].'");';
+		$flashtag .= $soname.'.addVariable("mode", "'.$options['mode'].'");';
+		// put tags in flashvar
+		if( $options['mode'] != "cats" ){
+			$flashtag .= $soname.'.addVariable("tagcloud", "'.urlencode('<tags>') . $tagcloud . urlencode('</tags>').'");';
+		}
+		// put categories in flashvar
+		if( $options['mode'] != "tags" ){
+			$flashtag .= $soname.'.addVariable("categories", "' . $cats . '");';
+		}
+		$flashtag .= $soname.'.write("'.$divname.'");';
+		$flashtag .= '</script>';
+	} else {
+		$flashtag = '<object type="application/x-shockwave-flash" data="'.$movie.'" width="'.$options['width'].'" height="'.$options['height'].'" wmode="opaque">';
+		$flashtag .= '<param name="movie" value="'.$movie.'" />';
+		$flashtag .= '<param name="bgcolor" value="#'.$options['bgcolor'].'" />';
+		$flashtag .= '<param name="AllowScriptAccess" value="always" />';
+		$flashtag .= '<param name="wmode" value="opaque" />';
+		if( $options['trans'] == 'true' ){
+			$flashtag .= '<param name="wmode" value="transparent" />';
+		}
+		$flashtag .= '<param name="flashvars" value="';
+		$flashtag .= 'tcolor=0x'.$options['tcolor'];
+		$flashtag .= '&amp;tcolor2=0x'.$options['tcolor2'];
+		$flashtag .= '&amp;hicolor=0x'.$options['hicolor'];
+		$flashtag .= '&amp;tspeed='.$options['speed'];
+		$flashtag .= '&amp;distr='.$options['distr'];
+		$flashtag .= '&amp;mode='.$options['mode'];
+		// put tags in flashvar
+		if( $options['mode'] != "cats" ){
+			$flashtag .= '&amp;tagcloud='.urlencode('<tags>') . $tagcloud . urlencode('</tags>');
+		}
+		// put categories in flashvar
+		if( $options['mode'] != "tags" ){
+			$flashtag .= '&amp;categories=' . $cats;
+		}
+		$flashtag .= '" />';
+		// alternate content
+		if( $options['mode'] != "cats" ){ $flashtag .= '<p>'.urldecode($tagcloud).'</p>'; }
+		if( $options['mode'] != "tags" ){ $flashtag .= '<p>'.urldecode($cats).'</p>'; }
+		$flashtag .= '<!-- WP-Cumulus by <a href="http://www.roytanck.com/">Roy Tanck</a> and <a href="http://lukemorton.co.uk/">Luke Morton</a> requires <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> 9 or better. -->';
+		$flashtag .= '</object>';
+	}
+	return $flashtag;
+}
+
+// options page
+function wp_cumulus_options() {	
+	$options = $newoptions = get_option('wpcumulus_options');
+	// if submitted, process results
+	if ( $_POST["wpcumulus_submit"] ) {
+		$newoptions['width'] = strip_tags(stripslashes($_POST["width"]));
+		$newoptions['height'] = strip_tags(stripslashes($_POST["height"]));
+		$newoptions['tcolor'] = strip_tags(stripslashes($_POST["tcolor"]));
+		$newoptions['tcolor2'] = strip_tags(stripslashes($_POST["tcolor2"]));
+		$newoptions['hicolor'] = strip_tags(stripslashes($_POST["hicolor"]));
+		$newoptions['bgcolor'] = strip_tags(stripslashes($_POST["bgcolor"]));
+		$newoptions['trans'] = strip_tags(stripslashes($_POST["trans"]));
+		$newoptions['speed'] = strip_tags(stripslashes($_POST["speed"]));
+		$newoptions['distr'] = strip_tags(stripslashes($_POST["distr"]));
+		$newoptions['mode'] = strip_tags(stripslashes($_POST["mode"]));
+		$newoptions['args'] = strip_tags(stripslashes($_POST["args"]));
+		$newoptions['compmode'] = strip_tags(stripslashes($_POST["compmode"]));
+		$newoptions['showwptags'] = strip_tags(stripslashes($_POST["showwptags"]));
+	}
+	// any changes? save!
+	if ( $options != $newoptions ) {
+		$options = $newoptions;
+		update_option('wpcumulus_options', $options);
+	}
+	// options form
+	echo '<form method="post">';
+	echo "<div class=\"wrap\"><h2>Display options</h2>";
+	echo '<table class="form-table">';
+	// width
+	echo '<tr valign="top"><th scope="row">Width of the Flash tag cloud</th>';
+	echo '<td><input type="text" name="width" value="'.$options['width'].'" size="5"></input><br />Width in pixels (500 or more is recommended)</td></tr>';
+	// height
+	echo '<tr valign="top"><th scope="row">Height of the Flash tag cloud</th>';
+	echo '<td><input type="text" name="height" value="'.$options['height'].'" size="5"></input><br />Height in pixels (ideally around 3/4 of the width)</td></tr>';
+	// text color
+	echo '<tr valign="top"><th scope="row">Color of the tags</th>';
+	echo '<td><input type="text" name="tcolor" value="'.$options['tcolor'].'" size="8"></input> Optional second color for gradient: <input type="text" name="tcolor2" value="'.$options['tcolor2'].'" size="8"></input>  Optional highlighl color: <input type="text" name="hicolor" value="'.$options['hicolor'].'" size="8"></input><br />These should be 6 character hex color values without the # prefix (000000 for black, ffffff for white)</td></tr>';
+	// background color
+	echo '<tr valign="top"><th scope="row">Background color</th>';
+	echo '<td><input type="text" name="bgcolor" value="'.$options['bgcolor'].'" size="8"></input><br />6 character hex color value</td></tr>';
+	// transparent
+	echo '<tr valign="top"><th scope="row">Use transparent mode</th>';
+	echo '<td><input type="checkbox" name="trans" value="true"';
+	if( $options['trans'] == "true" ){ echo ' checked="checked"'; }
+	echo '></input><br />Switches on Flash\'s wmode-transparent setting</td></tr>';
+	// speed
+	echo '<tr valign="top"><th scope="row">Rotation speed</th>';
+	echo '<td><input type="text" name="speed" value="'.$options['speed'].'" size="8"></input><br />Speed (percentage, default is 100)</td></tr>';
+	// distribution
+	echo '<tr valign="top"><th scope="row">Distribute tags evenly on sphere</th>';
+	echo '<td><input type="checkbox" name="distr" value="true"';
+	if( $options['distr'] == "true" ){ echo ' checked="checked"'; }
+	echo '></input><br />Places tags at equal intervals instead of random</td></tr>';
+	// end table
+	echo '</table>';
+	// tags, cats?
+	echo '<h3>Output options</h3>';
+	echo '<table class="form-table">';
+	echo '<tr valign="top"><th scope="row">Display:</th>';
+	echo '<td><input type="radio" name="mode" value="tags"';
+	if( $options['mode'] == 'tags' ){ echo ' checked="checked" '; }
+	echo '></input> Tags<br /><input type="radio" name="mode" value="cats"';
+	if( $options['mode'] == 'cats' ){ echo ' checked="checked" '; }
+	echo '></input> Categories<br /><input type="radio" name="mode" value="both"';
+	if( $options['mode'] == 'both' ){ echo ' checked="checked" '; }
+	echo '></input> Both (you may want to consider lowering the number of tags , using the advanced options below)';
+	// end table
+	echo '</table>';
+	// advanced options
+	echo '<h3>Advanced options</h3><p>Please leave this setting empty unless you know what you\'re doing.</p>';
+	echo '<table class="form-table">';
+	// arguments
+	echo '<tr valign="top"><th scope="row">wp_tag_cloud parameters</th>';
+	echo '<td><input type="text" name="args" value="'.$options['args'].'" size="60"></input><br />Parameter string for wp_tag_cloud (see the <a href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud#Parameters" target="_blank">codex</a> for more details)<br /><br /><strong>Example uses</strong><br />number=20 - limit the number of tags to 20<br />smallest=5&largest=50 - specify custom font sizes<br /><br /><strong>Known issues</strong><ul><li>Currently, the \'units\', \'orderby\' and \'order\' parameters are not supported.</li><li>Setting \'format\' to anything but \'flat\' will cause the plugin to fail.</li></ul></td></tr>';	
+	// compatibility mode
+	echo '<tr valign="top"><th scope="row">Use compatibility mode?</th>';
+	echo '<td><input type="checkbox" name="compmode" value="true"';
+	if( $options['compmode'] == "true" ){ echo ' checked="checked"'; }
+	echo '></input><br />Enabling this option switches the plugin to a different way of embedding Flash into the page. Use this if your page has markup errors or if you\'re having trouble getting WP-Cumulus to display correctly. This affects both the shortcode version and the widget.</td></tr>';
+	// show regular tag in alternate content?
+	echo '<tr valign="top"><th scope="row">Show the regular HTML tag cloud?</th>';
+	echo '<td><input type="checkbox" name="showwptags" value="true"';
+	if( $options['showwptags'] == "true" ){ echo ' checked="checked"'; }
+	echo '></input><br />Un-hides the regular HTML tag cloud that may appear for a second or so before it is replaced by the Flash one. Turn this on if SEO and/or non-flash users are a major concern for you. This option affects both the shortcode version and the widget.</td></tr>';
+	// close stuff
+	echo '<input type="hidden" name="wpcumulus_submit" value="true"></input>';
+	echo '</table>';
+	echo '<p class="submit"><input type="submit" value="Update Options &raquo;"></input></p>';
+	echo "</div>";
+	echo '</form>';
+	
+}
+
+//uninstall all options
+function wp_cumulus_uninstall () {
+	delete_option('cumulus_options');
+	delete_option('cumulus_widget');
+}
+
+
+// widget
+function widget_init_wp_cumulus_widget() {
+	// Check for required functions
+	
+	if (!function_exists('register_sidebar_widget'))
+		return;
+
+	function wp_cumulus_widget($args){
+	    extract($args);
+		$options = get_option('wpcumulus_widget');
+		?>
+	        <?php echo $before_widget; ?>
+			<?php if( !empty($options['title']) ): ?>
+				<?php echo $before_title . $options['title'] . $after_title; ?>
+			<?php endif; ?>
+			<?php
+				if( !stristr( $_SERVER['PHP_SELF'], 'widgets.php' ) ){
+					echo wp_cumulus_createflashcode(true);
+				}
+			?>
+	        <?php echo $after_widget; ?>
+		<?php
+	}
+	
+	function wp_cumulus_widget_control() {
+		$options = $newoptions = get_option('wpcumulus_widget');
+		if ( $_POST["wpcumulus_widget_submit"] ) {
+			$newoptions['title'] = strip_tags(stripslashes($_POST["wpcumulus_widget_title"]));
+			$newoptions['width'] = strip_tags(stripslashes($_POST["wpcumulus_widget_width"]));
+			$newoptions['height'] = strip_tags(stripslashes($_POST["wpcumulus_widget_height"]));
+			$newoptions['tcolor'] = strip_tags(stripslashes($_POST["wpcumulus_widget_tcolor"]));
+			$newoptions['tcolor2'] = strip_tags(stripslashes($_POST["wpcumulus_widget_tcolor2"]));
+			$newoptions['hicolor'] = strip_tags(stripslashes($_POST["wpcumulus_widget_hicolor"]));
+			$newoptions['bgcolor'] = strip_tags(stripslashes($_POST["wpcumulus_widget_bgcolor"]));
+			$newoptions['speed'] = strip_tags(stripslashes($_POST["wpcumulus_widget_speed"]));
+			$newoptions['trans'] = strip_tags(stripslashes($_POST["wpcumulus_widget_trans"]));
+			$newoptions['distr'] = strip_tags(stripslashes($_POST["wpcumulus_widget_distr"]));
+			$newoptions['args'] = strip_tags(stripslashes($_POST["wpcumulus_widget_args"]));
+			$newoptions['mode'] = strip_tags(stripslashes($_POST["wpcumulus_widget_mode"]));
+		}
+		if ( $options != $newoptions ) {
+			$options = $newoptions;
+			update_option('wpcumulus_widget', $options);
+		}
+		$title = attribute_escape($options['title']);
+		$width = attribute_escape($options['width']);
+		$height = attribute_escape($options['height']);
+		$tcolor = attribute_escape($options['tcolor']);
+		$tcolor2 = attribute_escape($options['tcolor2']);
+		$hicolor = attribute_escape($options['hicolor']);
+		$bgcolor = attribute_escape($options['bgcolor']);
+		$speed = attribute_escape($options['speed']);
+		$distr = attribute_escape($options['distr']);
+		$trans = attribute_escape($options['trans']);
+		$args = attribute_escape($options['args']);
+		$mode = attribute_escape($options['mode']);
+		?>
+			<p><label for="wpcumulus_widget_title"><?php _e('Title:'); ?> <input class="widefat" id="wpcumulus_widget_title" name="wpcumulus_widget_title" type="text" value="<?php echo $title; ?>" /></label></p>
+			<p><label for="wpcumulus_widget_width"><?php _e('Width:'); ?> <input class="widefat" id="wpcumulus_widget_width" name="wpcumulus_widget_width" type="text" value="<?php echo $width; ?>" /></label></p>
+			<p><label for="wpcumulus_widget_height"><?php _e('Height:'); ?> <input class="widefat" id="wpcumulus_widget_height" name="wpcumulus_widget_height" type="text" value="<?php echo $height; ?>" /></label></p>
+			<p><label for="wpcumulus_widget_tcolor"><?php _e('Tag color:'); ?> <input class="widefat" id="wpcumulus_widget_tcolor" name="wpcumulus_widget_tcolor" type="text" value="<?php echo $tcolor; ?>" /></label></p>
+			<p><label for="wpcumulus_widget_tcolor2"><?php _e('Optional second color for gradient:'); ?> <input class="widefat" id="wpcumulus_widget_tcolor2" name="wpcumulus_widget_tcolor2" type="text" value="<?php echo $tcolor2; ?>" /></label></p>
+			<p><label for="wpcumulus_widget_hicolor"><?php _e('Optional highlight color:'); ?> <input class="widefat" id="wpcumulus_widget_hicolor" name="wpcumulus_widget_hicolor" type="text" value="<?php echo $hicolor; ?>" /></label></p>
+			<p><label for="wpcumulus_widget_bgcolor"><?php _e('Background color:'); ?> <input class="widefat" id="wpcumulus_widget_bgcolor" name="wpcumulus_widget_bgcolor" type="text" value="<?php echo $bgcolor; ?>" /></label></p>
+			<p><label for="wpcumulus_widget_trans"><input class="checkbox" id="wpcumulus_widget_trans" name="wpcumulus_widget_trans" type="checkbox" value="true" <?php if( $trans == "true" ){ echo ' checked="checked"'; } ?> > Background transparency</label></p>
+			<p><label for="wpcumulus_widget_speed"><?php _e('Speed:'); ?> <input class="widefat" id="wpcumulus_widget_speed" name="wpcumulus_widget_speed" type="text" value="<?php echo $speed; ?>" /></label></p>
+			<p><label for="wpcumulus_widget_distr"><input class="checkbox" id="wpcumulus_widget_distr" name="wpcumulus_widget_distr" type="checkbox" value="true" <?php if( $distr == "true" ){ echo ' checked="checked"'; } ?> > Distribute evenly on sphere</label></p>
+			<p>
+				<input class="radio" id="wpcumulus_widget_mode" name="wpcumulus_widget_mode" type="radio" value="tags" <?php if( $mode == "tags" ){ echo ' checked="checked"'; } ?> > Tags<br />
+				<input class="radio" id="wpcumulus_widget_mode" name="wpcumulus_widget_mode" type="radio" value="cats" <?php if( $mode == "cats" ){ echo ' checked="checked"'; } ?> > Categories<br />
+				<input class="radio" id="wpcumulus_widget_mode" name="wpcumulus_widget_mode" type="radio" value="both" <?php if( $mode == "both" ){ echo ' checked="checked"'; } ?> > Both
+			</p>
+			<p><label for="wpcumulus_widget_args"><?php _e('wp_tag_cloud parameters:'); ?> <input class="widefat" id="wpcumulus_widget_args" name="wpcumulus_widget_args" type="text" value="<?php echo $args; ?>" /></label></p>
+			<input type="hidden" id="wpcumulus_widget_submit" name="wpcumulus_widget_submit" value="1" />
+		<?php
+	}
+	
+	register_sidebar_widget( "WP-Cumulus", "wp_cumulus_widget" );
+	register_widget_control( "WP-Cumulus", "wp_cumulus_widget_control" );
+}
+
+// Delay plugin execution until sidebar is loaded
+add_action('widgets_init', 'widget_init_wp_cumulus_widget');
+
+// add the actions
+add_action('admin_menu', 'wp_cumulus_add_pages');
+register_activation_hook( __FILE__, 'wp_cumulus_install' );
+register_deactivation_hook( __FILE__, 'wp_cumulus_uninstall' );
+
+if( function_exists('add_shortcode') ){
+	add_shortcode('wp-cumulus', 'wp_cumulus_shortcode');
+	add_shortcode('WP-CUMULUS', 'wp_cumulus_shortcode');
+} else {
+	add_filter('the_content','wp_cumulus_init');
+}
+
+?>
\ No newline at end of file
Binary file web/wp-content/plugins/wp-explorer/icons/Thumbs.db has changed
Binary file web/wp-content/plugins/wp-explorer/icons/_unknown.png has changed
Binary file web/wp-content/plugins/wp-explorer/icons/attach.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/bmp.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/disk.png has changed
Binary file web/wp-content/plugins/wp-explorer/icons/doc.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/edit.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/exe.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/folder.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/gif.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/help.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-explorer/icons/index.html	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,1 @@
+
Binary file web/wp-content/plugins/wp-explorer/icons/jpe.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/jpeg.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/jpg.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/mov.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/mp3.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/mp3.gif_ has changed
Binary file web/wp-content/plugins/wp-explorer/icons/msi.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/page.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/pdf.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/php.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/png.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/psd.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/rar.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/rtf.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/swf.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/tif.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/tiff.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/txt.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/unknown.png has changed
Binary file web/wp-content/plugins/wp-explorer/icons/wav.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/wmv.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/xls.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/xml.gif has changed
Binary file web/wp-content/plugins/wp-explorer/icons/zip.gif has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-explorer/inc/functions_misc.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,67 @@
+<?php
+
+function wp_explorer_opmap()
+{
+	$options = array();
+	$options['tmp_filebit'] = '<tr>
+    <td class="$file[class]"><img src="$siteurl/wp-content/plugins/wp-explorer/icons/$file[icon]" alt="" /> <a href="$siteurl/$file[url]">$file[name]</a></td>
+    <td class="$file[class]" align="center">$file[size]</td>
+    <td class="$file[class]" align="center">$file[version]</td>
+    <td class="$file[class]" align="center">$file[date]</td>
+</tr>';
+	$options['tmp_dirbit'] = '<tr>
+    <td class="$file[class]"><img src="$siteurl/wp-content/plugins/wp-explorer/icons/$file[icon]" alt="" /> <a href="$file[url]">$file[name]</a></td>
+    <td class="$file[class]" align="center">$file[date]</td>
+</tr>';
+	
+	$options['tmp_filetbl'] = '<table class="widefat">
+<thead>
+	<tr>
+		<td class="thead">$phrase[name]</td>
+		<td class="thead" align="center">$phrase[size]</td>
+		<td class="thead" align="center">$phrase[version]</td>
+		<td class="thead" align="center">$phrase[date]</td>
+	</tr>
+</thead>
+$filebit
+</table>';
+
+	$options['tmp_dirtbl'] = '<table class="widefat">
+<thead>
+	<tr>
+		<td class="thead">$phrase[name]</td>
+		<td class="thead" align="center">$phrase[date]</td>
+	</tr>
+</thead>
+$dirbit
+</table>';
+	$options['tmp_main'] = '$display_dirs
+$display_files
+<div style="color:#739E48; font-size:10px; font-weight:bold; text-align:right; padding:2px 1px 6px 0px;">$phrase[location] $location | $leech_protection  | $folder_stats</div>';
+	$options['tmp_error'] = '<p class="error">$error_message</p>';
+
+	$options['exclude_files'] = '.htaccess,.htpasswd,index.html,index.htm,index.php,index.asp';
+	$options['exclude_folders'] = 'folder1,folder2';
+	$options['exclude_extensions'] = 'php,php3,php4';
+	$options['enable_fancylinks'] = 0;
+	$options['enable_antileech'] = 0;
+	return $options;
+}
+
+function wp_explorer_preptmp($code)
+{
+	$code = addslashes($code);
+	$code = str_replace("\\'", "'", $code);
+	return $code;
+}
+
+function wp_explorer_sanitize($file, $ext, $version)
+{
+	$file = basename($file, $ext);
+	$file = str_replace($version, '', $file);
+	$file = preg_replace( array('/\./', '/\-/', '/\_/' ), ' ', $file);
+	$file = ucwords(strtolower($file));
+	return $file;
+}
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-explorer/readme.txt	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,85 @@
+=== Plugin Name ===
+Contributors: Tefra
+Donate link: http://www.t3-design.com/donate/
+Tags: files, browse, explorer
+Requires at least: 2.5
+Tested up to: 2.5.1
+Stable tag: 0.5
+
+WP Explorer is an easy way to list directories and files on your server.
+
+== Description ==
+
+WP Explorer is an easy way to list directories and files on your server. Through a simple shortcode you can transform your posts and pages to file browsers.
+
+Features
+- Easy Configuration.
+- Easy modification since you have control over templates from the options page.
+- Exclude files, folders, extensions from listing.
+- Protection from listing directories outside the specified one.
+- Hot-linking protection through htaccess.
+- Pretty links.
+- 100% Ready for translations.
+- Ability to include file version through a specific filename format.
+
+Directories listing information
+- Name
+- Last Modification Date
+
+Files listing information
+- Name
+- Size
+- Last Modification Date
+- Extension icon
+- Version *
+
+Keep in mind the version must be numeric 1.0a for example won't work. To include a version to your files use this format (name)_(version).(ext) e.g. guestbook_100.rar, test_wp_oti_nani_100.txt, email.change_1.0.zip
+
+= What's New=
+
+Version 0.5
+-----------
+- Fixed Bug with spaces in folder names.
+- Fixed Bug with wrong check when hotlinking protection is disabled.
+
+Version 0.4
+-----------
+First Initial Release
+
+
+== Installation ==
+
+1. Upload the folder wp-explorer to the /wp-content/plugins/`directory.
+2. Activate the plugin through the 'Plugins' menu in WordPress.
+3. Check the settings from the settings submenu WP Explorer.
+4. Create posts, pages with the shortcode [wp_explorer]dir/path[/wp_explorer]
+
+e.g. [wp_explorer]wp-content/folder_name[/wp_explorer]
+
+Don't use an ending slash
+
+== Frequently Asked Questions ==
+
+= I get this "ERROR: I have no right to access this folder or this folder doesn't exist"=
+
+When this message appears means, either the folder needs a higher chmod to allow reading or that the giver dir path is wrong.
+
+= I get a php error eval something =
+
+Check your templates, check for any missing bracket [ ],
+Right $phrase[size]
+Wrong $phrase['size']
+Wrong $phrase[size
+
+Try to revert the templates from the options page and contact me if you still can't see where you messed up.
+
+= The hotlink protections redirects to an old post/page =
+
+If you deleted the page or the post that included a working wp explorer shortcode and you had anti-leech protection on and you created a new page post witht the same dir path in the shortcoce then you need to remove the htaccess file from the directory and let it regenerate.
+
+To do so there are two ways:
+- Turn off anti-leech and open the page witht the wp explorer shortcode and then turn the anti-leech on again. This forces the .htaccess file to be deleted and regenerated.
+- Delete it manually from your ftp.
+
+== Screenshots ==
+I have something better than screenshots, a live demo http://www.t3-design.com/ldu-repo/
\ No newline at end of file
Binary file web/wp-content/plugins/wp-explorer/wp-explorer-el.mo has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-explorer/wp-explorer-el.po	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,133 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: WP Explorer 0.4\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2008-05-05 16:48+0200\n"
+"PO-Revision-Date: \n"
+"Last-Translator: Chris T <webmaster@t3-design.com>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-KeywordsList: __;_e\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: wp-explorer-options.php:18
+msgid "Options saved."
+msgstr "Οι Ïυθμίσεις αποθηκεÏτηκαν."
+
+#: wp-explorer-options.php:23
+msgid "Template: Main"
+msgstr "Εμφάνηση: Βασική"
+
+#: wp-explorer-options.php:24
+msgid "Template: Folders Table"
+msgstr "Εμφάνηση: Πίνακας Φακέλων"
+
+#: wp-explorer-options.php:25
+msgid "Template: Folders Bit"
+msgstr "Εμφάνηση: Φάκελος"
+
+#: wp-explorer-options.php:26
+msgid "Template: Files Table"
+msgstr "Εμφάνηση: Πίνακας ΑÏχείων"
+
+#: wp-explorer-options.php:27
+msgid "Template: Files Bit"
+msgstr "Εμφάνηση: ΑÏχείο"
+
+#: wp-explorer-options.php:28
+msgid "Template: Error"
+msgstr "Εμφάνηση: Λάθος"
+
+#: wp-explorer-options.php:29
+msgid "Exclude Files From Listing"
+msgstr "Αποκλεισμός αÏχείων απο την λίστα"
+
+#: wp-explorer-options.php:30
+msgid "Exclude Folders From Listing"
+msgstr "Αποκλεισμός φακέλων απο την λίστα"
+
+#: wp-explorer-options.php:31
+msgid "Exclude Extensions From Listing"
+msgstr "Αποκλεισμός αÏχείων απο την λίστα με κατάληξη"
+
+#: wp-explorer-options.php:32
+msgid "Enable htaccess anti-leech protection"
+msgstr "ΕνεÏγοποιήση htaccess anti-leech Ï€Ïοστασίας"
+
+#: wp-explorer-options.php:33
+msgid "Enable Pretty Links"
+msgstr "ΕνεÏγοποίηση ΌμοÏφων ΔιευθÏνσεων"
+
+#: wp-explorer-options.php:37
+msgid "WP Explorer Options"
+msgstr "WP Explorer Ρυθμίσεις"
+
+#: wp-explorer-options.php:54
+msgid "Revert Template"
+msgstr "ΕπαναφοÏά Εμφάνισης"
+
+#: wp-explorer-options.php:58
+msgid "Separate with commas"
+msgstr "ΔιαχωÏίστε με κόμματα"
+
+#: wp-explorer-options.php:60
+msgid "Yes"
+msgstr "Îαι"
+
+#: wp-explorer-options.php:61
+msgid "No"
+msgstr "Όχι"
+
+#: wp-explorer-options.php:69
+msgid "Save Changes"
+msgstr "Αποθήκευσε Αλλαγές"
+
+#: wp-explorer.php:67
+msgid "Root"
+msgstr "ΑφετηÏία"
+
+#: wp-explorer.php:117
+#: wp-explorer.php:126
+msgid "Leech protection: ON"
+msgstr "Leech Ï€Ïοστασία: ΕνεÏγοποιήμενη"
+
+#: wp-explorer.php:121
+msgid "Leech protection: Failed"
+msgstr "Leech Ï€Ïοστασία: Απέτυχε"
+
+#: wp-explorer.php:132
+msgid "Leech protection: OFF"
+msgstr "Leech Ï€Ïοστασία: ΑπενεÏγοποιήμενη"
+
+#: wp-explorer.php:158
+msgid "You are here:"
+msgstr "Î’Ïίσκεστε εδώ:"
+
+#: wp-explorer.php:206
+msgid "Name"
+msgstr "Όνομα"
+
+#: wp-explorer.php:207
+msgid "Last Modification Date"
+msgstr "ΗμεÏομηνία Τελευταίας ΤÏοποποίησης"
+
+#: wp-explorer.php:215
+msgid "Size"
+msgstr "Μέγεθος"
+
+#: wp-explorer.php:216
+msgid "Version"
+msgstr "'Εκδοση"
+
+#: wp-explorer.php:219
+#, php-format
+msgid "There are %1$s folders and %2$s files here."
+msgstr "ΥπάÏχουν %1$s φάκελοι και %2$s αÏχεία εδώ."
+
+#: wp-explorer.php:224
+msgid "ERROR: I have no right to access this folder or this folder doesn't exist."
+msgstr "ΛΑΘΟΣ: Δεν έχω Ï€Ïόσβαση σε αÏτον το φάκελο ή ο φάκελος δεν υπάÏχει."
+
Binary file web/wp-content/plugins/wp-explorer/wp-explorer-fr_FR.mo has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-explorer/wp-explorer-fr_FR.po	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,139 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: WP Explorer 0.4\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2010-01-25 13:24+0100\n"
+"PO-Revision-Date: \n"
+"Last-Translator: Huron Samuel <huron.samuel{(at)}cybunk{(point)}com>\n"
+"Language-Team: Samuel Huron\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-KeywordsList: __;_e\n"
+"X-Poedit-Basepath: .\n"
+"X-Poedit-Language: French\n"
+"X-Poedit-Country: FRANCE\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: wp-explorer-options.php:4
+msgid "You do not have sufficient permissions to access this page."
+msgstr "Vous n'avez pas les droits pour accéder à cette page."
+
+#: wp-explorer-options.php:21
+msgid "Options saved."
+msgstr "Options sauvegarder."
+
+#: wp-explorer-options.php:26
+msgid "Template: Main"
+msgstr "Gabarit : Principal"
+
+#: wp-explorer-options.php:27
+msgid "Template: Folders Table"
+msgstr "Gabarit : Tableau du Repertoire"
+
+#: wp-explorer-options.php:28
+msgid "Template: Folders Bit"
+msgstr "Gabarit : Poid du Repertoire"
+
+#: wp-explorer-options.php:29
+msgid "Template: Files Table"
+msgstr "Gabarit : Tableau des fichier"
+
+#: wp-explorer-options.php:30
+msgid "Template: Files Bit"
+msgstr "Gabarit : Poid des fichiers"
+
+#: wp-explorer-options.php:31
+msgid "Template: Error"
+msgstr "Gabarit : Erreur"
+
+#: wp-explorer-options.php:32
+msgid "Exclude Files From Listing"
+msgstr "Fichiers à ne pas afficher"
+
+#: wp-explorer-options.php:33
+msgid "Exclude Folders From Listing"
+msgstr "Dossier à ne pas afficher"
+
+#: wp-explorer-options.php:34
+msgid "Exclude Extensions From Listing"
+msgstr "Extensions à ne pas afficher"
+
+#: wp-explorer-options.php:35
+msgid "Enable htaccess anti-leech protection"
+msgstr "Activer la protection anti-leech"
+
+#: wp-explorer-options.php:36
+msgid "Enable Pretty Links"
+msgstr "Activer les liens directs"
+
+#: wp-explorer-options.php:40
+msgid "WP Explorer Options"
+msgstr "WP Explorer Options"
+
+#: wp-explorer-options.php:57
+msgid "Revert Template"
+msgstr "Inverser le template"
+
+#: wp-explorer-options.php:61
+msgid "Separate with commas"
+msgstr "Séparer avec des virgules"
+
+#: wp-explorer-options.php:63
+msgid "Yes"
+msgstr "Oui"
+
+#: wp-explorer-options.php:64
+msgid "No"
+msgstr "Non"
+
+#: wp-explorer-options.php:72
+msgid "Save Changes"
+msgstr "Sauvegarder les modifications"
+
+#: wp-explorer.php:69
+msgid "Root"
+msgstr "Racine"
+
+#: wp-explorer.php:122
+#: wp-explorer.php:132
+msgid "Leech protection: ON"
+msgstr "Protecton leech : activer"
+
+#: wp-explorer.php:127
+msgid "Leech protection: Failed"
+msgstr "Protecton leech : erreur"
+
+#: wp-explorer.php:138
+msgid "Leech protection: OFF"
+msgstr "Protecton leech : désactiver"
+
+#: wp-explorer.php:164
+msgid "You are here:"
+msgstr "Vous êtes ici : "
+
+#: wp-explorer.php:234
+msgid "Name"
+msgstr "Nom"
+
+#: wp-explorer.php:235
+msgid "Last Modification Date"
+msgstr "Date des dernières modifications"
+
+#: wp-explorer.php:243
+msgid "Size"
+msgstr "Taille"
+
+#: wp-explorer.php:244
+msgid "Version"
+msgstr "Version"
+
+#: wp-explorer.php:247
+#, php-format
+msgid "There are %1$s folders and %2$s files here."
+msgstr "Il y a %1$s repertoires et  %2$s fichier ici."
+
+#: wp-explorer.php:252
+msgid "ERROR: I have no right to access this folder or this folder doesn't exist."
+msgstr "ERREUR: Vous n'avez pas les droits d'accéder à ce dossier, ou ce dossier n'éxiste pas."
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-explorer/wp-explorer-options.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,77 @@
+<?php
+
+
+if(!defined('WP_ADMIN') OR !current_user_can('manage_options')) wp_die(__('You do not have sufficient permissions to access this page.'));
+
+load_plugin_textdomain('wp-explorer', 'wp-content/plugins/wp-explorer');
+if($_POST['do'] == 'update')
+{
+	require ('inc/functions_misc.php');
+	check_admin_referer('update-wp-explorer-options');
+	$wp_explorer_options = $_POST['wp_explorer_options'];
+	$wp_explorer_default = wp_explorer_opmap();
+	
+	if ($wp_explorer_options) 
+	{
+		foreach ($wp_explorer_options as $key => $value) 
+		{
+			$wp_explorer_options[$key] = $_POST['revert'][$key] ? $wp_explorer_default[$key] : stripslashes_deep(trim($value));
+		}
+		update_option('wp_explorer_options', $wp_explorer_options);
+		?><div id="message" class="updated fade"><p><?php _e('Options saved.', 'wp-explorer') ?></p></div><?php
+	}
+}
+
+$wp_explorer_options = get_option('wp_explorer_options'); 
+$wp_explorer_options_map[] = array('name' => 'tmp_main', 			'title' => __('Template: Main', 'wp-explorer'),  						'input' => 'textarea' );
+$wp_explorer_options_map[] = array('name' => 'tmp_dirtbl', 			'title' => __('Template: Folders Table', 'wp-explorer'),  				'input' => 'textarea' );
+$wp_explorer_options_map[] = array('name' => 'tmp_dirbit', 			'title' => __('Template: Folders Bit', 'wp-explorer'), 					'input' => 'textarea' );
+$wp_explorer_options_map[] = array('name' => 'tmp_filetbl', 		'title' => __('Template: Files Table', 'wp-explorer'), 	 				'input' => 'textarea' );
+$wp_explorer_options_map[] = array('name' => 'tmp_filebit', 		'title' => __('Template: Files Bit', 'wp-explorer'), 					'input' => 'textarea' );
+$wp_explorer_options_map[] = array('name' => 'tmp_error', 			'title' => __('Template: Error', 'wp-explorer'), 	 					'input' => 'textarea' );
+$wp_explorer_options_map[] = array('name' => 'exclude_files', 		'title' => __('Exclude Files From Listing', 'wp-explorer'),  			'input' => 'text' );
+$wp_explorer_options_map[] = array('name' => 'exclude_folders', 	'title' => __('Exclude Folders From Listing', 'wp-explorer'), 			'input' => 'text' );
+$wp_explorer_options_map[] = array('name' => 'exclude_extensions', 	'title' => __('Exclude Extensions From Listing', 'wp-explorer'), 		'input' => 'text' );
+$wp_explorer_options_map[] = array('name' => 'enable_antileech', 	'title' => __('Enable htaccess anti-leech protection', 'wp-explorer'), 	'input' => 'radioyesno' );
+$wp_explorer_options_map[] = array('name' => 'enable_fancylinks', 	'title' => __('Enable Pretty Links', 'wp-explorer'), 					'input' => 'radioyesno' );
+?>
+
+<div class="wrap"> 
+    <h2><?php _e('WP Explorer Options', 'wp-explorer'); ?></h2>
+    <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>"> 
+    <?php wp_nonce_field('update-wp-explorer-options') ?>
+    <table class="form-table">
+    <?php 
+        foreach($wp_explorer_options_map as $opt):
+            $id 	= 	$opt['name'];
+            $name 	= 	'wp_explorer_options['.$opt['name'].']';
+            $value 	= 	attribute_escape($wp_explorer_options[$id]);
+            ?>
+            <tr valign="top">
+                <th scope="row" nowrap="nowrap"><?php echo $opt['title']; ?>:</th>
+                <td>
+				<?php   
+                if($opt['input'] == 'textarea'): ?>
+                <textarea cols="80" rows="20" id="<?php echo $id; ?>" name="<?php echo $name; ?>"><?php echo $value; ?></textarea> <?php 
+					if(substr($id, 0, 4) == 'tmp_'): ?>
+					<br /><input type="checkbox" name="revert[<?php echo $id; ?>]"  value="1" /> <?php _e('Revert Template', 'wp-explorer');
+					endif;
+                elseif($opt['input'] == 'text'): ?>
+                <input size="80" type="text" id="<?php echo $id; ?>" name="<?php echo $name; ?>" value="<?php echo $value; ?>" /><br />
+                <?php _e('Separate with commas', 'wp-explorer');
+                elseif($opt['input'] == 'radioyesno'): ?>
+                <input type="radio" id="<?php echo $id; ?>" name="<?php echo $name; ?>" value="1" <?php echo ($value ? 'checked="checked"' : ''); ?>/><?php _e('Yes', 'wp-explorer'); ?> 
+                <input type="radio" id="<?php echo $id; ?>" name="<?php echo $name; ?>" value="0" <?php echo (!$value ? 'checked="checked"' : ''); ?>/><?php _e('No', 'wp-explorer'); ?> 
+                <?php endif; ?>
+                </td>
+            </tr>
+		<?php endforeach; ?>
+        <tr>
+            <td colspan="2" align="center">
+            	<input type="hidden" name="do" value="update" />
+                <input type="submit" name="submit" class="button" value="<?php _e('Save Changes', 'wp-explorer'); ?>" /> 
+            </td>
+        </tr> 
+    </table>
+    </form>
+</div>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wp-explorer/wp-explorer.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,258 @@
+<?php
+/*
+Plugin Name: WP Explorer
+Plugin URI: http://www.t3-design.com/
+Description: A simple file indexing plugin with custom rules
+Version: 0.5
+Author: Chris T.
+Author URI: http://www.t3-design.com/
+
+2010-01-18 	Edited By samuel Huron for MP3 player 
+2010-01-18 	Edited By samuel Huron for Downloader filter .iri
+*/
+
+add_action('init', 'wp_explorer_getvar');
+function wp_explorer_getvar($var = '')
+{
+   if (!in_array($var, array('REQUEST_URI', 'PATH_INFO'))) $var = 'REQUEST_URI';
+   $req = $_SERVER[$var];
+   if (preg_match('!^(.+/)browse/?(.*)?$!', $req, $match) && (url_to_postid($req) == 0)) 
+   {
+       $_GET['browse'] = $match[2];
+       $req = $match[1].'?browse='.$match[2];
+       $_SERVER[$var] = $req;
+   }
+   if (($var != 'PATH_INFO') && isset($_SERVER['PATH_INFO'])) 
+   {
+       wp_explorer_getvar('PATH_INFO');
+   }
+} 
+
+add_action('admin_menu', 'wp_explorer_menu');
+function wp_explorer_menu() 
+{
+	if(function_exists('add_menu_page')) 
+	{
+		add_menu_page('WP Explorer', 'WP Explorer', 'manage_options', 'wp-explorer/wp-explorer-options.php') ;
+	}
+
+}
+
+add_action('activate_wp-explorer/wp-explorer.php', 'wp_explorer_install');
+function wp_explorer_install() 
+{
+	require ('inc/functions_misc.php');
+	add_option('wp_explorer_options', wp_explorer_opmap(), '', 'no');
+}
+	
+add_action('deactivate_wp-explorer/wp-explorer.php', 'wp_explorer_uninstall');	
+function wp_explorer_uninstall()
+{
+	delete_option('wp_explorer_options');
+}
+
+add_filter('single_post_title',  wp_explorer_location,  99999, 1);
+function wp_explorer_location()
+{
+	$arg		=	func_get_args();
+	$nargs 		= 	func_num_args();
+	$folders 	= 	array_map("urldecode", array_values(array_filter(explode('/', $_GET['browse']))));
+	if($nargs == 1)
+	{
+		$title = $arg[0];
+		return (!count($folders) ? $title : $title.' &raquo; '.implode(' &raquo; ', $folders));
+	}
+	elseif($nargs == 2)
+	{
+		$url 	= 	$arg[0];
+		$pretty = 	$arg[1];
+		$loc[] = __('Root', 'wp-explorer');
+	}
+	else { die("I don't Know You");}
+
+	foreach($folders AS $folder)
+	{
+		$tmp 	.= 	$folder;
+		$tlink 	= 	str_replace('%browse%', $tmp, $url);
+		$tlink 	=	$pretty ? str_replace(array('/?browse=', '?browse=', '&browse='), '/browse/', $tlink) : $tlink;
+		$loc[] 	= 	'<a href="'.$tlink.'">'.$folder.'</a>';
+		$tmp 	.= 	'/';
+	}
+	return implode((count($loc) > 1 ? ' &raquo; ' : ''), $loc);
+}
+
+add_shortcode('wp_explorer', 'wp_explorer_caption');
+function wp_explorer_caption( $atts, $content = null ) 
+{
+	if(trim($content) == null) return;
+	load_plugin_textdomain('wp-explorer', 'wp-content/plugins/wp-explorer');
+	require ('inc/functions_misc.php');
+	
+	$cfg 		= 	get_option('wp_explorer_options'); 
+	$no_folders = 	explode(',', $cfg['exclude_folders']);
+	$no_files 	= 	explode(',', $cfg['exclude_files']);
+	$no_ext 	= 	explode(',', $cfg['exclude_extensions']);
+	// Edit MP3
+	$spe_ext	= 	".mp3";
+	// --- 
+	array_walk($no_folders, 'trim');
+	array_walk($no_files, 'trim');
+	array_walk($no_ext, 'trim');
+
+	$main_dir 	= 	trim(trim($content), '/');
+	$condom 	= 	$main_dir.'/.htaccess';
+	$siteurl 	= 	get_bloginfo('siteurl');
+	$url 		= 	get_permalink();
+	
+	if($cfg['enable_antileech'])
+	{
+		if(!file_exists($condom))
+		{
+			$file = @fopen($condom, 'w');
+			if($file) 
+			{	
+				$patterns = array('http://', 'https://', 'www.', 'WWW.');	
+				$cofipr = "RewriteEngine on\n";
+				$cofipr .= "RewriteCond %{HTTP_REFERER} !^http://(www\.)?".str_replace($patterns, '', $siteurl)."/(/)?.*$ [NC]\n";
+				$cofipr .= "RewriteRule .*\.*$  http://".str_replace($patterns, '', $url)." [R,NC]\n";
+				$cofipr .= "Options -Indexes";
+				
+				fwrite($file, $cofipr);
+				fclose($file);
+				$leech_protection = __('Leech protection: ON', 'wp-explorer');
+				
+			}	
+			else
+			{
+				$leech_protection = __('Leech protection: Failed', 'wp-explorer');
+			}
+		}
+		else
+		{
+			$leech_protection = __('Leech protection: ON', 'wp-explorer');
+		}
+	}
+	elseif(!$cfg['enable_antileech'])
+	{
+		if(file_exists($condom)) unlink($condom);
+		$leech_protection = __('Leech protection: OFF', 'wp-explorer');
+	}
+	
+	if($_GET['browse'] != '')
+	{
+		$_GET['browse'] = str_replace('<', '&lt;', trim($_GET['browse']));
+		$f = $main_dir.'/'.urldecode($_GET['browse']);
+	}
+
+	if(is_dir($f)) 
+	{
+		$patterns = array(".", "/");
+		$real = str_replace($patterns, "", $main_dir);
+		$check = str_replace($patterns, "", $f);
+		$re = strlen($real);
+		if(substr($check, 0, $re)!= $real) $f = $main_dir; 
+		if(substr($f,0,2) == ".." || substr($f,0,1) == "/" || $f == "./" || stristr($f, '../')) $f = $main_dir; 
+	}
+	else
+	{
+		$f = $main_dir;
+	}
+
+	$files = array();
+	if(is_dir($f) && $handle = opendir($f)) 
+	{
+		$phrase['location'] = 	__('You are here:', 'wp-explorer');
+		$basedirurl 		= 	add_query_arg('browse', '%browse%', $url);
+		$location 			= 	wp_explorer_location($basedirurl, $cfg['enable_fancylinks']);
+	
+		while(false !==($file = readdir($handle))) 
+		{ 
+			if($file != '..' && $file != '.')
+			{
+				$filesize = @filesize($f.'/'.$file);
+				$files[] = array("name" => $file, "size" => size_format($filesize, 2), "date" => gmdate("d/m/Y",filemtime($f.'/'.$file)));	
+			}
+		}
+		closedir($handle);
+		sort($files);
+		
+		$dir_jj = $file_ii = 0;
+		foreach($files as $file)
+		{
+			$file['address'] = $f.'/'.$file['name'];
+			if(is_dir($file['address']) && !in_array($file['name'], $no_folders))
+			{
+				$dir_jj++;
+				$file['icon']	=	'folder.gif';
+				$file['url']	= 	urlencode($f.'/'.$file['name']);
+				$file['url'] 	= 	str_replace('%2F', '/', $file['url']);
+				$file['url'] 	= 	str_replace($main_dir.'/', '', $file['url']);
+				$file['url']	=	str_replace('%browse%', $file['url'], $basedirurl);
+				$file['url'] 	= 	$cfg['enable_fancylinks'] ? str_replace(array('/?browse=', '?browse=', '&browse='), '/browse/', $file['url']) : $file['url'];
+				$file['class'] 	= 	$dir_jj % 2 == 0 ? 'even' : 'odd';
+				eval('$dirbit .= "' . wp_explorer_preptmp($cfg['tmp_dirbit']) . '";');
+			}
+			elseif(is_file($file['address']) && !in_array($file['name'], $no_files))
+			{
+				$file['ext'] = strtolower(substr(strrchr($file['name'], '.'), 1));
+				if(in_array($file['ext'], $no_ext)) continue;
+				
+				$file_ii++;
+				$filename			=	explode("_", $file['name']);
+				$version 			= 	str_replace('.'.$file['ext'], '', end($filename));
+				$version			=	is_numeric($version) ? $version : '';
+				$file['version']	=	empty($version) ? '&nbsp;' : $version;
+				$file['icon'] 		= 	substr(strrchr($file['name'], '.'), 1).'.gif';				
+				$file['icon'] 		=	file_exists('wp-content/plugins/wp-explorer/icons/'.$file['icon']) ? $file['icon'] : "unknown.png";
+				$file['name']		=	wp_explorer_sanitize($file['name'], $file['ext'], $version);
+				///$file['url']		= 	$file['address'];
+				$file['url']		=   "/non-classe/telecharger/?URL=".$file['address'];
+				$file['class'] 		= 	$file_ii % 2 == 0 ? 'even' : 'odd';
+				
+				// Edit MP3 / IRI ----------------------------------
+								
+				if ($file['ext'] == "mp3"){
+						$file['player']="<script type='text/javascript' src='".get_bloginfo('stylesheet_directory')."/player/swfobject.js'></script>
+							<div id='mediaspace".$file_ii."'>Wait for the player of ".$filename."</div>
+							<script type='text/javascript'>
+							  var so = new SWFObject('".get_bloginfo('stylesheet_directory')."/player/player.swf','ply','250','24','9','#EFEFEF');
+							  so.addParam('allowfullscreen','true');
+							  so.addParam('allowscriptaccess','always');
+							  so.addParam('wmode','transparent');
+							  so.addVariable('file','".get_bloginfo('url')."/".$file['address']."');
+							  so.write('mediaspace".$file_ii."');
+							</script>";
+				} else if ($file['ext'] == "iri"){ 
+						$file['url']= $file['url']."&EXT=IRI";
+				} else {
+						$file['player']="";//$file['ext'];
+				}
+				//--------------------------------------------
+				eval('$filebit .= "' . wp_explorer_preptmp($cfg['tmp_filebit']) . '";');
+			}			
+		}
+		$phrase['name'] = __('Name', 'wp-explorer');
+		$phrase['date'] = __('Last Modification Date', 'wp-explorer');
+	
+		if($dirbit)
+		{
+			eval('$display_dirs .= "' . wp_explorer_preptmp($cfg['tmp_dirtbl']) . '";');
+		}
+		if($filebit)
+		{
+			$phrase['size'] 	= __('Size', 'wp-explorer');
+			$phrase['version'] 	= __('Version', 'wp-explorer');
+			eval('$display_files .= "' . wp_explorer_preptmp($cfg['tmp_filetbl']) . '";');
+		}
+		$folder_stats = sprintf(__('There are %1$s folders and %2$s files here.', 'wp-explorer'), $dir_jj, $file_ii);
+		eval('$html .= "' . wp_explorer_preptmp($cfg['tmp_main']) . '";');
+	}
+	else
+	{
+		$error_message = __("ERROR: I have no right to access this folder or this folder doesn't exist.", 'wp-explorer');
+		eval('$html .= "' . wp_explorer_preptmp($cfg['tmp_error']) . '";');
+	}
+	return $html;
+}
+
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,33 @@
+/* @override 
+	http://wptouch.com/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css
+	http://www.wptouch.com/wp-content/plugins/wptouch/admin-css/bnc-compressed-global.css
+*/
+
+/* ColorPicker & FancyBox Compressed */
+
+/* @group Colorpicker */
+
+.colorpicker{width:356px;height:176px;overflow:hidden;position:absolute;background:url(../images/colorpicker/colorpicker_background.png);font-family:Arial,Helvetica,sans-serif;display:none;}.colorpicker_color{width:150px;height:150px;left:14px;top:13px;position:absolute;background:#f00;overflow:hidden;cursor:crosshair;}.colorpicker_color div{position:absolute;top:0;left:0;width:150px;height:150px;background:url(../images/colorpicker/colorpicker_overlay.png);}.colorpicker_color div div{position:absolute;top:0;left:0;width:11px;height:11px;overflow:hidden;background:url(../images/colorpicker/colorpicker_select.gif);margin:-5px 0 0 -5px;}.colorpicker_hue{position:absolute;top:13px;left:171px;width:35px;height:150px;cursor:n-resize;}.colorpicker_hue div{position:absolute;width:35px;height:9px;overflow:hidden;background:url(../images/colorpicker/colorpicker_indic.gif) left top;margin:-4px 0 0 0;left:0px;}.colorpicker_new_color{position:absolute;width:60px;height:30px;left:213px;top:13px;background:#f00;}.colorpicker_current_color{position:absolute;width:60px;height:30px;left:283px;top:13px;background:#f00;}.colorpicker input{background-color:transparent;border:1px solid transparent;position:absolute;font-size:10px;font-family:Arial,Helvetica,sans-serif;color:#898989;top:4px;right:11px;text-align:right;margin:0;padding:0;height:11px;}.colorpicker_hex{position:absolute;width:72px;height:22px;background:url(../images/colorpicker/colorpicker_hex.png) top;left:212px;top:142px;}.colorpicker_hex input{right:6px;}.colorpicker_field{height:22px;width:62px;background-position:top;position:absolute;}.colorpicker_field span{position:absolute;width:12px;height:22px;overflow:hidden;top:0;right:0;cursor:n-resize;}.colorpicker_rgb_r{background-image:url(../images/colorpicker/colorpicker_rgb_r.png);top:52px;left:212px;}.colorpicker_rgb_g{background-image:url(../images/colorpicker/colorpicker_rgb_g.png);top:82px;left:212px;}.colorpicker_rgb_b{background-image:url(../images/colorpicker/colorpicker_rgb_b.png);top:112px;left:212px;}.colorpicker_hsb_h{background-image:url(../images/colorpicker/colorpicker_hsb_h.png);top:52px;left:282px;}.colorpicker_hsb_s{background-image:url(../images/colorpicker/colorpicker_hsb_s.png);top:82px;left:282px;}.colorpicker_hsb_b{background-image:url(../images/colorpicker/colorpicker_hsb_b.png);top:112px;left:282px;}.colorpicker_submit{position:absolute;width:22px;height:22px;background:url(../images/colorpicker/colorpicker_submit.png) top;left:322px;top:142px;overflow:hidden;}.colorpicker_focus{background-position:center;}.colorpicker_hex.colorpicker_focus{background-position:bottom;}.colorpicker_submit.colorpicker_focus{background-position:bottom;}.colorpicker_slider{background-position:bottom;}
+
+/* @end */
+
+/* @group Fancybox */
+
+div#fancy_overlay{position:fixed;top:0;left:0;width:100%;height:100%;display:none;z-index:30;}div#fancy_loading{position:absolute;height:40px;width:40px;cursor:pointer;display:none;overflow:hidden;background:transparent;z-index:100;}div#fancy_loading div{position:absolute;top:0;left:0;width:40px;height:480px;background:transparent url('../images/fancybox/fancy_progress.png') no-repeat;}div#fancy_outer{position:absolute;top:0;left:0;z-index:90;padding:20px 20px 25px;margin:0;background:transparent;display:none;}div#fancy_inner{position:relative;width:100%;height:100%;background:#FFF;}div#fancy_content{z-index:100;position:absolute;margin-top:0;margin-right:0;margin-bottom:0;}div#fancy_div{background:#eee;color:#444;height: 100%;width: 100%;z-index:100;text-shadow:#fff 0 1px 0;position:relative;
+	margin: 0;
+	border: 1px solid #c0ccce;
+}
+div#fancy_div p {padding: 5px;}
+div#fancy_div h2 {
+	background-color: #cee6ef;
+	padding-bottom: 10px;
+	padding-top: 10px;
+	padding-left: 10px;
+	margin: 0;
+	border-bottom: 1px solid #c5d2d8;
+	letter-spacing: -1px;
+}img#fancy_img{position:absolute;top:0;left:0;border:0;padding:0;margin:0;z-index:100;width:100%;height:100%;}div#fancy_close{position:absolute;top: -15px;height:30px;width:30px;background:url('../images/fancybox/fancy_closebox.png') top left no-repeat;cursor:pointer;z-index:181;display:none;left: -15px;}#fancy_frame{position:relative;width:100%;height:100%;display:none;}#fancy_ajax{width:100%;height:100%;overflow:auto;}a#fancy_left,a#fancy_right{position:absolute;bottom:0px;height:100%;width:35%;cursor:pointer;z-index:111;display:none;background-image:url("data:image/gif;base64,AAAA");outline:none;overflow:hidden;}a#fancy_left{left:0px;}a#fancy_right{right:0px;}span.fancy_ico{position:absolute;top:50%;margin-top:-15px;width:30px;height:30px;z-index:112;cursor:pointer;display:block;}span#fancy_left_ico{left:-9999px;background:transparent url('../images/fancybox/fancy_left.png') no-repeat;}span#fancy_right_ico{right:-9999px;background:transparent url('../images/fancybox/fancy_right.png') no-repeat;}a#fancy_left:hover,a#fancy_right:hover{visibility:visible;background-color:transparent;}a#fancy_left:hover span{left:20px;}a#fancy_right:hover span{right:20px;}#fancy_bigIframe{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;}div#fancy_bg{position:absolute;top:0;left:0;width:100%;height:100%;z-index:70;border:0;padding:0;margin-top:0;margin-right:0;margin-bottom:0;}div.fancy_bg{position:absolute;display:block;z-index:70;border:0;padding:0;margin:0;}div#fancy_bg_n{top:-20px;width:100%;height:20px;background:transparent url('../images/fancybox/fancy_shadow_n.png') repeat-x;}div#fancy_bg_ne{top:-20px;right:-20px;width:20px;height:20px;background:transparent url('../images/fancybox/fancy_shadow_ne.png') no-repeat;}div#fancy_bg_e{right:-20px;height:100%;width:20px;background:transparent url('../images/fancybox/fancy_shadow_e.png') repeat-y;}div#fancy_bg_se{bottom:-20px;right:-20px;width:20px;height:20px;background:transparent url('../images/fancybox/fancy_shadow_se.png') no-repeat;}div#fancy_bg_s{bottom:-20px;width:100%;height:20px;background:transparent url('../images/fancybox/fancy_shadow_s.png') repeat-x;}div#fancy_bg_sw{bottom:-20px;left:-20px;width:20px;height:20px;background:transparent url('../images/fancybox/fancy_shadow_sw.png') no-repeat left bottom;}div#fancy_bg_w{left:-20px;height:100%;width:20px;background:transparent url('../images/fancybox/fancy_shadow_w.png') repeat-y;}div#fancy_bg_nw{top:-20px;left:-20px;width:20px;height:20px;background:transparent url('../images/fancybox/fancy_shadow_nw.png') no-repeat;}
+
+
+
+/* @end */
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/admin-css/bnc-global.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,222 @@
+/* @override 
+	http://wptouch.com/wp-content/plugins/wptouch/admin-css/bnc-global.css
+	http://www.wptouch.com/wp-content/plugins/wptouch/admin-css/bnc-global.css
+*/
+
+/* Global styles applied to BraveNewCode plugins */
+
+/* @group Global Plugin Styles */
+
+#bnc-global {
+	color: #444;
+	margin-bottom: 35px;
+	width: 98%;
+}
+
+#bnc-global .postbox {
+	padding: 10px;
+	position: relative;
+	overflow: hidden;
+	-webkit-box-shadow: #ccc 0px 1px 6px;
+}
+
+#bnc-global .postbox h3 {
+	margin: -10px -10px 0;
+	cursor: default;
+}
+
+#bnc-global a {
+	text-decoration: none;
+	font-size: 11px;
+}
+
+#bnc-global a.orange-link {
+	color: #d54e21;
+}
+
+#bnc-global a.orange-link:hover {
+	color: #3c627f;
+}
+
+#bnc-global a.fancylink {
+	color: red;
+	font-weight: bold;
+	text-decoration: underline;
+}
+
+#bnc-global, #bnc-global .postbox, #bnc-global .postbox ul, #bnc-global .postbox p, #bnc-global p {
+	margin-top: 10px;
+	font-size: 11px;
+}
+
+#bnc-global .left-content {
+	width: 28%;
+	float: left;
+	padding-right: 10px;
+	margin-top: 10px;
+	position: relative;
+}
+
+#bnc-global .left-content h4 {
+	margin: 2px 0 0;
+	padding: 0 0 4px;
+	letter-spacing: 0;
+	color: #d54e21;
+	font-size: 11px;
+	line-height: 13px;
+}
+
+#bnc-global .left-content p {
+	margin-top: 0;
+}
+
+#bnc-global .left-content ul {
+	-webkit-border-radius: 5px;
+	-moz-border-radius: 5px;
+}
+
+#bnc-global .left-content li {
+	color: #536e90;
+	margin: 0 5px;
+	padding: 1px 0;
+	list-style-type: circle;
+	list-style-position: inside;
+}
+
+#bnc-global .right-content li {
+	list-style-type: none;
+}
+
+#bnc-global .right-content {
+	width: 63%;
+	float: left;
+	margin-left: 3%;
+	border-left: 1px solid #e6e6e6;
+	padding-bottom: 45px;
+	padding-left: 10px;
+	margin-bottom: -30px;
+}
+
+#bnc-global .bnc-clearer {
+	clear: both;
+}
+
+#bnc-global select {
+	vertical-align: baseline;
+	width: 176px;
+	margin-right: 5px;
+	border: 1px solid #6caccd;
+}
+
+#bnc-global input.checkbox {
+	margin-right: 5px;
+	vertical-align: middle;
+	width: auto;
+	border-style: none;
+}
+
+#bnc-global input {
+	border: 2px solid #a4c6d3;
+	-webkit-border-radius: 5px;
+	-moz-border-radius: 5px;
+	margin-right: 7px;
+	width: 177px;
+	color: #555;
+	font-size: 11px;
+	background-color: #ebf1ff;
+	margin-left: 5px;
+}
+
+#bnc-global ul.wptouch-make-li-italic li {
+	font-style: italic;
+}
+
+/* @end */
+
+/* @group Global H3 Icons */
+
+#bnc-global h3 span {
+	background: no-repeat 0 0;
+	height: 16px;
+	margin-right: 5px;
+	width: 16px;
+	display: block;
+	float: left;
+	bottom: 2px;
+	position: relative;
+}
+
+#bnc-global h3 span.global-settings {
+	background: url(../images/h3_icons/general.png);
+}
+
+#bnc-global h3 span.advanced-options {
+	background: url(../images/h3_icons/advanced.png);
+}
+
+#bnc-global h3 span.push-options {
+	background: url(../images/h3_icons/push.png);
+}
+
+#bnc-global h3 span.style-options {
+	background: url(../images/h3_icons/style.png);
+}
+
+#bnc-global h3 span.icon-options {
+	background: url(../images/h3_icons/iconpool.png);
+}
+
+#bnc-global h3 span.page-options {
+	background: url(../images/h3_icons/page.png);
+}
+
+#bnc-global h3 span.adsense-options {
+	background: url(../images/h3_icons/adsense.png);
+}
+
+#bnc-global h3 span.plugin-options {
+	background: url(../images/h3_icons/plugin.png);
+}
+
+#bnc-global h3 span.rss-head {
+	background: url(../images/h3_icons/rss.png) 0 1px;
+}
+
+/* @end */
+
+/* @group Save/Restore Button Area */
+
+#bnc-global .bnc-plugin-version {
+	float: right;
+	font: 18px Georgia, "Times New Roman", Times, serif;
+	color: #70777a;
+	text-shadow: #fff -1px -1px 0;
+	letter-spacing: -1px;
+	margin-top: 2px;
+	position: relative;
+	left: 10px;
+	margin-bottom: 25px;
+}
+
+#bnc-global input#bnc-button {
+	color: #fff;
+}
+
+#bnc-global input#bnc-button, #bnc-global input#bnc-button-reset {
+	border: 2px solid #b2cfe4;
+	float: left;
+	width: 12%;
+	padding: 4px;
+}
+
+#bnc-global input#bnc-button-reset:hover {
+	border-color: red;
+	color: red;
+}
+
+#bnc-global input#bnc-button:hover {
+	border: 2px solid #305769;
+	color: #cdebfd;
+}
+
+/* @end */
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/admin-css/wptouch-admin.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,475 @@
+/* @override 
+	http://wptouch.com/wp-content/plugins/wptouch/admin-css/wptouch-admin.css
+	http://www.wptouch.com/wp-content/plugins/wptouch/admin-css/wptouch-admin.css
+*/
+
+/* WPtouch 1.9 Admin CSS */
+
+/* @group head-area.php */
+
+#wptouch-head .postbox {
+	background: #fff url(../images/wptouch-icon.jpg) no-repeat 101% 100%;
+	overflow: hidden;
+	position: relative;
+}
+
+#wptouch-head #wptouch-head-colour {
+	background-color: #b7c9d6;
+	padding: 10px;
+	margin: -10px -10px -20px;
+	-webkit-border-top-right-radius: 5px;
+	-webkit-border-top-left-radius: 5px;
+	-moz-border-radius-topright: 5px;
+	-moz-border-radius-topleft: 5px;
+	border: 1px solid #e5f0f2;
+	border-bottom: 1px solid #a2bdbf;
+}
+
+#wptouch-head-title {
+	font: bold 22px Georgia, "Times New Roman", Times, serif;
+	color: #333c42;
+	text-shadow: #deeefa 0 1px 0;
+	letter-spacing: -1px;
+	margin: 0;
+	padding: 0;
+	float: left;
+}
+
+#wptouch-head .postbox img.ajax-load {
+	margin-left: 5px;
+	margin-bottom: -2px;
+}
+
+#wptouch-head-links {
+	float: right;
+	position: relative;
+	bottom: 6px;
+}
+
+#wptouch-head-links a {
+	color: #333c42;
+	font-weight: bold;
+	text-shadow: #cddce8 0 1px 0;
+}
+
+#wptouch-head-links a:hover {
+	color: #d54e21;
+	text-shadow: #cedeea 0 1px 0;
+}
+
+#wptouch-head-links li {
+	display: inline;
+	color: #618299;
+	text-shadow: #bfdfe8 1px 1px 0;
+}
+
+#wptouch-news-support {
+	-webkit-border-radius: 5px;
+	-moz-border-radius: 5px;
+	margin-top: 30px;
+	width: 100%;
+	height: 170px;
+	text-transform: capitalize;
+}
+
+#wptouch-head h3 {
+	color: #444;
+	-webkit-border-radius: 0px;
+	-moz-border-radius: 0px;
+}
+
+/* @group Latest News */
+
+#wptouch-news-wrap {
+	float: left;
+	width: 45%;
+	margin: 0;
+	padding: 0;
+}
+
+#wptouch-news-wrap h3 {
+	padding-left: 10px;
+	display: block;
+	width: 100%;
+}
+
+#wptouch-support-wrap {
+	color: #777;
+	float: left;
+	width: 55%;
+	padding: 0;
+	margin: 0;
+	
+}
+
+#wptouch-support-wrap ul {
+}
+
+#wptouch-support-wrap ul li {
+	width: 70%;
+	text-overflow: ellipsis;
+	white-space: nowrap;
+	overflow: hidden;
+}
+
+#wptouch-support-wrap ul li a{
+	text-overflow: ellipsis;
+}
+
+#wptouch-support-wrap h3 {
+	display: block;
+	width: 100%;
+	position: relative;
+	padding-right: 12px;
+}
+
+#wptouch-news-support li {
+	border-bottom: 1px solid #e6e6e6;
+	margin: 0;
+	padding: 3px 0;
+	list-style-type: circle;
+	list-style-position: inside;
+	color: #c1cfd1;
+	width: 80%;
+}
+
+#wptouch-news-support li:last-child {
+	border-bottom-style: none;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group general-settings.php */
+
+input.no-right-margin {
+	position: relative;
+	right: 5px;
+}
+
+#bnc-global strong.no-pages {
+	color: red;
+	padding: 6px 15px 7px 25px;
+	display: inline-block;
+	margin-bottom: 15px;
+	border: 1px dashed #cf931d;
+	-moz-border-radius: 3px;
+	-webkit-border-radius: 3px;
+	background: #fee8b9 url(../images/sortof.png) no-repeat 5px center;
+	margin-top: 5px;
+}
+
+/* @end */
+
+/* @group advanced-area.php */
+
+em.supported {
+	color: #8a9ba8;
+	display: block;
+	line-height: 16px;
+	margin-top: 3px;
+}
+
+/* @end */
+
+/* @group push-area.php */
+
+#push-area li input {
+	position: relative;
+	right: 5px;
+	width: 275px;
+}
+
+#push-area li input.checkbox {
+	position: relative;
+	left: 0;
+}
+
+#push-area li select {
+	width: auto;
+}
+
+/* @end */
+
+/* @group style-area.php */
+
+#bnc-global ul.wptouch-select-options li {
+	margin-left: 6px;
+}
+
+/* @group Skins-Menu */
+
+#bnc-global .skins-desc input {
+	width: 54px;
+}
+
+#bnc-global .skins-desc select {
+	width: 120px;
+	margin-left: 12px;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group icons-area.php */
+
+#bnc-global ul.wptouch-iconblock {
+	width: auto;
+	height: auto;
+}
+
+#bnc-global ul.wptouch-iconblock li {
+	width: 80px;
+	color: #666;
+	font-size: 9px;
+	text-align: center;
+	margin: 3px;
+	height: 55px;
+	padding-top: 10px;
+	position: relative;
+	float: left;
+}
+
+#bnc-global .default ul.wptouch-iconblock li {
+	background-color: #fefae7;
+	border: 1px dashed #dcdcdc;
+	-webkit-border-radius: 5px;
+	-moz-border-radius: 5px;
+}
+
+#bnc-global .custom ul.wptouch-iconblock li {
+	background-color: #e6f4fe;
+	border: 1px dashed #becbcf;
+	-webkit-border-radius: 5px;
+	-moz-border-radius: 5px;
+}
+
+#bnc-global .custom ul.wptouch-iconblock li:hover {
+	border-style: solid;
+	border-color: #c58989;
+	background-color: #fba7a7;
+	color: #000;
+}
+
+#bnc-global .custom ul.wptouch-iconblock li a {
+	color: red;
+}
+
+#bnc-global ul.wptouch-iconblock img {
+	width: 32px;
+	height: 32px;
+}
+
+#bnc-global #upload_button {
+	background: url(../images/upload.png) 0 0;
+	width: 174px;
+	height: 45px;
+	cursor: pointer !important;
+	display: block;
+	margin-bottom: 10px;
+}
+
+#bnc-global #upload_progress {
+	position: relative;
+	display: block;
+	font-weight: bold;
+	color: #1a4977;
+	margin-top: 10px;
+}
+
+#bnc-global #upload_progress img {
+	position: relative;
+	top: 4px;
+}
+
+#bnc-global #extras_button {
+	display: block;
+	border-top: 1px solid #eee;
+	padding-top: 10px;
+}
+
+/* @end */
+
+/* @group page-area.php */
+
+#bnc-global .wptouch-pages span {
+	display: block;
+	margin-top: 5px;
+	text-align: left;
+	width: 68%;
+	float: right;
+}
+
+#bnc-global .wptouch-pages strong {
+	color: red;
+	padding: 6px 15px 7px 25px;
+	display: inline-block;
+	margin-bottom: 15px;
+	border: 1px dashed #cf931d;
+	-moz-border-radius: 3px;
+	-webkit-border-radius: 3px;
+	background: #fee8b9 url(../images/sortof.png) no-repeat 5px center;
+	margin-top: 5px;
+}
+
+#bnc-global .wptouch-pages select {
+	width: 30%;
+}
+
+#bnc-global .wptouch-pages .checkbox {
+	margin-left: -1px;
+}
+
+/* @end */
+
+/* @group ads-stats-area.php */
+
+textarea#wptouch-stats {
+	-webkit-border-radius: 5px;
+	-moz-border-radius: 5px;
+	width: 95%;
+	margin-left: 5px;
+	margin-top: 45px;
+	height: 100px;
+	margin-bottom: 15px;
+	color: #444;
+	font-size: 11px;
+	border-width: 2px;
+	border-color: #a4c6d3;
+	background-color: #ebf1ff;
+}
+
+/* @end */
+
+/* @group plugin-compat-area.php */
+
+#bnc-global .all-good {
+	border: 1px solid #8aceff;
+	padding: 3px 15px 4px 27px;
+	display: block;
+	margin-bottom: 5px;
+	font-size: 11px;
+	line-height: 15px;
+	-moz-border-radius: 3px;
+	-webkit-border-radius: 3px;
+	background: #e2f5fe url(../images/good.png) no-repeat 5px center;
+}
+
+#bnc-global .sort-of {
+	border: 1px solid #f8c44f;
+	background: #fee8b9 url(../images/sortof.png) no-repeat 5px center;
+	padding: 3px 15px 4px 27px;
+	display: block;
+	margin-bottom: 5px;
+	font-size: 11px;
+	line-height: 15px;
+	-moz-border-radius: 3px;
+	-webkit-border-radius: 3px;
+}
+
+#bnc-global .too-bad {
+	border: 1px solid #f96764;
+	padding: 3px 15px 4px 27px;
+	display: block;
+	margin-bottom: 5px;
+	font-size: 11px;
+	line-height: 15px;
+	-moz-border-radius: 3px;
+	-webkit-border-radius: 3px;
+	background: #fcb2b5 url(../images/bad.png) no-repeat 5px center;
+}
+
+#bnc-global img.support {
+	position: relative !important;
+	top: 4px;
+	margin-right: 1px;
+}
+
+#bnc-global .left-content p.wpv {
+	margin: 2px 0 5px;
+	padding: 0;
+	font-weight: bold;
+}
+
+#bnc-global .left-content p.wptv {
+	padding: 0 0 10px;
+	border-bottom: 1px solid #dcdcdc;
+	font-style: italic;
+}
+
+#bnc-global .left-content span.go, #bnc-global .right-content p.valid {
+	font-weight: bold;
+	color: green;
+}
+
+#bnc-global .left-content span.caution {
+	color: #f8b615;
+	font-weight: bold;
+}
+
+#bnc-global .left-content span.red, .right-content p.invalid {
+	color: red;
+	font-weight: bold;
+}
+
+/* @end */
+
+/* @group Settings/Reset Updated */
+
+#bnc-global #wptouchupdated {
+	position: fixed;
+	top: 0;
+	left: 0;
+	z-index: 1000;
+	overflow: hidden;
+	margin-left: auto;
+	margin-right: auto;
+	opacity: 0.9;
+	height: auto;
+	width: 100%;
+}
+
+#bnc-global #wptouchupdated p.saved {
+	color: #daeffe;
+	-webkit-border-radius: 22px;
+	-moz-border-radius: 22px;
+	text-align: center;
+	text-shadow: #000 -1px -1px 1px;
+	letter-spacing: -1px;
+	font: bold 22px "Myriad Pro", "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
+	height: 155px;
+	background: #222 url(../images/saved.png) no-repeat center 10px;
+	width: 170px;
+	margin-top: 15%;
+	margin-left: auto;
+	margin-right: auto;
+	padding: 12px;
+	-webkit-box-shadow: #000 0px 0px 32px;
+}
+
+#bnc-global #wptouchupdated p.reset {
+	color: #dcdcdc;
+	-webkit-border-radius: 22px;
+	-moz-border-radius: 22px;
+	text-align: center;
+	text-shadow: #000 -1px -1px 1px;
+	letter-spacing: -1px;
+	font: bold 22px "Myriad Pro", "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
+	height: 155px;
+	background: #222 url(../images/reset.png) no-repeat center 10px;
+	width: 170px;
+	margin-top: 15%;
+	margin-left: auto;
+	margin-right: auto;
+	padding: 12px;
+	-webkit-box-shadow: #000 0px 0px 32px;
+}
+
+#bnc-global #wptouchupdated p span {
+	display: block;
+	margin-top: 110px;
+}
+
+/* @end */
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/ajax/file_upload.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,36 @@
+<?php
+	$max_size = 128*2048; // 256k	
+	$directory_list = array();
+	
+	if ( current_user_can( 'upload_files' ) ) {
+		$upload_dir = compat_get_upload_dir() . '/wptouch/custom-icons';
+		$dir_paths = explode( '/', $upload_dir );
+		$dir = '';
+		foreach ( $dir_paths as $path ) {
+			$dir = $dir . "/" . $path;
+			if ( !file_exists( $dir ) ) {
+				@mkdir( $dir, 0755 ); 
+			}			
+		}
+		
+		if ( isset( $_FILES['submitted_file'] ) ) {
+			$f = $_FILES['submitted_file'];
+			if ( $f['size'] <= $max_size) {
+				if ( $f['type'] == 'image/png' || $f['type'] == 'image/jpeg' || $f['type'] == 'image/gif' || $f['type'] == 'image/x-png' || $f['type'] == 'image/pjpeg' ) {	
+					@move_uploaded_file( $f['tmp_name'], $upload_dir . "/" . $f['name'] );
+					
+					if ( !file_exists( $upload_dir . "/" . $f['name'] ) ) {
+						echo __('<p style="color:red">There seems to have been an error.<p>Please try your upload again.</p>');
+					} else {
+						echo  __( '<p style="color:green">File has been saved!</p>');					
+						echo '<p><strong>';			
+						echo sprintf(__( "%sClick here to refresh the page%s and see your icon.", "wptouch" ), '<a style="text-decoration:underline" href="#" onclick="location.reload(true); return false;">','</a>');
+						echo '</p></strong>';					
+					}					
+				} else {
+					echo __( '<p style="color:orange">Sorry, only PNG, GIF and JPG images are supported.</p>', 'wptouch' );
+				}
+			} else echo __( '<p style="color:orange">Image too large. try something like 59x60.</p>', 'wptouch' );
+		}
+	} else echo __( '<p style="color:orange">Insufficient priviledges.</p><p>You need to either be an admin or have more control over your server.</p>', 'wptouch' );
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/ajax/load-plugins.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,12 @@
+<?php	
+	require_once( WP_CONTENT_DIR . '/../wp-includes/class-snoopy.php');
+	
+	$snoopy = new Snoopy();
+	$snoopy->offsiteok = true; /* allow a redirect to different domain */
+	$result = $snoopy->fetch( 'http://www.bravenewcode.com/custom/wptouch-plugin-compat-list.php' );
+if($result) {
+	echo $snoopy->results;
+} else {
+	echo '<p>We were not able to load the Wire panel on your server.</p>';
+}
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/ads-stats-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,35 @@
+<?php global $wptouch_settings; ?>
+
+<div class="metabox-holder">
+	<div class="postbox">
+		<h3><span class="adsense-options">&nbsp;</span><?php _e( "Adsense, Stats &amp; Custom Code", "wptouch" ); ?></h3>
+
+			<div class="left-content">
+				<h4><?php _e( "Adsense", "wptouch" ); ?></h4>
+					<p><?php _e( "Enter your Google AdSense ID if you'd like to support mobile advertising in WPtouch posts.", "wptouch" ); ?></p>
+					<p><?php _e( "Make sure to include the 'pub-' part of your ID string.", "wptouch" ); ?></p>
+				<br />
+			    <h4><?php _e( "Stats &amp; Custom Code", "wptouch" ); ?></h4>
+			 		<p><?php _e( "If you'd like to capture traffic statistics ", "wptouch" ); ?><br /><?php _e( "(Google Analytics, MINT, etc.)", "wptouch" ); ?></p>
+			 		<p><?php _e( "Enter the code snippet(s) for your statistics tracking here.", "wptouch" ); ?></p>
+			 		<p><?php _e( "You can also enter custom CSS &amp; other code here.", "wptouch" ); ?> <a href="#css-info" class="fancylink">?</a></p>
+			 		<div id="css-info" style="display:none">
+					<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+					<p><?php _e( "You can enter a custom css file link easily. Simply add the full link to the css file like this:", "wptouch" ); ?></p>
+					<p><?php _e( "<code>&lt;link rel=&quot;stylesheet&quot; src=&quot;http://path-to-my-css-file&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;</code>", "wptouch" ); ?></p>
+				</div>
+
+			</div><!-- left content -->
+
+			<div class="right-content">
+				<ul class="wptouch-make-li-italic">
+					<li><input name="adsense-id" type="text" value="<?php echo $wptouch_settings['adsense-id']; ?>" /><?php _e( "Google AdSense ID", "wptouch" ); ?></li>
+					<li><input name="adsense-channel" type="text" value="<?php echo $wptouch_settings['adsense-channel']; ?>" /><?php _e( "Google AdSense Channel", "wptouch" ); ?></li>
+				</ul>
+			
+				<textarea id="wptouch-stats" name="statistics"><?php echo stripslashes($wptouch_settings['statistics']); ?></textarea>
+
+						</div><!-- right content -->
+		<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/advanced-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,136 @@
+<?php global $wptouch_settings; ?>
+
+<div class="metabox-holder">
+	<div class="postbox">
+		<h3><span class="advanced-options">&nbsp;</span><?php _e( "Advanced Options", "wptouch" ); ?></h3>
+
+			<div class="left-content">
+				<p><?php _e( "Choose to enable/disable advanced features &amp; options available for WPtouch.", "wptouch"); ?></p>	
+				<p><?php _e( "* WPtouch exclusive mode attempt to fixes issues where other plugins load scripts which erroneously interfere with WPtouch functions and javascript.", "wptouch" ); ?></p>
+			 	<br />
+			 		<h4><?php _e( "Custom User-Agents", "wptouch" ); ?></h4>
+			 		<p><?php _e( "Enter a comma-separated list of user-agents to enable WPtouch for a device that isn't currently officially supported.", "wptouch" ); ?></p>
+			 		<p><?php echo sprintf( __( "The currently enabled user-agents are: <em class='supported'>%s</em>", "wptouch" ), implode( ", ", bnc_wptouch_get_user_agents() ) ); ?></p>
+
+			</div><!-- left-content -->
+	
+	<div class="right-content">
+		<ul>
+			<li>
+				<input class="checkbox" type="checkbox" name="enable-cats-button" <?php if ( isset( $wptouch_settings['enable-cats-button']) && $wptouch_settings['enable-cats-button'] == 1) echo('checked'); ?> />
+				<label class="label" for="enable-cats-button"><?php _e( "Enable Categories tab in the header", "wptouch" ); ?> <a href="#cats-info" class="fancylink">?</a></label>
+				<div id="cats-info" style="display:none">
+					<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+					<p><?php _e( "This will add a 'Categories' tab item in the WPtouch drop-down.", "wptouch" ); ?></p>
+					<p><?php _e( "It will display a list of your popular categories.", "wptouch" ); ?></p>
+				</div>
+			</li>
+			
+			<li>
+				<input class="checkbox" type="checkbox" name="enable-tags-button" <?php if ( isset( $wptouch_settings['enable-tags-button']) && $wptouch_settings['enable-tags-button'] == 1) echo('checked'); ?> />
+				<label class="label" for="enable-tags-button"><?php _e( "Enable Tags tab in the header", "wptouch" ); ?> <a href="#tags-info" class="fancylink">?</a></label>
+				<div id="tags-info" style="display:none">
+					<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+					<p><?php _e( "This will add a 'Tags' tab item in the WPtouch drop-down.", "wptouch" ); ?></p>
+					<p><?php _e( "It will display a list of your popular tags.", "wptouch" ); ?></p>
+				</div>
+			</li>
+			
+			<li>
+				<input class="checkbox" type="checkbox" name="enable-search-button" <?php if (isset($wptouch_settings['enable-search-button']) && $wptouch_settings['enable-search-button'] == 1) echo('checked'); ?> />
+				<label class="label" for="enable-search-button"><?php _e( "Enable Search link in the header", "wptouch" ); ?> <a href="#search-info" class="fancylink">?</a></label>
+				<div id="search-info" style="display:none">
+					<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+					<p><?php _e( "This will add a 'Search' item in the WPtouch sub header.", "wptouch" ); ?></p>
+					<p><?php _e( "It will display an overlay on the title area allowing users to search your website.", "wptouch" ); ?></p>
+				</div>
+			</li>
+			
+			<li>
+				<input class="checkbox" type="checkbox" name="enable-login-button" <?php if (isset($wptouch_settings['enable-login-button']) && $wptouch_settings['enable-login-button'] == 1) echo('checked'); ?> />
+				<label class="label" for="enable-login-button"><?php _e( "Enable Login/My Account tab in the header", "wptouch" ); ?> <a href="#login-info" class="fancylink">?</a></label>
+				<div id="login-info" style="display:none">
+					<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+					<p><?php _e( "This will add a 'Login' tab in the WPtouch sub header beside the Tags and Categories tabs if they are also enabled.", "wptouch" ); ?></p>
+					<p><?php _e( "It will display a username/password drop-down, allowing users to login plus be automatically re-directed back to the page they logged in from without seeing the WP admin.", "wptouch" ); ?></p>
+					<p><?php _e( "Once logged in, a new 'My Account' button will appear. The 'My Account' button shows useful links depending on the type of account (subscriber, admin, etc.).", "wptouch" ); ?></p>
+				</div>
+			</li>
+
+			<li>
+				<input class="checkbox" type="checkbox" <?php if (!function_exists( 'gigpress_shows' )) : ?>disabled="true"<?php endif; ?> name="enable-gigpress-button" <?php if (isset($wptouch_settings['enable-gigpress-button']) && $wptouch_settings['enable-gigpress-button'] == 1 && function_exists( 'gigpress_shows' )) echo('checked'); ?> />
+				<label class="label" for="enable-show-tweets"> <?php _e( "Display Upcoming Dates link in the header (requires <a href='http://gigpress.com/' target='_blank'>GigPress 2.0.3</a> or higher)", "wptouch" ); ?> <a href="#gigpress-tweet-info" class="fancylink">?</a></label>
+					<div id="gigpress-tweet-info" style="display:none">
+						<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+						<p><?php _e( "When this option is checked and the GigPress plugin is installed, a list of your Upcoming Shows will be viewable from a drop-down in the WPtouch header.", "wptouch" ); ?></p>
+					</div>
+			</li>	
+			<li>
+				<input class="checkbox" type="checkbox" <?php if (!function_exists( 'wordtwit_get_recent_tweets' )) : ?>disabled="true"<?php endif; ?> name="enable-show-tweets" <?php if (isset($wptouch_settings['enable-show-tweets']) && $wptouch_settings['enable-show-tweets'] == 1 && function_exists( 'wordtwit_get_recent_tweets' )) echo('checked'); ?> />
+				<label class="label" for="enable-show-tweets"> <?php _e( "Display Twitter link in the header (requires <a href='http://www.bravenewcode.com/wordtwit/' target='_blank'>WordTwit 2.2.1</a> or higher)", "wptouch" ); ?> <a href="#ajax-tweet-info" class="fancylink">?</a></label>
+					<div id="ajax-tweet-info" style="display:none">
+						<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+						<p><?php _e( "When this option is checked and the WordTwit plugin is installed, a list of your Tweets will be viewable from a drop-down in the WPtouch header.", "wptouch" ); ?></p>
+					</div><br /><br />
+			</li>	
+			
+			
+			<li>
+				<input class="checkbox" type="checkbox" name="enable-ajax-comments" <?php if (isset($wptouch_settings['enable-ajax-comments']) && $wptouch_settings['enable-ajax-comments'] == 1) echo('checked'); ?> />
+				<label class="label" for="enable-ajax-comments"> <?php _e( "Enable ajax for comments", "wptouch" ); ?> <a href="#ajax-com-info" class="fancylink">?</a></label>
+					<div id="ajax-com-info" style="display:none">
+						<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+						<p><?php _e( "When this option is checked, comments are submitted and returned in real time using Ajax.", "wptouch" ); ?></p>
+						<p><?php _e( "However, some server environments and other WordPress plugins prevent WPtouch's Ajax comments from working.", "wptouch" ); ?></p>
+						<p><?php _e( "Uncheck this option if you're having problems or would prefer to use the standard WordPress comment submission format.", "wptouch" ); ?></p>
+					</div>
+			</li>
+		
+
+			<li>
+				<input class="checkbox" type="checkbox" name="enable-gravatars" <?php if (isset($wptouch_settings['enable-gravatars']) && $wptouch_settings['enable-gravatars'] == 1) echo('checked'); ?> />
+				<label class="label" for="enable-gravatars"> <?php _e( "Enable gravatars in comments", "wptouch" ); ?></label>
+			</li>
+			
+			<?php //If we actually have pages, show this option 
+			if ( count( $pages ) ) { ?>
+			<li>
+			<input class="checkbox" type="checkbox" name="enable-page-coms" <?php if (isset($wptouch_settings['enable-page-coms']) && $wptouch_settings['enable-page-coms'] == 1) echo('checked'); ?> />
+			<label class="label" for="enable-page-coms"> <?php _e( "Enable comments on pages", "wptouch" ); ?> <a href="#page-coms-info" class="fancylink">?</a></label>
+				<div id="page-coms-info" style="display:none">
+					<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+					<p><?php _e( "This will add the comment form to all pages with 'Allow Comments' checked in your WordPress admin.", "wptouch" ); ?></p>
+				</div>
+			</li>
+			<?php } ?>
+
+			<li><br />
+				<input class="checkbox" type="checkbox" name="enable-regular-default" <?php if (isset($wptouch_settings['enable-regular-default']) && $wptouch_settings['enable-regular-default'] == 1) echo('checked'); ?> />
+				<label class="label" for="enable-regular-default"><?php echo sprintf(__( "1%sst%s visit mobile users will see desktop theme", "wptouch" ), '<sup>','</sup>'); ?> <a href="#reg-info" class="fancylink">?</a></label>
+				<div id="reg-info" style="display:none">
+					<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+					<p><?php _e( "When this option is checked, users will see your regular site theme first, and have the option in your footer to switch to the WPtouch mobile view.", "wptouch" ); ?></p>
+					<p><?php _e( "They'll be able to change back and forth either way. Make sure you have the wp_footer(); function call in your regular theme's footer.php file for the switch link to work properly.", "wptouch" ); ?></p>
+				</div>
+			</li>	
+
+			<li>
+				<input class="checkbox" type="checkbox" name="enable-exclusive" <?php if (isset($wptouch_settings['enable-exclusive']) && $wptouch_settings['enable-exclusive'] == 1) echo('checked'); ?> />
+				<label class="label" for="enable-exclusive"> <?php _e( "Enable WPtouch exclusive mode", "wptouch" ); ?> <a href="#exclusive-info" class="fancylink">?</a></label>
+					<div id="exclusive-info" style="display:none">
+						<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+						<p><?php _e( "Attempts to disallow other plugins from loading into WPtouch.", "wptouch" ); ?></p> 
+						<p><?php _e( "Sometimes fixes difficult to fix incompatibilities and speeds up WPtouch.", "wptouch" ); ?></p>
+						<p><?php _e( "Some plugins load conflicting javascript, extra CSS style sheets, and other functional code into your theme to accomplish what they add to your site. As WPtouch works complete on its own without any other plugin installed, in some cases (where you have several plugins or find something doesn't work right with WPtouch) you may want to enable Exclusive Mode to ensure that WPtouch works properly, and loads quickly for mobile users.", "wptouch" ); ?></p>
+					</div>
+
+	<ul class="wptouch-make-li-italic">
+					<li><input type="text" name="custom-user-agents" value="<?php if ( isset( $wptouch_settings['custom-user-agents'] ) ) echo implode( ', ', $wptouch_settings['custom-user-agents'] ); ?>" /><?php _e( "Custom user-agents", "wptouch" ); ?></li>
+				</ul>
+							</li>
+
+			</ul>
+		</div><!-- right content -->
+	<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/general-settings-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,103 @@
+<?php global $wptouch_settings; ?>
+
+<div class="metabox-holder">
+	<div class="postbox">
+		<h3><span class="global-settings">&nbsp;</span><?php _e( "General Settings", "wptouch" ); ?></h3>
+
+			<div class="left-content">
+				<h4><?php _e( "Home Page Re-Direction", "wptouch" ); ?></h4>
+				<p><?php echo sprintf( __( "WPtouch by default follows your %sWordPress &raquo; Reading Options%s. You can also set a different one for WPtouch.", "wptouch"), '<a href="options-reading.php">', '</a>' ); ?></p>
+
+				<h4><?php _e( "Site Title", "wptouch" ); ?></h4>
+				<p><?php _e( "You can shorten your site title here so it won't be truncated by WPtouch.", "wptouch" ); ?></p>
+
+
+				<h4><?php _e( "Excluded Categories", "wptouch" ); ?></h4>
+				<p><?php _e( "Choose categories you want excluded from the main post listings in WPtouch.", "wptouch" ); ?></p>
+
+				<h4><?php _e( "Font Options", "wptouch" ); ?></h4>
+				<p><?php _e( "Set the alignment for text.", "wptouch" ); ?></p>
+
+				
+				<h4><?php _e( "Post Listings Options", "wptouch" ); ?></h4>
+				<p><?php _e( "Choose between Calendar Icons, Post Thumbnails (WP 2.9) or nothing for your post listings.", "wptouch" ); ?></p>
+				<p><?php _e( "Select which post-meta items are shown under titles on the main, search, &amp; archives pages.", "wptouch" ); ?></p>
+				<p><?php _e( "Also, choose if excerpts are shown/hidden (default is hidden).", "wptouch" ); ?></p>
+			</div>
+
+			<div class="right-content">
+				<p><label for="home-page"><strong><?php _e( "WPtouch Home Page", "wptouch" ); ?></strong></label></p>
+				<?php $pages = bnc_get_pages_for_icons(); ?>
+				<?php if ( count( $pages ) ) { ?>
+					<?php wp_dropdown_pages( 'show_option_none=WordPress Settings&name=home-page&selected=' . bnc_get_selected_home_page()); ?>
+				<?php } else {?>
+					<strong class="no-pages"><?php _e( "You have no pages yet. Create some first!", "wptouch" ); ?></strong>
+				<?php } ?>
+
+				<br /><br /><br />
+
+				<ul class="wptouch-make-li-italic">
+					<li><input type="text" class="no-right-margin" name="header-title" value="<?php $str = $wptouch_settings['header-title']; echo stripslashes($str); ?>" /><?php _e( "Site title text", "wptouch" ); ?></li>
+				</ul>
+
+				<br />
+
+				<ul class="wptouch-make-li-italic">			
+				<li><input name="excluded-cat-ids" class="no-right-margin" type="text" value="<?php $str = $wptouch_settings['excluded-cat-ids']; echo stripslashes($str); ?>" /><?php _e( "Comma list of Category IDs, eg: 1,2,3", "wptouch" ); ?></li>
+				</ul>
+
+				<br />
+
+				<ul class="wptouch-make-li-italic">
+
+					<li><select name="style-text-justify">
+							<option <?php if ($wptouch_settings['style-text-justify'] == "left-justified") echo " selected"; ?> value="left-justified"><?php _e( "Left", "wptouch" ); ?></option>
+							<option <?php if ($wptouch_settings['style-text-justify'] == "full-justified") echo " selected"; ?> value="full-justified"><?php _e( "Full", "wptouch" ); ?></option>
+						</select>
+						<?php _e( "Font justification", "wptouch" ); ?>
+					</li>
+				</ul>	
+				
+				<br />
+				
+				<ul>
+				<li><ul class="wptouch-make-li-italic">
+		
+							<li><select name="post-cal-thumb">
+									<option <?php if ($wptouch_settings['post-cal-thumb'] == "calendar-icons") echo " selected"; ?> value="calendar-icons"><?php _e( "Calendar Icons", "wptouch" ); ?></option>
+									<option <?php $version = bnc_get_wp_version(); if ($version <= 2.89) : ?>disabled="true"<?php endif; ?> <?php if ($wptouch_settings['post-cal-thumb'] == "post-thumbnails") echo " selected"; ?> value="post-thumbnails"><?php _e( "Post Thumbnails", "wptouch" ); ?></option>
+									<option <?php $version = bnc_get_wp_version(); if ($version <= 2.89) : ?>disabled="true"<?php endif; ?> <?php if ($wptouch_settings['post-cal-thumb'] == "post-thumbnails-random") echo " selected"; ?> value="post-thumbnails-random"><?php _e( "Post Thumbnails (Random)", "wptouch" ); ?></option>
+									<option <?php if ($wptouch_settings['post-cal-thumb'] == "nothing-shown") echo " selected"; ?> value="nothing-shown"><?php _e( "No Icon or Thumbnail", "wptouch" ); ?></option>
+								</select>
+								<?php _e( "Post Listings Display", "wptouch" ); ?> <small>(<?php _e( "Thumbnails Requires WordPress 2.9+", "wptouch" ); ?>)</small> <a href="#thumbs-info" class="fancylink">?</a></label>
+				<div id="thumbs-info" style="display:none">
+					<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+					<p><?php _e( "This will change the display of blog and post listings between Calendar Icons view and Post Thumbnails view.", "wptouch" ); ?></p>
+					<p><?php _e( "The <em>Post Thumbnails w/ Random</em> option will fill missing post thumbnails with random abstract images. (WP 2.9+)", "wptouch" ); ?></p>
+				</div>
+
+							</li>
+						</ul>	
+					</li>
+					<li>
+						<input type="checkbox" class="checkbox" name="enable-main-name" <?php if (isset($wptouch_settings['enable-main-name']) && $wptouch_settings['enable-main-name'] == 1) echo('checked'); ?> />
+						<label for="enable-authorname"> <?php _e( "Show Author's Name", "wptouch" ); ?></label>
+					</li>			
+					<li>
+						<input type="checkbox" class="checkbox" name="enable-main-categories" <?php if (isset($wptouch_settings['enable-main-categories']) && $wptouch_settings['enable-main-categories'] == 1) echo('checked'); ?> />
+						<label for="enable-categories"> <?php _e( "Show Categories", "wptouch" ); ?></label>
+					</li>			
+					<li>
+						<input type="checkbox" class="checkbox" name="enable-main-tags" <?php if (isset($wptouch_settings['enable-main-tags']) && $wptouch_settings['enable-main-tags'] == 1) echo('checked'); ?> />
+						<label for="enable-tags"> <?php _e( "Show Tags", "wptouch" ); ?></label>
+					</li>			
+					<li>
+						<input type="checkbox" class="checkbox" name="enable-post-excerpts" <?php if (isset($wptouch_settings['enable-post-excerpts']) && $wptouch_settings['enable-post-excerpts'] == 1) echo('checked'); ?> />
+						<label for="enable-excerpts"><?php _e( "Hide Excerpts", "wptouch" ); ?></label>
+					</li>
+				</ul>	
+			</div>
+			
+	<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/head-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,57 @@
+<?php global $wptouch_settings; ?>
+<?php global $bnc_wptouch_version; ?>
+
+<div class="metabox-holder" id="wptouch-head">
+	<div class="postbox">
+		<div id="wptouch-head-colour">
+			<div id="wptouch-head-title">
+				<?php WPtouch(); ?>
+				<img class="ajax-load" src="<?php echo compat_get_plugin_url('wptouch'); ?>/images/admin-ajax-loader.gif" alt="ajax"/>
+			</div>
+				<div id="wptouch-head-links">
+					<ul>
+						<!-- <li><?php echo sprintf(__( "%sSupport Forums%s", "wptouch" ), '<a href="http://support.bravenewcode.com/forum/wptouch" target="_blank">','</a>'); ?> | </li> -->
+						<li><?php echo sprintf(__( "%sWPtouch Homepage%s", "wptouch" ), '<a href="http://www.bravenewcode.com/wptouch" target="_blank">','</a>'); ?> | </li>
+						<li><?php echo sprintf(__( "%sNewsletter%s", "wordtwit" ), '<a href="http://www.bravenewcode.com/newsletter" target="_blank">','</a>'); ?> | </li>
+						<li><?php echo sprintf(__( "%sDonate%s", "wptouch" ), '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=paypal%40bravenewcode%2ecom&amp;item_name=WPtouch%20Beer%20Fund&amp;no_shipping=1&amp;tax=0&amp;currency_code=CAD&amp;lc=CA&amp;bn=PP%2dDonationsBF&amp;charset=UTF%2d8" target="_blank">','</a>'); ?></li>
+					</ul>
+				</div>
+	<div class="bnc-clearer"></div>
+			</div>	
+	
+		<div id="wptouch-news-support">
+
+			<div id="wptouch-news-wrap">
+			<h3><span class="rss-head">&nbsp;</span><?php _e( "WPtouch Wire", "wptouch" ); ?></h3>
+				<div id="wptouch-news-content" style="display:none">
+					<?php require_once (ABSPATH . WPINC . '/class-snoopy.php');
+					$snoop_dog = new Snoopy();
+					$snoop_dog->read_timeout = 3;
+					$result = $snoop_dog->fetch( 'http://www.bravenewcode.com/custom/wptouch-news.php?type=wptouch&version=' . $bnc_wptouch_version );
+					if ( $result ) {
+						echo $snoop_dog->results;
+					}
+					?>
+				</div>
+			</div>
+
+			<div id="wptouch-support-wrap">			
+			<h3><span class="rss-head">&nbsp;</span><?php _e( "Twitter Topics", "wptouch" ); ?></h3>
+				<div id="wptouch-support-content" style="display:none">
+					<?php require_once (ABSPATH . WPINC . '/rss.php');
+					$rss = @fetch_rss('http://search.twitter.com/search.atom?q=wptouch');						
+					if ( isset($rss->items) && 0 != count($rss->items) ) { ?>
+					<ul>
+						<?php $rss->items = array_slice($rss->items, 0, 5); foreach ($rss->items as $item ) { ?>
+						<li><a target="_blank" class="orange-link" href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li>
+						<?php } ?>
+					</ul>
+					<?php } ?>
+				</div>
+			</div>
+			
+		</div><!-- wptouch-news-support -->
+
+	<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- wptouch-head -->
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/icon-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,37 @@
+<?php require_once( dirname(__FILE__) . '/../include/icons.php' ); ?>
+<?php global $wptouch_settings; ?>
+
+<div class="metabox-holder" id="available_icons">
+	<div class="postbox">
+		<h3><span class="icon-options">&nbsp;</span><?php _e( "Default &amp; Custom Icon Pool", "wptouch" ); ?></h3>
+
+			<div class="left-content">
+				<p><?php _e( "You can select which icons will be displayed beside the pages you enable in the next section.", "wptouch" ); ?></p>
+				<strong><?php _e( "Adding Icons", "wptouch" ); ?></strong>
+				<p><?php _e( "To add icons to the pool, simply upload a 32x32.png, .jpeg or .gif image from your computer.", "wptouch" ); ?></p>
+				<strong><?php _e( "Logo/Bookmark Icons", "wptouch" ); ?></strong>
+				<p><?php _e( "If you're adding a logo icon, the best dimensions for it are 59x60px when used as a bookmark icon.", "wptouch" ); ?></p>
+				<p><?php echo sprintf( __( "Need help? You can use %sthis easy online icon generator%s to make one.", "wptouch"), "<a href='http://www.flavorstudios.com/iphone-icon-generator' target='_blank'>", "</a>" ); ?></p>
+				<p><?php echo sprintf( __( "These files will be stored in the<br />%s%s/wptouch/custom-icons%s<br />folder we create.", "wptouch"), "<strong>", str_replace( ABSPATH, "", compat_get_upload_dir() ), "</strong>" ); ?></p>
+				<p><?php echo sprintf( __( "If an upload fails (usually it's a permission problem) create the folder yourself using FTP and try again.", "wptouch"), "<strong>", "</strong>" ); ?></p>
+						
+				<div id="upload_button"></div>
+
+				<!-- <div id="extras_button">
+					<a href="#" onclick="alert('This does nothing yet');return false;"><img src="<?php echo compat_get_plugin_url( 'wptouch' ) . '/images/extras.png'; ?>" alt="extras" /></a>
+				</div> --> 
+
+			<div id="upload_response"></div>
+				<div id="upload_progress" style="display:none">
+					<p><img src="<?php echo compat_get_plugin_url( 'wptouch' ) . '/images/progress.gif'; ?>" alt="" /> <?php _e( "Uploading..."); ?></p>
+				</div>
+								
+			</div><!-- left-content -->
+		
+	<div class="right-content">	
+		<?php bnc_show_icons(); ?>
+	</div>
+	
+	<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/page-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,61 @@
+<?php global $wptouch_settings; ?>
+
+<div class="metabox-holder">
+	<div class="postbox">
+		<h3><span class="page-options">&nbsp;</span><?php _e( "Logo Icon // Menu Items &amp; Pages Icons", "wptouch" ); ?></h3>
+
+			<div class="left-content">
+				<h4><?php _e( "Logo / Home Screen Icon <br />&amp; Default Menu Items", "wptouch" ); ?></h4>
+				<p><?php _e( "Choose the logo displayed in the header (also your bookmark icon), and the pages you want included in the WPtouch drop-down menu.", "wptouch" ); ?> 						
+				<strong><?php _e( "Remember, only those checked will be shown.", "wptouch" ); ?></strong></p>
+				<p><?php _e( "Enable/Disable default items in the WPtouch site menu.", "wptouch"); ?></p>
+<br /><br />
+				<h4><?php _e( "Pages + Icons", "wptouch" ); ?></h4>
+				<p><?php _e( "Next, select the icons from the lists that you want to pair with each page menu item.", "wptouch" ); ?></p>
+				<p><?php _e( "You can also decide if pages are listed by the page order (ID) in WordPress, or by name (default).", "wptouch" ); ?></p>
+			</div><!-- left-content -->
+		
+	<div class="right-content wptouch-pages">
+		<ul>
+			<li><select name="enable_main_title">
+					<?php bnc_get_icon_drop_down_list( $wptouch_settings['main_title']); ?>
+				</select>
+				<?php _e( "Logo &amp; Home Screen Bookmark Icon", "wptouch" ); ?>
+				<br />
+			</li>
+		</ul>
+		<ul>
+			<li><input type="checkbox" class="checkbox" name="enable-main-home" <?php if (isset($wptouch_settings['enable-main-home']) && $wptouch_settings['enable-main-home'] == 1) echo('checked'); ?> /><label for="enable-main-home"><?php _e( "Enable Home Menu Item", "wptouch" ); ?></label></li>
+			<li><input type="checkbox" class="checkbox" name="enable-main-rss" <?php if (isset($wptouch_settings['enable-main-rss']) && $wptouch_settings['enable-main-rss'] == 1) echo('checked'); ?> /><label for="enable-main-rss"><?php _e( "Enable RSS Menu Item", "wptouch" ); ?></label></li>
+			<li><input type="checkbox" class="checkbox" name="enable-main-email" <?php if (isset($wptouch_settings['enable-main-email']) && $wptouch_settings['enable-main-email'] == 1) echo('checked'); ?> /><label for="enable-main-email"><?php _e( "Enable Email Menu Item", "wptouch" ); ?> <small>(<?php _e( "Uses default WordPress admin e-mail", "wptouch" ); ?>)</small></label><br /><br /><br /></li>
+		
+		<?php if ( count( $pages ) ) { ?>
+			<li><br /><br />
+			<select name="sort-order">
+					<option value="name"<?php if ( $wptouch_settings['sort-order'] == 'name') echo " selected"; ?>><?php _e( "By Name", "wptouch" ); ?></option>
+					<option value="page"<?php if ( $wptouch_settings['sort-order'] == 'page') echo " selected"; ?>><?php _e( "By Page ID", "wptouch" ); ?></option>
+				</select>
+				<?php _e( "Menu List Sort Order", "wptouch" ); ?>
+			</li>
+			<?php } ?>
+			<?php $pages = bnc_get_pages_for_icons(); ?>
+			<?php if ( count( $pages ) ) { ?>
+				<?php foreach ( $pages as $page ) { ?>
+				<li><span>
+						<input class="checkbox" type="checkbox" name="enable_<?php echo $page->ID; ?>"<?php if ( isset( $wptouch_settings[$page->ID] ) ) echo " checked"; ?> />
+						<label class="wptouch-page-label" for="enable_<?php echo $page->ID; ?>"><?php echo $page->post_title; ?> <?php _e( "Page", "wptouch" ); ?></label>
+					</span>
+					<select class="page-select" name="icon_<?php echo $page->ID; ?>">
+						<?php bnc_get_icon_drop_down_list( $wptouch_settings[ $page->ID ]); ?>
+					</select>
+					
+				</li>
+				<?php } ?>
+			<?php } else { ?>
+				<strong ><?php _e( "You have no pages yet. Create some first!", "wptouch" ); ?></strong>
+			<?php } ?>
+		</ul>
+	</div><!-- right-content -->		
+	<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/plugin-compat-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,74 @@
+<?php require_once( compat_get_plugin_dir( 'wptouch' ) . '/include/plugin.php' ); ?>
+<?php global $wptouch_settings; ?>
+<?php $version = bnc_get_wp_version(); ?>
+
+<div class="metabox-holder">
+	<div class="postbox">
+		<h3><span class="plugin-options">&nbsp;</span><?php _e( "Plugin Support &amp; Compatibility", "wptouch" ); ?></h3>
+
+			<div class="left-content">
+				<div class="wptouch-version-support">
+					<?php
+						echo '<p class="wpv">';
+						echo __( 'WordPress version: ', 'wptouch' );
+						echo '' . get_bloginfo('version') . '';
+						echo '</p><p class="wptv">';
+						echo __( '' . wptouch() . ' support: ', 'wptouch' );
+						if ($version > 2.91) {
+							echo sprintf(__( "%Unverified%s", "wptouch" ), '<span class="caution">','</span>');
+						} elseif ($version >= 2.7) {
+							echo sprintf(__( "%sFully Supported%s", "wptouch" ), '<span class="go">','</span>');
+						} else {
+							echo sprintf(__( "%Unsupported. Upgrade Required.%s", "wptouch" ), '<span class="red">','</span>');
+						} 
+						echo '</p>';
+					?>	
+				</div>
+				<p><?php _e( "Here you'll find information on additional WPtouch features and their requirements, including those activated with companion plugins.", "wptouch" ); ?></p>
+				<p><?php _e( "For further documentation visit" ); ?> <?php echo sprintf(__( "%sBraveNewCode.%s", "wptouch" ), '<a href="http://www.bravenewcode.com/wptouch/">','</a>'); ?></p>
+				<p><?php echo sprintf( __( "To report an incompatible plugin, let us know in our %sSupport Forums%s.", "wptouch"), '<a href="http://support.bravenewcode.com/">', '</a>' ); ?></p>
+		</div>
+		
+		<div class="right-content">
+			
+			<h4><?php _e( "WordPress Pages &amp; Feature Support", "wptouch" ); ?></h4>
+			
+				<?php
+					//WordPress Links Page Support
+				$links_page_check = new WP_Query('pagename=links');
+				if ($links_page_check->post->ID) {
+				echo '<div class="all-good">' . __( "All of your WP links will automatically show on your page called 'Links'.", "wptouch" ) . '</div>';
+				} else {
+				echo '<div class="too-bad">' . __( "If you create a page called 'Links', all your WP links would display in <em>WPtouch</em> style.", "wptouch" ) . '</div>'; } ?>
+				
+				<?php
+				//WordPress Photos Page with and without FlickRSS Support	 
+				$photos_page_check = new WP_Query('pagename=photos');
+				if ($photos_page_check->post->ID && function_exists('get_flickrRSS')) {
+				echo '<div class="all-good">' . __( 'All your <a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a> images will automatically show on your page called \'Photos\'.', 'wptouch' ) . '</div>';
+				} elseif ($photos_page_check->post->ID && !function_exists('get_flickrRSS')) {
+				echo '<div class="sort-of">' . __( 'You have a page called \'Photos\', but don\'t have <a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a> installed.', 'wptouch' ) . '</div>';
+				} elseif (!$photos_page_check->post->ID && function_exists('get_flickrRSS')) {
+				echo '<div class="sort-of">' . __( 'If you create a page called \'Photos\', all your <a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a> photos would display in <em>WPtouch</em> style.', 'wptouch' ) . '</div>';
+				} else {
+				
+				echo '<div class="too-bad">' . __( 'If you create a page called \'Photos\', and install the <a href="http://eightface.com/wordpress/flickrrss/" target="_blank">FlickrRSS</a> plugin, your photos would display in <em>WPtouch</em> style.', 'wptouch' ) . '</div>';
+				}
+				?>
+				
+				<?php
+				//WordPress Archives Page Support with checks for Tags Support or Not
+				$archives_page_check = new WP_Query('pagename=archives');
+				if ($archives_page_check->post->ID) {
+				echo '<div class="all-good">' . __( 'Your tags and your monthly listings will automatically show on your page called \'Archives\'.', 'wptouch' ) . '</div>';
+				} else {		   
+				echo '<div class="too-bad">' . __( 'If you had a page called \'Archives\', your tags and monthly listings would display in <em>WPtouch</em> style.', 'wptouch' ) . '</div>';
+				}
+				?>
+				
+			<h4><?php _e( 'Known Plugin Support &amp; Conflicts', 'wptouch' ); ?></h4>
+				<div id="wptouch-plugin-content" style="display:none"></div>				
+		</div><!-- right content -->
+	<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/push-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,61 @@
+<?php global $wptouch_settings; ?>
+<div class="metabox-holder">
+	<div class="postbox" id="push-area">
+		<h3><span class="push-options">&nbsp;</span><?php _e( "Push Notification Options", "wptouch" ); ?></h3>
+
+			<div class="left-content">
+					<p><?php echo sprintf(__( "Here you can configure WPtouch to push selected notifications through your %sProwl%s account to your iPhone, iPod touch and Growl-enabled Mac.", "wptouch" ), '<a href="http://prowl.weks.net/" target="_blank">','</a>'); ?></p>
+					<p><?php echo sprintf(__( "%sMake sure you generate a Prowl API key to use here%s otherwise no notifications will be pushed to you.", "wptouch" ), '<strong>','</strong>'); ?></p>			
+			</div><!-- left content -->
+
+			<div class="right-content">
+				<ul class="wptouch-make-li-italic">
+				<?php if ( function_exists( 'curl_init' ) ) { ?>
+					<li>
+						<input name="prowl-api" type="text" value="<?php echo $wptouch_settings['prowl-api']; ?>" /><?php _e( "Prowl API Key", "wptouch" ); ?> (<?php echo sprintf(__( "%sCreate a key now%s", "wptouch" ), '<a href="https://prowl.weks.net/settings.php" target="_blank">','</a>'); ?> - <a href="#prowl-info" class="fancylink">?</a>)
+						<div id="prowl-info" style="display:none">
+							<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+							<p><?php _e( "In order to enable Prowl notifications, you must create a Prowl account, and download/configure the Prowl application for iPhone.", "wptouch" ); ?></p>
+							<p><?php _e( "Next, visit the Prowl website and generate your API key, which we use to connect securely and send your notifications.", "wptouch" ); ?></p>
+							
+							<p><?php echo sprintf(__( "%sVisit the Prowl Website%s", "wptouch" ), '<a href="http://prowl.weks.net/settings.php" target="_blank">','</a>'); ?> | <?php echo sprintf(__( "%sVisit iTunes to Download Prowl%s", "wptouch" ), '<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=320876271&amp;mt=8" target="_blank">','</a>'); ?></p>
+						</div>		
+							<?php if ( isset( $wptouch_settings['prowl-api'] ) && strlen( $wptouch_settings['prowl-api'] ) ) { ?>
+								<?php if ( bnc_wptouch_is_prowl_key_valid() ) { ?>
+									<p class="valid"><?php _e( "Your Prowl API key has been verified.", "wptouch" ); ?></p>
+								<?php } else { ?>
+									<p class="invalid">
+										<?php _e( "Sorry, your Prowl API key is not verified.", "wptouch" ); ?><br />
+										<?php _e( "Please check your key and make sure there are no spaces or extra characters.", "wptouch" ); ?>
+									</p>
+								<?php } ?>
+							<?php } ?>		
+					</li>
+				</ul>
+			
+				<ul>
+				<li>
+					<input class="checkbox" type="checkbox" name="enable-prowl-comments-button" <?php if ( isset( $wptouch_settings['enable-prowl-comments-button']) && $wptouch_settings['enable-prowl-comments-button'] == 1) echo('checked'); ?> />
+					<label class="label" for="enable-prowl-comments-button"><?php _e( "Notify me of new comments &amp; pingbacks/tracksbacks", "wptouch" ); ?></label>
+				</li>
+				<li>
+					<input class="checkbox" <?php if (!get_option('comment_registration')) : ?>disabled="true"<?php endif; ?> type="checkbox" name="enable-prowl-users-button" <?php if ( isset( $wptouch_settings['enable-prowl-users-button']) && $wptouch_settings['enable-prowl-users-button'] == 1) echo('checked'); ?> />
+					<label class="label" for="enable-prowl-users-button"><?php _e( "Notify me of new account registrations", "wptouch" ); ?></label>
+				</li>
+				<li>
+					<input class="checkbox" type="checkbox" name="enable-prowl-message-button" <?php if ( isset( $wptouch_settings['enable-prowl-message-button']) && $wptouch_settings['enable-prowl-message-button'] == 1) echo('checked'); ?> />
+					<label class="label" for="enable-prowl-message-button"><?php _e( "Allow users to send me direct messages", "wptouch" ); ?> <a href="#dm-info" class="fancylink">?</a></label>
+						<div id="dm-info" style="display:none">
+						<h2><?php _e( "More Info", "wptouch" ); ?></h2>
+						<p><?php _e( "This enables a new link to a drop-down in the submenu bar for WPtouch ('Message Me').", "wptouch" ); ?></p>
+						<p><?php _e( "When opened, a form is shown for users to fill in. The name, e-mail address, and message area is shown. Thier IP will also be sent to you, in case you want to ban it in the WordPress admin.", "wptouch" ); ?></p>
+						</div>
+					</li>			
+					<?php } else { ?>
+					<li><strong class="no-pages"><?php echo sprintf(__( "%sCURL is required%s on your werbserver to use the Push capabilities of WPtouch.", "wptouch" ), '<a href="http://en.wikipedia.org/wiki/CURL" target="_blank">','</a>'); ?></strong></li>
+					<?php } ?>	
+				</ul>
+			</div><!-- right content -->
+		<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/html/style-area.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,76 @@
+<?php global $wptouch_settings; ?>
+
+<div class="metabox-holder">
+	<div class="postbox">
+		<h3><span class="style-options">&nbsp;</span><?php _e( "Style &amp; Color Options", "wptouch" ); ?></h3>
+
+			<div class="left-content skins-left-content">
+				<p><?php _e( "Here you can customize some of the more prominent style features of WPtouch.", "wptouch" ); ?></p>
+			</div>
+		
+			<div class="right-content skins-fixed">
+
+
+ <!-- Default skin -->
+ 
+		<div class="skins-desc" id="default-skin">
+			<p><?php _e( "The default WPtouch skin emulates a native iPhone application.", "wptouch" ); ?></p>
+			<ul class="wptouch-make-li-italic">
+					<li><select name="style-background">
+							<option <?php if ($wptouch_settings['style-background'] == "classic-wptouch-bg") echo " selected"; ?> value="classic-wptouch-bg">
+								<?php _e( "Classic", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['style-background'] == "horizontal-wptouch-bg") echo " selected"; ?> value="horizontal-wptouch-bg">
+								<?php _e( "Horizontal Grey", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['style-background'] == "diagonal-wptouch-bg") echo " selected"; ?> value="diagonal-wptouch-bg">
+								<?php _e( "Diagonal Grey", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['style-background'] == "skated-wptouch-bg") echo " selected"; ?> value="skated-wptouch-bg">
+								<?php _e( "Skated Concrete", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['style-background'] == "argyle-wptouch-bg") echo " selected"; ?> value="argyle-wptouch-bg">
+								<?php _e( "Argyle Tie", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['style-background'] == "grid-wptouch-bg") echo " selected"; ?> value="grid-wptouch-bg">
+								<?php _e( "Thatches", "wptouch" ); ?>
+							</option>
+						</select>
+						<?php _e( "Background", "wptouch" ); ?>
+					</li> 
+					<li><select name="h2-font">
+							<option <?php if ($wptouch_settings['h2-font'] == "Helvetica Neue") echo " selected"; ?> value="Helvetica Neue">
+								<?php _e( "Helvetica Neue", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['h2-font'] == "Helvetica") echo " selected"; ?> value="Helvetica">
+								<?php _e( "Helvetica", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['h2-font'] == "thonburi-font") echo " selected"; ?> value="thonburi-font">
+								<?php _e( "Thonburi", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['h2-font'] == "Georgia") echo " selected"; ?> value="Georgia">
+								<?php _e( "Georgia", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['h2-font'] == "Geeza Pro") echo " selected"; ?> value="Geeza Pro">
+								<?php _e( "Geeza Pro", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['h2-font'] == "Verdana") echo " selected"; ?> value="Verdana">
+								<?php _e( "Verdana", "wptouch" ); ?>
+							</option>
+							<option <?php if ($wptouch_settings['h2-font'] == "Arial Rounded MT Bold") echo " selected"; ?> value="Arial Rounded MT Bold">
+								<?php _e( "Arial Rounded MT Bold", "wptouch" ); ?>
+							</option>
+							</select>
+						<?php _e( "Post Title H2 Font", "wptouch" ); ?>
+					</li> 
+					<li>#<input type="text" id="header-text-color" name="header-text-color" value="<?php echo $wptouch_settings['header-text-color']; ?>" /><?php _e( "Title text color", "wptouch" ); ?></li>
+					<li>#<input type="text" id="header-background-color" name="header-background-color" value="<?php echo $wptouch_settings['header-background-color']; ?>" /><?php _e( "Header background color", "wptouch" ); ?></li>
+					<li>#<input type="text" id="header-border-color" name="header-border-color" value="<?php echo $wptouch_settings['header-border-color']; ?>" /><?php _e( "Sub-header background color", "wptouch" ); ?></li>
+					<li>#<input type="text" id="link-color" name="link-color" value="<?php echo $wptouch_settings['link-color']; ?>" /><?php _e( "Site-wide links color", "wptouch" ); ?></li>
+			</ul> 
+		</div>
+		
+		</div><!-- right content -->
+	<div class="bnc-clearer"></div>
+	</div><!-- postbox -->
+</div><!-- metabox -->
\ No newline at end of file
Binary file web/wp-content/plugins/wptouch/images/admin-ajax-loader.gif has changed
Binary file web/wp-content/plugins/wptouch/images/bad.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/blank.gif has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_background.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hex.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_b.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_h.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_hsb_s.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_indic.gif has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_overlay.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_b.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_g.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_rgb_r.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/colorpicker_submit.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/select.png has changed
Binary file web/wp-content/plugins/wptouch/images/colorpicker/slider.png has changed
Binary file web/wp-content/plugins/wptouch/images/default.jpg has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_closebox.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_progress.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_e.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_n.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_ne.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_nw.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_s.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_se.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_sw.png has changed
Binary file web/wp-content/plugins/wptouch/images/fancybox/fancy_shadow_w.png has changed
Binary file web/wp-content/plugins/wptouch/images/good.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/adsense.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/advanced.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/general.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/iconpool.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/page.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/plugin.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/push.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/rss.png has changed
Binary file web/wp-content/plugins/wptouch/images/h3_icons/style.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Admin.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Apps.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Archives.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Books.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Calendar.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Camera.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Clock.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Colors.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Contacts.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Default.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Delicious.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Digg.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Facebook.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Finder.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Flickr.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Google.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Home.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Mail.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Maps.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Music.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/MySpace.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Notes.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Photos.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Podcast.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/RSS.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Safari.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Squares.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Stocks.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/ToDo.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Twitter.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Videos.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/Wikipedia.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/WordPress.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/YouTube.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/iPod.png has changed
Binary file web/wp-content/plugins/wptouch/images/icon-pool/iTunes.png has changed
Binary file web/wp-content/plugins/wptouch/images/progress.gif has changed
Binary file web/wp-content/plugins/wptouch/images/reset.png has changed
Binary file web/wp-content/plugins/wptouch/images/saved.png has changed
Binary file web/wp-content/plugins/wptouch/images/sortof.png has changed
Binary file web/wp-content/plugins/wptouch/images/upload.png has changed
Binary file web/wp-content/plugins/wptouch/images/wptouch-icon.jpg has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/include/adsense-new.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,22 @@
+<?php global $wptouch_settings; global $wpdb; ?>
+<?php echo '<div id="adsense-area">'; ?>
+<script type="text/javascript"><!--
+window.googleAfmcRequest = {
+  client: 'ca-mb-<?php echo $wptouch_settings['adsense-id']; ?>',
+  ad_type: 'text_image',
+  output: 'html',
+<?php if ( !isset( $wptouch_settings['adsense-channel'] ) ) { ?>
+  channel: '',
+<?php } else { ?>
+  channel: '<?php echo $wptouch_settings['adsense-channel']; ?>',
+<?php } ?>
+  format: '320x50_mb',
+<?php if ( $wpdb->charset ) { ?>
+  oe: '<?php echo $wpdb->charset; ?>',
+<?php } else { ?>
+  oe: 'utf8',
+<?php } ?>
+};
+//--></script>
+<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_afmc_ads.js"></script>
+<?php echo '</div>'; ?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/include/adsense.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,133 @@
+<?php
+
+/*
+	Code taken from Google's website
+	Modified to use Snoopy class for HTTP request
+*/
+
+if (!function_exists('google_append_url')) {
+
+	function read_global($var) {
+	  return isset($_SERVER[$var]) ? $_SERVER[$var]: '';
+	}
+	
+	function google_set_screen_res() {
+	  $screen_res = read_global('HTTP_UA_PIXELS');
+	  if ($screen_res == '') {
+	    $screen_res = read_global('HTTP_X_UP_DEVCAP_SCREENPIXELS');
+	  }
+	  if ($screen_res == '') {
+	    $screen_res = read_global('HTTP_X_JPHONE_DISPLAY');
+	  }
+	  $res_array = split('[x,*]', $screen_res);
+	  if (sizeof($res_array) == 2) {
+	    $GLOBALS['google']['u_w'] = $res_array[0];
+	    $GLOBALS['google']['u_h'] = $res_array[1];
+	  }
+	}
+
+	function google_set_muid() {
+	  $muid = read_global('HTTP_X_DCMGUID');
+	  if ($muid != '') {
+	    $GLOBALS['google']['muid'] = $muid;
+	  }
+	  $muid = read_global('HTTP_X_UP_SUBNO');
+	  if ($muid != '') {
+	    $GLOBALS['google']['muid'] = $muid;
+	  }
+	  $muid = read_global('HTTP_X_EM_UID');
+	  if ($muid != '') {
+	    $GLOBALS['google']['muid'] = $muid;
+	  }
+	}	
+
+
+	require_once( WP_CONTENT_DIR . '/../wp-includes/class-snoopy.php');
+
+	$GLOBALS['google']['ad_type']='text';
+	$GLOBALS['google']['channel']='';
+	$GLOBALS['google']['format']='mobile_single';
+	$GLOBALS['google']['https']=read_global('HTTPS');
+	$GLOBALS['google']['ip']=read_global('REMOTE_ADDR');
+	$GLOBALS['google']['markup']='xhtml';
+	$GLOBALS['google']['oe']='utf8';
+	$GLOBALS['google']['output']='xhtml';
+	$GLOBALS['google']['ref']=read_global('HTTP_REFERER');
+	$GLOBALS['google']['url']=read_global('HTTP_HOST') . read_global('REQUEST_URI');
+	$GLOBALS['google']['useragent']=read_global('HTTP_USER_AGENT');
+	$google_dt = time();
+
+// $GLOBALS['google']['color_border']='FFFFFF';
+//	$GLOBALS['google']['color_bg']='FFFFFF';
+//	$GLOBALS['google']['color_link']='0000CC';
+//	$GLOBALS['google']['color_text']='333333';
+//	$GLOBALS['google']['color_url']='008000';
+	
+	function google_append_url(&$url, $param, $value) {
+	  $url .= '&' . $param . '=' . urlencode($value);
+	}
+	
+	function google_append_globals(&$url, $param) {
+	  google_append_url($url, $param, $GLOBALS['google'][$param]);
+	}
+	
+	function google_append_color(&$url, $param) {
+	  global $google_dt;
+	  $color_array = split(',', $GLOBALS['google'][$param]);
+	  google_append_url($url, $param,
+	                    $color_array[$google_dt % sizeof($color_array)]);
+	}
+	
+
+	
+	
+	function google_get_ad_url() {
+	  $google_ad_url = 'http://pagead2.googlesyndication.com/pagead/ads?';
+	  $google_scheme = ($GLOBALS['google']['https'] == 'on')
+	      ? 'https://' : 'http://';
+		foreach ($GLOBALS['google'] as $param => $value) {
+		  if ($param == 'client') {
+		    google_append_url($google_ad_url, $param,
+		                      'ca-mb-' . $GLOBALS['google'][$param]);
+		  } else if (strpos($param, 'color_') === 0) {
+		    google_append_color($google_ad_url, $param);
+		  } else if (strpos($param, 'url') === 0) {
+		    $google_scheme = ($GLOBALS['google']['https'] == 'on')
+		        ? 'https://' : 'http://';
+		    google_append_url($google_ad_url, $param,
+		                      $google_scheme . $GLOBALS['google'][$param]);
+		  } else {
+		    google_append_globals($google_ad_url, $param);
+		  }
+		}
+		
+	  google_append_url($google_ad_url, 'dt',
+	   		    round(1000 * array_sum(explode(' ', microtime()))));
+	   		    
+	  return $google_ad_url;
+	}
+	
+	function google_show_ad( $id, $channel = '' ) {
+		global $bnc_wptouch_version;
+		
+		$ad = '';
+		$GLOBALS['google']['client']= $id;
+		$GLOBALS['google']['channel']= $channel;
+		
+		$google_dt = time();
+		google_set_screen_res();
+		google_set_muid();
+		
+   	$snoopy = new Snoopy;
+   	$snoopy->agent = 'WPtouch ' . $bnc_wptouch_version;
+
+		$ad = '';
+      $result = $snoopy->fetch( google_get_ad_url() );
+      if ( $result ) {
+         $ad = $snoopy->results;
+      }
+		
+		return $ad;
+	}
+}
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/include/class.prowl.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,68 @@
+<?php
+
+class Prowl
+{
+   var $apikey;
+   var $application;
+   
+   function Prowl($apikey, $application)
+   {
+      $this->apikey = $apikey;
+      $this->application = $application;
+     // $this->verify();
+   }
+   
+   function add($priority, $event, $description)
+   {
+      $options = array(
+         'apikey' => $this->apikey,
+         'priority' => $priority,
+         'application' => urlencode($this->application),
+         'event' => urlencode($event),
+         'description' => urlencode($description)
+      );
+      
+      $response = $this->request('https://prowl.weks.net/publicapi/add', $options);
+      return $this->getresult($response);
+   }
+   
+   function getresult($response) {
+		$response = str_replace("\n", " ", $response);
+	
+		if(preg_match("/code=\"200\"/i", $response))
+			return true;
+		else
+		{
+			preg_match("/<error.*?>(.*?)<\/error>/i", $response, $out);
+			return $out[1];
+		}
+   }
+   
+   function verify()
+   {
+      $options = array('apikey' => $this->apikey);
+      return $this->getresult( $this->request('https://prowl.weks.net/publicapi/verify', $options) );
+   }
+   
+   function request($file, $options)
+   {
+      $url = $file;
+      
+      $first = true;
+      foreach ($options as $key => $value) {
+         $url .= ($first ? '?' : '&') . $key . '=' . $value;
+         $first = false;
+      }
+      
+      $ch = curl_init($url);
+      curl_setopt($ch, CURLOPT_HEADER, false);
+      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+      curl_setopt($ch, CURLOPT_TIMEOUT, 10);
+      $response = curl_exec($ch);
+      curl_close($ch);
+
+      return $response;
+   }
+}
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/include/compat.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,93 @@
+<?php
+// Plugin compatability file
+// to help with older versions of WordPress and WordPress MU
+// some concepts taken from compatibility.php from the OpenID plugin at http://code.google.com/p/diso/ 
+
+// this will also be the base include for AJAX routines
+// so we need to check if WordPress is loaded, if not, load it
+// we'll use ABSPATH, since that's defined when WordPress loads
+// should be included in the init function of normal plugins
+
+if ( !function_exists( 'compat_get_wp_content_dir' ) ) {
+	function compat_get_wp_content_dir() {
+		if ( defined( 'WP_CONTENT_DIR' ) ) {
+			return WP_CONTENT_DIR;
+		} else {
+			return get_option( 'siteurl' ) . '/wp-content';	
+		}
+	}
+}
+
+if ( !function_exists( 'compat_get_wp_content_url' ) ) {
+	function compat_get_wp_content_url() {
+		if ( defined( 'WP_CONTENT_URL') ) {
+			return WP_CONTENT_URL;
+		} else {
+			return ABSPATH . 'wp-content';
+		}
+	}
+}
+
+if ( !function_exists( 'compat_is_wordpress_mu' ) ) {
+	function compat_is_wordpress_mu() {	
+		return file_exists( compat_get_wp_content_dir() . '/mu-plugins' );
+	}
+}
+	
+
+if ( !function_exists( 'compat_get_base_plugin_dir' ) ) {
+	function compat_get_base_plugin_dir() {
+		if ( compat_is_wordpress_mu() && strpos( dirname( __FILE__ ), 'mu-plugins') !== false ) {
+			return compat_get_wp_content_dir() . '/mu-plugins';
+		} else {	
+			return compat_get_wp_content_dir() . '/plugins';
+		}
+	}
+}
+
+if ( !function_exists( 'compat_get_base_plugin_url' ) ) {
+	function compat_get_base_plugin_url() {
+		if ( compat_is_wordpress_mu() && strpos( dirname( __FILE__ ), 'mu-plugins')  !== false ) {
+			return compat_get_wp_content_url() . '/mu-plugins';
+		} else {
+			return compat_get_wp_content_url() . '/plugins';
+		}
+	}
+}
+
+if ( !function_exists( 'compat_get_plugin_dir') ) {
+	function compat_get_plugin_dir( $plugin_name ) {
+		return compat_get_base_plugin_dir() . '/' . $plugin_name;
+	}
+}
+
+if ( !function_exists( 'compat_get_plugin_url' ) ) {
+	function compat_get_plugin_url( $plugin_name ) {
+		return compat_get_base_plugin_url() . '/' . $plugin_name;
+	}	
+}
+
+if ( !function_exists( 'compat_get_upload_dir' ) ) {
+	function compat_get_upload_dir() {
+		if ( compat_is_wordpress_mu() ) {
+			global $blog_id;
+			return compat_get_wp_content_dir() . '/blogs.dir/' . $blog_id . '/uploads';
+		} else {	
+			$upload_info = wp_upload_dir();		
+			return $upload_info['basedir'];
+		}		
+	}
+}
+
+if ( !function_exists( 'compat_get_upload_url' ) ) {
+	function compat_get_upload_url() {
+		if ( compat_is_wordpress_mu() ) {
+			global $blog_id;
+			return compat_get_wp_content_url() . '/blogs.dir/' . $blog_id . '/uploads';
+		} else {	
+			$upload_info = wp_upload_dir();		
+			return $upload_info['baseurl'];
+		}			
+	}	
+}
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/include/icons.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,95 @@
+<?php
+
+	function bnc_get_icon_locations() {
+      $locations = array( 
+        		'default' => array( compat_get_plugin_dir( 'wptouch' ) . '/images/icon-pool', compat_get_plugin_url( 'wptouch' ) . '/images/icon-pool' ),      
+				'custom' => array( compat_get_upload_dir() . '/wptouch/custom-icons', compat_get_upload_url() . '/wptouch/custom-icons' )
+		);
+
+      return $locations;
+	}
+	
+	function bnc_get_icon_list() {
+		$locations = bnc_get_icon_locations();     
+		$files = array();
+
+		foreach ( $locations as $key => $value ) {
+			$current_path = $value[0];	
+			$dir = @opendir( $current_path );
+			$files[ $key ] = array();
+		
+			if ( $dir ) {
+				while ( false !== ( $file = readdir( $dir ) ) ) { 
+					if ($file == '.' || $file == '..' || $file == '.svn' || $file == 'template.psd' || $file == '.DS_Store' || $file == 'more') {
+						continue;
+					}
+				
+					$icon = array();
+					$names = explode('.', $file);
+					$icon['friendly'] = ucfirst($names[0]);
+					$icon['name'] = $file;
+					$icon['url'] = $value[1] . "/" . $file;
+					$files[ $key ][ $icon['name'] ] = $icon;
+				}
+			}
+		}
+
+		ksort($files);
+		return $files;
+	}
+	
+	function bnc_show_icons() {
+		$icons = bnc_get_icon_list();
+		$locations = bnc_get_icon_locations();
+		
+		foreach ( $locations as $key => $value ) {
+			echo '<div class="new-icon-block ' . $key . '">';
+			foreach ( $icons[ $key ] as $icon ) {
+				echo '<ul class="wptouch-iconblock">';
+				echo '<li><img src="' . $icon['url'] . '" title="' . $icon['name'] . '" /><br />' . $icon['friendly'];
+				if ( $key == 'custom' ) {
+					echo ' <a href="' . $_SERVER['REQUEST_URI'] . '&amp;delete_icon=' . urlencode($icon['url']) . '">(x)</a>';	
+				}
+				echo '</li>';
+				echo '</ul>';
+			}	
+			echo '</div>';
+		}
+	}	
+	
+	function bnc_get_icon_drop_down_list( $selected_item ) {
+		$icons = bnc_get_icon_list();
+		$locations = bnc_get_icon_locations();
+		$files = array();
+		
+		foreach ( $locations as $key => $value ) {
+			foreach ( $icons[ $key ] as $icon ) {
+				$files[ $icon['name'] ] = $icon;
+			}	
+		}
+		
+		ksort( $files );
+		
+		foreach ( $files as $key => $file ) {
+			$is_selected = '';
+			if ( $selected_item == $file['name'] ) {
+				$is_selected = ' selected';
+			}
+			echo '<option' . $is_selected . ' value="' . $file['name'] . '">'. $file['friendly'] . '</option>';
+		}
+	}
+	
+	function bnc_get_pages_for_icons() {
+		global $table_prefix;
+		global $wpdb;
+		
+		$query = "select * from {$table_prefix}posts where post_type = 'page' and post_status = 'publish' order by post_title asc";
+		$results = $wpdb->get_results( $query );
+		if ( $results ) {
+			return $results;
+		}
+	}
+	
+	function bnc_get_master_icon_list() {
+	}
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/include/plugin.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,8 @@
+<?php
+	function bnc_get_wp_version() {
+		$version = (float)str_replace('.','',get_bloginfo('version'));
+		if ($version < 100) { $version = $version * 10; }
+		$version = $version / 100;
+		return $version; 
+		}		
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/include/submit.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,235 @@
+<?php
+
+	if ( isset( $_POST['submit'] ) ) {
+		// let's rock and roll
+
+		unset( $_POST['submit'] );
+		$a = array();
+
+		if ( isset( $_POST['enable-post-excerpts'] ) ) {
+			$a['enable-post-excerpts'] = 1;
+		} else {
+			$a['enable-post-excerpts'] = 0;
+		}
+
+		if ( isset( $_POST['enable-page-coms'] ) ) {
+			$a['enable-page-coms'] = 1;
+		} else {
+			$a['enable-page-coms'] = 0;
+		}
+
+		if ( isset( $_POST['enable-cats-button'] ) ) {
+			$a['enable-cats-button'] = 1;
+		} else {
+			$a['enable-cats-button'] = 0;
+		}
+
+		if ( isset( $_POST['enable-tags-button'] ) ) {
+			$a['enable-tags-button'] = 1;
+		} else {
+			$a['enable-tags-button'] = 0;
+		}
+
+		if ( isset( $_POST['enable-search-button'] ) ) {
+			$a['enable-search-button'] = 1;
+		} else {
+			$a['enable-search-button'] = 0;
+		}
+
+		if ( isset( $_POST['enable-login-button'] ) ) {
+			$a['enable-login-button'] = 1;
+		} else {
+			$a['enable-login-button'] = 0;
+		}
+
+		if ( isset( $_POST['enable-gigpress-button'] ) ) {
+			$a['enable-gigpress-button'] = 1;
+		} else {
+			$a['enable-gigpress-button'] = 0;
+		}
+
+		if ( isset( $_POST['enable-gravatars'] ) ) {
+			$a['enable-gravatars'] = 1;
+		} else {
+			$a['enable-gravatars'] = 0;
+		}
+
+		if ( isset( $_POST['enable-ajax-comments'] ) ) {
+			$a['enable-ajax-comments'] = 1;
+		} else {
+			$a['enable-ajax-comments'] = 0;
+		}
+		
+		if ( isset( $_POST['enable-main-home'] ) ) {
+			$a['enable-main-home'] = 1;
+		} else {
+			$a['enable-main-home'] = 0;
+		}
+		
+		if ( isset( $_POST['enable-main-rss'] ) ) {
+			$a['enable-main-rss'] = 1;
+		} else {
+			$a['enable-main-rss'] = 0;
+		}
+		
+		if ( isset( $_POST['enable-main-email'] ) ) {
+			$a['enable-main-email'] = 1;
+		} else {
+			$a['enable-main-email'] = 0;
+		}
+		
+		if ( isset( $_POST['enable-main-name'] ) ) {
+			$a['enable-main-name'] = 1;
+		} else {
+			$a['enable-main-name'] = 0;
+		}
+		
+		if ( isset( $_POST['enable-main-tags'] ) ) {
+			$a['enable-main-tags'] = 1;
+		} else {
+			$a['enable-main-tags'] = 0;
+		}
+
+		if ( isset( $_POST['enable-main-categories'] ) ) {
+			$a['enable-main-categories'] = 1;
+		} else {
+			$a['enable-main-categories'] = 0;
+		}
+
+//Prowl
+		if ( isset($_POST['prowl-api']) ) {
+			$a['prowl-api'] = $_POST['prowl-api'];
+		}
+		
+		if ( isset( $_POST['enable-prowl-comments-button'] ) ) {
+			$a['enable-prowl-comments-button'] = 1;
+		} else {
+			$a['enable-prowl-comments-button'] = 0;
+		}
+		
+		if ( isset( $_POST['enable-prowl-users-button'] ) ) {
+			$a['enable-prowl-users-button'] = 1;
+		} else {
+			$a['enable-prowl-users-button'] = 0;
+		}
+
+		if ( isset( $_POST['enable-prowl-message-button'] ) ) {
+			$a['enable-prowl-message-button'] = 1;
+		} else {
+			$a['enable-prowl-message-button'] = 0;
+		}
+//
+
+		if ( isset( $_POST['home-page'] ) ) {
+			$a['home-page'] = $_POST['home-page'];
+			if (strlen($a['home-page']) == 0) {
+				$a['home-page'] = 'Default';
+			}
+		} else {
+			$a['home-page'] = 'Default';
+		}
+
+		if ( isset($_POST['statistics']) ) {
+			$a['statistics'] = $_POST['statistics'];
+		}
+
+		if ( isset($_POST['sort-order']) ) {
+			$a['sort-order'] = $_POST['sort-order'];
+		}
+
+		if ( isset($_POST['enable-regular-default']) ) {
+			$a['enable-regular-default'] = 1;
+		} else {
+			$a['enable-regular-default'] = 0;
+		}
+		
+		if ( isset($_POST['enable-show-tweets']) ) {
+			$a['enable-show-tweets'] = 1;
+		} else {
+			$a['enable-show-tweets'] = 0;
+		}		
+		
+		if ( isset( $_POST['custom-user-agents'] ) ) {
+			$new_array = array();
+			if ( !strlen( trim( $_POST['custom-user-agents'] ) ) ) {
+				$a['custom-user-agents'] = array();
+			} else {				
+				$a['custom-user-agents'] = explode( ",", $_POST['custom-user-agents'] );
+				foreach( $a['custom-user-agents'] as $agent ) {
+					$new_array[] = trim( $agent );	
+				}
+				$a['custom-user-agents'] = $new_array;
+			}
+		} else {
+			$a['custom-user-agents'] = array();	
+		}
+
+		if ( isset($_POST['excluded-cat-ids']) ) {
+			$a['excluded-cat-ids'] = $_POST['excluded-cat-ids'];
+		}
+
+		if ( isset($_POST['adsense-id']) ) {
+			$a['adsense-id'] = trim( $_POST['adsense-id'] );
+		}
+
+		if ( isset($_POST['adsense-channel']) ) {
+			$a['adsense-channel'] = $_POST['adsense-channel'];
+		}		
+
+		if ( isset($_POST['post-cal-thumb']) ) {
+			$a['post-cal-thumb'] = $_POST['post-cal-thumb'];
+		}
+
+		if ( isset($_POST['h2-font']) ) {
+			$a['h2-font'] = $_POST['h2-font'];
+		}
+
+		if ( isset($_POST['style-text-justify']) ) {
+			$a['style-text-justify'] = $_POST['style-text-justify'];
+		}
+
+		if ( isset($_POST['style-background']) ) {
+			$a['style-background'] = $_POST['style-background'];
+		}
+
+		if ( isset( $_POST['enable-exclusive'] ) ) {
+			$a['enable-exclusive'] = 1;	
+		} else {
+			$a['enable-exclusive'] = 0;
+		}
+
+		foreach ($_POST as $k => $v) {
+			if ($k == 'enable_main_title') {
+				$a['main_title'] = $v;
+			} else {
+				if (preg_match('#enable_(.*)#', $k, $matches)) {
+					$id = $matches[1];
+					if (!isset($a[$id]))
+					$a[$id] = $_POST['icon_' . $id];
+				}
+			}
+		}
+
+		$a['header-title'] = $_POST['header-title'];
+		if (!isset($a['header-title']) || (isset($a['header-title']) && strlen($a['header-title']) == 0)) {
+		$a['header-title'] = get_bloginfo('title');
+	}
+
+	$a['header-background-color'] = $_POST['header-background-color'];
+	$a['header-border-color'] = $_POST['header-border-color'];
+	$a['header-text-color'] = $_POST['header-text-color'];
+	$a['link-color'] = $_POST['link-color'];
+//Prowl
+	$a['prowl-api'] = $_POST['prowl-api'];
+
+	$values = serialize($a);
+	update_option('bnc_iphone_pages', $values);
+ 	} 
+// The Master Kill Switch
+	elseif ( isset( $_POST['reset'] ) ) {
+		update_option( 'bnc_iphone_pages', '' );
+ }
+
+global $wptouch_settings;
+$wptouch_settings = bnc_wptouch_get_settings();
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/js/admin_1.9.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,57 @@
+/*
+ * WPtouch 1.9 -The WPtouch Admin Javascript File
+ * This file holds all the default jQuery & Ajax functions for the theme
+ * Copyright (c) 2008-2009 Duane Storey & Dale Mugford (BraveNewCode Inc.)
+ * Licensed under GPL.
+ *
+ * Last Updated: Novemeber 7th, 2009
+ */
+
+$j = jQuery.noConflict();
+jQuery(document).ready(function($j) {
+
+	new Ajax_upload('#upload_button', {
+		action: '../?wptouch=upload',
+		autoSubmit: true,
+		name: 'submitted_file',
+		onSubmit: function(file, extension) { $j("#upload_progress").show(); },
+		onComplete: function(file, response) { $j("#upload_progress").hide();
+		$j('#upload_response').hide().html(response).fadeIn(); }
+	});
+	
+	setTimeout(function() { 	
+		jQuery.ajax({
+			url: "../?wptouch=plugins",
+			success: function(data) {$j("#wptouch-plugin-content").html(data).fadeIn(350);}
+		});
+	}, 1500);
+
+	setTimeout(function() { $j('img.ajax-load').fadeOut(750); }, 2000);
+
+	setTimeout(function() { $j("#wptouch-news-content").fadeIn(350); }, 1050);
+	setTimeout(function() { $j("#wptouch-support-content").fadeIn(350); }, 1350);
+
+	setTimeout(function() { $j('#wptouchupdated').fadeIn(350); }, 750);
+	setTimeout(function() { $j('#wptouchupdated').fadeOut(350); }, 1750);
+
+	jQuery('#header-text-color, #header-background-color, #header-border-color, #link-color').ColorPicker({
+		onSubmit: function(hsb, hex, rgb, el) {
+			jQuery(el).val(hex);
+			jQuery(el).ColorPickerHide();
+			},
+		onBeforeShow: function () {
+			jQuery(this).ColorPickerSetColor( jQuery(this).attr('value') );
+			}
+		});
+
+	$j("a.fancylink").fancybox({
+		'padding':						10,
+		'zoomSpeedIn':				250, 
+		'zoomSpeedOut':			250,
+		'zoomOpacity':				true, 
+		'overlayShow':				false,
+		'frameHeight':				320,
+		'frameWidth':				450,
+		'hideOnContentClick': 	true
+	});
+});
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/js/ajax_upload_3.6.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,333 @@
+/**
+ * Ajax upload
+ * Project page - http://valums.com/ajax-upload/
+ * Copyright (c) 2008-2009 Andris Valums, http://valums.com
+ * Licensed under the MIT license (http://valums.com/mit-license/)
+ * Version 3.6 (03.10.2009)
+ **/
+(function(){
+var d = document, w = window;
+function get(element){
+if (typeof element == "string")
+element = d.getElementById(element);
+return element;
+}
+function addEvent(el, type, fn){
+if (w.addEventListener){
+el.addEventListener(type, fn, false);
+} else if (w.attachEvent){
+var f = function(){
+fn.call(el, w.event);
+};	el.attachEvent('on' + type, f)
+}
+}
+var toElement = function(){
+var div = d.createElement('div');
+return function(html){
+div.innerHTML = html;
+var el = div.childNodes[0];
+div.removeChild(el);
+return el;
+}
+}();
+function hasClass(ele,cls){
+return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
+}
+function addClass(ele,cls) {
+if (!hasClass(ele,cls)) ele.className += " "+cls;
+}
+function removeClass(ele,cls) {
+var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
+ele.className=ele.className.replace(reg,' ');
+}
+if (document.documentElement["getBoundingClientRect"]){
+var getOffset = function(el){
+var box = el.getBoundingClientRect(),
+doc = el.ownerDocument,
+body = doc.body,
+docElem = doc.documentElement,
+clientTop = docElem.clientTop || body.clientTop || 0,
+clientLeft = docElem.clientLeft || body.clientLeft || 0,
+zoom = 1;
+if (body.getBoundingClientRect) {
+var bound = body.getBoundingClientRect();
+zoom = (bound.right - bound.left)/body.clientWidth;
+}
+if (zoom > 1){
+clientTop = 0;
+clientLeft = 0;
+}
+var top = box.top/zoom + (window.pageYOffset || docElem && docElem.scrollTop/zoom || body.scrollTop/zoom) - clientTop,
+left = box.left/zoom + (window.pageXOffset|| docElem && docElem.scrollLeft/zoom || body.scrollLeft/zoom) - clientLeft;
+return {
+top: top,
+left: left
+};
+}
+} else {
+var getOffset = function(el){
+if (w.jQuery){
+return jQuery(el).offset();
+}	var top = 0, left = 0;
+do {
+top += el.offsetTop || 0;
+left += el.offsetLeft || 0;
+}
+while (el = el.offsetParent);
+return {
+left: left,
+top: top
+};
+}
+}
+function getBox(el){
+var left, right, top, bottom;	var offset = getOffset(el);
+left = offset.left;
+top = offset.top;
+right = left + el.offsetWidth;
+bottom = top + el.offsetHeight;	return {
+left: left,
+right: right,
+top: top,
+bottom: bottom
+};
+}
+function getMouseCoords(e){	if (!e.pageX && e.clientX){
+var zoom = 1;	var body = document.body;
+if (body.getBoundingClientRect) {
+var bound = body.getBoundingClientRect();
+zoom = (bound.right - bound.left)/body.clientWidth;
+}
+return {
+x: e.clientX / zoom + d.body.scrollLeft + d.documentElement.scrollLeft,
+y: e.clientY / zoom + d.body.scrollTop + d.documentElement.scrollTop
+};
+}
+return {
+x: e.pageX,
+y: e.pageY
+};	}
+var getUID = function(){
+var id = 0;
+return function(){
+return 'ValumsAjaxUpload' + id++;
+}
+}();
+function fileFromPath(file){
+return file.replace(/.*(\/|\\)/, "");	}
+function getExt(file){
+return (/[.]/.exec(file)) ? /[^.]+$/.exec(file.toLowerCase()) : '';
+}	var getXhr = function(){
+var xhr;
+return function(){
+if (xhr) return xhr;
+if (typeof XMLHttpRequest !== 'undefined') {
+xhr = new XMLHttpRequest();
+} else {
+var v = [
+"Microsoft.XmlHttp",
+"MSXML2.XmlHttp.5.0",
+"MSXML2.XmlHttp.4.0",
+"MSXML2.XmlHttp.3.0",
+"MSXML2.XmlHttp.2.0"	];
+for (var i=0; i < v.length; i++){
+try {
+xhr = new ActiveXObject(v[i]);
+break;
+} catch (e){}
+}
+}	return xhr;
+}
+}();
+Ajax_upload = AjaxUpload = function(button, options){
+if (button.jquery){
+button = button[0];
+} else if (typeof button == "string" && /^#.*/.test(button)){	button = button.slice(1);	}
+button = get(button);	this._input = null;
+this._button = button;
+this._disabled = false;
+this._submitting = false;
+this._justClicked = false;
+this._parentDialog = d.body;
+if (window.jQuery && jQuery.ui && jQuery.ui.dialog){
+var parentDialog = jQuery(this._button).parents('.ui-dialog');
+if (parentDialog.length){
+this._parentDialog = parentDialog[0];
+}
+}	this._settings = {
+action: 'upload.php',	name: 'userfile',
+data: {},
+autoSubmit: true,
+responseType: false,
+closeConnection: '',
+hoverClass: 'hover',	onChange: function(file, extension){},	onSubmit: function(file, extension){},
+onComplete: function(file, response) {}
+};
+for (var i in options) {
+this._settings[i] = options[i];
+}
+this._createInput();
+this._rerouteClicks();
+}
+AjaxUpload.prototype = {
+setData : function(data){
+this._settings.data = data;
+},
+disable : function(){
+this._disabled = true;
+},
+enable : function(){
+this._disabled = false;
+},
+destroy : function(){
+if(this._input){
+if(this._input.parentNode){
+this._input.parentNode.removeChild(this._input);
+}
+this._input = null;
+}
+},	_createInput : function(){
+var self = this;
+var input = d.createElement("input");
+input.setAttribute('type', 'file');
+input.setAttribute('name', this._settings.name);
+var styles = {
+'position' : 'absolute'
+,'margin': '-5px 0 0 -175px'
+,'padding': 0
+,'width': '220px'
+,'height': '30px'
+,'fontSize': '14px'	,'opacity': 0
+,'cursor': 'pointer'
+,'display' : 'none'
+,'zIndex' :  2147483583
+};
+for (var i in styles){
+input.style[i] = styles[i];
+}
+if ( ! (input.style.opacity === "0")){
+input.style.filter = "alpha(opacity=0)";
+}
+this._parentDialog.appendChild(input);
+addEvent(input, 'change', function(){
+var file = fileFromPath(this.value);	if(self._settings.onChange.call(self, file, getExt(file)) == false ){
+return;	}	if (self._settings.autoSubmit){
+self.submit();	}	});
+addEvent(input, 'click', function(){
+self.justClicked = true;
+setTimeout(function(){
+self.justClicked = false;
+}, 2500);	});	this._input = input;
+},
+_rerouteClicks : function (){
+var self = this;
+var box, dialogOffset = {top:0, left:0}, over = false;
+addEvent(self._button, 'mouseover', function(e){
+if (!self._input || over) return;
+over = true;
+box = getBox(self._button);
+if (self._parentDialog != d.body){
+dialogOffset = getOffset(self._parentDialog);
+}	});
+addEvent(document, 'mousemove', function(e){
+var input = self._input;	if (!input || !over) return;
+if (self._disabled){
+removeClass(self._button, self._settings.hoverClass);
+input.style.display = 'none';
+return;
+}	var c = getMouseCoords(e);
+if ((c.x >= box.left) && (c.x <= box.right) &&
+(c.y >= box.top) && (c.y <= box.bottom)){
+input.style.top = c.y - dialogOffset.top + 'px';
+input.style.left = c.x - dialogOffset.left + 'px';
+input.style.display = 'block';
+addClass(self._button, self._settings.hoverClass);
+} else {	over = false;
+var check = setInterval(function(){
+if (self.justClicked){
+return;
+}
+if ( !over ){
+input.style.display = 'none';	}	clearInterval(check);
+}, 25);
+removeClass(self._button, self._settings.hoverClass);
+}	});	},
+_createIframe : function(){
+var id = getUID();
+var iframe = toElement('<iframe src="javascript:false;" name="' + id + '" />');
+iframe.id = id;
+iframe.style.display = 'none';
+d.body.appendChild(iframe);	return iframe;	},
+submit : function(){
+var self = this, settings = this._settings;	if (this._input.value === ''){
+return;
+}
+var file = fileFromPath(this._input.value);	if (! (settings.onSubmit.call(this, file, getExt(file)) == false)) {
+var iframe = this._createIframe();
+var form = this._createForm(iframe);
+form.appendChild(this._input);
+if (settings.closeConnection && /AppleWebKit|MSIE/.test(navigator.userAgent)){
+var xhr = getXhr();
+xhr.open('GET', settings.closeConnection, false);
+xhr.send('');
+}
+form.submit();
+d.body.removeChild(form);	form = null;
+this._input = null;
+this._createInput();
+var toDeleteFlag = false;
+addEvent(iframe, 'load', function(e){
+if (// For Safari
+iframe.src == "javascript:'%3Chtml%3E%3C/html%3E';" ||
+iframe.src == "javascript:'<html></html>';"){	if( toDeleteFlag ){
+setTimeout( function() {
+d.body.removeChild(iframe);
+}, 0);
+}
+return;
+}	var doc = iframe.contentDocument ? iframe.contentDocument : frames[iframe.id].document;
+if (doc.readyState && doc.readyState != 'complete'){
+return;
+}
+if (doc.body && doc.body.innerHTML == "false"){
+return;	}
+var response;
+if (doc.XMLDocument){
+response = doc.XMLDocument;
+} else if (doc.body){
+response = doc.body.innerHTML;
+if (settings.responseType && settings.responseType.toLowerCase() == 'json'){
+if (doc.body.firstChild && doc.body.firstChild.nodeName.toUpperCase() == 'PRE'){
+response = doc.body.firstChild.firstChild.nodeValue;
+}
+if (response) {
+response = window["eval"]("(" + response + ")");
+} else {
+response = {};
+}
+}
+} else {
+var response = doc;
+}
+settings.onComplete.call(self, file, response);
+toDeleteFlag = true;
+iframe.src = "javascript:'<html></html>';";	});
+} else {
+d.body.removeChild(this._input);	this._input = null;
+this._createInput();	}
+},	_createForm : function(iframe){
+var settings = this._settings;
+var form = toElement('<form method="post" enctype="multipart/form-data"></form>');
+form.style.display = 'none';
+form.action = settings.action;
+form.target = iframe.name;
+d.body.appendChild(form);
+for (var prop in settings.data){
+var el = d.createElement("input");
+el.type = 'hidden';
+el.name = prop;
+el.value = settings.data[prop];
+form.appendChild(el);
+}	return form;
+}	};
+})(jQuery);
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/js/colorpicker_1.4.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,38 @@
+/**
+ *
+ * Color picker 1.4
+ * Author: Stefan Petre www.eyecon.ro
+ * 
+ * Dual licensed under the MIT and GPL licenses
+ * 
+ */
+(function($){var ColorPicker=function(){var
+ids={},inAction,charMin=65,visible,tpl='<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',defaults={eventName:'click',onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:'ff0000',livePreview:true,flat:false},fillRGBFields=function(hsb,cal){var rgb=HSBToRGB(hsb);$(cal).data('colorpicker').fields.eq(1).val(rgb.r).end().eq(2).val(rgb.g).end().eq(3).val(rgb.b).end();},fillHSBFields=function(hsb,cal){$(cal).data('colorpicker').fields.eq(4).val(hsb.h).end().eq(5).val(hsb.s).end().eq(6).val(hsb.b).end();},fillHexFields=function(hsb,cal){$(cal).data('colorpicker').fields.eq(0).val(HSBToHex(hsb)).end();},setSelector=function(hsb,cal){$(cal).data('colorpicker').selector.css('backgroundColor','#'+HSBToHex({h:hsb.h,s:100,b:100}));$(cal).data('colorpicker').selectorIndic.css({left:parseInt(150*hsb.s/100,10),top:parseInt(150*(100-hsb.b)/100,10)});},setHue=function(hsb,cal){$(cal).data('colorpicker').hue.css('top',parseInt(150-150*hsb.h/360,10));},setCurrentColor=function(hsb,cal){$(cal).data('colorpicker').currentColor.css('backgroundColor','#'+HSBToHex(hsb));},setNewColor=function(hsb,cal){$(cal).data('colorpicker').newColor.css('backgroundColor','#'+HSBToHex(hsb));},keyDown=function(ev){var pressedKey=ev.charCode||ev.keyCode||-1;if((pressedKey>charMin&&pressedKey<=90)||pressedKey==32){return false;}
+var cal=$(this).parent().parent();if(cal.data('colorpicker').livePreview===true){change.apply(this);}},change=function(ev){var cal=$(this).parent().parent(),col;if(this.parentNode.className.indexOf('_hex')>0){cal.data('colorpicker').color=col=HexToHSB(fixHex(this.value));}else if(this.parentNode.className.indexOf('_hsb')>0){cal.data('colorpicker').color=col=fixHSB({h:parseInt(cal.data('colorpicker').fields.eq(4).val(),10),s:parseInt(cal.data('colorpicker').fields.eq(5).val(),10),b:parseInt(cal.data('colorpicker').fields.eq(6).val(),10)});}else{cal.data('colorpicker').color=col=RGBToHSB(fixRGB({r:parseInt(cal.data('colorpicker').fields.eq(1).val(),10),g:parseInt(cal.data('colorpicker').fields.eq(2).val(),10),b:parseInt(cal.data('colorpicker').fields.eq(3).val(),10)}));}
+if(ev){fillRGBFields(col,cal.get(0));fillHexFields(col,cal.get(0));fillHSBFields(col,cal.get(0));}
+setSelector(col,cal.get(0));setHue(col,cal.get(0));setNewColor(col,cal.get(0));cal.data('colorpicker').onChange.apply(cal,[col,HSBToHex(col),HSBToRGB(col)]);},blur=function(ev){var cal=$(this).parent().parent();cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');},focus=function(){charMin=this.parentNode.className.indexOf('_hex')>0?70:65;$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');$(this).parent().addClass('colorpicker_focus');},downIncrement=function(ev){var field=$(this).parent().find('input').focus();var current={el:$(this).parent().addClass('colorpicker_slider'),max:this.parentNode.className.indexOf('_hsb_h')>0?360:(this.parentNode.className.indexOf('_hsb')>0?100:255),y:ev.pageY,field:field,val:parseInt(field.val(),10),preview:$(this).parent().parent().data('colorpicker').livePreview};$(document).bind('mouseup',current,upIncrement);$(document).bind('mousemove',current,moveIncrement);},moveIncrement=function(ev){ev.data.field.val(Math.max(0,Math.min(ev.data.max,parseInt(ev.data.val+ev.pageY-ev.data.y,10))));if(ev.data.preview){change.apply(ev.data.field.get(0),[true]);}
+return false;},upIncrement=function(ev){change.apply(ev.data.field.get(0),[true]);ev.data.el.removeClass('colorpicker_slider').find('input').focus();$(document).unbind('mouseup',upIncrement);$(document).unbind('mousemove',moveIncrement);return false;},downHue=function(ev){var current={cal:$(this).parent(),y:$(this).offset().top};current.preview=current.cal.data('colorpicker').livePreview;$(document).bind('mouseup',current,upHue);$(document).bind('mousemove',current,moveHue);},moveHue=function(ev){change.apply(ev.data.cal.data('colorpicker').fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,(ev.pageY-ev.data.y))))/150,10)).get(0),[ev.data.preview]);return false;},upHue=function(ev){fillRGBFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));fillHexFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));$(document).unbind('mouseup',upHue);$(document).unbind('mousemove',moveHue);return false;},downSelector=function(ev){var current={cal:$(this).parent(),pos:$(this).offset()};current.preview=current.cal.data('colorpicker').livePreview;$(document).bind('mouseup',current,upSelector);$(document).bind('mousemove',current,moveSelector);},moveSelector=function(ev){change.apply(ev.data.cal.data('colorpicker').fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,(ev.pageY-ev.data.pos.top))))/150,10)).end().eq(5).val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX-ev.data.pos.left))))/150,10)).get(0),[ev.data.preview]);return false;},upSelector=function(ev){fillRGBFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));fillHexFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));$(document).unbind('mouseup',upSelector);$(document).unbind('mousemove',moveSelector);return false;},enterSubmit=function(ev){$(this).addClass('colorpicker_focus');},leaveSubmit=function(ev){$(this).removeClass('colorpicker_focus');},clickSubmit=function(ev){var cal=$(this).parent();var col=cal.data('colorpicker').color;cal.data('colorpicker').origColor=col;setCurrentColor(col,cal.get(0));cal.data('colorpicker').onSubmit(col,HSBToHex(col),HSBToRGB(col),cal.data('colorpicker').el);},show=function(ev){var cal=$('#'+$(this).data('colorpickerId'));cal.data('colorpicker').onBeforeShow.apply(this,[cal.get(0)]);var pos=$(this).offset();var viewPort=getViewport();var top=pos.top+this.offsetHeight;var left=pos.left;if(top+176>viewPort.t+viewPort.h){top-=this.offsetHeight+176;}
+if(left+356>viewPort.l+viewPort.w){left-=356;}
+cal.css({left:left+'px',top:top+'px'});if(cal.data('colorpicker').onShow.apply(this,[cal.get(0)])!=false){cal.show();}
+$(document).bind('mousedown',{cal:cal},hide);return false;},hide=function(ev){if(!isChildOf(ev.data.cal.get(0),ev.target,ev.data.cal.get(0))){if(ev.data.cal.data('colorpicker').onHide.apply(this,[ev.data.cal.get(0)])!=false){ev.data.cal.hide();}
+$(document).unbind('mousedown',hide);}},isChildOf=function(parentEl,el,container){if(parentEl==el){return true;}
+if(parentEl.contains){return parentEl.contains(el);}
+if(parentEl.compareDocumentPosition){return!!(parentEl.compareDocumentPosition(el)&16);}
+var prEl=el.parentNode;while(prEl&&prEl!=container){if(prEl==parentEl)
+return true;prEl=prEl.parentNode;}
+return false;},getViewport=function(){var m=document.compatMode=='CSS1Compat';return{l:window.pageXOffset||(m?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(m?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(m?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(m?document.documentElement.clientHeight:document.body.clientHeight)};},fixHSB=function(hsb){return{h:Math.min(360,Math.max(0,hsb.h)),s:Math.min(100,Math.max(0,hsb.s)),b:Math.min(100,Math.max(0,hsb.b))};},fixRGB=function(rgb){return{r:Math.min(255,Math.max(0,rgb.r)),g:Math.min(255,Math.max(0,rgb.g)),b:Math.min(255,Math.max(0,rgb.b))};},fixHex=function(hex){var len=6-hex.length;if(len>0){var o=[];for(var i=0;i<len;i++){o.push('0');}
+o.push(hex);hex=o.join('');}
+return hex;},HexToRGB=function(hex){var hex=parseInt(((hex.indexOf('#')>-1)?hex.substring(1):hex),16);return{r:hex>>16,g:(hex&0x00FF00)>>8,b:(hex&0x0000FF)};},HexToHSB=function(hex){return RGBToHSB(HexToRGB(hex));},RGBToHSB=function(rgb){var hsb={h:0,s:0,b:0};var min=Math.min(rgb.r,rgb.g,rgb.b);var max=Math.max(rgb.r,rgb.g,rgb.b);var delta=max-min;hsb.b=max;if(max!=0){}
+hsb.s=max!=0?255*delta/max:0;if(hsb.s!=0){if(rgb.r==max){hsb.h=(rgb.g-rgb.b)/delta;}else if(rgb.g==max){hsb.h=2+(rgb.b-rgb.r)/delta;}else{hsb.h=4+(rgb.r-rgb.g)/delta;}}else{hsb.h=-1;}
+hsb.h*=60;if(hsb.h<0){hsb.h+=360;}
+hsb.s*=100/255;hsb.b*=100/255;return hsb;},HSBToRGB=function(hsb){var rgb={};var h=Math.round(hsb.h);var s=Math.round(hsb.s*255/100);var v=Math.round(hsb.b*255/100);if(s==0){rgb.r=rgb.g=rgb.b=v;}else{var t1=v;var t2=(255-s)*v/255;var t3=(t1-t2)*(h%60)/60;if(h==360)h=0;if(h<60){rgb.r=t1;rgb.b=t2;rgb.g=t2+t3}
+else if(h<120){rgb.g=t1;rgb.b=t2;rgb.r=t1-t3}
+else if(h<180){rgb.g=t1;rgb.r=t2;rgb.b=t2+t3}
+else if(h<240){rgb.b=t1;rgb.r=t2;rgb.g=t1-t3}
+else if(h<300){rgb.b=t1;rgb.g=t2;rgb.r=t2+t3}
+else if(h<360){rgb.r=t1;rgb.g=t2;rgb.b=t1-t3}
+else{rgb.r=0;rgb.g=0;rgb.b=0}}
+return{r:Math.round(rgb.r),g:Math.round(rgb.g),b:Math.round(rgb.b)};},RGBToHex=function(rgb){var hex=[rgb.r.toString(16),rgb.g.toString(16),rgb.b.toString(16)];$.each(hex,function(nr,val){if(val.length==1){hex[nr]='0'+val;}});return hex.join('');},HSBToHex=function(hsb){return RGBToHex(HSBToRGB(hsb));},restoreOriginal=function(){var cal=$(this).parent();var col=cal.data('colorpicker').origColor;cal.data('colorpicker').color=col;fillRGBFields(col,cal.get(0));fillHexFields(col,cal.get(0));fillHSBFields(col,cal.get(0));setSelector(col,cal.get(0));setHue(col,cal.get(0));setNewColor(col,cal.get(0));};return{init:function(opt){opt=$.extend({},defaults,opt||{});if(typeof opt.color=='string'){opt.color=HexToHSB(opt.color);}else if(opt.color.r!=undefined&&opt.color.g!=undefined&&opt.color.b!=undefined){opt.color=RGBToHSB(opt.color);}else if(opt.color.h!=undefined&&opt.color.s!=undefined&&opt.color.b!=undefined){opt.color=fixHSB(opt.color);}else{return this;}
+return this.each(function(){if(!$(this).data('colorpickerId')){var options=$.extend({},opt);options.origColor=opt.color;var id='collorpicker_'+parseInt(Math.random()*1000);$(this).data('colorpickerId',id);var cal=$(tpl).attr('id',id);if(options.flat){cal.appendTo(this).show();}else{cal.appendTo(document.body);}
+options.fields=cal.find('input').bind('keyup',keyDown).bind('change',change).bind('blur',blur).bind('focus',focus);cal.find('span').bind('mousedown',downIncrement).end().find('>div.colorpicker_current_color').bind('click',restoreOriginal);options.selector=cal.find('div.colorpicker_color').bind('mousedown',downSelector);options.selectorIndic=options.selector.find('div div');options.el=this;options.hue=cal.find('div.colorpicker_hue div');cal.find('div.colorpicker_hue').bind('mousedown',downHue);options.newColor=cal.find('div.colorpicker_new_color');options.currentColor=cal.find('div.colorpicker_current_color');cal.data('colorpicker',options);cal.find('div.colorpicker_submit').bind('mouseenter',enterSubmit).bind('mouseleave',leaveSubmit).bind('click',clickSubmit);fillRGBFields(options.color,cal.get(0));fillHSBFields(options.color,cal.get(0));fillHexFields(options.color,cal.get(0));setHue(options.color,cal.get(0));setSelector(options.color,cal.get(0));setCurrentColor(options.color,cal.get(0));setNewColor(options.color,cal.get(0));if(options.flat){cal.css({position:'relative',display:'block'});}else{$(this).bind(options.eventName,show);}}});},showPicker:function(){return this.each(function(){if($(this).data('colorpickerId')){show.apply(this);}});},hidePicker:function(){return this.each(function(){if($(this).data('colorpickerId')){$('#'+$(this).data('colorpickerId')).hide();}});},setColor:function(col){if(typeof col=='string'){col=HexToHSB(col);}else if(col.r!=undefined&&col.g!=undefined&&col.b!=undefined){col=RGBToHSB(col);}else if(col.h!=undefined&&col.s!=undefined&&col.b!=undefined){col=fixHSB(col);}else{return this;}
+return this.each(function(){if($(this).data('colorpickerId')){var cal=$('#'+$(this).data('colorpickerId'));cal.data('colorpicker').color=col;cal.data('colorpicker').origColor=col;fillRGBFields(col,cal.get(0));fillHSBFields(col,cal.get(0));fillHexFields(col,cal.get(0));setHue(col,cal.get(0));setSelector(col,cal.get(0));setCurrentColor(col,cal.get(0));setNewColor(col,cal.get(0));}});}};}();$.fn.extend({ColorPicker:ColorPicker.init,ColorPickerHide:ColorPicker.hidePicker,ColorPickerShow:ColorPicker.showPicker,ColorPickerSetColor:ColorPicker.setColor});})(jQuery)
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/js/fancybox_1.2.5.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,16 @@
+/*
+ * FancyBox - jQuery Plugin
+ * simple and fancy lightbox alternative
+ *
+ * Copyright (c) 2009 Janis Skarnelis
+ * Examples and documentation at: http://fancybox.net
+ * 
+ * Version: 1.2.5 (03/11/2009)
+ * Requires: jQuery v1.3+
+ * 
+ * Dual licensed under the MIT and GPL licenses:
+ *   http://www.opensource.org/licenses/mit-license.php
+ *   http://www.gnu.org/licenses/gpl.html
+ */
+ 
+;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(p($){$.q.1S=p(){J N.2o(p(){n b=$(N).u(\'2p\');8(b.1d(/^3i\\(["\']?(.*\\.2q)["\']?\\)$/i)){b=3j.$1;$(N).u({\'2p\':\'3k\',\'1e\':"3l:3m.3n.3o(3p=D, 3q="+($(N).u(\'3r\')==\'2r-3s\'?\'3t\':\'3u\')+", 13=\'"+b+"\')"}).2o(p(){n a=$(N).u(\'1u\');8(a!=\'2s\'&&a!=\'2t\')$(N).u(\'1u\',\'2t\')})}})};n l,4,1f=O,Y=1v 1w,1x,1y=1,1z=/\\.(3v|3w|2q|3x|3y)(.*)?$/i;n m=1A,19=$.14.1g&&$.14.2u.1T(0,1)==6&&!15.3z,1U=19||($.14.1g&&$.14.2u.1T(0,1)==7);$.q.r=p(o){n j=$.2v({},$.q.r.2w,o);n k=N;p 2x(){l=N;4=$.2v({},j);2y();J O};p 2y(){8(1f)J;8($.1V(4.1W)){4.1W()}4.v=[];4.t=0;8(j.v.Z>0){4.v=j.v}C{n a={};8(!l.1B||l.1B==\'\'){n a={K:l.K,G:l.G};8($(l).1C("1l:1D").Z){a.S=$(l).1C("1l:1D")}C{a.S=$(l)}8(a.G==\'\'||1X a.G==\'1m\'){a.G=a.S.2z(\'1Y\')}4.v.2A(a)}C{n b=$(k).1e("a[1B="+l.1B+"]");n a={};3A(n i=0;i<b.Z;i++){a={K:b[i].K,G:b[i].G};8($(b[i]).1C("1l:1D").Z){a.S=$(b[i]).1C("1l:1D")}C{a.S=$(b[i])}8(a.G==\'\'||1X a.G==\'1m\'){a.G=a.S.2z(\'1Y\')}4.v.2A(a)}}}3B(4.v[4.t].K!=l.K){4.t++}8(4.1E){8(19){$(\'1Z, 21, 22\').u(\'23\',\'3C\');$("#T").u(\'A\',$(U).A())}$("#T").u({\'3D-3E\':4.2B,\'24\':4.2C}).11()}$(15).V("1F.E 1G.E",$.q.r.25);1h()};p 1h(){$("#1n, #1o, #1i, #H").1a();n b=4.v[4.t].K;8(b.1d("1j")||l.3F.2D("1j")>=0){$.q.r.1H();1p(\'<1j s="2E" 3G="2F.q.r.2G()" 3H="3I\'+P.1b(P.3J()*3K)+\'" 2H="0" 3L="0" 13="\'+b+\'"></1j>\',4.1I,4.1J)}C 8(b.1d(/#/)){n c=15.3M.K.3N(\'#\')[0];c=b.3O(c,\'\');c=c.1T(c.2D(\'#\'));1p(\'<9 s="3P">\'+$(c).2I()+\'</9>\',4.1I,4.1J)}C 8(b.1d(1z)){Y=1v 1w;Y.13=b;8(Y.3Q){26()}C{$.q.r.1H();$(Y).Q().V(\'3R\',p(){$("#L").1a();26()})}}C{$.q.r.1H();$.3S(b,p(a){$("#L").1a();1p(\'<9 s="3T">\'+a+\'</9>\',4.1I,4.1J)})}};p 26(){n a=Y.F;n b=Y.A;n c=(4.M*2)+40;n d=(4.M*2)+28;n w=$.q.r.1q();8(4.2J&&(a>(w[0]-c)||b>(w[1]-d))){n e=P.29(P.29(w[0]-c,a)/a,P.29(w[1]-d,b)/b);a=P.1b(e*a);b=P.1b(e*b)}1p(\'<1l 1Y="" s="3U" 13="\'+Y.13+\'" />\',a,b)};p 2K(){8((4.v.Z-1)>4.t){n a=4.v[4.t+1].K;8(a.1d(1z)){1K=1v 1w();1K.13=a}}8(4.t>0){n a=4.v[4.t-1].K;8(a.1d(1z)){1K=1v 1w();1K.13=a}}};p 1p(a,b,c){1f=D;n d=4.M;8(1U||m){$("#y")[0].16.2L("A");$("#y")[0].16.2L("F")}8(d>0){b+=d*2;c+=d*2;$("#y").u({\'z\':d+\'R\',\'2M\':d+\'R\',\'2N\':d+\'R\',\'B\':d+\'R\',\'F\':\'2O\',\'A\':\'2O\'});8(1U||m){$("#y")[0].16.2P(\'A\',\'(N.2Q.3V - \'+d*2+\')\');$("#y")[0].16.2P(\'F\',\'(N.2Q.3W - \'+d*2+\')\')}}C{$("#y").u({\'z\':0,\'2M\':0,\'2N\':0,\'B\':0,\'F\':\'2R%\',\'A\':\'2R%\'})}8($("#x").17(":W")&&b==$("#x").F()&&c==$("#x").A()){$("#y").1L(\'2a\',p(){$("#y").1r().1M($(a)).2b("1N",p(){1s()})});J}n w=$.q.r.1q();n e=(c+28)>w[1]?w[3]:(w[3]+P.1b((w[1]-c-28)*0.5));n f=(b+40)>w[0]?w[2]:(w[2]+P.1b((w[0]-b-40)*0.5));n g={\'B\':f,\'z\':e,\'F\':b+\'R\',\'A\':c+\'R\'};8($("#x").17(":W")){$("#y").1L("1N",p(){$("#y").1r();$("#x").2c(g,4.2S,4.2T,p(){$("#y").1M($(a)).2b("1N",p(){1s()})})})}C{8(4.2d>0&&4.v[4.t].S!==1m){$("#y").1r().1M($(a));n h=4.v[4.t].S;n i=$.q.r.2e(h);$("#x").u({\'B\':(i.B-20-4.M)+\'R\',\'z\':(i.z-20-4.M)+\'R\',\'F\':$(h).F()+(4.M*2),\'A\':$(h).A()+(4.M*2)});8(4.2f){g.24=\'11\'}$("#x").2c(g,4.2d,4.2U,p(){1s()})}C{$("#y").1a().1r().1M($(a)).11();$("#x").u(g).2b("1N",p(){1s()})}}};p 2V(){8(4.t!=0){$("#1o, #2W").Q().V("18",p(e){e.2X();4.t--;1h();J O});$("#1o").11()}8(4.t!=(4.v.Z-1)){$("#1n, #2Y").Q().V("18",p(e){e.2X();4.t++;1h();J O});$("#1n").11()}};p 1s(){8($.14.1g){$("#y")[0].16.1O(\'1e\');$("#x")[0].16.1O(\'1e\')}2V();2K();$(U).V("1P.E",p(e){8(e.2g==27&&4.2Z){$.q.r.1c()}C 8(e.2g==37&&4.t!=0){$(U).Q("1P.E");4.t--;1h()}C 8(e.2g==39&&4.t!=(4.v.Z-1)){$(U).Q("1P.E");4.t++;1h()}});8(4.2h){$(15).V("1F.E 1G.E",$.q.r.25)}8(4.30){$("#y").18($.q.r.1c)}8(4.1E&&4.31){$("#T").V("18",$.q.r.1c)}8(4.33){$("#1i").V("18",$.q.r.1c).11()}8(1X 4.v[4.t].G!==\'1m\'&&4.v[4.t].G.Z>0){n a=$("#x").1u();$(\'#H 9\').3X(4.v[4.t].G).2I();$(\'#H\').u({\'z\':a.z+$("#x").34()-32,\'B\':a.B+(($("#x").35()*0.5)-($(\'#H\').F()*0.5))}).11()}8(4.1E&&19){$(\'1Z, 21, 22\',$(\'#y\')).u(\'23\',\'W\')}8($.1V(4.2i)){4.2i(4.v[4.t])}8($.14.1g){$("#x")[0].16.1O(\'1e\');$("#y")[0].16.1O(\'1e\')}1f=O};J N.Q(\'18.E\').V(\'18.E\',2x)};$.q.r.25=p(){n w=$.q.r.1q();8($("#x").17(\':W\')){n a=$("#x").35();n b=$("#x").34();n c={\'z\':(b>w[1]?w[3]:w[3]+P.1b((w[1]-b)*0.5)),\'B\':(a>w[0]?w[2]:w[2]+P.1b((w[0]-a)*0.5))};$("#x").u(c);$(\'#H\').u({\'z\':c.z+b-32,\'B\':c.B+((a*0.5)-($(\'#H\').F()*0.5))})}8(19&&$("#T").17(\':W\')){$("#T").u({\'A\':$(U).A()})}8($("#L").17(\':W\')){$("#L").u({\'B\':((w[0]-40)*0.5+w[2]),\'z\':((w[1]-40)*0.5+w[3])})}};$.q.r.1t=p(a,b){J 3Y($.3Z(a.41?a[0]:a,b,D))||0};$.q.r.2e=p(a){n b=a.42();b.z+=$.q.r.1t(a,\'43\');b.z+=$.q.r.1t(a,\'44\');b.B+=$.q.r.1t(a,\'45\');b.B+=$.q.r.1t(a,\'46\');J b};$.q.r.2G=p(){$("#L").1a();$("#2E").11()};$.q.r.1q=p(){J[$(15).F(),$(15).A(),$(U).47(),$(U).48()]};$.q.r.36=p(){8(!$("#L").17(\':W\')){38(1x);J}$("#L > 9").u(\'z\',(1y*-40)+\'R\');1y=(1y+1)%12};$.q.r.1H=p(){38(1x);n w=$.q.r.1q();$("#L").u({\'B\':((w[0]-40)*0.5+w[2]),\'z\':((w[1]-40)*0.5+w[3])}).11();$("#L").V(\'18\',$.q.r.1c);1x=49($.q.r.36,4a)};$.q.r.1c=p(){1f=D;$(Y).Q();$(U).Q("1P.E");$(15).Q("1F.E 1G.E");$("#T, #y, #1i").Q();$("#1i, #L, #1o, #1n, #H").1a();1Q=p(){8($("#T").17(\':W\')){$("#T").1L("2a")}$("#y").1r();8(4.2h){$(15).Q("1F.E 1G.E")}8(19){$(\'1Z, 21, 22\').u(\'23\',\'W\')}8($.1V(4.2j)){4.2j()}1f=O};8($("#x").17(":W")!==O){8(4.2k>0&&4.v[4.t].S!==1m){n a=4.v[4.t].S;n b=$.q.r.2e(a);n c={\'B\':(b.B-20-4.M)+\'R\',\'z\':(b.z-20-4.M)+\'R\',\'F\':$(a).F()+(4.M*2),\'A\':$(a).A()+(4.M*2)};8(4.2f){c.24=\'1a\'}$("#x").3a(O,D).2c(c,4.2k,4.3b,1Q)}C{$("#x").3a(O,D).1L(\'2a\',1Q)}}C{1Q()}J O};$.q.r.3c=p(){n a=\'\';a+=\'<9 s="T"></9>\';a+=\'<9 s="L"><9></9></9>\';a+=\'<9 s="x">\';a+=\'<9 s="3d">\';a+=\'<9 s="1i"></9>\';a+=\'<9 s="X"><9 I="X" s="4b"></9><9 I="X" s="4c"></9><9 I="X" s="4d"></9><9 I="X" s="4e"></9><9 I="X" s="4f"></9><9 I="X" s="4g"></9><9 I="X" s="4h"></9><9 I="X" s="4i"></9></9>\';a+=\'<a K="2l:;" s="1o"><1R I="2m" s="2W"></1R></a><a K="2l:;" s="1n"><1R I="2m" s="2Y"></1R></a>\';a+=\'<9 s="y"></9>\';a+=\'</9>\';a+=\'</9>\';a+=\'<9 s="H"></9>\';$(a).3e("4j");$(\'<3f 4k="0" 4l="0" 4m="0"><3g><1k I="H" s="4n"></1k><1k I="H" s="4o"><9></9></1k><1k I="H" s="4p"></1k></3g></3f>\').3e(\'#H\');8($.14.1g){$(".X").1S()}8(19){$("9#T").u("1u","2s");$("#L 9, #1i, .H, .2m").1S();$("#3d").4q(\'<1j s="3h" 13="2l:O;" 4r="2r" 2H="0"></1j>\');n b=$(\'#3h\')[0].4s.U;b.4t();b.1c()}};$.q.r.2w={M:10,2J:D,2f:D,2d:0,2k:0,2S:4u,2U:\'2n\',3b:\'2n\',2T:\'2n\',1I:4v,1J:4w,1E:D,2C:0.3,2B:\'#4x\',2Z:D,33:D,31:D,30:D,2h:D,v:[],1W:1A,2i:1A,2j:1A};$(U).4y(p(){m=$.14.1g&&!$.4z;8($("#x").Z<1){$.q.r.3c()}})})(2F);',62,284,'||||opts||||if|div||||||||||||||var||function|fn|fancybox|id|itemCurrent|css|itemArray||fancy_outer|fancy_content|top|height|left|else|true|fb|width|title|fancy_title|class|return|href|fancy_loading|padding|this|false|Math|unbind|px|orig|fancy_overlay|document|bind|visible|fancy_bg|imagePreloader|length||show||src|browser|window|style|is|click|IE6|hide|round|close|match|filter|busy|msie|_change_item|fancy_close|iframe|td|img|undefined|fancy_right|fancy_left|_set_content|getViewport|empty|_finish|getNumeric|position|new|Image|loadingTimer|loadingFrame|imageRegExp|null|rel|children|first|overlayShow|resize|scroll|showLoading|frameWidth|frameHeight|objNext|fadeOut|append|normal|removeAttribute|keydown|__cleanup|span|fixPNG|substr|oldIE|isFunction|callbackOnStart|typeof|alt|embed||object|select|visibility|opacity|scrollBox|_proceed_image||60|min|fast|fadeIn|animate|zoomSpeedIn|getPosition|zoomOpacity|keyCode|centerOnScroll|callbackOnShow|callbackOnClose|zoomSpeedOut|javascript|fancy_ico|swing|each|backgroundImage|png|no|absolute|relative|version|extend|defaults|_initialize|_start|attr|push|overlayColor|overlayOpacity|indexOf|fancy_frame|jQuery|showIframe|frameborder|html|imageScale|_preload_neighbor_images|removeExpression|right|bottom|auto|setExpression|parentNode|100|zoomSpeedChange|easingChange|easingIn|_set_navigation|fancy_left_ico|stopPropagation|fancy_right_ico|enableEscapeButton|hideOnContentClick|hideOnOverlayClick||showCloseButton|outerHeight|outerWidth|animateLoading||clearInterval||stop|easingOut|build|fancy_inner|appendTo|table|tr|fancy_bigIframe|url|RegExp|none|progid|DXImageTransform|Microsoft|AlphaImageLoader|enabled|sizingMethod|backgroundRepeat|repeat|crop|scale|jpg|gif|bmp|jpeg|XMLHttpRequest|for|while|hidden|background|color|className|onload|name|fancy_iframe|random|1000|hspace|location|split|replace|fancy_div|complete|load|get|fancy_ajax|fancy_img|clientHeight|clientWidth|text|parseInt|curCSS||jquery|offset|paddingTop|borderTopWidth|paddingLeft|borderLeftWidth|scrollLeft|scrollTop|setInterval|66|fancy_bg_n|fancy_bg_ne|fancy_bg_e|fancy_bg_se|fancy_bg_s|fancy_bg_sw|fancy_bg_w|fancy_bg_nw|body|cellspacing|cellpadding|border|fancy_title_left|fancy_title_main|fancy_title_right|prepend|scrolling|contentWindow|open|300|560|340|666|ready|boxModel'.split('|'),0,{}));
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/readme.txt	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,445 @@
+=== Plugin Name ===
+Contributors: BraveNewCode, duanestorey, dalemugford
+Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40bravenewcode%2ecom&item_name=WPtouch%20Beer%20Fund&no_shipping=0&no_note=1&tax=0&currency_code=CAD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8
+Tags: wptouch, iphone, ipod, theme, apple, mac, bravenewcode, ajax, mobile, android, blackberry, smartphone
+Requires at least: 2.7
+Tested up to: 2.9.1
+Stable tag: 1.9.7.6
+
+WPtouch automatically transforms your WordPress blog into an iPhone application-style theme, complete with ajax loading articles and effects, when viewed from an iPhone, iPod touch, Android, Opera Mini, Palm Pre and BlackBerry Storm mobile devices.
+
+== Description ==
+
+With a single click, *WPtouch* transforms your WordPress blog into an iPhone application-style theme, complete with ajax loading articles and effects, when viewed from an iPhone, iPod touch, Android or BlackBerry touch mobile device.
+
+The admin panel allows you to customize many aspects of its appearance, and deliver a fast, user-friendly and stylish version of your site to your iPhone, iPod touch, Android, Opera Mini mobile, Palm Pre and BlackBerry Storm visitors without modifying a single bit of code (or affecting) your regular desktop theme.
+
+The theme also includes the ability for your visitors to easily switch between the *WPtouch* view and your site's regular theme.
+
+== Changelog ==
+
+= Version 1.9.7.6 =
+
+* Minor administration changes
+
+
+= Version 1.9.7.5 =
+
+* Updated readme to describe WordPress MU installation
+
+
+= Version 1.9.7.4 =
+
+* Fixed an issue where thumbnails wouldn't show
+
+= Version 1.9.7.3 =
+
+* Added support for thumbnails using James Lao's 'Simple Post Thumbnails' plugin
+* Changed functions.php check from version (2.9) to whether function exists (WP Security Scan bypass)
+
+= Version 1.9.7.2 =
+
+* Added missing code to the theme's functions file for Post thumbs
+* Resolves an issue where blank spaces would appear, not Post Thumbs
+
+
+= Version 1.9.7.1 =
+
+* Fix for broken switch links (missing images) on some installations when in regular theme view
+* Added detect for custom field key 'Thumbnail' to work first before using WP 2.9 Thumbs, for those who've been using this method already
+
+
+= Version 1.9.7 =
+
+* Added Post Thumbnails View option (WordPress 2.9 only) for main post listings
+* Added option to show neither post thumbnails nor calendar icons
+* Added style option to choose the font of H2 elements on post listings, single entries and pages
+* Various style & code improvements and fixes
+
+
+= Version 1.9.6 =
+
+* Fixed php logic in adsense-new.php (thx JeanPaulH)
+* Added support for GigPress' Upcoming Shows to be a drop down in the header menu
+* Changed relative comments logic, added function for GMT detection
+* Adding padding, size to multipage links
+* Removed WP version from footer (security vulnerability)
+* Changed admin RSS feed from Support Topics to Twitter Topics
+* Updated admin settings image
+* Fixed cutoff tweets from WordTwit in the drop-down
+* Verified WP 2.9 compatibility
+
+
+= Version 1.9.5 =
+
+* Added Twitter updates menu item support for WordTwit's new features
+* Added CSS for TweetThis and AddThis plugins to be hidden
+* Added page/post title to HEAD for Tweet purposes
+* Added user agent detection for non-apple mobile devices to be served Twitter link correctly
+* Added 180-degree animation to post-arrow dropper and removed excess JS and code
+* Added new tab pane for the header (menu, tags, categories, account)
+* Added more theme compatibility for other touch devices
+* Added 'edit, delete, spam' links for admins on comments
+* Changed default OBJECT and EMBED css to only apply to .post, not site-wide
+* Changed comment ajax routine
+* Changed 'Links' appearance adding support for link categories, removed favicon scripts
+* Changed the way the header links are setup
+* Small refinements in the theme CSS all-around
+* Made progress towards reply and pagination in comments, not there yet
+
+
+= Versions 1.9.4.x =
+
+* Fixed space appearing below title on single post pages
+* Added compressed js for the admin
+* Updated Fancybox script & files to v1.2.5
+* Updated Ajax Upload script to v3.6
+* Fix for re-direct issues introduced with 1.9.3.4
+* Fixes and changes for Adsense appearance
+* Fix for direct messages not working with WPtouch exclusive mode
+* Added spam check for Push direct messages via a nonce
+* Added verification for Prowl API key
+* Added ability to define custom user agents in the admin (go nuts!)
+* Minor admin styling changes
+* Dropped official support for WP 2.6 (sorry folks, you should update!)
+* Dropped 'skins' references, they'll be a part of WPtouch 2.0
+* Compressed style.css in theme for faster load times
+* Removed unused files
+
+
+= Versions 1.9.3.x =
+
+* Fixed issues with adsense ads
+* Fixed time since code bug on comments
+* Fixed issue where comment count could read as 0 when there were no comments
+* Fix for width bug in some situations when switching themes
+* Fix for scenarios where a different uploads folder path or name is used
+* Minor admin refinements
+* Porting CSS styles to a global sheet applicable to all our plugins
+* Push messages now come from your blogname not 'wptouch'
+* Switch link now re-directs to the page the switch request came from, not back to home
+* Changed downloads admin area to support topics rss feed
+* Added additional icons in the admin
+* Fixed international languages display of time since on comments
+* Fixed logic with PUSH notification via Prowl
+* Removed unneeded files
+* Bug fixes
+* Style fixes for the display of comments
+* Fixed issue where regular theme view would not allow pinching for zoom
+* Fixed JS bug in theme
+* Possible fix for time since on comments not working in some situations
+* Added option to disable Ajax comments for those who can't get them working
+
+
+= Versions 1.9.2.x =
+
+* Fixed issue where mobile switch to regular theme was always zoomed in and required refresh
+* Fixed issue where pages changed from published to unpublished still showed in the WPtouch menu
+* Fixed issue where 'Load More Entries' caused blank page or other issues. WPtouch now detect possible issues and defaults to pagination
+* WPtouch now loads minified versions of its CSS and JS for the theme, speeding up load times
+* Added check for wp-load.php before attempting ajax comments. Should fix WP comment posting issues. Working on better Disqus and Intense Debate support as well
+* Removed 'Find in this page' button, until bugs are resolved
+* Now WPtouch will not hide mobileSafari addressbar on single post pages on slower connections
+* Fixed bug where WPtouch admin would report that CURL wasn't installed even if it was
+
+
+= Version 1.9.1 =
+
+* Fixed bug for admin panel Ajax not working in some situations
+* Adsense re-enabled
+* Fixed bug where SPAM comments were pushed via Prowl
+* Push Notification options now announces if Curl is not available, instead of not appearing at all
+* Removed text-size adjust option, now replaced with user-adjustable font sizes
+* Minor code corrections
+
+
+= Version 1.9 =
+
+* Fully compatible with WordPress 2.6 - 2.8.x
+* Major rewrites of theme files, css for simplicity, CoreTheme
+* Adsense has been temporarily disabled until we update code for new Google API changes
+* Added experimental support for Opera Mini & Palm Pre mobile browsers
+* Added filter trackbacks and pingbacks from display in comment counts
+* Added friendly 'noscript' display bezel for users with javascript Turned off
+* Added support for Prowl Push notifications for comments, user registrations, and direct messages (if Curl exists on the server)
+* Added ability to exclude categories
+* Added native select for Tags
+* Added theme switch confirm message, saves a cookie to not repeat
+* Added jQuery color picker in admin hex areas for easy selections
+* Added link to online icon generator in admin
+* Added style declaration for images in comments
+* Added 'My Account' button in the sub//header for logged in users replacing Logout
+* Added theme skin selection support, still no other skins enabled yet
+* Added post-options bar on single post page
+* Added new background selections
+* Updated plugin compatibility listing now loads from bravenewcode.com
+* Updated style for comments, working on full support for WP 2.7 comments, Intense Debate
+* Updated success message for ajax comments
+* Updated font zoom replaced by font-size adjust button
+* Updated ajax upload script to v3.1
+* Updated fancybox to compressed v1.2.1
+* Updated Ajax Upload script to 3.2
+* Updated compatibility code (Various WordPress install scenarios) ~ thanks to Will Norris for the suggestions
+* Updated a check if comments are open before showing the comments link
+* Updated local jquery in exclusive mode to use WP, not Google
+* Updated admin style and design
+* Updated search now floats overtop the headerbar
+* Updated the_content_rss() for excerpts, created a custom function which handles it nicely
+* Updated several images in the core images folder, building more dependency on CoreTheme
+* Removed support for WordPress 2.3, lowest known WordPress version supported: 2.6
+* Removed 404 image with English text in it, replaced it with localized 404 text
+* Removed depreciated or unused functions from previous releases
+* Removed ability to disable jQuery; WPtouch Exclusive mode should fix JS issues
+* Fixed home link in menu drop down now respects the logo/bookmark icon choice
+* Fixed WP Spam Free users having had new comments blocked
+* Fixed WPtouch appearing zoomed out and wide
+* Fixed custom page icons not showing up on pages
+* Fixed some domains not showing the beta download/news areas
+* Fixed style issue for icons on pages
+* Fixed the way javascript is called for a elements, should work better in other mobile browsers
+* Fixed switch link issue where regular theme switch link was broken
+* Fixed issue where chosen pages and icons did not appear in the drop down
+* Fixed a variety of scenarios where paths to files and images were broken
+* Fixed a few areas that had text not yet localized, improperly coded
+* More preparation for languages support
+* Preparation for WPtouch 2.0 and themes support (based on CoreTheme)
+* Other minor optimizations, fixes, changes
+
+
+= Version 1.8.9.1 =
+
+* Fixed refresh issue (some pages keep re-loading)
+* Fixed mkdir issue on PHP4 installations
+* Set viewport to fixed width for device to prevent some sites from loading wide
+* Minor revisions to new CSS calendar icon styling
+* Added exclusive mode feature to help in situations where other plugins are incompatible, load too many scripts/css files and both break and slow down WPtouch
+* Added Fancybox for some feature descriptions in the admin
+
+
+= Versions 1.8.x =
+
+* Changed calendar icons from images to CSS-based only (they look sexay!)
+* Refined styling of header logo, text shadow, general appearance
+* Removed unneeded declarations from the WPtouch stylesheet
+* Tested and works efficiently with WordPress MU when installed site-wide (Finally!)
+* Disqus commenting plugins out-of-the-box styling enhancements
+* Changed post nav on the single post page to prev/next post, instead of entry titles for length's sake
+* Fixed bug related to RSS feeds being broken in some situations
+* Fixed fatal error on line 153 undefined 'is_front_page' function for WP 2.3.x users
+* Fixed jQuery failing to load for WP 2.3.x users
+* Added option for font-zoom on rotate for accessibility, on by default
+* Fixed various styling bugs
+* Changed switch link in WPtouch to remain fixed width
+* Fixed various content overflow issues in WPtouch theme files
+* As a note for WordPress 2.3 users, WPtouch 1.9 will require WordPress 2.5+
+* Fixed new switch link to work under different WordPress install scenarios
+* Fixed switch link CSS style-sheet loading issues in some situations
+* Fixed missing mime types for icon upload through IE7
+* Fixed issues related to automatic favicon generation on a Links page
+* Changed footer switch links to mimic iPhone settings app appearance
+* Fixed misc scenarios for ajax-upload errors
+* Fixed path issues related to custom icons (sites on windows servers)
+* Fixed issues related to ajax comments not working in some situations
+* Added check for 'Allow Comments' on pages
+* Fixed Apache error (reported in logs)
+* Fixed admin styling issues on IE7, Firefox
+* Fixed issue with custom icons and the header logo
+* Fixed issue with the Classic background not appearing
+* Significant rewrite of core code for increased efficiency
+* Changed database calls to use wpdb object, will hopefully work with wpmu
+* Internationalization preparation of the admin and theme files (for WPtouch 1.9)
+* Added ability to add/delete custom icons that survive WPtouch & WordPress upgrades
+* Added ability to select left/full text justification, 3 font sizes
+* Changed how WPtouch admin panel shows icons, more room for custom icons
+* Added channel capability for Adsense
+* Now suppresses banners created by the Ribbon Manger Plugin
+* Minor tweaks to login, register, admin links, footer appearance
+* Minor tweaks to drop down menus, header styling
+* More refinements for search, categories & tag pages, 'load more' link
+* Text & code refinements in the WPtouch admin
+* Experimental support for the Blackberry Storm
+* Fixed issue with WPtouch header title display issue
+* Fixed issue related to login/logout/admin/register link path issues
+* Fixed issue where Bookmarks link when Advanced JS is turned off
+* Fixed issue with default icon case
+* Fixed issue with switch code on systems with PHP4
+* Fixed issue related to fresh installs
+* Fixed issue with Android and the sub-header menu links not working
+
+
+= Versions 1.7.x =
+
+* Added option to do GZIP compression
+* Suppressed warning about multiple gzhandlers
+* Fixed user agent detection code
+* Added ability to choose if WPtouch or regular version of your site is shown first 
+* Fixed WP login/out button bugs
+* Added login/out auto-detect for WP 2.7 or pre-WP 2.7 sites
+* Fixed loading path issue that caused drop-down menu button to fail
+* Added choice between alphabetical or page order sorting of the drop down menu
+* Added clock icon
+* Fixes for categories drop-down menu (now shows post #'s)
+* Minor fix for categories drop-down menu
+* Automatic detection & support for Peter's anti-spam plugin
+* Built-in support for Adsense in posts
+* Moved Stats tracking box beside Advertising Options
+* Better WordPress version support detection
+* More refined image auto-sizing with WP added images & galleries in posts / pages
+* Fix for WordPress shortcodes appearing in excerpts
+* Changed how WPtouch shows switch links
+* Auto-adjusting width/height for MobileSafari plugin objects (YouTube, Quicktime)
+
+
+= Versions 1.6.x =
+
+* Auto-resizing images in posts/pages on orientation change!
+* Auto-resizing WP image galleries
+* Better support for captions on images, gallery items
+* Added the ability to enable a quick login button w/ drop-down in the WPtouch header
+* Added the ability to enable categories as a drop-down item in the WPtouch header
+* Added the ability to disable WPtouch automatic homepage redirection (resolves white page issue)
+* Added the ability to manually select a re-direct landing page
+* Refinements in WPtouch admin
+* Enhanced support for WordPress 2.7 admin
+* Re-designed post comment bubble icon
+* Input box to inject custom code (Google Analytics, MINT, etc) into WPtouch
+* Basic support for Incognito & WebMate browsers on iPhone & iPod touch
+* Other code fixes, cleanups & optimizations
+* Other theme style cleanups and enhancements
+
+
+= Versions 1.5.x =
+
+* Added support for WordPress image galleries
+* Added support for single post page split navigation
+* Fixed admin footer links which did not locate WordPress install correctly
+* Added basic Google Android support
+* Changes in WPtouch admin appearance and styling
+* Added donate message in WPtouch admin
+* WPtouch now supports WordPress 2.3 or higher
+
+
+= Versions 1.4.x =
+
+* More jQuery tune-ups, now loads through wp_enqueue_script() or Google to prevent collisions
+* Changed $J to $wptouch to prevent collisions using jQuery
+* Offloaded jQuery loading from our folder to Google instead for WP > 2.5 sites
+* Fixed a bug in wptouch.php on line 232, fixing drop-down menu display issue
+* Fixed a bug where blank admin options were allowed instead of refused
+* Fixed a bug with overriding the site title in the WPtouch admin
+* Fixed some instances where ajax comments would not work
+* Fixed a bug where the loading of javascript files would load in your site's default theme
+* Enhanced drop-down menu appearance
+* More compatibility with other plugins
+* Code cleanups and optimizations
+
+
+= Versions 1.3.x =
+
+* Tweaks for the jQuery bugs
+* No conflict setting added for jQuery
+* Support for DISQUS 2.0.2-x Plugin
+* Minor style edits and enhancements for the search dropdown
+* Another fix for drop-down Menu not working
+* Added ability to change the header border background color
+* Fix for slashes appearing before apostrophes in the header title
+* Admin wording changes, styling changes
+* Minor style enhancements to the theme
+* Fix for Menu not working on some installations
+* Style enhancements for the menu, search, drop downs
+* Style enhancements for comments, logged in users
+* Font adjustments for titles
+* Style changes for single post page heading, for better clarity
+* Admin wording changes
+
+
+= Versions 1.2.x =
+
+* Fix for the theme appearing in Safari browsers
+* Switch from Prototype to the more WordPress-native jQuery for javascript (much faster!)
+* Fix for wrong re-directs happening unintentionally if you use a static home page
+* Elimination of unneeded images, javascript (shaving more than 100KB!)
+* More template file cleanups, image & code optimizations
+* The addition of more comments in code templates to help you make custom modifications
+* Option to enable comments on pages
+* Option to manually enter in a new blog title (fixes cases where the blog title runs the length of the header and wraps)
+* Option to hide/show excerpts by default on the home, search, and archive pages
+* Switch code links are automatically injected into your regular theme's footer now, and is only seen on the iPhone/ipod touch
+* In all, despite the addition of new features we've cut load times for WPtouch in half with this release over 1.2.x releases!
+* The ability to disable Gravatars in comments (more control over optimization & speed)
+* Redundant, unused template file cleanups (archive.php, search.php & page.php are now all just index.php)
+* More style enhancements and tweaks, fixes
+* Switched to Snoopy from CURL for the admin news section (thanks to Joost de Valk (yoast.com)
+
+
+= Version 1.1 =
+
+* The ability to disable advanced javascript effects (fixes effects not working for some, speeds up the load time considerably)
+* Proper styling of embedded YouTube videos on mobileSafari in iPhone 2.0
+* Fix for the switch code not working on some blog installations
+* Redundant, unused code cleanups
+* More style enhancements and tweaks, fixes
+* the ability to enable/disable the default home, rss and email menu items
+* support for WordPress installations that have static home pages
+* dynamic WPtouch news in the administration panel
+* the ability to modify the default hyperlink color
+* major CSS & PHP cleaning, resulting in reduced size and faster load times
+* the ability to enable/disable tags, categories and author names on the index, search and author pages
+* support for DISQUS commenting
+* CSS refinements for comments, the drop-down menu, and overall appearance
+* styling for YouTube embedded videos
+* bug fixes for blogs installed in directories other than root
+
+
+= Version 1.0 = 
+
+* Initial release
+
+
+== Installation ==
+
+= 2.6 and Older =
+Sorry, we do not officially support installations on WordPress 2.6 or older. You can use WPtouch 1.9.3.4 or older on these installations, however.
+
+= 2.7, 2.8+ =
+You can install *WPtouch* directly from the WordPress admin! Visit the *Plugins/Add New* page and search for 'WPtouch'. Click to install.
+
+Once installed and activated visit the WPtouch admin page (*Settings/WPtouch*) to customize your WPtouch appearance.
+
+= WordPress MU =
+
+The best way to use WPtouch on WordPress MU is to do so via the "Activate WPtouch iPhone Theme Site Wide" link in the plugins area.
+
+* Install WPtouch, either manually or via the "Add New" option in the plugins menu
+* Ensure that you have site wide plugins enabled in the Site Admin / Options menu
+* On the plugin configuration page activate WPtouch as a site wide plugin by clicking the "Activate WPtouch iPhone Theme Site Wide" link.  If WPtouch is already activated, deactivate it first.
+
+You can also checkout our Support Forums at http://support.bravenewcode.com to post questions and learn tips and tricks for *WPtouch* and our other plugins.
+
+
+== Frequently Asked Questions ==
+
+= I thought the iPhone/iPod touch/Pre/Storm/Android shows my website fine the way it is now? =
+
+Yes, that's true for the most part. However, not all websites are created equal, with some sites failing to translate well in the viewport of a small mobile device. Many WordPress sites today make heavy use of different javascript files which significantly increase the load time of pages, and drive your visitors on 3G/EDGE batty. So we've come up with *WPtouch*, a lightweight, fast-loading, feature-rich and highly-customized "theme application" which includes an admin interface to let you customize many aspects of your site's presentation.
+
+= Well, what if my users don't like it and want to see my regular site? =
+
+There's a mobile switch option in the footer on *WPtouch* for your users with browsers that support cookies to easily switch between the *WPtouch* view and your site's regular appearance. It's that easy. We even automatically put a little snippet of code into your current theme which will be shown only to iPhone, iPod touch, Android or BlackBerry touch mobile device visitors, giving them control to switch between the two site themes easily.
+
+= Will it slow down my blog, or increase my server load? =
+
+Not bloody likely! Unless of course you're getting slammed with all sorts of traffic because you've installed this sexy plugin. The entire theme files footprint for *WPtouch* is small. It was designed to be as lightweight and speedy as possible, while still serving your site's content in a richly presented way, sparing no essential features like search, login, categories, tags, comments etc.
+
+== Screenshots ==
+
+1. Posts on the front page
+2. Post on the front page (w/ Post Thumbnails)
+3. Drop down menu navigation
+4. Push Messaging
+5. WordTwit plugin Twitter integration
+6. Single post page post meta, options bar, comments
+7. Ajax comment form
+8. Switch link in the footer
+9. Archives page appearance (auto-generated if you have a page called 'Archives')
+10. Sample regular page
Binary file web/wp-content/plugins/wptouch/screenshot-1.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-10.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-2.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-3.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-4.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-5.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-6.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-7.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-8.jpg has changed
Binary file web/wp-content/plugins/wptouch/screenshot-9.jpg has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/core/core-css/gigpress.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,303 @@
+/* @override http://www.wptouch.com/wp-content/plugins/wptouch/themes/core/core-css/gigpress.css */
+
+/*
+This is the default stylesheet.  DO NOT MAKE CHNAGES HERE!
+To customize any of these styles, copy the rules you which to change
+into a file called 'gigpress.css' in your current theme directory.
+Any style changes make there will override styles in this document.
+*/
+
+/* By default this is an h3 that appears above each artist's list of shows */
+h3.gigpress-artist-heading  {	
+}
+
+/* This span contains the RSS and iCal links for the artist */
+span.gigpress-artist-subscriptions {
+	margin-left: 5px;
+	float: right;
+}
+
+/* Meet the table that displays our shows */
+.gigpress-table {
+	border: none;
+	border-collapse: collapse;
+	border-top: 1px none #555;
+	margin-top: 15px;
+	margin-bottom: -1px;
+	clear: both;
+}
+
+/* This is for the main header cells containing the column labels */
+tr.gigpress-header th {
+	font-weight: bold;
+	padding-left: 11px;
+}
+
+/* Generic class for the table header cells */
+.gigpress-table th {
+	padding: 6px 8px;
+	vertical-align: middle;
+	text-align: left;
+	border-bottom: 1px solid #555;
+}
+
+/* This is for the tour name header cells */
+th.gigpress-heading {
+	background-color: #EEE;
+	border-bottom: 1px solid #555;
+}
+
+/* This is for the tour name headings, whichever one you're using */
+th.gigpress-heading h1, th.gigpress-heading h2, th.gigpress-heading h3, th.gigpress-heading h4, th.gigpress-heading h5 {
+	margin: 0;
+}
+
+/* Applies to all cells in the table */
+.gigpress-table td {
+	padding: 4px 0 5px 11px;
+	vertical-align: middle;
+	text-align: left;
+}
+
+/* Applies to the first row of each show listing */
+.gigpress-row td {
+	border-bottom: 1px solid #555;
+	background-color: #444;
+}
+
+/* To set an alternating row style */
+tr.gigpress-alt {
+}
+
+/* Individual classes for the label header cells that start the table */
+th.gigpress-date {
+}
+
+th.gigpress-artist {
+}
+
+th.gigpress-city {
+}
+
+th.gigpress-venue {
+}
+
+th.gigpress-country {
+}
+
+/* Likewise, individual classes for the content cells */
+td.gigpress-date {
+}
+
+td.gigpress-artist {
+}
+
+td.gigpress-city {
+}
+
+td.gigpress-venue {
+}
+
+td.gigpress-country {
+}
+
+/* Style for rows within a tour */
+tr.gigpress-tour td {
+	background-color: #F6F6F6;
+}
+
+/* Style for the first row after a tour ends in the list */
+tr.divider.gigpress-row td {
+	border-top: 2px solid #CCC;
+}
+
+/* The secondary row for each show, contains time, admission, etc */
+tr.gigpress-info td {
+	font-size: 90%;
+	color: #eee;
+	border-bottom: 1px solid #555;
+	background-color: #333;
+}
+
+/* Greys-out cancelled shows */
+tr.gigpress-row.cancelled, tr.gigpress-info.cancelled, tr.cancelled span.gigpress-info-label, tr.cancelled span.gigpress-info-item {
+	color: #999;
+}
+
+/* This wraps each of the bits of info in the "info" cell */
+span.gigpress-info-item {
+}
+
+/* For the labels for address, admission, etc in the "info" cell */
+span.gigpress-info-label {
+	color: #ccc;
+	font-weight: bold;
+}
+
+/* In case you want to style the "Buy Tickets" link */
+a.gigpress-tickets-link {
+	font-weight: bold;
+	text-transform: uppercase;
+	font-size: 12px;
+	text-align: left;
+	display: inline-block;
+	margin: 0;
+	padding: 5px 0 10px;
+}
+
+/* Notices for Cancelled or Sold Out shows */
+strong.gigpress-cancelled, strong.gigpress-soldout {
+	text-transform: uppercase;
+	font-weight: bold;
+	padding: 1px;
+	color: #111;
+	background: #fffdeb;
+	border: 1px solid #EEE;
+	background: #111;
+	color: #FFF;
+	border: none;
+}
+
+/* In case you want to style the Googlefied address link */
+a.gigpress-address {
+	margin: 0;
+	padding: 0;
+}
+
+
+/* These styles control the peek-a-boo "add" links to iCal and Google Calendar. Behaviour dictated by a separate jQuery script. */
+td.gigpress-links-cell {
+	vertical-align: top;
+}
+
+.gigpress-calendar-add {
+	position: relative;
+}
+
+a.gigpress-links-toggle {
+	display: block;
+	text-indent: -9999px;
+	width: 11px;
+	height: 11px;
+	background: transparent url(../images/calendar-toggle.png) no-repeat left top;
+	cursor: pointer;
+}
+
+a.gigpress-links-toggle:hover {
+	background-position: -11px 0px;
+}
+
+a.gigpress-link-active {
+	background-position: -33px;
+}
+
+a.gigpress-link-active:hover {
+	background-position: -22px;
+}
+
+div.gigpress-calendar-links {
+	display: none;
+	position: absolute;
+	left: 20px;
+	top: -1.2em;
+	width: 15em;
+	padding-left: 7px;
+	background: transparent url(../images/calendar-links-bg.png) no-repeat left center;
+}
+
+.gigpress-calendar-links-inner {
+	background-color: #F3F3F3;
+	padding: 6px 8px;
+	font-size: 11px;
+	line-height: 16px;
+	border: 1px solid #CCC;
+	border-width: 1px 1px 1px 0;
+}
+
+div.gigpress-calendar-links span {
+	display: block;
+}
+
+/* These are for the RSS/iCal subscribe links */
+p.gigpress-subscribe {
+	text-align: left;
+	color: #999;
+	display: none;
+}
+
+p.gigpress-subscribe a {
+	display: inline-block;
+	text-indent: -9999px;
+	width: 12px;
+	margin: 0 3px;
+}
+
+a.gigpress-rss, a.gigpress-rss:hover {
+	background: transparent url(../images/feed-icon-12x12.png) no-repeat left center;	
+}
+
+a.gigpress-ical, a.gigpress-ical:hover {
+	background: transparent url(../images/icalendar-icon.gif) no-repeat left center;	
+}
+
+
+/* These styles are for the sidebar listing */
+
+/* This is the unordered list that holds the dates */
+ul.gigpress-listing {
+}
+
+/* Generic styles for the list items within */
+.gigpress-listing li {	
+}
+
+/* For artist headings in the sidebar */
+h3.gigpress-list-artist-heading {
+}
+
+/* For tour headings in the sidebar */
+span.gigpress-list-tour-heading {	
+	font-weight: bold;
+	font-size: 110%;
+}
+
+/* So if you like you can style each alternating list item differently */
+li.gigpress-alt {
+}
+
+/* So if you like you can style the date differently */
+span.gigpress-sidebar-date {
+	font-weight: bold;
+	display: block;
+}
+
+/* Sold Out shows in the sidebar */
+ul.gigpress-listing strong.gigpress-soldout {
+	display: block;
+}
+
+
+/* These styles control the Related Show list that appears in the body of Related Posts */
+ul.gigpress-related-show {
+	margin-bottom: 2em;
+}
+
+.gigpress-related-label {
+	font-weight: bold;
+}
+
+.gigpress-related-item {
+}
+
+
+/* This is just to include data for hcalendar support, but hide it from view */
+.hide {
+	display: none;
+}
+
+/* Stop Firefox from underlining our abbreviated dates */
+abbr {
+	border: none;
+	text-decoration: none;
+	font-size: 100%;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/core/core-css/wptouch-switch-link.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,30 @@
+/* WPtouch Switch Link CSS */
+
+/* This CSS loads on your regular site theme when it is viewed on our supported devices, and doesn't affect your regular css */
+
+/* @group Switch Link */
+
+#wptouch-switch-link {
+	-webkit-border-radius: 14px !important;
+	border: 1px solid #adadad !important;
+	background-color: #fff !important;
+	margin-left: auto !important;
+	margin-right: auto !important;
+	padding: 15px !important;
+	margin-bottom: 40px !important;
+	text-align: left !important;
+	color: #222 !important;
+	position: relative !important;
+	clear: both !important;
+	width: 375px !important;
+	font: bold x-large/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+
+img.wptouch-switch-image {
+	position: absolute !important;
+	right: 15px !important;
+	height: 34px !important;
+	top: 12px !important;
+}
+
+/* @end */
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/core/core-functions.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,216 @@
+<?php 
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// WPtouch Core Header Functions
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+function wptouch_core_header_enqueue() {
+	$version = get_bloginfo('version'); 
+		if (!bnc_wptouch_is_exclusive()) { 
+		wp_enqueue_script('wptouch-core', '' . compat_get_plugin_url( 'wptouch' ) . '/themes/core/core.js', array('jquery'),'1.9' );		
+		wp_head(); 
+
+		} elseif (bnc_wptouch_is_exclusive()) { 
+		echo "<script src='" . get_bloginfo('wpurl') . "/wp-includes/js/jquery/jquery.js' type='text/javascript' charset='utf-8'></script>\n";
+		echo "<script src='" . compat_get_plugin_url( 'wptouch' ) . "/themes/core/core.js' type='text/javascript' charset='utf-8'></script>\n"; 
+		 }
+	}
+  
+function wptouch_core_header_home() {
+	if (bnc_is_home_enabled()) {
+		echo sprintf(__( "%sHome%s", "wptouch" ), '<li><a href="' . get_bloginfo('home') . '"><img src="' . bnc_get_title_image() . '" alt=""/>','</a></li>');
+	}
+}
+  
+function wptouch_core_header_pages() {
+	$pages = bnc_wp_touch_get_pages();
+	global $blog_id;
+	foreach ($pages as $p) {
+		if ( file_exists( compat_get_plugin_dir( 'wptouch' ) . '/images/icon-pool/' . $p['icon'] ) ) {
+			$image = compat_get_plugin_url( 'wptouch' ) . '/images/icon-pool/' . $p['icon'];	
+		} else {
+		$image = compat_get_upload_url() . '/wptouch/custom-icons/' . $p['icon'];
+	}
+		echo('<li><a href="' . get_permalink($p['ID']) . '"><img src="' . $image . '" alt="icon" />' . $p['post_title'] . '</a></li>'); 
+	}
+  }
+ 
+function wptouch_core_header_rss() {
+	if (bnc_is_rss_enabled()) {
+		echo sprintf(__( "%sRSS Feed%s", "wptouch" ), '<li><a href="' . get_bloginfo('rss2_url') . '"><img src="' . compat_get_plugin_url( 'wptouch' ) . '/images/icon-pool/RSS.png" alt="" />','</a></li>');
+	}
+}
+
+function wptouch_core_header_email() {
+	if (bnc_is_email_enabled()) {
+		echo sprintf(__( "%sE-Mail%s", "wptouch" ), '<li><a href="mailto:' . get_bloginfo('admin_email') . '"><img src="' . compat_get_plugin_url( 'wptouch' ) . '/images/icon-pool/Mail.png" alt="" />','</a></li>');
+	}
+} 
+  
+function wptouch_core_header_check_use() {
+	if (false && function_exists('bnc_is_iphone') && !bnc_is_iphone()) {
+		echo '<div class="content post">';
+		echo sprintf(__( "%sWarning%s", "wptouch" ), '<a href="#" class="h2">','</a>');
+		echo '<div class="mainentry">';
+		echo __( "Sorry, this theme is only meant for use with WordPress on certain smartphones.", "wptouch" );
+		echo '</div></div>';
+		echo '' .get_footer() . '';
+		echo '</body>';
+	die; 
+	} 
+}
+
+function wptouch_core_header_styles() {
+	include('core-styles.php' );
+}
+
+function wptouch_agent($browser) {
+	$useragent = $_SERVER['HTTP_USER_AGENT'];
+		return strstr($useragent,$browser);
+	}
+
+function wptouch_twitter_link() {
+	if(wptouch_agent("iphone") || wptouch_agent("ipod") || wptouch_agent("aspen") != FALSE) {
+		echo '<li><a href="javascript:(function(){var%20f=false,t=true,a=f,b=f,u=\'\',w=window,d=document,g=w.open(),p,linkArr=d.getElementsByTagName(\'link\');for(var%20i=0;i%3ClinkArr.length&&!a;i++){var%20l=linkArr[i];for(var%20x=0;x%3Cl.attributes.length;x++){if(l.attributes[x].nodeName.toLowerCase()==\'rel\'){p=l.attributes[x].nodeValue.split(\'%20\');for(y=0;y%3Cp.length;y++){if(p[y]==\'short_url\'||p[y]==\'shorturl\'||p[y]==\'shortlink\'){a=t;}}}if(l.attributes[x].nodeName.toLowerCase()==\'rev\'&&l.attributes[x].nodeValue==\'canonical\'){a=t;}if(a){u=l.href;}}}if(a){go(u);}else{var%20h=d.getElementsByTagName(\'head\')[0]||d.documentElement,s=d.createElement(\'script\');s.src=\'http://api.bit.ly/shorten?callback=bxtShCb&longUrl=\'+encodeURIComponent(window.location.href)+\'&version=2.0.1&login=amoebe&apiKey=R_60a24cf53d0d1913c5708ea73fa69684\';s.charSet=\'utf-8\';h.appendChild(s);}bxtShCb=function(data){var%20rs,r;for(r%20in%20data.results){rs=data.results[r];break;}go(rs[\'shortUrl\']);};function%20go(u){return%20g.document.location.href=(\'http://twitter.com/home/?status=\'+encodeURIComponent(document.title+\'%20\'+u));}})();" id="otweet"></a></li>';
+	} else {
+		echo '<li><a href="javascript:return false;" onclick="wptouch_toggle_twitter();" id="otweet"></a></li>';
+	}
+}
+
+function wptouch_tags_link() {
+	if(wptouch_agent("iphone") || wptouch_agent("ipod") || wptouch_agent("aspen") != FALSE) {
+	} else {
+		echo '<a href="#head-tags">' . __( "Tags", "wptouch" ) . '</a>';
+	}
+}
+
+function wptouch_cats_link() {
+	if(wptouch_agent("iphone") || wptouch_agent("ipod") || wptouch_agent("aspen") != FALSE) {
+	} else {
+		echo '<a href="#head-cats">' . __( "Categories", "wptouch" ) . '</a>';
+	}
+}
+
+function bnc_get_ordered_cat_list() {
+	// We created our own function for this as wp_list_categories doesn't make the count linkable
+
+	global $table_prefix;
+	global $wpdb;
+
+	$sql = "select * from " . $table_prefix . "term_taxonomy inner join " . $table_prefix . "terms on " . $table_prefix . "term_taxonomy.term_id = " . $table_prefix . "terms.term_id where taxonomy = 'category' order by count desc";	
+	$results = $wpdb->get_results( $sql );
+	foreach ($results as $result) {
+		echo "<li><a href=\"" . get_category_link( $result->term_id ) . "\">" . $result->name . " (" . $result->count . ")</a></li>";
+	}
+
+}
+
+  
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// WPtouch Core Body Functions
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////  
+
+function wptouch_core_body_background() {
+	$wptouch_settings = bnc_wptouch_get_settings();
+	echo $wptouch_settings['style-background'];
+  }
+  
+function wptouch_core_body_sitetitle() {  
+	$str = bnc_get_header_title(); 
+	echo stripslashes($str);  
+  }
+
+function wptouch_core_body_result_text() {  
+	global $is_ajax; if (!$is_ajax) {
+			if (is_search()) {
+				echo sprintf( __("Search results &rsaquo; %s", "wptouch"), get_search_query() );
+			} if (is_category()) {
+				echo sprintf( __("Categories &rsaquo; %s", "wptouch"), single_cat_title("", false));
+			} elseif (is_tag()) {
+				echo sprintf( __("Tags &rsaquo; %s", "wptouch"), single_tag_title("", false));
+			} elseif (is_day()) {
+				echo sprintf( __("Archives &rsaquo; %s", "wptouch"),  get_the_time('F jS, Y'));
+			} elseif (is_month()) {
+				echo sprintf( __("Archives &rsaquo; %s", "wptouch"),  get_the_time('F, Y'));
+			} elseif (is_year()) {
+				echo sprintf( __("Archives &rsaquo; %s", "wptouch"),  get_the_time('Y'));
+		}
+	}
+}
+
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// WPtouch Core Footer Functions
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////  
+
+function wptouch_core_else_text() {	
+	 global $is_ajax; if (($is_ajax) && !is_search()) {
+		echo '' . __( "No more entries to display.", "wptouch" ) . '';
+	 } elseif (is_search() && ($is_ajax)) {
+		echo '' . __( "No more search results to display.", "wptouch" ) . '';
+	 } elseif (is_search() && (!$is_ajax)) {
+	 	echo '<div style="padding-bottom:127px">' . __( "No search results results found.", "wptouch" ) . '<br />' . __( "Try another query.", "wptouch" ) . '</div>';
+	 } else {
+	  echo '<div class="post">
+	  	<h2>' . __( "404 Not Found", "wptouch" ) . '</h2>
+	  	<p>' . __( "The page or post you were looking for is missing or has been removed.", "wptouch" ) . '</p>
+	  </div>';
+	}
+}
+
+function wptouch_core_footer_switch_link() {	
+	$switch_url = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
+
+echo '<script type="text/javascript">function switch_delayer() { window.location = "' . get_bloginfo('siteurl') . '/?theme_view=normal&wptouch_redirect=' . $switch_url . '"}</script>';
+echo '' . __( "Mobile Theme", "wptouch" ) . ' <a id="switch-link" onclick="wptouch_switch_confirmation(); return false;" href="#"></a>';
+}
+
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// WPtouch Standard Functions
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////  
+  
+// Check if certain plugins are active
+function wptouch_is_plugin_active($plugin_filename) {
+	$plugins = get_option('active_plugins');
+		if( !is_array($plugins) ) settype($plugins,'array');			
+		return ( in_array($plugin_filename, $plugins) ) ;
+}
+
+//Filter out pingbacks and trackbacks
+add_filter('get_comments_number', 'comment_count', 0);
+function comment_count( $count ) {
+	global $id;
+	$comments = get_approved_comments($id);
+	$comment_count = 0;
+	foreach($comments as $comment){
+		if($comment->comment_type == ""){
+			$comment_count++;
+		}
+	}
+	return $comment_count;
+}
+
+// Add 'Delete | Spam' links in comments for logged in admins
+ function wptouch_moderate_comment_link($id) {  
+	  if (current_user_can('edit_post')) {  
+     echo '<a href="' . admin_url("comment.php?action=editcomment&c=$id") . '">' . __('edit') . '</a>';  
+     echo '<a href="' . admin_url("comment.php?action=cdc&c=$id") . '">' . __('del') . '</a>';  
+     echo '<a href="' . admin_url("comment.php?action=cdc&dt=spam&c=$id") . '">' . __('spam') . '</a>';  
+   }  
+ }  
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// WPtouch Filters
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+remove_filter('the_excerpt', 'do_shortcode');   
+remove_filter('the_content', 'do_shortcode');
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// WPtouch WP Thumbnail Support
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+$version = bnc_get_wp_version();
+if ($version >= 2.9) {
+add_theme_support( 'post-thumbnails', array( 'post' ) ); // Add it for posts
+set_post_thumbnail_size( 50, 50, true ); // 50 pixels wide by 50 pixels tall, hard crop mode
+}
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/core/core-header.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head profile="http://gmpg.org/xfn/11">
+	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
+	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
+	<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />
+	<title><?php wp_title('&laquo;', true, 'right'); ?> <?php $str = bnc_get_header_title(); echo stripslashes($str); ?></title>
+	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
+	<link rel="apple-touch-icon" href="<?php echo bnc_get_title_image(); ?>" />
+	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style-compressed.css" type="text/css" media="screen" />
+	<link rel="stylesheet" href="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-css/gigpress.css" type="text/css" media="screen" />
+	<?php wptouch_core_header_styles(); wptouch_core_header_enqueue(); ?>
+	<?php if (!is_single()) { ?>
+		<script type="text/javascript">
+			addEventListener("load", function() { 
+				setTimeout(hideURLbar, 0); }, false);
+				function hideURLbar(){
+				window.scrollTo(0,1);
+			}
+		</script>
+<?php } ?>
+</head>
\ No newline at end of file
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/ajax-loader.gif has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/argyle-tie.gif has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/arrow.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/blank_gravatar.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/delicious.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/digg.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/magnolia.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/newsvine.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/reddit.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/bookmarks/technorati.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/com_arrow.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/comment-ajax-loader.gif has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/gigpress.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/grid.gif has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/head-close.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/head-fade-bk.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/menu-sprite.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/menu/wptouch-menu-acct.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/menu/wptouch-menu-cats.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/menu/wptouch-menu-login.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/menu/wptouch-menu-tags.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/off.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/on.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/onoff.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/pinstripes-classic.gif has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/pinstripes-diagonal.gif has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/pinstripes-horizontal.gif has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/post-arrow.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/post-options.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/push-fail.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/push-icon.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/push-success.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/quotes.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/skated-concrete.gif has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/sprite.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumb-corners.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/1.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/10.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/11.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/12.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/13.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/14.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/15.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/16.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/17.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/18.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/19.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/2.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/20.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/21.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/22.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/23.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/24.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/3.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/4.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/5.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/6.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/7.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/8.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/9.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/thumbs/thumb-empty.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/twitter-arrow.jpg has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/twitter/tweetie.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/twitter/twinkle.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/twitter/twittelator.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/twitter/twitteriffic.png has changed
Binary file web/wp-content/plugins/wptouch/themes/core/core-images/wptouch-menu-dropper.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/core/core-styles.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,24 @@
+<style type="text/css">
+#headerbar, #wptouch-login, #wptouch-search {
+	background: #<?php echo bnc_get_header_background(); ?> url(<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/head-fade-bk.png);
+}
+#headerbar-title, #headerbar-title a {
+	color: #<?php echo bnc_get_header_color(); ?>;
+}
+#wptouch-menu-inner a:hover {
+	color: #<?php echo bnc_get_link_color(); ?>;
+}
+#catsmenu-inner a:hover {
+	color: #<?php echo bnc_get_link_color(); ?>;
+}
+#drop-fade {
+background: #<?php echo bnc_get_header_border_color(); ?>;
+}
+a, h3#com-head {
+	color: #<?php echo bnc_get_link_color(); ?>;
+}
+
+a.h2, a.sh2, .page h2 {
+font-family: '<?php echo bnc_get_h2_font(); ?>';
+}
+</style>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/core/core.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,140 @@
+/*
+ * WPtouch 1.9.x -The WPtouch Core JS File
+ * This file holds all the default jQuery & Ajax functions for the theme
+ * Copyright (c) 2008-2009 Duane Storey & Dale Mugford (BraveNewCode Inc.)
+ * Licensed under GPL.
+ *
+ * Last Updated: December 24th, 2009
+ */
+
+/////// -- Get out of frames! -- ///////
+if (top.location!= self.location) {top.location = self.location.href}
+
+
+/////// -- Let's play nice in jQuery -- ///////
+$wptouch = jQuery.noConflict();
+
+
+/////// -- Switch Magic -- ///////
+function wptouch_switch_confirmation() {
+if (document.cookie && document.cookie.indexOf("wptouch_switch_cookie") > -1) {
+// just switch
+	$wptouch("a#switch-link").toggleClass("offimg");
+	setTimeout('switch_delayer()', 1250); 
+} else {
+// ask first
+	var answer = confirm("Switch to regular view? \n \n You can switch back to mobile view again in the footer.");
+	if (answer){
+	$wptouch("a#switch-link").toggleClass("offimg");
+	setTimeout('switch_delayer()', 1350); 
+		}
+	}
+}
+
+setTimeout(function() { $wptouch('#prowl-success').fadeOut(400); }, 5250);
+setTimeout(function() { $wptouch('#prowl-fail').fadeOut(400); }, 5250);
+
+//  function wptouch_toggle_text() {
+//	  $wptouch("p").toggleClass("fontsize");
+//  }
+
+
+/////// -- Menus -- ///////
+// Creating a new function, fadeToggle()
+$wptouch.fn.fadeToggle = function(speed, easing, callback) { 
+	return this.animate({opacity: 'toggle'}, speed, easing, callback); 
+};
+ 
+function bnc_jquery_menu_drop() {
+	$wptouch('#wptouch-menu').fadeToggle(400);
+	$wptouch("#headerbar-menu a").toggleClass("open");
+}
+
+function bnc_jquery_login_toggle() {
+	$wptouch('#wptouch-login').fadeToggle(400);
+}
+
+function bnc_jquery_search_toggle() {
+	$wptouch('#wptouch-search').fadeToggle(400);
+}
+
+function bnc_jquery_gigpress_toggle() {
+	$wptouch('#wptouch-gigpress').fadeToggle(400);
+}
+
+
+function bnc_jquery_prowl_open() {
+	$wptouch('#prowl-message').fadeToggle(400);
+}
+
+function bnc_jquery_wordtwit_open() {
+	$wptouch('#wptouch-wordtwit').fadeToggle(400);
+}
+
+
+/////// -- Ajax comments -- ///////
+function bnc_showhide_coms_toggle() {
+	$wptouch('#commentlist').fadeToggle(400);
+	$wptouch("img#com-arrow").toggleClass("com-arrow-down");
+	$wptouch("h3#com-head").toggleClass("comhead-open");
+}
+
+function commentAdded() {
+    if ($wptouch('#errors')) {
+        $wptouch('#errors').hide();
+	}
+        
+    if ($wptouch('#nocomment')) {
+        $wptouch('#nocomment').hide();
+    }
+    
+    if($wptouch('#hidelist')) {
+        $wptouch('#hidelist').hide();
+    }
+
+    $wptouch("#commentform").hide();
+    $wptouch("#the-new-comment").fadeIn(400);
+    $wptouch("#refresher").fadeIn(400);
+}
+
+
+/////// --Single Post Page -- ///////
+
+function wptouch_toggle_twitter() {
+	$wptouch('#twitter-box').fadeToggle(400);
+}
+
+function wptouch_toggle_bookmarks() {
+	$wptouch('#bookmark-box').fadeToggle(400);
+}
+
+/////// --jQuery Tabs-- ///////
+
+$wptouch(function () {
+    var tabContainers = $wptouch('#menu-head > ul');
+    
+    $wptouch('#tabnav a').click(function () {
+        tabContainers.hide().filter(this.hash).show();
+        
+        $wptouch('#tabnav a').removeClass('selected');
+        $wptouch(this).addClass('selected');
+        
+        return false;
+    }).filter(':first').click();
+});
+
+/////// -- Tweak jQuery Timer -- ///////
+$wptouch.timerId = setInterval(function(){
+	var timers = jQuery.timers;
+	for (var i = 0; i < timers.length; i++) {
+		if (!timers[i]()) {
+			timers.splice(i--, 1);
+		}
+	}
+	if (!timers.length) {
+		clearInterval(jQuery.timerId);
+		jQuery.timerId = null;
+	}
+}, 83);
+
+// End WPtouch jS
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/comments-ajax.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,70 @@
+<?php
+// This relative path will find what we need... kinda dirty, but it's a failsafe
+require_once( dirname(__FILE__) . '../../../../../../wp-load.php' ); 
+// Make sure the server returns the fact that this is a real file and it exists, even though its outside WordPress
+header("HTTP/1.1 200 OK");
+
+// AJAX COMMENTS
+//No need to modify this file, it works under all installations
+
+global $comment, $comments, $post, $wpdb, $user_ID, $user_identity, $user_email, $user_url;
+function fail($s) {
+	header('HTTP/1.0 500 Internal Server Error');
+	echo $s;
+	exit;
+  }
+foreach ($_GET as $k => $v) {
+	$_GET[$k] = urldecode($v);
+  }
+
+$comment_post_ID = (int)$_GET['comment_post_ID'];
+$post_status = $wpdb->get_var("SELECT comment_status FROM $wpdb->posts WHERE ID = '$comment_post_ID'");
+if (empty($post_status)) {
+	do_action('comment_id_not_found', $comment_post_ID);
+	fail( __('The post you are trying to comment on does not curently exist in the database.', 'wptouch') );
+  } elseif ('closed' == $post_status) {
+	do_action('comment_closed', $comment_post_ID);
+	fail(__('Sorry, comments are closed for this item.', 'wptouch'));
+  }
+
+$comment_author = trim($_GET['author']);
+$comment_author_email = trim($_GET['email']);
+$comment_author_url = trim($_GET['url']);
+$comment_content = trim($_GET['comment']);
+
+// If the user is logged in
+get_currentuserinfo();
+	if ($user_ID) : 
+		$comment_author = addslashes($user_identity);
+		$comment_author_email = addslashes($user_email);
+		$comment_author_url = addslashes($user_url);
+	else : if 
+		(get_option('comment_registration'))
+		fail(__('Sorry, you must be logged in to post a comment.', 'wptouch'));
+	endif;
+
+$comment_type = '';
+if (get_settings('require_name_email') && !$user_ID) {
+	if (6 > strlen($comment_author_email) || '' == $comment_author)
+		fail(__('Error: please fill in the required fields', 'wptouch'));
+	elseif (!is_email($comment_author_email))
+		fail(__('Error: please enter a valid email address.', 'wptouch')); }
+	if ('' == $comment_content)
+		fail(__('Error: please type something in the comment area.', 'wptouch'));
+	$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'user_ID');
+	$new_comment_ID = wp_new_comment($commentdata);
+	if (!$user_ID) : 
+		setcookie('comment_author_' . COOKIEHASH, stripslashes($comment_author), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
+		setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
+		setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
+	endif;
+
+$comment = $wpdb->get_row("SELECT * FROM {$wpdb->comments} WHERE comment_ID = " . $new_comment_ID);
+$post->comment_status = $wpdb->get_var("SELECT comment_status FROM {$wpdb->posts} WHERE ID = {$comment_post_ID}");
+	ob_start();
+		$comments = array($comment);
+			include(TEMPLATEPATH . '/comments.php');
+		$commentout = ob_get_clean();
+			preg_match('#<li(.*?)>(.*)</li>#ims', $commentout, $matches);
+		echo "<li id=\"the-new-comment\" style=\"display:none\"" . $matches[1] . ">" . $matches[2] . "</li>";
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/comments.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,135 @@
+<?php
+// Do not delete these lines
+	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
+		die ('Please do not load this page directly. Thanks!');
+
+	if ( post_password_required() ) { ?>
+		<p class="nocomments"><?php _e( "This post is password protected. Enter the password to view comments.", "wptouch" ); ?></p>
+	<?php
+		return;
+	}
+?>
+
+<!-- You can start editing below here... but make a backup first!  -->
+
+<div id="comment_wrapper">
+<?php comments_number( __('', 'wptouch'), __('<h3 onclick="bnc_showhide_coms_toggle();" id="com-head"><img id="com-arrow" src="' . compat_get_plugin_url( 'wptouch' ) . '/themes/core/core-images/com_arrow.png" alt="arrow" />1 Comment</h3>', 'wptouch'), __('<h3 onclick="bnc_showhide_coms_toggle();" id="com-head"><img id="com-arrow" src="' . compat_get_plugin_url( 'wptouch' ) . '/themes/core/core-images/com_arrow.png" alt="arrow" />% Comments</h3>', 'wptouch') ); ?>
+
+	<ol class="commentlist" id="commentlist">
+		<?php if ($comments) : ?>
+			<?php foreach ($comments as $comment) : ?>
+				<?php if (get_comment_type() == "comment") { ?>
+					<li class="<?php  echo $oddcomment; ?>" id="comment-<?php comment_ID(); ?>">
+						<div class="comwrap">
+								<div class="comtop<?php if ($comment->comment_approved == '0') : echo ' preview'; endif; ?>">		
+									<?php if (bnc_is_gravatars_enabled()) { echo get_avatar( $comment, $size = '32', $default = '' . compat_get_plugin_url( 'wptouch' ) . '/themes/core/core-images/blank_gravatar.jpg' ); } ?>
+									<div class="com-author"><?php comment_author_link(); ?></div> 	<?php if ($comment->comment_approved == '0') : echo '<span>(moderation preview)</span>'; endif; ?>
+										<div class="comdater"><span><?php wptouch_moderate_comment_link(get_comment_ID()); ?></span>
+											<?php if (function_exists('time_since')) { 
+												echo time_since(abs(strtotime($comment->comment_date_gmt . " GMT")), time()) . " ago"; } else { the_time('F jS, Y'); 
+											} ?>	
+										</div>									
+
+								</div><!--end comtop-->
+								<div class="combody">  
+									<?php comment_text(); //delete_comment_link(get_comment_ID()); ?>
+								</div>
+						</div><!--end comwrap-->
+					</li>
+		
+			<?php
+				/* Changes every other comment to a different class */
+				if ('alt' == $oddcomment) $oddcomment = '';  else $oddcomment = 'alt'; ?>
+				<?php } ?>
+				<?php endforeach;
+				/* end for each comment */
+			?>
+	  </ol>
+
+  <?php else : // this is displayed if there are no comments so far  ?>
+  
+	  <?php if ('open' == $post->comment_status) : ?>
+		  <!-- If comments are open, but there are no comments. -->
+		  <li id="hidelist" style="display:none"></li>
+		  </ol>
+	  
+	  <?php else : // comments are closed  ?>
+		  <!-- If comments are closed. -->
+		  <li style="display:none"></li>
+		  </ol>
+		  <h3 class="result-text"><?php _e( 'Comments are closed.', 'wptouch' ); ?></h3>
+  
+  	<?php endif; ?><!--end comment status-->
+	<?php endif; ?>
+ 
+  <div id="textinputwrap">
+  	<?php if ('open' == $post->comment_status) : ?>
+		<?php if (get_option('comment_registration') && !$user_ID) : ?>
+			<center>
+			<h1>
+				<?php sprintf( __( 'You must %slogin</a> or %sregister</a> to comment', 'wptouch' ), '<a href="' . get_option('wpurl') . '/wp-login.php">', '<a href="' . get_option('wpurl') . '"/wp-register.php">') ; ?>
+			</h1>
+			</center>
+
+	<?php else : ?>
+  	
+	<?php $filename = ABSPATH . 'wp-load.php';
+	 if (bnc_is_ajax_coms_enabled() && file_exists($filename)) { ?>
+
+		<div id="refresher" style="display:none;">
+			<img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/images/good.png" alt="checkmark" />
+			<h3><?php _e( "Comment added.", "wptouch" ); ?></h3>
+			&raquo; <a href="javascript:this.location.reload();"><?php _e( "Refresh the page", "wptouch" ); ?></a> <?php _e( "to post a new comment.", "wptouch" ); ?>
+		</div>
+			<form id="commentform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" onsubmit="$wptouch('#loading').fadeIn(100);var list = $wptouch('#commentlist'); var html = list.html(); var param = $wptouch('form').serialize(); $wptouch.ajax({url: '<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/default/comments-ajax.php?' + param, success: function(data, status){ list.append(data); commentAdded(); }, type: 'get' }); return false;">
+
+	<?php } else { ?>
+
+		<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
+
+	<?php } ?>
+
+	<?php if ($user_ID) : ?>
+
+		<p class="logged"  id="respond"><?php _e( "Logged in as", "wptouch" ); ?> <a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>:</p>
+	
+	<?php else : ?>
+	
+		<h3 id="respond"><?php _e( "Leave A Comment", "wptouch" ); ?></h3>
+		<p>
+			<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
+			<label for="author"><?php _e( 'Name', 'wptouch' ); ?> <?php if ($req) echo "*"; ?></label>
+		</p>
+
+		<p>
+			<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
+			<label for="email"><?php _e( 'Mail (unpublished)', 'wptouch' ); ?> <?php if ($req) echo "*"; ?></label>
+		</p>
+	
+		<p>
+			<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
+			<label for="url"><?php _e( 'Website', 'wptouch' ); ?></label>
+		</p>
+
+	<?php endif; ?>
+		<?php do_action('comment_form', $post->ID); ?>
+		<p><textarea name="comment" id="comment" tabindex="4"></textarea></p>
+		
+		<p>
+			<input name="submit" type="submit" id="submit" tabindex="5" value="Publish" />
+			<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />		
+			<div id="loading" style="display:none">
+				<img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/comment-ajax-loader.gif" alt="" /> <p><?php _e( 'Publishing...', 'wptouch' ); ?></p>
+			</div>
+		</p>
+		<div id="errors" style="display:none">
+			<?php _e( "There was an error. Please refresh the page and try again.", "wptouch" ); ?>
+		</div>				
+		</form>
+
+	<?php endif; // If registration required and not logged in ?>
+
+  </div><!--textinputwrap div-->
+</div><!-- comment_wrapper -->
+
+<?php endif; // if you delete this the sky will fall on your head ?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/footer.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,19 @@
+<div id="footer">
+
+	<center>
+		<div id="wptouch-switch-link">
+			<?php wptouch_core_footer_switch_link(); ?>
+		</div>
+	</center>
+	
+	<p><?php _e( "All content Copyright &copy;", "wptouch" ); ?> <?php $str = bnc_get_header_title(); echo stripslashes($str); ?></p>
+	<p><?php _e( 'Powered by', 'wptouch' ); ?> <a href="http://www.wordpress.org/"><?php _e( 'WordPress', 'wptouch' ); ?></a> <?php _e( '+', 'wptouch' ); ?> <a href="http://www.wptouch.com"><?php WPtouch(); ?></a></p>
+	<?php if ( !bnc_wptouch_is_exclusive() ) { wp_footer(); } ?>
+</div>
+
+<?php wptouch_get_stats(); 
+// WPtouch theme designed and developed by Dale Mugford and Duane Storey for BraveNewCode.com
+// If you modify it for yourself, please keep the link credit *visible* in the footer (and keep the WordPress credit, too!) that's all we ask folks.
+?>
+</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/functions.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,192 @@
+<?php 
+include( dirname(__FILE__) . '/../core/core-functions.php' ); 
+
+//---------------- Custom Drop-Down Tags Function ----------------// 
+//  function dropdown_tag_cloud( $args = '' ) {
+//  	$defaults = array(
+//  		'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45,
+//  		'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC',
+//  		'exclude' => '', 'include' => ''
+//  	);
+//  	$args = wp_parse_args( $args, $defaults );
+//  
+//  	$tags = get_tags( array_merge($args, array('orderby' => 'count', 'order' => 'DESC')) ); // Always query top tags
+//  
+//  	if ( empty($tags) )
+//  		return;
+//  
+//  	$return = core_header_tag_cloud( $tags, $args ); // Here's where those top tags get sorted according to $args
+//  	if ( is_wp_error( $return ) )
+//  		return false;
+//  	else
+//  		echo apply_filters( 'dropdown_tag_cloud', $return, $args );
+//  }
+//  
+//  function core_header_tag_cloud( $tags, $args = '' ) {
+//  	global $wp_rewrite;
+//  	$defaults = array(
+//  		'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45,
+//  		'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC'
+//  	);
+//  	$args = wp_parse_args( $args, $defaults );
+//  	extract($args);
+//  
+//  	if ( !$tags )
+//  		return;
+//  	$counts = $tag_links = array();
+//  	foreach ( (array) $tags as $tag ) {
+//  		$counts[$tag->name] = $tag->count;
+//  		$tag_links[$tag->name] = get_tag_link( $tag->term_id );
+//  		if ( is_wp_error( $tag_links[$tag->name] ) )
+//  			return $tag_links[$tag->name];
+//  		$tag_ids[$tag->name] = $tag->term_id;
+//  	}
+//  
+//  	$min_count = min($counts);
+//  	$spread = max($counts) - $min_count;
+//  	if ( $spread <= 0 )
+//  		$spread = 1;
+//  	$font_spread = $largest - $smallest;
+//  	if ( $font_spread <= 0 )
+//  		$font_spread = 1;
+//  	$font_step = $font_spread / $spread;
+//  
+//  	// SQL cannot save you; this is a second (potentially different) sort on a subset of data.
+//  	if ( 'name' == $orderby )
+//  		uksort($counts, 'strnatcasecmp');
+//  	else
+//  		asort($counts);
+//  
+//  	if ( 'DESC' == $order )
+//  		$counts = array_reverse( $counts, true );
+//  
+//  	$a = array();
+//  
+//  	$rel = ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : '';
+//  
+//  	foreach ( $counts as $tag => $count ) {
+//  		$tag_id = $tag_ids[$tag];
+//  		$tag_link = clean_url($tag_links[$tag]);
+//  		$tag = str_replace(' ', '&nbsp;', wp_specialchars( $tag ));
+//  		$a[] = "\t<option value='$tag_link'>$tag ($count)</option>";
+//  	}
+//  
+//  	switch ( $format ) :
+//  	case 'array' :
+//  		$return =& $a;
+//  		break;
+//  	case 'list' :
+//  		$return = "<ul class='wp-tag-cloud'>\n\t<li>";
+//  		$return .= join("</li>\n\t<li>", $a);
+//  		$return .= "</li>\n</ul>\n";
+//  		break;
+//  	default :
+//  		$return = join("\n", $a);
+//  		break;
+//  	endswitch;
+//  
+//  	return apply_filters( 'core_header_tag_cloud', $return, $tags, $args );
+//  }
+
+//---------------- Custom Exclude Cats Function ----------------//
+function exclude_category($query) {
+	$cats = wptouch_excluded_cats();
+	$icats = explode( ",", $cats );
+	$new_cats = array();
+	foreach( $icats as $icat ) {
+		$new_cats[] = "-" . $icat;
+}
+	$cats = implode( ",",  $new_cats );
+	
+	if ( $query->is_home ) {
+	$query->set('cat', $cats);
+	}
+return $query;
+}
+
+add_filter('pre_get_posts', 'exclude_category');
+
+
+//---------------- Custom Excerpts Function ----------------//
+function wptouch_trim_excerpt($text) {
+	$raw_excerpt = $text;
+	if ( '' == $text ) {
+		$text = get_the_content('');
+		$text = strip_shortcodes( $text );
+		$text = apply_filters('the_content', $text);
+		$text = str_replace(']]>', ']]&gt;', $text);
+		$text = strip_tags($text);
+		$excerpt_length = apply_filters('excerpt_length', 30);
+		$words = explode(' ', $text, $excerpt_length + 1);
+		if (count($words) > $excerpt_length) {
+			array_pop($words);
+			array_push($words, '...');
+			$text = implode(' ', $words);
+			$text = force_balance_tags( $text );
+		}
+	}
+	return apply_filters('wptouch_trim_excerpt', $text, $raw_excerpt);
+}
+
+
+//---------------- Custom Time Since Function ----------------//
+
+function time_since($older_date, $newer_date = false)
+	{
+	// array of time period chunks
+	$chunks = array(
+//	array(60 * 60 * 24 * 365 , 'yr'),
+	array(60 * 60 * 24 * 30 , 'mo'),
+	array(60 * 60 * 24 * 7, 'wk'),
+	array(60 * 60 * 24 , 'day'),
+	array(60 * 60 , 'hr'),
+	array(60 , 'min'),
+	);
+	
+	// $newer_date will equal false if we want to know the time elapsed between a date and the current time
+	// $newer_date will have a value if we want to work out time elapsed between two known dates
+	$newer_date = ($newer_date == false) ? (time()+(60*60*get_settings("gmt_offset"))) : $newer_date;
+	
+	// difference in seconds
+	$since = $newer_date - $older_date;
+	
+	// we only want to output two chunks of time here, eg:
+	// x years, xx months
+	// x days, xx hours
+	// so there's only two bits of calculation below:
+
+	// step one: the first chunk
+	for ($i = 0, $j = count($chunks); $i < $j; $i++)
+		{
+		$seconds = $chunks[$i][0];
+		$name = $chunks[$i][1];
+
+		// finding the biggest chunk (if the chunk fits, break)
+		if (($count = floor($since / $seconds)) != 0)
+			{
+			break;
+			}
+		}
+
+	// set output var
+	$output = ($count == 1) ? '1 '.$name : "$count {$name}s";
+
+	// step two: the second chunk
+	if ($i + 1 < $j)
+		{
+		$seconds2 = $chunks[$i + 1][0];
+		$name2 = $chunks[$i + 1][1];
+		
+		if (($count2 = floor(($since - ($seconds * $count)) / $seconds2)) != 0)
+			{
+			// add to output var
+			$output .= ($count2 == 1) ? ', 1 '.$name2 : ", $count2 {$name2}s";
+			}
+		}
+	
+	return $output;
+	}
+
+remove_filter('get_the_excerpt', 'wp_trim_excerpt');
+add_filter('get_the_excerpt', 'wptouch_trim_excerpt');
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/header.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,197 @@
+<?php 
+include( dirname(__FILE__) . '/../core/core-header.php' ); 
+// End WPtouch Core Header
+?>
+<body class="<?php wptouch_core_body_background(); ?>">
+<!-- New noscript check, we need js on now folks -->
+<noscript>
+<div id="noscript-wrap">
+	<div id="noscript">
+		<h2><?php _e("Notice", "wptouch"); ?></h2>
+		<p><?php _e("JavaScript for Mobile Safari is currently turned off.", "wptouch"); ?></p>
+		<p><?php _e("Turn it on in ", "wptouch"); ?><em><?php _e("Settings &rsaquo; Safari", "wptouch"); ?></em><br /><?php _e(" to view this website.", "wptouch"); ?></p>
+	</div>
+</div>
+</noscript>
+<!-- Prowl: if DM is sent, let's tell the user what happened -->
+<?php if (bnc_prowl_did_try_message()) { if (bnc_prowl_message_success()) { ?>
+<div id="prowl-success"><p><?php _e("Your Push Notification was sent.", "wptouch"); ?></p></div>
+	<?php } else { ?>
+<div id="prowl-fail"><p><?php _e("Your Push Notification cannot be delivered at this time.", "wptouch"); ?></p></div>
+<?php } } ?>
+
+<!--#start The Login Overlay -->
+	<div id="wptouch-login">
+		<div id="wptouch-login-inner">
+			<form name="loginform" id="loginform" action="<?php bloginfo('wpurl'); ?>/wp-login.php" method="post">
+				<label><input type="text" name="log" id="log" onfocus="if (this.value == 'username') {this.value = ''}" value="username" /></label>
+				<label><input type="password" name="pwd"  onfocus="if (this.value == 'password') {this.value = ''}" id="pwd" value="password" /></label>
+				<input type="hidden" name="rememberme" value="forever" />
+				<input type="hidden" id="logsub" name="submit" value="<?php _e('Login'); ?>" tabindex="9" />
+				<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
+			<a href="javascript: return false;" onclick="bnc_jquery_login_toggle();"><img class="head-close" src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/head-close.png" alt="close" /></a>
+			</form>
+		</div>
+	</div>
+
+ <!-- #start The Search Overlay -->
+	<div id="wptouch-search"> 
+ 		<div id="wptouch-search-inner">
+			<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
+				<input type="text" value="Search..." onfocus="if (this.value == 'Search...') {this.value = ''}" name="s" id="s" /> 
+				<input name="submit" type="hidden" tabindex="5" value="Search"  />
+			<a href="javascript: return false;" onclick="bnc_jquery_search_toggle();"><img class="head-close" src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/head-close.png" alt="close" /></a>
+			</form>
+		</div>
+	</div>
+
+	<div id="wptouch-menu" class="dropper"> 		
+        <div id="wptouch-menu-inner">
+	        <div id="menu-head">
+	        	<div id="tabnav">
+					<a href="#head-pages"><?php _e("Menu", "wptouch"); ?></a>
+		        	<?php if (bnc_is_tags_button_enabled()) { wptouch_tags_link(); } ?>
+	    	    	<?php if (bnc_is_cats_button_enabled()) { wptouch_cats_link(); } ?>
+	    	    	<?php if (bnc_is_login_button_enabled()) { ?>
+						<?php if (!is_user_logged_in()) { ?>
+						    <a href="#head-account" onclick="bnc_jquery_login_toggle();"><?php _e( 'Login', 'wptouch' ); ?></a>
+						<?php } else { ?>
+							 <a href="#head-account"><?php _e( 'My Account', 'wptouch' ); ?></a>
+						<?php } ?>
+					<?php } ?>
+	        	</div>
+	
+				<ul id="head-pages">
+					<?php wptouch_core_header_home(); ?>            
+					<?php wptouch_core_header_pages(); ?>
+					<?php wptouch_core_header_rss(); ?>
+					<?php wptouch_core_header_email(); ?>           
+				</ul>
+	
+				<ul id="head-cats">
+	  	 			<?php bnc_get_ordered_cat_list(); ?>
+				</ul>
+	
+				<ul id="head-tags">
+					<li><?php wp_tag_cloud('smallest=13&largest=13&unit=px&number=30&order=asc&format=list'); ?></li>
+				</ul>
+
+		<ul id="head-account">
+				<?php if (!is_user_logged_in()) { ?>
+				    <li class="text">
+				    	<?php _e( "Enter your username and password<br />in the boxes above.", "wptouch" ); ?>
+						<?php if (!get_option('comment_registration')) : ?>
+							<?php echo sprintf(__( "<br /><br />Not registered yet?<br />You can %ssign-up here%s.", "wptouch" ), '<a href="' . get_bloginfo('wpurl') . '/wp-register.php" target="_blank">','</a>'); ?>
+						<?php endif; ?>
+				    </li>
+				<?php } else { ?>
+					<?php if (current_user_can('edit_posts')) : ?>
+					<li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/"><?php _e("Admin", "wptouch"); ?></a></li>
+					<?php endif; ?>
+					<?php if (get_option('comment_registration')) { ?>
+					<li><a href="<?php bloginfo('wpurl'); ?>/wp-register.php"><?php _e( "Register for this site", "wptouch" ); ?></a></li>
+					<?php } ?>
+					<?php if (is_user_logged_in()) { ?>
+					<li><a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php _e( "Account Profile", "wptouch" ); ?></a></li>
+					<li><a href="<?php $version = (float)get_bloginfo('version'); if ($version >= 2.7) { ?><?php echo wp_logout_url($_SERVER['REQUEST_URI']); } else { bloginfo('wpurl'); ?>/wp-login.php?action=logout&redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?><?php } ?>"><?php _e( "Logout", "wptouch" ); ?></a></li>
+					<?php } ?>
+				<?php } ?>
+			</ul>
+			</div>
+		</div>
+    </div>
+
+	
+<div id="headerbar">
+	<div id="headerbar-title">
+		<!-- This fetches the admin selection logo icon for the header, which is also the bookmark icon -->
+		<img id="logo-icon" src="<?php echo bnc_get_title_image(); ?>" alt="<?php $str = bnc_get_header_title(); echo stripslashes($str); ?>" />
+		<a href="<?php bloginfo('home'); ?>"><?php wptouch_core_body_sitetitle(); ?></a>
+	</div>
+	<div id="headerbar-menu">
+		    <a href="#" onclick="bnc_jquery_menu_drop(); return false;"></a>
+	</div>
+</div>
+
+<div id="drop-fade">
+	<?php if (bnc_is_search_enabled()) { ?>			    
+    	<a id="searchopen" class="top" href="#" onclick="bnc_jquery_search_toggle(); return false;"><?php _e( 'Search', 'wptouch' ); ?></a>
+	<?php } ?>
+
+	<?php if (bnc_is_prowl_direct_message_enabled()) { ?>			    
+    	<a id="prowlopen" class="top" href="#" onclick="bnc_jquery_prowl_open(); return false;"><?php _e( 'Message', 'wptouch' ); ?></a>
+	<?php } ?>
+
+	<?php if ( function_exists( 'wordtwit_get_recent_tweets' ) && wordtwit_is_valid() && bnc_can_show_tweets() ) { ?>		    
+    	<a id="wordtwitopen" class="top" href="#" onclick="bnc_jquery_wordtwit_open(); return false;"><?php _e( 'Twitter', 'wptouch' ); ?></a>
+	<?php } ?>
+
+	<?php if ( function_exists( 'gigpress_shows' ) && bnc_is_gigpress_enabled()) { ?>			    
+    	<a id="gigpressopen" class="top" href="#" onclick="bnc_jquery_gigpress_toggle(); return false;"><?php _e( 'Tour Dates', 'wptouch' ); ?></a>
+	<?php } ?>
+
+ <!-- #start the Prowl Message Area -->
+ <div id="prowl-message" style="display:none">
+ 	 <div id="push-style-bar"></div><!-- filler to get the styling just right -->
+	 <img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/push-icon.png" alt="push icon" />
+	 <h4><?php _e( 'Send a Message', 'wptouch' ); ?></h4>
+	 <p><?php _e( 'This message will be pushed to the admin\'s iPhone instantly.', 'wptouch' ); ?></p>
+	 
+	 <form id="prowl-direct-message" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
+	 	<p>
+	 		<input name="prowl-msg-name"  id="prowl-msg-name" type="text" />
+	 		<label for="prowl-msg-name"><?php _e( 'Name', 'wptouch' ); ?></label>
+	 	</p>
+
+		<p>
+			<input name="prowl-msg-email" id="prowl-msg-email" type="text" />
+			<label for="prowl-msg-email"><?php _e( 'E-Mail', 'wptouch' ); ?></label>
+		</p>
+
+		<textarea name="prowl-msg-message"></textarea>
+		<input type="hidden" name="wptouch-prowl-message" value="1" /> 
+		<input type="hidden" name="_nonce" value="<?php echo wp_create_nonce( 'wptouch-prowl' ); ?>" />			
+		<input type="submit" name="prowl-submit" value="<?php _e('Send Now', 'wptouch' ); ?>" id="prowl-submit" />
+	 </form>
+	<div class="clearer"></div>
+ </div>
+
+<?php if ( function_exists( 'wordtwit_get_recent_tweets' ) && wordtwit_is_valid() && bnc_can_show_tweets() ) { ?>
+ <!-- #start the WordTwit Twitter Integration -->
+ 	<?php $tweets = wordtwit_get_recent_tweets(); ?>
+	<div id="wptouch-wordtwit" class="dropper" style="display:none">
+ 	 <div id="twitter-style-bar"></div><!-- filler to get the styling just right -->
+			<a  id="follow-arrow" href="http://twitter.com/<?php echo wordtwit_get_username(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/twitter-arrow.jpg" alt="follow me" /></a>
+		<div id="wordtwit-avatar">
+			<img src="<?php echo wordtwit_get_profile_url(); ?>" alt="Twitter Avatar" />
+				<p class="twitter_username"><?php echo wordtwit_get_username(); ?></p>
+				<p><a href="http://twitter.com/<?php echo wordtwit_get_username(); ?>" target="_blank">Follow me on Twitter</a></p>
+		</div>
+
+		<?php $now = time(); ?>
+		<ul id="tweets">
+			<?php foreach( $tweets as $tweet ) { ?>
+			<li>
+				<?php echo strip_tags( $tweet['content'], ''); ?>
+				<p class="time"><?php echo wordtwit_friendly_date( strtotime( $tweet['published'] ) ); ?></p>
+			</li>
+	  	 	<?php } ?>
+		</ul>
+</div>
+<?php } ?>
+
+<?php if (function_exists ('gigpress_shows')) { ?>
+ <!-- #start the GigPress Area -->
+	 <div id="wptouch-gigpress" class="dropper" style="display:none">
+	 	 <div id="gigpress-style-bar"></div><!-- filler to get the styling just right -->
+		 <img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/gigpress.png" alt="GigPress" />
+		 <h4><?php _e( 'Tour Dates', 'wptouch' ); ?></h4>		
+			<?php
+			    $options = array('scope' => 'upcoming', 'limit' => 10);
+			    echo gigpress_shows($options);
+			?>
+	 </div>
+ <?php } ?>
+</div>
+<!-- #start the wptouch plugin use check -->
+<?php wptouch_core_header_check_use(); ?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/index.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,171 @@
+<?php global $is_ajax; $is_ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']); if (!$is_ajax) get_header(); ?>
+<?php $wptouch_settings = bnc_wptouch_get_settings(); ?>
+
+<div class="content" id="content<?php echo md5($_SERVER['REQUEST_URI']); ?>">
+		
+	<div class="result-text"><?php wptouch_core_body_result_text(); ?></div>
+
+  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+ <div class="post" id="post-<?php the_ID(); ?>">
+ 
+ 		<?php if (!function_exists('dsq_comments_template') && !function_exists('id_comments_template')) { ?>
+				<?php if (wp_touch_get_comment_count() > 0 && !is_archive() && !is_search()) { ?>
+					<div <?php if ($wptouch_settings['post-cal-thumb'] == 'nothing-shown') { echo 'id="nothing-shown" ';} ?>class="comment-bubble<?php if (wp_touch_get_comment_count() > 99) echo('-big'); ?>">
+						<?php comments_number('0','1','%'); ?>
+					</div>
+				<?php } ?>
+		<?php } ?>			
+ 	
+ 	
+ 	<?php if (is_archive() || is_search()) { ?>
+		<div class="archive-top">
+			<div class="archive-top-right">
+				<?php if (bnc_excerpt_enabled()) { ?>
+				<script type="text/javascript">
+					$wptouch(document).ready(function(){
+						$wptouch("a#arrow-<?php the_ID(); ?>").click(function(event) {
+							$wptouch(this).toggleClass("post-arrow-down");
+							$wptouch('#entry-<?php the_ID(); ?>').fadeToggle(500);
+						});	
+					 });					
+				</script>
+					<a class="post-arrow" id="arrow-<?php the_ID(); ?>" href="javascript: return false;"></a>
+				<?php } ?>
+			</div> 
+		 <div id="arc-top" class="archive-top-left month-<?php echo get_the_time('m') ?>">
+			<?php echo get_the_time('M') ?> <?php echo get_the_time('j') ?>, <?php echo get_the_time('Y') ?>
+		 </div>
+		</div>
+ 	<?php } else { ?>	
+				<?php if (bnc_excerpt_enabled()) { ?>
+				<script type="text/javascript">
+					$wptouch(document).ready(function(){
+						$wptouch("a#arrow-<?php the_ID(); ?>").click(function(event) {
+							$wptouch(this).toggleClass("post-arrow-down");
+							$wptouch('#entry-<?php the_ID(); ?>').fadeToggle(500);
+						});	
+					});					
+				</script>
+
+					<a class="post-arrow" id="arrow-<?php the_ID(); ?>" href="javascript: return false;"></a>				
+				<?php } ?>
+				
+				
+				<?php 
+					$version = bnc_get_wp_version();
+					if ($version >= 2.9 && $wptouch_settings['post-cal-thumb'] != 'calendar-icons' && $wptouch_settings['post-cal-thumb'] != 'nothing-shown') { ?>
+					<div class="wptouch-post-thumb-wrap">
+						<div class="thumb-top-left"></div><div class="thumb-top-right"></div>
+					<div class="wptouch-post-thumb">
+						<?php 
+						if (function_exists('p75GetThumbnail')) { 
+						if ( p75HasThumbnail($post->ID) ) { ?>
+						
+						<img src="<?php echo p75GetThumbnail($post->ID); ?>" alt="post thumbnail" />
+						
+						<?php } else { ?>
+						<?php
+								$total = '24'; $file_type = '.jpg'; 
+							
+								// Change to the location of the folder containing the images 
+								$image_folder = '' . compat_get_plugin_url( 'wptouch' ) . '/themes/core/core-images/thumbs/'; 
+								$start = '1'; $random = mt_rand($start, $total); $image_name = $random . $file_type; 
+							
+							if ($wptouch_settings['post-cal-thumb'] == 'post-thumbnails-random') {
+									echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";
+									} else {
+									echo '<img src="' . compat_get_plugin_url( 'wptouch' ) . '/themes/core/core-images/thumbs/thumb-empty.jpg" alt="thumbnail" />';
+								}
+							?>						
+						<?php } ?>
+						
+						<?php } elseif (get_post_custom_values('Thumbnail') == true) { ?>
+						
+						<img src="<?php $custom_fields = get_post_custom($post_ID); $my_custom_field = $custom_fields['Thumbnail']; foreach ( $my_custom_field as $key => $value ) echo "$value"; ?>" alt="custom-thumbnail" />
+						 
+						<?php } elseif (function_exists('the_post_thumbnail') && !function_exists('p75GetThumbnail')) { ?>
+							
+							<?php if (has_post_thumbnail()) { ?>
+								<?php the_post_thumbnail(); ?>
+							
+							<?php } else { ?>				
+							
+								<?php
+								$total = '24'; $file_type = '.jpg'; 
+							
+								// Change to the location of the folder containing the images 
+								$image_folder = '' . compat_get_plugin_url( 'wptouch' ) . '/themes/core/core-images/thumbs/'; 
+								$start = '1'; $random = mt_rand($start, $total); $image_name = $random . $file_type; 
+							
+							if ($wptouch_settings['post-cal-thumb'] == 'post-thumbnails-random') {
+									echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";
+									} else {
+									echo '<img src="' . compat_get_plugin_url( 'wptouch' ) . '/themes/core/core-images/thumbs/thumb-empty.jpg" alt="thumbnail" />';
+								}
+							?>
+						<?php } } ?>
+					</div>
+						<div class="thumb-bottom-left"></div><div class="thumb-bottom-right"></div>
+					</div>
+				<?php }  elseif ($wptouch_settings['post-cal-thumb'] == 'calendar-icons') { ?>
+					<div class="calendar">
+						<div class="cal-month month-<?php echo get_the_time('m') ?>"><?php echo get_the_time('M') ?></div>
+						<div class="cal-date"><?php echo get_the_time('j') ?></div>
+					</div>				
+				<?php }  elseif ($wptouch_settings['post-cal-thumb'] == 'nothing-shown') { }  else { ?>
+					<div class="calendar">
+						<div class="cal-month month-<?php echo get_the_time('m') ?>"><?php echo get_the_time('M') ?></div>
+						<div class="cal-date"><?php echo get_the_time('j') ?></div>
+					</div>	
+				<?php } ?>
+
+	<?php } ?>
+ 
+	<a class="h2" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
+		<div class="post-author">
+			<?php if ($wptouch_settings['post-cal-thumb'] != 'calendar-icons') { ?><span class="lead"><?php _e("Written on", "wptouch"); ?></span> <?php echo get_the_time('M') ?> <?php echo get_the_time('j') ?>, <?php echo get_the_time('Y') ?><?php if (!bnc_show_author()) { echo '<br />';} ?><?php } ?>
+			<?php if (bnc_show_author()) { ?><span class="lead"><?php _e("By", "wptouch"); ?></span> <?php the_author(); ?><br /><?php } ?>
+			<?php if (bnc_show_categories()) { echo('<span class="lead">' . __( 'Categories', 'wptouch' ) . ':</span> '); the_category(', '); echo('<br />'); } ?> 
+			<?php if (bnc_show_tags() && get_the_tags()) { the_tags('<span class="lead">' . __( 'Tags', 'wptouch' ) . ':</span> ', ', ', ''); } ?>
+		</div>	
+			<div class="clearer"></div>	
+            <div id="entry-<?php the_ID(); ?>" <?php  if (bnc_excerpt_enabled()) { ?>style="display:none"<?php } ?> class="mainentry <?php echo $wptouch_settings['style-text-size']; ?> <?php echo $wptouch_settings['style-text-justify']; ?>">
+ 				<?php the_excerpt(); ?>
+ 		    <a class="read-more" href="<?php the_permalink() ?>"><?php _e( "Read This Post", "wptouch" ); ?></a>
+	        </div>  
+      </div>
+
+    <?php endwhile; ?>	
+
+<?php if (!function_exists('dsq_comments_template') && !function_exists('id_comments_template')) { ?>
+
+	<div id="call<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="ajax-load-more">
+		<div id="spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="spin"	 style="display:none"></div>
+		<a class="ajax" href="#" onclick="$wptouch('#spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>').fadeIn(200); $wptouch('#ajaxentries<?php echo md5($_SERVER['REQUEST_URI']); ?>').load('<?php echo get_next_posts_page_link(); ?>', {}, function(){ $wptouch('#call<?php echo md5($_SERVER['REQUEST_URI']); ?>').fadeOut();}); return false;">
+			<?php _e( "Load more entries...", "wptouch" ); ?>
+		</a>
+	</div>
+	<div id="ajaxentries<?php echo md5($_SERVER['REQUEST_URI']); ?>"></div>
+	
+<?php } else { ?>
+				<div class="main-navigation">
+					<div class="alignleft">
+						<?php previous_posts_link( __( 'Newer Entries', 'wptouch') ) ?>
+					</div>
+					<div class="alignright">
+						<?php next_posts_link( __('Older Entries', 'wptouch')) ?>
+					</div>
+				</div>
+<?php } ?>
+</div><!-- #End post -->
+
+<?php else : ?>
+
+	<div class="result-text-footer">
+		<?php wptouch_core_else_text(); ?>
+	</div>
+
+ <?php endif; ?>
+
+<!-- Here we're establishing whether the page was loaded via Ajax or not, for dynamic purposes. If it's ajax, we're not bringing in footer.php -->
+<?php global $is_ajax; if (!$is_ajax) get_footer(); ?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/page.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,94 @@
+<?php global $is_ajax; $is_ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']); if (!$is_ajax) get_header(); ?>
+<?php $wptouch_settings = bnc_wptouch_get_settings(); ?>
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+ 	<div class="post content" id="post-<?php the_ID(); ?>">
+	 <div class="page">
+		<div class="page-title-icon">		
+			<?php
+			$mypages = bnc_wp_touch_get_pages();
+			
+			if ( isset( $mypages[get_the_ID()]) ) {
+				$icon_name = $mypages[get_the_ID()]['icon'];
+				if ( file_exists( compat_get_plugin_dir( 'wptouch' ) . '/images/icon-pool/' . $icon_name ) ) {
+					$image = compat_get_plugin_url( 'wptouch' ) . '/images/icon-pool/' . $icon_name;	
+				} else {
+					$image = compat_get_upload_url() . '/wptouch/custom-icons/' . $icon_name;
+				}
+				echo('<img class="pageicon" src="' . $image . '" alt="icon" />'); 
+			} else {
+				echo ('<img class="pageicon" src="' . compat_get_plugin_url( 'wptouch' ) . '/images/icon-pool/Default.png" alt="pageicon" />');
+			}
+			
+			?> 
+		</div>
+			<h2><?php the_title(); ?></h2>
+	</div>
+	      
+<div class="clearer"></div>
+  
+    <div id="entry-<?php the_ID(); ?>" class="pageentry <?php echo $wptouch_settings['style-text-size']; ?> <?php echo $wptouch_settings['style-text-justify']; ?>">
+        <?php if (!is_page('archives') || !is_page('links')) { the_content(); } ?>  
+
+<?php if (is_page('archives')) {
+// If you have a page named 'Archives', the WP tag cloud will be displayed
+?>
+          </div>
+	</div>
+
+	<h3 class="result-text"><?php _e( "Tag Cloud", "wptouch" ); ?></h3>
+		<div id="wptouch-tagcloud" class="post">
+			<?php wp_tag_cloud('smallest=11&largest=18&unit=px&orderby=count&order=DESC'); ?>
+		</div>
+	</div>
+</div>
+
+	<h3 class="result-text"><?php _e( "Monthly Archives", "wptouch" ); ?></h3>
+		<div id="wptouch-archives" class="post">
+			<?php wp_get_archives(); // This will print out the default WordPress Monthly Archives Listing. ?> 
+		</div>
+		  
+<?php } ?><!-- end if archives page-->
+            
+<?php if (is_page('photos')) {
+// If you have a page named 'Photos', and the FlickrRSS activated and configured your photos will be displayed here.
+// It will override other number of images settings and fetch 20 from the ID.
+?>
+	<?php if (function_exists('get_flickrRSS')) { ?>
+		<div id="wptouch-flickr">
+			<?php get_flickrRSS(20); ?>
+		</div>
+	<?php } ?>
+<?php } ?><!-- end if photos page-->
+		</div>
+	</div>   
+           		
+<?php if (is_page('links')) {
+// If you have a page named 'Links', a default listing of your Links will be displayed here.
+?>
+		</div>
+	</div>          
+
+		<div id="wptouch-links">
+			<?php wp_list_bookmarks('title_li=&category_before=&category_after='); ?>
+		</div>
+<?php } ?><!-- end if links page-->    	
+	
+		<?php wp_link_pages( __('Pages in this article: ', 'wptouch'), '', 'number'); ?>
+
+<!--If comments are enabled for pages in the WPtouch admin, and 'Allow Comments' is checked on a page-->
+	<?php if (bnc_is_page_coms_enabled() && 'open' == $post->comment_status) : ?>
+		<?php comments_template(); ?>
+  	<?php endif; ?>
+<!--end comment status-->
+    <?php endwhile; ?>	
+
+<?php else : ?>
+
+	<div class="result-text-footer">
+		<?php wptouch_core_else_text(); ?>
+	</div>
+
+ <?php endif; ?>
+
+<!-- If it's ajax, we're not bringing in footer.php -->
+<?php global $is_ajax; if (!$is_ajax) get_footer(); ?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/single.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,93 @@
+<?php global $is_ajax; $is_ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']); if (!$is_ajax) get_header(); ?>
+<?php $wptouch_settings = bnc_wptouch_get_settings(); ?>
+
+<div class="content" id="content<?php echo md5($_SERVER['REQUEST_URI']); ?>">
+		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+			<div class="post">
+			    <a class="sh2" href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( "Permanent Link to ", "wptouch" ); ?><?php if (function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a>
+			        <div class="single-post-meta-top"><?php echo get_the_time('M jS, Y @ h:i a') ?> &rsaquo; <?php the_author() ?><br />
+
+		<!-- Let's check for DISQUS... we need to skip to a different div if it's installed and active -->		
+		<?php if ('open' == $post->comment_status) : ?>
+			<?php if (function_exists('dsq_comments_template')) { ?>
+		 		<a href="#dsq-add-new-comment">&darr; <?php _e( "Skip to comments", "wptouch" ); ?></a>
+			<?php } elseif (function_exists('id_comments_template')) { ?>
+				<a href="#idc-container-parent">&darr; <?php _e( "Skip to comments", "wptouch" ); ?></a>
+			<?php } elseif (isset($post->comment_count) && $post->comment_count == 0) { ?>
+				<a href="#respond">&darr; <?php _e( "Leave a comment", "wptouch" ); ?></a>
+			<?php } elseif (isset($post->comment_count) && $post->comment_count > 0) { ?>
+				<a href="#com-head">&darr; <?php _e( "Skip to comments", "wptouch" ); ?></a>
+			<?php } ?>
+		<?php endif; ?>
+		</div>
+		<div class="clearer"></div>
+	</div>
+
+			<?php wptouch_include_adsense(); ?>
+
+         <div class="post" id="post-<?php the_ID(); ?>">
+         	<div id="singlentry" class="<?php echo $wptouch_settings['style-text-size']; ?> <?php echo $wptouch_settings['style-text-justify']; ?>">
+            	<?php the_content(); ?>				
+			</div>  
+			
+<!-- Categories and Tags post footer -->        
+
+			<div class="single-post-meta-bottom">
+				<?php link_pages('<div class="post-page-nav">' . __( "Article Pages", "wptouch" ) . ': ', '</div>', 'number', ' &raquo;', '&laquo; '); ?>          
+			    <?php _e( "Categories", "wptouch" ); ?>: <?php if (the_category(', ')) the_category(); ?>
+			    <?php if (function_exists('get_the_tags')) the_tags('<br />' . __( 'Tags', 'wptouch' ) . ': ', ', ', ''); ?>  
+		    </div>   
+
+		<ul id="post-options">
+		<?php $prevPost = get_previous_post(); if ($prevPost) { ?>
+			<li><a href="<?php $prevPost = get_previous_post(false); $prevURL = get_permalink($prevPost->ID); echo $prevURL; ?>" id="oprev"></a></li>
+		<?php } ?>
+		<li><a href="mailto:?subject=<?php
+bloginfo('name'); ?>- <?php the_title();?>&body=<?php _e( "Check out this post:", "wptouch" ); ?>%20<?php the_permalink() ?>" onclick="return confirm('<?php _e( "Mail a link to this post?", "wptouch" ); ?>');" id="omail"></a></li>
+		<?php wptouch_twitter_link(); // This detects if it's an Apple mobile device or not and serves up the right Twitter link ?>
+		<li><a href="javascript:return false;" onclick="wptouch_toggle_bookmarks();" id="obook"></a></li>
+		<?php $nextPost = get_next_post(); if ($nextPost) { ?>
+			<li><a href="<?php $nextPost = get_next_post(false); $nextURL = get_permalink($nextPost->ID); echo $nextURL; ?>" id="onext"></a></li>
+		<?php } ?>
+		</ul>
+    </div>
+
+  	<div id="twitter-box" style="display:none">
+		<ul>
+			<li><a href="javascript:return false;" onclick="window.location='tweetie:'+window.location"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/twitter/tweetie.png" alt="tweetie" /> <?php _e( "Post to Tweetie", "wptouch" ); ?></a></li>
+			<li><a href="javascript:return false;" onclick="window.location='twitterrific:///post?message='+escape(window.location)"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/twitter/twitteriffic.png" alt="twitteriffic" /> <?php _e( "Post to Twitteriffic", "wptouch" ); ?></a></li>
+			<li><a href="javascript:return false;" onclick="window.location='twit:'+window.location"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/twitter/twittelator.png" alt="twittelator" /> <?php _e( "Post to Twittelator Pro", "wptouch" ); ?></a></li>
+		</ul>
+	</div>
+
+  	<div id="bookmark-box" style="display:none">
+		<ul>
+			<li><a  href="http://del.icio.us/post?url=<?php echo get_permalink()
+?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/delicious.jpg" alt="" /> <?php _e( "Del.icio.us", "wptouch" ); ?></a></li>
+			<li><a href="http://digg.com/submit?phase=2&url=<?php echo get_permalink()
+?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/digg.jpg" alt="" /> <?php _e( "Digg", "wptouch" ); ?></a></li>
+			<li><a href="http://technorati.com/faves?add=<?php the_permalink() ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/technorati.jpg" alt="" /> <?php _e( "Technorati", "wptouch" ); ?></a></li>
+			<li><a href="http://ma.gnolia.com/bookmarklet/add?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/magnolia.jpg" alt="" /> <?php _e( "Magnolia", "wptouch" ); ?></a></li>
+			<li><a href="http://www.newsvine.com/_wine/save?popoff=0&u=<?php echo get_permalink() ?>&h=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/newsvine.jpg" target="_blank"> <?php _e( "Newsvine", "wptouch" ); ?></a></li>
+			<li class="noborder"><a href="http://reddit.com/submit?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/reddit.jpg" alt="" /> <?php _e( "Reddit", "wptouch" ); ?></a></li>
+		</ul>
+	</div>
+
+<!-- Let's rock the comments -->
+
+	<?php comments_template(); ?>
+
+	<?php endwhile; else : ?>
+
+<!-- Dynamic test for what page this is. A little redundant, but so what? -->
+
+	<div class="result-text-footer">
+		<?php wptouch_core_else_text(); ?>
+	</div>
+
+	<?php endif; ?>
+</div>
+	
+	<!-- Do the footer things -->
+	
+<?php global $is_ajax; if (!$is_ajax) get_footer(); ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/style-compressed.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,13 @@
+/*  
+Theme Name: WPtouch Mobile Plugin & Theme For WordPress
+Theme URI: http://www.bravenewcode.com/wptouch/
+Description: A slick theme for your blog or website that is shown only when visitors are using an iPhone, iPod touch, or Android Mobile Device
+Author: Dale Mugford and Duane Storey
+Author URI: http://www.bravenewcode.com/
+	
+	The CSS, XHTML and design is released under GPL:
+	http://www.opensource.org/licenses/gpl-license.php
+
+*/
+
+body{margin:0;padding:0;font:12px Helvetica;-webkit-text-size-adjust:none;min-height:460px;}ul{margin:0;padding:0 20px 0 20px;list-style-type:circle;list-style-position:outside;}ol{margin:0;padding:0 25px 0 20px;list-style-type:decimal;list-style-position:outside;}li{line-height:17px;font-size:12px;margin-bottom:10px;padding-bottom:10px;color:#555;}a{text-decoration:none;}input{max-width:96%;}iframe{max-width:100% !important;height:auto !important;}code{font-family:Courier,"Courier New",mono;color:red;}blockquote{-webkit-border-radius:10px;border:1px solid #ccc;padding:10px;font-size:12px;background:#eee url(../core/core-images/quotes.png) no-repeat right -2px;text-align:left;margin:5px 1px;}.clearer{clear:both;}.content{margin-top:15px;position:relative;}.result-text{color:#475d79;text-shadow:#eee 1px 1px 0;font-size:15px;font-weight:bold;margin-bottom:10px;margin-left:10px;letter-spacing:0;border-style:none;}.result-text-footer{color:#475d79;text-shadow:#eee 1px 1px 0;letter-spacing:0;font-size:15px;font-weight:bold;margin-bottom:10px;margin-left:10px;text-align:center;display:block;}.pageentry h1,.mainentry h1{font-size:22px;}.pageentry h2,.mainentry h2{font-size:18px;text-shadow:#f9f9f9 -1px -1px 0;text-align:left;padding-bottom:10px;color:#222;}.pageentry h3,.mainentry h3{text-align:left;color:#666;font-size:15px;border-bottom:1px solid #adadad;border-top:1px solid #adadad;padding:10px;font-weight:bold;line-height:14px;background-color:#eee;margin:5px -10px;text-shadow:#fff -1px 1px 0;}.pageentry h4,.mainentry h4{font-size:13px;text-shadow:#f9f9f9 -1px -1px 0;padding:0 0 10px;padding-bottom:10px;color:#666;}.pageentry h5,.mainentry h5{text-shadow:#f9f9f9 -1px -1px 0;font-size:12px;padding:0;}.mainentry img,#singlentry img,.pageentry img,ol.commentlist li img{max-width:100%;height:auto;}.fontsize{font-size:1.2em;line-height:140%;}#headerbar{width:100%;background-position:0 0;background-repeat:repeat-x;height:45px;border-bottom:1px solid #1e1e1e;font-size:19px;}#headerbar-title{text-shadow:#242424 -1px -1px 1px;padding-top:10px;padding-left:10px;display:block;margin:0;border-style:none;padding-bottom:4px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:85%;font-weight:bold;height:29px;}#headerbar-title a{text-decoration:none;letter-spacing:-1px;position:relative;font-family:HelveticaNeue-Bold,sans-serif;}#headerbar-title img#logo-icon{position:relative;margin-right:7px;max-width:30px;float:left;width:28px;height:28px;padding:0;bottom:1px;}#headerbar-menu{position:absolute;top:0;right:0;margin:0;padding:0;}#headerbar-menu a{height:45px;display:block;background:url(../core/core-images/wptouch-menu-dropper.png) 0 0;width:30px;margin:0;padding:0;}#headerbar-menu .open{background-position:0 -45px;}#drop-fade{width:100%;display:block;position:relative;-webkit-box-shadow:#000 -3px 2px 3px;text-align:right;border-top:1px solid #3e3e3e;height:auto;overflow:hidden;}#drop-fade a.top{font-size:10px;margin-right:8px;position:relative;bottom:3px;color:#fff;text-shadow:#000 0px -1px 1px;display:block;float:right;padding:6px 2px 2px 0;}#drop-fade #loginopen{background:url(../core/core-images/menu-sprite.png) no-repeat 0 -31px;padding-left:16px;}#drop-fade #accountopen{padding-left:18px;background:url(../core/core-images/menu-sprite.png) no-repeat 0 -14px;}#drop-fade #prowlopen{padding-left:18px;background:url(../core/core-images/menu-sprite.png) no-repeat 2px -57px;}#drop-fade #wordtwitopen{padding-left:18px;background:url(../core/core-images/menu-sprite.png) no-repeat 2px -74px;}#drop-fade #searchopen{padding-left:18px;background:url(../core/core-images/menu-sprite.png) no-repeat 2px -92px;}#drop-fade #gigpressopen{padding-left:18px;background:url(../core/core-images/menu-sprite.png) no-repeat 2px -106px;}.dropper{width:100%;position:relative;z-index:1;margin:0;padding:0;border-top:1px solid #1b1b1b;font-size:13px;background-color:#2c2c2c;}.dropper ul{position:relative;list-style-type:none;margin:0;padding:0;}.dropper li{border-bottom:1px solid #1d1d1d;margin:0;background:url(../core/core-images/arrow.png) no-repeat right center;text-transform:capitalize;border-top:1px solid #363636;padding:0;text-align:left;}.dropper li.text{color:#eee;text-shadow:#111 0 -1px 1px;text-align:center;background-image:none;padding-top:25px;padding-bottom:25px;text-transform:none;}.dropper li.text a{display:inline;margin:0;padding:0;text-decoration:underline;}.dropper li:hover{background-color:#222;border-top:1px solid #222;position:relative;z-index:2;}.dropper a{font-weight:bold;display:block;text-shadow:#000 -1px -1px 1px;color:#d2d2d2;margin:0;width:auto;padding:11px 35px 11px 15px;text-align:left;}#wptouch-menu{position:absolute;z-index:2;top:45px;-webkit-box-shadow:#333 -6px 6px 6px;display:none;}#wptouch-menu-inner img{float:left;position:relative;bottom:5px;width:28px;padding-right:10px;right:0;}#tabnav{background-color:#444;padding-top:3px;border-bottom:1px solid #1b1b1b;border-top:1px solid #575757;padding-left:10px;height:24px;margin-bottom:-1px;}#tabnav a{display:inline-block;margin:0;padding:2px 8px 7px;color:#999;text-shadow:#111 0 -1px 1px;}#tabnav a.selected{background-color:#2c2c2c;position:relative;z-index:1;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;border:1px solid #1b1b1b;margin-left:-1px;margin-right:-1px;color:#fff !important;-webkit-box-shadow:#222 0px -2px 3px;border-bottom:1px solid #2c2c2c;text-shadow:#000 0 -1px 1px;}#tabnav a:hover,#tabnav a:active{color:#fff;}#wptouch-wordtwit{position:relative;border-top:1px solid #3e3e3e;background-color:#222;top:20px;}#wptouch-wordtwit #twitter-style-bar{display:block;border-top:1px solid #1e1e1e;}#wordtwit-avatar{text-align:left;padding-bottom:10px;-webkit-border-radius:8px;padding-left:5px;padding-top:5px;border:1px solid #555;background-image:none;background-color:#444;margin:10px;}#wordtwit-avatar img{-webkit-box-reflect:below -1px -webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(0.8,transparent),to(white));border:1px solid #222;float:left;margin-right:15px;-webkit-border-radius:2px;width:32px;height:32px;}#wptouch-wordtwit a#follow-arrow{border-style:none;width:18px;height:18px;position:absolute;top:22px;right:15px;padding:5px;margin:0;}#wordtwit-avatar p{padding:0;margin:0;color:#777;}#wordtwit-avatar p.twitter_username{color:#eee;text-shadow:#222 0 -1px 1px;font-size:15px;font-weight:bold;}#wordtwit-avatar a{display:inline-block;font-size:11px;color:#999;text-shadow:#222 0 -1px 0;padding:3px 0 0;}#wptouch-wordtwit ul{}#wptouch-wordtwit li{color:#ccc;font-size:12px;text-shadow:#000 0 -1px 0;text-transform:none;background-image:none;background-color:#2c2c2c;padding-top:10px;padding-left:10px;padding-right:50px;}#wptouch-wordtwit li:last-child{padding-bottom:20px;}#wptouch-wordtwit li p.time{color:#777;font-size:11px;}#wptouch-gigpress{color:#eee;text-shadow:#000 0 -1px 1px;text-align:left;font-size:11px;border-top:1px solid #3e3e3e;clear:both;margin:0;padding:0;width:99%;}#wptouch-gigpress #gigpress-style-bar{border-top:1px solid #1e1e1e;display:block;width:100%;}#wptouch-gigpress h4{font-size:14px;margin:22px 0 20px;padding:0;}#wptouch-gigpress img{float:left;margin:15px 10px;}#prowl-message{color:#eee;text-shadow:#000 0 -1px 1px;clear:both;padding:10px;text-align:left;font-size:11px;border-top:1px solid #3e3e3e;}#prowl-message #push-style-bar{display:block;border-top:1px solid #1e1e1e;margin-left:-10px;margin-right:-10px;margin-top:-10px;padding-top:10px;}#prowl-message form p{font-weight:bold;font-size:12px;position:relative;margin-bottom:10px;margin-top:10px;clear:both;}#prowl-message label{margin-left:5px;}#prowl-message input{width:60%;-webkit-border-radius:10px;padding:3px;color:#222;border:1px solid #1b1b1b;font:14px "Helvetica Neue",Helvetica,Geneva,Arial,sans-serif;}#prowl-message input#prowl-submit{width:100px;text-align:center;color:#fff;text-shadow:#333 0 -1px 1px;font-weight:bold;border:1px solid #333;margin-top:10px;float:right;}#prowl-message textarea{width:98%;-webkit-border-radius:10px;padding:3px;color:#222;border:1px solid #1b1b1b;height:70px;overflow:auto;margin-top:2px;font:14px "Helvetica Neue",Helvetica,Geneva,Arial,sans-serif;}#prowl-message h4{font-size:14px;margin:10px 0 15px;padding:0;}#prowl-message img{float:left;margin-right:10px;}#prowl-success{color:#eee;text-shadow:#000 0 -1px 1px;font:bold 16px "Helvetica Neue",Helvetica,Geneva,Arial,sans-serif;text-align:center;background:#000 url(../core/core-images/push-success.png) no-repeat center 50px;position:absolute;top:0;left:0;z-index:1000;opacity:0.9;width:90%;margin-left:5%;margin-top:25px;-webkit-border-radius:15px;-webkit-box-shadow:#444 0px 0px 15px;}#prowl-success p,#prowl-fail p{margin-top:125px;margin-left:20%;margin-right:20%;}#prowl-fail{color:#eee;text-shadow:#000 0 -1px 1px;font:bold 16px "Helvetica Neue",Helvetica,Geneva,Arial,sans-serif;text-align:center;background:#000 url(../core/core-images/push-fail.png) no-repeat center 50px;position:absolute;top:0;left:0;z-index:1000;opacity:0.9;width:90%;margin-left:5%;margin-top:25px;-webkit-border-radius:15px;-webkit-box-shadow:#444 0px 0px 15px;}#wptouch-login{position:absolute;top:0;left:0;z-index:1;width:100%;display:none;}#wptouch-login-inner{padding-top:8px;width:100%;height:35px;background-repeat:repeat-x;text-align:center;padding-bottom:2px;}#wptouch-login input#log{width:120px;-webkit-border-radius:10px;padding:3px;font-size:13px;color:#222;font-weight:bold;border:1px solid #1b1b1b;}#wptouch-login input#pwd{width:120px;-webkit-border-radius:10px;padding:3px;font-size:13px;color:#222;font-weight:bold;border:1px solid #1b1b1b;margin-left:5px;}#wptouch-search{position:absolute;top:0;left:0;z-index:1;width:100%;display:none;}#wptouch-search-inner{width:100%;height:40px;background-repeat:repeat-x;text-align:center;padding-top:5px;}input#s{-webkit-border-radius:10px;padding:4px;width:80%;font-size:13px;color:#222;text-align:left;margin-top:6px;border:1px solid #1b1b1b;font-weight:bold;}img.head-close{display:inline;position:relative;top:6px;left:5px;}.post{-webkit-border-radius:8px;background-color:#fff;padding:10px;margin-bottom:12px;position:relative;margin-right:10px;margin-left:10px;border:1px solid #b1b1b1;}.big{height:200px;}a.post-arrow{width:18px;height:15px;float:right;margin-top:1px;padding:0;background:#f4f4f4 url(../core/core-images/post-arrow.png) no-repeat center 5px;border:1px solid #ddd;-webkit-border-radius:5px;-webkit-transform:scale(1.0) rotate(0deg);-webkit-transition-duration:0.6s;}a.post-arrow-down{-webkit-transform:scale(1.0) rotate(180deg);-webkit-transition-duration:0.6s;background:#dfe3e3 url(../core/core-images/post-arrow.png) no-repeat center -14px;border:1px solid #b8b8b8;}a.h2{color:#222;text-decoration:none;display:block;margin-top:2px;text-align:left;width:93%;letter-spacing:-1px;margin-bottom:4px;line-height:15px;font-size:15px;font-weight:bold;}.mainentry{color:#444;line-height:145%;display:block;}.mainentry p{margin:2% 0 1%;padding:0;}.mainentry a.read-more{display:block;padding-top:10px;border-top:1px solid #c1c1c1;position:relative;padding-left:10px;color:#222;font-weight:bold;background:url(../core/core-images/arrow.png) no-repeat right 7px;padding-bottom:10px;-webkit-border-bottom-left-radius:8px;-webkit-border-bottom-right-radius:8px;margin:10px -10px -10px;}.mainentry a.read-more:hover{background-color:#dcdcdc;}.mainentry li{border-bottom-style:dashed;}.comment-bubble{background:url(../core/core-images/sprite.png) no-repeat -2px -90px;width:24px;height:20px;padding-top:4px;position:absolute;color:#fff;padding-left:0;font:bold 13px Helvetica,Arial-BoldMT,Geneva,sans-serif;letter-spacing:-1px;text-shadow:#871521 -1px -1px 1px;padding-right:1px;margin-left:0;z-index:1;text-align:center;left:1px;top:1px;}.comment-bubble-big{background:url(../core/core-images/sprite.png) no-repeat -2px -66px;width:26px;height:21px;padding-top:3px;position:absolute;color:#fff;left:2px;top:0;padding-left:0;font:bold 13px Helvetica,Arial-BoldMT,Geneva,sans-serif;letter-spacing:-1px;text-shadow:#871521 -1px -1px 1px;padding-right:4px;margin-left:0;z-index:1;text-align:center;}#nothing-shown{margin-left:-11px;margin-top:-11px;}.archive-top{margin:-11px -11px 7px;-webkit-border-top-right-radius:8px;padding:0;}.archive-top-right .post-arrow,.archive-top-right .post-arrow-down{margin-right:5px;margin-top:3px;}.archive-top-left.month-01,#arc-top.month-02,#arc-top.month-03,#arc-top.month-04,#arc-top.month-05,#arc-top.month-06,#arc-top.month-07,#arc-top.month-08,#arc-top.month-09,#arc-top.month-10,#arc-top.month-11,#arc-top.month-12{-webkit-border-top-left-radius:8px;-webkit-border-top-right-radius:8px;padding-top:5px;padding-bottom:5px;padding-left:10px;font-weight:bold;color:#eee;text-shadow:#535353 0 -1px 1px;}.main-navigation{-webkit-border-radius:8px;background-color:#fff;margin-bottom:12px;position:relative;margin-right:10px;margin-left:10px;border:1px solid #b1b1b1;overflow:hidden;font-weight:bold;padding:10px;}.main-navigation .alignleft a{float:left;display:block;background:url(../core/core-images/sprite.png) no-repeat 0 -46px;padding-top:3px;padding-bottom:3px;padding-left:23px;}.main-navigation .alignright a{float:right;display:block;padding-top:3px;padding-bottom:3px;padding-right:35px;background:url(../core/core-images/sprite.png) no-repeat right -26px;position:relative;left:15px;}.calendar{text-align:center;position:relative;margin-bottom:5px;margin-right:10px;margin-top:0;border:1px solid #c9c9c9;-webkit-border-top-left-radius:7px;-webkit-border-top-right-radius:1px;-webkit-border-bottom-left-radius:1px;-webkit-border-bottom-right-radius:7px;top:3px;float:left;-webkit-box-shadow:#c6c6c6 1px 1px 3px;}.cal-month{font-size:10px;font-weight:bold;color:#fff;letter-spacing:0;text-shadow:#67727f 1px -1px 0;border-bottom:1px solid #ececec;text-transform:uppercase;padding:3px 10px;-webkit-border-top-left-radius:6px;-webkit-border-top-right-radius:1px;}.cal-date{color:#111;background-color:#e9e9e9;text-shadow:white -1px -1px 1px;-webkit-border-bottom-left-radius:1px;-webkit-border-bottom-right-radius:6px;letter-spacing:-3px;font:bold 21px Helvetica,"Arial Rounded MT Bold",Geneva,sans-serif;padding:1px 4px 2px 0;text-align:center;border:1px solid #fff;border-top-style:none;}.month-01{background-color:#767c8f;}.month-02{background-color:#345abe;}.month-03{background-color:#37838d;}.month-04{background-color:#55b06c;}.month-05{background-color:#409ad5;}.month-06{background-color:#be63c5;}.month-07{background-color:#f79445;}.month-08{background-color:#4e1e00;}.month-09{background-color:#a04262;}.month-10{background-color:#284461;}.month-11{background-color:#4d1d77;}.month-12{background-color:#af1919;}.post-author{color:#555;font-size:9px;line-height:11px;position:relative;font-weight:bold;letter-spacing:0;text-align:left;width:72%;float:left;}.post-author span.lead{font-weight:normal;font-style:normal;}.ajax-load-more{margin-top:15px;margin-right:auto;display:block;margin-left:auto;width:160px;}.spin{height:16px;background:url(../core/core-images/ajax-loader.gif) no-repeat;display:inline-block;width:16px;position:relative;float:left;top:0;right:5px;}a.ajax{color:#475d79;text-shadow:#eee 1px 1px 0;letter-spacing:0;height:16px;font:bold 14px Helvetica,Geneva,Arial,sans-serif;}a.sh2{letter-spacing:-1px;margin:0;padding:0 0 2px;color:#222;display:block;line-height:20px;font-size:19px;font-weight:bold;text-align:left;}#singlentry{line-height:150%;color:#333;display:block;overflow:hidden;font-size:13px;}#singlentry li{margin-top:3px;margin-bottom:3px;}.single-post-meta-top{text-align:left;color:#999;font-size:10px;font-weight:bold;line-height:15px;}.single-post-meta-bottom{text-align:left;color:#666;font-size:11px;border-bottom:1px solid #adadad;border-top:1px solid #adadad;padding:10px;font-weight:bold;line-height:14px;background-color:#e5eff5;margin:5px -10px;text-shadow:#fafafa 0 1px 1px;}.single-post-meta-bottom .post-page-nav{font-size:15px;margin-bottom:15px;}.single-post-meta-bottom .post-page-nav a{padding:3px 7px;background-color:#fff;border:1px solid #ccc;-webkit-border-radius:4px;}ul#post-options{-webkit-border-bottom-left-radius:7px;-webkit-border-bottom-right-radius:7px;list-style-type:none;background-color:#e6e6e6;padding:0 4px 0 0;text-align:center;position:relative;margin:-5px -10px -10px;border-top:1px solid #fbfbfb;}ul#post-options li{margin:0;padding:0;display:inline-block;}ul#post-options li a{display:inline-block;width:38px;padding:20px 6px 16px;margin:2px 0 0;}ul#post-options li a#oprev{background:url(../core/core-images/post-options.png) no-repeat 5px -210px;border-right:1px solid #cfcfcf;width:38px;}ul#post-options li a#onext{background:url(../core/core-images/post-options.png) no-repeat -7px -244px;border-left:1px solid #cfcfcf;width:38px;}ul#post-options li a#omail{background:url(../core/core-images/post-options.png) no-repeat center -1px;border-left:1px solid #fbfbfb;margin-left:-3px;}ul#post-options li a#otweet{background:url(../core/core-images/post-options.png) no-repeat center -82px;}ul#post-options li a#obook{background:url(../core/core-images/post-options.png) no-repeat center -39px;border-right:1px solid #fbfbfb;margin-right:-3px;}#singlentry .wp-caption{text-align:center;font-size:11px;color:#999;line-height:13px;max-width:100% !important;height:auto !important;}#singlentry .gallery{margin:0;padding:0;width:100% !important;height:auto !important;}#singlentry .gallery dl.gallery-item img.attachment-thumbnail{padding:3px;margin:10px;width:50% !important;height:auto;}#singlentry .gallery dl.gallery-item{margin:0;}#singlentry .gallery dl.gallery-item dt.gallery-icon{margin:0;}#singlentry .gallery dl.gallery-item dd.gallery-caption{font-size:11px;color:#555;}#twitter-box{-webkit-border-radius:8px;border:1px solid #adadad;margin:10px;background-color:#fff;}#twitter-box img{float:left;margin-right:5px;position:relative;bottom:4px;right:3px;width:28px;height:28px;}#twitter-box ul{list-style-type:none;margin:0;padding:0;}#twitter-box li{clear:both;border-bottom:1px solid #cbcbcb;margin:0;padding:0;}#twitter-box li a{display:block;color:#222;font-size:13px;font-weight:bold;padding-top:10px;padding-bottom:13px;padding-left:10px;margin:0;}#bookmark-box{-webkit-border-radius:8px;border:1px solid #adadad;margin:10px;background-color:#fff;}#bookmark-box img{float:left;margin-right:5px;position:relative;bottom:4px;right:3px;margin-left:3px;margin-top:1px;}#bookmark-box ul{list-style-type:none;margin:0;padding:0;}#bookmark-box li{clear:both;border-bottom:1px solid #cbcbcb;margin:0;padding:0;}#bookmark-box li a{display:block;color:#222;font-size:13px;font-weight:bold;padding-top:10px;padding-bottom:13px;padding-left:10px;margin:0;}#twitter-box li:last-child,#bookmark-box li:last-child{border-bottom-style:none;}.page h2{font-size:20px;letter-spacing:-1px;text-align:left;line-height:22px;font-weight:normal;font-style:normal;padding-right:0;padding-top:0;padding-bottom:0;position:relative;border-style:none;margin:10px 0 0 42px;}.pageentry{color:#444;padding:2px 0 0;line-height:145%;display:block;}.pageentry li{list-style-type:none;}img.pageicon{position:relative;margin-right:10px;width:32px;height:32px;float:left;margin-top:-5px;margin-left:0;}.pageentry .wp-caption{text-align:center;font-size:11px;color:#999;line-height:13px;max-width:100% !important;height:auto !important;}#wptouch-tagcloud{-webkit-border-radius:8px;border:1px solid #adadad;background-color:#fff;margin-right:10px;margin-left:10px;padding:10px;text-align:justify;text-transform:capitalize;line-height:150%;}#wptouch-archives{-webkit-border-radius:8px;border:1px solid #adadad;background-color:#fff;margin-right:10px;margin-left:10px;}#wptouch-archives a{color:#222;display:block;padding-bottom:10px;padding-left:10px;background:url(../core/core-images/arrow.png) no-repeat right center;padding-top:10px;}#wptouch-archives ul{padding:0;list-style-type:none;margin:0;}#wptouch-archives li{border-bottom:1px solid #ccc;list-style-type:none;font-weight:bold;font-size:14px;color:#222;display:block;padding:0;margin-bottom:0;margin-left:-10px;margin-right:-10px;}#wptouch-archives li:first-child{margin-top:-10px;}#wptouch-archives li:last-child{margin-bottom:-10px;border-bottom-style:none;}#wptouch-links a{color:#222;display:block;background:url(../core/core-images/arrow.png) no-repeat right center;padding:10px 10% 10px 10px;}#wptouch-links h2{color:#475d79;text-shadow:#eee 1px 1px 0;font-size:15px;font-weight:bold;margin-bottom:10px;margin-left:10px;letter-spacing:0;border-style:none;text-transform:capitalize;margin-top:20px;}#wptouch-links ul{-webkit-border-radius:8px;border:1px solid #adadad;background-color:#fff;list-style-type:none;margin:10px;padding:0;}#wptouch-links li{border-bottom:1px solid #ccc;list-style-type:none;font-weight:bold;font-size:13px;color:#333;display:block;padding:0;margin:0;text-shadow:#fff 0 0 0;}#wptouch-links li:first-child{border-top-style:none;}#wptouch-links li:last-child{border-bottom-style:none;}#wptouch-flickr{text-align:center;width:auto;}#wptouch-flickr img{padding:1px;background-color:#ccc;margin:5px;width:55px;height:55px;}#fourohfour{-webkit-border-radius:8px;border:1px solid #adadad;background-color:#fff;text-align:center;margin:10px;padding:10px;}ol#commentlist{list-style-type:none;display:none;margin:0 10px 0;position:relative;z-index:1;padding-right:0;padding-bottom:0;padding-left:0;}ol.commentlist li{background-color:#fff;padding:10px;border-bottom:1px solid #dedede;margin:0;overflow:hidden;font-size:12px;border-right:1px solid #b1b1b1;border-left:1px solid #b1b1b1;position:relative;}h3#com-head{font-weight:bold;font-size:13px;-webkit-border-radius:8px;text-shadow:#fff 0 1px 0;margin-left:10px;margin-right:10px;border:1px solid #b1b1b1;background:#fff;position:relative;z-index:1;padding-top:10px;padding-bottom:10px;padding-left:10px;cursor:pointer;display:block;}h3#com-head img#com-arrow{margin-right:5px;position:relative;top:1px;-webkit-transform:scale(1.0) rotate(0deg);-webkit-transition-duration:0.6s;}.comhead-open{-webkit-border-bottom-left-radius:0px !important;-webkit-border-bottom-right-radius:0px !important;margin-bottom:-1px;background-color:#eee !important;}.com-arrow-down{-webkit-transform:scale(1.0) rotate(90deg) !important;-webkit-transition-duration:0.6s !important;}ol.commentlist li:first-child{border-top:1px solid #b1b1b1;}ol.commentlist li:last-child{border-bottom:1px solid #b1b1b1;-webkit-border-bottom-left-radius:8px;-webkit-border-bottom-right-radius:8px;}ol.commentlist li .avatar{float:left;border-right:1px solid #f9f9f9;margin-right:5px;}ol.commentlist li ul{padding:0;margin:0;list-style-type:none;}ol.commentlist .parent{background-color:#fefdec;}ol.commentlist .parent ul.children li{border:1px solid #ddd;background-color:#e9f8fd;-webkit-border-radius:8px;}ol.commentlist ul.children .parent ul.children li.alt{border:1px solid #ddd;background-color:#fff;padding:10px;margin:10px 0 0;-webkit-border-radius:8px;}ol.commentlist ul.children .parent ul.children li.even{border:1px solid #ddd !important;background-color:#f9fbf6;padding:10px;margin:10px 0 0;-webkit-border-radius:8px;}ol.commentlist .reply a,.comdater{position:absolute;top:6px;right:5px;font-weight:bold;font-size:10px;background-color:#e5e5e5;padding:1px 5px;border:1px solid #fff;-webkit-border-radius:3px;text-shadow:#fff 0 1px 0px;}ol.commentlist .comdater span{margin-right:3px;border-right:1px solid #fefefe;display:inline-block;}ol.commentlist .comdater span a{padding-right:7px;}ol.commentlist .comdater span a:last-child{border-right:1px solid #ccc;display:inline-block;}ol.commentlist .comment-author{font-weight:bold;}ol.commentlist .comment-meta a{font-size:11px;color:#999;}.navigation.commentnav{height:17px;padding-right:0;padding-top:10px;padding-left:10px;}.navigation.commentnav .alignright a{background-repeat:no-repeat;background-position:right -26px;padding-right:35px;}.navigation.commentnav .alignleft a{background-repeat:no-repeat;background-position:left -46px;padding-left:25px;}.comtop{background-color:#f5f5f5;padding-left:0;padding-bottom:15px;border-bottom:1px solid #dedede;margin-top:-10px;margin-left:-10px;margin-right:-10px;height:17px;}.com-author a{font-weight:bold;text-transform:capitalize;font-size:13px;text-shadow:#fff 0 1px 0;-webkit-border-top-right-radius:0px;}.com-author{font-weight:bold;text-transform:capitalize;font-size:13px;position:relative;text-shadow:#fff 0 1px 0;-webkit-border-top-right-radius:0px;padding-left:10px;padding-top:7px;}h3#comments,h3#respond{color:#475d79;text-shadow:#eee 1px 1px 0;letter-spacing:-1px;font-size:17px;padding-left:10px;padding-top:20px;}.preview{background-color:#fdeeab;color:#bf7b20;font-weight:bold;text-shadow:#fff 0 1px 1px;font-size:11px;}.preview span{position:absolute;right:62px;top:8px;}p.logged{color:#475d79;text-shadow:#eee 1px 1px 0;font-size:11px;font-weight:bold;position:relative;top:2px;margin-top:35px;}form#commentform{margin-left:10px;margin-right:10px;}form#commentform input{-webkit-border-radius:8px;border:1px solid #adadad;padding:3px;margin:0;font-size:13px;color:#444;width:170px;}form#commentform input#submit{color:#555;font-weight:bold;width:25%;opacity:1;background-color:#eee;border:1px solid #aaa;text-shadow:#fff 0 1px 0;}textarea#comment{-webkit-border-radius:8px;border:1px solid #adadad;font-size:13px;color:#444;height:110px;width:98%;padding:3px;}#loading{position:relative;background-color:#dedede;-webkit-border-radius:8px;border:1px solid #9fa5ac;opacity:0.85;z-index:9;margin:0;bottom:166px;text-align:center;width:98%;height:64px;max-width:453px;padding:50px 3px 2px;}#loading p{display:inline;position:relative;bottom:3px;left:3px;text-shadow:#fff 0 1px 0;font-size:12px;color:#2f4e71;font-weight:bold;}form#commentform label{color:#475d79;text-shadow:#eee 1px 1px 0;font-size:12px;font-weight:bold;}#refresher{-webkit-border-radius:8px;padding:10px 10px 10px 18px;border:1px solid #b1b1b1;background-color:#e9f5f8;color:#475d79;font-weight:bold;margin-left:10px;margin-right:10px;text-shadow:#f5f5f5 0 1px 1px;margin-top:20px;}#refresher img{float:left;margin-right:3px;margin-left:-10px;}#refresher h3{padding:0;margin:0 0 5px;color:#475d79;text-shadow:#f5f5f5 0 1px 1px;}p.subscribe-to-comments{padding:8px;-webkit-border-radius:8px;background-color:#eee;border:1px solid #adadad;}p.subscribe-to-comments label{text-shadow:#fff 0 1px 0 !important;color:#333 !important;}p.subscribe-to-comments input#subscribe{padding-right:3px;vertical-align:top;}.full-justified{text-align:justify;}.left-justifed{text-align:left;}.small-text{font-size:1.1em;}.medium-text{font-size:1.2em;}.large-text{font-size:1.3em;}.classic-wptouch-bg{background:url(../core/core-images/pinstripes-classic.gif) repeat;}.argyle-wptouch-bg{background:url(../core/core-images/argyle-tie.gif) repeat;}.horizontal-wptouch-bg{background:url(../core/core-images/pinstripes-horizontal.gif) repeat;}.diagonal-wptouch-bg{background:url(../core/core-images/pinstripes-diagonal.gif) repeat;}.skated-wptouch-bg{background:url(../core/core-images/skated-concrete.gif) repeat;}.grid-wptouch-bg{background:url(../core/core-images/grid.gif) repeat;}#footer{text-align:center;color:#475d79;font-size:10px;font-weight:bold;text-shadow:#eee 1px 1px 0;margin-top:60px;line-height:13px;padding:0 0 10px;}#footer p{margin:0;padding:0 25px 5px;}#wptouch-switch-link{-webkit-border-radius:8px;border:1px solid #adadad;margin-right:10px;margin-left:10px;margin-bottom:20px;position:relative;max-width:300px;padding:13px 10px 12px 8px;color:#222;text-shadow:#fff 0 0 0;font-size:13px;text-align:left;background-color:#fff;}#wptouch-switch-link a{position:relative;display:block;width:77px;background:url(../core/core-images/onoff.jpg) no-repeat left top;height:22px;float:right;left:2px;bottom:5px;}.offimg{width:77px;background:url(../core/core-images/onoff.jpg) no-repeat 0 -22px !important;height:22px;}.addthis_container{display:none !important;}a.tt{display:none !important;}#secureimgdiv img#cas_image{-webkit-border-radius:2px	!important;border:1px solid #adadad	!important;width:auto!important;height:21px!important;float:left!important;}#secureimgdiv p label{color:#475d79;text-shadow:#eee 1px 1px 0;font-size:14px;font-weight:bold;}#secureimgdiv p small{display:block;margin-top:5px;font-size:11px;text-align:justify;}#secureimgdiv p input#securitycode{-webkit-border-radius:8px;border:1px solid #adadad;padding:3px;margin:0 0 0 0;font-size:13px;color:#444;width:101px;-webkit-border-top-left-radius:1px;-webkit-border-bottom-left-radius:1px;}.post object,.post embed{width:100% !important;height:auto;position:relative;z-index:0;}a#ribbon{display:none !important;}#disqus_thread .dsq-auth-header{margin-top:-35px;}h3#dsq-add-new-comment{color:#475d79;text-shadow:#eee 2px 1px 1px;letter-spacing:-1px;font-size:16px;position:relative;bottom:10px;}.dsq-by img{display:none;}.dsq-authenticated-pic img.dsq-post-avatar{width:24px;height:24px;}#disqus_thread{-webkit-border-radius:8px;border:1px solid #adadad;background-color:#fff;padding:10px;margin-left:10px;margin-right:10px;margin-top:50px;}#disqus_thread .dsq-authenticated ul li{font-weight:bold;position:relative;left:5px;}#disqus_thread a#dsq-options-toggle{float:right;}a.dsq-brlink{text-align:center;display:block;margin-top:15px;font-family:"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif;}#adsense-area{height:50px;overflow:none;margin-bottom:12px;background:transparent;}#adsense-area iframe{height:50px!important;overflow:none;}#idc-container-parent{background-color:white;margin-left:10px;margin-right:10px;-webkit-border-radius:8px;border:1px solid #adadad;overflow:hidden;font:12px Helvetica !important;position:relative !important;}#idc-container-parent .idc-c-t{padding:9px;}#idc-container-parent .idc-c-b{padding-left:5px;}#idc-container-parent ul#idcpostNav li{font-size:11px !important;}#idc-container-parent .idc-new{padding-left:10px !important;padding-right:10px !important;}#idc-container-parent .idc-head h3,#idc-container-parent .idc-new h3{color:#475d79;text-shadow:#eee 2px 1px 1px;letter-spacing:-1px;font-size:16px;position:relative;bottom:10px;padding-left:10px;}#idc-container-parent .idc-right{margin-top:-10px;padding-right:10px;}#idc-container-parent textarea{width:91% !important;}#idc-container-parent .idc-column{display:block;clear:both;width:94% !important;}#idc-container-parent form input{max-width:100px;}#idc-container-parent form div{margin-bottom:10px;}#idc-container-parent #idnewthreadSubmitLI.idc-right{position:absolute;}#idc-container-parent label.idc-nofloat{display:none;}#noscript-wrap{width:100%;height:100%;position:absolute;top:0;left:0;background-color:#eee;z-index:1000;opacity:0.9;}#noscript{color:#ddd;display:block;height:54%;text-shadow:#000 -1px -1px 0;-webkit-border-radius:15px;-webkit-box-shadow:#444 0px 0px 15px;width:auto;padding-right:25px;padding-left:25px;background:#0d0d0d url(../../images/saved.png) no-repeat center top;padding-top:110px;text-align:center;border:3px solid #444;font:14px Helvetica,Arial,sans-serif;margin:25px;}.wptouch-post-thumb-wrap{background:url(../core/core-images/top-left.png) no-repeat;position:relative;margin-right:8px;-webkit-box-reflect:below 1px -webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(0.85,transparent),to(white));display:block;margin-bottom:4px;width:46px;height:46px;float:left;}.wptouch-post-thumb img{width:46px;height:46px;}.wptouch-post-thumb-wrap .thumb-top-left{position:absolute;top:0;left:0;height:9px;width:9px;background:url(../core/core-images/thumb-corners.png) no-repeat 0 0;}.wptouch-post-thumb-wrap .thumb-top-right{position:absolute;top:0;right:0;width:9px;height:9px;background:url(../core/core-images/thumb-corners.png) no-repeat right top;}.wptouch-post-thumb-wrap .thumb-bottom-left{position:absolute;bottom:0;left:0;width:9px;height:9px;background:url(../core/core-images/thumb-corners.png) no-repeat 0 -9px;}.wptouch-post-thumb-wrap .thumb-bottom-right{position:absolute;bottom:0;right:0;width:9px;height:9px;background:url(../core/core-images/thumb-corners.png) 9px -9px;}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/themes/default/style.css	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,2287 @@
+/* @override 
+	http://www.wptouch.com/wp-content/plugins/wptouch/themes/default/style.css
+	http://www.wptouch.com/wp-content/plugins/wptouch/themes/default/style-compressed.css
+*/
+
+/*  
+Theme Name: WPtouch Mobile Plugin & Theme For WordPress
+Theme URI: http://www.bravenewcode.com/wptouch/
+Description: A slick theme for your blog or website that is shown only when visitors are using an iPhone, iPod touch, or Android Mobile Device
+Author: Dale Mugford and Duane Storey
+Author URI: http://www.bravenewcode.com/
+	
+	The CSS, XHTML and design is released under GPL:
+	http://www.opensource.org/licenses/gpl-license.php
+
+*/
+
+/* @group Body and Theme-Wide Elements */
+
+body {
+	margin: 0;
+	padding: 0;
+	font: 12px Helvetica;
+	-webkit-text-size-adjust: none;
+	min-height: 460px;
+}
+
+ul {
+	margin: 0;
+	padding: 0 20px 0 20px;
+	list-style-type: circle;
+	list-style-position: outside;
+}
+
+ol {
+	margin: 0;
+	padding: 0 25px 0 20px;
+	list-style-type: decimal;
+	list-style-position: outside;
+}
+
+li {
+	line-height: 17px;
+	font-size: 12px;
+	margin-bottom: 10px;
+	padding-bottom: 10px;
+	color: #555;
+}
+
+a {
+	text-decoration: none;
+}
+
+input {
+	max-width: 96%;
+}
+
+iframe {
+	max-width: 100% !important;
+	height: auto !important;
+}
+
+code {
+	font-family: Courier, "Courier New", mono;
+	color: red;
+}
+
+blockquote {
+	-webkit-border-radius: 10px;
+	border: 1px solid #ccc;
+	padding: 10px;
+	font-size: 12px;
+	background: #eee url(../core/core-images/quotes.png) no-repeat right -2px;
+	text-align: left;
+	margin: 5px 1px;
+}
+
+.clearer {
+	clear: both;
+}
+
+.content {
+	margin-top: 15px;
+	position: relative;
+}
+
+.result-text {
+	color: #475d79;
+	text-shadow: #eee 1px 1px 0;
+	font-size: 15px;
+	font-weight: bold;
+	margin-bottom: 10px;
+	margin-left: 10px;
+	letter-spacing: 0;
+	border-style: none;
+}
+
+.result-text-footer {
+	color: #475d79;
+	text-shadow: #eee 1px 1px 0;
+	letter-spacing: 0;
+	font-size: 15px;
+	font-weight: bold;
+	margin-bottom: 10px;
+	margin-left: 10px;
+	text-align: center;
+	display: block;
+}
+
+.pageentry h1, .mainentry h1 {
+	font-size: 22px;
+}
+
+.pageentry h2, .mainentry h2 {
+	font-size: 18px;
+	text-shadow: #f9f9f9 -1px -1px 0;
+	text-align: left;
+	padding-bottom: 10px;
+	color: #222;
+}
+
+.pageentry h3, .mainentry h3 {
+	text-align: left;
+	color: #666;
+	font-size: 15px;
+	border-bottom: 1px solid #adadad;
+	border-top: 1px solid #adadad;
+	padding: 10px;
+	font-weight: bold;
+	line-height: 14px;
+	background-color: #eee;
+	margin: 5px -10px;
+	text-shadow: #fff -1px 1px 0;
+}
+
+.pageentry h4, .mainentry h4 {
+	font-size: 13px;
+	text-shadow: #f9f9f9 -1px -1px 0;
+	padding: 0 0 10px;
+	padding-bottom: 10px;
+	color: #666;
+}
+
+.pageentry h5, .mainentry h5 {
+	text-shadow: #f9f9f9 -1px -1px 0;
+	font-size: 12px;
+	padding: 0;
+}
+
+.mainentry img, #singlentry img, .pageentry img, ol.commentlist li img {
+	max-width: 100%;
+	height: auto;
+}
+
+.fontsize {
+	font-size: 1.2em;
+	line-height: 140%;
+}
+
+/* @end */
+
+/* @group Header */
+
+#headerbar {
+	width: 100%;
+	background-position: 0 0;
+	background-repeat: repeat-x;
+	height: 45px;
+	border-bottom: 1px solid #1e1e1e;
+	font-size: 19px;
+}
+
+#headerbar-title {
+	text-shadow: #242424 -1px -1px 1px;
+	padding-top: 10px;
+	padding-left: 10px;
+	display: block;
+	margin: 0;
+	border-style: none;
+	padding-bottom: 4px;
+	text-overflow: ellipsis;
+	white-space: nowrap;
+	overflow: hidden;
+	width: 85%;
+	font-weight: bold;
+	height: 29px;
+}
+
+#headerbar-title a {
+	text-decoration: none;
+	letter-spacing: -1px;
+	position: relative;
+	font-family: HelveticaNeue-Bold, sans-serif;
+}
+
+#headerbar-title img#logo-icon {
+	position: relative;
+	margin-right: 7px;
+	max-width: 30px;
+	float: left;
+	width: 28px;
+	height: 28px;
+	padding: 0;
+	bottom: 1px;
+}
+
+#headerbar-menu {
+	position: absolute;
+	top: 0;
+	right: 0;
+	margin: 0;
+	padding: 0;
+}
+
+#headerbar-menu a {
+	height: 45px;
+	display: block;
+	background: url(../core/core-images/wptouch-menu-dropper.png) 0 0;
+	width: 30px;
+	margin: 0;
+	padding: 0;
+}
+
+#headerbar-menu .open {
+	background-position: 0 -45px;
+}
+
+/* @group Sub-Menu */
+
+#drop-fade {
+	width: 100%;
+	display: block;
+	position: relative;
+	-webkit-box-shadow: #000 -3px 2px 3px;
+	text-align: right;
+	border-top: 1px solid #3e3e3e;
+	height: auto;
+	overflow: hidden;
+}
+
+#drop-fade a.top {
+	font-size: 10px;
+	margin-right: 8px;
+	position: relative;
+	bottom: 3px;
+	color: #fff;
+	text-shadow: #000000 0px -1px 1px;
+	display: block;
+	float: right;
+	padding: 6px 2px 2px 0;
+}
+
+#drop-fade #loginopen {
+	background: url(../core/core-images/menu-sprite.png) no-repeat 0 -31px;
+	padding-left: 16px;
+}
+
+#drop-fade #accountopen {
+	padding-left: 18px;
+	background: url(../core/core-images/menu-sprite.png) no-repeat 0 -14px;
+}
+
+#drop-fade #prowlopen {
+	padding-left: 18px;
+	background: url(../core/core-images/menu-sprite.png) no-repeat 2px -57px;
+}
+
+#drop-fade #wordtwitopen {
+	padding-left: 18px;
+	background: url(../core/core-images/menu-sprite.png) no-repeat 2px -74px;
+}
+
+#drop-fade #searchopen {
+	padding-left: 18px;
+	background: url(../core/core-images/menu-sprite.png) no-repeat 2px -92px;
+}
+
+#drop-fade #gigpressopen {
+	padding-left: 18px;
+	background: url(../core/core-images/menu-sprite.png) no-repeat 2px -106px;
+}
+
+/* @end */
+
+/* @group DropDown Menu */
+
+.dropper {
+	width: 100%;
+	position: relative;
+	z-index: 1;
+	margin: 0;
+	padding: 0;
+	border-top: 1px solid #1b1b1b;
+	font-size: 13px;
+	background-color: #2c2c2c;
+}
+
+.dropper ul {
+	position: relative;
+	list-style-type: none;
+	margin: 0;
+	padding: 0;
+}
+
+.dropper li {
+	border-bottom: 1px solid #1d1d1d;
+	margin: 0;
+	background: url(../core/core-images/arrow.png) no-repeat right center;
+	text-transform: capitalize;
+	border-top: 1px solid #363636;
+	padding: 0;
+	text-align: left;
+}
+
+.dropper li.text {
+	color: #eee;
+	text-shadow: #111 0 -1px 1px;
+	text-align: center;
+	background-image: none;
+	padding-top: 25px;
+	padding-bottom: 25px;
+	text-transform: none;
+}
+
+.dropper li.text a {
+	display: inline;
+	margin: 0;
+	padding: 0;
+	text-decoration: underline;
+}
+
+.dropper li:hover {
+	background-color: #222;
+	border-top: 1px solid #222;
+	position: relative;
+	z-index: 2;
+}
+
+.dropper a {
+	font-weight: bold;
+	display: block;
+	text-shadow: #000 -1px -1px 1px;
+	color: #d2d2d2;
+	margin: 0;
+	width: auto;
+	padding: 11px 35px 11px 15px;
+	text-align: left;
+}
+
+/* @group Tab Menus */
+
+#wptouch-menu {
+	position: absolute;
+	z-index: 2;
+	top: 45px;
+	-webkit-box-shadow: #333 -6px 6px 6px;
+	display: none;
+}
+
+#wptouch-menu-inner img {
+	float: left;
+	position: relative;
+	bottom: 5px;
+	width: 28px;
+	padding-right: 10px;
+	right: 0;
+}
+
+#tabnav {
+	background-color: #444;
+	padding-top: 3px;
+	border-bottom: 1px solid #1b1b1b;
+	border-top: 1px solid #575757;
+	padding-left: 10px;
+	height: 24px;
+	margin-bottom: -1px;
+}
+
+#tabnav a {
+	display: inline-block;
+	margin: 0;
+	padding: 2px 8px 7px;
+	color: #999;
+	text-shadow: #111 0 -1px 1px;
+}
+
+#tabnav a.selected {
+	background-color: #2c2c2c;
+	position: relative;
+	z-index: 1;
+	-webkit-border-top-left-radius: 4px;
+	-webkit-border-top-right-radius: 4px;
+	border: 1px solid #1b1b1b;
+	margin-left: -1px;
+	margin-right: -1px;
+	color: #fff !important;
+	-webkit-box-shadow: #222 0px -2px 3px;
+	border-bottom: 1px solid #2c2c2c;
+	text-shadow: #000000 0 -1px 1px;
+}
+
+#tabnav a:hover, #tabnav a:active {
+	color: #fff;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group WordTwit Menu */
+
+#wptouch-wordtwit {
+	position: relative;
+	border-top: 1px solid #3e3e3e;
+	background-color: #222;
+	top: 20px;
+}
+
+#wptouch-wordtwit #twitter-style-bar {
+	display: block;
+	border-top: 1px solid #1e1e1e;
+}
+
+#wordtwit-avatar {
+	text-align: left;
+	padding-bottom: 10px;
+	-webkit-border-radius: 8px;
+	padding-left: 5px;
+	padding-top: 5px;
+	border: 1px solid #555;
+	background-image: none;
+	background-color: #444;
+	margin: 10px;
+}
+
+#wordtwit-avatar img {
+	-webkit-box-reflect: below -1px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.8, transparent), to(white));
+	border: 1px solid #222;
+	float: left;
+	margin-right: 15px;
+	-webkit-border-radius: 2px;
+	width: 32px;
+	height: 32px;
+}
+
+#wptouch-wordtwit a#follow-arrow {
+	border-style: none;
+	width: 18px;
+	height: 18px;
+	position: absolute;
+	top: 22px;
+	right: 15px;
+	padding: 5px;
+	margin: 0;
+}
+
+#wordtwit-avatar p {
+	padding: 0;
+	margin: 0;
+	color: #777;
+}
+
+#wordtwit-avatar p.twitter_username {
+	color: #eee;
+	text-shadow: #222 0 -1px 1px;
+	font-size: 15px;
+	font-weight: bold;
+}
+
+#wordtwit-avatar a {
+	display: inline-block;
+	font-size: 11px;
+	color: #999;
+	text-shadow: #222 0 -1px 0;
+	padding: 3px 0 0;
+}
+
+#wptouch-wordtwit ul {
+	
+}
+
+#wptouch-wordtwit li {
+	color: #ccc;
+	font-size: 12px;
+	text-shadow: #000000 0 -1px 0;
+	text-transform: none;
+	background-image: none;
+	background-color: #2c2c2c;
+	padding-top: 10px;
+	padding-left: 10px;
+	padding-right: 50px;
+}
+
+#wptouch-wordtwit li:last-child {
+	padding-bottom: 20px;
+}
+
+#wptouch-wordtwit li p.time {
+	color: #777;
+	font-size: 11px;
+}
+
+/* @end */
+
+/* @group GigPress */
+
+#wptouch-gigpress {
+	color: #eee;
+	text-shadow: #000000 0 -1px 1px;
+	text-align: left;
+	font-size: 11px;
+	border-top: 1px solid #3e3e3e;
+	clear: both;
+	margin: 0;
+	padding: 0;
+	width: 99%;
+}
+
+#wptouch-gigpress #gigpress-style-bar {
+	border-top: 1px solid #1e1e1e;
+	display: block;
+	width: 100%;
+}
+
+#wptouch-gigpress h4 {
+	font-size: 14px;
+	margin: 22px 0 20px;
+	padding: 0;
+}
+
+#wptouch-gigpress img {
+	float: left;
+	margin: 15px 10px;
+}
+
+/* @end */
+
+/* @group Push Message Area */
+
+#prowl-message {
+	color: #eee;
+	text-shadow: #000000 0 -1px 1px;
+	clear: both;
+	padding: 10px;
+	text-align: left;
+	font-size: 11px;
+	border-top: 1px solid #3e3e3e;
+}
+
+#prowl-message #push-style-bar {
+	display: block;
+	border-top: 1px solid #1e1e1e;
+	margin-left: -10px;
+	margin-right: -10px;
+	margin-top: -10px;
+	padding-top: 10px;
+}
+
+#prowl-message form p {
+	font-weight: bold;
+	font-size: 12px;
+	position: relative;
+	margin-bottom: 10px;
+	margin-top: 10px;
+	clear: both;
+}
+
+#prowl-message label {
+	margin-left: 5px;
+}
+
+#prowl-message input {
+	width: 60%;
+	-webkit-border-radius: 10px;
+	padding: 3px;
+	color: #222;
+	border: 1px solid #1b1b1b;
+	font: 14px "Helvetica Neue", Helvetica, Geneva, Arial, sans-serif;
+}
+
+#prowl-message input#prowl-submit {
+	width: 100px;
+	text-align: center;
+	color: #fff;
+	text-shadow: #333 0 -1px 1px;
+	font-weight: bold;
+	border: 1px solid #333;
+	margin-top: 10px;
+	float: right;
+}
+
+#prowl-message textarea {
+	width: 98%;
+	-webkit-border-radius: 10px;
+	padding: 3px;
+	color: #222;
+	border: 1px solid #1b1b1b;
+	height: 70px;
+	overflow: auto;
+	margin-top: 2px;
+	font: 14px "Helvetica Neue", Helvetica, Geneva, Arial, sans-serif;
+}
+
+#prowl-message h4 {
+	font-size: 14px;
+	margin: 10px 0 15px;
+	padding: 0;
+}
+
+#prowl-message img {
+	float: left;
+	margin-right: 10px;
+}
+
+/* @group Success */
+
+#prowl-success {
+	color: #eee;
+	text-shadow: #000000 0 -1px 1px;
+	font: bold 16px "Helvetica Neue", Helvetica, Geneva, Arial, sans-serif;
+	text-align: center;
+	background: #000 url(../core/core-images/push-success.png) no-repeat center 50px;
+	position: absolute;
+	top: 0;
+	left: 0;
+	z-index: 1000;
+	opacity: 0.9;
+	width: 90%;
+	margin-left: 5%;
+	margin-top: 25px;
+	-webkit-border-radius: 15px;
+	-webkit-box-shadow: #444 0px 0px 15px;
+}
+
+#prowl-success p, #prowl-fail p {
+	margin-top: 125px;
+	margin-left: 20%;
+	margin-right: 20%;
+}
+
+#prowl-fail {
+	color: #eee;
+	text-shadow: #000000 0 -1px 1px;
+	font: bold 16px "Helvetica Neue", Helvetica, Geneva, Arial, sans-serif;
+	text-align: center;
+	background: #000 url(../core/core-images/push-fail.png) no-repeat center 50px;
+	position: absolute;
+	top: 0;
+	left: 0;
+	z-index: 1000;
+	opacity: 0.9;
+	width: 90%;
+	margin-left: 5%;
+	margin-top: 25px;
+	-webkit-border-radius: 15px;
+	-webkit-box-shadow: #444 0px 0px 15px;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group Login & Search */
+
+#wptouch-login {
+	position: absolute;
+	top: 0;
+	left: 0;
+	z-index: 1;
+	width: 100%;
+	display: none;
+}
+
+#wptouch-login-inner {
+	padding-top: 8px;
+	width: 100%;
+	height: 35px;
+	background-repeat: repeat-x;
+	text-align: center;
+	padding-bottom: 2px;
+}
+
+#wptouch-login input#log {
+	width: 120px;
+	-webkit-border-radius: 10px;
+	padding: 3px;
+	font-size: 13px;
+	color: #222;
+	font-weight: bold;
+	border: 1px solid #1b1b1b;
+}
+
+#wptouch-login input#pwd {
+	width: 120px;
+	-webkit-border-radius: 10px;
+	padding: 3px;
+	font-size: 13px;
+	color: #222;
+	font-weight: bold;
+	border: 1px solid #1b1b1b;
+	margin-left: 5px;
+}
+
+#wptouch-search {
+	position: absolute;
+	top: 0;
+	left: 0;
+	z-index: 1;
+	width: 100%;
+	display: none;
+}
+
+#wptouch-search-inner {
+	width: 100%;
+	height: 40px;
+	background-repeat: repeat-x;
+	text-align: center;
+	padding-top: 5px;
+}
+
+input#s {
+	-webkit-border-radius: 10px;
+	padding: 4px;
+	width: 80%;
+	font-size: 13px;
+	color: #222;
+	text-align: left;
+	margin-top: 6px;
+	border: 1px solid #1b1b1b;
+	font-weight: bold;
+}
+
+img.head-close {
+	display: inline;
+	position: relative;
+	top: 6px;
+	left: 5px;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group Index Page */
+
+.post {
+	-webkit-border-radius: 8px;
+	background-color: #fff;
+	padding: 10px;
+	margin-bottom: 12px;
+	position: relative;
+	margin-right: 10px;
+	margin-left: 10px;
+	border: 1px solid #b1b1b1;
+}
+
+.big {
+	height: 200px;
+}
+
+a.post-arrow {
+	width: 18px;
+	height: 15px;
+	float: right;
+	margin-top: 1px;
+	padding: 0;
+	background: #f4f4f4 url(../core/core-images/post-arrow.png) no-repeat center 5px;
+	border: 1px solid #ddd;
+	-webkit-border-radius: 5px;
+	-webkit-transform: scale(1.0) rotate(0deg);
+	-webkit-transition-duration: 0.6s;
+}
+
+a.post-arrow-down {
+	-webkit-transform: scale(1.0) rotate(180deg);
+	-webkit-transition-duration: 0.6s;
+	background: #dfe3e3 url(../core/core-images/post-arrow.png) no-repeat center -14px;
+	border: 1px solid #b8b8b8;
+}
+
+a.h2 {
+	color: #222;
+	text-decoration: none;
+	display: block;
+	margin-top: 2px;
+	text-align: left;
+	width: 93%;
+	letter-spacing: -1px;
+	margin-bottom: 4px;
+	line-height: 15px;
+	font-size: 15px;
+	font-weight: bold;
+}
+
+.mainentry {
+	color: #444;
+	line-height: 145%;
+	display: block;
+}
+
+.mainentry p {
+	margin: 2% 0 1%;
+	padding: 0;
+}
+
+.mainentry a.read-more {
+	display: block;
+	padding-top: 10px;
+	border-top: 1px solid #c1c1c1;
+	position: relative;
+	padding-left: 10px;
+	color: #222;
+	font-weight: bold;
+	background: url(../core/core-images/arrow.png) no-repeat right 7px;
+	padding-bottom: 10px;
+	-webkit-border-bottom-left-radius: 8px;
+	-webkit-border-bottom-right-radius: 8px;
+	margin: 10px -10px -10px;
+}
+
+.mainentry a.read-more:hover {
+	background-color: #dcdcdc;
+}
+
+.mainentry li {
+	border-bottom-style: dashed;
+}
+
+.comment-bubble {
+	background: url(../core/core-images/sprite.png) no-repeat -2px -90px;
+	width: 24px;
+	height: 20px;
+	padding-top: 4px;
+	position: absolute;
+	color: #fff;
+	padding-left: 0;
+	font: bold 13px Helvetica, Arial-BoldMT, Geneva, sans-serif;
+	letter-spacing: -1px;
+	text-shadow: #871521 -1px -1px 1px;
+	padding-right: 1px;
+	margin-left: 0;
+	z-index: 1;
+	text-align: center;
+	left: 1px;
+	top: 1px;
+}
+
+.comment-bubble-big {
+	background: url(../core/core-images/sprite.png) no-repeat -2px -66px;
+	width: 26px;
+	height: 21px;
+	padding-top: 3px;
+	position: absolute;
+	color: #fff;
+	left: 2px;
+	top: 0;
+	padding-left: 0;
+	font: bold 13px Helvetica, Arial-BoldMT, Geneva, sans-serif;
+	letter-spacing: -1px;
+	text-shadow: #871521 -1px -1px 1px;
+	padding-right: 4px;
+	margin-left: 0;
+	z-index: 1;
+	text-align: center;
+}
+
+#nothing-shown {
+	margin-left: -11px;
+	margin-top: -11px;
+}
+
+.archive-top {
+	margin: -11px -11px 7px;
+	-webkit-border-top-right-radius: 8px;
+	padding: 0;
+}
+
+.archive-top-right .post-arrow, .archive-top-right .post-arrow-down {
+	margin-right: 5px;
+	margin-top: 3px;
+}
+
+.archive-top-left.month-01, #arc-top.month-02, #arc-top.month-03, #arc-top.month-04, #arc-top.month-05, #arc-top.month-06, #arc-top.month-07, #arc-top.month-08, #arc-top.month-09, #arc-top.month-10, #arc-top.month-11, #arc-top.month-12 {
+	-webkit-border-top-left-radius: 8px;
+	-webkit-border-top-right-radius: 8px;
+	padding-top: 5px;
+	padding-bottom: 5px;
+	padding-left: 10px;
+	font-weight: bold;
+	color: #eee;
+	text-shadow: #535353 0 -1px 1px;
+}
+
+.main-navigation {
+	-webkit-border-radius: 8px;
+	background-color: #fff;
+	margin-bottom: 12px;
+	position: relative;
+	margin-right: 10px;
+	margin-left: 10px;
+	border: 1px solid #b1b1b1;
+	overflow: hidden;
+	font-weight: bold;
+	padding: 10px;
+}
+
+.main-navigation .alignleft a {
+	float: left;
+	display: block;
+	background: url(../core/core-images/sprite.png) no-repeat 0 -46px;
+	padding-top: 3px;
+	padding-bottom: 3px;
+	padding-left: 23px;
+}
+
+.main-navigation .alignright a {
+	float: right;
+	display: block;
+	padding-top: 3px;
+	padding-bottom: 3px;
+	padding-right: 35px;
+	background: url(../core/core-images/sprite.png) no-repeat right -26px;
+	position: relative;
+	left: 15px;
+}
+
+/* @group Calendar CSS Icons */
+
+.calendar {
+	text-align: center;
+	position: relative;
+	margin-bottom: 5px;
+	margin-right: 10px;
+	margin-top: 0;
+	border: 1px solid #c9c9c9;
+	-webkit-border-top-left-radius: 7px;
+	-webkit-border-top-right-radius: 1px;
+	-webkit-border-bottom-left-radius: 1px;
+	-webkit-border-bottom-right-radius: 7px;
+	top: 3px;
+	float: left;
+	-webkit-box-shadow: #c6c6c6 1px 1px 3px;
+}
+
+.cal-month {
+	font-size: 10px;
+	font-weight: bold;
+	color: #fff;
+	letter-spacing: 0;
+	text-shadow: #67727f 1px -1px 0;
+	border-bottom: 1px solid #ececec;
+	text-transform: uppercase;
+	padding: 3px 10px;
+	-webkit-border-top-left-radius: 6px;
+	-webkit-border-top-right-radius: 1px;
+}
+
+.cal-date {
+	color: #111;
+	background-color: #e9e9e9;
+	text-shadow: white -1px -1px 1px;
+	-webkit-border-bottom-left-radius: 1px;
+	-webkit-border-bottom-right-radius: 6px;
+	letter-spacing: -3px;
+	font: bold 21px Helvetica, "Arial Rounded MT Bold", Geneva, sans-serif;
+	padding: 1px 4px 2px 0;
+	text-align: center;
+	border: 1px solid #fff;
+	border-top-style: none;
+}
+
+/* @group Cal Month Colors */
+
+.month-01 {
+	background-color: #767c8f;
+}
+
+.month-02 {
+	background-color: #345abe;
+}
+
+.month-03 {
+	background-color: #37838d;
+}
+
+.month-04 {
+	background-color: #55b06c;
+}
+
+.month-05 {
+	background-color: #409ad5;
+}
+
+.month-06 {
+	background-color: #be63c5;
+}
+
+.month-07 {
+	background-color: #f79445;
+}
+
+.month-08 {
+	background-color: #4e1e00;
+}
+
+.month-09 {
+	background-color: #a04262;
+}
+
+.month-10 {
+	background-color: #284461;
+}
+
+.month-11 {
+	background-color: #4d1d77;
+}
+
+.month-12 {
+	background-color: #af1919;
+}
+
+/* @end */
+
+/* @end */
+
+.post-author {
+	color: #555;
+	font-size: 9px;
+	line-height: 11px;
+	position: relative;
+	font-weight: bold;
+	letter-spacing: 0;
+	text-align: left;
+	width: 72%;
+	float: left;
+}
+
+.post-author span.lead {
+	font-weight: normal;
+	font-style: normal;
+}
+
+/* @end */
+
+/* @group Ajax */
+
+.ajax-load-more {
+	margin-top: 15px;
+	margin-right: auto;
+	display: block;
+	margin-left: auto;
+	width: 160px;
+}
+
+.spin {
+	height: 16px;
+	background: url(../core/core-images/ajax-loader.gif) no-repeat;
+	display: inline-block;
+	width: 16px;
+	position: relative;
+	float: left;
+	top: 0;
+	right: 5px;
+}
+
+a.ajax {
+	color: #475d79;
+	text-shadow: #eee 1px 1px 0;
+	letter-spacing: 0;
+	height: 16px;
+	font: bold 14px Helvetica, Geneva, Arial, sans-serif;
+}
+
+/* @end */
+
+/* @group Single Post Page */
+
+a.sh2 {
+	letter-spacing: -1px;
+	margin: 0;
+	padding: 0 0 2px;
+	color: #222;
+	display: block;
+	line-height: 20px;
+	font-size: 19px;
+	font-weight: bold;
+	text-align: left;
+}
+
+#singlentry {
+	line-height: 150%;
+	color: #333;
+	display: block;
+	overflow: hidden;
+	font-size: 13px;
+}
+
+#singlentry li {
+	margin-top: 3px;
+	margin-bottom: 3px;
+}
+
+.single-post-meta-top {
+	text-align: left;
+	color: #999;
+	font-size: 10px;
+	font-weight: bold;
+	line-height: 15px;
+}
+
+.single-post-meta-bottom {
+	text-align: left;
+	color: #666;
+	font-size: 11px;
+	border-bottom: 1px solid #adadad;
+	border-top: 1px solid #adadad;
+	padding: 10px;
+	font-weight: bold;
+	line-height: 14px;
+	background-color: #e5eff5;
+	margin: 5px -10px;
+	text-shadow: #fafafa 0 1px 1px;
+}
+
+/* @group Post Options Bar */
+
+.single-post-meta-bottom .post-page-nav {
+	font-size: 15px;
+	margin-bottom: 15px;
+}
+
+.single-post-meta-bottom .post-page-nav a {
+	padding: 3px 7px;
+	background-color: #fff;
+	border: 1px solid #ccc;
+	-webkit-border-radius: 4px;
+}
+
+ul#post-options {
+	-webkit-border-bottom-left-radius: 7px;
+	-webkit-border-bottom-right-radius: 7px;
+	list-style-type: none;
+	background-color: #e6e6e6;
+	padding: 0 4px 0 0;
+	text-align: center;
+	position: relative;
+	margin: -5px -10px -10px;
+	border-top: 1px solid #fbfbfb;
+}
+
+ul#post-options li {
+	margin: 0;
+	padding: 0;
+	display: inline-block;
+}
+
+ul#post-options li a {
+	display: inline-block;
+	width: 38px;
+	padding: 20px 6px 16px;
+	margin: 2px 0 0;
+}
+
+ul#post-options li a#oprev {
+	background: url(../core/core-images/post-options.png) no-repeat 5px -210px;
+	border-right: 1px solid #cfcfcf;
+	width: 38px;
+}
+
+ul#post-options li a#onext {
+	background: url(../core/core-images/post-options.png) no-repeat -7px -244px;
+	border-left: 1px solid #cfcfcf;
+	width: 38px;
+}
+
+ul#post-options li a#omail {
+	background: url(../core/core-images/post-options.png) no-repeat center -1px;
+	border-left: 1px solid #fbfbfb;
+	margin-left: -3px;
+}
+
+ul#post-options li a#otweet {
+	background: url(../core/core-images/post-options.png) no-repeat center -82px;
+}
+
+ul#post-options li a#obook {
+	background: url(../core/core-images/post-options.png) no-repeat center -39px;
+	border-right: 1px solid #fbfbfb;
+	margin-right: -3px;
+}
+
+/* @end */
+
+/* @group Gallery / Captions */
+
+#singlentry .wp-caption {
+	text-align: center;
+	font-size: 11px;
+	color: #999;
+	line-height: 13px;
+	max-width: 100% !important;
+	height: auto !important;
+}
+
+#singlentry .gallery {
+	margin: 0;
+	padding: 0;
+	width: 100% !important;
+	height: auto !important;
+}
+
+#singlentry .gallery dl.gallery-item img.attachment-thumbnail {
+	padding: 3px;
+	margin: 10px;
+	width: 50% !important;
+	height: auto;
+}
+
+#singlentry .gallery dl.gallery-item {
+	margin: 0;
+}
+
+#singlentry .gallery dl.gallery-item dt.gallery-icon {
+	margin: 0;
+}
+
+#singlentry .gallery dl.gallery-item dd.gallery-caption {
+	font-size: 11px;
+	color: #555;
+}
+
+/* @end */
+
+/* @group Twitter / Bookmarking */
+
+#twitter-box {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	margin: 10px;
+	background-color: #fff;
+}
+
+#twitter-box img {
+	float: left;
+	margin-right: 5px;
+	position: relative;
+	bottom: 4px;
+	right: 3px;
+	width: 28px;
+	height: 28px;
+}
+
+#twitter-box ul {
+	list-style-type: none;
+	margin: 0;
+	padding: 0;
+}
+
+#twitter-box li {
+	clear: both;
+	border-bottom: 1px solid #cbcbcb;
+	margin: 0;
+	padding: 0;
+}
+
+#twitter-box li a {
+	display: block;
+	color: #222;
+	font-size: 13px;
+	font-weight: bold;
+	padding-top: 10px;
+	padding-bottom: 13px;
+	padding-left: 10px;
+	margin: 0;
+}
+
+#bookmark-box {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	margin: 10px;
+	background-color: #fff;
+}
+
+#bookmark-box img {
+	float: left;
+	margin-right: 5px;
+	position: relative;
+	bottom: 4px;
+	right: 3px;
+	margin-left: 3px;
+	margin-top: 1px;
+}
+
+#bookmark-box ul {
+	list-style-type: none;
+	margin: 0;
+	padding: 0;
+}
+
+#bookmark-box li {
+	clear: both;
+	border-bottom: 1px solid #cbcbcb;
+	margin: 0;
+	padding: 0;
+}
+
+#bookmark-box li a {
+	display: block;
+	color: #222;
+	font-size: 13px;
+	font-weight: bold;
+	padding-top: 10px;
+	padding-bottom: 13px;
+	padding-left: 10px;
+	margin: 0;
+}
+
+#twitter-box li:last-child, #bookmark-box li:last-child {
+	border-bottom-style: none;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group Pages */
+
+.page h2 {
+	font-size: 20px;
+	letter-spacing: -1px;
+	text-align: left;
+	line-height: 22px;
+	font-weight: normal;
+	font-style: normal;
+	padding-right: 0;
+	padding-top: 0;
+	padding-bottom: 0;
+	position: relative;
+	border-style: none;
+	margin: 10px 0 0 42px;
+}
+
+.pageentry {
+	color: #444;
+	padding: 2px 0 0;
+	line-height: 145%;
+	display: block;
+}
+
+.pageentry li {
+	list-style-type: none;
+}
+
+img.pageicon {
+	position: relative;
+	margin-right: 10px;
+	width: 32px;
+	height: 32px;
+	float: left;
+	margin-top: -5px;
+	margin-left: 0;
+}
+
+.pageentry .wp-caption {
+	text-align: center;
+	font-size: 11px;
+	color: #999;
+	line-height: 13px;
+	max-width: 100% !important;
+	height: auto !important;
+}
+
+/* @group Archives */
+
+#wptouch-tagcloud {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	background-color: #fff;
+	margin-right: 10px;
+	margin-left: 10px;
+	padding: 10px;
+	text-align: justify;
+	text-transform: capitalize;
+	line-height: 150%;
+}
+
+#wptouch-archives {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	background-color: #fff;
+	margin-right: 10px;
+	margin-left: 10px;
+}
+
+#wptouch-archives a {
+	color: #222;
+	display: block;
+	padding-bottom: 10px;
+	padding-left: 10px;
+	background: url(../core/core-images/arrow.png) no-repeat right center;
+	padding-top: 10px;
+}
+
+#wptouch-archives ul {
+	padding: 0;
+	list-style-type: none;
+	margin: 0;
+}
+
+#wptouch-archives li {
+	border-bottom: 1px solid #ccc;
+	list-style-type: none;
+	font-weight: bold;
+	font-size: 14px;
+	color: #222;
+	display: block;
+	padding: 0;
+	margin-bottom: 0;
+	margin-left: -10px;
+	margin-right: -10px;
+}
+
+#wptouch-archives li:first-child {
+	margin-top: -10px;
+}
+
+#wptouch-archives li:last-child {
+	margin-bottom: -10px;
+	border-bottom-style: none;
+}
+
+/* @end */
+
+/* @group Links */
+
+#wptouch-links a {
+	color: #222;
+	display: block;
+	background: url(../core/core-images/arrow.png) no-repeat right center;
+	padding: 10px 10% 10px 10px;
+}
+
+#wptouch-links h2 {
+	color: #475d79;
+	text-shadow: #eee 1px 1px 0;
+	font-size: 15px;
+	font-weight: bold;
+	margin-bottom: 10px;
+	margin-left: 10px;
+	letter-spacing: 0;
+	border-style: none;
+	text-transform: capitalize;
+	margin-top: 20px;
+}
+
+#wptouch-links ul {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	background-color: #fff;
+	list-style-type: none;
+	margin: 10px;
+	padding: 0;
+}
+
+#wptouch-links li {
+	border-bottom: 1px solid #ccc;
+	list-style-type: none;
+	font-weight: bold;
+	font-size: 13px;
+	color: #333;
+	display: block;
+	padding: 0;
+	margin: 0;
+	text-shadow: #fff 0 0 0;
+}
+
+#wptouch-links li:first-child {
+	border-top-style: none;
+}
+
+#wptouch-links li:last-child {
+	border-bottom-style: none;
+}
+
+/* @end */
+
+/* @group Photos */
+
+#wptouch-flickr {
+	text-align: center;
+	width: auto;
+}
+
+#wptouch-flickr img {
+	padding: 1px;
+	background-color: #ccc;
+	margin: 5px;
+	width: 55px;
+	height: 55px;
+}
+
+/* @end */
+
+/* @group 404 */
+
+#fourohfour {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	background-color: #fff;
+	text-align: center;
+	margin: 10px;
+	padding: 10px;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group Comments */
+
+ol#commentlist {
+	list-style-type: none;
+	display: none;
+	margin: 0 10px 0;
+	position: relative;
+	z-index: 1;
+	padding-right: 0;
+	padding-bottom: 0;
+	padding-left: 0;
+}
+
+ol.commentlist li {
+	background-color: #fff;
+	padding: 10px;
+	border-bottom: 1px solid #dedede;
+	margin: 0;
+	overflow: hidden;
+	font-size: 12px;
+	border-right: 1px solid #b1b1b1;
+	border-left: 1px solid #b1b1b1;
+	position: relative;
+}
+
+h3#com-head {
+	font-weight: bold;
+	font-size: 13px;
+	-webkit-border-radius: 8px;
+	text-shadow: #fff 0 1px 0;
+	margin-left: 10px;
+	margin-right: 10px;
+	border: 1px solid #b1b1b1;
+	background: #fff;
+	position: relative;
+	z-index: 1;
+	padding-top: 10px;
+	padding-bottom: 10px;
+	padding-left: 10px;
+	cursor: pointer;
+	display: block;
+}
+
+h3#com-head img#com-arrow {
+	margin-right: 5px;
+	position: relative;
+	top: 1px;
+	-webkit-transform: scale(1.0) rotate(0deg);
+	-webkit-transition-duration: 0.6s;
+}
+
+.comhead-open {
+	-webkit-border-bottom-left-radius: 0px !important;
+	-webkit-border-bottom-right-radius: 0px !important;
+	margin-bottom: -1px;
+	background-color: #eee !important;
+}
+
+.com-arrow-down {
+	-webkit-transform: scale(1.0) rotate(90deg) !important;
+	-webkit-transition-duration: 0.6s  !important;
+}
+
+ol.commentlist li:first-child {
+	border-top: 1px solid #b1b1b1;
+}
+
+ol.commentlist li:last-child {
+	border-bottom: 1px solid #b1b1b1;
+	-webkit-border-bottom-left-radius: 8px;
+	-webkit-border-bottom-right-radius: 8px;
+}
+
+ol.commentlist li .avatar {
+	float: left;
+	border-right: 1px solid #f9f9f9;
+	margin-right: 5px;
+}
+
+ol.commentlist li ul {
+	padding: 0;
+	margin: 0;
+	list-style-type: none;
+}
+
+ol.commentlist .parent {
+	background-color: #fefdec;
+}
+
+ol.commentlist .parent ul.children li {
+	border: 1px solid #ddd;
+	background-color: #e9f8fd;
+	-webkit-border-radius: 8px;
+}
+
+ol.commentlist ul.children .parent ul.children li.alt {
+	border: 1px solid #ddd;
+	background-color: #fff;
+	padding: 10px;
+	margin: 10px 0 0;
+	-webkit-border-radius: 8px;
+}
+
+ol.commentlist ul.children .parent ul.children li.even {
+	border: 1px solid #ddd !important;
+	background-color: #f9fbf6;
+	padding: 10px;
+	margin: 10px 0 0;
+	-webkit-border-radius: 8px;
+}
+
+ol.commentlist .reply a, .comdater {
+	position: absolute;
+	top: 6px;
+	right: 5px;
+	font-weight: bold;
+	font-size: 10px;
+	background-color: #e5e5e5;
+	padding: 1px 5px;
+	border: 1px solid #fff;
+	-webkit-border-radius: 3px;
+	text-shadow: #fff 0 1px 0px;
+}
+
+ol.commentlist .comdater span {
+	margin-right: 3px;
+	border-right: 1px solid #fefefe;
+	display: inline-block;
+}
+
+ol.commentlist .comdater span a {
+	padding-right: 7px;
+}
+
+ol.commentlist .comdater span a:last-child {
+	border-right: 1px solid #ccc;
+	display: inline-block;
+}
+
+ol.commentlist .comment-author {
+	font-weight: bold;
+}
+
+ol.commentlist .comment-meta a {
+	font-size: 11px;
+	color: #999;
+}
+
+.navigation.commentnav {
+	height: 17px;
+	padding-right: 0;
+	padding-top: 10px;
+	padding-left: 10px;
+}
+
+.navigation.commentnav .alignright a {
+	background-repeat: no-repeat;
+	background-position: right -26px;
+	padding-right: 35px;
+}
+
+.navigation.commentnav .alignleft a {
+	background-repeat: no-repeat;
+	background-position: left -46px;
+	padding-left: 25px;
+}
+
+.comtop {
+	background-color: #f5f5f5;
+	padding-left: 0;
+	padding-bottom: 15px;
+	border-bottom: 1px solid #dedede;
+	margin-top: -10px;
+	margin-left: -10px;
+	margin-right: -10px;
+	height: 17px;
+}
+
+.com-author a {
+	font-weight: bold;
+	text-transform: capitalize;
+	font-size: 13px;
+	text-shadow: #fff 0 1px 0;
+	-webkit-border-top-right-radius: 0px;
+}
+
+.com-author {
+	font-weight: bold;
+	text-transform: capitalize;
+	font-size: 13px;
+	position: relative;
+	text-shadow: #fff 0 1px 0;
+	-webkit-border-top-right-radius: 0px;
+	padding-left: 10px;
+	padding-top: 7px;
+}
+
+/*
+
+@end */
+
+/* @group Leaving A Comment */
+
+h3#comments, h3#respond {
+	color: #475d79;
+	text-shadow: #eee 1px 1px 0;
+	letter-spacing: -1px;
+	font-size: 17px;
+	padding-left: 10px;
+	padding-top: 20px;
+}
+
+.preview {
+	background-color: #fdeeab;
+	color: #bf7b20;
+	font-weight: bold;
+	text-shadow: #fff 0 1px 1px;
+	font-size: 11px;
+}
+
+.preview span {
+	position: absolute;
+	right: 62px;
+	top: 8px;
+}
+
+p.logged {
+	color: #475d79;
+	text-shadow: #eee 1px 1px 0;
+	font-size: 11px;
+	font-weight: bold;
+	position: relative;
+	top: 2px;
+	margin-top: 35px;
+}
+
+form#commentform {
+	margin-left: 10px;
+	margin-right: 10px;
+}
+
+form#commentform input {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	padding: 3px;
+	margin: 0;
+	font-size: 13px;
+	color: #444;
+	width: 170px;
+}
+
+form#commentform input#submit {
+	color: #555;
+	font-weight: bold;
+	width: 25%;
+	opacity: 1;
+	background-color: #eee;
+	border: 1px solid #aaa;
+	text-shadow: #fff 0 1px 0;
+}
+
+textarea#comment {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	font-size: 13px;
+	color: #444;
+	height: 110px;
+	width: 98%;
+	padding: 3px;
+}
+
+#loading {
+	position: relative;
+	background-color: #dedede;
+	-webkit-border-radius: 8px;
+	border: 1px solid #9fa5ac;
+	opacity: 0.85;
+	z-index: 9;
+	margin: 0;
+	bottom: 166px;
+	text-align: center;
+	width: 98%;
+	height: 64px;
+	max-width: 453px;
+	padding: 50px 3px 2px;
+}
+
+#loading p {
+	display: inline;
+	position: relative;
+	bottom: 3px;
+	left: 3px;
+	text-shadow: #fff 0 1px 0;
+	font-size: 12px;
+	color: #2f4e71;
+	font-weight: bold;
+}
+
+form#commentform label {
+	color: #475d79;
+	text-shadow: #eee 1px 1px 0;
+	font-size: 12px;
+	font-weight: bold;
+}
+
+#refresher {
+	-webkit-border-radius: 8px;
+	padding: 10px 10px 10px 18px;
+	border: 1px solid #b1b1b1;
+	background-color: #e9f5f8;
+	color: #475d79;
+	font-weight: bold;
+	margin-left: 10px;
+	margin-right: 10px;
+	text-shadow: #f5f5f5 0 1px 1px;
+	margin-top: 20px;
+}
+
+#refresher img {
+	float: left;
+	margin-right: 3px;
+	margin-left: -10px;
+}
+
+#refresher h3 {
+	padding: 0;
+	margin: 0 0 5px;
+	color: #475d79;
+	text-shadow: #f5f5f5 0 1px 1px;
+}
+
+p.subscribe-to-comments {
+	padding: 8px;
+	-webkit-border-radius: 8px;
+	background-color: #eee;
+	border: 1px solid #adadad;
+}
+
+p.subscribe-to-comments label {
+	text-shadow: #fff 0 1px 0 !important;
+	color: #333 !important;
+}
+
+p.subscribe-to-comments input#subscribe {
+	padding-right: 3px;
+	vertical-align: top;
+}
+
+/*
+
+ @end */
+
+/* @group Text Options */
+
+.full-justified {
+	text-align: justify;
+}
+
+.left-justifed {
+	text-align: left;
+}
+
+.small-text {
+	font-size: 1.1em;
+}
+
+.medium-text {
+	font-size: 1.2em;
+}
+
+.large-text {
+	font-size: 1.3em;
+}
+
+/* @end */
+
+/* @group Background Options */
+
+.classic-wptouch-bg {
+	background: url(../core/core-images/pinstripes-classic.gif) repeat;
+}
+
+.argyle-wptouch-bg {
+	background: url(../core/core-images/argyle-tie.gif) repeat;
+}
+
+.horizontal-wptouch-bg {
+	background: url(../core/core-images/pinstripes-horizontal.gif) repeat;
+}
+
+.diagonal-wptouch-bg {
+	background: url(../core/core-images/pinstripes-diagonal.gif) repeat;
+}
+
+.skated-wptouch-bg {
+	background: url(../core/core-images/skated-concrete.gif) repeat;
+}
+
+.grid-wptouch-bg {
+	background: url(../core/core-images/grid.gif) repeat;
+}
+
+/* @end */
+
+/* @group Footer */
+
+#footer {
+	text-align: center;
+	color: #475d79;
+	font-size: 10px;
+	font-weight: bold;
+	text-shadow: #eee 1px 1px 0;
+	margin-top: 60px;
+	line-height: 13px;
+	padding: 0 0 10px;
+}
+
+#footer p {
+	margin: 0;
+	padding: 0 25px 5px;
+}
+
+/* @group Switch Link */
+
+#wptouch-switch-link {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	margin-right: 10px;
+	margin-left: 10px;
+	margin-bottom: 20px;
+	position: relative;
+	max-width: 300px;
+	padding: 13px 10px 12px 8px;
+	color: #222;
+	text-shadow: #fff 0 0 0;
+	font-size: 13px;
+	text-align: left;
+	background-color: #fff;
+}
+
+#wptouch-switch-link a {
+	position: relative;
+	display: block;
+	width: 77px;
+	background: url(../core/core-images/onoff.jpg) no-repeat left top;
+	height: 22px;
+	float: right;
+	left: 2px;
+	bottom: 5px;
+}
+
+.offimg {
+	width: 77px;
+	background: url(../core/core-images/onoff.jpg) no-repeat 0 -22px !important;
+	height: 22px;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group Compatibility CSS */
+
+/* @group AddThis / Tweet This */
+
+.addthis_container {
+	display: none !important;
+}
+
+a.tt {
+	display: none !important;
+}
+
+/* @end */
+
+/* @group Intense Debate */
+
+/* @end */
+
+/* @group Peter's Anti Spam Support */
+
+#secureimgdiv img#cas_image {
+	-webkit-border-radius: 2px	!important;
+	border: 1px solid #adadad	!important;
+	width: auto							!important;
+	height: 21px							!important;
+	float: left								!important;
+}
+
+#secureimgdiv p label {
+	color: #475d79;
+	text-shadow: #eee 1px 1px 0;
+	font-size: 14px;
+	font-weight: bold;
+}
+
+#secureimgdiv p small {
+	display: block;
+	margin-top: 5px;
+	font-size: 11px;
+	text-align: justify;
+}
+
+#secureimgdiv p input#securitycode {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	padding: 3px;
+	margin: 0 0 0 0;
+	font-size: 13px;
+	color: #444;
+	width: 101px;
+	-webkit-border-top-left-radius: 1px;
+	-webkit-border-bottom-left-radius: 1px;
+}
+
+/* @end */
+
+/* @group YouTube Plugin */
+
+.post object, .post embed {
+	width: 100% !important;
+	height: auto;
+	position: relative;
+	z-index: 0;
+}
+
+/* @end */
+
+/* @group Ribbon Manager Plugin Override */
+
+a#ribbon {
+	display: none !important;
+}
+
+/* @end */
+
+/* @group Disqus */
+
+#disqus_thread .dsq-auth-header {
+	margin-top: -35px;
+}
+
+h3#dsq-add-new-comment {
+	color: #475d79;
+	text-shadow: #eee 2px 1px 1px;
+	letter-spacing: -1px;
+	font-size: 16px;
+	position: relative;
+	bottom: 10px;
+}
+
+.dsq-by img {
+	display: none;
+}
+
+.dsq-authenticated-pic img.dsq-post-avatar {
+	width: 24px;
+	height: 24px;
+}
+
+#disqus_thread {
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	background-color: #fff;
+	padding: 10px;
+	margin-left: 10px;
+	margin-right: 10px;
+	margin-top: 50px;
+}
+
+#disqus_thread .dsq-authenticated ul li {
+	font-weight: bold;
+	position: relative;
+	left: 5px;
+}
+
+#disqus_thread a#dsq-options-toggle {
+	float: right;
+}
+
+a.dsq-brlink {
+	text-align: center;
+	display: block;
+	margin-top: 15px;
+	font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
+}
+
+/* @end */
+
+/* @end */
+
+/* @group WPtouch Adsense area */
+
+#adsense-area {
+	height: 50px;
+	overflow: none;
+	margin-bottom: 12px;
+	background: transparent;
+}
+
+#adsense-area iframe {
+	height: 50px!important;
+	overflow: none;
+}
+
+/* @end */
+
+/* @group Intense Debate */
+
+#idc-container-parent {
+	background-color: white;
+	margin-left: 10px;
+	margin-right: 10px;
+	-webkit-border-radius: 8px;
+	border: 1px solid #adadad;
+	overflow: hidden;
+	font: 12px Helvetica !important;
+	position: relative  !important;
+}
+
+#idc-container-parent .idc-c-t {
+	padding: 9px;
+}
+
+#idc-container-parent .idc-c-b {
+	padding-left: 5px;
+}
+
+#idc-container-parent ul#IDCPostNav li {
+	font-size: 11px !important;
+}
+
+#idc-container-parent .idc-new {
+	padding-left: 10px !important;
+	padding-right: 10px !important;
+}
+
+#idc-container-parent .idc-head h3, #idc-container-parent .idc-new h3 {
+	color: #475d79;
+	text-shadow: #eee 2px 1px 1px;
+	letter-spacing: -1px;
+	font-size: 16px;
+	position: relative;
+	bottom: 10px;
+	padding-left: 10px;
+}
+
+#idc-container-parent .idc-right {
+	margin-top: -10px;
+	padding-right: 10px;
+}
+
+#idc-container-parent textarea {
+	width: 91% !important;
+}
+
+#idc-container-parent .idc-column {
+	display: block;
+	clear: both;
+	width: 94% !important;
+}
+
+#idc-container-parent form input {
+	max-width: 100px;
+}
+
+#idc-container-parent form div {
+	margin-bottom: 10px;
+}
+
+#idc-container-parent #IDNewThreadSubmitLI.idc-right {
+	position: absolute;
+}
+
+#idc-container-parent label.idc-nofloat {
+	display: none;
+}
+
+/* @end */
+
+/* @group No Script Overlay */
+
+#noscript-wrap {
+	width: 100%;
+	height: 100%;
+	position: absolute;
+	top: 0;
+	left: 0;
+	background-color: #eee;
+	z-index: 1000;
+	opacity: 0.9;
+}
+
+#noscript {
+	color: #ddd;
+	display: block;
+	height: 54%;
+	text-shadow: #000000 -1px -1px 0;
+	-webkit-border-radius: 15px;
+	-webkit-box-shadow: #444 0px 0px 15px;
+	width: auto;
+	padding-right: 25px;
+	padding-left: 25px;
+	background: #0d0d0d url(../../images/saved.png) no-repeat center top;
+	padding-top: 110px;
+	text-align: center;
+	border: 3px solid #444;
+	font: 14px Helvetica, Arial, sans-serif;
+	margin: 25px;
+}
+
+/* @end */
+
+/* @group Post Thumbnails (2.9 only) */
+
+.wptouch-post-thumb-wrap {
+	background: url(../core/core-images/top-left.png) no-repeat;
+	position: relative;
+	margin-right: 8px;
+	-webkit-box-reflect: below 1px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.85, transparent), to(white));
+	display: block;
+	margin-bottom: 4px;
+	width: 46px;
+	height: 46px;
+	float: left;
+}
+
+.wptouch-post-thumb img {
+	width: 46px;
+	height: 46px;
+}
+
+.wptouch-post-thumb-wrap .thumb-top-left {
+	position: absolute;
+	top: 0;
+	left: 0;
+	height: 9px;
+	width: 9px;
+	background: url(../core/core-images/thumb-corners.png) no-repeat 0 0;
+}
+
+.wptouch-post-thumb-wrap .thumb-top-right {
+	position: absolute;
+	top: 0;
+	right: 0;
+	width: 9px;
+	height: 9px;
+	background: url(../core/core-images/thumb-corners.png) no-repeat right top;
+}
+
+.wptouch-post-thumb-wrap .thumb-bottom-left {
+	position: absolute;
+	bottom: 0;
+	left: 0;
+	width: 9px;
+	height: 9px;
+	background: url(../core/core-images/thumb-corners.png) no-repeat 0 -9px;
+}
+
+.wptouch-post-thumb-wrap .thumb-bottom-right {
+	position: absolute;
+	bottom: 0;
+	right: 0;
+	width: 9px;
+	height: 9px;
+	background: url(../core/core-images/thumb-corners.png) 9px -9px;
+}
+
+/* @end */
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/wptouch/wptouch.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,831 @@
+<?php
+/*
+   Plugin Name: WPtouch iPhone Theme
+   Plugin URI: http://bravenewcode.com/wptouch
+   Description: A plugin which formats your site with a mobile theme for the Apple <a href="http://www.apple.com/iphone/">iPhone</a> / <a href="http://www.apple.com/ipodtouch/">iPod touch</a>, <a href="http://www.android.com/">Google Android</a> and other touch-based smartphones.
+	Author: Dale Mugford & Duane Storey (BraveNewCode)
+	Version: 1.9.7.6
+	Author URI: http://www.bravenewcode.com
+   
+	# Thanks to ContentRobot and the iWPhone theme/plugin
+	# which the detection feature of the plugin was based on.
+	# (http://iwphone.contentrobot.com/)
+	
+	# Also thanks to Henrik Urlund, who's "Prowl Me" plugin inspired
+	# the Push notification additions.
+	# (http://codework.dk/referencer/wp-plugins/prowl-me/)
+	
+	# All Admin and theme design / CSS is Copyright (c) 2007-2010
+	# Duane Storey & Dale Mugford of BraveNewCode Inc.
+	#
+	# 'WPtouch' is an unregistered trademark of BraveNewCode Inc., 
+	# and may not be used in conjuction with this software without permission.
+	
+	# The code in this plugin is free software; you can redistribute the code aspects of
+	# the plugin and/or modify the code under the terms of the GNU Lesser General
+	# Public License as published by the Free Software Foundation; either
+	# version 2.1 of the License, or (at your option) any later version.
+	
+	# 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. 
+	#
+	# See the GNU lesser General Public License for more details.
+*/
+
+
+global $bnc_wptouch_version;
+$bnc_wptouch_version = '1.9.7.6';
+
+require_once( 'include/plugin.php' );
+require_once( 'include/compat.php' );
+
+define( 'WPTOUCH_PROWL_APPNAME', 'WPtouch');
+
+function wp_touch_get_comment_count() {
+	global $wpdb;
+	global $post;
+	
+	$result = $wpdb->get_row( $wpdb->prepare( "SELECT count(*) as c FROM {$wpdb->comments} WHERE comment_type = '' AND comment_approved = 1 AND comment_post_ID = %d", $post->ID ) );
+	if ( $result ) {
+		return $result->c;
+	} else {
+		return 0;	
+	}
+}
+
+
+//The WPtouch Settings Defaults
+global $wptouch_defaults;
+$wptouch_defaults = array(
+	'header-title' => get_bloginfo('name'),
+	'main_title' => 'Default.png',
+	'enable-post-excerpts' => true,
+	'enable-page-coms' => false,
+	'enable-cats-button' => true,
+	'enable-tags-button' => true,
+	'enable-search-button' => true,
+	'enable-login-button' => false,
+	'enable-ajax-comments' => true,
+	'enable-gravatars' => true,
+	'enable-main-home' => true,
+	'enable-main-rss' => true,
+	'enable-main-name' => true,
+	'enable-main-tags' => true,
+	'enable-main-categories' => true,
+	'enable-main-email' => true,
+// Prowl
+	'prowl-api' => '',
+	'enable-prowl-comments-button' => false,
+	'enable-prowl-users-button' => false,
+	'enable-prowl-message-button' => false,
+//
+	'header-background-color' => '000000',
+	'header-border-color' => '333333',
+	'header-text-color' => 'eeeeee',
+	'link-color' => '006bb3',
+// New
+	'post-cal-thumb' =>'calendar-icons',
+	'h2-font' =>'Helvetica Neue',
+//
+	'style-text-justify' => 'full-justified',
+	'style-background' => 'classic-wptouch-bg',
+	'enable-regular-default' => false,
+	'excluded-cat-ids' => '',
+	'home-page' => 0,
+	'enable-exclusive' => false,
+	'sort-order' => 'name',
+	'adsense-id' => '',
+	'statistics' => '',
+	'adsense-channel' => '',
+	'custom-user-agents' => array(),
+	'enable-show-tweets' => false,
+	'enable-gigpress-button' => false
+);
+
+function wptouch_get_plugin_dir_name() {
+	global $wptouch_plugin_dir_name;
+	return $wptouch_plugin_dir_name;
+}
+
+function wptouch_delete_icon( $icon ) {
+	if ( !current_user_can( 'upload_files' ) ) {
+		// don't allow users to delete who don't have access to upload (security feature)
+		return;	
+	}
+			
+	$dir = explode( 'wptouch', $icon );
+	$loc = compat_get_upload_dir() . "/wptouch/" . ltrim( $dir[1], '/' );
+
+	unlink( $loc );
+}
+
+function wptouch_init() {	
+	if ( isset( $_GET['delete_icon'] ) ) {
+		wptouch_delete_icon( $_GET['delete_icon'] );
+		header( 'Location: ' . get_bloginfo('wpurl') . '/wp-admin/options-general.php?page=wptouch/wptouch.php#available_icons' );
+		die;
+	}	
+
+}
+
+function wptouch_include_adsense() {
+	global $wptouch_plugin;
+	$settings = bnc_wptouch_get_settings();
+	if ( bnc_is_iphone() && $wptouch_plugin->desired_view == 'mobile' && isset( $settings['adsense-id'] ) && strlen( $settings['adsense-id'] ) && is_single() ) {
+		global $wptouch_settings;
+		$wptouch_settings = $settings;
+		
+		include( 'include/adsense-new.php' );
+	}
+}
+
+function wptouch_content_filter( $content ) {
+	global $wptouch_plugin;
+	$settings = bnc_wptouch_get_settings();
+	if ( bnc_is_iphone() && $wptouch_plugin->desired_view == 'mobile' && isset($settings['adsense-id']) && strlen($settings['adsense-id']) && is_single() ) {
+		global $wptouch_settings;
+		$wptouch_settings = $settings;
+		
+		ob_start();
+		include( 'include/adsense-new.php' );
+		$ad_contents = ob_get_contents();
+		ob_end_clean();
+		
+		return  '<div class="wptouch-adsense-ad">' . $ad_contents . '</div>' . $content;	
+	} else {
+		return $content;
+	}
+}
+
+	add_filter('init', 'wptouch_init');
+
+	function WPtouch($before = '', $after = '') {
+		global $bnc_wptouch_version;
+		echo $before . 'WPtouch ' . $bnc_wptouch_version . $after;
+	}
+
+//Add a link to settings on the plugin listings page
+function wptouch_settings_link( $links, $file ) {
+ 	if( $file == 'wptouch/wptouch.php' && function_exists( "admin_url" ) ) {
+		$settings_link = '<a href="' . admin_url( 'options-general.php?page=wptouch/wptouch.php' ) . '">' . __('Settings') . '</a>';
+		array_unshift( $links, $settings_link ); // before other links
+	}
+	return $links;
+}
+ 
+// WP Admin stylesheets & javascript
+function wptouch_admin_files() {		
+	if ( isset( $_GET['page'] ) && $_GET['page'] == 'wptouch/wptouch.php' ) {
+		echo "<link rel='stylesheet' type='text/css' href='" . compat_get_plugin_url( 'wptouch' ) . "/admin-css/wptouch-admin.css' />\n";
+		echo "<link rel='stylesheet' type='text/css' href='" . compat_get_plugin_url( 'wptouch' ) . "/admin-css/bnc-global.css' />\n";
+		echo "<link rel='stylesheet' type='text/css' href='" . compat_get_plugin_url( 'wptouch' ) . "/admin-css/bnc-compressed-global.css' />\n";
+		echo "<script type='text/javascript' src='" . compat_get_plugin_url( 'wptouch' ) . "/js/ajax_upload_3.6.js'></script>\n";
+		echo "<script type='text/javascript' src='" . compat_get_plugin_url( 'wptouch' ) . "/js/colorpicker_1.4.js'></script>\n";
+		echo "<script type='text/javascript' src='" . compat_get_plugin_url( 'wptouch' ) . "/js/fancybox_1.2.5.js'></script>\n";
+		echo "<script type='text/javascript' src='" . compat_get_plugin_url( 'wptouch' ) . "/js/admin_1.9.js'></script>\n";
+	}
+}
+
+function bnc_wptouch_get_user_agents() {
+	$useragents = array(		
+		"iphone",  				 // Apple iPhone
+		"ipod", 					 // Apple iPod touch
+		"aspen", 				 // iPhone simulator
+		"dream", 				 // Pre 1.5 Android
+		"android", 			 // 1.5+ Android
+		"cupcake", 			 // 1.5+ Android
+		"blackberry9500",	 // Storm
+		"blackberry9530",	 // Storm
+		"opera mini", 		 // Experimental
+		"webos",				 // Experimental
+		"incognito", 			 // Other iPhone browser
+		"webmate" 			 // Other iPhone browser
+	);
+	
+	$settings = bnc_wptouch_get_settings();
+	if ( isset( $settings['custom-user-agents'] ) ) {
+		foreach( $settings['custom-user-agents'] as $agent ) {
+			if ( !strlen( $agent ) ) continue;
+			
+			$useragents[] = $agent;	
+		}	
+	}
+	
+	asort( $useragents );
+
+	// WPtouch User Agent Filter
+	$useragents = apply_filters( 'wptouch_user_agents', $useragents );
+	
+	return $useragents;
+}
+
+function bnc_wptouch_is_prowl_key_valid() {
+	require_once( 'include/class.prowl.php' );		
+		
+	$settings = bnc_wptouch_get_settings();
+				
+	if ( isset( $settings['prowl-api'] ) ) {
+		$api_key = $settings['prowl-api'];
+			
+		$prowl = new Prowl( $api_key, $settings['header-title'] );	
+		$verify = $prowl->verify();
+		return ( $verify === true );
+	}
+	
+	return false;
+}
+  
+class WPtouchPlugin {
+	var $applemobile;
+	var $desired_view;
+	var $output_started;
+	var $prowl_output;
+	var $prowl_success;
+		
+	function WPtouchPlugin() {
+		$this->output_started = false;
+		$this->applemobile = false;
+		$this->prowl_output = false;
+		$this->prowl_success = false;
+
+		add_action( 'plugins_loaded', array(&$this, 'detectAppleMobile') );
+		add_filter( 'stylesheet', array(&$this, 'get_stylesheet') );
+		add_filter( 'theme_root', array(&$this, 'theme_root') );
+		add_filter( 'theme_root_uri', array(&$this, 'theme_root_uri') );
+		add_filter( 'template', array(&$this, 'get_template') );
+		add_filter( 'init', array(&$this, 'bnc_filter_iphone') );
+		add_filter( 'wp', array(&$this, 'bnc_do_redirect') );
+		add_filter( 'wp_head', array(&$this, 'bnc_head') );
+		add_filter( 'query_vars', array( &$this, 'wptouch_query_vars' ) );
+		add_filter( 'parse_request', array( &$this, 'wptouch_parse_request' ) );
+		add_action( 'comment_post', array( &$this, 'wptouch_handle_new_comment' ) );
+		add_action( 'user_register', array( &$this, 'wptouch_handle_new_user' ) );
+		
+		$this->detectAppleMobile();
+	}
+	
+	function wptouch_cleanup_growl( $msg ) {
+		$msg = str_replace("\r\n","\n", $msg);
+		$msg = str_replace("\r","\n", $msg);
+		return $msg;	
+	}
+	
+	function wptouch_send_prowl_message( $title, $message ) {
+		require_once( 'include/class.prowl.php' );		
+		
+		$settings = bnc_wptouch_get_settings();
+				
+		if ( isset( $settings['prowl-api'] ) ) {
+			$api_key = $settings['prowl-api'];
+			
+			$prowl = new Prowl( $api_key, $settings['header-title'] );
+				
+			$this->prowl_output = true;
+			$result = $prowl->add( 	1, $title, $this->wptouch_cleanup_growl( stripslashes( $message ) ) );	
+			
+			if ( $result ) {
+				$this->prowl_success = true;
+			} else {				
+				$this->prowl_success = false;
+			}		
+		} else {
+			return false;	
+		}
+	}
+	
+	function wptouch_handle_new_comment( $comment_id, $approval_status = '1' ) {
+		$settings = bnc_wptouch_get_settings();
+		
+		if ( $approval_status != 'spam' 
+		&& isset( $settings['prowl-api'] ) 
+		&& isset( $settings['enable-prowl-comments-button'])
+		&& $settings['enable-prowl-comments-button'] == 1 ) {
+			
+			$api_key = $settings['prowl-api'];
+			
+			require_once( 'include/class.prowl.php' );
+			$comment = get_comment( $comment_id );
+			$prowl = new Prowl( $api_key, $settings['header-title'] );
+			
+			if ( $comment->comment_type != 'spam' && $comment->comment_approved != 'spam' ) {
+				if ( $comment->comment_type == 'trackback' || $comment->comment_type == 'pingback' ) {
+					$result = $prowl->add( 	1, 
+						__( "New Ping/Trackback", "wptouch" ),
+						'From: '. $this->wptouch_cleanup_growl( stripslashes( $comment->comment_author ) ) . 
+						"\nPost: ". $this->wptouch_cleanup_growl( stripslashes( $comment->comment_content ) ) 
+					);			
+			 	} else {
+					$result = $prowl->add( 	1, 
+						__( "New Comment", "wptouch" ),
+						'Name: '. $this->wptouch_cleanup_growl( stripslashes( $comment->comment_author ) ) . 
+						"\nE-Mail: ". $this->wptouch_cleanup_growl( stripslashes( $comment->comment_author_email ) ) .
+						"\nComment: ". $this->wptouch_cleanup_growl( stripslashes( $comment->comment_content ) )
+					);		 
+			 	}
+			}
+		 }
+
+	}
+	
+
+	function wptouch_handle_new_user( $user_id ) {
+		$settings = bnc_wptouch_get_settings();
+		
+		if ( isset( $settings['prowl-api'] ) 
+		&& isset( $settings['enable-prowl-users-button'] ) 
+		&& $settings['enable-prowl-users-button'] == 1 ) {
+
+			global $wpdb;			
+			$api_key = $settings['prowl-api'];
+			require_once( 'include/class.prowl.php' );
+			global $table_prefix;
+			$sql = $wpdb->prepare( "SELECT * from " . $table_prefix . "users WHERE ID = %d", $user_id );
+			$user = $wpdb->get_row( $sql );
+			
+			if ( $user ) {
+				$prowl = new Prowl( $api_key, $settings['header-title'] );	
+				$result = $prowl->add( 	1, 
+					__( "User Registration", "wptouch" ),
+					'Name: '. $this->wptouch_cleanup_growl( stripslashes( $user->user_login ) ) . 
+					"\nE-Mail: ". $this->wptouch_cleanup_growl( stripslashes( $user->user_email ) )
+				);			
+			}
+		}
+	}
+
+	function wptouch_query_vars( $vars ) {
+		$vars[] = "wptouch";
+		return $vars;
+	}
+
+	function wptouch_parse_request( $wp ) {
+		if  (array_key_exists( "wptouch", $wp->query_vars ) ) {
+			switch ( $wp->query_vars["wptouch"] ) {
+				case "upload":
+					include( 'ajax/file_upload.php' );	
+					break;
+				case "plugins":
+					include( 'ajax/load-plugins.php' );
+					break;
+			}
+			exit;
+		}	
+	}
+
+	function bnc_head() {
+		if ( $this->applemobile && $this->desired_view == 'normal' ) {
+			echo "<link rel='stylesheet' type='text/css' href='" . compat_get_plugin_url( 'wptouch' ) . "/themes/core/core-css/wptouch-switch-link.css'></link>\n";
+			echo "<meta name=\"viewport\" content=\"width=device-width,initial-scale=0,user-scalable=yes\" /> \n";
+		}		
+	}
+
+	function bnc_do_redirect() {
+	   global $post;
+				
+		// check for wptouch prowl direct messages	
+		$nonce = '';
+		if ( isset( $_POST['_nonce'] ) ) {
+			$nonce = $_POST['_nonce'];	
+		}
+			
+		if ( isset( $_POST['wptouch-prowl-message'] ) && wp_verify_nonce( $nonce, 'wptouch-prowl' )  ) {
+			$name = $_POST['prowl-msg-name'];
+			$email = $_POST['prowl-msg-email'];
+			$msg = $_POST['prowl-msg-message'];
+			
+			$title = __( "Direct Message", "wptouch" );
+			$prowl_message = 'From: '. $this->wptouch_cleanup_growl( $name ) . 
+				"\nE-Mail: ". $this->wptouch_cleanup_growl( $email ) .
+				"\nMessage: ". $this->wptouch_cleanup_growl( $msg );
+				"\nIP: " . $_SERVER["REMOTE_ADDR"] .
+				
+			$this->wptouch_send_prowl_message( $title, $prowl_message );
+		}		   
+	   
+	   if ( $this->applemobile && $this->desired_view == 'mobile' ) {
+			$version = (float)get_bloginfo('version');
+			$is_front = 0;
+			$is_front = (is_front_page() && (bnc_get_selected_home_page() > 0));
+
+			if ( $is_front ) {
+	    	     $url = get_permalink( bnc_get_selected_home_page() );
+	        	 header('Location: ' . $url);
+	         	die;
+	   	     }
+	   }
+	}
+
+	function bnc_filter_iphone() {				
+		$key = 'wptouch_switch_cookie';
+		
+	   if (isset($_GET['theme_view'])) {
+	  		if ($_GET['theme_view'] == 'mobile') {
+				setcookie($key, 'mobile', 0); 
+			} elseif ($_GET['theme_view'] == 'normal') {
+				setcookie($key, 'normal', 0);
+			}
+			
+			$redirect_location = get_bloginfo( 'siteurl' );
+// fix by cybrstudd
+			if ( isset( $_GET['wptouch_redirect'] ) ) {
+				$protocol = ($_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
+				$redirect_location = $protocol . $_GET['wptouch_redirect'];
+			}
+			
+			header( 'Location: ' . $redirect_location );
+			die;
+		}
+
+		$settings = bnc_wptouch_get_settings();
+		if (isset($_COOKIE[$key])) {
+			$this->desired_view = $_COOKIE[$key];
+		} else {
+			if ( $settings['enable-regular-default'] ) {
+				$this->desired_view = 'normal';
+			} else {
+		  		$this->desired_view = 'mobile';
+			}
+		}		
+	}
+	
+	function detectAppleMobile($query = '') {
+		$container = $_SERVER['HTTP_USER_AGENT'];
+		// The below prints out the user agent array. Uncomment to see it shown on the page.
+		// print_r($container); 
+		// Add whatever user agents you want here to the array if you want to make this show on another device.
+		// No guarantees it'll look pretty, though!
+		$useragents = bnc_wptouch_get_user_agents();
+
+		$devfile =  compat_get_plugin_dir( 'wptouch' ) . '/include/developer.mode';
+		$this->applemobile = false;
+		foreach ( $useragents as $useragent ) {
+			if ( eregi( $useragent, $container ) || file_exists($devfile) ) {
+				$this->applemobile = true;
+			} 	
+		}
+	}
+
+	function get_stylesheet( $stylesheet ) {
+		if ($this->applemobile && $this->desired_view == 'mobile') {
+			return 'default';
+		} else {
+			return $stylesheet;
+		}
+	}
+		  
+	function get_template( $template ) {
+		$this->bnc_filter_iphone();
+		if ($this->applemobile && $this->desired_view === 'mobile') {
+			return 'default';
+		} else {	   
+			return $template;
+		}
+	}
+		  
+	function get_template_directory( $value ) {
+		$theme_root = compat_get_plugin_dir( 'wptouch' );
+		if ($this->applemobile && $this->desired_view === 'mobile') {
+				return $theme_root . '/themes';
+		} else {
+				return $value;
+		}
+	}
+		  
+	function theme_root( $path ) {
+		$theme_root = compat_get_plugin_dir( 'wptouch' );
+		if ($this->applemobile && $this->desired_view === 'mobile') {
+			return $theme_root . '/themes';
+		} else {
+			return $path;
+		}
+	}
+		  
+	function theme_root_uri( $url ) {
+		if ($this->applemobile && $this->desired_view === 'mobile') {
+			$dir = compat_get_plugin_url( 'wptouch' ) . "/themes";
+			return $dir;
+		} else {
+			return $url;
+		}
+	}
+}
+  
+global $wptouch_plugin;
+$wptouch_plugin = new WPtouchPlugin();
+
+//Thanks to edyoshi:
+function bnc_is_iphone() {
+	global $wptouch_plugin;
+	$wptouch_plugin->bnc_filter_iphone();
+	return $wptouch_plugin->applemobile;
+}
+  
+// The Automatic Footer Template Switch Code (into "wp_footer()" in regular theme's footer.php)
+function wptouch_switch() {
+	global $wptouch_plugin;
+	if ( bnc_is_iphone() && $wptouch_plugin->desired_view == 'normal' ) {
+		echo '<div id="wptouch-switch-link">';
+		_e( "Mobile Theme", "wptouch" ); 
+		echo "<a onclick=\"document.getElementById('switch-on').style.display='block';document.getElementById('switch-off').style.display='none';\" href=\"" . get_bloginfo('siteurl') . "/?theme_view=mobile&wptouch_redirect=" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . "\"><img id=\"switch-on\" src=\"" . compat_get_plugin_url( 'wptouch' ) . "/themes/core/core-images/on.jpg\" alt=\"on switch image\" class=\"wptouch-switch-image\" style=\"display:none\" /><img id=\"switch-off\" src=\"" . compat_get_plugin_url( 'wptouch' ) .  "/themes/core/core-images/off.jpg\" alt=\"off switch image\" class=\"wptouch-switch-image\" /></a>";
+ 		echo '</div>';
+	}
+}
+  
+function bnc_options_menu() {
+	add_options_page( __( 'WPtouch iPhone Theme', 'wptouch' ), 'WPtouch', 9, __FILE__, bnc_wp_touch_page );
+}
+
+function bnc_wptouch_get_settings() {
+	return bnc_wp_touch_get_menu_pages();
+}
+
+function bnc_validate_wptouch_settings( &$settings ) {
+	global $wptouch_defaults;
+	foreach ( $wptouch_defaults as $key => $value ) {
+		if ( !isset( $settings[$key] ) ) {
+			$settings[$key] = $value;
+		}
+	}
+}
+
+function bnc_wptouch_is_exclusive() {
+	$settings = bnc_wptouch_get_settings();
+	return $settings['enable-exclusive'];
+}
+
+function bnc_can_show_tweets() {
+	$settings = bnc_wptouch_get_settings();
+	return $settings['enable-show-tweets'];
+}
+
+function bnc_wp_touch_get_menu_pages() {
+	$v = get_option('bnc_iphone_pages');
+	if (!$v) {
+		$v = array();
+	}
+	
+	if (!is_array($v)) {
+		$v = unserialize($v);
+	}
+	
+	bnc_validate_wptouch_settings( $v );
+
+	return $v;
+}
+
+function bnc_get_selected_home_page() {
+   $v = bnc_wp_touch_get_menu_pages();
+   return $v['home-page'];
+}
+
+function wptouch_get_stats() {
+	$options = bnc_wp_touch_get_menu_pages();
+	if (isset($options['statistics'])) {
+		echo stripslashes($options['statistics']);
+	}
+}
+  
+function bnc_get_title_image() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	$title_image = $ids['main_title'];
+
+	if ( file_exists( compat_get_plugin_dir( 'wptouch' ) . '/images/icon-pool/' . $title_image ) ) {
+		$image = compat_get_plugin_url( 'wptouch' ) . '/images/icon-pool/' . $title_image;
+	} else if ( file_exists( compat_get_upload_dir() . '/wptouch/custom-icons/' . $title_image ) ) {
+		$image = compat_get_upload_url() . '/wptouch/custom-icons/' . $title_image;
+	}
+
+	return $image;
+}
+
+function wptouch_excluded_cats() {
+	$settings = bnc_wptouch_get_settings();
+	return stripslashes($settings['excluded-cat-ids']);
+}
+
+function bnc_excerpt_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-post-excerpts'];
+}	
+
+function bnc_is_page_coms_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-page-coms'];
+}		
+
+function bnc_is_cats_button_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-cats-button'];
+}	
+
+function bnc_is_tags_button_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-tags-button'];
+}	
+
+function bnc_is_search_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-search-button'];
+}	
+
+function bnc_is_gigpress_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-gigpress-button'];
+}	
+
+function bnc_is_login_button_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-login-button'];
+}		
+	
+function bnc_is_gravatars_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-gravatars'];
+}	
+
+function bnc_is_ajax_coms_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-ajax-comments'];
+}	
+
+function bnc_show_author() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-main-name'];
+}
+
+function bnc_show_tags() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-main-tags'];
+}
+
+function bnc_show_categories() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-main-categories'];
+}
+
+function bnc_is_home_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-main-home'];
+}	
+
+function bnc_is_rss_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-main-rss'];
+}	
+
+function bnc_is_email_enabled() {
+	$ids = bnc_wp_touch_get_menu_pages();
+	return $ids['enable-main-email'];
+}
+
+// Prowl Functions
+function bnc_is_prowl_direct_message_enabled() {
+	$settings = bnc_wptouch_get_settings();
+	return ( isset( $settings['enable-prowl-message-button'] ) && $settings['enable-prowl-message-button'] && $settings['prowl-api'] );
+}
+
+function bnc_prowl_did_try_message() {
+	global $wptouch_plugin;
+	return $wptouch_plugin->prowl_output;
+}
+
+function bnc_prowl_message_success() {
+	global $wptouch_plugin;
+	return $wptouch_plugin->prowl_success;
+}
+// End prowl functions
+  
+function bnc_wp_touch_get_pages() {
+	global $table_prefix;
+	global $wpdb;
+	
+	$ids = bnc_wp_touch_get_menu_pages();
+	$a = array();
+	$keys = array();
+	foreach ($ids as $k => $v) {
+		if ($k == 'main_title' || $k == 'enable-post-excerpts' || $k == 'enable-page-coms' || 
+			 $k == 'enable-cats-button'  || $k == 'enable-tags-button'  || $k == 'enable-search-button'  || 
+			 $k == 'enable-login-button' || $k == 'enable-gravatars' || $k == 'enable-ajax-comments' || 
+			 $k == 'enable-main-home' || $k == 'enable-main-rss' || $k == 'enable-main-email' || 
+			 $k == 'enable-main-name' || $k == 'enable-main-tags' || $k == 'enable-main-categories' || 
+			 $k == 'enable-prowl-comments-button' || $k == 'enable-prowl-users-button' || 
+			 $k == 'enable-prowl-message-button' || $k == 'enable-gigpress-button') {
+			} else {
+				if (is_numeric($k)) {
+					$keys[] = $k;
+				}
+			}
+	}
+	 
+	$menu_order = array(); 
+	$results = false;
+
+	if ( count( $keys ) > 0 ) {
+		$query = "select * from {$table_prefix}posts where ID in (" . implode(',', $keys) . ") and post_status = 'publish' order by post_title asc";
+		$results = $wpdb->get_results( $query, ARRAY_A );
+	}
+
+	if ( $results ) {
+		foreach ( $results as $row ) {
+			$row['icon'] = $ids[$row['ID']];
+			$a[$row['ID']] = $row;
+			if (isset($menu_order[$row['menu_order']])) {
+				$menu_order[$row['menu_order']*100 + $inc] = $row;
+			} else {
+				$menu_order[$row['menu_order']*100] = $row;
+			}
+			$inc = $inc + 1;
+		}
+	}
+
+	if (isset($ids['sort-order']) && $ids['sort-order'] == 'page') {
+		asort($menu_order);
+		return $menu_order;
+	} else {
+		return $a;
+	}
+}
+
+function bnc_get_header_title() {
+	$v = bnc_wp_touch_get_menu_pages();
+	return $v['header-title'];
+}
+
+function bnc_get_header_background() {
+	$v = bnc_wp_touch_get_menu_pages();
+	return $v['header-background-color'];
+}
+  
+function bnc_get_header_border_color() {
+	$v = bnc_wp_touch_get_menu_pages();
+	return $v['header-border-color'];
+}
+
+function bnc_get_header_color() {
+	$v = bnc_wp_touch_get_menu_pages();
+	return $v['header-text-color'];
+}
+
+function bnc_get_link_color() {
+	$v = bnc_wp_touch_get_menu_pages();
+	return $v['link-color'];
+}
+
+function bnc_get_h2_font() {
+	$v = bnc_wp_touch_get_menu_pages();
+	return $v['h2-font'];
+}
+
+require_once( 'include/icons.php' );
+  
+function bnc_wp_touch_page() {
+	if (isset($_POST['submit'])) {
+		echo('<div class="wrap"><div id="bnc-global"><div id="wptouchupdated" style="display:none"><p class="saved"><span>');
+		echo __( "Settings saved", "wptouch");
+		echo('</span></p></div>');
+		} 
+	elseif (isset($_POST['reset'])) {
+		echo('<div class="wrap"><div id="bnc-global"><div id="wptouchupdated" style="display:none"><p class="reset"><span>');
+		echo __( "Defaults restored", "wptouch");
+		echo('</span></p></div>');
+	} else {
+		echo('<div class="wrap"><div id="bnc-global">');
+}
+?>
+
+<?php $icons = bnc_get_icon_list(); ?>
+
+	<?php require_once( 'include/submit.php' ); ?>
+	<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
+		<?php require_once( 'html/head-area.php' ); ?>
+		<?php require_once( 'html/general-settings-area.php' ); ?>
+		<?php require_once( 'html/advanced-area.php' ); ?>
+		<?php require_once( 'html/push-area.php' ); ?>
+		<?php require_once( 'html/style-area.php' ); ?>
+		<?php require_once( 'html/icon-area.php' ); ?>
+		<?php require_once( 'html/page-area.php' ); ?>
+		<?php require_once( 'html/ads-stats-area.php' ); ?>
+		<?php require_once( 'html/plugin-compat-area.php' ); ?>		
+		<input type="submit" name="submit" value="<?php _e('Save Options', 'wptouch' ); ?>" id="bnc-button" class="button-primary" />
+	</form>
+	
+	<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
+		<input type="submit" onclick="return confirm('<?php _e('Restore default WPtouch settings?', 'wptouch' ); ?>');" name="reset" value="<?php _e('Restore Defaults', 'wptouch' ); ?>" id="bnc-button-reset" class="button-highlighted" />
+	</form>
+		
+		<?php echo('' . WPtouch('<div class="bnc-plugin-version"> This is ','</div>') . ''); ?>
+
+	<div class="bnc-clearer"></div>
+</div>
+<?php 
+echo('</div>'); } 
+add_action('wp_footer', 'wptouch_switch');
+add_action('admin_head', 'wptouch_admin_files');
+add_action('admin_menu', 'bnc_options_menu'); 
+add_filter( 'plugin_action_links', 'wptouch_settings_link', 9, 2 );
+?>
--- a/web/wp-content/themes/IRI-Theme/404.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/404.php	Mon Feb 01 09:51:57 2010 +0000
@@ -1,14 +1,34 @@
 <?php get_header(); ?>
 	<div class="column span-17 colborder first" id="maincontent">
 		<div class="content">
-		<h2>Error 404 - Not Found</h2>
+		<h2>Error 404 - Page non trouv&eacute;e</h2>
+		
+		<p>Oups... Il y a une erreur !  La page que vous avez demand&eacute; n'&eacute;xiste pas, ou plus.</p>
+		<p>Vous pouvez utiliser le moteur de recherche, ou le nuage de tag pour retrouver ce que vous chercher.</p>
+		
+		<?php
 		
-		<p>Yikes. Something went wrong!  Either the page you are looking for doesn't exist or you might have mistyped.</p>
-		<p>You can use the search box at the top right to find what you are looking for.</p>
+			$newoptions['tcolor'] = '3466FE';
+			$newoptions['tcolor2'] = '3268FF';
+			$newoptions['hicolor'] = '000000';
+			$newoptions['bgcolor'] = 'ffffff';
+			$newoptions['speed'] = '100';
+			$newoptions['trans'] = 'false';
+			$newoptions['distr'] = 'true';
+			$newoptions['args'] = '';
+			$newoptions['mode'] = 'tags';
+			$newoptions['width'] = '590';
+			$newoptions['height'] = '410';
+			
+			echo wp_cumulus_insert($newoptions);
+			
+			?>
+			
+			<?php include (TEMPLATEPATH . '/searchform.php'); ?>
 	</div>
 </div>
 <div class="column span-5 last">
-<?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>
+	<?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>
 </div>
 <hr></hr>
 <?php get_sidebar(); ?>
--- a/web/wp-content/themes/IRI-Theme/archive.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/archive.php	Mon Feb 01 09:51:57 2010 +0000
@@ -20,7 +20,14 @@
 			<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
 			<h2 class="pagetitle">Blog Archives</h2>
 	<?php } ?>
-		
+	
+	<?php /* If this is a tag archive */ if (is_tag()) { ?>
+		<div id="p2c-header">
+		<h2 >Mot-clef : <?php single_tag_title(); ?></h2>
+		</div>
+		<?php echo(tag_description()); ?>
+	<?php } ?>	
+	
 		<div class="navigation">
 			<div class="alignleft"><?php next_posts_link('&laquo; Pr&eacute;c&eacute;dent') ?></div>
 			<div class="alignright"><?php previous_posts_link('Suivant &raquo;') ?></div>
--- a/web/wp-content/themes/IRI-Theme/css/lib/grid.css	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/css/lib/grid.css	Mon Feb 01 09:51:57 2010 +0000
@@ -1,1 +1,1 @@
-/* -------------------------------------------------------------- 
   
   grid.css
   * Sets up an easy-to-use grid of 24 columns.
   
   Based on work by:
   * Nathan Borror     [playgroundblues.com]
   * Jeff Croft        [jeffcroft.com]
   * Christian Metts   [mintchaos.com]
   * Khoi Vinh         [subtraction.com]
   
   By default, the grid is 950px wide, with 24 columns 
   spanning 30px, and a 10px margin between columns.
   
   If you need fewer or more columns, use this 
   formula to find the new total width: 
   Total width = (columns * 40) - 10
   
   Read more about using a grid here:
   * subtraction.com/archives/2007/0318_oh_yeeaahh.php
   
-------------------------------------------------------------- */

/* A container should group all your columns. */
.container {
  width: 950px;
  margin: 0 auto;
}


/* Columns
-------------------------------------------------------------- */

/* Use this class together with the .span-x classes
   to create any composition of columns in a layout. */
   
.column {
  float: left;
  margin-right: 10px;
}


/* The last column in a row needs this class. */
.last { margin-right: 0; }

/* Use these classes to set the width of a column. */
.span-1   { width: 30px; }
.span-2   { width: 70px; }
.span-3   { width: 110px; }
.span-4   { width: 150px; }
.span-5   { width: 190px; }
.span-6   { width: 230px; }
.span-7   { width: 270px; }
.span-8   { width: 310px; }
.span-9   { width: 350px; }
.span-10  { width: 390px; }
.span-11  { width: 430px; }
.span-12  { width: 470px; }
.span-13  { width: 510px; }
.span-14  { width: 550px; }
.span-15  { width: 590px; }
.span-16  { width: 630px; }
.span-17  { width: 670px; }
.span-18  { width: 710px; }
.span-19  { width: 750px; }
.span-20  { width: 790px; }
.span-21  { width: 830px; }
.span-22  { width: 870px; }
.span-23  { width: 910px; }
.span-24  { width: 950px; margin: 0; }

/* Add these to a column to append empty cols. */
.append-1   { padding-right: 40px; }  
.append-2   { padding-right: 80px; } 
.append-3   { padding-right: 120px; } 
.append-4   { padding-right: 160px; } 
.append-5   { padding-right: 200px; } 
.append-6   { padding-right: 240px; } 
.append-7   { padding-right: 280px; } 
.append-8   { padding-right: 320px; } 
.append-9   { padding-right: 360px; } 
.append-10  { padding-right: 400px; } 
.append-11  { padding-right: 440px; } 
.append-12  { padding-right: 480px; } 
.append-13  { padding-right: 520px; } 
.append-14  { padding-right: 560px; } 
.append-15  { padding-right: 600px; } 
.append-16  { padding-right: 640px; } 
.append-17  { padding-right: 680px; } 
.append-18  { padding-right: 720px; } 
.append-19  { padding-right: 760px; } 
.append-20  { padding-right: 800px; } 
.append-21  { padding-right: 840px; } 
.append-22  { padding-right: 880px; } 
.append-23  { padding-right: 920px; } 

/* Add these to a column to prepend empty cols. */
.prepend-1   { padding-left: 40px; }  
.prepend-2   { padding-left: 80px; } 
.prepend-3   { padding-left: 120px; } 
.prepend-4   { padding-left: 160px; } 
.prepend-5   { padding-left: 200px; } 
.prepend-6   { padding-left: 240px; } 
.prepend-7   { padding-left: 280px; } 
.prepend-8   { padding-left: 320px; } 
.prepend-9   { padding-left: 360px; } 
.prepend-10  { padding-left: 400px; } 
.prepend-11  { padding-left: 440px; } 
.prepend-12  { padding-left: 480px; } 
.prepend-13  { padding-left: 520px; } 
.prepend-14  { padding-left: 560px; } 
.prepend-15  { padding-left: 600px; } 
.prepend-16  { padding-left: 640px; } 
.prepend-17  { padding-left: 680px; } 
.prepend-18  { padding-left: 720px; } 
.prepend-19  { padding-left: 760px; } 
.prepend-20  { padding-left: 800px; } 
.prepend-21  { padding-left: 840px; } 
.prepend-22  { padding-left: 880px; } 
.prepend-23  { padding-left: 920px; } 


/* Border on right hand side of a column. */
.border {
  padding-right: 4px;
  margin-right: 5px;
  border-right: 1px solid #eee;
}

/* Border with more whitespace, spans one column. */
.colborder {
  padding-right: 24px;
  margin-right: 25px;
  border-right: 1px solid #eee;
}


/* Use these classes on an element to push it into the 
   next column, or to pull it into the previous column. */

.pull-1  { margin-left: -40px; }
.pull-2  { margin-left: -80px; }
.pull-3  { margin-left: -120px; }
.pull-4  { margin-left: -160px; }

.push-0  { margin: 0 0 0 18px; }
.push-1  { margin: 0 -40px 0 18px; }
.push-2  { margin: 0 -80px 0 18px; }
.push-3  { margin: 0 -120px 0 18px; }
.push-4  { margin: 0 -160px 0 18px; }
.push-0, .push-1, .push-2, .push-3, .push-4 { float: right; }


/* Misc classes and elements
-------------------------------------------------------------- */

/* Use a .box to create a padded box inside a column.  */ 
.box { 
  padding: 1.5em; 
  margin-bottom: 1.5em; 
  background: #eee; 
}

/* Use this to create a horizontal ruler across a column. */
hr {
  background: #ddd; 
  color: #ddd;
  clear: both; 
  float: none; 
  width: 100%; 
  height: .1em;
  margin: 0 0 1.4em;
  border: none; 
}
hr.space {
  background: #fff;
  color: #fff;
}

/* Clearing floats without extra markup
   Based on How To Clear Floats Without Structural Markup by PiE
   [http://www.positioniseverything.net/easyclearing.html] */

.clear { display: inline-block; }   
.clear:after, .container:after {
  content: "."; 
  display: block; 
  height: 0; 
  clear: both; 
  visibility: hidden;
}
* html .clear { height: 1%; }
.clear { display: block; }
\ No newline at end of file
+/* -------------------------------------------------------------- 
   
   grid.css
   * Sets up an easy-to-use grid of 24 columns.
   
   Based on work by:
   * Nathan Borror     [playgroundblues.com]
   * Jeff Croft        [jeffcroft.com]
   * Christian Metts   [mintchaos.com]
   * Khoi Vinh         [subtraction.com]
   
   By default, the grid is 950px wide, with 24 columns 
   spanning 30px, and a 10px margin between columns.
   
   If you need fewer or more columns, use this 
   formula to find the new total width: 
   Total width = (columns * 40) - 10
   
   Read more about using a grid here:
   * subtraction.com/archives/2007/0318_oh_yeeaahh.php
   
-------------------------------------------------------------- */

/* A container should group all your columns. */
.container {
  width: 950px;
  margin: 0 auto;
}


/* Columns
-------------------------------------------------------------- */

/* Use this class together with the .span-x classes
   to create any composition of columns in a layout. */
   
.column {
  float: left;
  margin-right: 10px;
}


/* The last column in a row needs this class. */
.last { margin-right: 0; }

/* Use these classes to set the width of a column. */
.span-1   { width: 30px; }
.span-2   { width: 70px; }
.span-3   { width: 110px; }
.span-4   { width: 150px; }
.span-5   { width: 190px; }
.span-6   { width: 230px; }
.span-7   { width: 270px; }
.span-8   { width: 310px; }
.span-9   { width: 350px; }
.span-10  { width: 390px; }
.span-11  { width: 430px; }
.span-12  { width: 470px; }
.span-13  { width: 510px; }
.span-14  { width: 550px; }
.span-15  { width: 590px; }
.span-16  { width: 630px; }
.span-17  { width: 670px; }
.span-18  { width: 710px; }
.span-19  { width: 750px; }
.span-20  { width: 790px; }
.span-21  { width: 830px; }
.span-22  { width: 870px; }
.span-23  { width: 910px; }
.span-24  { width: 950px; margin: 0; }

/* Add these to a column to append empty cols. */
.append-1   { padding-right: 40px; }  
.append-2   { padding-right: 80px; } 
.append-3   { padding-right: 120px; } 
.append-4   { padding-right: 160px; } 
.append-5   { padding-right: 200px; } 
.append-6   { padding-right: 240px; } 
.append-7   { padding-right: 280px; } 
.append-8   { padding-right: 320px; } 
.append-9   { padding-right: 360px; } 
.append-10  { padding-right: 400px; } 
.append-11  { padding-right: 440px; } 
.append-12  { padding-right: 480px; } 
.append-13  { padding-right: 520px; } 
.append-14  { padding-right: 560px; } 
.append-15  { padding-right: 600px; } 
.append-16  { padding-right: 640px; } 
.append-17  { padding-right: 680px; } 
.append-18  { padding-right: 720px; } 
.append-19  { padding-right: 760px; } 
.append-20  { padding-right: 800px; } 
.append-21  { padding-right: 840px; } 
.append-22  { padding-right: 880px; } 
.append-23  { padding-right: 920px; } 

/* Add these to a column to prepend empty cols. */
.prepend-1   { padding-left: 40px; }  
.prepend-2   { padding-left: 80px; } 
.prepend-3   { padding-left: 120px; } 
.prepend-4   { padding-left: 160px; } 
.prepend-5   { padding-left: 200px; } 
.prepend-6   { padding-left: 240px; } 
.prepend-7   { padding-left: 280px; } 
.prepend-8   { padding-left: 320px; } 
.prepend-9   { padding-left: 360px; } 
.prepend-10  { padding-left: 400px; } 
.prepend-11  { padding-left: 440px; } 
.prepend-12  { padding-left: 480px; } 
.prepend-13  { padding-left: 520px; } 
.prepend-14  { padding-left: 560px; } 
.prepend-15  { padding-left: 600px; } 
.prepend-16  { padding-left: 640px; } 
.prepend-17  { padding-left: 680px; } 
.prepend-18  { padding-left: 720px; } 
.prepend-19  { padding-left: 760px; } 
.prepend-20  { padding-left: 800px; } 
.prepend-21  { padding-left: 840px; } 
.prepend-22  { padding-left: 880px; } 
.prepend-23  { padding-left: 920px; } 


/* Border on right hand side of a column. */
.border {
  padding-right: 4px;
  margin-right: 5px;
  border-right: 1px solid #eee;
}

/* Border with more whitespace, spans one column. */
.colborder {
  padding-right: 24px;
  margin-right: 25px;
  border-right: 1px solid #eee;
}


/* Use these classes on an element to push it into the 
   next column, or to pull it into the previous column. */

.pull-1  { margin-left: -40px; }
.pull-2  { margin-left: -80px; }
.pull-3  { margin-left: -120px; }
.pull-4  { margin-left: -160px; }

.push-0  { margin: 0 0 0 18px; }
.push-1  { margin: 0 -40px 0 18px; }
.push-2  { margin: 0 -80px 0 18px; }
.push-3  { margin: 0 -120px 0 18px; }
.push-4  { margin: 0 -160px 0 18px; }
.push-0, .push-1, .push-2, .push-3, .push-4 { float: right; }


/* Misc classes and elements
-------------------------------------------------------------- */

/* Use a .box to create a padded box inside a column.  */ 
.box { 
  padding: 1.5em; 
  margin-bottom: 1.5em; 
  background: #eee; 
}
.box tr:hover>td{ background-color:#B9CFFF; }

/* Use this to create a horizontal ruler across a column. */
hr {
  background: #ddd; 
  color: #ddd;
  clear: both; 
  float: none; 
  width: 100%; 
  height: .1em;
  margin: 0 0 1.4em;
  border: none; 
}
hr.space {
  background: #fff;
  color: #fff;
}

/* Clearing floats without extra markup
   Based on How To Clear Floats Without Structural Markup by PiE
   [http://www.positioniseverything.net/easyclearing.html] */

.clear { display: inline-block; }   
.clear:after, .container:after {
  content: "."; 
  display: block; 
  height: 0; 
  clear: both; 
  visibility: hidden;
}
* html .clear { height: 1%; }
.clear { display: block; }
\ No newline at end of file
--- a/web/wp-content/themes/IRI-Theme/css/lib/ie.css	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/css/lib/ie.css	Mon Feb 01 09:51:57 2010 +0000
@@ -1,1 +1,1 @@
-/* -------------------------------------------------------------- 
   
   ie.css
   
   Contains every hack for Internet Explorer versions prior 
   to IE7, so that our core files stay sweet and nimble.
   
-------------------------------------------------------------- */

/* Make sure the layout is centered in IE5 */
body        { text-align: center; }
.container  { text-align: left; }


/* This fixes the problem where IE6 adds an extra 3px margin to
   two columns that are floated up against each other. */

* html .column { overflow-x: hidden; } /* IE6 fix */

.pull-1, .pull-2, .pull-3, .pull-4,
.push-1, .push-2, .push-3, .push-4, 
ul, ol {
  position: relative; /* Keeps IE6 from cutting pulled/pushed images */
}

/* Fixes incorrect styling of legend in IE6 fieldsets. */
legend { margin-bottom:1.4em; }

/* Fixes incorrect placement of numbers in ol's in IE6/7 */
ol { margin-left:2em; }
\ No newline at end of file
+/* -------------------------------------------------------------- 
   
   ie.css
   
   Contains every hack for Internet Explorer versions prior 
   to IE7, so that our core files stay sweet and nimble.
   
-------------------------------------------------------------- */

/* Make sure the layout is centered in IE5 */
body        { text-align: center; }
.container  { text-align: left; }


/* This fixes the problem where IE6 adds an extra 3px margin to
   two columns that are floated up against each other. */

* html .column { overflow-x: hidden; } /* IE6 fix */

.pull-1, .pull-2, .pull-3, .pull-4,
.push-1, .push-2, .push-3, .push-4, 
ul, ol {
  position: relative; /* Keeps IE6 from cutting pulled/pushed images */
}

/* Fixes incorrect styling of legend in IE6 fieldsets. */
legend { margin-bottom:1.4em; }

/* Fixes incorrect placement of numbers in ol's in IE6/7 */
ol { margin-left:2em; }

.my-skinnable-select {
	padding-top:15px;
	
}
/* Select for reserach */
#engine {
	padding:0;
	margin:0;
	position:absolute;
	top:0px;
}
/* calendar adaptation */
#wp-calendar  {
	height:210px;
}
ul#partenaire {
	height:50px;
}
\ No newline at end of file
--- a/web/wp-content/themes/IRI-Theme/css/lib/typography.css	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/css/lib/typography.css	Mon Feb 01 09:51:57 2010 +0000
@@ -1,1 +1,1 @@
-/* -------------------------------------------------------------- 
   
   typography.css
   * Sets up some sensible default typography.
  
   Based on work by:
   * Nathan Borror     [playgroundblues.com]
   * Jeff Croft        [jeffcroft.com]
   * Christian Metts   [mintchaos.com]
   * Wilson Miner      [wilsonminer.com]
   * Richard Rutter    [clagnut.com]
   
   Read more about using a baseline here:
   * alistapart.com/articles/settingtypeontheweb
  
-------------------------------------------------------------- */

/* This is where you set your desired font size. The line-heights 
   and vertical margins are automatically calculated from this. 
   The percentage is of 16px (0.75 * 16px = 12px). */
   
body { font-size: 75%; }


/* Default fonts and colors. 
   If you prefer serif fonts, remove the font-family 
   on the headings, and apply this one to the body:
   font: 1em Georgia, "lucida bright", "times new roman", serif; */
   
body { 
  color: #222; 
  font-family: "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif; 
}
h1,h2,h3,h4,h5,h6 { 
  color: #111; 
  font-family: Georgia; 
}


/* Headings
-------------------------------------------------------------- */

h1,h2,h3,h4,h5,h6 { font-weight: normal; }

h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
h2 { font-size: 2em; margin-bottom: 0.75em; }
h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
h6 { font-size: 1em; font-weight: bold; }


/* Text elements
-------------------------------------------------------------- */

p           { margin: 0 0 1.5em; }
p.last      { margin-bottom: 0; }
p img       { float: left; margin: 1em 1em 1em 0; padding: 0; }
p img.top   { margin-top: 0; } /* Use this if the image is at the top of the <p>. */
img         { margin: 0 0 1.5em; }

ul, ol      { margin:0 1.5em 1.5em 1.5em; }
ul          { list-style-type: circle; }
ol          { list-style-type: decimal; }
dl          { margin: 0 0 1.5em 0; }
dl dt       { font-weight: bold; }
dd          { margin-left: 1.5em;}

abbr, 
acronym     { border-bottom: 1px dotted #666; }
address     { margin-top: 1.5em; font-style: italic; }
del         { color:#666; }

a:focus, 
a:hover     { color: #000; }
a           { color: #009; text-decoration: underline; }

blockquote  { margin: 1.5em; color: #666; font-style: italic; }
strong      { font-weight: bold; }
em,dfn      { font-style: italic; background: #ffc; }
dfn         { font-weight: bold; }
pre,code    { margin: 1.5em 0; white-space: pre; }
pre,code,tt { font: 1em 'andale mono', 'monotype.com', 'lucida console', monospace; line-height: 1.5; } 
tt          { display: block; margin: 1.5em 0; line-height: 1.5; }


/* Tables
-------------------------------------------------------------- */

table   { margin-bottom: 1.4em; }
th      { border-bottom: 2px solid #ccc; font-weight: bold; }
td      { border-bottom: 1px solid #ddd; }
th,td   { padding: 4px 10px 4px 0; }
tfoot   { font-style: italic; }
caption { background: #ffc; }

/* Use this if you use span-x classes on th/td. */
table .last { padding-right: 0; } 


/* Some default classes
-------------------------------------------------------------- */

.small      { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
.large      { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
.quiet      { color: #ccc; }

.hide       { display: none; }
.highlight  { background:#ff0; }
.added      { color:#060; }
.removed    { color:#900; }
.dotted		{border-bottom: 1px dotted;}

.top        { margin-top:0; padding-top:0; }
.bottom     { margin-bottom:0; padding-bottom:0; }
\ No newline at end of file
+/* -------------------------------------------------------------- 
   
   typography.css
   * Sets up some sensible default typography.
  
   Based on work by:
   * Nathan Borror     [playgroundblues.com]
   * Jeff Croft        [jeffcroft.com]
   * Christian Metts   [mintchaos.com]
   * Wilson Miner      [wilsonminer.com]
   * Richard Rutter    [clagnut.com]
   
   Read more about using a baseline here:
   * alistapart.com/articles/settingtypeontheweb
  
-------------------------------------------------------------- */

/* This is where you set your desired font size. The line-heights 
   and vertical margins are automatically calculated from this. 
   The percentage is of 16px (0.75 * 16px = 12px). */
   
body { font-size: 75%; }


/* Default fonts and colors. 
   If you prefer serif fonts, remove the font-family 
   on the headings, and apply this one to the body:
   font: 1em Georgia, "lucida bright", "times new roman", serif; */
   
body { 
  color: #222; 
  font-family: "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif; 
}
h1,h2,h3,h4,h5,h6 { 
  color: #111; 
  font-family: Georgia; 
}


/* Headings
-------------------------------------------------------------- */

h1,h2,h3,h4,h5,h6 { font-weight: normal; }

h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
h2 { font-size: 2em; margin-bottom: 0.75em; }
h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
h4 { font-size: 1.5em; line-height: 1; }
h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
h6 { font-size: 1em; font-weight: bold; }


/* Text elements
-------------------------------------------------------------- */

p           { margin: 0 0 1.5em; }
p.last      { margin-bottom: 0; }
p img       { float: left; margin: 1em 1em 1em 0; padding: 0; }
p img.top   { margin-top: 0; } /* Use this if the image is at the top of the <p>. */
img         { margin: 0 0 1.5em; }

ul, ol      { margin:0 1.5em 1.5em 1.5em; }
ul          { list-style-type: circle; }
ol          { list-style-type: decimal; }
dl          { margin: 0 0 1.5em 0; }
dl dt       { font-weight: bold; }
dd          { margin-left: 1.5em;}

abbr, 
acronym     { border-bottom: 1px dotted #666; }
address     { margin-top: 1.5em; font-style: italic; }
del         { color:#666; }

a:focus, 
a:hover     { color: #000; }
a           { color: #009; text-decoration: underline; }

blockquote  { margin: 1.5em; color: #666; font-style: italic; }
strong      { font-weight: bold; }
em,dfn      { font-style: italic; }
dfn         { font-weight: bold; }
pre,code    { margin: 1.5em 0; white-space: pre; }
pre,code,tt { font: 1em 'andale mono', 'monotype.com', 'lucida console', monospace; line-height: 1.5; } 
tt          { display: block; margin: 1.5em 0; line-height: 1.5; }


/* Tables
-------------------------------------------------------------- */

table   { margin-bottom: 1.4em; }
th      { border-bottom: 1px solid #e8e8e8; font-weight: bold; }
td      { border-bottom: 1px solid #ddd; }
th,td   { padding: 4px 10px 4px 0; }
tfoot   { font-style: italic; }
caption { float:relative; background: #ffc; margin-top:-35px; padding-bottom:10px; text-align:right; vertical-align:top;}

/* for safari
html[xmlns*=""] body:last-child #caption {
     margin-top: -35px;
}
*/


/* Use this if you use span-x classes on th/td. */
table .last { padding-right: 0; } 


/* Some default classes
-------------------------------------------------------------- */

.small      { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
.large      { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
.quiet      { color: #ccc; }

.hide       { display: none; }
.highlight  { background:#ff0; }
.added      { color:#060; }
.removed    { color:#900; }
.dotted		{border-bottom: 1px dotted;}

.top        { margin-top:0; padding-top:0; }
.bottom     { margin-bottom:0; padding-bottom:0; }
\ No newline at end of file
--- a/web/wp-content/themes/IRI-Theme/footer.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/footer.php	Mon Feb 01 09:51:57 2010 +0000
@@ -14,7 +14,7 @@
 	<div id="footer" >
 	
 		<ul id="footer">
-			<li><a href="#"> &copy;<?php echo date(Y); ?> <?php bloginfo('name'); ?></a></li>
+			<li><a href="#" rel="Copyright"> &copy; &nbsp;<?php echo date('Y'); ?> <?php bloginfo('name'); ?></a></li>
 			<?php dp_list_posts('category=8'); ?>
 		</ul>
 	</div>
--- a/web/wp-content/themes/IRI-Theme/functions.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/functions.php	Mon Feb 01 09:51:57 2010 +0000
@@ -1,5 +1,9 @@
 <?php
 
+require( "lib/zip.lib.php" ) ; //indiquez le chemin d'accès à la lib
+
+//error_reporting(E_ALL);
+
 function getPost($post = NULL) {
 	include('post.php');
 }
@@ -62,64 +66,218 @@
     );   
 }
 
-
-
 # Displays a list of categories
-function cy_list_categories($Eparam='') {
+function dp_list_categories($Eparam='') {
 
 	$categories = get_categories('hide_empty=1'.$Eparam);
-	$first = true; $count = 0;
+	$first = true;
+	$count = 0;
+	
 	foreach ($categories as $category) {
-		$count++; if ($count>6) break; // limit to 5
+
 		if ($category->parent<1) {
-			if ($first) { $first = false; $f = ' class="f"'; } else { $f = ''; }
+						
+			echo ('<li class="menu-h-li">');
+			echo ('<a href="'.get_category_link($category->cat_ID).'">'.$category->name.' </a>');
+			echo '<ul>';
 			
-			echo ('<li '.$f.'>');
-			echo ('<a href="'.get_category_link($category->cat_ID).'">'.$category->name.' '.$raquo.'</a>');
-			
+			$category_posts = get_posts('numberposts=15&category='.$category->cat_ID);
+			$count2=0;
+				 //echo("<!-- ".sizeof($category_posts)." -->");
+					foreach($category_posts as $post) {
+						
+						echo '<li class="menu-h-li2" title="'.cache_cutter($post->post_title).'"><a href="'.$post->guid.'">'.text_cutter($post->post_title,200).'</a></li>';
+						//echo '<li class="menu-h-li2" title="'.$count2.'"><a href="'.$post->guid.'">'.$post->post_title.'</a></li>';
+						$count2++; //if ($count2>6) break;
+					};
+				echo "</ul></li>";
 			
-				echo '<ul>';
-				 $category_posts=get_posts('category='.$category->cat_ID);
-				 $count2=0;
-					foreach($category_posts as $post) {
-						$count2++; if ($count2>6) break;
-						echo '<li><a href="'.$post->guid.'">'.$post->post_title.'</a></li>';
-					};
-                echo "</ul></li>";
+		}
+		$count++; //if ($count>6) break; // limit to 5
+		
+	}
+}
+
+# Display the list of movies
+function listeMyLdt(){
+
+	$MyLdtDataBase 	= "lignesIRI";
+	$MyWPDataBase 	= "wordpress";
+	$MyLdtTable 	= "Lignes";
+	$MyLdtconnexion = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
+	$MyLdtListe		= "";
+	//$WP_db_selected    = mysql_select_db();
+	
+	if (!$MyLdtconnexion) {
+	   echo "Impossible de se connecter à la base de données : " . mysql_error();
+	   exit;
+	}
+
+	if (!mysql_select_db($MyLdtDataBase)) {
+	   echo "Impossible de sélectionner la base mydbname : " . mysql_error();
+	   exit;
+	}
+
+	$MyLdtSql = "SELECT * FROM  ".$MyLdtTable."";// WHERE `NomFichier` NOT LIKE ''";
+
+	$result = mysql_query($MyLdtSql);
+
+	if (!$result) {
+	   echo "Impossible d'exécuter la requête ($MyLdtSql) dans la base : " . mysql_error();
+	   exit;
+	}
 
+	if (mysql_num_rows($result) == 0) {
+	   echo "Aucune ligne trouvée, rien à afficher.";
+	   exit;
+	}
+	$MyLdtTable="";
+	while ($row = mysql_fetch_assoc($result)) {
+	   $MyLdtLineTemplate = "<tr class='rollover'>
+							 <td>".$row['Auteur']."</td> <td>".$row['Titre']."</td>  <td>".$row['Contributeur']."</td> ";
+							 
+		if ($row['NomFichier']!="") {
+			$MyLdtLineTemplate .= "<td> <a href='?URL=".$row['NomFichier']."' nicetitle='Cliquez ici pour télécharger le projet".$row['NomFichier']."'> <img src='".get_bloginfo('stylesheet_directory')."/images/get.png'/> </a> </td> </tr>";
+		}else {
+			$MyLdtLineTemplate .= "<td> <a href='#' nicetitle='Fichier non disponible'> <img src='".get_bloginfo('stylesheet_directory')."/images/help.png'/> </a> </td> </tr>";
+		}
+		
+	   $MyLdtTable .=  $MyLdtLineTemplate."\n";
+	   
+	}
+	
+	//  tableau
+	$MyLdtOutPut = "
+	<div class='box'>
+		<table style='width:100%;'>
+			<thead>
+				<tr>
+					<td class='thead'> <b>Auteur</b></td>
+					<td class='thead'> <b>Titre</b> </td>
+					<td class='thead'> <b>Contributeur(s)</b> </td>
+					<td class='thead'> </td>
+				</tr> 
+			</thead>
+			".$MyLdtTable."
+		</table></div>";
+	
+	echo($MyLdtOutPut);
+	
+	mysql_free_result($result);
+	mysql_select_db($MyWPDataBase);
+	//mysql_select_db($WP_db_selected);
+}
+
+# Create the  LDT's ZIP to download IT 
+function createMyLdtProject($fichierIRI){
+
+	$MyRoot   	= "/iridata/users/hurons/public_html/DOCUMENT/_LDT";
+	$MyRootRel  = "non-classe/telecharger/?URL=DOCUMENT/_LDT";
+	$MyCache	= "/CACHE";
+	$MyExemple 	= "/EXEMPLE_zip";
+	$MyPattern  = "X_NOMPROJET_X";
+	$MyLdtName 	= "projet_".$MyPattern.".ldt";
+	$MyReadMeName="LISEZ_MOI_READ_ME.txt";
+	$MySoundExt = "_audio.xml";
+	$Return 	= "";
+	
+	$end 		= strrpos($fichierIRI,"."); 
+	$FileName	= substr($fichierIRI, 0, $end);
+	$ext		= substr($fichierIRI, $end, strlen($FileName));
+	
+	
+	// cette fontion n'est utilisé que sur les .IRI
+	if ($ext==".iri"){
+	
+		// Vérifie si le cache éxiste déja
+		if (file_exists($MyCache."/".$FileName.".zip")){
+			//echo ($MyCache.$FileName.".zip"." is in cache");
+			// ensuite envoyer vers la redirection.
+			redirectionDWL($MyRootRel.$MyCache."/".$FileName.".zip");
 			
+		} else {
+		
+			echo ("Le fichier ".$FileName.".zip est en cours de compression, veuillez patientez un instant.");
+					
+			// Créer le .LDT à partir de l'exemple
+			$MyLdtExemple = implode(file($MyRoot.$MyExemple."/".$MyLdtName , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES));
+			$MyFuturLdt = str_replace($MyPattern, $FileName, $MyLdtExemple);
+		
+			// Créer le read me 
+			$MyReadMeExemple = implode(file($MyRoot.$MyExemple."/".$MyPattern."/".$MyReadMeName , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES));
+			$MyFuturReadMe = str_replace($MyPattern, $FileName, $MyReadMeExemple);
+			
+			// ZIP l'ensemble est met dans le cache
+			$Zipfilename = $MyRoot.$MyCache."/".$FileName.".zip";
+			$zip = new ZipArchive();
+			if ($zip->open($Zipfilename, ZIPARCHIVE::CREATE)!==TRUE) {
+				exit("Impossible d'ouvrir <$filename>\n");
+			}		
+			// ZIP - ajouter le .LDT 
+			$MyLdtNewName = str_replace($MyPattern, $FileName, $MyLdtName);
+			$zip->addFromString($MyLdtNewName, $MyFuturLdt); //$zip->addFile($MyFuturLdtName, $FileName);
+			// ZIP - ajouter le .IRI 
+			$zip->addFile($MyRoot."/".$fichierIRI, $FileName."/".$fichierIRI); 
+			// ZIP - ajouter le ReadMe
+			$zip->addFromString($FileName."/".$MyReadMeName, $MyFuturReadMe); //$zip->addFile($MyRoot.$MyTemp."/".$FileName."/".$MyReadMeName, $FileName."/".$MyReadMeName); 
+			// ZIP - ajouter le audio si il y a 
+			$fileAudio	= $MyRoot."/".$FileName.$MySoundExt ;
+			if (file_exists($fileAudio)){
+				$zip->addFile($fileAudio, $FileName."/".$FileName.$MySoundExt); 
+			}
+			$zip->close();
+			
+			// mettre a jour la bdd ? pour vider le cache quand c'est un nouveau fichier ? 
+			
+			// ensuite envoyer vers la redirection.
+			redirectionDWL($MyRootRel.$MyCache."/".$FileName.".zip");
 		}
 	}
 }
 
-# Displays a list of categories
-function dp_list_categories($Eparam='') {
+# Javascript DWL redirection 
+function redirectionDWL ($url) {
+
+     $URL = get_bloginfo('url')."/".$url; 
+	 
+	 echo("Le téléchargement est en cours... <br/>\n
+    Si le téléchargement ne démarre pas automatiquement, veuillez cliquez <a href=".$URL.">ici</a>.<br/>\n");
+	 
+     echo("<script  language=\"javascript\" type=\"text/javascript\"> \n");
+     echo("     <!--\n");
+     echo("    document.location.href = \"".$URL."\";\n ");
+     echo("    window.location = \"".$URL."\";\n ");
+     echo("     //-->\n");
+     echo("</script>\n");
+	 
+}
 
-	$categories = get_categories('hide_empty=1'.$Eparam);
-	$first = true; $count = 0;
-	foreach ($categories as $category) {
-		$count++; if ($count>6) break; // limit to 5
-		if ($category->parent<1) {
-			// if ($first) { $first = false; $f = ' class="f"'; } else { $f = ''; }
-			
-			echo ('<li class="menu-h-li">');
-			echo ('<a href="'.get_category_link($category->cat_ID).'">'.$category->name.' '.$raquo.'</a>');
-			
-			
-				echo '<ul>';
-				 $category_posts=get_posts('category='.$category->cat_ID);
-				 $count2=0;
-					foreach($category_posts as $post) {
-						$count2++; if ($count2>6) break;
-						echo '<li class="menu-h-li2"><a href="'.$post->guid.'">'.$post->post_title.'</a></li>';
-					};
-                echo "</ul></li>";
-
-			
+# Text cutter
+function text_cutter($text,$length){
+	$symbole="<!-- cut -->";
+	
+	$lastpos = strrpos($text,$symbole); 
+	
+	if($lastpos!=FALSE){
+	
+		return (substr($text, 0, $lastpos));
+	
+	} else {
+	
+		if(strlen($text)>$length){
+			return (substr($text, 0, $length)."[...]");
+		} else {
+			return ($text);
 		}
 	}
 }
 
+# Cache cutter
+function cache_cutter($text){
+	return (str_replace( "<!-- cut -->", "", $text));
+}
+
+
 function dp_list_posts($Eparam='') {
 
 		$category_posts = get_posts($Eparam);
--- a/web/wp-content/themes/IRI-Theme/header.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/header.php	Mon Feb 01 09:51:57 2010 +0000
@@ -2,95 +2,182 @@
 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
 <head profile="http://gmpg.org/xfn/11">
 	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
+	<meta name="google-site-verification" content="0kR9Eu8GeMBtsGL5ZaoZ4PYBkii0Q5pc8A9LPU17ZN0" />
 	<meta http-equiv="X-UA-Compatible" content="IE=8" />
-	<title><?php wp_title(''); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> :: <?php } ?> <?php bloginfo('name'); ?></title>
+	<title><?php wp_title(''); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> :: <?php } ?> <?php echo (get_bloginfo('name')." - ".get_bloginfo ( 'description' )); ?></title>
 	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
+	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/custom-theme/jquery-ui-1.7.2.custom.css" type="text/css" media="screen, projection" />
 	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />
 	<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />
-        <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" type="text/css" media="screen, projection" />
-    <!--[if IE]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lib/ie.css" type="text/css" media="screen, projection" /><![endif]--> 
-	<!-- Javascripts  -->
-	<!-- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.1.3.1.pack.js"></script> -->
+    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css?v=20090128-7" type="text/css" media="screen, projection" />
+	<!-- Javascripts  -->	
 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/functions.js"></script>
-	<!--<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.js"></script>-->
 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.2.min.js"></script>
 	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-ui-1.7.2.custom.min.js"></script>
+	<!-- <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.skinned-select.js"></script> -->
 	<!--[if lt IE 7]>
-	<script defer type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/pngfix.js"></script>
+	 <script defer type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/pngfix.js"></script>
 	<![endif]-->
-   <!--[if gte IE 5.5]>
-   <script language="javaScript" src="<?php bloginfo('stylesheet_directory'); ?>/js/dhtml.js" type="text/javaScript"></script>
-   <![endif]-->
+    <!--[if gte IE 5.5]>
+     <script language="javaScript" src="<?php bloginfo('stylesheet_directory'); ?>/js/dhtml.js" type="text/javaScript"></script>
+    <![endif]-->
 	<!-- Show the grid and baseline  -->
-	<style type="text/css">
-/*		.container { background: url(<?php bloginfo('stylesheet_directory'); ?>/css/lib/img/grid.png); }*/
-	</style>
 	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
 	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
 	<?php wp_head(); ?>
-	
+	<?php // this is for the search engine selection 
+			
+			if ( is_home() ) {
+				$cssSearch 		= "searchHome";
+				$cssSkinselect 	= "-Home";
+				$engines		=  array(__("sur ce site"),__("sur les sites IRI"),__("sur ENMI"),__("sur S&eacute;minaires"));//__("Avanc&eacute;e"));
+			} else {
+				$cssSearch 		= "searchPage";
+				$cssSkinselect 	= "-Page";
+				$engines		=  array(__("ce site"),__("sites IRI"),__("ENMI"),__("s&eacute;minaires"));//__("Avanc&eacute;e"));
+			}	
+	?>
+	 
     <script type="text/javascript">  
         $(document).ready(function() {  
-            $('#accordion').accordion();  
+            $('#accordion').accordion({ 
+				autoheight: true
+			});  
+			$('#accordion_nav').accordion({ 
+				autoheight: true,
+				event: 'mouseover'
+			});  
+			// ----------------------------------
+			$('#accordionSeminaire').accordion({
+				autoheight: false,
+				event: 'mouseover',			
+				fillSpace: true
+
+			});  
+			$('#accordionSeminaire2').accordion({
+				autoheight: false,
+				event: 'mouseover',
+				fillSpace: true
+
+			});
+			$('#accordionSeminaire3').accordion({
+				autoheight: false,
+				event: 'mouseover',
+				fillSpace: true
+
+			});
+			$('#accordionSeminaire4').accordion({
+				autoheight: false,
+				event: 'mouseover',
+				fillSpace: true
+
+			});		
+			// Tabs
+			$('#tabsSeminaire').tabs({
+				autoheight: false
+			});
+
 			//alert("test");
-			
 			// search
-			$("#s").mouseover(function() {
+			/*
+			$("#searchHome").mouseover(function() {
 				$(this).animate({ backgroundColor: "#FFFFFF" }, 500);
 			}).mouseout(function(){
 				$(this).animate({ backgroundColor: "#CCCCCC" }, 500);
 			});
+			*/
 			
 			
 			// liens
-			
 			$(".JQplink").mouseover(function() {
 				$(this).fadeTo("slow", 0.5);
 			}).mouseout(function(){
 				$(this).fadeTo("slow", 1);
 			});
 			
-
+			$('.my-skinnable-select').each(
+			  function(i) {
+				selectContainer = $(this);
+				// Remove the class for non JS browsers
+				selectContainer.removeClass('my-skinnable-select');
+				// Add the class for JS Browers
+				selectContainer.addClass('skinned-select<?php echo($cssSkinselect) ?>');
+				// Find the select box
+				selectContainer.children().before('<div class="select-text<?php echo($cssSkinselect) ?>">a</div>').each(
+				  function() {
+					$(this).prev().text(this.options[0].innerHTML)
+				  }
+				);
+				// Store the parent object
+				var parentTextObj = selectContainer.children().prev();
+				// As we click on the options
+				selectContainer.children().click(function() {
+				  // Set the value of the html
+				  parentTextObj.text(this.options[this.selectedIndex].innerHTML);
+				})        
+			  }
+			);
+	
         });  
-		
-
-
     </script>  
+	<!--[if IE 7]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lib/ie.css?v=20090127-11" type="text/css" media="screen, projection" /><![endif]--> 
+	
+	<!-- FIN DE LA HEAD -->
 </head>
 <body>
+<!-- DEBUT DU HEADER -->
 <?php /*echo("debug = ".wp_title('')." lang = ".language_attributes() ); */?>
 <div class="container">
-
 <!-- Header -->
   <div class="column span-24" id="header">
-       <a href="<?php echo get_option('home'); ?>" title="<?php bloginfo('name'); ?>"  class="logo"><img alt="<?php bloginfo('name'); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo-iri-petit.png" /></a> 
+       <a href="<?php echo get_option('home'); ?>/" class="logo"><img alt="<?php bloginfo('name'); ?>" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo-iri-petit.png" /></a> 
   </div>
 
 <!-- Navigation -->
 <div class="column span-24 large" id="nav">
 <div class="content">
 	<ul id="navmenu-h">
-		<li><a href="<?php echo get_settings('home'); ?>">Acceuil</a></li>
-		<?php dp_list_categories('&exclude=1,8,16&'); ?>
-		
+		<li><a href="<?php echo get_settings('home'); ?>/">Accueil</a></li>
+		<?php dp_list_categories('&exclude=1,8,16,17,38&'); ?>
 
-		<li class="alignright"><a href="<?php bloginfo('rss2_url'); ?>" style="padding: 2px 5px 0 5px;"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/rss.png" style="padding:4px;" alt="rss icon" /></a></li>
-		
-		
-		<li class="alignright">
-			<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
-				<div  id="searchB" >
+		<li class="alignright"><a href="<?php bloginfo('rss2_url'); ?>" style="padding: 2px 8px 2px 8px;"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/rss.png" style="padding:4px;" alt="rss icon" /></a></li>
+				
+		<li class="alignright" >
+				<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
 				
+				<?php
+				if ( isset($_GET['s']) ) {
+					$search_text= utf8_decode(stripslashes($_GET['s']));
+				} else {
+					$search_text= "Rechercher";
+				}	
+				?>
+				
+				<div  id="<?php echo($cssSearch); ?>" >
 					<input type="text" name="s" id="s"
 								 value="<?php echo wp_specialchars($search_text, 1); ?>"
 								 onfocus="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')" 
 								 onblur="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')"
 					/>
 				
+				
+				<div class="my-skinnable-select">
+					<select name="engine" id="engine">
+					<?php
+						foreach ($engines as $i => $value) {
+							echo("<option value='".$i."'>".$value."</option>");
+						}
+					?>
+					</select>
 				</div>
-			</form>
+				
+					<input id="bt" name="bt" type="submit" value="" title="Rechercher" tabindex="0" />
+				</div>
+				
+				</form>
 		</li>
 		
 	</ul>
 </div>
-</div>
\ No newline at end of file
+</div>
+<!-- FIN DU HEADER -->
\ No newline at end of file
--- a/web/wp-content/themes/IRI-Theme/home.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/home.php	Mon Feb 01 09:51:57 2010 +0000
@@ -32,27 +32,53 @@
 	
 <!-- ACTU BOX -->
 	<div>
-		<h3>Actualit&eacute;s <a href="?cat=16">[+]</a></h3>
-		 <?php query_posts('cat=16&posts_per_page=2'); ?>
+		<h3><?php _e("Prochains &eacute;v&egrave;nements"); ?></h3>
+		<?php ec3_get_events_home(1); ?>
+		
+		<!-- -->
+		 <?php /*query_posts('cat=16&posts_per_page=2'); ?>
 			<ul>
 			<?php while (have_posts()) : the_post(); ?>
 					<li>
-						<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="title" target="_blank"><?php the_title(); ?></a>
+						<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>" class="title" target="_blank"><?php the_title(); ?></a>
 					</li>
-			<?php endwhile; ?>
-		</ul>
+			<?php endwhile; */?>
+		<!--</ul>-->
 	
 	</div>
 	<hr></hr>
 	
 <!-- AGENDA  BOX -->
-	<h3 class="widgettitle">Agenda</h3>
+	<h3><?php _e("Agenda "); ?>
+	<?
+	  // iCalendar link.
+		$webcal = get_option('home') . "/?ec3_ical";
+	  // Macintosh always understands webcal:// protocol.
+	  // It's hard to guess on other platforms, so stick to http://
+	  if(strstr($_SERVER['HTTP_USER_AGENT'],'Mac OS X'))
+		  $webcal = preg_replace('/^http:/','webcal:',$webcal);
+	  echo "\t    <a id='ec3_publish' href='$webcal'"
+		 . " title='Cliquer ici pour vous abonner au Icalendar de l&quot;Institut de recherche et d&quot;innovation.'>\n"
+		 . "\t     <img src='".get_option('home')."/wp-content/plugins/event-calendar/publish.gif' alt='iCalendar' />\n"
+		 . "\t    </a>\n";
+	?>
+
+	</h3>
 	<?php  ec3_get_calendar();  ?>
 	
 
 <!--END OF THIS AREA -->
 
-	
+<!-- SOCIAL AREA --> 
+		<div id="social">
+		<?php _e("R&eacute;seaux sociaux"); ?> &nbsp;
+		<ul class="addtoany_list">
+		<li><a target="_blank" rel="nofollow" href="http://twitter.com/IRILive" title="Cliquez ici pour acc&eacute;der au compte Twitter de l Institut de recherche et d innovation (IRI) "><img width="16" height="16" alt="Twitter" src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/twitter.png"/></a> </li>
+		<li><a target="_blank" rel="nofollow" href="http://www.facebook.com/home.php?#/pages/Institut-de-recherche-et-dinnovation-IRI/259317533466" title="Cliquez ici pour souscrire a la page Facebook de l Institut de recherche et d innovation (IRI) "><img width="16" height="16" alt="Facebook" src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/facebook.png"/></a></li>
+		<li><a target="_blank" rel="nofollow" href="http://delicious.com/iri_institute" title="Cliquez ici pour acc&eacute;der au compte Delicious de l Institut de recherche et d innovation (IRI) "><img width="16" height="16" alt="Delicous" src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/delicious.png"/></a></li>
+		<li><a target="_blank" rel="nofollow" href="http://www.flickr.com/photos/iri_institute/" title="Cliquez ici pour acc&eacute;der au compte flick R de l Institut de recherche et d innovation (IRI) "><img width="16" height="16" alt="FlickR" src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/flickr.gif"/></a></li>
+	</div>
+<!--END OF THIS AREA -->	
 	</div>
 </div>
 <hr></hr>
Binary file web/wp-content/themes/IRI-Theme/images/download_g.jpg has changed
Binary file web/wp-content/themes/IRI-Theme/images/external.png has changed
Binary file web/wp-content/themes/IRI-Theme/images/get.png has changed
Binary file web/wp-content/themes/IRI-Theme/images/help.png has changed
Binary file web/wp-content/themes/IRI-Theme/images/search_bg.gif has changed
Binary file web/wp-content/themes/IRI-Theme/images/search_bg_hover.gif has changed
Binary file web/wp-content/themes/IRI-Theme/images/search_box_bgd.gif has changed
Binary file web/wp-content/themes/IRI-Theme/images/search_box_bgd_h.gif has changed
Binary file web/wp-content/themes/IRI-Theme/images/search_bt.jpg has changed
--- a/web/wp-content/themes/IRI-Theme/js/jquery-1.3.2.min.js	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/js/jquery-1.3.2.min.js	Mon Feb 01 09:51:57 2010 +0000
@@ -1,19 +1,19 @@
-/*
- * jQuery JavaScript Library v1.3.2
- * http://jquery.com/
- *
- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
- *
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
- */
-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- *  Copyright 2009, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
+/*
+ * jQuery JavaScript Library v1.3.2
+ * http://jquery.com/
+ *
+ * Copyright (c) 2009 John Resig
+ * Dual licensed under the MIT and GPL licenses.
+ * http://docs.jquery.com/License
+ *
+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
+ * Revision: 6246
+ */
+(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
+/*
+ * Sizzle CSS Selector Engine - v0.9.3
+ *  Copyright 2009, The Dojo Foundation
+ *  Released under the MIT, BSD, and GPL Licenses.
+ *  More information: http://sizzlejs.com/
+ */
 (function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
\ No newline at end of file
--- a/web/wp-content/themes/IRI-Theme/js/jquery-ui-1.7.2.custom.min.js	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/js/jquery-ui-1.7.2.custom.min.js	Mon Feb 01 09:51:57 2010 +0000
@@ -1,201 +1,298 @@
-/*
- * jQuery UI 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI
- */
-jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;/*
- * jQuery UI Accordion 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Accordion
- *
- * Depends:
- *	ui.core.js
- */
-(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(d.collapsible&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","")}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);;/*
- * jQuery UI Dialog 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Dialog
- *
- * Depends:
- *	ui.core.js
- *	ui.draggable.js
- *	ui.resizable.js
- */
-(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog ui-widget ui-widget-content ui-corner-all ";c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var l=this,m=this.options,j=m.title||this.originalTitle||"&nbsp;",e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c("<div/>")).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:m.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){(m.closeOnEscape&&n.keyCode&&n.keyCode==c.ui.keyCode.ESCAPE&&l.close(n))}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k),f=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),i=c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon ui-icon-closethick").text(m.closeText).appendTo(i),d=c("<span/>").addClass("ui-dialog-title").attr("id",e).html(j).prependTo(f);f.find("*").add(f).disableSelection();(m.draggable&&c.fn.draggable&&this._makeDraggable());(m.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&&c.fn.bgiframe&&k.bgiframe());(m.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(f){var d=this;if(false===d._trigger("beforeclose",f)){return}(d.overlay&&d.overlay.destroy());d.uiDialog.unbind("keypress.ui-dialog");(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f)}):d.uiDialog.hide()&&d._trigger("close",f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(".ui-dialog").each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e)}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(":tabbable",this),i=g.filter(":first")[0],f=g.filter(":last")[0];if(h.target==f&&!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&&h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){e=f.height;c(this).height(c(this).height()).addClass("ui-dialog-dragging");(f.dragStart&&f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&&f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass("ui-dialog-dragging").height(e);(f.dragStop&&f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");(f.resizeStart&&f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&&f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();(f.resizeStop&&f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,["center","top","right","bottom","left"])>=0){i=[i=="right"||i=="left"?i:"center",i=="top"||i=="bottom"?i:"middle"]}if(i.constructor!=Array){i=["center","middle"]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case"left":d+=0;break;case"right":d+=e.width()-this.uiDialog.outerWidth();break;default:case"center":d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case"top":g+=0;break;case"bottom":g+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&&this.uiDialog.data(b[e],f));switch(e){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(f||"&nbsp;");break;case"width":this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height=="auto"?"auto":Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(".ui-dialog").css("zIndex")||0;return(g>c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==c.ui.keyCode.ESCAPE&&e.close(f))});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(e.options.bgiframe&&c.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e<d){return c(window).height()+"px"}else{return e+"px"}}else{return c(document).height()+"px"}},width:function(){if(c.browser.msie&&c.browser.version<7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d<e){return c(window).width()+"px"}else{return d+"px"}}else{return c(document).width()+"px"}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);;/*
- * jQuery UI Slider 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Slider
- *
- * Depends:
- *	ui.core.js
- */
-(function(a){a.widget("ui.slider",a.extend({},a.ui.mouse,{_init:function(){var b=this,c=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=a([]);if(c.range){if(c.range===true){this.range=a("<div></div>");if(!c.values){c.values=[this._valueMin(),this._valueMin()]}if(c.values.length&&c.values.length!=2){c.values=[c.values[0],c.values[0]]}}else{this.range=a("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(c.range=="min"||c.range=="max"){this.range.addClass("ui-slider-range-"+c.range)}this.range.addClass("ui-widget-header")}if(a(".ui-slider-handle",this.element).length==0){a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}if(c.values&&c.values.length){while(a(".ui-slider-handle",this.element).length<c.values.length){a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(d){d.preventDefault()}).hover(function(){if(!c.disabled){a(this).addClass("ui-state-hover")}},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(!c.disabled){a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}else{a(this).blur()}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(d){a(this).data("index.ui-slider-handle",d)});this.handles.keydown(function(i){var f=true;var e=a(this).data("index.ui-slider-handle");if(b.options.disabled){return}switch(i.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:f=false;if(!b._keySliding){b._keySliding=true;a(this).addClass("ui-state-active");b._start(i,e)}break}var g,d,h=b._step();if(b.options.values&&b.options.values.length){g=d=b.values(e)}else{g=d=b.value()}switch(i.keyCode){case a.ui.keyCode.HOME:d=b._valueMin();break;case a.ui.keyCode.END:d=b._valueMax();break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(g==b._valueMax()){return}d=g+h;break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(g==b._valueMin()){return}d=g-h;break}b._slide(i,e,d);return f}).keyup(function(e){var d=a(this).data("index.ui-slider-handle");if(b._keySliding){b._stop(e,d);b._change(e,d);b._keySliding=false;a(this).removeClass("ui-state-active")}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(d){var e=this.options;if(e.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var h={x:d.pageX,y:d.pageY};var j=this._normValueFromMouse(h);var c=this._valueMax()-this._valueMin()+1,f;var k=this,i;this.handles.each(function(l){var m=Math.abs(j-k.values(l));if(c>m){c=m;f=a(this);i=l}});if(e.range==true&&this.values(1)==e.min){f=a(this.handles[++i])}this._start(d,i);k._handleIndex=i;f.addClass("ui-state-active").focus();var g=f.offset();var b=!a(d.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=b?{left:0,top:0}:{left:d.pageX-g.left-(f.width()/2),top:d.pageY-g.top-(f.height()/2)-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};j=this._normValueFromMouse(h);this._slide(d,i,j);return true},_mouseStart:function(b){return true},_mouseDrag:function(d){var b={x:d.pageX,y:d.pageY};var c=this._normValueFromMouse(b);this._slide(d,this._handleIndex,c);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var c,h;if("horizontal"==this.orientation){c=this.elementSize.width;h=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{c=this.elementSize.height;h=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var f=(h/c);if(f>1){f=1}if(f<0){f=0}if("vertical"==this.orientation){f=1-f}var e=this._valueMax()-this._valueMin(),i=f*e,b=i%this.options.step,g=this._valueMin()+i-b;if(b>(this.options.step/2)){g+=this.options.step}return parseFloat(g.toFixed(5))},_start:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("start",d,b)},_slide:function(f,e,d){var g=this.handles[e];if(this.options.values&&this.options.values.length){var b=this.values(e?0:1);if((this.options.values.length==2&&this.options.range===true)&&((e==0&&d>b)||(e==1&&d<b))){d=b}if(d!=this.values(e)){var c=this.values();c[e]=d;var h=this._trigger("slide",f,{handle:this.handles[e],value:d,values:c});var b=this.values(e?0:1);if(h!==false){this.values(e,d,(f.type=="mousedown"&&this.options.animate),true)}}}else{if(d!=this.value()){var h=this._trigger("slide",f,{handle:this.handles[e],value:d});if(h!==false){this._setData("value",d,(f.type=="mousedown"&&this.options.animate))}}}},_stop:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("stop",d,b)},_change:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("change",d,b)},value:function(b){if(arguments.length){this._setData("value",b);this._change(null,0)}return this._value()},values:function(b,e,c,d){if(arguments.length>1){this.options.values[b]=e;this._refreshValue(c);if(!d){this._change(null,b)}}if(arguments.length){if(this.options.values&&this.options.values.length){return this._values(b)}else{return this.value()}}else{return this._values()}},_setData:function(b,d,c){a.widget.prototype._setData.apply(this,arguments);switch(b){case"disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else{this.handles.removeAttr("disabled")}case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue(c);break;case"value":this._refreshValue(c);break}},_step:function(){var b=this.options.step;return b},_value:function(){var b=this.options.value;if(b<this._valueMin()){b=this._valueMin()}if(b>this._valueMax()){b=this._valueMax()}return b},_values:function(b){if(arguments.length){var c=this.options.values[b];if(c<this._valueMin()){c=this._valueMin()}if(c>this._valueMax()){c=this._valueMax()}return c}else{return this.options.values}},_valueMin:function(){var b=this.options.min;return b},_valueMax:function(){var b=this.options.max;return b},_refreshValue:function(c){var f=this.options.range,d=this.options,l=this;if(this.options.values&&this.options.values.length){var i,h;this.handles.each(function(p,n){var o=(l.values(p)-l._valueMin())/(l._valueMax()-l._valueMin())*100;var m={};m[l.orientation=="horizontal"?"left":"bottom"]=o+"%";a(this).stop(1,1)[c?"animate":"css"](m,d.animate);if(l.options.range===true){if(l.orientation=="horizontal"){(p==0)&&l.range.stop(1,1)[c?"animate":"css"]({left:o+"%"},d.animate);(p==1)&&l.range[c?"animate":"css"]({width:(o-lastValPercent)+"%"},{queue:false,duration:d.animate})}else{(p==0)&&l.range.stop(1,1)[c?"animate":"css"]({bottom:(o)+"%"},d.animate);(p==1)&&l.range[c?"animate":"css"]({height:(o-lastValPercent)+"%"},{queue:false,duration:d.animate})}}lastValPercent=o})}else{var j=this.value(),g=this._valueMin(),k=this._valueMax(),e=k!=g?(j-g)/(k-g)*100:0;var b={};b[l.orientation=="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[c?"animate":"css"](b,d.animate);(f=="min")&&(this.orientation=="horizontal")&&this.range.stop(1,1)[c?"animate":"css"]({width:e+"%"},d.animate);(f=="max")&&(this.orientation=="horizontal")&&this.range[c?"animate":"css"]({width:(100-e)+"%"},{queue:false,duration:d.animate});(f=="min")&&(this.orientation=="vertical")&&this.range.stop(1,1)[c?"animate":"css"]({height:e+"%"},d.animate);(f=="max")&&(this.orientation=="vertical")&&this.range[c?"animate":"css"]({height:(100-e)+"%"},{queue:false,duration:d.animate})}}}));a.extend(a.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);;/*
- * jQuery UI Tabs 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Tabs
- *
- * Depends:
- *	ui.core.js
- */
-(function(a){a.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(b,c){if(b=="selected"){if(this.options.collapsible&&c==this.options.selected){return}this.select(c)}else{this.options[b]=c;if(b=="deselectable"){this.options.collapsible=c}this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b)},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(c,b){return{tab:c,panel:b,index:this.anchors.index(c)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(n){this.list=this.element.children("ul:first");this.lis=a("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);var p=this,d=this.options;var c=/^#.+/;this.anchors.each(function(r,o){var q=a(o).attr("href");var s=q.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||(u=a("base")[0])&&s===u.href)){q=o.hash;o.href=q}if(c.test(q)){p.panels=p.panels.add(p._sanitizeSelector(q))}else{if(q!="#"){a.data(o,"href.tabs",q);a.data(o,"load.tabs",q.replace(/#.*$/,""));var w=p._tabId(o);o.href="#"+w;var v=a("#"+w);if(!v.length){v=a(d.panelTemplate).attr("id",w).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(p.panels[r-1]||p.list);v.data("destroy.tabs",true)}p.panels=p.panels.add(v)}else{d.disabled.push(r)}}});if(n){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(d.selected===undefined){if(location.hash){this.anchors.each(function(q,o){if(o.hash==location.hash){d.selected=q;return false}})}if(typeof d.selected!="number"&&d.cookie){d.selected=parseInt(p._cookie(),10)}if(typeof d.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}d.selected=d.selected||0}else{if(d.selected===null){d.selected=-1}}d.selected=((d.selected>=0&&this.anchors[d.selected])||d.selected<0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(q,o){return p.lis.index(q)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(d.selected>=0&&this.anchors.length){this.panels.eq(d.selected).removeClass("ui-tabs-hide");this.lis.eq(d.selected).addClass("ui-tabs-selected ui-state-active");p.element.queue("tabs",function(){p._trigger("show",null,p._ui(p.anchors[d.selected],p.panels[d.selected]))});this.load(d.selected)}a(window).bind("unload",function(){p.lis.add(p.anchors).unbind(".tabs");p.lis=p.anchors=p.panels=null})}else{d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[d.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(d.cookie){this._cookie(d.selected,d.cookie)}for(var g=0,m;(m=this.lis[g]);g++){a(m)[a.inArray(g,d.disabled)!=-1&&!a(m).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(d.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(d.event!="mouseover"){var f=function(o,i){if(i.is(":not(.ui-state-disabled)")){i.addClass("ui-state-"+o)}};var j=function(o,i){i.removeClass("ui-state-"+o)};this.lis.bind("mouseover.tabs",function(){f("hover",a(this))});this.lis.bind("mouseout.tabs",function(){j("hover",a(this))});this.anchors.bind("focus.tabs",function(){f("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var b,h;if(d.fx){if(a.isArray(d.fx)){b=d.fx[0];h=d.fx[1]}else{b=h=d.fx}}function e(i,o){i.css({display:""});if(a.browser.msie&&o.opacity){i[0].style.removeAttribute("filter")}}var k=h?function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.hide().removeClass("ui-tabs-hide").animate(h,h.duration||"normal",function(){e(o,h);p._trigger("show",null,p._ui(i,o[0]))})}:function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.removeClass("ui-tabs-hide");p._trigger("show",null,p._ui(i,o[0]))};var l=b?function(o,i){i.animate(b,b.duration||"normal",function(){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");e(i,b);p.element.dequeue("tabs")})}:function(o,i,q){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");p.element.dequeue("tabs")};this.anchors.bind(d.event+".tabs",function(){var o=this,r=a(this).closest("li"),i=p.panels.filter(":not(.ui-tabs-hide)"),q=a(p._sanitizeSelector(this.hash));if((r.hasClass("ui-tabs-selected")&&!d.collapsible)||r.hasClass("ui-state-disabled")||r.hasClass("ui-state-processing")||p._trigger("select",null,p._ui(this,q[0]))===false){this.blur();return false}d.selected=p.anchors.index(this);p.abort();if(d.collapsible){if(r.hasClass("ui-tabs-selected")){d.selected=-1;if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue("tabs",function(){l(o,i)}).dequeue("tabs");this.blur();return false}else{if(!i.length){if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue("tabs",function(){k(o,q)});p.load(p.anchors.index(this));this.blur();return false}}}if(d.cookie){p._cookie(d.selected,d.cookie)}if(q.length){if(i.length){p.element.queue("tabs",function(){l(o,i)})}p.element.queue("tabs",function(){k(o,q)});p.load(p.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(a.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var c=a.data(this,"href.tabs");if(c){this.href=c}var d=a(this).unbind(".tabs");a.each(["href","load","cache"],function(e,f){d.removeData(f+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(a.data(this,"destroy.tabs")){a(this).remove()}else{a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(b.cookie){this._cookie(null,b.cookie)}},add:function(e,d,c){if(c===undefined){c=this.anchors.length}var b=this,g=this.options,i=a(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d)),h=!e.indexOf("#")?e.replace("#",""):this._tabId(a("a",i)[0]);i.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var f=a("#"+h);if(!f.length){f=a(g.panelTemplate).attr("id",h).data("destroy.tabs",true)}f.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(c>=this.lis.length){i.appendTo(this.list);f.appendTo(this.list[0].parentNode)}else{i.insertBefore(this.lis[c]);f.insertBefore(this.panels[c])}g.disabled=a.map(g.disabled,function(k,j){return k>=c?++k:k});this._tabify();if(this.anchors.length==1){i.addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[c],this.panels[c]))},remove:function(b){var d=this.options,e=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();if(e.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(b+(b+1<this.anchors.length?1:-1))}d.disabled=a.map(a.grep(d.disabled,function(g,f){return g!=b}),function(g,f){return g>=b?--g:g});this._tabify();this._trigger("remove",null,this._ui(e.find("a")[0],c[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}this.lis.eq(b).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(e,d){return e!=b});this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]))},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.lis.eq(c).addClass("ui-state-disabled");d.disabled.push(c);d.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[c],this.panels[c]))}},select:function(b){if(typeof b=="string"){b=this.anchors.index(this.anchors.filter("[href$="+b+"]"))}else{if(b===null){b=-1}}if(b==-1&&this.options.collapsible){b=this.options.selected}this.anchors.eq(b).trigger(this.options.event+".tabs")},load:function(e){var c=this,g=this.options,b=this.anchors.eq(e)[0],d=a.data(b,"load.tabs");this.abort();if(!d||this.element.queue("tabs").length!==0&&a.data(b,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(e).addClass("ui-state-processing");if(g.spinner){var f=a("span",b);f.data("label.tabs",f.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:d,success:function(i,h){a(c._sanitizeSelector(b.hash)).html(i);c._cleanup();if(g.cache){a.data(b,"cache.tabs",true)}c._trigger("load",null,c._ui(c.anchors[e],c.panels[e]));try{g.ajaxOptions.success(i,h)}catch(j){}c.element.dequeue("tabs")}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(c,b){this.anchors.eq(c).removeData("cache.tabs").data("load.tabs",b)},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.7.2",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,f){var b=this,g=this.options;var c=b._rotate||(b._rotate=function(h){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var i=g.selected;b.select(++i<b.anchors.length?i:0)},d);if(h){h.stopPropagation()}});var e=b._unrotate||(b._unrotate=!f?function(h){if(h.clientX){b.rotate(null)}}:function(h){t=g.selected;c()});if(d){this.element.bind("tabsshow",c);this.anchors.bind(g.event+".tabs",e);c()}else{clearTimeout(b.rotation);this.element.unbind("tabsshow",c);this.anchors.unbind(g.event+".tabs",e);delete this._rotate;delete this._unrotate}}})})(jQuery);;/*
- * jQuery UI Effects 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/
- */
-jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var i,f;switch(g[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:i}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return -j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return -j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return -j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return -j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return -j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return -j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return -j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return -j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return -(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+f},easeInOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return -0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+f},easeInBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*(h/=j)*h*((i+1)*h-i)+f},easeOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*((h=h/j-1)*h*((i+1)*h+i)+1)+f},easeInOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}if((h/=j/2)<1){return k/2*(h*h*(((i*=(1.525))+1)*h-i))+f}return k/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+f},easeInBounce:function(g,h,f,j,i){return j-d.easing.easeOutBounce(g,i-h,0,j,i)+f},easeOutBounce:function(g,h,f,j,i){if((h/=i)<(1/2.75)){return j*(7.5625*h*h)+f}else{if(h<(2/2.75)){return j*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return j*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return j*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,j,i){if(h<i/2){return d.easing.easeInBounce(g,h*2,0,j,i)*0.5+f}return d.easing.easeOutBounce(g,h*2-i,0,j,i)*0.5+j*0.5+f}})})(jQuery);;/*
- * jQuery UI Effects Blind 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Blind
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.blind=function(b){return this.queue(function(){var d=a(this),c=["position","top","left"];var h=a.effects.setMode(d,b.options.mode||"hide");var g=b.options.direction||"vertical";a.effects.save(d,c);d.show();var j=a.effects.createWrapper(d).css({overflow:"hidden"});var e=(g=="vertical")?"height":"width";var i=(g=="vertical")?j.height():j.width();if(h=="show"){j.css(e,0)}var f={};f[e]=h=="show"?i:0;j.animate(f,b.duration,b.options.easing,function(){if(h=="hide"){d.hide()}a.effects.restore(d,c);a.effects.removeWrapper(d);if(b.callback){b.callback.apply(d[0],arguments)}d.dequeue()})})}})(jQuery);;/*
- * jQuery UI Effects Bounce 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Bounce
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.bounce=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"up";var c=b.options.distance||20;var d=b.options.times||5;var g=b.duration||250;if(/show|hide/.test(k)){l.push("opacity")}a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var c=b.options.distance||(f=="top"?e.outerHeight({margin:true})/3:e.outerWidth({margin:true})/3);if(k=="show"){e.css("opacity",0).css(f,p=="pos"?-c:c)}if(k=="hide"){c=c/(d*2)}if(k!="hide"){d--}if(k=="show"){var h={opacity:1};h[f]=(p=="pos"?"+=":"-=")+c;e.animate(h,g/2,b.options.easing);c=c/2;d--}for(var j=0;j<d;j++){var o={},m={};o[f]=(p=="pos"?"-=":"+=")+c;m[f]=(p=="pos"?"+=":"-=")+c;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing);c=(k=="hide")?c*2:c/2}if(k=="hide"){var h={opacity:0};h[f]=(p=="pos"?"-=":"+=")+c;e.animate(h,g/2,b.options.easing,function(){e.hide();a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}else{var o={},m={};o[f]=(p=="pos"?"-=":"+=")+c;m[f]=(p=="pos"?"+=":"-=")+c;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);;/*
- * jQuery UI Effects Clip 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Clip
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.clip=function(b){return this.queue(function(){var f=a(this),j=["position","top","left","height","width"];var i=a.effects.setMode(f,b.options.mode||"hide");var k=b.options.direction||"vertical";a.effects.save(f,j);f.show();var c=a.effects.createWrapper(f).css({overflow:"hidden"});var e=f[0].tagName=="IMG"?c:f;var g={size:(k=="vertical")?"height":"width",position:(k=="vertical")?"top":"left"};var d=(k=="vertical")?e.height():e.width();if(i=="show"){e.css(g.size,0);e.css(g.position,d/2)}var h={};h[g.size]=i=="show"?d:0;h[g.position]=i=="show"?0:d/2;e.animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){f.hide()}a.effects.restore(f,j);a.effects.removeWrapper(f);if(b.callback){b.callback.apply(f[0],arguments)}f.dequeue()}})})}})(jQuery);;/*
- * jQuery UI Effects Drop 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Drop
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.drop=function(b){return this.queue(function(){var e=a(this),d=["position","top","left","opacity"];var i=a.effects.setMode(e,b.options.mode||"hide");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e);var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true})/2:e.outerWidth({margin:true})/2);if(i=="show"){e.css("opacity",0).css(f,c=="pos"?-j:j)}var g={opacity:i=="show"?1:0};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
- * jQuery UI Effects Fold 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Fold
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.fold=function(b){return this.queue(function(){var e=a(this),k=["position","top","left"];var h=a.effects.setMode(e,b.options.mode||"hide");var o=b.options.size||15;var n=!(!b.options.horizFirst);var g=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(e,k);e.show();var d=a.effects.createWrapper(e).css({overflow:"hidden"});var i=((h=="show")!=n);var f=i?["width","height"]:["height","width"];var c=i?[d.width(),d.height()]:[d.height(),d.width()];var j=/([0-9]+)%/.exec(o);if(j){o=parseInt(j[1],10)/100*c[h=="hide"?0:1]}if(h=="show"){d.css(n?{height:0,width:o}:{height:o,width:0})}var m={},l={};m[f[0]]=h=="show"?c[0]:o;l[f[1]]=h=="show"?c[1]:0;d.animate(m,g,b.options.easing).animate(l,g,b.options.easing,function(){if(h=="hide"){e.hide()}a.effects.restore(e,k);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(e[0],arguments)}e.dequeue()})})}})(jQuery);;/*
- * jQuery UI Effects Highlight 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Highlight
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.highlight=function(b){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"];var h=a.effects.setMode(e,b.options.mode||"show");var c=b.options.color||"#ffff99";var g=e.css("backgroundColor");a.effects.save(e,d);e.show();e.css({backgroundImage:"none",backgroundColor:c});var f={backgroundColor:g};if(h=="hide"){f.opacity=0}e.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){e.hide()}a.effects.restore(e,d);if(h=="show"&&a.browser.msie){this.style.removeAttribute("filter")}if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
- * jQuery UI Effects Pulsate 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Pulsate
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this);var g=a.effects.setMode(d,b.options.mode||"show");var f=b.options.times||5;var e=b.duration?b.duration/2:a.fx.speeds._default/2;if(g=="hide"){f--}if(d.is(":hidden")){d.css("opacity",0);d.show();d.animate({opacity:1},e,b.options.easing);f=f-2}for(var c=0;c<f;c++){d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing)}if(g=="hide"){d.animate({opacity:0},e,b.options.easing,function(){d.hide();if(b.callback){b.callback.apply(this,arguments)}})}else{d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing,function(){if(b.callback){b.callback.apply(this,arguments)}})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);;/*
- * jQuery UI Effects Scale 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Scale
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.puff=function(b){return this.queue(function(){var f=a(this);var c=a.extend(true,{},b.options);var h=a.effects.setMode(f,b.options.mode||"hide");var g=parseInt(b.options.percent,10)||150;c.fade=true;var e={height:f.height(),width:f.width()};var d=g/100;f.from=(h=="hide")?e:{height:e.height*d,width:e.width*d};c.from=f.from;c.percent=(h=="hide")?g:100;c.mode=h;f.effect("scale",c,b.duration,b.callback);f.dequeue()})};a.effects.scale=function(b){return this.queue(function(){var g=a(this);var d=a.extend(true,{},b.options);var j=a.effects.setMode(g,b.options.mode||"effect");var h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:(j=="hide"?0:100));var i=b.options.direction||"both";var c=b.options.origin;if(j!="effect"){d.origin=c||["middle","center"];d.restore=true}var f={height:g.height(),width:g.width()};g.from=b.options.from||(j=="show"?{height:0,width:0}:f);var e={y:i!="horizontal"?(h/100):1,x:i!="vertical"?(h/100):1};g.to={height:f.height*e.y,width:f.width*e.x};if(b.options.fade){if(j=="show"){g.from.opacity=0;g.to.opacity=1}if(j=="hide"){g.from.opacity=1;g.to.opacity=0}}d.from=g.from;d.to=g.to;d.mode=j;g.effect("size",d,b.duration,b.callback);g.dequeue()})};a.effects.size=function(b){return this.queue(function(){var c=a(this),n=["position","top","left","width","height","overflow","opacity"];var m=["position","top","left","overflow","opacity"];var j=["width","height","overflow"];var p=["fontSize"];var k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var f=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var g=a.effects.setMode(c,b.options.mode||"effect");var i=b.options.restore||false;var e=b.options.scale||"both";var o=b.options.origin;var d={height:c.height(),width:c.width()};c.from=b.options.from||d;c.to=b.options.to||d;if(o){var h=a.effects.getBaseline(o,d);c.from.top=(d.height-c.from.height)*h.y;c.from.left=(d.width-c.from.width)*h.x;c.to.top=(d.height-c.to.height)*h.y;c.to.left=(d.width-c.to.width)*h.x}var l={from:{y:c.from.height/d.height,x:c.from.width/d.width},to:{y:c.to.height/d.height,x:c.to.width/d.width}};if(e=="box"||e=="both"){if(l.from.y!=l.to.y){n=n.concat(k);c.from=a.effects.setTransition(c,k,l.from.y,c.from);c.to=a.effects.setTransition(c,k,l.to.y,c.to)}if(l.from.x!=l.to.x){n=n.concat(f);c.from=a.effects.setTransition(c,f,l.from.x,c.from);c.to=a.effects.setTransition(c,f,l.to.x,c.to)}}if(e=="content"||e=="both"){if(l.from.y!=l.to.y){n=n.concat(p);c.from=a.effects.setTransition(c,p,l.from.y,c.from);c.to=a.effects.setTransition(c,p,l.to.y,c.to)}}a.effects.save(c,i?n:m);c.show();a.effects.createWrapper(c);c.css("overflow","hidden").css(c.from);if(e=="content"||e=="both"){k=k.concat(["marginTop","marginBottom"]).concat(p);f=f.concat(["marginLeft","marginRight"]);j=n.concat(k).concat(f);c.find("*[width]").each(function(){child=a(this);if(i){a.effects.save(child,j)}var q={height:child.height(),width:child.width()};child.from={height:q.height*l.from.y,width:q.width*l.from.x};child.to={height:q.height*l.to.y,width:q.width*l.to.x};if(l.from.y!=l.to.y){child.from=a.effects.setTransition(child,k,l.from.y,child.from);child.to=a.effects.setTransition(child,k,l.to.y,child.to)}if(l.from.x!=l.to.x){child.from=a.effects.setTransition(child,f,l.from.x,child.from);child.to=a.effects.setTransition(child,f,l.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){if(i){a.effects.restore(child,j)}})})}c.animate(c.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(g=="hide"){c.hide()}a.effects.restore(c,i?n:m);a.effects.removeWrapper(c);if(b.callback){b.callback.apply(this,arguments)}c.dequeue()}})})}})(jQuery);;/*
- * jQuery UI Effects Shake 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Shake
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.shake=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"left";var c=b.options.distance||20;var d=b.options.times||3;var g=b.duration||b.options.duration||140;a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var h={},o={},m={};h[f]=(p=="pos"?"-=":"+=")+c;o[f]=(p=="pos"?"+=":"-=")+c*2;m[f]=(p=="pos"?"-=":"+=")+c*2;e.animate(h,g,b.options.easing);for(var j=1;j<d;j++){e.animate(o,g,b.options.easing).animate(m,g,b.options.easing)}e.animate(o,g,b.options.easing).animate(h,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}});e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);;/*
- * jQuery UI Effects Slide 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Slide
- *
- * Depends:
- *	effects.core.js
- */
-(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var i=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(i=="show"){e.css(f,c=="pos"?-j:j)}var g={};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
- * jQuery UI Effects Transfer 1.7.2
- *
- * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Transfer
- *
- * Depends:
- *	effects.core.js
- */
+/*
+ * jQuery UI 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI
+ */
+jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;/*
+ * jQuery UI Draggable 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Draggables
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add("draggable","connectToSortable",{start:function(c,e){var d=a(this).data("draggable"),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,"sortable");if(g&&!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",c,b)}})},stop:function(c,e){var d=a(this).data("draggable"),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,b)}})},drag:function(c,f){var e=a(this).data("draggable"),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger("fromSortable",c);e.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(c,d){var b=a("body"),e=a(this).data("draggable").options;if(b.css("cursor")){e._cursor=b.css("cursor")}b.css("cursor",e.cursor)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._cursor){a("body").css("cursor",d._cursor)}}});a.ui.plugin.add("draggable","iframeFix",{start:function(b,c){var d=a(this).data("draggable").options;a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top<f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!="y"){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left<f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!="x"){if(d.pageY-a(document).scrollTop()<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())<f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!="y"){if(d.pageX-a(document).scrollLeft()<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())<f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&&a.ui.ddmanager&&!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add("draggable","snap",{start:function(c,d){var b=a(this).data("draggable"),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||":data(draggable)"):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data("draggable"),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v>=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y<x&&x<n+y&&m-y<f&&f<A+y)||(s-y<x&&x<n+y&&m-y<e&&e<A+y)||(s-y<w&&w<n+y&&m-y<f&&f<A+y)||(s-y<w&&w<n+y&&m-y<e&&e<A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=y;var z=Math.abs(A-f)<=y;var j=Math.abs(s-w)<=y;var k=Math.abs(n-x)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=y;var z=Math.abs(A-e)<=y;var j=Math.abs(s-x)<=y;var k=Math.abs(n-w)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&&(c||z||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add("draggable","stack",{start:function(b,c){var e=a(this).data("draggable").options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css("zIndex"),10)||e.stack.min)-(parseInt(a(f).css("zIndex"),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add("draggable","zIndex",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("zIndex")){e._zIndex=b.css("zIndex")}b.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._zIndex){a(c.helper).css("zIndex",d._zIndex)}}})})(jQuery);;/*
+ * jQuery UI Droppable 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Droppables
+ *
+ * Depends:
+ *	ui.core.js
+ *	ui.draggable.js
+ */
+(function(a){a.widget("ui.droppable",{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c<b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(b,c){if(b=="accept"){this.options.accept=c&&a.isFunction(c)?c:function(e){return e.is(c)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(b&&this._trigger("activate",c,this.ui(b)))},_deactivate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(b&&this._trigger("deactivate",c,this.ui(b)))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",c,this.ui(b))}},_drop:function(c,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return false}var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=a.data(this,"droppable");if(f.options.greedy&&a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",c,this.ui(b));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case"fit":return(g<e&&d<c&&p<n&&m<k);break;case"intersect":return(g<e+(q.helperProportions.width/2)&&d-(q.helperProportions.width/2)<c&&p<n+(q.helperProportions.height/2)&&m-(q.helperProportions.height/2)<k);break;case"pointer":var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case"touch":return((n>=p&&n<=k)||(m>=p&&m<=k)||(n<p&&m>k))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(e<g&&d>c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;d<b.length;d++){if(b[d].options.disabled||(e&&!b[d].options.accept.call(b[d].element[0],(e.currentItem||e.element)))){continue}for(var c=0;c<h.length;c++){if(h[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css("display")!="none";if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(f=="mousedown"){b[d]._activate.call(b[d],g)}}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)){d=this._drop.call(this,c)}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element[0],(b.currentItem||b.element))){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets(b,c)}a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e=a.ui.intersect(b,this,this.options.tolerance);var g=!e&&this.isover==1?"isout":(e&&this.isover==0?"isover":null);if(!g){return}var f;if(this.options.greedy){var d=this.element.parents(":data(droppable):eq(0)");if(d.length){f=a.data(d[0],"droppable");f.greedyChild=(g=="isover"?1:0)}}if(f&&g=="isover"){f.isover=0;f.isout=1;f._out.call(f,c)}this[g]=1;this[g=="isout"?"isover":"isout"]=0;this[g=="isover"?"_over":"_out"].call(this,c);if(f&&g=="isout"){f.isout=0;f.isover=1;f._over.call(f,c)}})}}})(jQuery);;/*
+ * jQuery UI Resizable 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Resizables
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function(c){c.widget("ui.resizable",c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&c.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=j.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var k=this.handles.split(",");this.handles={};for(var f=0;f<k.length;f++){var h=c.trim(k[f]),d="ui-resizable-"+h;var g=c('<div class="ui-resizable-handle '+d+'"></div>');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex})}if("se"==h){g.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[h]=".ui-resizable-"+h;this.element.append(g)}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=["padding",/ne|nw|n/.test(m)?"Top":/se|sw|s/.test(m)?"Bottom":/^e$/.test(m)?"Right":"Left"].join("");p.css(l,o);this._proportionallyResize()}if(!c(this.handles[m]).length){continue}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=i&&i[1]?i[1]:"se"}});if(j.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){c(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(d.is(".ui-draggable")||(/absolute/).test(d.css("position"))){d.css({position:"absolute",top:e.top,left:e.left})}if(c.browser.opera&&(/relative/).test(d.css("position"))){d.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var j=b(this.helper.css("left")),g=b(this.helper.css("top"));if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio=="number")?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",h=="auto"?this.axis+"-resize":h);d.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];if(!h){return false}var k=h.apply(this,[d,q,n]),j=c.browser.msie&&c.browser.version<7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d)}k=this._respectSize(k,d);this._propagate("resize",d);g.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(k);this._trigger("resize",d,this.ui());return false},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&&(/textarea/i).test(f[0].nodeName),e=d&&c.ui.hasScroll(f[0],"left")?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&&!h.animate){this._proportionallyResize()}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",g);if(this._helper){this.helper.remove()}return false},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio)}else{if(g.width){g.height=(e.width/this.aspectRatio)}}if(d=="sw"){g.left=i.left+(e.width-g.width);g.top=null}if(d=="nw"){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width)}return g},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,s=a(k.width)&&h.maxWidth&&(h.maxWidth<k.width),l=a(k.height)&&h.maxHeight&&(h.maxHeight<k.height),g=a(k.width)&&h.minWidth&&(h.minWidth>k.width),r=a(k.height)&&h.minHeight&&(h.minHeight>k.height);if(g){k.width=h.minWidth}if(r){k.height=h.minHeight}if(s){k.width=h.maxWidth}if(l){k.height=h.maxHeight}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&&j){k.left=e-h.minWidth}if(s&&j){k.left=e-h.maxWidth}if(r&&d){k.top=n-h.minHeight}if(l&&d){k.top=n-h.maxHeight}var m=!k.width&&!k.height;if(m&&!k.left&&k.top){k.top=null}else{if(m&&!k.top&&k.left){k.left=null}}return k},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var e=0;e<this._proportionallyResizeElements.length;e++){var g=this._proportionallyResizeElements[e];if(!this.borderDif){var d=[g.css("borderTopWidth"),g.css("borderRightWidth"),g.css("borderBottomWidth"),g.css("borderLeftWidth")],h=[g.css("paddingTop"),g.css("paddingRight"),g.css("paddingBottom"),g.css("paddingLeft")];this.borderDif=c.map(d,function(k,m){var l=parseInt(k,10)||0,n=parseInt(h[m],10)||0;return l+n})}if(c.browser.msie&&!(!(c(f).is(":hidden")||c(f).parents(":hidden").length))){continue}g.css({height:(f.height()-this.borderDif[0]-this.borderDif[2])||0,width:(f.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var e=this.element,h=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var d=c.browser.msie&&c.browser.version<7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++h.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e}},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e}},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+d,height:f.height-d}},s:function(f,e,d){return{height:this.originalSize.height+d}},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]))},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!="resize"&&this._trigger(e,d,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));c.extend(c.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});c.ui.plugin.add("resizable","alsoResize",{start:function(e,f){var d=c(this).data("resizable"),g=d.options;_store=function(h){c(h).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof(g.alsoResize)=="object"&&!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{c.each(g.alsoResize,function(h,i){_store(h)})}}else{_store(g.alsoResize)}},resize:function(f,h){var e=c(this).data("resizable"),i=e.options,g=e.originalSize,k=e.originalPosition;var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data("resizable-alsoresize"),o={},n=m&&m.length?m:["width","height","top","left"];c.each(n||["width","height","top","left"],function(r,t){var s=(q[t]||0)+(j[t]||0);if(s&&s>=0){o[t]=s||null}});if(/relative/.test(p.css("position"))&&c.browser.opera){e._revertToRelativePosition=true;p.css({position:"absolute",top:"auto",left:"auto"})}p.css(o)})};if(typeof(i.alsoResize)=="object"&&!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m)})}else{d(i.alsoResize)}},stop:function(e,f){var d=c(this).data("resizable");if(d._revertToRelativePosition&&c.browser.opera){d._revertToRelativePosition=false;el.css({position:"relative"})}c(this).removeData("resizable-alsoresize-start")}});c.ui.plugin.add("resizable","animate",{stop:function(h,m){var n=c(this).data("resizable"),i=n.options;var g=n._proportionallyResizeElements,d=g.length&&(/textarea/i).test(g[0].nodeName),e=d&&c.ui.hasScroll(g[0],"left")?0:n.sizeDiff.height,k=d?0:n.sizeDiff.width;var f={width:(n.size.width-k),height:(n.size.height-e)},j=(parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left))||null,l=(parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top))||null;n.element.animate(c.extend(f,l&&j?{top:l,left:j}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var o={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};if(g&&g.length){c(g[0]).css({width:o.width,height:o.height})}n._updateCache(o);n._propagate("resize",h)}})}});c.ui.plugin.add("resizable","containment",{start:function(e,q){var s=c(this).data("resizable"),i=s.options,k=s.element;var f=i.containment,j=(f instanceof c)?f.get(0):(/parent/.test(f))?k.parent().get(0):f;if(!j){return}s.containerElement=c(j);if(/document/.test(f)||f==document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var m=c(j),h=[];c(["Top","Right","Left","Bottom"]).each(function(p,o){h[p]=b(m.css("padding"+o))});s.containerOffset=m.offset();s.containerPosition=m.position();s.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var n=s.containerOffset,d=s.containerSize.height,l=s.containerSize.width,g=(c.ui.hasScroll(j,"left")?j.scrollWidth:l),r=(c.ui.hasScroll(j)?j.scrollHeight:d);s.parentData={element:j,left:n.left,top:n.top,width:g,height:r}}},resize:function(f,p){var s=c(this).data("resizable"),h=s.options,e=s.containerSize,n=s.containerOffset,l=s.size,m=s.position,q=s._aspectRatio||f.shiftKey,d={top:0,left:0},g=s.containerElement;if(g[0]!=document&&(/static/).test(g.css("position"))){d=n}if(m.left<(s._helper?n.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-n.left):(s.position.left-d.left));if(q){s.size.height=s.size.width/h.aspectRatio}s.position.left=h.helper?n.left:0}if(m.top<(s._helper?n.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-n.top):s.position.top);if(q){s.size.width=s.size.height*h.aspectRatio}s.position.top=s._helper?n.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var k=Math.abs((s._helper?s.offset.left-d.left:(s.offset.left-d.left))+s.sizeDiff.width),r=Math.abs((s._helper?s.offset.top-d.top:(s.offset.top-n.top))+s.sizeDiff.height);var j=s.containerElement.get(0)==s.element.parent().get(0),i=/relative|absolute/.test(s.containerElement.css("position"));if(j&&i){k-=s.parentData.left}if(k+s.size.width>=s.parentData.width){s.size.width=s.parentData.width-k;if(q){s.size.height=s.size.width/s.aspectRatio}}if(r+s.size.height>=s.parentData.height){s.size.height=s.parentData.height-r;if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(e,m){var p=c(this).data("resizable"),f=p.options,k=p.position,l=p.containerOffset,d=p.containerPosition,g=p.containerElement;var i=c(p.helper),q=i.offset(),n=i.outerWidth()-p.sizeDiff.width,j=i.outerHeight()-p.sizeDiff.height;if(p._helper&&!f.animate&&(/relative/).test(g.css("position"))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}if(p._helper&&!f.animate&&(/static/).test(g.css("position"))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}}});c.ui.plugin.add("resizable","ghost",{start:function(f,g){var d=c(this).data("resizable"),h=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");d.ghost.appendTo(d.helper)},resize:function(e,f){var d=c(this).data("resizable"),g=d.options;if(d.ghost){d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})}},stop:function(e,f){var d=c(this).data("resizable"),g=d.options;if(d.ghost&&d.helper){d.helper.get(0).removeChild(d.ghost.get(0))}}});c.ui.plugin.add("resizable","grid",{resize:function(d,l){var n=c(this).data("resizable"),g=n.options,j=n.size,h=n.originalSize,i=n.originalPosition,m=n.axis,k=g._aspectRatio||d.shiftKey;g.grid=typeof g.grid=="number"?[g.grid,g.grid]:g.grid;var f=Math.round((j.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),e=Math.round((j.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e}else{if(/^(ne)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e}else{if(/^(sw)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.left=i.left-f}else{n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e;n.position.left=i.left-f}}}}});var b=function(d){return parseInt(d,10)||0};var a=function(d){return !isNaN(parseInt(d,10))}})(jQuery);;/*
+ * jQuery UI Selectable 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Selectables
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function(a){a.widget("ui.selectable",a.extend({},a.ui.mouse,{_init:function(){var b=this;this.element.addClass("ui-selectable");this.dragged=false;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]);c.each(function(){var d=a(this);var e=d.offset();a.data(this,"selectable-item",{element:this,$element:d,left:e.left,top:e.top,right:e.left+d.outerWidth(),bottom:e.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=c.addClass("ui-selectee");this._mouseInit();this.helper=a(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(d){var b=this;this.opos=[d.pageX,d.pageY];if(this.options.disabled){return}var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger("start",d);a(c.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:d.clientX,top:d.clientY,width:0,height:0});if(c.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var e=a.data(this,"selectable-item");e.startselected=true;if(!d.metaKey){e.$element.removeClass("ui-selected");e.selected=false;e.$element.addClass("ui-unselecting");e.unselecting=true;b._trigger("unselecting",d,{unselecting:e.element})}});a(d.target).parents().andSelf().each(function(){var e=a.data(this,"selectable-item");if(e){e.$element.removeClass("ui-unselecting").addClass("ui-selecting");e.unselecting=false;e.selecting=true;e.selected=true;b._trigger("selecting",d,{selecting:e.element});return false}})},_mouseDrag:function(i){var c=this;this.dragged=true;if(this.options.disabled){return}var e=this.options;var d=this.opos[0],h=this.opos[1],b=i.pageX,g=i.pageY;if(d>b){var f=b;b=d;d=f}if(h>g){var f=g;g=h;h=f}this.helper.css({left:d,top:h,width:b-d,height:g-h});this.selectees.each(function(){var j=a.data(this,"selectable-item");if(!j||j.element==c.element[0]){return}var k=false;if(e.tolerance=="touch"){k=(!(j.left>b||j.right<d||j.top>g||j.bottom<h))}else{if(e.tolerance=="fit"){k=(j.left>d&&j.right<b&&j.top>h&&j.bottom<g)}}if(k){if(j.selected){j.$element.removeClass("ui-selected");j.selected=false}if(j.unselecting){j.$element.removeClass("ui-unselecting");j.unselecting=false}if(!j.selecting){j.$element.addClass("ui-selecting");j.selecting=true;c._trigger("selecting",i,{selecting:j.element})}}else{if(j.selecting){if(i.metaKey&&j.startselected){j.$element.removeClass("ui-selecting");j.selecting=false;j.$element.addClass("ui-selected");j.selected=true}else{j.$element.removeClass("ui-selecting");j.selecting=false;if(j.startselected){j.$element.addClass("ui-unselecting");j.unselecting=true}c._trigger("unselecting",i,{unselecting:j.element})}}if(j.selected){if(!i.metaKey&&!j.startselected){j.$element.removeClass("ui-selected");j.selected=false;j.$element.addClass("ui-unselecting");j.unselecting=true;c._trigger("unselecting",i,{unselecting:j.element})}}}});return false},_mouseStop:function(d){var b=this;this.dragged=false;var c=this.options;a(".ui-unselecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;b._trigger("unselected",d,{unselected:e.element})});a(".ui-selecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;b._trigger("selected",d,{selected:e.element})});this._trigger("stop",d);this.helper.remove();return false}}));a.extend(a.ui.selectable,{version:"1.7.2",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);;/*
+ * jQuery UI Sortable 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Sortables
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function(a){a.widget("ui.sortable",a.extend({},a.ui.mouse,{_init:function(){var b=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("sortable-item")}},_mouseCapture:function(e,f){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(e);var d=null,c=this,b=a(e.target).parents().each(function(){if(a.data(this,"sortable-item")==c){d=a(this);return false}});if(a.data(e.target,"sortable-item")==c){d=a(e.target)}if(!d){return false}if(this.options.handle&&!f){var g=false;a(this.options.handle,d).find("*").andSelf().each(function(){if(this==e.target){g=true}});if(!g){return false}}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,b){var g=this.options,c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;if(g.cursorAt){this._adjustOffsetFromHelper(g.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(g.containment){this._setContainment()}if(g.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",g.cursor)}if(g.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",g.opacity)}if(g.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",g.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!b){for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("activate",e,c._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(e);return true},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,b=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-f.pageY<g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(f.pageY-this.overflowOffset.top<g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop-g.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-f.pageX<g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(f.pageX-this.overflowOffset.left<g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(f.pageY-a(document).scrollTop()<g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(f.pageY-a(document).scrollTop())<g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(f.pageX-a(document).scrollLeft()<g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(f.pageX-a(document).scrollLeft())<g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}if(b!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var d=this.items.length-1;d>=0;d--){var e=this.items[d],c=e.item[0],h=this._intersectsWithPointer(e);if(!h){continue}if(c!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=c&&!a.ui.contains(this.placeholder[0],c)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],c):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e)){this._rearrange(f,e)}else{break}this._trigger("change",f,this._uiHash());break}}this._contactContainers(f);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,f)}this._trigger("sort",f,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(!c){return}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)}if(this.options.revert){var b=this;var e=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else{this._clear(c,d)}return false},cancel:function(){var b=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,b._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,b._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(d){var b=this._getItemsAsjQuery(d&&d.connected);var c=[];d=d||{};a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||(/(.+)[-=_](.+)/));if(e){c.push((d.key||e[1]+"[]")+"="+(d.key&&d.expression?e[1]:e[2]))}});return c.join("&")},toArray:function(d){var b=this._getItemsAsjQuery(d&&d.connected);var c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||"id")||"")});return c},_intersectsWith:function(m){var e=this.positionAbs.left,d=e+this.helperProportions.width,k=this.positionAbs.top,j=k+this.helperProportions.height;var f=m.left,c=f+m.width,n=m.top,i=n+m.height;var o=this.offset.click.top,h=this.offset.click.left;var g=(k+o)>n&&(k+o)<i&&(e+h)>f&&(e+h)<c;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>m[this.floating?"width":"height"])){return g}else{return(f<e+(this.helperProportions.width/2)&&d-(this.helperProportions.width/2)<c&&n<k+(this.helperProportions.height/2)&&j-(this.helperProportions.height/2)<i)}},_intersectsWithPointer:function(d){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=e&&c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!g){return false}return this.floating?(((f&&f=="right")||b=="down")?2:1):(b&&(b=="down"?2:1))},_intersectsWithSides:function(e){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+(e.height/2),e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+(e.width/2),e.width),b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(this.floating&&f){return((f=="right"&&d)||(f=="left"&&!d))}else{return b&&((b=="down"&&c)||(b=="up"&&!c))}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions()},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var l=this;var g=[];var e=[];var h=this._connectWith();if(h&&b){for(var d=h.length-1;d>=0;d--){var k=a(h[d]);for(var c=k.length-1;c>=0;c--){var f=a.data(k[c],"sortable");if(f&&f!=this&&!f.options.disabled){e.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper"),f])}}}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var d=e.length-1;d>=0;d--){e[d][0].each(function(){g.push(this)})}return a(g)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(":data(sortable-item)");for(var c=0;c<this.items.length;c++){for(var b=0;b<d.length;b++){if(d[b]==this.items[c].item[0]){this.items.splice(c,1)}}}},_refreshItems:function(b){this.items=[];this.containers=[this];var h=this.items;var p=this;var f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];var l=this._connectWith();if(l){for(var e=l.length-1;e>=0;e--){var m=a(l[e]);for(var d=m.length-1;d>=0;d--){var g=a.data(m[d],"sortable");if(g&&g!=this&&!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element[0],b,{item:this.currentItem}):a(g.options.items,g.element),g]);this.containers.push(g)}}}}for(var e=f.length-1;e>=0;e--){var k=f[e][1];var c=f[e][0];for(var d=0,n=c.length;d<n;d++){var o=a(c[d]);o.data("sortable-item",k);h.push({item:o,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d>=0;d--){var e=this.items[d];if(e.instance!=this.currentContainer&&this.currentContainer&&e.item[0]!=this.currentItem[0]){continue}var c=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!b){e.width=c.outerWidth();e.height=c.outerHeight()}var f=c.offset();e.left=f.left;e.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d>=0;d--){var f=this.containers[d].element.offset();this.containers[d].containerCache.left=f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}},_createPlaceholder:function(d){var b=d||this,e=b.options;if(!e.placeholder||e.placeholder.constructor==String){var c=e.placeholder;e.placeholder={element:function(){var f=a(document.createElement(b.currentItem[0].nodeName)).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!c){f.style.visibility="hidden"}return f},update:function(f,g){if(c&&!e.forcePlaceholderSize){return}if(!g.height()){g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10))}if(!g.width()){g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=a(e.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);e.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var c=this.containers.length-1;c>=0;c--){if(this._intersectsWith(this.containers[c].containerCache)){if(!this.containers[c].containerCache.over){if(this.currentContainer!=this.containers[c]){var h=10000;var g=null;var e=this.positionAbs[this.containers[c].floating?"left":"top"];for(var b=this.items.length-1;b>=0;b--){if(!a.ui.contains(this.containers[c].element[0],this.items[b].item[0])){continue}var f=this.items[b][this.containers[c].floating?"left":"top"];if(Math.abs(f-e)<h){h=Math.abs(f-e);g=this.items[b]}}if(!g&&!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[c];g?this._rearrange(d,g,null,true):this._rearrange(d,null,this.containers[c].element,true);this._trigger("change",d,this._uiHash());this.containers[c]._trigger("change",d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[c]._trigger("over",d,this._uiHash(this));this.containers[c].containerCache.over=1}}else{if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",d,this._uiHash(this));this.containers[c].containerCache.over=0}}}},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):(d.helper=="clone"?this.currentItem.clone():this.currentItem);if(!b.parents("body").length){a(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])}if(b[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(b[0].style.width==""||d.forceHelperSize){b.width(this.currentItem.width())}if(b[0].style.height==""||d.forceHelperSize){b.height(this.currentItem.height())}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)){var c=a(e.containment)[0];var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_rearrange:function(g,f,c,e){c?c[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?f.item[0]:f.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var d=this,b=this.counter;window.setTimeout(function(){if(b==d.counter){d.refreshPositions(!e)}},0)},_clear:function(d,e){this.reverting=false;var f=[],b=this;if(!this._noFinalSort&&this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS){if(this._storedCSS[c]=="auto"||this._storedCSS[c]=="static"){this._storedCSS[c]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!e){f.push(function(g){this._trigger("receive",g,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!e){f.push(function(g){this._trigger("update",g,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!e){f.push(function(g){this._trigger("remove",g,this._uiHash())})}for(var c=this.containers.length-1;c>=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&&!e){f.push((function(g){return function(h){g._trigger("receive",h,this._uiHash(this))}}).call(this,this.containers[c]));f.push((function(g){return function(h){g._trigger("update",h,this._uiHash(this))}}).call(this,this.containers[c]))}}}for(var c=this.containers.length-1;c>=0;c--){if(!e){f.push((function(g){return function(h){g._trigger("deactivate",h,this._uiHash(this))}}).call(this,this.containers[c]))}if(this.containers[c].containerCache.over){f.push((function(g){return function(h){g._trigger("out",h,this._uiHash(this))}}).call(this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this._storedCursor){a("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",d,this._uiHash());for(var c=0;c<f.length;c++){f[c].call(this,d)}this._trigger("stop",d,this._uiHash())}return false}if(!e){this._trigger("beforeStop",d,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!e){for(var c=0;c<f.length;c++){f[c].call(this,d)}this._trigger("stop",d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}}));a.extend(a.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000}})})(jQuery);;/*
+ * jQuery UI Accordion 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Accordion
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(d.collapsible&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","")}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);;/*
+ * jQuery UI Dialog 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Dialog
+ *
+ * Depends:
+ *	ui.core.js
+ *	ui.draggable.js
+ *	ui.resizable.js
+ */
+(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog ui-widget ui-widget-content ui-corner-all ";c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var l=this,m=this.options,j=m.title||this.originalTitle||"&nbsp;",e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c("<div/>")).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:m.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){(m.closeOnEscape&&n.keyCode&&n.keyCode==c.ui.keyCode.ESCAPE&&l.close(n))}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k),f=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),i=c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon ui-icon-closethick").text(m.closeText).appendTo(i),d=c("<span/>").addClass("ui-dialog-title").attr("id",e).html(j).prependTo(f);f.find("*").add(f).disableSelection();(m.draggable&&c.fn.draggable&&this._makeDraggable());(m.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&&c.fn.bgiframe&&k.bgiframe());(m.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(f){var d=this;if(false===d._trigger("beforeclose",f)){return}(d.overlay&&d.overlay.destroy());d.uiDialog.unbind("keypress.ui-dialog");(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f)}):d.uiDialog.hide()&&d._trigger("close",f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(".ui-dialog").each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e)}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(":tabbable",this),i=g.filter(":first")[0],f=g.filter(":last")[0];if(h.target==f&&!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&&h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){e=f.height;c(this).height(c(this).height()).addClass("ui-dialog-dragging");(f.dragStart&&f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&&f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass("ui-dialog-dragging").height(e);(f.dragStop&&f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");(f.resizeStart&&f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&&f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();(f.resizeStop&&f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,["center","top","right","bottom","left"])>=0){i=[i=="right"||i=="left"?i:"center",i=="top"||i=="bottom"?i:"middle"]}if(i.constructor!=Array){i=["center","middle"]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case"left":d+=0;break;case"right":d+=e.width()-this.uiDialog.outerWidth();break;default:case"center":d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case"top":g+=0;break;case"bottom":g+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&&this.uiDialog.data(b[e],f));switch(e){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(f||"&nbsp;");break;case"width":this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height=="auto"?"auto":Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(".ui-dialog").css("zIndex")||0;return(g>c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==c.ui.keyCode.ESCAPE&&e.close(f))});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(e.options.bgiframe&&c.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e<d){return c(window).height()+"px"}else{return e+"px"}}else{return c(document).height()+"px"}},width:function(){if(c.browser.msie&&c.browser.version<7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d<e){return c(window).width()+"px"}else{return d+"px"}}else{return c(document).width()+"px"}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);;/*
+ * jQuery UI Slider 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Slider
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function(a){a.widget("ui.slider",a.extend({},a.ui.mouse,{_init:function(){var b=this,c=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=a([]);if(c.range){if(c.range===true){this.range=a("<div></div>");if(!c.values){c.values=[this._valueMin(),this._valueMin()]}if(c.values.length&&c.values.length!=2){c.values=[c.values[0],c.values[0]]}}else{this.range=a("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(c.range=="min"||c.range=="max"){this.range.addClass("ui-slider-range-"+c.range)}this.range.addClass("ui-widget-header")}if(a(".ui-slider-handle",this.element).length==0){a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}if(c.values&&c.values.length){while(a(".ui-slider-handle",this.element).length<c.values.length){a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle")}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(d){d.preventDefault()}).hover(function(){if(!c.disabled){a(this).addClass("ui-state-hover")}},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(!c.disabled){a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}else{a(this).blur()}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(d){a(this).data("index.ui-slider-handle",d)});this.handles.keydown(function(i){var f=true;var e=a(this).data("index.ui-slider-handle");if(b.options.disabled){return}switch(i.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:f=false;if(!b._keySliding){b._keySliding=true;a(this).addClass("ui-state-active");b._start(i,e)}break}var g,d,h=b._step();if(b.options.values&&b.options.values.length){g=d=b.values(e)}else{g=d=b.value()}switch(i.keyCode){case a.ui.keyCode.HOME:d=b._valueMin();break;case a.ui.keyCode.END:d=b._valueMax();break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(g==b._valueMax()){return}d=g+h;break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(g==b._valueMin()){return}d=g-h;break}b._slide(i,e,d);return f}).keyup(function(e){var d=a(this).data("index.ui-slider-handle");if(b._keySliding){b._stop(e,d);b._change(e,d);b._keySliding=false;a(this).removeClass("ui-state-active")}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(d){var e=this.options;if(e.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var h={x:d.pageX,y:d.pageY};var j=this._normValueFromMouse(h);var c=this._valueMax()-this._valueMin()+1,f;var k=this,i;this.handles.each(function(l){var m=Math.abs(j-k.values(l));if(c>m){c=m;f=a(this);i=l}});if(e.range==true&&this.values(1)==e.min){f=a(this.handles[++i])}this._start(d,i);k._handleIndex=i;f.addClass("ui-state-active").focus();var g=f.offset();var b=!a(d.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=b?{left:0,top:0}:{left:d.pageX-g.left-(f.width()/2),top:d.pageY-g.top-(f.height()/2)-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};j=this._normValueFromMouse(h);this._slide(d,i,j);return true},_mouseStart:function(b){return true},_mouseDrag:function(d){var b={x:d.pageX,y:d.pageY};var c=this._normValueFromMouse(b);this._slide(d,this._handleIndex,c);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var c,h;if("horizontal"==this.orientation){c=this.elementSize.width;h=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{c=this.elementSize.height;h=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var f=(h/c);if(f>1){f=1}if(f<0){f=0}if("vertical"==this.orientation){f=1-f}var e=this._valueMax()-this._valueMin(),i=f*e,b=i%this.options.step,g=this._valueMin()+i-b;if(b>(this.options.step/2)){g+=this.options.step}return parseFloat(g.toFixed(5))},_start:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("start",d,b)},_slide:function(f,e,d){var g=this.handles[e];if(this.options.values&&this.options.values.length){var b=this.values(e?0:1);if((this.options.values.length==2&&this.options.range===true)&&((e==0&&d>b)||(e==1&&d<b))){d=b}if(d!=this.values(e)){var c=this.values();c[e]=d;var h=this._trigger("slide",f,{handle:this.handles[e],value:d,values:c});var b=this.values(e?0:1);if(h!==false){this.values(e,d,(f.type=="mousedown"&&this.options.animate),true)}}}else{if(d!=this.value()){var h=this._trigger("slide",f,{handle:this.handles[e],value:d});if(h!==false){this._setData("value",d,(f.type=="mousedown"&&this.options.animate))}}}},_stop:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("stop",d,b)},_change:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("change",d,b)},value:function(b){if(arguments.length){this._setData("value",b);this._change(null,0)}return this._value()},values:function(b,e,c,d){if(arguments.length>1){this.options.values[b]=e;this._refreshValue(c);if(!d){this._change(null,b)}}if(arguments.length){if(this.options.values&&this.options.values.length){return this._values(b)}else{return this.value()}}else{return this._values()}},_setData:function(b,d,c){a.widget.prototype._setData.apply(this,arguments);switch(b){case"disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else{this.handles.removeAttr("disabled")}case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue(c);break;case"value":this._refreshValue(c);break}},_step:function(){var b=this.options.step;return b},_value:function(){var b=this.options.value;if(b<this._valueMin()){b=this._valueMin()}if(b>this._valueMax()){b=this._valueMax()}return b},_values:function(b){if(arguments.length){var c=this.options.values[b];if(c<this._valueMin()){c=this._valueMin()}if(c>this._valueMax()){c=this._valueMax()}return c}else{return this.options.values}},_valueMin:function(){var b=this.options.min;return b},_valueMax:function(){var b=this.options.max;return b},_refreshValue:function(c){var f=this.options.range,d=this.options,l=this;if(this.options.values&&this.options.values.length){var i,h;this.handles.each(function(p,n){var o=(l.values(p)-l._valueMin())/(l._valueMax()-l._valueMin())*100;var m={};m[l.orientation=="horizontal"?"left":"bottom"]=o+"%";a(this).stop(1,1)[c?"animate":"css"](m,d.animate);if(l.options.range===true){if(l.orientation=="horizontal"){(p==0)&&l.range.stop(1,1)[c?"animate":"css"]({left:o+"%"},d.animate);(p==1)&&l.range[c?"animate":"css"]({width:(o-lastValPercent)+"%"},{queue:false,duration:d.animate})}else{(p==0)&&l.range.stop(1,1)[c?"animate":"css"]({bottom:(o)+"%"},d.animate);(p==1)&&l.range[c?"animate":"css"]({height:(o-lastValPercent)+"%"},{queue:false,duration:d.animate})}}lastValPercent=o})}else{var j=this.value(),g=this._valueMin(),k=this._valueMax(),e=k!=g?(j-g)/(k-g)*100:0;var b={};b[l.orientation=="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[c?"animate":"css"](b,d.animate);(f=="min")&&(this.orientation=="horizontal")&&this.range.stop(1,1)[c?"animate":"css"]({width:e+"%"},d.animate);(f=="max")&&(this.orientation=="horizontal")&&this.range[c?"animate":"css"]({width:(100-e)+"%"},{queue:false,duration:d.animate});(f=="min")&&(this.orientation=="vertical")&&this.range.stop(1,1)[c?"animate":"css"]({height:e+"%"},d.animate);(f=="max")&&(this.orientation=="vertical")&&this.range[c?"animate":"css"]({height:(100-e)+"%"},{queue:false,duration:d.animate})}}}));a.extend(a.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);;/*
+ * jQuery UI Tabs 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Tabs
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function(a){a.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(b,c){if(b=="selected"){if(this.options.collapsible&&c==this.options.selected){return}this.select(c)}else{this.options[b]=c;if(b=="deselectable"){this.options.collapsible=c}this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b)},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(c,b){return{tab:c,panel:b,index:this.anchors.index(c)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(n){this.list=this.element.children("ul:first");this.lis=a("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);var p=this,d=this.options;var c=/^#.+/;this.anchors.each(function(r,o){var q=a(o).attr("href");var s=q.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||(u=a("base")[0])&&s===u.href)){q=o.hash;o.href=q}if(c.test(q)){p.panels=p.panels.add(p._sanitizeSelector(q))}else{if(q!="#"){a.data(o,"href.tabs",q);a.data(o,"load.tabs",q.replace(/#.*$/,""));var w=p._tabId(o);o.href="#"+w;var v=a("#"+w);if(!v.length){v=a(d.panelTemplate).attr("id",w).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(p.panels[r-1]||p.list);v.data("destroy.tabs",true)}p.panels=p.panels.add(v)}else{d.disabled.push(r)}}});if(n){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(d.selected===undefined){if(location.hash){this.anchors.each(function(q,o){if(o.hash==location.hash){d.selected=q;return false}})}if(typeof d.selected!="number"&&d.cookie){d.selected=parseInt(p._cookie(),10)}if(typeof d.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}d.selected=d.selected||0}else{if(d.selected===null){d.selected=-1}}d.selected=((d.selected>=0&&this.anchors[d.selected])||d.selected<0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(q,o){return p.lis.index(q)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(d.selected>=0&&this.anchors.length){this.panels.eq(d.selected).removeClass("ui-tabs-hide");this.lis.eq(d.selected).addClass("ui-tabs-selected ui-state-active");p.element.queue("tabs",function(){p._trigger("show",null,p._ui(p.anchors[d.selected],p.panels[d.selected]))});this.load(d.selected)}a(window).bind("unload",function(){p.lis.add(p.anchors).unbind(".tabs");p.lis=p.anchors=p.panels=null})}else{d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[d.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(d.cookie){this._cookie(d.selected,d.cookie)}for(var g=0,m;(m=this.lis[g]);g++){a(m)[a.inArray(g,d.disabled)!=-1&&!a(m).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(d.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(d.event!="mouseover"){var f=function(o,i){if(i.is(":not(.ui-state-disabled)")){i.addClass("ui-state-"+o)}};var j=function(o,i){i.removeClass("ui-state-"+o)};this.lis.bind("mouseover.tabs",function(){f("hover",a(this))});this.lis.bind("mouseout.tabs",function(){j("hover",a(this))});this.anchors.bind("focus.tabs",function(){f("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var b,h;if(d.fx){if(a.isArray(d.fx)){b=d.fx[0];h=d.fx[1]}else{b=h=d.fx}}function e(i,o){i.css({display:""});if(a.browser.msie&&o.opacity){i[0].style.removeAttribute("filter")}}var k=h?function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.hide().removeClass("ui-tabs-hide").animate(h,h.duration||"normal",function(){e(o,h);p._trigger("show",null,p._ui(i,o[0]))})}:function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.removeClass("ui-tabs-hide");p._trigger("show",null,p._ui(i,o[0]))};var l=b?function(o,i){i.animate(b,b.duration||"normal",function(){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");e(i,b);p.element.dequeue("tabs")})}:function(o,i,q){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");p.element.dequeue("tabs")};this.anchors.bind(d.event+".tabs",function(){var o=this,r=a(this).closest("li"),i=p.panels.filter(":not(.ui-tabs-hide)"),q=a(p._sanitizeSelector(this.hash));if((r.hasClass("ui-tabs-selected")&&!d.collapsible)||r.hasClass("ui-state-disabled")||r.hasClass("ui-state-processing")||p._trigger("select",null,p._ui(this,q[0]))===false){this.blur();return false}d.selected=p.anchors.index(this);p.abort();if(d.collapsible){if(r.hasClass("ui-tabs-selected")){d.selected=-1;if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue("tabs",function(){l(o,i)}).dequeue("tabs");this.blur();return false}else{if(!i.length){if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue("tabs",function(){k(o,q)});p.load(p.anchors.index(this));this.blur();return false}}}if(d.cookie){p._cookie(d.selected,d.cookie)}if(q.length){if(i.length){p.element.queue("tabs",function(){l(o,i)})}p.element.queue("tabs",function(){k(o,q)});p.load(p.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(a.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var c=a.data(this,"href.tabs");if(c){this.href=c}var d=a(this).unbind(".tabs");a.each(["href","load","cache"],function(e,f){d.removeData(f+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(a.data(this,"destroy.tabs")){a(this).remove()}else{a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(b.cookie){this._cookie(null,b.cookie)}},add:function(e,d,c){if(c===undefined){c=this.anchors.length}var b=this,g=this.options,i=a(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d)),h=!e.indexOf("#")?e.replace("#",""):this._tabId(a("a",i)[0]);i.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var f=a("#"+h);if(!f.length){f=a(g.panelTemplate).attr("id",h).data("destroy.tabs",true)}f.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(c>=this.lis.length){i.appendTo(this.list);f.appendTo(this.list[0].parentNode)}else{i.insertBefore(this.lis[c]);f.insertBefore(this.panels[c])}g.disabled=a.map(g.disabled,function(k,j){return k>=c?++k:k});this._tabify();if(this.anchors.length==1){i.addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[c],this.panels[c]))},remove:function(b){var d=this.options,e=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();if(e.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(b+(b+1<this.anchors.length?1:-1))}d.disabled=a.map(a.grep(d.disabled,function(g,f){return g!=b}),function(g,f){return g>=b?--g:g});this._tabify();this._trigger("remove",null,this._ui(e.find("a")[0],c[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}this.lis.eq(b).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(e,d){return e!=b});this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]))},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.lis.eq(c).addClass("ui-state-disabled");d.disabled.push(c);d.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[c],this.panels[c]))}},select:function(b){if(typeof b=="string"){b=this.anchors.index(this.anchors.filter("[href$="+b+"]"))}else{if(b===null){b=-1}}if(b==-1&&this.options.collapsible){b=this.options.selected}this.anchors.eq(b).trigger(this.options.event+".tabs")},load:function(e){var c=this,g=this.options,b=this.anchors.eq(e)[0],d=a.data(b,"load.tabs");this.abort();if(!d||this.element.queue("tabs").length!==0&&a.data(b,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(e).addClass("ui-state-processing");if(g.spinner){var f=a("span",b);f.data("label.tabs",f.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:d,success:function(i,h){a(c._sanitizeSelector(b.hash)).html(i);c._cleanup();if(g.cache){a.data(b,"cache.tabs",true)}c._trigger("load",null,c._ui(c.anchors[e],c.panels[e]));try{g.ajaxOptions.success(i,h)}catch(j){}c.element.dequeue("tabs")}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(c,b){this.anchors.eq(c).removeData("cache.tabs").data("load.tabs",b)},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.7.2",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,f){var b=this,g=this.options;var c=b._rotate||(b._rotate=function(h){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var i=g.selected;b.select(++i<b.anchors.length?i:0)},d);if(h){h.stopPropagation()}});var e=b._unrotate||(b._unrotate=!f?function(h){if(h.clientX){b.rotate(null)}}:function(h){t=g.selected;c()});if(d){this.element.bind("tabsshow",c);this.anchors.bind(g.event+".tabs",e);c()}else{clearTimeout(b.rotation);this.element.unbind("tabsshow",c);this.anchors.unbind(g.event+".tabs",e);delete this._rotate;delete this._unrotate}}})})(jQuery);;/*
+ * jQuery UI Datepicker 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Datepicker
+ *
+ * Depends:
+ *	ui.core.js
+ */
+(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker(null)}var date=this._getDateDatepicker(target);extendRemove(inst.settings,settings);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:var sel=$("td."+$.datepicker._dayOverClass+", td."+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match=="@"?14:(match=="y"?4:(match=="o"?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,"dateFormat");var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+="first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+="last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+="middle";cornerClass="";break}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span> "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?"&#xa0;":"")}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$})(jQuery);;/*
+ * jQuery UI Progressbar 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Progressbar
+ *
+ * Depends:
+ *   ui.core.js
+ */
+(function(a){a.widget("ui.progressbar",{_init:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a('<div class="ui-progressbar-value ui-widget-header ui-corner-left"></div>').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow").removeData("progressbar").unbind(".progressbar");this.valueDiv.remove();a.widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===undefined){return this._value()}this._setData("value",b);return this},_setData:function(b,c){switch(b){case"value":this.options.value=c;this._refreshValue();this._trigger("change",null,{});break}a.widget.prototype._setData.apply(this,arguments)},_value:function(){var b=this.options.value;if(b<this._valueMin()){b=this._valueMin()}if(b>this._valueMax()){b=this._valueMax()}return b},_valueMin:function(){var b=0;return b},_valueMax:function(){var b=100;return b},_refreshValue:function(){var b=this.value();this.valueDiv[b==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(b+"%");this.element.attr("aria-valuenow",b)}});a.extend(a.ui.progressbar,{version:"1.7.2",defaults:{value:0}})})(jQuery);;/*
+ * jQuery UI Effects 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/
+ */
+jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var i,f;switch(g[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:i}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return -j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return -j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return -j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return -j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return -j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return -j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return -j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return -j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return -(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+f},easeInOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return -0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+f},easeInBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*(h/=j)*h*((i+1)*h-i)+f},easeOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*((h=h/j-1)*h*((i+1)*h+i)+1)+f},easeInOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}if((h/=j/2)<1){return k/2*(h*h*(((i*=(1.525))+1)*h-i))+f}return k/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+f},easeInBounce:function(g,h,f,j,i){return j-d.easing.easeOutBounce(g,i-h,0,j,i)+f},easeOutBounce:function(g,h,f,j,i){if((h/=i)<(1/2.75)){return j*(7.5625*h*h)+f}else{if(h<(2/2.75)){return j*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return j*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return j*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,j,i){if(h<i/2){return d.easing.easeInBounce(g,h*2,0,j,i)*0.5+f}return d.easing.easeOutBounce(g,h*2-i,0,j,i)*0.5+j*0.5+f}})})(jQuery);;/*
+ * jQuery UI Effects Blind 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Blind
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.blind=function(b){return this.queue(function(){var d=a(this),c=["position","top","left"];var h=a.effects.setMode(d,b.options.mode||"hide");var g=b.options.direction||"vertical";a.effects.save(d,c);d.show();var j=a.effects.createWrapper(d).css({overflow:"hidden"});var e=(g=="vertical")?"height":"width";var i=(g=="vertical")?j.height():j.width();if(h=="show"){j.css(e,0)}var f={};f[e]=h=="show"?i:0;j.animate(f,b.duration,b.options.easing,function(){if(h=="hide"){d.hide()}a.effects.restore(d,c);a.effects.removeWrapper(d);if(b.callback){b.callback.apply(d[0],arguments)}d.dequeue()})})}})(jQuery);;/*
+ * jQuery UI Effects Bounce 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Bounce
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.bounce=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"up";var c=b.options.distance||20;var d=b.options.times||5;var g=b.duration||250;if(/show|hide/.test(k)){l.push("opacity")}a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var c=b.options.distance||(f=="top"?e.outerHeight({margin:true})/3:e.outerWidth({margin:true})/3);if(k=="show"){e.css("opacity",0).css(f,p=="pos"?-c:c)}if(k=="hide"){c=c/(d*2)}if(k!="hide"){d--}if(k=="show"){var h={opacity:1};h[f]=(p=="pos"?"+=":"-=")+c;e.animate(h,g/2,b.options.easing);c=c/2;d--}for(var j=0;j<d;j++){var o={},m={};o[f]=(p=="pos"?"-=":"+=")+c;m[f]=(p=="pos"?"+=":"-=")+c;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing);c=(k=="hide")?c*2:c/2}if(k=="hide"){var h={opacity:0};h[f]=(p=="pos"?"-=":"+=")+c;e.animate(h,g/2,b.options.easing,function(){e.hide();a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}else{var o={},m={};o[f]=(p=="pos"?"-=":"+=")+c;m[f]=(p=="pos"?"+=":"-=")+c;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);;/*
+ * jQuery UI Effects Clip 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Clip
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.clip=function(b){return this.queue(function(){var f=a(this),j=["position","top","left","height","width"];var i=a.effects.setMode(f,b.options.mode||"hide");var k=b.options.direction||"vertical";a.effects.save(f,j);f.show();var c=a.effects.createWrapper(f).css({overflow:"hidden"});var e=f[0].tagName=="IMG"?c:f;var g={size:(k=="vertical")?"height":"width",position:(k=="vertical")?"top":"left"};var d=(k=="vertical")?e.height():e.width();if(i=="show"){e.css(g.size,0);e.css(g.position,d/2)}var h={};h[g.size]=i=="show"?d:0;h[g.position]=i=="show"?0:d/2;e.animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){f.hide()}a.effects.restore(f,j);a.effects.removeWrapper(f);if(b.callback){b.callback.apply(f[0],arguments)}f.dequeue()}})})}})(jQuery);;/*
+ * jQuery UI Effects Drop 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Drop
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.drop=function(b){return this.queue(function(){var e=a(this),d=["position","top","left","opacity"];var i=a.effects.setMode(e,b.options.mode||"hide");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e);var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true})/2:e.outerWidth({margin:true})/2);if(i=="show"){e.css("opacity",0).css(f,c=="pos"?-j:j)}var g={opacity:i=="show"?1:0};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
+ * jQuery UI Effects Explode 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Explode
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.explode=function(b){return this.queue(function(){var k=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;var e=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?(a(this).is(":visible")?"hide":"show"):b.options.mode;var h=a(this).show().css("visibility","hidden");var l=h.offset();l.top-=parseInt(h.css("marginTop"),10)||0;l.left-=parseInt(h.css("marginLeft"),10)||0;var g=h.outerWidth(true);var c=h.outerHeight(true);for(var f=0;f<k;f++){for(var d=0;d<e;d++){h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-d*(g/e),top:-f*(c/k)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:c/k,left:l.left+d*(g/e)+(b.options.mode=="show"?(d-Math.floor(e/2))*(g/e):0),top:l.top+f*(c/k)+(b.options.mode=="show"?(f-Math.floor(k/2))*(c/k):0),opacity:b.options.mode=="show"?0:1}).animate({left:l.left+d*(g/e)+(b.options.mode=="show"?0:(d-Math.floor(e/2))*(g/e)),top:l.top+f*(c/k)+(b.options.mode=="show"?0:(f-Math.floor(k/2))*(c/k)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?h.css({visibility:"visible"}):h.css({visibility:"visible"}).hide();if(b.callback){b.callback.apply(h[0])}h.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);;/*
+ * jQuery UI Effects Fold 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Fold
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.fold=function(b){return this.queue(function(){var e=a(this),k=["position","top","left"];var h=a.effects.setMode(e,b.options.mode||"hide");var o=b.options.size||15;var n=!(!b.options.horizFirst);var g=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(e,k);e.show();var d=a.effects.createWrapper(e).css({overflow:"hidden"});var i=((h=="show")!=n);var f=i?["width","height"]:["height","width"];var c=i?[d.width(),d.height()]:[d.height(),d.width()];var j=/([0-9]+)%/.exec(o);if(j){o=parseInt(j[1],10)/100*c[h=="hide"?0:1]}if(h=="show"){d.css(n?{height:0,width:o}:{height:o,width:0})}var m={},l={};m[f[0]]=h=="show"?c[0]:o;l[f[1]]=h=="show"?c[1]:0;d.animate(m,g,b.options.easing).animate(l,g,b.options.easing,function(){if(h=="hide"){e.hide()}a.effects.restore(e,k);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(e[0],arguments)}e.dequeue()})})}})(jQuery);;/*
+ * jQuery UI Effects Highlight 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Highlight
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.highlight=function(b){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"];var h=a.effects.setMode(e,b.options.mode||"show");var c=b.options.color||"#ffff99";var g=e.css("backgroundColor");a.effects.save(e,d);e.show();e.css({backgroundImage:"none",backgroundColor:c});var f={backgroundColor:g};if(h=="hide"){f.opacity=0}e.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){e.hide()}a.effects.restore(e,d);if(h=="show"&&a.browser.msie){this.style.removeAttribute("filter")}if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
+ * jQuery UI Effects Pulsate 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Pulsate
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this);var g=a.effects.setMode(d,b.options.mode||"show");var f=b.options.times||5;var e=b.duration?b.duration/2:a.fx.speeds._default/2;if(g=="hide"){f--}if(d.is(":hidden")){d.css("opacity",0);d.show();d.animate({opacity:1},e,b.options.easing);f=f-2}for(var c=0;c<f;c++){d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing)}if(g=="hide"){d.animate({opacity:0},e,b.options.easing,function(){d.hide();if(b.callback){b.callback.apply(this,arguments)}})}else{d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing,function(){if(b.callback){b.callback.apply(this,arguments)}})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);;/*
+ * jQuery UI Effects Scale 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Scale
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.puff=function(b){return this.queue(function(){var f=a(this);var c=a.extend(true,{},b.options);var h=a.effects.setMode(f,b.options.mode||"hide");var g=parseInt(b.options.percent,10)||150;c.fade=true;var e={height:f.height(),width:f.width()};var d=g/100;f.from=(h=="hide")?e:{height:e.height*d,width:e.width*d};c.from=f.from;c.percent=(h=="hide")?g:100;c.mode=h;f.effect("scale",c,b.duration,b.callback);f.dequeue()})};a.effects.scale=function(b){return this.queue(function(){var g=a(this);var d=a.extend(true,{},b.options);var j=a.effects.setMode(g,b.options.mode||"effect");var h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:(j=="hide"?0:100));var i=b.options.direction||"both";var c=b.options.origin;if(j!="effect"){d.origin=c||["middle","center"];d.restore=true}var f={height:g.height(),width:g.width()};g.from=b.options.from||(j=="show"?{height:0,width:0}:f);var e={y:i!="horizontal"?(h/100):1,x:i!="vertical"?(h/100):1};g.to={height:f.height*e.y,width:f.width*e.x};if(b.options.fade){if(j=="show"){g.from.opacity=0;g.to.opacity=1}if(j=="hide"){g.from.opacity=1;g.to.opacity=0}}d.from=g.from;d.to=g.to;d.mode=j;g.effect("size",d,b.duration,b.callback);g.dequeue()})};a.effects.size=function(b){return this.queue(function(){var c=a(this),n=["position","top","left","width","height","overflow","opacity"];var m=["position","top","left","overflow","opacity"];var j=["width","height","overflow"];var p=["fontSize"];var k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var f=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var g=a.effects.setMode(c,b.options.mode||"effect");var i=b.options.restore||false;var e=b.options.scale||"both";var o=b.options.origin;var d={height:c.height(),width:c.width()};c.from=b.options.from||d;c.to=b.options.to||d;if(o){var h=a.effects.getBaseline(o,d);c.from.top=(d.height-c.from.height)*h.y;c.from.left=(d.width-c.from.width)*h.x;c.to.top=(d.height-c.to.height)*h.y;c.to.left=(d.width-c.to.width)*h.x}var l={from:{y:c.from.height/d.height,x:c.from.width/d.width},to:{y:c.to.height/d.height,x:c.to.width/d.width}};if(e=="box"||e=="both"){if(l.from.y!=l.to.y){n=n.concat(k);c.from=a.effects.setTransition(c,k,l.from.y,c.from);c.to=a.effects.setTransition(c,k,l.to.y,c.to)}if(l.from.x!=l.to.x){n=n.concat(f);c.from=a.effects.setTransition(c,f,l.from.x,c.from);c.to=a.effects.setTransition(c,f,l.to.x,c.to)}}if(e=="content"||e=="both"){if(l.from.y!=l.to.y){n=n.concat(p);c.from=a.effects.setTransition(c,p,l.from.y,c.from);c.to=a.effects.setTransition(c,p,l.to.y,c.to)}}a.effects.save(c,i?n:m);c.show();a.effects.createWrapper(c);c.css("overflow","hidden").css(c.from);if(e=="content"||e=="both"){k=k.concat(["marginTop","marginBottom"]).concat(p);f=f.concat(["marginLeft","marginRight"]);j=n.concat(k).concat(f);c.find("*[width]").each(function(){child=a(this);if(i){a.effects.save(child,j)}var q={height:child.height(),width:child.width()};child.from={height:q.height*l.from.y,width:q.width*l.from.x};child.to={height:q.height*l.to.y,width:q.width*l.to.x};if(l.from.y!=l.to.y){child.from=a.effects.setTransition(child,k,l.from.y,child.from);child.to=a.effects.setTransition(child,k,l.to.y,child.to)}if(l.from.x!=l.to.x){child.from=a.effects.setTransition(child,f,l.from.x,child.from);child.to=a.effects.setTransition(child,f,l.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){if(i){a.effects.restore(child,j)}})})}c.animate(c.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(g=="hide"){c.hide()}a.effects.restore(c,i?n:m);a.effects.removeWrapper(c);if(b.callback){b.callback.apply(this,arguments)}c.dequeue()}})})}})(jQuery);;/*
+ * jQuery UI Effects Shake 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Shake
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.shake=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"left";var c=b.options.distance||20;var d=b.options.times||3;var g=b.duration||b.options.duration||140;a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var h={},o={},m={};h[f]=(p=="pos"?"-=":"+=")+c;o[f]=(p=="pos"?"+=":"-=")+c*2;m[f]=(p=="pos"?"-=":"+=")+c*2;e.animate(h,g,b.options.easing);for(var j=1;j<d;j++){e.animate(o,g,b.options.easing).animate(m,g,b.options.easing)}e.animate(o,g,b.options.easing).animate(h,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}});e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);;/*
+ * jQuery UI Effects Slide 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Slide
+ *
+ * Depends:
+ *	effects.core.js
+ */
+(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var i=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(i=="show"){e.css(f,c=="pos"?-j:j)}var g={};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/*
+ * jQuery UI Effects Transfer 1.7.2
+ *
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Transfer
+ *
+ * Depends:
+ *	effects.core.js
+ */
 (function(a){a.effects.transfer=function(b){return this.queue(function(){var f=a(this),h=a(b.options.to),e=h.offset(),g={top:e.top,left:e.left,height:h.innerHeight(),width:h.innerWidth()},d=f.offset(),c=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:d.top,left:d.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(g,b.duration,b.options.easing,function(){c.remove();(b.callback&&b.callback.apply(f[0],arguments));f.dequeue()})})}})(jQuery);;
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/IRI-Theme/lib/zip.lib.php	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,188 @@
+<?php
+/* $Id: zip.lib.php,v 2.4 2004/11/03 13:56:52 garvinhicking Exp $ */
+// vim: expandtab sw=4 ts=4 sts=4:
+
+
+/**
+ * Zip file creation class.
+ * Makes zip files.
+ *
+ * Based on :
+ *
+ *  http://www.zend.com/codex.php?id=535&single=1
+ *  By Eric Mueller <eric@themepark.com>
+ *
+ *  http://www.zend.com/codex.php?id=470&single=1
+ *  by Denis125 <webmaster@atlant.ru>
+ *
+ *  a patch from Peter Listiak <mlady@users.sourceforge.net> for last modified
+ *  date and time of the compressed file
+ *
+ * Official ZIP file format: http://www.pkware.com/appnote.txt
+ *
+ * @access  public
+ */
+class zipfile
+{
+    /**
+     * Array to store compressed data
+     *
+     * @var  array    $datasec
+     */
+    var $datasec      = array();
+
+    /**
+     * Central directory
+     *
+     * @var  array    $ctrl_dir
+     */
+    var $ctrl_dir     = array();
+
+    /**
+     * End of central directory record
+     *
+     * @var  string   $eof_ctrl_dir
+     */
+    var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
+
+    /**
+     * Last offset position
+     *
+     * @var  integer  $old_offset
+     */
+    var $old_offset   = 0;
+
+
+    /**
+     * Converts an Unix timestamp to a four byte DOS date and time format (date
+     * in high two bytes, time in low two bytes allowing magnitude comparison).
+     *
+     * @param  integer  the current Unix timestamp
+     *
+     * @return integer  the current date in a four byte DOS format
+     *
+     * @access private
+     */
+    function unix2DosTime($unixtime = 0) {
+        $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);
+
+        if ($timearray['year'] < 1980) {
+            $timearray['year']    = 1980;
+            $timearray['mon']     = 1;
+            $timearray['mday']    = 1;
+            $timearray['hours']   = 0;
+            $timearray['minutes'] = 0;
+            $timearray['seconds'] = 0;
+        } // end if
+
+        return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) |
+                ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);
+    } // end of the 'unix2DosTime()' method
+
+
+    /**
+     * Adds "file" to archive
+     *
+     * @param  string   file contents
+     * @param  string   name of the file in the archive (may contains the path)
+     * @param  integer  the current timestamp
+     *
+     * @access public
+     */
+    function addFile($data, $name, $time = 0)
+    {
+        $name     = str_replace('\\', '/', $name);
+
+        $dtime    = dechex($this->unix2DosTime($time));
+        $hexdtime = '\x' . $dtime[6] . $dtime[7]
+                  . '\x' . $dtime[4] . $dtime[5]
+                  . '\x' . $dtime[2] . $dtime[3]
+                  . '\x' . $dtime[0] . $dtime[1];
+        eval('$hexdtime = "' . $hexdtime . '";');
+
+        $fr   = "\x50\x4b\x03\x04";
+        $fr   .= "\x14\x00";            // ver needed to extract
+        $fr   .= "\x00\x00";            // gen purpose bit flag
+        $fr   .= "\x08\x00";            // compression method
+        $fr   .= $hexdtime;             // last mod time and date
+
+        // "local file header" segment
+        $unc_len = strlen($data);
+        $crc     = crc32($data);
+        $zdata   = gzcompress($data);
+        $zdata   = substr(substr($zdata, 0, strlen($zdata) - 4), 2); // fix crc bug
+        $c_len   = strlen($zdata);
+        $fr      .= pack('V', $crc);             // crc32
+        $fr      .= pack('V', $c_len);           // compressed filesize
+        $fr      .= pack('V', $unc_len);         // uncompressed filesize
+        $fr      .= pack('v', strlen($name));    // length of filename
+        $fr      .= pack('v', 0);                // extra field length
+        $fr      .= $name;
+
+        // "file data" segment
+        $fr .= $zdata;
+
+        // "data descriptor" segment (optional but necessary if archive is not
+        // served as file)
+        // nijel(2004-10-19): this seems not to be needed at all and causes
+        // problems in some cases (bug #1037737)
+        //$fr .= pack('V', $crc);                 // crc32
+        //$fr .= pack('V', $c_len);               // compressed filesize
+        //$fr .= pack('V', $unc_len);             // uncompressed filesize
+
+        // add this entry to array
+        $this -> datasec[] = $fr;
+
+        // now add to central directory record
+        $cdrec = "\x50\x4b\x01\x02";
+        $cdrec .= "\x00\x00";                // version made by
+        $cdrec .= "\x14\x00";                // version needed to extract
+        $cdrec .= "\x00\x00";                // gen purpose bit flag
+        $cdrec .= "\x08\x00";                // compression method
+        $cdrec .= $hexdtime;                 // last mod time & date
+        $cdrec .= pack('V', $crc);           // crc32
+        $cdrec .= pack('V', $c_len);         // compressed filesize
+        $cdrec .= pack('V', $unc_len);       // uncompressed filesize
+        $cdrec .= pack('v', strlen($name) ); // length of filename
+        $cdrec .= pack('v', 0 );             // extra field length
+        $cdrec .= pack('v', 0 );             // file comment length
+        $cdrec .= pack('v', 0 );             // disk number start
+        $cdrec .= pack('v', 0 );             // internal file attributes
+        $cdrec .= pack('V', 32 );            // external file attributes - 'archive' bit set
+
+        $cdrec .= pack('V', $this -> old_offset ); // relative offset of local header
+        $this -> old_offset += strlen($fr);
+
+        $cdrec .= $name;
+
+        // optional extra field, file comment goes here
+        // save to central directory
+        $this -> ctrl_dir[] = $cdrec;
+    } // end of the 'addFile()' method
+
+
+    /**
+     * Dumps out file
+     *
+     * @return  string  the zipped file
+     *
+     * @access public
+     */
+    function file()
+    {
+        $data    = implode('', $this -> datasec);
+        $ctrldir = implode('', $this -> ctrl_dir);
+
+        return
+            $data .
+            $ctrldir .
+            $this -> eof_ctrl_dir .
+            pack('v', sizeof($this -> ctrl_dir)) .  // total # of entries "on this disk"
+            pack('v', sizeof($this -> ctrl_dir)) .  // total # of entries overall
+            pack('V', strlen($ctrldir)) .           // size of central dir
+            pack('V', strlen($data)) .              // offset to start of central dir
+            "\x00\x00";                             // .zip file comment length
+    } // end of the 'file()' method
+
+} // end of the 'zipfile' class
+?>
Binary file web/wp-content/themes/IRI-Theme/player/player.swf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/IRI-Theme/player/swfobject.js	Mon Feb 01 09:51:57 2010 +0000
@@ -0,0 +1,8 @@
+/**
+ * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
+ *
+ * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ */
+if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
\ No newline at end of file
--- a/web/wp-content/themes/IRI-Theme/post.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/post.php	Mon Feb 01 09:51:57 2010 +0000
@@ -1,6 +1,6 @@
 	<!-- POST --> 
 	<div class="post" id="post-<?php the_ID(); ?>">
-		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
+		<h2><a href="<?php the_permalink() ?>" rel="bookmark" ><?php the_title(); ?></a></h2>
 		<p class="small">
 			<?php the_time('j, F Y') ?> &nbsp;|&nbsp; 
 			<?php echo(__("Published")." : "); ?>
@@ -17,6 +17,7 @@
 			?>
 		</p>
 		<div class="entry">
-			<?php the_excerpt(__("(more...)")); ?>
+			<p><?php the_excerpt_rss(); ?></p>
+			<a class="more" href="<?php the_permalink() ?>" title="<?php the_title(); ?>">Lire la suite de l'article</a>
 		</div>
 	</div>
--- a/web/wp-content/themes/IRI-Theme/search.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/search.php	Mon Feb 01 09:51:57 2010 +0000
@@ -1,27 +1,202 @@
 <?php get_header(); ?>
 		<div class="column span-17 colborder first" id="maincontent">
 			<div class="content">
-	<?php if (have_posts()) : ?>
-		<h2 class="pagetitle"><?php echo(str_replace("%s", $s,__("Search results for &#8220;%s&#8221;"))); ?></h2>
-		<!-- -->
+	<!--  -->
+	<?php 
+		$search_text = utf8_decode(stripslashes($_GET['s']));
+
+		if (isset($_GET['engine'])){
+			$engine = $_GET['engine'];
+
+			if ($engine=="0") {
+				
+
+			} else if ($engine=="1") {
+
+				$title = str_replace("%s", $search_text,__("Search results for &#8220;%s&#8221;"));
+				
+				echo ("
+					<h2 class='pagetitle'>".$title ."</h2><br/>
+					<!-- Google Custom Search Element -->
+						<div id=\"cse\" style=\"width:100%;\">Loading</div>
+						<script src=\"http://www.google.com/jsapi\" type=\"text/javascript\"></script>
+						<script type=\"text/javascript\">
+						  google.load('search', '1');
+												
+						  google.setOnLoadCallback(function(){
+							var cse = new google.search.CustomSearchControl('015480955628162126762:skh3unbz0s8');
+							cse.setNoResultsString('Aucun r&eacute;sultat pour cette requ&egrave;te, essayer avec les autres moteurs.');
+							cse.draw('cse');
+							cse.setLinkTarget(GSearch.LINK_TARGET_BLANK);
+							cse.execute('".utf8_encode(addslashes($s))."');
+						  }, true);
+						  
+					  </script>	");
+					  
+			} else if ($engine=="2") {
+				
+			} else if ($engine=="3") {
+				
+			} else {
+				
+			}
+		}else {
+			$engine="0";
+		}
+		//echo ("========== ".$engine);
+	?>
+	
+	<!-- LIGNE DE TEMPS / ENMI :: RESEARCH -->
+	<?php if ($engine=="2") : ?>
+				<h2 class='pagetitle'><?php echo(str_replace("%s", $search_text,__("Rechercher dans les annotations des ENMI &#8220;%s&#8221;"))); ?></h2>
+				<script src="http://amateur.iri.centrepompidou.fr/nouveaumonde/static/js/jquery.DOMWindow.js" type="text/javascript">
+				</script>
+				<script type="text/javascript">// <![CDATA[
+					function launch_search($) {
+						$.openDOMWindow({
+							height:662, 
+							width:1022, 
+							windowSource:'iframe',
+							windowSourceURL: 'http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/conf/search/loading/',
+							windowHTTPType:'get',
+							windowPadding:5,
+							windowBGColor: 'rgb(239, 239, 239)',
+							loader:1, 
+							loaderImagePath:'http://amateur.iri.centrepompidou.fr/nouveaumonde/static/img/loadingAnimation.gif', 
+							loaderHeight:13, 
+							loaderWidth:208,
+							windowOverflow:'hidden'
+							});
+					$("#search_form").attr("target",$("#DOMWindowIframe").attr("name"));
+				}
+				jQuery(document).ready(function($) {
+					$('#search_form').bind('submit', function(e) {
+							$('#search_ts').val(e.timeStamp);
+							$(this).attr("action","http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/ldt/search/?"+e.timeStamp);
+							launch_search($);
+						});
+					<?php 
+						if ($search_text!=""){
+							echo ("$(\"#search_form\").submit();");
+						}
+					?>
+						
+				  });
+				// ]]></script>
+				<div class="box">
+					<div>
+						<div id="search">
+							
+							<h6>Rechercher dans les anotations des Entretiens du nouveau monde industriel :<h6>
+							
+							<form id="search_form" action="http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/ldt/search/" method="post">
+								
+								<input name="edition" type="hidden" value="all" /> <input id="search_ts" name="ts" type="hidden" />
+								<input id="s" name="search" type="text" value="<?php echo($search_text); ?>" style="width:250px;"/>
+								<select id="id_type" name="type"  style="width:100px;">
+									<option value="all">tous</option>
+									<option value="project">Contribution</option>
+									<option value="content">contenu</option> 
+								</select>
+								<select id="id_field" name="field"  style="width:100px;">
+									<option value="all">tous</option>
+									<option value="title">titre</option>
+									<option value="abstract">résumé</option>
+									<option value="tags">tags</option>
+								</select>
+								<input type="submit" value="recherche" />
+
+							</form>
+										
+						</div>
+						<br/><br/>
+						<hr/>
+						<div id="msg"> 
+							Retrouvez l'ensemble des contenus et annotations et participez &agrave; l'annotation collaborative sur le site des Entretien &agrave; l'adresse suivante :<br/>
+							<a href="http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/conf/program/2009_2" target="_blank">http://amateur.iri.centrepompidou.fr/nouveaumonde/enmi/conf/program/2009_2</a>
+						</div>
+						<div class="cleaner"> &nbsp;</div>
+					</div>
+				</div>
+	<?php endif; ?>
+	
+	<!-- LIGNE DE TEMPS / AMATEURS :: SEMINAIRES -->
+	<?php if ($engine=="3") : ?>
+				<h2 class='pagetitle'><?php echo(str_replace("%s", $search_text,__("Rechercher dans les annotations des s&eacute;minaires &#8220;%s&#8221;"))); ?></h2>
+				<script src="http://amateur.iri.centrepompidou.fr/nouveaumonde/static/js/jquery.DOMWindow.js" type="text/javascript">
+				</script>
+				<script type="text/javascript">// <![CDATA[
+					function launch_search($) {
+						$.openDOMWindow({
+							height:662, 
+							width:1022, 
+							windowSource:'iframe',
+							windowSourceURL: 'http://web.iri.centrepompidou.fr/fonds/ldt/index/seminaire/__post__',
+							windowHTTPType:'post',
+							windowPadding:5,
+							windowBGColor: 'rgb(239, 239, 239)',
+							loader:1, 
+							loaderImagePath:'http://amateur.iri.centrepompidou.fr/nouveaumonde/static/img/loadingAnimation.gif', 
+							loaderHeight:13, 
+							loaderWidth:208,
+							windowOverflow:'hidden'
+							});
+					$("#search_form").attr("target",$("#DOMWindowIframe").attr("name"));
+				}
+				jQuery(document).ready(function($) {
+					$('#search_form').bind('submit', function(e) {
+							//$('#search_ts').val(e.timeStamp);
+							$(this).attr("action","http://web.iri.centrepompidou.fr/fonds/ldt/index/seminaire/__post__");
+							launch_search($);
+						});
+					<?php 
+						if ($search_text!=""){
+							echo ("$(\"#search_form\").submit();");
+						}
+					?>
+						
+				  });
+				// ]]></script>
+				<div class="box">
+					<div>
+						<div id="search">
+								<form action="http://web.iri.centrepompidou.fr/fonds/ldt/index/seminaire/__post__" method="post" id="search_form" >
+								  <h6>Recherche inters&eacute;minaire dans ligne de temps : <h6>
+								  <input id="s" type="text" name="value" value="<?php echo($search_text); ?>" />
+								  <input type="submit" value="rechercher" />
+								</form>
+					</div>
+					<div class="cleaner"></div>	
+					</div>
+				</div>
+		
+	<?php endif; ?>
+	
+	<!-- WORDPRESS / RESEARCH -->
+	<?php if (have_posts() and $engine=="0") : ?>
+	
+		<h2 class="pagetitle"><?php echo(str_replace("%s", $search_text,__("Search results for &#8220;%s&#8221;"))); ?></h2>
+		
 
 				<?php getSearch(); ?>
 	
-		
+	
 		<div class="navigation">
 			<div class="alignleft"><?php next_posts_link('&laquo; Previous') ?></div>
 			<div class="alignright"><?php previous_posts_link('Next &raquo;') ?></div>
 		</div>
 		
 		<div class="clear"></div>
+		
 		<?php while (have_posts()) : the_post(); ?>
+	
 			<div class="post" id="post-<?php the_ID(); ?>">
 				<p class="large nomargin"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></p>
 				<?php
 				// Support for "Search Excerpt" plugin
 				// http://fucoder.com/code/search-excerpt/
 				if ( function_exists('the_excerpt') && is_search() ) {
-					the_excerpt();
+					the_excerpt_rss();
 				} ?>
 				<p class="small">
 					<?php the_time('F jS, Y') ?> &nbsp;|&nbsp; 
@@ -43,11 +218,31 @@
 			<div class="alignleft"><?php next_posts_link('&laquo; Previous') ?></div>
 			<div class="alignright"><?php previous_posts_link('Next &raquo;') ?></div>
 		</div>
-	<?php else : ?>
+	<?php elseif($engine=="0") : ?>
+	
 		<h2 class="center"><?php _e("No results found."); ?></h2>
 		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
+		
+		 <?php //	<!-- Tag Element if no result-->
+			$newoptions['tcolor'] = '3466FE';
+			$newoptions['tcolor2'] = '3268FF';
+			$newoptions['hicolor'] = '000000';
+			$newoptions['bgcolor'] = 'ffffff';
+			$newoptions['speed'] = '100';
+			$newoptions['trans'] = 'false';
+			$newoptions['distr'] = 'true';
+			$newoptions['args'] = '';
+			$newoptions['mode'] = 'tags';
+			$newoptions['width'] = '590';
+			$newoptions['height'] = '410';
+			
+			echo wp_cumulus_insert($newoptions);
+		?>
+		
 	<?php endif; ?>
-</div>
+	
+	<!--  -->
+	</div>
 </div> 
 <div class="column span-5 last">
 	<?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>
--- a/web/wp-content/themes/IRI-Theme/searchform.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/searchform.php	Mon Feb 01 09:51:57 2010 +0000
@@ -1,29 +1,43 @@
-<?php 
-	if (!is_search()) {
-		// Default search text
-		$search_text = __("Search");
+	<?php
+	if ( isset($_GET['s']) ) {
+		$search_text= utf8_decode(stripslashes($_GET['s']));
 	} else {
-		$search_text = $s;
-	}
-?>
-
+		$search_text= "Rechercher";
+	}	
+	?>
 		<div class="box">
 			<div>
 				<h6><?php _e("Search");?></h6>
-				
+
 				<div id="search">
 					<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
 						<div>
 							<input type="text" name="s" id="s"
-										 value="<?php echo wp_specialchars($s, 1); ?>"
-										 onfocus="clearInput('s', '<?php echo wp_specialchars($s, 1); ?>')" 
-										 onblur="clearInput('s', '<?php echo wp_specialchars($s, 1); ?>')"
+										 value="<?php echo wp_specialchars($search_text, 1); ?>"
+										 onfocus="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')" 
+										 onblur="clearInput('s', '<?php echo wp_specialchars($search_text, 1); ?>')"
 							/>
 							<input type="submit" name="envoi" value="<?php _e("Search");?>" /> 
+						<?php if (!have_posts() and isset($_GET['s'])) {
+							echo ("
+						
+								<div id='msg' > 
+									Il n&#145;y a aucun r&eacute;sultat  sur cette requ&egrave;te avec le moteur de recherche interne, vous aurrez  peut 	&ecirc;tre 
+									plus de chance en cherchant sur les autres sites IRI grace au formulaire ci dessous :
+								</div>
+								");
 							
+							} else if (!isset($_GET['s'])) {
+							echo ("<div id='msg' > 
+									Ci dessous le formulaire vous permettra de chercher dans les autres sites de l'IRI :
+								</div>");
+							}
+						 ?>
+
 						</div>
 					</form>
 				</div>
+				
 			</div>
 			<div class="cleaner"></div>	
 		</div> 
\ No newline at end of file
--- a/web/wp-content/themes/IRI-Theme/single.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/single.php	Mon Feb 01 09:51:57 2010 +0000
@@ -2,16 +2,16 @@
 	<div class="column span-17 colborder first" id="maincontent">
 		<div class="content">
 			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-				<!-- <div class="navigation small">
+				<?php  /*<div class="navigation small">
 					<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
 					<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
-				</div> 
-				<div style="padding-bottom: 15px;"></div> -->
+				</div> */?> 
+				<div style="padding-bottom: 15px;"></div> 
 				<div class="post" id="post-<?php the_ID(); ?>">
-					<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
+					<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" ><?php the_title(); ?></a></h2>
 					<p class="small">
 						<?php the_time('j, F Y') ?> &nbsp;|&nbsp; 
-						<!-- by <?php the_author() ?> -->
+						<?php /* the_author(); */ ?> 
 						<?php echo(__("Published")." : "); ?>
 						<?php
 							the_category(', ');
@@ -32,13 +32,20 @@
 						<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
 						
 					</div>
+					<div class="tag">
+					<?php the_tags('<strong>Mots clefs : </strong>',' | ','<br/> '); ?>
+					</div>
 				</div>
 			<?php comments_template(); ?>
 			<?php endwhile; else: ?>
 				<p><?php _e("Sorry, no such page."); ?></p>
 		<?php endif; ?>
 		<!-- ADD TO ANY -->
-		<?php echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>'; ?>
+		<?php 
+		if (get_the_ID()!=142) {
+			echo '<ul class="addtoany_list">'; if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") ); echo '</ul>';
+		}
+		?>
 		<!-- -->
 </div>
 </div>
--- a/web/wp-content/themes/IRI-Theme/style.css	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/themes/IRI-Theme/style.css	Mon Feb 01 09:51:57 2010 +0000
@@ -18,14 +18,23 @@
 wp-content/themes/name-of-this-theme/css/
    
 */
- 
+
+html 
+{
+    scrollbar-face-color: #5b5b5b;
+    scrollbar-shadow-color: #ffffff;
+    scrollbar-highlight-color: #ffffff;
+    scrollbar-3dlight-color: #ffffff;
+    scrollbar-darkshadow-color: #ffffff;
+    scrollbar-track-color: #ffffff;
+    scrollbar-arrow-color: #5fbcde;
+}
 body
 {
 	margin-bottom: 0;
 	margin-top: 10px;
-	/*background: url('images/gridline.gif') top repeat-x;*/
+	/*background: url('images/line.gif') top repeat-x;*/
 }
-#outside { background: url('images/get.png') top left no-repeat; }
 blockquote
 {
 	font-style: normal;
@@ -39,24 +48,24 @@
 	color: #2C80AF;
 	text-decoration: none;
 }
-a:active, h2 a:active, h3 a:active
+a:active, h2 a:active, h3 a:active, h4 a:active
 {
 	color: #5fbcde;
 	text-decoration: none;
 }
-a:hover, h2 a:hover, h3 a:hover
+a:hover, h2 a:hover, h3 a:hover, h4 a:active
 {
 	color: #3466fe;
 	text-decoration: none;
 }
 a:visited
 {
-	color: #5fbcde;
+	/*color: #5fbcde;*/
 	text-decoration: none;
 }
-h2 a:visited, h3 a:hover
+h2 a:visited, h3 a:hover, h4 a:active
 {
-	color: #3466fe;
+	/*color: #3466fe;*/
 	text-decoration: none;
 }
 blockquote p { padding: 0 20px 0 30px; }
@@ -86,6 +95,7 @@
 	width: 500px;
 }
 .small { font-size: .9em; }
+p.small  { padding-top:0px; margin-top:0px; }
 .nomargin { margin: 0; }
 a.button, button { font-weight: normal; }
 dl.small dd { font-size: .9em; }
@@ -127,22 +137,21 @@
 .advanced-recent-posts{
 
 }
-#maincontent h2
+#maincontent h2, h4
 {
 	color: #2C8084;
 	border-bottom: 1px dotted #AAA;
-	margin-bottom: 15px;
+	margin-bottom: 0px;
+	/*margin-bottom: 15px;*/
 }
-h2 a
+h2 a, h4 a
 {
 	color: #2C8084;
 	text-decoration: none;
 }
-#maincontent .post h2 { margin-bottom: 5px; }
-#maincontent .contentHome{ padding: 25px 30px 20px 48px; }
+#maincontent .contentHome{ padding: 25px 30px 10px 48px; }
 #maincontent .content { padding: 0px 30px 20px 48px; }
-#feature h3
-{
+#feature h3 {
 	margin-bottom: 0;
 	padding: 0;
 }
@@ -172,7 +181,15 @@
 .alignright { float: right; }
 .alignleft { float: left; }
 .post { margin-bottom: 10px; }
-.entry { padding-bottom: 15px; }
+.entry { padding-bottom: 15px; text-align:justify; }
+.entry p { text-align:justify; }
+/* Social */
+#social
+{
+	font-size:1em;
+	font-family:Georgia;
+	font-weight:bold;
+}
 /* HEADER */
 #header
 {
@@ -186,6 +203,14 @@
 	margin: 0;
 	line-height: 1em;
 }
+#p2c-header h2 {
+	color: #3268FF;  
+	border-bottom: 1px dotted #AAA;
+	margin-bottom: 15px;
+}
+#p2c-header p {
+ text-align:justify; 
+}
 /* NAVIGATION IN POSTS */
 .entry #nav .content
 {
@@ -209,51 +234,157 @@
 	background: #333;
 	color: #FFF;
 }
+.entry img { margin: 0; }
 
+.more {
+	margin-top:-10px;
+	display: block;
+	float: right;
+}
 
 /*
  ??????????????????????????????
  SEARCH 
 */
 #search { float: left; }
-#search #s
+#search #s 
 {
 	background: transparent url('images/icons/search_grey.gif') 0px center no-repeat;
 	padding: 2px 0 2px 17px;
 	background-color:#FFF;
-	width: 135px;
+	width: 410px;
 	color: #CCCCCC;
 	font-size: 0.9em;
 	margin-right: 0px;
 	margin-top: 10px;
 }
-#search #s:hover { 
+#search #s :hover { 
 	color: #000;
 	border: 1px solid #000;
 }
+#msg {
+	display:block; 
+	margin:5px; 
+	padding:5px; 
+	border:1px dotted;
+}
+#searchHome {
+	/**/
+	/*float:left;*/
+	width: 271px; 
+	height: 26px; 
+	background: url(images/search_box_bgd.gif); 
+	float: left;
+	margin-right:2px;
+}
+
+#searchHome #s {			float: left; 	padding: 0; 	margin-top: 5px; 	margin-left: 2px;	border: 0; 	width: 127px; 	background: none; 	height:17px;}
+#searchHome #s:hover { 	color: #000;	background: url('images/search_bg_hover.gif') repeat-x;}
+#searchHome #bt {		float: left; 	border:0px;	background:transparent;	cursor:pointer;	height:25px;	width:20px;	overflow:hidden;}
+
+#searchPage { 			border-left:#6f6f6f 1px;	width: 190px; 	height: 26px; 	background: url('images/search_box_bgd.gif') no-repeat; background-position:top right; 	float: left; margin-right:2px;}
+#searchPage #s {			float: left; 	padding: 0; 	margin-top: 5px; 	margin-left: 2px;	border: 0; 	width: 82px; 	background: none; 	height:17px;}
+#searchPage #s:hover { 	color: #000;	background: url('images/search_bg_hover.gif') repeat-x;}
+#searchPage #bt {		float: left; 	border:0px;	background:transparent;	cursor:pointer;	height:25px;	width:20px;	overflow:hidden;}
+
+
+/* Search skinned select */
+/* Skinned Select Box Copyright 2007 Derek Harvey  GNU */
+/* www.lotsofcode.com */
+
+div.skinned-select-Home {
+	background: url('images/select-skin-h.png') no-repeat;
+	float:left;
+	margin-top: 4px;
+	height:19px;
+	width:121px;
+}
+div.skinned-select-Home select {
+	opacity: 0;
+	filter: alpha(opacity = 0);
+	moz-opacity: 0;
+	position: relative;
+	z-index: 100;
+}
+div.skinned-select-Home .select-text-Home {
+    position: absolute;
+	text-indent: 10px;
+	line-height: 19px;
+	width: 121px;
+	z-index: 1;
+}
+div.skinned-select-Home .select-text-Home,
+div.skinned-select-Home select {
+	width: 121px;
+	font-size: 12px;
+	color: #CCCCCC;
+	border:none;
+}
+div.skinned-select-Home select option {
+	width: 121px;
+	font-size: 12px;
+	color: #CCCCCC;
+	background:#383838;
+	border:none;
+	padding:0px;
+	margin:0px;
+}
+div.skinned-select-Home select option:focus {
+	color: #383838;
+	background:#ffffff;
+	border:none;
+} 
+ 
+div.skinned-select-Page {
+	background: url('images/select-skin-p.png') no-repeat;
+	float:left;
+	margin-top: 4px;
+	height:19px;
+	width:86px;
+}
+div.skinned-select-Page select {
+	opacity: 0;
+	filter: alpha(opacity = 0);
+	moz-opacity: 0;
+	position: relative;
+	z-index: 100;
+}
+div.skinned-select-Page .select-text-Page {
+    position: absolute;
+	text-indent: 10px;
+	line-height: 19px;
+	width: 86px;
+	z-index: 1;
+}
+div.skinned-select-Page .select-text-Page,
+div.skinned-select-Page select {
+	width: 86px;
+	font-size: 12px;
+	color: #CCCCCC;
+}
+div.skinned-select-Page select option {
+	width: 86px;
+	font-size: 12px;
+	color: #CCCCCC;
+	background:#383838;
+	padding:0px;
+	margin:0px;
+}
+div.skinned-select-Page select option:focus {
+	color: #000000;
+	background:#ffffff;
+} 
+/* non javascript version select */
+.my-skinnable-select select {
+	width:86px;
+	font-size:11px;
+	color: #CCCCCC;
+	background:#383838;
+}
 
 
-#searchB { float: left; }
-#searchB #s
-{
-	background: transparent url('images/icons/search_grey.png') 0px center no-repeat;
-	background-color:#CCCCCC;
-	padding: 2px 0 2px 17px;
-	width: 135px;
-	color: #000000;
-	font-size: 0.8em;
-	border: 1px solid #151515;
-	margin-top: 3px;
-	/*For IE*/
-	
-}
-#searchB #s:hover { 
-	color: #000;
-	border: 1px solid #333333;
-	/*background-color:#b8b8b8;*/
-}
+.search-excerpt { margin: 0; }
 
-.search-excerpt { margin: 0; }
 /* COMMENTS */
 .commentlist li { padding: 8px 15px; }
 .comments-alt { background: #EEE; }
@@ -368,7 +499,7 @@
 }
 #comment_form .form_submit:hover { color: #0099cc; }
 /* Root = Horizontal, Secondary = Vertical */
-#navmenu-h { background: #000; }
+#navmenu-h { background: #000 url('images/bgd_nav.gif') 50% 50% repeat-x;}
 #navmenu-h li.alignright { float: right; }
 ul#navmenu-h
 {
@@ -415,23 +546,21 @@
 }
 ul#navmenu-h ul li
 {
-	width: 160px;
+	width: 130px;
 	float: left;
 	/*For IE 7 lack of compliance*/
 	display: block !important;
-	/*For IE*/
-	z-index:5;
-	
+	z-index:999;
 }
 /* Root Menu */
 ul#navmenu-h a
 {
-	padding: 1px 20px 3px 20px;
+	padding: 1px 15px 3px 15px;
 	float: none !important;
 	/*For Opera*/
 	/*For IE*/
 	display: block;
-	background: #000;
+	background: #000 url('images/bgd_nav.gif') 50% 50% repeat-x;
 	color: #ccc;
 	font: 13px/22px Helvetica;
 	text-decoration: none;
@@ -443,7 +572,7 @@
 ul#navmenu-h li:hover a,
 ul#navmenu-h li.iehover a
 {
-	background: #333;
+	background: #333 repeat-x;
 	color: #FFF;
 }
 /* 2nd Menu */
@@ -454,6 +583,7 @@
 	background: #000;
 	color: #ccc;
 	width: 260px;
+	z-index:999;
 }
 /* 2nd Menu Hover Persistence */
 ul#navmenu-h li:hover li a:hover,
@@ -500,8 +630,9 @@
 	display: none;
 	position: absolute;
 	top: 0;
-	left: 160px;
+	left: 130px;
 }
+
 /* Do Not Move - Must Come Before display:block for Gecko */
 ul#navmenu-h li:hover ul ul,
 ul#navmenu-h li:hover ul ul ul,
@@ -712,6 +843,105 @@
 } 
 
 /*****Accordion Styles*****/
-ul#accordion, ul#accordion ul { list-style: none; }
+#accordion{
+	padding: 10px;
+	background-color: #F3F3F3;
+}
+ul#accordion_nav, ul#accordion_nav ul { list-style: none; }
 
 
+/* Accordion---------------------------------- OVER DEF*/
+/* 
+ui-accordion-header ui-helper-reset ui-state-active ui-corner-top
+ui-accordion ui-widget ui-helper-reset
+ui-accordion-header ui-helper-reset ui-state-active ui-corner-top
+ui-accordion-header ui-helper-reset ui-state-default ui-corner-all
+
+ui-accordion-content
+ ui-helper-reset 
+ ui-widget-content 
+ ui-corner-bottom 
+ ui-accordion-content-active
+ 
+ ---------------------
+ 
+display:inline;
+height:106px;
+overflow-x:auto;
+overflow-y:auto;
+padding-bottom:6px;
+padding-top:6px;
+ 
+ 
+ ui-accordion-content
+ ui-helper-reset
+ ui-widget-content
+ ui-corner-bottom
+ ui-accordion-content-active
+*/
+.ui-corner-top h3{  }
+.ui-corner-all h3{  }
+.ui-widget h3{ color: #5FBCDE; background-color:#FFF; border: 0; border-bottom: 1px dotted #aaaaaa; }
+/*.ui-widget-content div{ color: #5FBCDE; background-color:#FFF; border: 0; border-bottom: 1px dotted #aaaaaa; }*/
+
+.ui-state-active 	h3{ color: #3466fe;  border: 0; border-bottom: 1px dotted #aaaaaa; }
+.ui-state-default 	h3{ color: #5FBCDE;  border: 0; border-bottom: 1px dotted #aaaaaa; }
+.ui-state-hover 		h3{ color: #3466fe;  border: 0; border-bottom: 1px dotted #aaaaaa; }
+.ui-state-hover 		li { background:none; font-weight:bolder; }
+.ui-state-focus 		li { background:none; font-weight:bolder; }
+
+.ui-state-active 	a{ color: #3466fe; }
+.ui-state-default 	a{ color: #5FBCDE; }
+.ui-state-hover 		a{ color: #3466fe; }
+
+.ui-accordion .ui-accordion-header { border: 0; cursor: pointer; position: relative; margin-top: 1px; zoom: 1; font-size:12px; }
+.ui-accordion .ui-accordion-li-fix { border: 0; display: block; }
+.ui-accordion .ui-accordion-header-active { border: 0 !important; }
+
+.ui-accordion .ui-accordion-header a {
+									color: #5FBCDE;
+									display: block;
+									padding: .1em .1em .1em .1em;
+									border-bottom: 1px dotted #aaaaaa;
+									}
+									
+									
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+
+.ui-accordion .ui-accordion-content { 
+									padding: .5em .2em .5em .2em;
+									border-top: 0em;
+									margin-top: 0px;
+									position: relative;
+									margin-bottom: 0px;
+									overflow: none;
+									display: block;
+									}
+									
+.ui-accordion .ui-accordion-content-active { display: block; }
+
+
+/*#accordionSeminaire.ui-widget 
+#accordionSeminaire.ui-helper-reset*/
+
+
+#accordion_seminaire{
+	float: right;
+	width: 50%;
+	padding-left:10px;
+	height:500px;
+}
+#accordion_seminaire_free{
+	float: right;
+	width: 50%;
+	padding-left:10px;
+}
+
+.widefate{
+	width:100%;
+}
+.img_space{
+	padding-right:10px;
+}
+
+