diff --git a/Gemfile b/Gemfile index a234ea98..58d5be36 100644 --- a/Gemfile +++ b/Gemfile @@ -18,8 +18,6 @@ gem 'RocketAMF', :git => 'git://github.com/rubyamf/rocketamf.git' gem 'msgpack', '~> 0.5.3' gem 'openneo-auth-signatory', '~> 0.1.0' -gem 'jammit', '~> 0.6.5' - gem 'airbrake', '~> 3.1.8' gem 'addressable', :require => ['addressable/template', 'addressable/uri'] diff --git a/Gemfile.lock b/Gemfile.lock index 0818b00f..40f45c94 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -75,10 +75,6 @@ GIT GEM remote: http://rubygems.org/ specs: - POpen4 (0.1.4) - Platform (>= 0.4.0) - open4 - Platform (0.4.0) actionmailer (3.2.12) actionpack (= 3.2.12) mail (~> 2.4.4) @@ -161,8 +157,6 @@ GEM hike (1.2.1) http_parser.rb (0.5.3) i18n (0.6.4) - jammit (0.6.5) - yui-compressor (>= 0.9.3) journey (1.0.4) json (1.7.7) mail (2.4.4) @@ -181,7 +175,6 @@ GEM net-ssh (2.6.6) newrelic_rpm (3.5.8.70) nokogiri (1.5.6) - open4 (1.3.0) openneo-auth-signatory (0.1.0) ruby-hmac orm_adapter (0.4.0) @@ -297,8 +290,6 @@ GEM chronic (~> 0.6.3) will_paginate (3.0.4) yard (0.8.5.2) - yui-compressor (0.9.6) - POpen4 (>= 0.1.4) PLATFORMS ruby @@ -321,7 +312,6 @@ DEPENDENCIES globalize3! haml (~> 4.0.0) http_accept_language! - jammit (~> 0.6.5) json (~> 1.7.7) memcache-client (~> 1.8.5) mini_magick (~> 3.4) diff --git a/public/javascripts/ajax_auth.js b/app/assets/javascripts/ajax_auth.js similarity index 100% rename from public/javascripts/ajax_auth.js rename to app/assets/javascripts/ajax_auth.js diff --git a/public/javascripts/analytics.js b/app/assets/javascripts/analytics.js similarity index 100% rename from public/javascripts/analytics.js rename to app/assets/javascripts/analytics.js diff --git a/public/javascripts/application.js b/app/assets/javascripts/application.js similarity index 100% rename from public/javascripts/application.js rename to app/assets/javascripts/application.js diff --git a/public/javascripts/closet_hangers/index.js b/app/assets/javascripts/closet_hangers/index.js similarity index 100% rename from public/javascripts/closet_hangers/index.js rename to app/assets/javascripts/closet_hangers/index.js diff --git a/public/javascripts/closet_hangers/petpage.js b/app/assets/javascripts/closet_hangers/petpage.js similarity index 100% rename from public/javascripts/closet_hangers/petpage.js rename to app/assets/javascripts/closet_hangers/petpage.js diff --git a/public/javascripts/controls.js b/app/assets/javascripts/controls.js similarity index 100% rename from public/javascripts/controls.js rename to app/assets/javascripts/controls.js diff --git a/public/javascripts/dragdrop.js b/app/assets/javascripts/dragdrop.js similarity index 100% rename from public/javascripts/dragdrop.js rename to app/assets/javascripts/dragdrop.js diff --git a/public/javascripts/effects.js b/app/assets/javascripts/effects.js similarity index 100% rename from public/javascripts/effects.js rename to app/assets/javascripts/effects.js diff --git a/public/javascripts/items/show.js b/app/assets/javascripts/items/show.js similarity index 100% rename from public/javascripts/items/show.js rename to app/assets/javascripts/items/show.js diff --git a/public/javascripts/jquery.jgrowl.js b/app/assets/javascripts/jquery.jgrowl.js similarity index 100% rename from public/javascripts/jquery.jgrowl.js rename to app/assets/javascripts/jquery.jgrowl.js diff --git a/public/javascripts/jquery.timeago.js b/app/assets/javascripts/jquery.timeago.js similarity index 100% rename from public/javascripts/jquery.timeago.js rename to app/assets/javascripts/jquery.timeago.js diff --git a/public/javascripts/jquery.ui.js b/app/assets/javascripts/jquery.ui.js similarity index 100% rename from public/javascripts/jquery.ui.js rename to app/assets/javascripts/jquery.ui.js diff --git a/public/javascripts/outfits/edit.js b/app/assets/javascripts/outfits/edit.js similarity index 100% rename from public/javascripts/outfits/edit.js rename to app/assets/javascripts/outfits/edit.js diff --git a/public/javascripts/outfits/index.js b/app/assets/javascripts/outfits/index.js similarity index 100% rename from public/javascripts/outfits/index.js rename to app/assets/javascripts/outfits/index.js diff --git a/public/javascripts/outfits/new.js b/app/assets/javascripts/outfits/new.js similarity index 100% rename from public/javascripts/outfits/new.js rename to app/assets/javascripts/outfits/new.js diff --git a/public/javascripts/outfits/show.js b/app/assets/javascripts/outfits/show.js similarity index 100% rename from public/javascripts/outfits/show.js rename to app/assets/javascripts/outfits/show.js diff --git a/public/javascripts/pet_query.js b/app/assets/javascripts/pet_query.js similarity index 100% rename from public/javascripts/pet_query.js rename to app/assets/javascripts/pet_query.js diff --git a/public/javascripts/pets/bulk.js b/app/assets/javascripts/pets/bulk.js similarity index 100% rename from public/javascripts/pets/bulk.js rename to app/assets/javascripts/pets/bulk.js diff --git a/public/javascripts/placeholder.js b/app/assets/javascripts/placeholder.js similarity index 100% rename from public/javascripts/placeholder.js rename to app/assets/javascripts/placeholder.js diff --git a/public/javascripts/pledgie.js b/app/assets/javascripts/pledgie.js similarity index 100% rename from public/javascripts/pledgie.js rename to app/assets/javascripts/pledgie.js diff --git a/public/javascripts/prototype.js b/app/assets/javascripts/prototype.js similarity index 100% rename from public/javascripts/prototype.js rename to app/assets/javascripts/prototype.js diff --git a/public/javascripts/rails.js b/app/assets/javascripts/rails.js similarity index 100% rename from public/javascripts/rails.js rename to app/assets/javascripts/rails.js diff --git a/public/javascripts/wardrobe.js b/app/assets/javascripts/wardrobe.js similarity index 100% rename from public/javascripts/wardrobe.js rename to app/assets/javascripts/wardrobe.js diff --git a/public/stylesheets/south-street/images/ui-bg_glass_55_fcf0ba_1x400.png b/app/assets/stylesheets/south-street/images/ui-bg_glass_55_fcf0ba_1x400.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_glass_55_fcf0ba_1x400.png rename to app/assets/stylesheets/south-street/images/ui-bg_glass_55_fcf0ba_1x400.png diff --git a/public/stylesheets/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png b/app/assets/stylesheets/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png rename to app/assets/stylesheets/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png diff --git a/public/stylesheets/south-street/images/ui-bg_highlight-hard_100_f5f3e5_1x100.png b/app/assets/stylesheets/south-street/images/ui-bg_highlight-hard_100_f5f3e5_1x100.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_highlight-hard_100_f5f3e5_1x100.png rename to app/assets/stylesheets/south-street/images/ui-bg_highlight-hard_100_f5f3e5_1x100.png diff --git a/public/stylesheets/south-street/images/ui-bg_highlight-hard_100_fafaf4_1x100.png b/app/assets/stylesheets/south-street/images/ui-bg_highlight-hard_100_fafaf4_1x100.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_highlight-hard_100_fafaf4_1x100.png rename to app/assets/stylesheets/south-street/images/ui-bg_highlight-hard_100_fafaf4_1x100.png diff --git a/public/stylesheets/south-street/images/ui-bg_highlight-hard_15_459e00_1x100.png b/app/assets/stylesheets/south-street/images/ui-bg_highlight-hard_15_459e00_1x100.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_highlight-hard_15_459e00_1x100.png rename to app/assets/stylesheets/south-street/images/ui-bg_highlight-hard_15_459e00_1x100.png diff --git a/public/stylesheets/south-street/images/ui-bg_highlight-hard_95_cccccc_1x100.png b/app/assets/stylesheets/south-street/images/ui-bg_highlight-hard_95_cccccc_1x100.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_highlight-hard_95_cccccc_1x100.png rename to app/assets/stylesheets/south-street/images/ui-bg_highlight-hard_95_cccccc_1x100.png diff --git a/public/stylesheets/south-street/images/ui-bg_highlight-soft_25_67b021_1x100.png b/app/assets/stylesheets/south-street/images/ui-bg_highlight-soft_25_67b021_1x100.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_highlight-soft_25_67b021_1x100.png rename to app/assets/stylesheets/south-street/images/ui-bg_highlight-soft_25_67b021_1x100.png diff --git a/public/stylesheets/south-street/images/ui-bg_highlight-soft_95_ffedad_1x100.png b/app/assets/stylesheets/south-street/images/ui-bg_highlight-soft_95_ffedad_1x100.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_highlight-soft_95_ffedad_1x100.png rename to app/assets/stylesheets/south-street/images/ui-bg_highlight-soft_95_ffedad_1x100.png diff --git a/public/stylesheets/south-street/images/ui-bg_inset-soft_15_2b2922_1x100.png b/app/assets/stylesheets/south-street/images/ui-bg_inset-soft_15_2b2922_1x100.png similarity index 100% rename from public/stylesheets/south-street/images/ui-bg_inset-soft_15_2b2922_1x100.png rename to app/assets/stylesheets/south-street/images/ui-bg_inset-soft_15_2b2922_1x100.png diff --git a/public/stylesheets/south-street/images/ui-icons_808080_256x240.png b/app/assets/stylesheets/south-street/images/ui-icons_808080_256x240.png similarity index 100% rename from public/stylesheets/south-street/images/ui-icons_808080_256x240.png rename to app/assets/stylesheets/south-street/images/ui-icons_808080_256x240.png diff --git a/public/stylesheets/south-street/images/ui-icons_847e71_256x240.png b/app/assets/stylesheets/south-street/images/ui-icons_847e71_256x240.png similarity index 100% rename from public/stylesheets/south-street/images/ui-icons_847e71_256x240.png rename to app/assets/stylesheets/south-street/images/ui-icons_847e71_256x240.png diff --git a/public/stylesheets/south-street/images/ui-icons_8dc262_256x240.png b/app/assets/stylesheets/south-street/images/ui-icons_8dc262_256x240.png similarity index 100% rename from public/stylesheets/south-street/images/ui-icons_8dc262_256x240.png rename to app/assets/stylesheets/south-street/images/ui-icons_8dc262_256x240.png diff --git a/public/stylesheets/south-street/images/ui-icons_cd0a0a_256x240.png b/app/assets/stylesheets/south-street/images/ui-icons_cd0a0a_256x240.png similarity index 100% rename from public/stylesheets/south-street/images/ui-icons_cd0a0a_256x240.png rename to app/assets/stylesheets/south-street/images/ui-icons_cd0a0a_256x240.png diff --git a/public/stylesheets/south-street/images/ui-icons_eeeeee_256x240.png b/app/assets/stylesheets/south-street/images/ui-icons_eeeeee_256x240.png similarity index 100% rename from public/stylesheets/south-street/images/ui-icons_eeeeee_256x240.png rename to app/assets/stylesheets/south-street/images/ui-icons_eeeeee_256x240.png diff --git a/public/stylesheets/south-street/images/ui-icons_ffffff_256x240.png b/app/assets/stylesheets/south-street/images/ui-icons_ffffff_256x240.png similarity index 100% rename from public/stylesheets/south-street/images/ui-icons_ffffff_256x240.png rename to app/assets/stylesheets/south-street/images/ui-icons_ffffff_256x240.png diff --git a/public/stylesheets/south-street/jquery-ui.css b/app/assets/stylesheets/south-street/jquery-ui.css similarity index 100% rename from public/stylesheets/south-street/jquery-ui.css rename to app/assets/stylesheets/south-street/jquery-ui.css diff --git a/app/views/outfits/edit.html.haml b/app/views/outfits/edit.html.haml index 570f0b13..833b29e8 100644 --- a/app/views/outfits/edit.html.haml +++ b/app/views/outfits/edit.html.haml @@ -119,7 +119,8 @@ #no-assets-full-message= t '.sidebar.closet.no_data.description' %script#sharing-html-image-template{:type => 'text/x-jquery-tmpl'} - = link_to image_tag('${image_url}'), '${permalink}' + = link_to '${permalink}' do + %img{:src => '${image_url}'} %script#sharing-html-text-template{:type => 'text/x-jquery-tmpl'} = link_to t('app_name'), '${permalink}' @@ -212,5 +213,6 @@ - content_for :javascripts do = include_javascript_libraries :jquery, :swfobject, :jquery_tmpl - = include_javascripts :edit_outfit_package + = javascript_include_tag 'ajax_auth', 'jquery.jgrowl', 'wardrobe', + 'outfits/edit' diff --git a/app/views/outfits/new.html.haml b/app/views/outfits/new.html.haml index e5b59621..f5b2dcad 100644 --- a/app/views/outfits/new.html.haml +++ b/app/views/outfits/new.html.haml @@ -102,5 +102,4 @@ - content_for :javascripts do = include_javascript_libraries :jquery, :jquery_tmpl - = include_javascripts :new_outfit_package - + = javascript_include_tag 'jquery.timeago', 'pet_query', 'outfits/new' \ No newline at end of file diff --git a/app/views/outfits/show.html.haml b/app/views/outfits/show.html.haml index e06fa93d..4de4bee4 100644 --- a/app/views/outfits/show.html.haml +++ b/app/views/outfits/show.html.haml @@ -22,5 +22,4 @@ :javascript var INITIAL_OUTFIT_DATA = #{safely_to_json @outfit}; = include_javascript_libraries :jquery, :swfobject - = include_javascripts :show_outfit_package - + = javascript_include_tag 'wardrobe', 'outfits/show' \ No newline at end of file diff --git a/app/views/pets/bulk.html.haml b/app/views/pets/bulk.html.haml index e47133d6..ff24f50f 100644 --- a/app/views/pets/bulk.html.haml +++ b/app/views/pets/bulk.html.haml @@ -79,4 +79,4 @@ - content_for :javascripts do = include_javascript_libraries :jquery, :jquery_tmpl - = include_javascripts :bulk_pets_package + = javascript_include_tag 'ajax_auth', 'pets/bulk' diff --git a/config/application.rb b/config/application.rb index 4cbb69de..7c1689c2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -48,6 +48,7 @@ module OpenneoImpressItems config.assets.enabled = true config.assets.version = '1.0' config.assets.paths << Rails.root.join('app', 'assets', 'fonts') + config.assets.precompile << '*.js' config.assets.initialize_on_precompile = false end end diff --git a/config/assets.yml b/config/assets.yml deleted file mode 100644 index 612e36d5..00000000 --- a/config/assets.yml +++ /dev/null @@ -1,22 +0,0 @@ -package_assets: off -embed_assets: on - -javascripts: - bulk_pets_package: - - public/javascripts/ajax_auth.js - - public/javascripts/pets/bulk.js - - edit_outfit_package: - - public/javascripts/ajax_auth.js - - public/javascripts/jquery.jgrowl.js - - public/javascripts/wardrobe.js - - public/javascripts/outfits/edit.js - - new_outfit_package: - - public/javascripts/jquery.timeago.js - - public/javascripts/pet_query.js - - public/javascripts/outfits/new.js - - show_outfit_package: - - public/javascripts/wardrobe.js - - public/javascripts/outfits/show.js diff --git a/public/assets/Delicious-Bold-985f8a48913954ec2c64c7061d36476a.otf b/public/assets/Delicious-Bold-985f8a48913954ec2c64c7061d36476a.otf new file mode 100644 index 00000000..e5b1e259 Binary files /dev/null and b/public/assets/Delicious-Bold-985f8a48913954ec2c64c7061d36476a.otf differ diff --git a/public/assets/Delicious-Bold.otf b/public/assets/Delicious-Bold.otf new file mode 100644 index 00000000..e5b1e259 Binary files /dev/null and b/public/assets/Delicious-Bold.otf differ diff --git a/public/assets/Delicious-Heavy-5aacff355bc23215a1d80fd005221fbc.otf b/public/assets/Delicious-Heavy-5aacff355bc23215a1d80fd005221fbc.otf new file mode 100644 index 00000000..c6faccd1 Binary files /dev/null and b/public/assets/Delicious-Heavy-5aacff355bc23215a1d80fd005221fbc.otf differ diff --git a/public/assets/Delicious-Heavy.otf b/public/assets/Delicious-Heavy.otf new file mode 100644 index 00000000..c6faccd1 Binary files /dev/null and b/public/assets/Delicious-Heavy.otf differ diff --git a/public/assets/Delicious-Italic-4be160a8d1c485ef2f2a2c23c8d98b7a.otf b/public/assets/Delicious-Italic-4be160a8d1c485ef2f2a2c23c8d98b7a.otf new file mode 100644 index 00000000..d57df3b6 Binary files /dev/null and b/public/assets/Delicious-Italic-4be160a8d1c485ef2f2a2c23c8d98b7a.otf differ diff --git a/public/assets/Delicious-Italic.otf b/public/assets/Delicious-Italic.otf new file mode 100644 index 00000000..d57df3b6 Binary files /dev/null and b/public/assets/Delicious-Italic.otf differ diff --git a/public/assets/Delicious-Roman-96a714c43a921b227e13e076fd7ff0d3.otf b/public/assets/Delicious-Roman-96a714c43a921b227e13e076fd7ff0d3.otf new file mode 100644 index 00000000..31ec11a2 Binary files /dev/null and b/public/assets/Delicious-Roman-96a714c43a921b227e13e076fd7ff0d3.otf differ diff --git a/public/assets/Delicious-Roman.otf b/public/assets/Delicious-Roman.otf new file mode 100644 index 00000000..31ec11a2 Binary files /dev/null and b/public/assets/Delicious-Roman.otf differ diff --git a/public/assets/ajax_auth-8946c462c538d34aecd58e622cb0091b.js b/public/assets/ajax_auth-8946c462c538d34aecd58e622cb0091b.js new file mode 100644 index 00000000..0b058efb --- /dev/null +++ b/public/assets/ajax_auth-8946c462c538d34aecd58e622cb0091b.js @@ -0,0 +1 @@ +(function(){var e=$("meta[name=csrf-param]").attr("content"),t=$("meta[name=csrf-token]").attr("content"),n={};n[e]=t,$.ajaxSetup({data:n})})(); \ No newline at end of file diff --git a/public/assets/ajax_auth-8946c462c538d34aecd58e622cb0091b.js.gz b/public/assets/ajax_auth-8946c462c538d34aecd58e622cb0091b.js.gz new file mode 100644 index 00000000..eae2f258 Binary files /dev/null and b/public/assets/ajax_auth-8946c462c538d34aecd58e622cb0091b.js.gz differ diff --git a/public/assets/ajax_auth.js b/public/assets/ajax_auth.js new file mode 100644 index 00000000..0b058efb --- /dev/null +++ b/public/assets/ajax_auth.js @@ -0,0 +1 @@ +(function(){var e=$("meta[name=csrf-param]").attr("content"),t=$("meta[name=csrf-token]").attr("content"),n={};n[e]=t,$.ajaxSetup({data:n})})(); \ No newline at end of file diff --git a/public/assets/ajax_auth.js.gz b/public/assets/ajax_auth.js.gz new file mode 100644 index 00000000..fd326e5e Binary files /dev/null and b/public/assets/ajax_auth.js.gz differ diff --git a/public/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png b/public/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png new file mode 100644 index 00000000..222cdc91 Binary files /dev/null and b/public/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png differ diff --git a/public/assets/alert-overlay.png b/public/assets/alert-overlay.png new file mode 100644 index 00000000..222cdc91 Binary files /dev/null and b/public/assets/alert-overlay.png differ diff --git a/public/assets/analytics-febbaf33d8a12832d4fdec0bf755fcd7.js b/public/assets/analytics-febbaf33d8a12832d4fdec0bf755fcd7.js new file mode 100644 index 00000000..c194d822 --- /dev/null +++ b/public/assets/analytics-febbaf33d8a12832d4fdec0bf755fcd7.js @@ -0,0 +1,2 @@ +// Overwrite this file on deploy if you actually want to track people +; \ No newline at end of file diff --git a/public/assets/analytics-febbaf33d8a12832d4fdec0bf755fcd7.js.gz b/public/assets/analytics-febbaf33d8a12832d4fdec0bf755fcd7.js.gz new file mode 100644 index 00000000..babdee3a Binary files /dev/null and b/public/assets/analytics-febbaf33d8a12832d4fdec0bf755fcd7.js.gz differ diff --git a/public/assets/analytics.js b/public/assets/analytics.js new file mode 100644 index 00000000..c194d822 --- /dev/null +++ b/public/assets/analytics.js @@ -0,0 +1,2 @@ +// Overwrite this file on deploy if you actually want to track people +; \ No newline at end of file diff --git a/public/assets/analytics.js.gz b/public/assets/analytics.js.gz new file mode 100644 index 00000000..e9389f6c Binary files /dev/null and b/public/assets/analytics.js.gz differ diff --git a/public/assets/application-27ee9d2f72cecf05f5e0fb5e4c6fb198.css b/public/assets/application-27ee9d2f72cecf05f5e0fb5e4c6fb198.css new file mode 100644 index 00000000..4fb64421 --- /dev/null +++ b/public/assets/application-27ee9d2f72cecf05f5e0fb5e4c6fb198.css @@ -0,0 +1 @@ +@charset "US-ASCII";@import url(http://fonts.googleapis.com/css?family=Droid+Sans:400,700);@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);@import url(http://fonts.googleapis.com/css?family=Calligraffitti);html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}html,body{height:100%}body{background:#fff;color:#040;font-family:"Droid Sans",Helvetica,Arial,Verdana,sans-serif;font-size:90%;line-height:1.5}a{color:#262}p{font-family:"Droid Serif",Georgia,"Times New Roman",Times,serif}input,button,select{font-family:inherit;font-size:100%}p{margin-bottom:1em}h1,h2,h3{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif}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}.inline-image,body.pets-bulk #bulk-pets-form ul img{margin-right:1em;vertical-align:middle}#container{margin:1em auto;padding-top:3em;position:relative;width:800px}input,button,select,label{cursor:pointer}input[type=text],body.pets-bulk #bulk-pets-form textarea,input[type=password],input[type=search],input[type=number],select,textarea{-moz-border-radius:3px;-webkit-border-radius:3px;background:#fff;border:1px solid #cec;color:#484;padding:0.25em}input[type=text]:focus,body.pets-bulk #bulk-pets-form textarea:focus,input[type=text]:active,body.pets-bulk #bulk-pets-form textarea:active,input[type=password]:focus,input[type=password]:active,input[type=search]:focus,input[type=search]:active,input[type=number]:focus,input[type=number]:active,select:focus,select:active,textarea:focus,textarea:active{color:inherit}textarea{font:inherit}a.button,input[type=submit],button{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1}a.button:hover,input[type=submit]:hover,button:hover{background-color:#005300}a.button:hover,input[type=submit]:hover,button:hover{color:#fff}a.button:active,input[type=submit]:active,button:active{top:1px}a.button.loud,input[type=submit].loud,button.loud{background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;font-size:125%;padding:8px 14px 9px}a.button.loud:hover,input[type=submit].loud:hover,button.loud:hover{background-color:#ee4b00}ul.buttons{margin-bottom:1em}ul.buttons li{list-style:none;margin:0 0.5em}ul.buttons li,ul.buttons li form{display:inline}#footer{clear:both;font-size:75%;margin-bottom:1em;padding-top:2em;text-align:center}#footer ul,#footer div{display:inline;margin:0 1em}#footer li,#footer div ul{display:inline;margin:0 0.5em}#footer #locale-form{float:right}.success,.alert,.warning{margin-bottom:1em;padding:0.25em 0.5em;text-align:center}.success{background:#e6efc2;border:1px solid #c6d880;color:#264409}.alert{background:#fbe3e4;border:1px solid #fbc2c4;color:#8a1f11}.warning{background:#fff6bf;border:1px solid #ffd324;color:#514721}#userbar{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;position:absolute;right:0;top:0}#userbar>*{display:inline;margin:0 0.25em}#userbar-image-mode{font-weight:bold;margin-right:1em;text-decoration:none}#userbar-image-mode img{bottom:-2px;height:16px;position:relative;width:16px}#userbar-log-in{text-decoration:none}#userbar-log-in img{margin-bottom:-4px;margin-right:0.25em}#userbar-log-in span{text-decoration:underline}#userbar-log-in:hover span{text-decoration:none}.object{display:-moz-inline-box;-moz-box-orient:vertical;display:inline-block;vertical-align:middle;*display:inline;*vertical-align:auto;margin:8px 0;padding:0 8px;position:relative;text-align:center;vertical-align:top;width:100px}.object a{text-decoration:none}.object a img{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75}.object img{display:block;height:80px;margin:0 auto;width:80px}.object:hover img,.object a:hover img{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}.object .nc-icon,.object .closeted-icons{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1;background:rgba(255,255,255,0.75);line-height:1;position:absolute;top:64px}.object .nc-icon:hover,.object .closeted-icons:hover{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5;background:transparent}.object .nc-icon,.object .closeted-icons img{display:inline;height:16px;width:16px}.object .nc-icon{right:18px}.object .closeted-icons{left:18px}dt{font-weight:bold}dd{margin:0 0 1.5em 1em}#home-link{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;font-size:175%;font-weight:bold;left:0;line-height:1;padding:0.25em;position:absolute;top:0}#home-link:hover{background:#efe;text-decoration:none}#home-link span:before{content:"<< "}.pagination a,.pagination span{margin:0 0.5em}.pagination .current{font-weight:bold}@font-face{font-family:Delicious;src:local("Delicious"),url(/assets/Delicious-Roman-96a714c43a921b227e13e076fd7ff0d3.otf)}@font-face{font-family:Delicious;font-weight:bold;src:local("Delicious"),url(/assets/Delicious-Bold-985f8a48913954ec2c64c7061d36476a.otf)}@font-face{font-family:Delicious;font-style:italic;src:local("Delicious"),url(/assets/Delicious-Italic-4be160a8d1c485ef2f2a2c23c8d98b7a.otf)}div.jGrowl{padding:10px;z-index:9999;color:#fff;font-size:12px}div.ie6{position:absolute}div.ie6.top-right{right:auto;bottom:auto;left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.top-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-right{left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.center{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );width:100%}body>div.jGrowl{position:fixed}body>div.jGrowl.top-left{left:0px;top:0px}body>div.jGrowl.top-right{right:0px;top:0px}body>div.jGrowl.bottom-left{left:0px;bottom:0px}body>div.jGrowl.bottom-right{right:0px;bottom:0px}body>div.jGrowl.center{top:0px;width:50%;left:25%}div.center div.jGrowl-notification,div.center div.jGrowl-closer{margin-left:auto;margin-right:auto}div.jGrowl div.jGrowl-notification,div.jGrowl div.jGrowl-closer{background-color:#000;opacity:0.85;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=85);zoom:1;width:235px;padding:10px;margin-top:5px;margin-bottom:5px;font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:1em;text-align:left;display:none;-moz-border-radius:5px;-webkit-border-radius:5px}div.jGrowl div.jGrowl-notification{min-height:40px}div.jGrowl div.jGrowl-notification div.header{font-weight:bold;font-size:0.85em}div.jGrowl div.jGrowl-notification div.close{z-index:99;float:right;font-weight:bold;font-size:1em;cursor:pointer}div.jGrowl div.jGrowl-closer{padding-top:4px;padding-bottom:4px;cursor:pointer;font-size:0.9em;font-weight:bold;text-align:center}@media print{div.jGrowl{display:none}}body.broken_image_reports-new #report-assets li{-moz-border-radius:0.5em;-webkit-border-radius:0.5em;display:-moz-inline-box;-moz-box-orient:vertical;display:inline-block;vertical-align:middle;*display:inline;*vertical-align:auto;border:1px solid #ada;margin:0.5em;padding:0.5em;text-align:center;vertical-align:top;width:150px}body.broken_image_reports-new #report-assets li img,body.broken_image_reports-new #report-assets li span,body.broken_image_reports-new #report-assets li input{display:block;width:100%}body.broken_image_reports-new #report-assets li img{height:150px;width:150px}body.broken_image_reports-new #report-assets li span{font-size:85%}body.closet_hangers-index #title{float:left;margin-right:0.5em}body.closet_hangers-index .flash{clear:both}body.closet_hangers-index #secondary-nav{display:block;margin-top:0.75em}body.closet_hangers-index #title{margin-bottom:0}body.closet_hangers-index #import-link{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x}body.closet_hangers-index #import-link:hover{background-color:#005300}body.closet_hangers-index #import-link:hover{color:#fff}body.closet_hangers-index #import-link:active{top:1px}body.closet_hangers-index #import-link:hover{background-color:#ee4b00}body.closet_hangers-index #closet-hangers-items-search{float:right}body.closet_hangers-index #closet-hangers-items-search input[name=q].loading{background-image:url(/assets/loading-752475b46d09cab818e599df9f85fa21.gif);background-position:2px center;background-repeat:no-repeat;padding-left:20px}body.closet_hangers-index #closet-hangers-contact{clear:both;color:#484;margin-bottom:1em;margin-left:2em;min-height:16px}body.closet_hangers-index #closet-hangers-contact a,body.closet_hangers-index #closet-hangers-contact>span{text-decoration:none;background-image:url(/assets/neomail-58321e88fbcd6a863be72e4a2c7b4692.png);background-position:left center;background-repeat:no-repeat;color:inherit;float:left;height:100%;padding-left:20px}body.closet_hangers-index #closet-hangers-contact a:hover,body.closet_hangers-index #closet-hangers-contact>span:hover{text-decoration:underline}body.closet_hangers-index #closet-hangers-contact>span{background-image:url(/assets/neomail_edit-2b51651488c5404f28ab1295114dd8a2.png)}body.closet_hangers-index #closet-hangers-contact input[type=text],body.closet_hangers-index #closet-hangers-contact body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.closet_hangers-index #closet-hangers-contact textarea{width:10em}body.closet_hangers-index #closet-hangers-contact label{font-weight:bold;margin-right:0.5em}body.closet_hangers-index #closet-hangers-contact label:after{content:":"}body.closet_hangers-index #edit-contact-link-to-replace-form,body.closet_hangers-index #cancel-contact-link{display:none}body.closet_hangers-index .edit-contact-link,body.closet_hangers-index #cancel-contact-link{cursor:pointer;text-decoration:underline}body.closet_hangers-index .edit-contact-link:hover,body.closet_hangers-index #cancel-contact-link:hover{text-decoration:none}body.closet_hangers-index #edit-contact-link-to-replace-form #contact-link-has-value{display:none}body.closet_hangers-index #edit-contact-link-to-replace-form #contact-link-no-value{display:inline}body.closet_hangers-index #edit-contact-link-to-replace-form.has-value #contact-link-has-value{display:inline}body.closet_hangers-index #edit-contact-link-to-replace-form.has-value #contact-link-no-value{display:none}body.closet_hangers-index #cancel-contact-link{margin-left:1em}body.closet_hangers-index #toggle-help,body.closet_hangers-index #toggle-compare{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;cursor:pointer;display:none}body.closet_hangers-index #toggle-help:hover,body.closet_hangers-index #toggle-compare:hover{background-color:#005300}body.closet_hangers-index #toggle-help:hover,body.closet_hangers-index #toggle-compare:hover{color:#fff}body.closet_hangers-index #toggle-help:active,body.closet_hangers-index #toggle-compare:active{top:1px}body.closet_hangers-index #closet-hangers-help.hidden{display:none}body.closet_hangers-index #closet-hangers-extras{font-size:85%;margin-bottom:2em;margin-top:2em;text-align:center}body.closet_hangers-index #closet-hangers-extras a{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;margin:0 0.5em}body.closet_hangers-index #closet-hangers-extras a:hover{background-color:#005300}body.closet_hangers-index #closet-hangers-extras a:hover{color:#fff}body.closet_hangers-index #closet-hangers-extras a:active{top:1px}body.closet_hangers-index #closet-hangers-share{margin-bottom:1em}body.closet_hangers-index #closet-hangers-share label{font-weight:bold;margin-right:0.5em}body.closet_hangers-index #closet-hangers-share input{width:30em}body.closet_hangers-index #closet-hangers{clear:both;text-align:center}body.closet_hangers-index #closet-hangers .object .quantity{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;background:#fff;padding:6px 4px 4px;position:absolute;left:18px;line-height:1;text-align:left;top:0}body.closet_hangers-index #closet-hangers .object .quantity span,body.closet_hangers-index #closet-hangers .object .quantity input[type=number]{font-size:16px;font-weight:bold}body.closet_hangers-index #closet-hangers .object form{display:none}body.closet_hangers-index #closet-hangers .object[data-quantity="1"] .quantity{display:none}body.closet_hangers-index .closet-hangers-group{border-top:1px solid #060;margin-bottom:2em;padding-bottom:1em}body.closet_hangers-index .closet-hangers-group>header{border-bottom:1px solid #ada;display:block;margin-bottom:0.25em;padding:0.25em 0;position:relative}body.closet_hangers-index .closet-hangers-group>header h3{font-size:250%;margin:0}body.closet_hangers-index .closet-hangers-group>header .add-closet-list{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;bottom:50%;margin-bottom:-1em;position:absolute;right:1em}body.closet_hangers-index .closet-hangers-group>header .add-closet-list:hover{background-color:#005300}body.closet_hangers-index .closet-hangers-group>header .add-closet-list:hover{color:#fff}body.closet_hangers-index .closet-hangers-group>header .add-closet-list:active{top:1px}body.closet_hangers-index .closet-hangers-group>header .add-closet-list:active{margin-bottom:-1.1em;top:auto}body.closet_hangers-index .closet-hangers-group>header span.show,body.closet_hangers-index .closet-hangers-group>header span.hide{color:#484;display:none;font-size:85%;left:1em;position:absolute;top:1em}body.closet_hangers-index .closet-hangers-group>header span.show:hover,body.closet_hangers-index .closet-hangers-group>header span.hide:hover{color:inherit;text-decoration:underline}body.closet_hangers-index .closet-list{border-bottom:1px solid #ada;padding:0.5em 0;position:relative}body.closet_hangers-index .closet-list .visibility-form{font-size:85%;left:0.5em;position:absolute;text-align:left;top:0.25em;z-index:10}body.closet_hangers-index .closet-list .visibility-form input,body.closet_hangers-index .closet-list .visibility-form select{font-size:inherit;margin-bottom:0;margin-top:0}body.closet_hangers-index .closet-list .visibility-form select{border-color:#fff}body.closet_hangers-index .closet-list .visibility-form input[type=submit]{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#aaa url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;-moz-opacity:0.9;-webkit-opacity:0.9;-o-opacity:0.9;-khtml-opacity:0.9;font-size:80%;font-size:inherit;visibility:hidden}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:hover{background-color:#005300}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:hover{color:#fff}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:active{top:1px}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:hover{background-color:#999}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:active{top:1px}body.closet_hangers-index .closet-list .visibility-form .visibility-descriptions{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;background:#fff;font-style:italic;list-style:none;padding:0 0.5em}body.closet_hangers-index .closet-list .visibility-form .visibility-descriptions li{display:none}body.closet_hangers-index .closet-list .visibility-form:hover .visibility-descriptions li.current{display:block}body.closet_hangers-index .closet-list header{display:block;position:relative}body.closet_hangers-index .closet-list h4{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;font-size:150%;line-height:1;margin:0 auto 0.67em;width:50%}body.closet_hangers-index .closet-list .empty-list{display:none;font-style:italic}body.closet_hangers-index .closet-list .closet-list-controls{display:none;position:absolute;right:1em;top:0}body.closet_hangers-index .closet-list .closet-list-controls a,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#aaa url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;-moz-opacity:0.9;-webkit-opacity:0.9;-o-opacity:0.9;-khtml-opacity:0.9;font-size:80%}body.closet_hangers-index .closet-list .closet-list-controls a:hover,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]:hover{background-color:#005300}body.closet_hangers-index .closet-list .closet-list-controls a:hover,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]:hover{color:#fff}body.closet_hangers-index .closet-list .closet-list-controls a:active,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]:active{top:1px}body.closet_hangers-index .closet-list .closet-list-controls a:hover,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]:hover{background-color:#999}body.closet_hangers-index .closet-list .closet-list-controls form{display:inline}body.closet_hangers-index .closet-list[data-hangers-count="0"] .empty-list{display:block}body.closet_hangers-index .closet-list.unlisted h4{font-size:125%;font-style:italic}body.closet_hangers-index .closet-list:hover .closet-list-controls{display:block}body.closet_hangers-index .closet-list:hover .visibility-form input[type=submit]{visibility:visible}body.closet_hangers-index .closet-list:hover .visibility-form select{border-color:#ada}body.closet_hangers-index .closet-list:last-child{border-bottom:0}body.closet_hangers-index .closet-list.droppable-active{-moz-border-radius:1em;-webkit-border-radius:1em;background:#efe;border:1px solid #060;padding:1em;border-bottom-width:1px;border-style:dotted;margin:1em 0}body.closet_hangers-index .closet-list.droppable-active .object{-moz-opacity:0.25;-webkit-opacity:0.25;-o-opacity:0.25;-khtml-opacity:0.25}body.closet_hangers-index .closet-list.droppable-active .object.ui-draggable-dragging{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.closet_hangers-index .closet-list.droppable-active .closet-list-controls{display:none}body.closet_hangers-index .closet-list.droppable-active .closet-list-hangers{overflow:hidden}body.closet_hangers-index .closet-list.droppable-active .visibility-form{display:none}body.closet_hangers-index .closet-hangers-group-autocomplete-item span,body.closet_hangers-index .closet-list-autocomplete-item span{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5;font-style:italic;padding:0.2em 0.4em}body.closet_hangers-index .closet-list-autocomplete-item a,body.closet_hangers-index .closet-list-autocomplete-item span{font-size:85%;padding-left:2em}body.closet_hangers-index .closet-hangers-group[data-owned=true] .user-wants,body.closet_hangers-index .closet-hangers-group[data-owned=false] .user-owns{background:#efe;font-weight:bold}body.closet_hangers-index.current-user #closet-hangers .object:hover form{display:inline}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy{position:absolute;right:18px;top:52px}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#aaa url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;-moz-opacity:0.9;-webkit-opacity:0.9;-o-opacity:0.9;-khtml-opacity:0.9;font-size:80%}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input:hover{background-color:#005300}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input:hover{color:#fff}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input:active{top:1px}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input:hover{background-color:#999}body.closet_hangers-index.current-user #closet-hangers .object:hover .quantity{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1;background:transparent;top:0;padding:0}body.closet_hangers-index.current-user #closet-hangers .object:hover .quantity span{display:none}body.closet_hangers-index.current-user #closet-hangers .object:hover .quantity input[type=number]{padding:2px;width:2em}body.closet_hangers-index.current-user #closet-hangers .object:hover .quantity input[type=submit]{font-size:85%}body.closet_hangers-index.current-user.js #closet-hangers .object:hover .quantity{display:block}body.closet_hangers-index.current-user.js #closet-hangers .object:hover .quantity input[type=number]{width:2.5em}body.closet_hangers-index.current-user.js #closet-hangers .object:hover .quantity input[type=submit]{display:none}body.closet_hangers-index.current-user.js #closet-hangers .object.loading{background:#efe;outline:1px solid #060}body.closet_hangers-index.current-user.js #closet-hangers .object.loading .quantity{display:block}body.closet_hangers-index.current-user.js #closet-hangers .object.loading .quantity span:after{content:"…"}body.closet_hangers-index.current-user.js #closet-hangers-contact form{display:none}body.closet_hangers-index.current-user.js #closet-hangers-contact .edit-contact-link,body.closet_hangers-index.current-user.js #closet-hangers-contact #cancel-contact-link{display:inline}body.closet_hangers-index.current-user.js #closet-hangers-contact.editing form{display:block}body.closet_hangers-index.current-user.js #closet-hangers-contact.editing .edit-contact-link{display:none}body.closet_hangers-index.current-user.js .closet-hangers-group header .show,body.closet_hangers-index.current-user.js .closet-hangers-group header .hide{cursor:pointer}body.closet_hangers-index.current-user.js .closet-hangers-group header .hide{display:block}body.closet_hangers-index.current-user.js .closet-hangers-group.hidden header .hide,body.closet_hangers-index.current-user.js .closet-hangers-group.hidden .closet-hangers-group-content{display:none}body.closet_hangers-index.current-user.js .closet-hangers-group.hidden header .show{display:block}body.closet_hangers-index.current-user.js #toggle-help{display:inline}body.closet_hangers-index.js #toggle-compare{display:inline}body.closet_hangers-index.js #closet-hangers.comparing .object{display:none}body.closet_hangers-index.js #closet-hangers.comparing .closet-hangers-group[data-owned=true] .user-wants,body.closet_hangers-index.js #closet-hangers.comparing .closet-hangers-group[data-owned=false] .user-owns{display:inline-block}body.closet_hangers-petpage #title{float:left;margin-right:0.5em}body.closet_hangers-petpage .flash{clear:both}body.closet_hangers-petpage #secondary-nav{display:block;margin-top:0.75em}body.closet_hangers-petpage #intro{clear:both}body.closet_hangers-petpage #petpage-closet-lists{overflow:hidden;display:inline-block;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px;border-radius:10px;border:1px solid #ada;margin-bottom:1.5em;padding:0.5em 1.5em}body.closet_hangers-petpage #petpage-closet-lists{display:block}body.closet_hangers-petpage #petpage-closet-lists>div{margin:0.25em 0}body.closet_hangers-petpage #petpage-closet-lists h4{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;vertical-align:middle}body.closet_hangers-petpage #petpage-closet-lists h4::after{content:":"}body.closet_hangers-petpage #petpage-closet-lists ul{list-style:none;margin:0;padding:0}body.closet_hangers-petpage #petpage-closet-lists ul li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;font-size:85%;margin:0.25em 0.5em;padding:1px}body.closet_hangers-petpage #petpage-closet-lists ul li label{padding:0.25em 0.75em 0.25em 0.25em}body.closet_hangers-petpage #petpage-closet-lists ul li.checked{background:#efe;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;border:1px solid #060;padding:0}body.closet_hangers-petpage #petpage-closet-lists ul li.unlisted{font-style:italic}body.closet_hangers-petpage #petpage-closet-lists input[type=submit]{float:right}body.closet_hangers-petpage #petpage-output{display:block;height:30em;margin:0 auto;width:50%}body.closet_lists-new #title,body.closet_lists-create #title,body.closet_lists-edit #title,body.closet_lists-update #title{float:left;margin-right:0.5em}body.closet_lists-new .flash,body.closet_lists-create .flash,body.closet_lists-edit .flash,body.closet_lists-update .flash{clear:both}body.closet_lists-new #secondary-nav,body.closet_lists-create #secondary-nav,body.closet_lists-edit #secondary-nav,body.closet_lists-update #secondary-nav{display:block;margin-top:0.75em}body.closet_lists-new form ul.fields,body.closet_lists-create form ul.fields,body.closet_lists-edit form ul.fields,body.closet_lists-update form ul.fields{clear:both;list-style:none}body.closet_lists-new form ul.fields label,body.closet_lists-create form ul.fields label,body.closet_lists-edit form ul.fields label,body.closet_lists-update form ul.fields label{float:left;font-weight:bold;margin-right:1em}body.closet_lists-new form ul.fields li,body.closet_lists-create form ul.fields li,body.closet_lists-edit form ul.fields li,body.closet_lists-update form ul.fields li{padding:0.75em 0;width:35em}body.closet_lists-new form ul.fields input,body.closet_lists-new form ul.fields textarea,body.closet_lists-new form ul.fields select,body.closet_lists-create form ul.fields input,body.closet_lists-create form ul.fields textarea,body.closet_lists-create form ul.fields select,body.closet_lists-edit form ul.fields input,body.closet_lists-edit form ul.fields textarea,body.closet_lists-edit form ul.fields select,body.closet_lists-update form ul.fields input,body.closet_lists-update form ul.fields textarea,body.closet_lists-update form ul.fields select{clear:both;display:block;margin-top:0.25em;width:80%}body.closet_lists-new form ul.fields textarea,body.closet_lists-create form ul.fields textarea,body.closet_lists-edit form ul.fields textarea,body.closet_lists-update form ul.fields textarea{height:12em}body.closet_lists-new form ul.fields .hint,body.closet_lists-create form ul.fields .hint,body.closet_lists-edit form ul.fields .hint,body.closet_lists-update form ul.fields .hint{display:block;font-size:85%}body.neopets_pages-new #title,body.neopets_pages-create #title{float:left}body.neopets_pages-new .flash,body.neopets_pages-create .flash{clear:both}body.neopets_pages-new #back-to-items,body.neopets_pages-create #back-to-items{-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;margin-left:1em;margin-top:0.75em}body.neopets_pages-new #back-to-items:hover,body.neopets_pages-create #back-to-items:hover{background-color:#005300}body.neopets_pages-new #back-to-items:hover,body.neopets_pages-create #back-to-items:hover{color:#fff}body.neopets_pages-new #back-to-items:active,body.neopets_pages-create #back-to-items:active{top:1px}body.neopets_pages-new #closet-page-form,body.neopets_pages-create #closet-page-form{overflow:hidden;display:inline-block;clear:both;margin-bottom:1em}body.neopets_pages-new #closet-page-form,body.neopets_pages-create #closet-page-form{display:block}body.neopets_pages-new #closet-page-frame-wrapper,body.neopets_pages-create #closet-page-frame-wrapper{float:left;margin-right:2%;width:48%}body.neopets_pages-new #closet-page-frame,body.neopets_pages-create #closet-page-frame{height:19em;width:100%}body.neopets_pages-new #closet-page-source,body.neopets_pages-create #closet-page-source{float:left;width:50%}body.neopets_pages-new #closet-page-source label,body.neopets_pages-create #closet-page-source label{font-weight:bold}body.neopets_pages-new #closet-page-source textarea,body.neopets_pages-create #closet-page-source textarea{height:19em}body.neopets_pages-new ol,body.neopets_pages-create ol{padding-left:1em}body.neopets_pages-new ol>li,body.neopets_pages-create ol>li{margin-bottom:1em}body.neopets_pages-new ol ul,body.neopets_pages-create ol ul{font-size:85%;margin-bottom:1em;margin-top:0;padding-left:1em}body.neopets_pages-new ol p,body.neopets_pages-create ol p{margin:0}body.neopets_users-new #title,body.neopets_users-create #title{float:left;margin-right:0.5em}body.neopets_users-new .flash,body.neopets_users-create .flash{clear:both}body.neopets_users-new #secondary-nav,body.neopets_users-create #secondary-nav{display:block;margin-top:0.75em}body.neopets_users-new #neopets-user-form,body.neopets_users-create #neopets-user-form{clear:both}body.neopets_users-new #neopets-user-form label,body.neopets_users-create #neopets-user-form label{font-weight:bold;margin-right:1em}body.neopets_users-new #neopets-user-form label:after,body.neopets_users-create #neopets-user-form label:after{content:":"}body.contributions-index{text-align:center}body.contributions-index .contributions li{list-style:none;height:80px;overflow:hidden;padding:1em 0 0 100px;position:relative;text-align:left}body.contributions-index .contributions .point-value{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;color:#fff;font-size:80px;left:0;line-height:1;position:absolute;text-align:center;text-shadow:2px 2px 0 #000;top:0;width:80px;z-index:3}body.contributions-index .contributions .point-value:hover{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.contributions-index .contributions img{height:80px;left:0;position:absolute;top:0;width:80px;z-index:2}body.contributions-index .contributions .username,body.contributions-index .contributions .contributed-name{font-weight:bold}body.contributions-index .contributions .time-ago{display:block;font-size:75%}body.items{text-align:center}body.items .campaign-progress-wrapper{-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;border-radius:8px;background:#aaa;background-image:linear-gradient(#cccccc,#aaaaaa);border:4px solid #060;clear:both;margin-bottom:1.5em;position:relative;visibility:hidden}body.items .campaign-progress-wrapper .button{background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;font-size:75%;margin-left:1em;padding:0.25em 0.75em}body.items .campaign-progress-wrapper .button:hover{background-color:#ee4b00}body.items .campaign-progress-wrapper .button:after{content:none}body.items .campaign-progress{background:#060;background-image:linear-gradient(#228822,#006600);border-right:1px solid #060}body.items .campaign-progress-wrapper,body.items .campaign-progress{height:2.5em}body.items .campaign-progress-label{text-shadow:#777,-1px,-1px,0;font-size:150%;left:0;position:absolute;top:0;text-align:center;width:100%}body.items .campaign-progress-label,body.items .campaign-progress-label a{color:#fff}body.items.campaign-loaded .campaign-progress-wrapper{visibility:visible}body.items input[type=text],body.items body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.items textarea{font-size:125%;width:15em}body.items h1{margin-bottom:1em}body.items h1 img{height:80px;margin-bottom:-0.5em;width:80px}body.items h1 a{text-decoration:none}body.items h1 a span{text-decoration:underline}body.items h1 a:hover span{text-decoration:none}body.items-index form{margin-bottom:2em}body.items-index #search-info{float:left;width:49%;padding-right:1%}body.items-index #search-info h2{font-size:125%}body.items-index #search-info dl{text-align:left}body.items-index #search-info dd{margin-bottom:1em}body.items-index #species-search-links{float:left;width:49%;padding-left:1%}body.items-index #species-search-links h2{font-size:125%}body.items-index #species-search-links img{height:80px;width:80px}body.items-show #item-header{border-bottom:1px solid #060;display:block;margin-bottom:1em;padding:1em 0}body.items-show #item-header div,body.items-show #item-header img{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.items-show #item-header div{text-align:left}body.items-show #item-header a{font-size:75%;margin-left:1em}body.items-show #item-thumbnail{border:1px solid #060;height:80px;margin-right:0.5em;width:80px}body.items-show #item-name{margin-bottom:0}body.items-show #item-preview{overflow:hidden;display:inline-block}body.items-show #item-preview{display:block}body.items-show #item-preview div{float:left}body.items-show #item-preview-species{width:400px}body.items-show #item-preview-species a,body.items-show #item-preview-species img{height:50px;width:50px}body.items-show #item-preview-species a{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.items-show #item-preview-species a.current{background:#efe;outline:1px solid #060}body.items-show #item-preview-species a.deactivated img{filter:url("data:image/svg+xml;utf8,#grayscale");filter:gray;-webkit-filter:grayscale(100%);-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.items-show #item-preview-species a.deactivated.current{background:transparent;outline-color:#fbc2c4}body.items-show #item-preview-error{display:none;padding:20px 10px 0;width:380px}body.items-show #item-preview-swf{height:300px;overflow:hidden;width:300px}body.items-show #item-zones{font-family:"Droid Serif",Georgia,"Times New Roman",Times,serif;font-size:85%;margin-bottom:1em}body.items-show #item-zones p{display:inline}body.items-show #item-zones p:first-child{margin-right:1em}body.items-show #trade-hangers{font-size:85%;margin-bottom:3em;text-align:left}body.items-show #trade-hangers p{position:relative}body.items-show #trade-hangers p:first-child{margin-bottom:0.5em}body.items-show #trade-hangers p.overflows .toggle{display:block}body.items-show #trade-hangers p.showing-more .toggle .less{display:block}body.items-show #trade-hangers p.showing-more .toggle .more{display:none}body.items-show #trade-hangers .toggle{background:#fff;bottom:0;cursor:pointer;display:none;font-family:"Droid Sans",Helvetica,Arial,Verdana,sans-serif;padding:0 1em;position:absolute;right:0}body.items-show #trade-hangers .toggle:hover{text-decoration:underline}body.items-show #trade-hangers .toggle .less{display:none}body.items-show #item-contributors{border-color:#ada;border-style:solid;border-width:1px 0;font-size:85%;margin:1em 0;padding:0.5em 0;text-align:center;clear:both;margin-bottom:0;margin-top:2em}body.items-show #item-contributors header{display:inline;font-weight:bold;margin-right:0.25em}body.items-show #item-contributors footer{display:inline}body.items-show #item-contributors ul{list-style-type:none}body.items-show #item-contributors ul,body.items-show #item-contributors ul li{margin:0px;padding:0px;display:inline}body.items-show #item-contributors ul li:after{content:", "}body.items-show #item-contributors ul li:last-child:after{content:""}body.items-show #item-contributors ul li.last:after{content:""}body.items-show #item-contributors ul li:last-child::after{content:"."}body.items-show #item-preview-header{clear:both}body.items-show #item-preview-header h3,body.items-show #item-preview-header a{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.items-show #item-preview-header a{font-size:85%;margin:-1.5em 0 0 1em}body.items-show .nc-icon{height:16px;width:16px}body.items-show #closet-hangers{border:1px solid #060;float:right;font-size:85%;margin-bottom:3em;margin-left:1em;padding:1em;width:30em;position:relative;z-index:2}body.items-show #closet-hangers h3{font-size:150%;font-weight:bold;margin-bottom:0.25em}body.items-show #closet-hangers #closet-hangers-ownership-groups{overflow:hidden;display:inline-block;margin-bottom:0.5em}body.items-show #closet-hangers #closet-hangers-ownership-groups{display:block}body.items-show #closet-hangers #closet-hangers-ownership-groups div{float:left;margin:0 5%;text-align:left;width:40%}body.items-show #closet-hangers #closet-hangers-ownership-groups div li{list-style:none;word-wrap:break-word}body.items-show #closet-hangers #closet-hangers-ownership-groups div li label.unlisted{font-style:italic}body.items-show #closet-hangers form{padding:0.5em 0}body.items-show #closet-hangers select{width:9em}body.items-show #closet-hangers input[type=number]{margin-right:0.5em;width:3em}body.items-show.js #trade-hangers p{max-height:3em;overflow:hidden}body.items-show.js #trade-hangers p.showing-more{max-height:none}div.jGrowl{padding:10px;z-index:9999;color:#fff;font-size:12px}div.ie6{position:absolute}div.ie6.top-right{right:auto;bottom:auto;left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.top-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-right{left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.center{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );width:100%}body>div.jGrowl{position:fixed}body>div.jGrowl.top-left{left:0px;top:0px}body>div.jGrowl.top-right{right:0px;top:0px}body>div.jGrowl.bottom-left{left:0px;bottom:0px}body>div.jGrowl.bottom-right{right:0px;bottom:0px}body>div.jGrowl.center{top:0px;width:50%;left:25%}div.center div.jGrowl-notification,div.center div.jGrowl-closer{margin-left:auto;margin-right:auto}div.jGrowl div.jGrowl-notification,div.jGrowl div.jGrowl-closer{background-color:#000;opacity:0.85;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=85);zoom:1;width:235px;padding:10px;margin-top:5px;margin-bottom:5px;font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:1em;text-align:left;display:none;-moz-border-radius:5px;-webkit-border-radius:5px}div.jGrowl div.jGrowl-notification{min-height:40px}div.jGrowl div.jGrowl-notification div.header{font-weight:bold;font-size:0.85em}div.jGrowl div.jGrowl-notification div.close{z-index:99;float:right;font-weight:bold;font-size:1em;cursor:pointer}div.jGrowl div.jGrowl-closer{padding-top:4px;padding-bottom:4px;cursor:pointer;font-size:0.9em;font-weight:bold;text-align:center}@media print{div.jGrowl{display:none}}body.outfits-edit #preview-toolbar{margin-bottom:0.5em;text-align:left}body.outfits-edit #preview-toolbar form{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;margin-right:2em}body.outfits-edit #pet-info form{display:inline}body.outfits-edit #pet-state-form{font-size:85%}body.outfits-edit #pet-state-form.hidden{visibility:hidden}body.outfits-edit #save-outfit-wrapper{float:right}body.outfits-edit #save-outfit-wrapper button{display:none}body.outfits-edit #save-outfit-wrapper #share-outfit{display:inline-block}body.outfits-edit #save-outfit-wrapper.loading{background-image:url(/assets/loading-752475b46d09cab818e599df9f85fa21.gif);background-position:left center;background-repeat:no-repeat;padding-left:20px}body.outfits-edit #save-outfit,body.outfits-edit #save-outfit-not-signed-in,body.outfits-edit #save-current-outfit,body.outfits-edit #save-outfit-finish{background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x}body.outfits-edit #save-outfit:hover,body.outfits-edit #save-outfit-not-signed-in:hover,body.outfits-edit #save-current-outfit:hover,body.outfits-edit #save-outfit-finish:hover{background-color:#ee4b00}body.outfits-edit #current-outfit-permalink,body.outfits-edit #shared-outfit-permalink{display:none;margin-right:0.25em}body.outfits-edit #current-outfit-permalink img,body.outfits-edit #shared-outfit-permalink img{bottom:-2px;height:16px;position:relative;width:16px}body.outfits-edit #shared-outfit-url{display:none;width:15em}body.outfits-edit #preview{clear:both}body.outfits-edit #preview-swf{float:left;height:380px;margin-bottom:1em;position:relative;width:380px}body.outfits-edit #preview-swf.swf-adapter #preview-image-container{display:none}body.outfits-edit #preview-swf.image-adapter #preview-swf-container{display:none}body.outfits-edit #preview-image-container{position:relative}body.outfits-edit #preview-image-container img{left:0;position:absolute;top:0}body.outfits-edit #preview-image-container,body.outfits-edit #preview-image-container img{height:100%;width:100%}body.outfits-edit #preview-swf-overlay{-moz-opacity:0;-webkit-opacity:0;-o-opacity:0;-khtml-opacity:0;background:#000;height:100%;left:0;position:absolute;top:0;width:100%}body.outfits-edit #preview-images-pending{background:#000;background:rgba(0,0,0,0.75);bottom:0;color:#fff;font-size:75%;padding:0.5em;position:absolute;right:0;z-index:1000}body.outfits-edit #preview-images-pending.waiting-on-0{display:none}body.outfits-edit #preview-mode{margin-right:1em;position:absolute;right:100%;text-align:center;top:0;width:7em}body.outfits-edit #preview-mode.flash-active #preview-mode-flash{color:#040;font-weight:bold}body.outfits-edit #preview-mode.image-active #preview-mode-image{color:#040;font-weight:bold}body.outfits-edit #preview-mode.image-active #preview-mode-note,body.outfits-edit #preview-mode.image-active #report-broken-image{display:block}body.outfits-edit #preview-mode-toggle{-webkit-border-radius:0.5em;-moz-border-radius:0.5em;-ms-border-radius:0.5em;-o-border-radius:0.5em;border-radius:0.5em;border:1px solid #060;color:#484;font-size:85%;list-style:none;margin:0 auto 0.5em;text-align:center;width:5em}body.outfits-edit #preview-mode-toggle li{border-top:1px solid #ada;cursor:pointer;padding:0.125em 0;width:100%}body.outfits-edit #preview-mode-toggle li:first-child{border-top:0}body.outfits-edit #preview-download-image{display:none;margin:1em auto}body.outfits-edit #preview-download-image h3{font-size:125%;margin-bottom:0.5em}body.outfits-edit #preview-download-image ul{list-style:none}body.outfits-edit #preview-download-image button{font-size:75%;width:100%}body.outfits-edit #preview-mode-note,body.outfits-edit #report-broken-image{display:block;font-size:75%;margin-top:0.5em;text-align:center;text-decoration:none;width:100%}body.outfits-edit #preview-mode-note em,body.outfits-edit #report-broken-image em{font-style:normal;text-decoration:underline}body.outfits-edit #preview-mode-note,body.outfits-edit #report-broken-image{display:none}body.outfits-edit #preview-sidebar{float:left;height:380px;margin-left:20px;margin-bottom:1em;width:400px}body.outfits-edit #preview-sidebar.viewing-outfits #preview-closet{display:none}body.outfits-edit #preview-sidebar.viewing-outfits #preview-outfits{display:block}body.outfits-edit #preview-sidebar.sharing #preview-closet{display:none}body.outfits-edit #preview-sidebar.sharing #preview-sharing{display:block}body.outfits-edit #preview-sidebar .sidebar-view{margin:1.5em 0}body.outfits-edit #preview-closet h2{margin-bottom:0}body.outfits-edit #preview-closet ul{text-align:center}body.outfits-edit #preview-closet .object{background:#efe}body.outfits-edit #preview-closet .object img{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.outfits-edit #preview-closet .object.worn{background:transparent}body.outfits-edit #preview-closet .object.worn img{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-edit #preview-closet .object.no-assets{background:#fbe3e4;color:#8a1f11;padding-bottom:1.25em}body.outfits-edit #preview-closet .object.no-assets .no-assets-message{display:block}body.outfits-edit .no-assets-message{background:#f3dbdc;bottom:0;color:#821709;cursor:pointer;display:none;font-size:75%;left:0;position:absolute;width:100%}body.outfits-edit #no-assets-full-message{-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:#fff4f5;border:1px solid #ffd3d5;color:#9b3022;font-size:75%;left:-9999px;padding:0.25em;position:absolute;top:-9999px;width:30em}body.outfits-edit #preview-search-form{clear:both;text-align:left}body.outfits-edit #preview-search-form h2{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;margin:0 1em 0 0}body.outfits-edit #preview-search-form input{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.outfits-edit #preview-search-form input[type=submit]{margin-right:2em}body.outfits-edit .preview-search-form-your-items{display:none;font-size:85%;margin-right:1em}body.outfits-edit #preview-search-form-pagination{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.outfits-edit #preview-search-form-pagination a,body.outfits-edit #preview-search-form-pagination span{margin:0 0.25em}body.outfits-edit #preview-search-form-pagination .current{font-weight:bold}body.outfits-edit #preview-search-form-clear{display:none;font-size:87.5%;margin-left:2em}body.outfits-edit #preview-search-form-loading{display:none;font-size:75%;font-style:italic;margin-left:2em}body.outfits-edit #preview-search-form-no-results{display:none}body.outfits-edit #preview-search-form-help{font-size:87.5%;margin-left:2em}body.outfits-edit .search-helper{font-family:inherit}body.outfits-edit .possible-error{display:none}body.outfits-edit.fullscreen{height:100%}body.outfits-edit.fullscreen #container{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;height:100%;margin:0 auto;min-width:800px;padding-top:2.5em;position:relative;width:80%}body.outfits-edit.fullscreen #short-url-response{position:static}body.outfits-edit.fullscreen #preview{width:100%}body.outfits-edit.fullscreen #preview-sidebar{float:right;margin:0;position:relative;width:400px}body.outfits-edit.fullscreen #preview-sidebar.viewing-saving-outfit{height:auto;max-height:100%}body.outfits-edit.fullscreen #preview-search-form{bottom:1.5em;left:0;overflow:auto;padding:0.5em 1em;position:absolute;width:100%}body.outfits-edit.fullscreen #preview-search-form-help div{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;width:48%}body.outfits-edit.fullscreen #footer{bottom:0;left:0;position:absolute;width:100%}body.outfits-edit.fullscreen #footer ul,body.outfits-edit.fullscreen #footer li,body.outfits-edit.fullscreen #footer p,body.outfits-edit.fullscreen #footer div{display:inline-block;vertical-align:middle;padding:0}body.outfits-edit.fullscreen #footer>ul{margin-right:2em}body.outfits-edit.fullscreen #footer>p{margin:0}body.outfits-edit.fullscreen #footer>ul,body.outfits-edit.fullscreen #footer div,body.outfits-edit.fullscreen #footer p{margin-top:6px}body.outfits-edit .object{padding:6px;position:relative}body.outfits-edit .object ul{display:none;left:0;list-style:none;position:absolute;top:0}body.outfits-edit .object ul li{margin-bottom:0.25em}body.outfits-edit .object ul li a{-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#aaa url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;-moz-opacity:0.9;-webkit-opacity:0.9;-o-opacity:0.9;-khtml-opacity:0.9;font-size:80%}body.outfits-edit .object ul li a:hover{background-color:#005300}body.outfits-edit .object ul li a:hover{color:#fff}body.outfits-edit .object ul li a:active{top:1px}body.outfits-edit .object ul li a:hover{background-color:#999}body.outfits-edit .object .unwear-item,body.outfits-edit .object .uncloset-item{display:none}body.outfits-edit .object.worn .wear-item{display:none}body.outfits-edit .object.worn .unwear-item{display:block}body.outfits-edit .object.closeted .closet-item{display:none}body.outfits-edit .object.closeted .uncloset-item{display:block}body.outfits-edit .object:hover ul,body.outfits-edit .object:hover .object-info{display:block}body.outfits-edit .nc-icon{background:url(/assets/nc-9a2c00300918831da590d36ed24265de.png) no-repeat;height:16px;position:absolute;right:16px;text-indent:-9999px;top:64px;width:16px}body.outfits-edit .nc-icon:hover{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.outfits-edit .object-info{-webkit-border-radius:12px;-moz-border-radius:12px;-ms-border-radius:12px;-o-border-radius:12px;border-radius:12px;-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;background:#aaa;color:#fff;display:none;height:16px;position:absolute;right:8px;top:0;width:16px}body.outfits-edit .object-info span{font-family:"Droid Serif",Georgia,"Times New Roman",Times,serif;font-weight:bold;position:relative;top:-2px}body.outfits-edit .object-info:hover{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-edit #preview-outfits{display:none;text-align:left}body.outfits-edit #preview-outfits>ul{font-size:0;list-style:none;margin-left:24px;margin-right:24px;background:url(/assets/loading-752475b46d09cab818e599df9f85fa21.gif) no-repeat center top;display:none;font-family:"Droid Sans",Helvetica,Arial,Verdana,sans-serif;margin:0 auto 1em;min-height:16px;width:336px}body.outfits-edit #preview-outfits>ul>li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;overflow:hidden;position:relative;font-size:14px}body.outfits-edit #preview-outfits>ul>li .outfit-star{bottom:-2px;height:16px;position:relative;width:16px;background-image:url(/assets/unstarred-5c6db492b4a13459925e830d5c58a1d3.png);background-position:left top;background-repeat:no-repeat;cursor:pointer;display:block;float:left;margin-right:8px}body.outfits-edit #preview-outfits>ul>li.starred .outfit-star{background-image:url(/assets/star-a83bea39507926bc81a44216af5ed9d5.png)}body.outfits-edit #preview-outfits>ul>li.loading .outfit-star{background-image:url(/assets/loading-752475b46d09cab818e599df9f85fa21.gif)}body.outfits-edit #preview-outfits>ul>li header,body.outfits-edit #preview-outfits>ul>li footer{color:#fff;left:0;position:absolute;z-index:2;background:#000;background:rgba(0,0,0,0.75)}body.outfits-edit #preview-outfits>ul>li header{bottom:0}body.outfits-edit #preview-outfits>ul>li footer{top:0}body.outfits-edit #preview-outfits>ul>li a{color:#fff}body.outfits-edit #preview-outfits>ul.loaded{background:transparent}body.outfits-edit #preview-outfits>ul>li{height:110px;margin:1px;width:110px}body.outfits-edit #preview-outfits>ul>li header,body.outfits-edit #preview-outfits>ul>li footer,body.outfits-edit #preview-outfits>ul>li .outfit-delete-confirmation{font-size:12px;padding:2px 4px;width:102px}body.outfits-edit #preview-outfits>ul>li header{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;bottom:0;cursor:pointer}body.outfits-edit #preview-outfits>ul>li footer,body.outfits-edit #preview-outfits>ul>li .outfit-delete-confirmation{display:none}body.outfits-edit #preview-outfits>ul>li .outfit-delete-confirmation{color:#fff;left:0;position:absolute;z-index:2;background:#ff3232;background:rgba(255,50,50,0.75);text-align:center;top:0}body.outfits-edit #preview-outfits>ul>li .outfit-delete-confirmation span{font-weight:bold}body.outfits-edit #preview-outfits>ul>li .outfit-thumbnail-wrapper{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5;background-image:url(/assets/small_default.png);background-position:center center;background-size:110px 110px;cursor:pointer;height:150px;left:-20px;position:absolute;top:-24px;width:150px;z-index:1}body.outfits-edit #preview-outfits>ul>li .outfit-thumbnail{display:none}body.outfits-edit #preview-outfits>ul>li .outfit-star{bottom:0;margin-right:4px}body.outfits-edit #preview-outfits>ul>li .outfit-delete{float:right}body.outfits-edit #preview-outfits>ul>li .outfit-rename-button{float:left}body.outfits-edit #preview-outfits>ul>li .outfit-rename-button,body.outfits-edit #preview-outfits>ul>li .outfit-delete{font-size:85%;text-decoration:none}body.outfits-edit #preview-outfits>ul>li .outfit-rename-button:hover,body.outfits-edit #preview-outfits>ul>li .outfit-delete:hover{text-decoration:underline}body.outfits-edit #preview-outfits>ul>li .outfit-rename-form{display:none}body.outfits-edit #preview-outfits>ul>li .outfit-rename-form input{background:transparent;border:1px solid #fff;width:6em}body.outfits-edit #preview-outfits>ul>li:hover header{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-edit #preview-outfits>ul>li:hover .outfit-thumbnail-wrapper{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75}body.outfits-edit #preview-outfits>ul>li:hover footer{display:block}body.outfits-edit #preview-outfits>ul>li.active header{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1;font-weight:bold}body.outfits-edit #preview-outfits>ul>li.active .outfit-thumbnail-wrapper{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-edit #preview-outfits>ul>li.confirming-deletion footer{display:none}body.outfits-edit #preview-outfits>ul>li.confirming-deletion .outfit-delete-confirmation{display:block}body.outfits-edit #preview-outfits>ul>li.renaming .outfit-name{display:none}body.outfits-edit #preview-outfits>ul>li.renaming .outfit-rename-form{display:inline}body.outfits-edit #preview-outfits>ul>li.thumbnail-available{background:transparent}body.outfits-edit #preview-outfits>ul>li.thumbnail-available .outfit-thumbnail-wrapper{background-image:none}body.outfits-edit #preview-outfits>ul>li.thumbnail-available .outfit-thumbnail{display:block}body.outfits-edit #preview-outfits>ul>li.loading .outfit-star{background-image:url(/assets/loading_outfit_pane-f34dd94044e60caf13b6a076650d99d3.gif)}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in{text-align:center;overflow-x:hidden}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in img{border-color:#060;border-style:solid;border-width:1px 0}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in figure{display:block;margin:0 0 1em 0;padding:0}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in figcaption{display:block;font-weight:bold}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in p{margin-left:24px;margin-right:24px;font-size:85%}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in{-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:#006400 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in:hover{background-color:#005300}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in:hover{color:#fff}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in:active{top:1px}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in:hover{background-color:#ee4b00}body.outfits-edit #preview-sharing{display:none}body.outfits-edit #preview-sharing #preview-sharing-urls{margin-left:24px;margin-right:24px;display:none;margin-bottom:1em;margin-top:1em}body.outfits-edit #preview-sharing #preview-sharing-urls li{display:block;padding:0.25em 0;width:100%}body.outfits-edit #preview-sharing #preview-sharing-urls li label{display:block;font-weight:bold}body.outfits-edit #preview-sharing #preview-sharing-urls li input{display:block;width:100%}body.outfits-edit #preview-sharing #preview-sharing-url-formats{margin-left:24px;margin-right:24px;select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:none;font-size:0;text-align:center}body.outfits-edit #preview-sharing #preview-sharing-url-formats li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;border:1px solid #060;border-left-width:0;border-right-color:#ada;color:#484;cursor:pointer;font-size:12px;padding:0 2em}body.outfits-edit #preview-sharing #preview-sharing-url-formats li.active{background:#efe;color:inherit;font-weight:bold}body.outfits-edit #preview-sharing #preview-sharing-url-formats li:first-child{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;border-bottom-left-radius:5px;border-left-width:1px}body.outfits-edit #preview-sharing #preview-sharing-url-formats li:last-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;border-bottom-right-radius:5px;border-right-color:#060}body.outfits-edit #preview-sharing #preview-sharing-thumbnail-wrapper{border:1px solid #ada;display:block;height:150px;margin:1em auto 0;position:relative;width:150px}body.outfits-edit #preview-sharing #preview-sharing-thumbnail-loading{height:100%;left:0;position:absolute;top:0;width:100%}body.outfits-edit #preview-sharing #preview-sharing-thumbnail-loading span{color:#484;font-size:85%;margin-top:-0.75em;position:absolute;text-align:center;top:50%;width:100%}body.outfits-edit #preview-sharing #preview-sharing-thumbnail,body.outfits-edit #preview-sharing #preview-sharing-thumbnail-generating{display:none}body.outfits-edit #preview-sharing #preview-sharing-beta-note{margin-left:24px;margin-right:24px;background:#fff6bf;border:1px solid #ffd324;color:#514721;font-size:85%;margin-top:1em;text-align:center}body.outfits-edit #preview-sharing.urls-loaded #preview-sharing-thumbnail-saving{display:none}body.outfits-edit #preview-sharing.urls-loaded #preview-sharing-urls,body.outfits-edit #preview-sharing.urls-loaded #preview-sharing-url-formats,body.outfits-edit #preview-sharing.urls-loaded #preview-sharing-thumbnail-generating{display:block}body.outfits-edit #preview-sharing.urls-loaded.thumbnail-loaded #preview-sharing-thumbnail-loading{display:none}body.outfits-edit #preview-sharing.urls-loaded.thumbnail-loaded #preview-sharing-thumbnail{display:block}body.outfits-edit #preview-sharing.urls-loaded.thumbnail-available #preview-sharing-thumbnail-loading{-moz-opacity:0.85;-webkit-opacity:0.85;-o-opacity:0.85;-khtml-opacity:0.85}body.outfits-edit #preview-sharing.urls-loaded.thumbnail-available #preview-sharing-thumbnail{display:block}body.outfits-edit .preview-sidebar-nav{float:right;font-size:85%;margin-right:24px;margin-top:1em}body.outfits-edit #preview-sidebar #preview-sidebar-navbar-closet{background:#fff;border-bottom-color:#fff;font-weight:bold}body.outfits-edit #preview-sidebar.viewing-outfits #preview-sidebar-navbar-closet,body.outfits-edit #preview-sidebar.sharing #preview-sidebar-navbar-closet{background:transparent;border-bottom:1px solid #ada;font-weight:normal}body.outfits-edit #preview-sidebar.viewing-outfits #preview-sidebar-navbar-outfits,body.outfits-edit #preview-sidebar.sharing #preview-sidebar-navbar-sharing{background:#fff;border-bottom-color:#fff;font-weight:bold}body.outfits-edit #preview-sidebar-navbar{-webkit-border-radius:10px 10px 0 0;-moz-border-radius:10px 10px 0 0;-ms-border-radius:10px 10px 0 0;-o-border-radius:10px 10px 0 0;border-radius:10px 10px 0 0;overflow:hidden;display:inline-block;font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;background:#efe;border:1px solid #ada;border-bottom:0;font-size:150%}body.outfits-edit #preview-sidebar-navbar{display:block}body.outfits-edit #preview-sidebar-navbar>div{background:transparent;border-bottom:1px solid #ada;font-weight:normal;cursor:pointer;float:left;border-left:1px solid #ada;padding:0.5em 0;text-align:center;width:132px}body.outfits-edit #preview-sidebar-navbar>div:first-child{border-left:0}body.outfits-edit #preview-sidebar-content{-webkit-border-radius:0 0 10px 10px;-moz-border-radius:0 0 10px 10px;-ms-border-radius:0 0 10px 10px;-o-border-radius:0 0 10px 10px;border-radius:0 0 10px 10px;border:1px solid #ada;border-top:0;height:300px;overflow:auto}body.outfits-edit #save-success,body.outfits-edit #save-error,body.outfits-edit #outfit-not-found,body.outfits-edit #preview-sidebar-donation-request{margin-left:24px;margin-right:24px;display:none;margin-top:1em;text-align:center}body.outfits-edit #preview-sidebar-donation-request{background:#e6efc2;border:1px solid #c6d880;color:#264409;font-size:85%;padding:1em}body.outfits-edit #preview-sidebar-donation-request-no-thanks{margin-left:1em}body.outfits-edit #save-success{background:#e6efc2;border:1px solid #c6d880;color:#264409}body.outfits-edit #save-error,body.outfits-edit #outfit-not-found{background:#fbe3e4;border:1px solid #fbc2c4;color:#8a1f11}body.outfits-edit #userbar-session-message{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5;display:none}body.outfits-edit #new-outfit-name{font:inherit;line-height:1}body.outfits-edit #pet-type-form,body.outfits-edit #pet-state-form,body.outfits-edit #preview-swf,body.outfits-edit #preview-search-form{position:relative}body.outfits-edit .control-overlay{height:100%;left:0;position:absolute;top:0;width:100%;z-index:5}body.outfits-edit #preview-sidebar-nav-outfits,body.outfits-edit #save-outfit-signed-in{display:none}body.outfits-edit form#save-outfit-form{display:none;margin-right:0;padding:0}body.outfits-edit form#save-outfit-form .outfit-star{bottom:-2px;height:16px;position:relative;width:16px;background-image:url(/assets/unstarred-5c6db492b4a13459925e830d5c58a1d3.png);background-position:left top;background-repeat:no-repeat;cursor:pointer;display:block;float:left;margin-right:8px}body.outfits-edit form#save-outfit-form.starred .outfit-star{background-image:url(/assets/star-a83bea39507926bc81a44216af5ed9d5.png)}body.outfits-edit form#save-outfit-form.loading .outfit-star{background-image:url(/assets/loading-752475b46d09cab818e599df9f85fa21.gif)}body.outfits-edit form#save-outfit-form .outfit-star{margin-left:-24px;margin-right:0}body.outfits-edit form#save-outfit-form .outfit-star,body.outfits-edit form#save-outfit-form input,body.outfits-edit form#save-outfit-form button{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;float:none;vertical-align:top}body.outfits-edit form#save-outfit-form .outfit-star{margin-top:0.25em}body.outfits-edit .outfit-url{font-size:75%}body.outfits-edit #preview-search-form-error{background:#fbe3e4;border:1px solid #fbc2c4;color:#8a1f11;padding:0.25em 0.5em}body.outfits-edit.user-signed-in #preview-sidebar-nav-outfits{display:block}body.outfits-edit.user-signed-in #save-outfit{display:inline-block}body.outfits-edit.user-signed-in #save-outfit-wrapper.active-outfit #save-outfit{display:none}body.outfits-edit.user-signed-in #save-outfit-wrapper.active-outfit #save-current-outfit,body.outfits-edit.user-signed-in #save-outfit-wrapper.active-outfit #save-outfit-copy{display:inline-block}body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #save-outfit-form{display:block}body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #save-outfit,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #save-current-outfit,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #save-outfit-copy,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #current-outfit-permalink,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #shared-outfit-permalink,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #share-outfit,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #shared-outfit-url{display:none}body.outfits-edit.user-signed-in .preview-search-form-your-items{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.outfits-edit.user-signed-in #preview-outfits-not-logged-in{display:none}body.outfits-edit.user-signed-in #preview-outfits-list{display:block}body.outfits-edit.user-not-signed-in #save-outfit-not-signed-in{display:inline-block}body.outfits-edit #save-outfit-wrapper.shared-outfit #shared-outfit-permalink,body.outfits-edit #save-outfit-wrapper.shared-outfit #shared-outfit-url{display:inline-block}body.outfits-edit #save-outfit-wrapper.shared-outfit #current-outfit-permalink{display:none !important}body.outfits-index #outfits{font-size:0;list-style:none}body.outfits-index #outfits>li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;overflow:hidden;position:relative;font-size:14px}body.outfits-index #outfits>li .outfit-star{bottom:-2px;height:16px;position:relative;width:16px;background-image:url(/assets/unstarred-5c6db492b4a13459925e830d5c58a1d3.png);background-position:left top;background-repeat:no-repeat;cursor:pointer;display:block;float:left;margin-right:8px}body.outfits-index #outfits>li.starred .outfit-star{background-image:url(/assets/star-a83bea39507926bc81a44216af5ed9d5.png)}body.outfits-index #outfits>li.loading .outfit-star{background-image:url(/assets/loading-752475b46d09cab818e599df9f85fa21.gif)}body.outfits-index #outfits>li header,body.outfits-index #outfits>li footer{color:#fff;left:0;position:absolute;z-index:2;background:#000;background:rgba(0,0,0,0.75)}body.outfits-index #outfits>li header{bottom:0}body.outfits-index #outfits>li footer{top:0}body.outfits-index #outfits>li a{color:#fff}body.outfits-index #outfits>li{height:150px;margin:2px;width:150px}body.outfits-index #outfits>li header,body.outfits-index #outfits>li footer{padding:2px 4px;width:142px}body.outfits-index #outfits>li footer{display:none}body.outfits-index #outfits>li footer .outfit-edit-link{float:left;text-decoration:none}body.outfits-index #outfits>li footer form{float:right}body.outfits-index #outfits>li footer form .outfit-delete-button{margin:0;padding:0}body.outfits-index #outfits>li footer .outfit-edit-link:hover,body.outfits-index #outfits>li footer .outfit-delete-button:hover{text-decoration:underline}body.outfits-index #outfits>li .outfit-star{cursor:auto}body.outfits-index #outfits>li .outfit-name{text-decoration:none}body.outfits-index #outfits>li .outfit-name:hover{text-decoration:underline}body.outfits-index #outfits>li:hover footer{display:block}body.outfits-index #outfits .outfit-delete-button{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;background:transparent;display:inline;padding:0;color:inherit;-moz-box-shadow:none;-webkit-box-shadow:none;text-shadow:none;border-bottom:0;position:static;font-weight:normal;line-height:inherit}body.outfits-index #outfits .outfit-delete-button:hover{background:transparent;color:inherit}body.outfits-index #outfits .outfit-delete-button:active{top:auto}body.outfits-new .campaign-progress-wrapper{-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;border-radius:8px;background:#aaa;background-image:linear-gradient(#cccccc,#aaaaaa);border:4px solid #060;clear:both;margin-bottom:1.5em;position:relative;visibility:hidden}body.outfits-new .campaign-progress-wrapper .button{background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;font-size:75%;margin-left:1em;padding:0.25em 0.75em}body.outfits-new .campaign-progress-wrapper .button:hover{background-color:#ee4b00}body.outfits-new .campaign-progress-wrapper .button:after{content:none}body.outfits-new .campaign-progress{background:#060;background-image:linear-gradient(#228822,#006600);border-right:1px solid #060}body.outfits-new .campaign-progress-wrapper,body.outfits-new .campaign-progress{height:2.5em}body.outfits-new .campaign-progress-label{text-shadow:#777,-1px,-1px,0;font-size:150%;left:0;position:absolute;top:0;text-align:center;width:100%}body.outfits-new .campaign-progress-label,body.outfits-new .campaign-progress-label a{color:#fff}body.outfits-new.campaign-loaded .campaign-progress-wrapper{visibility:visible}body.outfits-new #outfit-forms{overflow:hidden;display:inline-block;background:#efe;border:1px solid #060;padding:1em;position:relative}body.outfits-new #outfit-forms{display:block}body.outfits-new #outfit-forms h1{margin-bottom:0}body.outfits-new #outfit-forms h2{font-size:150%;font-style:italic;text-indent:1em}body.outfits-new #outfit-forms #pet-preview{float:left;height:300px;margin-right:2em;position:relative;width:300px}body.outfits-new #outfit-forms #pet-preview img{height:100%;width:100%}body.outfits-new #outfit-forms #pet-preview.loading img{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.outfits-new #outfit-forms #pet-preview.hidden img{display:none}body.outfits-new #outfit-forms #pet-preview.loaded{cursor:pointer}body.outfits-new #outfit-forms #pet-preview span{background:gray;background:rgba(0,0,0,0.5);bottom:0;color:#fff;padding:0.25em 0.5em;position:absolute;right:0}body.outfits-new #outfit-forms #pet-preview span:empty{display:none}body.outfits-new #outfit-forms fieldset{position:relative;left:16px}body.outfits-new #outfit-forms fieldset legend{margin-left:-16px}body.outfits-new #load-pet-to-wardrobe{font-size:175%;margin-bottom:1em;margin-top:2em}body.outfits-new #load-pet-to-wardrobe input{font-size:67%;padding:0.5em;width:10em}body.outfits-new #load-pet-to-wardrobe button{background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;font-size:125%;padding:8px 14px 9px;font-size:67%}body.outfits-new #load-pet-to-wardrobe button:hover{background-color:#ee4b00}body.outfits-new #description,body.outfits-new #top-contributors{float:left}body.outfits-new #description{margin-right:2%;width:64%}body.outfits-new #top-contributors{border:1px solid #cec;margin-top:1em;padding:1%;width:30%}body.outfits-new #top-contributors ol{margin-left:2em;padding-left:1em}body.outfits-new #top-contributors>a{font-size:80%;display:block;text-align:right}body.outfits-new #how-can-i-help,body.outfits-new #i-found-something{background:#efe;border:1px solid #060;padding:1em;float:left;padding:1%;width:46%}body.outfits-new #how-can-i-help h2,body.outfits-new #i-found-something h2{font-style:italic}body.outfits-new #how-can-i-help input,body.outfits-new #how-can-i-help button,body.outfits-new #i-found-something input,body.outfits-new #i-found-something button{font-size:115%}body.outfits-new #how-can-i-help input[type=text],body.outfits-new #how-can-i-help body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.outfits-new #how-can-i-help textarea,body.outfits-new #i-found-something input[type=text],body.outfits-new #i-found-something body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.outfits-new #i-found-something textarea{border-color:#060;width:12em}body.outfits-new #how-can-i-help{margin-right:1%}body.outfits-new #i-found-something{margin-left:1%}body.outfits-new #i-found-something a{float:right;font-size:87.5%;margin-top:1em}body.outfits-new #sections{overflow:hidden;display:inline-block;display:table;list-style:none;margin-top:1em}body.outfits-new #sections{display:block}body.outfits-new #sections h3{margin-bottom:0.25em}body.outfits-new #sections li{border-left-color:#060;border-left-style:solid;border-left-width:1px;display:table-cell;padding:0.5em;position:relative;width:33.33333%}body.outfits-new #sections li:first-child{border-left:0}body.outfits-new #sections div{color:#484;font-size:75%;margin-left:1em;z-index:2}body.outfits-new #sections h4,body.outfits-new #sections input{font-size:116%}body.outfits-new #sections h4,body.outfits-new #sections input[type=text],body.outfits-new #sections body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.outfits-new #sections textarea{color:inherit}body.outfits-new #sections h4 a{background:#ffffc0}body.outfits-new #sections img{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;float:right;margin-left:0.5em}body.outfits-new #sections img:hover{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-new #sections p{min-height:4.5em}body.outfits-new #whats-new{overflow:hidden;display:inline-block;height:300px;margin-bottom:1em}body.outfits-new #whats-new{display:block}body.outfits-new #whats-new #blog-preview{background:#efe;border:1px solid #060;display:none;float:left;height:274px;margin-right:12px;padding:12px;width:495.33333px}body.outfits-new #whats-new #blog-preview>h2{font-size:150%}body.outfits-new #whats-new #blog-preview>div,body.outfits-new #whats-new #blog-preview>a{font-size:85%}body.outfits-new #whats-new #blog-preview>div{height:200px;margin-bottom:0.75em;overflow:auto;position:relative}body.outfits-new #whats-new #blog-preview>div ul,body.outfits-new #whats-new #blog-preview>div ol{margin-bottom:1em;padding:0 1.5em}body.outfits-new #whats-new #blog-preview #blog-preview-linkback{float:left}body.outfits-new #whats-new #blog-preview #blog-preview-comments{float:right;font-size:85%;margin-left:1em}body.outfits-new #whats-new #newest-items{float:right;text-align:center;width:266.66667px}body.outfits-new #whats-new #newest-items h2{font-size:150%}body.outfits-new #whats-new #newest-items img{height:80px;width:80px}body.outfits-new #latest-contribution{border-color:#ada;border-style:solid;border-width:1px 0;font-size:85%;margin:1em 0;padding:0.5em 0;text-align:center}body.outfits-new #latest-contribution #recent-contributions-link{font-weight:bold;margin-right:0.5em}body.outfits-new #latest-contribution #recent-contributions-link::after{content:":"}body.outfits-new #latest-contribution #latest-contribution-created-at{color:#484;margin-left:0.5em}body.outfits-show .campaign-progress-wrapper{-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;border-radius:8px;background:#aaa;background-image:linear-gradient(#cccccc,#aaaaaa);border:4px solid #060;clear:both;margin-bottom:1.5em;position:relative;visibility:hidden}body.outfits-show .campaign-progress-wrapper .button{background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;font-size:75%;margin-left:1em;padding:0.25em 0.75em}body.outfits-show .campaign-progress-wrapper .button:hover{background-color:#ee4b00}body.outfits-show .campaign-progress-wrapper .button:after{content:none}body.outfits-show .campaign-progress{background:#060;background-image:linear-gradient(#228822,#006600);border-right:1px solid #060}body.outfits-show .campaign-progress-wrapper,body.outfits-show .campaign-progress{height:2.5em}body.outfits-show .campaign-progress-label{text-shadow:#777,-1px,-1px,0;font-size:150%;left:0;position:absolute;top:0;text-align:center;width:100%}body.outfits-show .campaign-progress-label,body.outfits-show .campaign-progress-label a{color:#fff}body.outfits-show.campaign-loaded .campaign-progress-wrapper{visibility:visible}body.outfits-show #title{float:left}body.outfits-show #outfit-wardrobe-link{float:left;font-size:85%;margin-left:2em;margin-top:0.75em}body.outfits-show #outfit-user{float:right;margin-top:1em}body.outfits-show #preview-wrapper{clear:both;height:400px;margin:0 auto 1em;position:relative;width:400px}body.outfits-show #preview-wrapper #preview-swf{left:0;position:absolute;top:0}body.outfits-show #outfit-items{text-align:center}body.pets-bulk #needed-items-form,body.pets-bulk #bulk-pets-form{text-align:center}body.pets-bulk #needed-items-form #needed-items-pet{border-top:1px solid #ada;display:none;margin-top:1em;padding-top:1em}body.pets-bulk #needed-items-form #needed-items-pet h4{font-size:150%;margin-bottom:0.5em}body.pets-bulk #needed-items-form #needed-items-pet #needed-items-reload{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;font-size:12px;margin-left:1em;vertical-align:middle}body.pets-bulk #needed-items-form #needed-items-alert{display:none;margin-top:0.5em}body.pets-bulk #needed-items-form #needed-items-pet-thumbnail{height:50px;width:50px}body.pets-bulk #needed-items-form #needed-items-pet-items li.owned{background:#efe;border:1px solid #060}body.pets-bulk #needed-items-form .object-owned{color:#484;display:block;font-size:75%;font-style:italic;padding-bottom:0.25em}body.pets-bulk #needed-items-form.loading-pet #needed-items-pet-name-field,body.pets-bulk #needed-items-form.loading-items #needed-items-pet-name-field{background-image:url(/assets/loading-752475b46d09cab818e599df9f85fa21.gif);background-position:center right;background-repeat:no-repeat}body.pets-bulk #needed-items-form.loading-pet #needed-items-pet-items,body.pets-bulk #needed-items-form.loading-items #needed-items-pet-items{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.pets-bulk #needed-items-form.loading-pet #needed-items-pet h4{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.pets-bulk #needed-items-form.loaded #needed-items-pet{display:block}body.pets-bulk #needed-items-form.failed #needed-items-alert{display:block}body.pets-bulk #bulk-pets-form{border-top:1px solid #060;margin-top:12px;padding-top:12px}body.pets-bulk #bulk-pets-form textarea{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;display:inline;font:inherit;height:1.5em;overflow:hidden;resize:none}body.pets-bulk #bulk-pets-form ul{list-style:none;margin-top:1em}body.pets-bulk #bulk-pets-form ul li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;background:#eee;margin:0 auto;min-width:25%;text-align:left}body.pets-bulk #bulk-pets-form ul li .waiting-message,body.pets-bulk #bulk-pets-form ul li .loading-message,body.pets-bulk #bulk-pets-form ul li .response{display:none;font-size:75%;font-style:italic;margin-left:75px}body.pets-bulk #bulk-pets-form ul li.waiting .waiting-message,body.pets-bulk #bulk-pets-form ul li.loading .loading-message,body.pets-bulk #bulk-pets-form ul li.loaded .response,body.pets-bulk #bulk-pets-form ul li.failed .response{display:block}body.pets-bulk #bulk-pets-form ul li.loaded{background:#e6efc2}body.pets-bulk #bulk-pets-form ul li.failed{background:#fbe3e4}body.pets-bulk #bulk-pets-form ul img{float:left;height:50px;width:50px}body.pets-bulk.js .noscript{display:none}body.pets-bulk.js .script-only{display:block}body.pets-bulk .script-only{display:none}body.static-donate .campaign-progress-wrapper{-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;border-radius:8px;background:#aaa;background-image:linear-gradient(#cccccc,#aaaaaa);border:4px solid #060;clear:both;margin-bottom:1.5em;position:relative;visibility:hidden}body.static-donate .campaign-progress-wrapper .button{background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x;font-size:75%;margin-left:1em;padding:0.25em 0.75em}body.static-donate .campaign-progress-wrapper .button:hover{background-color:#ee4b00}body.static-donate .campaign-progress-wrapper .button:after{content:none}body.static-donate .campaign-progress{background:#060;background-image:linear-gradient(#228822,#006600);border-right:1px solid #060}body.static-donate .campaign-progress-wrapper,body.static-donate .campaign-progress{height:2.5em}body.static-donate .campaign-progress-label{text-shadow:#777,-1px,-1px,0;font-size:150%;left:0;position:absolute;top:0;text-align:center;width:100%}body.static-donate .campaign-progress-label,body.static-donate .campaign-progress-label a{color:#fff}body.static-donate.campaign-loaded .campaign-progress-wrapper{visibility:visible}body.static-donate #title{margin-bottom:0}body.static-donate h2{font-style:italic;font-weight:normal}body.static-donate #title,body.static-donate h2{clear:left;float:left}body.static-donate h2{margin-bottom:0.25em}body.static-donate #image-mode-data{clear:both;display:block;float:left;margin-right:20px;width:344px}body.static-donate #image-mode-preview{border:1px solid #060;display:block;margin:0 0 2em 0;padding-top:20px;padding-right:20px;padding-bottom:13.33333px;padding-left:20px}body.static-donate #image-mode-preview img{border:1px solid #060;height:300px;margin-bottom:0.5em;width:300px}body.static-donate #image-mode-preview figcaption{display:block;font-family:Calligraffitti;font-size:250%;text-align:center}body.static-donate #campaign-donors{display:none;margin-right:20px;width:344px}body.static-donate #campaign-donors ol{font-size:85%;padding-left:2em}body.static-donate #campaign-donors ol span{color:#484;float:right}body.static-donate #campaign-donors.has-donors{display:block}body.static-donate #image-mode-beta{background:#efe;border:1px solid #060;padding:1em;border-width:1px;display:block;float:left;margin-bottom:1em;padding:10px 15px;text-align:center;width:404px}body.static-donate #image-mode-beta header{display:block;font-weight:bold}body.static-donate #image-mode-beta p{font-family:"Droid Sans",Helvetica,Arial,Verdana,sans-serif;font-size:75%;margin:0}body.static-donate #image-mode-beta form{margin:0.75em 0}body.static-donate #image-mode-beta form label{font-size:85%;font-weight:bold}body.static-donate #image-mode-beta form label:after{content:":"}body.static-donate #image-mode-beta form input{width:5em}body.static-donate #image-mode-beta form button{background:#ff5c00 url(/assets/alert-overlay-1761c70e8456d8ddae4e0caca3a58c21.png) repeat-x}body.static-donate #image-mode-beta form button:hover{background-color:#ee4b00}body.static-donate #image-mode-description,body.static-donate #image-mode-comments{float:right;width:436px}body.static-image_mode h2{margin-bottom:0.25em;margin-top:1.25em}body.static-image_mode ol,body.static-image_mode ul{font-family:"Droid Serif",Georgia,"Times New Roman",Times,serif;margin-bottom:1em;padding-left:3em}body.static-terms{text-align:center}body.users-top_contributors{text-align:center}body.users-top_contributors #top-contributors{border-spacing:0;border-width:1px 1px 0 0;margin:1em auto}body.users-top_contributors #top-contributors,body.users-top_contributors #top-contributors td,body.users-top_contributors #top-contributors th{border-color:#040;border-style:solid}body.users-top_contributors #top-contributors td,body.users-top_contributors #top-contributors th{border-width:0 0 1px 1px;padding:0.5em 1em} diff --git a/public/assets/application-27ee9d2f72cecf05f5e0fb5e4c6fb198.css.gz b/public/assets/application-27ee9d2f72cecf05f5e0fb5e4c6fb198.css.gz new file mode 100644 index 00000000..ad39eecd Binary files /dev/null and b/public/assets/application-27ee9d2f72cecf05f5e0fb5e4c6fb198.css.gz differ diff --git a/public/assets/application-f00251f452c48102b58e406cc891259e.js b/public/assets/application-f00251f452c48102b58e406cc891259e.js new file mode 100644 index 00000000..1c8a0e79 --- /dev/null +++ b/public/assets/application-f00251f452c48102b58e406cc891259e.js @@ -0,0 +1 @@ +; \ No newline at end of file diff --git a/public/assets/application-f00251f452c48102b58e406cc891259e.js.gz b/public/assets/application-f00251f452c48102b58e406cc891259e.js.gz new file mode 100644 index 00000000..ab83549f Binary files /dev/null and b/public/assets/application-f00251f452c48102b58e406cc891259e.js.gz differ diff --git a/public/assets/application.css b/public/assets/application.css new file mode 100644 index 00000000..17a99aae --- /dev/null +++ b/public/assets/application.css @@ -0,0 +1 @@ +@charset "US-ASCII";@import url(http://fonts.googleapis.com/css?family=Droid+Sans:400,700);@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);@import url(http://fonts.googleapis.com/css?family=Calligraffitti);html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}html,body{height:100%}body{background:#fff;color:#040;font-family:"Droid Sans",Helvetica,Arial,Verdana,sans-serif;font-size:90%;line-height:1.5}a{color:#262}p{font-family:"Droid Serif",Georgia,"Times New Roman",Times,serif}input,button,select{font-family:inherit;font-size:100%}p{margin-bottom:1em}h1,h2,h3{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif}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}.inline-image,body.pets-bulk #bulk-pets-form ul img{margin-right:1em;vertical-align:middle}#container{margin:1em auto;padding-top:3em;position:relative;width:800px}input,button,select,label{cursor:pointer}input[type=text],body.pets-bulk #bulk-pets-form textarea,input[type=password],input[type=search],input[type=number],select,textarea{-moz-border-radius:3px;-webkit-border-radius:3px;background:#fff;border:1px solid #cec;color:#484;padding:0.25em}input[type=text]:focus,body.pets-bulk #bulk-pets-form textarea:focus,input[type=text]:active,body.pets-bulk #bulk-pets-form textarea:active,input[type=password]:focus,input[type=password]:active,input[type=search]:focus,input[type=search]:active,input[type=number]:focus,input[type=number]:active,select:focus,select:active,textarea:focus,textarea:active{color:inherit}textarea{font:inherit}a.button,input[type=submit],button{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1}a.button:hover,input[type=submit]:hover,button:hover{background-color:#005300}a.button:hover,input[type=submit]:hover,button:hover{color:#fff}a.button:active,input[type=submit]:active,button:active{top:1px}a.button.loud,input[type=submit].loud,button.loud{background:#ff5c00 url(/assets/alert-overlay.png) repeat-x;font-size:125%;padding:8px 14px 9px}a.button.loud:hover,input[type=submit].loud:hover,button.loud:hover{background-color:#ee4b00}ul.buttons{margin-bottom:1em}ul.buttons li{list-style:none;margin:0 0.5em}ul.buttons li,ul.buttons li form{display:inline}#footer{clear:both;font-size:75%;margin-bottom:1em;padding-top:2em;text-align:center}#footer ul,#footer div{display:inline;margin:0 1em}#footer li,#footer div ul{display:inline;margin:0 0.5em}#footer #locale-form{float:right}.success,.alert,.warning{margin-bottom:1em;padding:0.25em 0.5em;text-align:center}.success{background:#e6efc2;border:1px solid #c6d880;color:#264409}.alert{background:#fbe3e4;border:1px solid #fbc2c4;color:#8a1f11}.warning{background:#fff6bf;border:1px solid #ffd324;color:#514721}#userbar{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;position:absolute;right:0;top:0}#userbar>*{display:inline;margin:0 0.25em}#userbar-image-mode{font-weight:bold;margin-right:1em;text-decoration:none}#userbar-image-mode img{bottom:-2px;height:16px;position:relative;width:16px}#userbar-log-in{text-decoration:none}#userbar-log-in img{margin-bottom:-4px;margin-right:0.25em}#userbar-log-in span{text-decoration:underline}#userbar-log-in:hover span{text-decoration:none}.object{display:-moz-inline-box;-moz-box-orient:vertical;display:inline-block;vertical-align:middle;*display:inline;*vertical-align:auto;margin:8px 0;padding:0 8px;position:relative;text-align:center;vertical-align:top;width:100px}.object a{text-decoration:none}.object a img{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75}.object img{display:block;height:80px;margin:0 auto;width:80px}.object:hover img,.object a:hover img{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}.object .nc-icon,.object .closeted-icons{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1;background:rgba(255,255,255,0.75);line-height:1;position:absolute;top:64px}.object .nc-icon:hover,.object .closeted-icons:hover{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5;background:transparent}.object .nc-icon,.object .closeted-icons img{display:inline;height:16px;width:16px}.object .nc-icon{right:18px}.object .closeted-icons{left:18px}dt{font-weight:bold}dd{margin:0 0 1.5em 1em}#home-link{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;font-size:175%;font-weight:bold;left:0;line-height:1;padding:0.25em;position:absolute;top:0}#home-link:hover{background:#efe;text-decoration:none}#home-link span:before{content:"<< "}.pagination a,.pagination span{margin:0 0.5em}.pagination .current{font-weight:bold}@font-face{font-family:Delicious;src:local("Delicious"),url(/assets/Delicious-Roman.otf)}@font-face{font-family:Delicious;font-weight:bold;src:local("Delicious"),url(/assets/Delicious-Bold.otf)}@font-face{font-family:Delicious;font-style:italic;src:local("Delicious"),url(/assets/Delicious-Italic.otf)}div.jGrowl{padding:10px;z-index:9999;color:#fff;font-size:12px}div.ie6{position:absolute}div.ie6.top-right{right:auto;bottom:auto;left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.top-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-right{left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.center{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );width:100%}body>div.jGrowl{position:fixed}body>div.jGrowl.top-left{left:0px;top:0px}body>div.jGrowl.top-right{right:0px;top:0px}body>div.jGrowl.bottom-left{left:0px;bottom:0px}body>div.jGrowl.bottom-right{right:0px;bottom:0px}body>div.jGrowl.center{top:0px;width:50%;left:25%}div.center div.jGrowl-notification,div.center div.jGrowl-closer{margin-left:auto;margin-right:auto}div.jGrowl div.jGrowl-notification,div.jGrowl div.jGrowl-closer{background-color:#000;opacity:0.85;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=85);zoom:1;width:235px;padding:10px;margin-top:5px;margin-bottom:5px;font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:1em;text-align:left;display:none;-moz-border-radius:5px;-webkit-border-radius:5px}div.jGrowl div.jGrowl-notification{min-height:40px}div.jGrowl div.jGrowl-notification div.header{font-weight:bold;font-size:0.85em}div.jGrowl div.jGrowl-notification div.close{z-index:99;float:right;font-weight:bold;font-size:1em;cursor:pointer}div.jGrowl div.jGrowl-closer{padding-top:4px;padding-bottom:4px;cursor:pointer;font-size:0.9em;font-weight:bold;text-align:center}@media print{div.jGrowl{display:none}}body.broken_image_reports-new #report-assets li{-moz-border-radius:0.5em;-webkit-border-radius:0.5em;display:-moz-inline-box;-moz-box-orient:vertical;display:inline-block;vertical-align:middle;*display:inline;*vertical-align:auto;border:1px solid #ada;margin:0.5em;padding:0.5em;text-align:center;vertical-align:top;width:150px}body.broken_image_reports-new #report-assets li img,body.broken_image_reports-new #report-assets li span,body.broken_image_reports-new #report-assets li input{display:block;width:100%}body.broken_image_reports-new #report-assets li img{height:150px;width:150px}body.broken_image_reports-new #report-assets li span{font-size:85%}body.closet_hangers-index #title{float:left;margin-right:0.5em}body.closet_hangers-index .flash{clear:both}body.closet_hangers-index #secondary-nav{display:block;margin-top:0.75em}body.closet_hangers-index #title{margin-bottom:0}body.closet_hangers-index #import-link{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#ff5c00 url(/assets/alert-overlay.png) repeat-x}body.closet_hangers-index #import-link:hover{background-color:#005300}body.closet_hangers-index #import-link:hover{color:#fff}body.closet_hangers-index #import-link:active{top:1px}body.closet_hangers-index #import-link:hover{background-color:#ee4b00}body.closet_hangers-index #closet-hangers-items-search{float:right}body.closet_hangers-index #closet-hangers-items-search input[name=q].loading{background-image:url(/assets/loading.gif);background-position:2px center;background-repeat:no-repeat;padding-left:20px}body.closet_hangers-index #closet-hangers-contact{clear:both;color:#484;margin-bottom:1em;margin-left:2em;min-height:16px}body.closet_hangers-index #closet-hangers-contact a,body.closet_hangers-index #closet-hangers-contact>span{text-decoration:none;background-image:url(/assets/neomail.png);background-position:left center;background-repeat:no-repeat;color:inherit;float:left;height:100%;padding-left:20px}body.closet_hangers-index #closet-hangers-contact a:hover,body.closet_hangers-index #closet-hangers-contact>span:hover{text-decoration:underline}body.closet_hangers-index #closet-hangers-contact>span{background-image:url(/assets/neomail_edit.png)}body.closet_hangers-index #closet-hangers-contact input[type=text],body.closet_hangers-index #closet-hangers-contact body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.closet_hangers-index #closet-hangers-contact textarea{width:10em}body.closet_hangers-index #closet-hangers-contact label{font-weight:bold;margin-right:0.5em}body.closet_hangers-index #closet-hangers-contact label:after{content:":"}body.closet_hangers-index #edit-contact-link-to-replace-form,body.closet_hangers-index #cancel-contact-link{display:none}body.closet_hangers-index .edit-contact-link,body.closet_hangers-index #cancel-contact-link{cursor:pointer;text-decoration:underline}body.closet_hangers-index .edit-contact-link:hover,body.closet_hangers-index #cancel-contact-link:hover{text-decoration:none}body.closet_hangers-index #edit-contact-link-to-replace-form #contact-link-has-value{display:none}body.closet_hangers-index #edit-contact-link-to-replace-form #contact-link-no-value{display:inline}body.closet_hangers-index #edit-contact-link-to-replace-form.has-value #contact-link-has-value{display:inline}body.closet_hangers-index #edit-contact-link-to-replace-form.has-value #contact-link-no-value{display:none}body.closet_hangers-index #cancel-contact-link{margin-left:1em}body.closet_hangers-index #toggle-help,body.closet_hangers-index #toggle-compare{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;cursor:pointer;display:none}body.closet_hangers-index #toggle-help:hover,body.closet_hangers-index #toggle-compare:hover{background-color:#005300}body.closet_hangers-index #toggle-help:hover,body.closet_hangers-index #toggle-compare:hover{color:#fff}body.closet_hangers-index #toggle-help:active,body.closet_hangers-index #toggle-compare:active{top:1px}body.closet_hangers-index #closet-hangers-help.hidden{display:none}body.closet_hangers-index #closet-hangers-extras{font-size:85%;margin-bottom:2em;margin-top:2em;text-align:center}body.closet_hangers-index #closet-hangers-extras a{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;margin:0 0.5em}body.closet_hangers-index #closet-hangers-extras a:hover{background-color:#005300}body.closet_hangers-index #closet-hangers-extras a:hover{color:#fff}body.closet_hangers-index #closet-hangers-extras a:active{top:1px}body.closet_hangers-index #closet-hangers-share{margin-bottom:1em}body.closet_hangers-index #closet-hangers-share label{font-weight:bold;margin-right:0.5em}body.closet_hangers-index #closet-hangers-share input{width:30em}body.closet_hangers-index #closet-hangers{clear:both;text-align:center}body.closet_hangers-index #closet-hangers .object .quantity{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;background:#fff;padding:6px 4px 4px;position:absolute;left:18px;line-height:1;text-align:left;top:0}body.closet_hangers-index #closet-hangers .object .quantity span,body.closet_hangers-index #closet-hangers .object .quantity input[type=number]{font-size:16px;font-weight:bold}body.closet_hangers-index #closet-hangers .object form{display:none}body.closet_hangers-index #closet-hangers .object[data-quantity="1"] .quantity{display:none}body.closet_hangers-index .closet-hangers-group{border-top:1px solid #060;margin-bottom:2em;padding-bottom:1em}body.closet_hangers-index .closet-hangers-group>header{border-bottom:1px solid #ada;display:block;margin-bottom:0.25em;padding:0.25em 0;position:relative}body.closet_hangers-index .closet-hangers-group>header h3{font-size:250%;margin:0}body.closet_hangers-index .closet-hangers-group>header .add-closet-list{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;bottom:50%;margin-bottom:-1em;position:absolute;right:1em}body.closet_hangers-index .closet-hangers-group>header .add-closet-list:hover{background-color:#005300}body.closet_hangers-index .closet-hangers-group>header .add-closet-list:hover{color:#fff}body.closet_hangers-index .closet-hangers-group>header .add-closet-list:active{top:1px}body.closet_hangers-index .closet-hangers-group>header .add-closet-list:active{margin-bottom:-1.1em;top:auto}body.closet_hangers-index .closet-hangers-group>header span.show,body.closet_hangers-index .closet-hangers-group>header span.hide{color:#484;display:none;font-size:85%;left:1em;position:absolute;top:1em}body.closet_hangers-index .closet-hangers-group>header span.show:hover,body.closet_hangers-index .closet-hangers-group>header span.hide:hover{color:inherit;text-decoration:underline}body.closet_hangers-index .closet-list{border-bottom:1px solid #ada;padding:0.5em 0;position:relative}body.closet_hangers-index .closet-list .visibility-form{font-size:85%;left:0.5em;position:absolute;text-align:left;top:0.25em;z-index:10}body.closet_hangers-index .closet-list .visibility-form input,body.closet_hangers-index .closet-list .visibility-form select{font-size:inherit;margin-bottom:0;margin-top:0}body.closet_hangers-index .closet-list .visibility-form select{border-color:#fff}body.closet_hangers-index .closet-list .visibility-form input[type=submit]{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#aaa url(/assets/alert-overlay.png) repeat-x;-moz-opacity:0.9;-webkit-opacity:0.9;-o-opacity:0.9;-khtml-opacity:0.9;font-size:80%;font-size:inherit;visibility:hidden}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:hover{background-color:#005300}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:hover{color:#fff}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:active{top:1px}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:hover{background-color:#999}body.closet_hangers-index .closet-list .visibility-form input[type=submit]:active{top:1px}body.closet_hangers-index .closet-list .visibility-form .visibility-descriptions{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;background:#fff;font-style:italic;list-style:none;padding:0 0.5em}body.closet_hangers-index .closet-list .visibility-form .visibility-descriptions li{display:none}body.closet_hangers-index .closet-list .visibility-form:hover .visibility-descriptions li.current{display:block}body.closet_hangers-index .closet-list header{display:block;position:relative}body.closet_hangers-index .closet-list h4{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;font-size:150%;line-height:1;margin:0 auto 0.67em;width:50%}body.closet_hangers-index .closet-list .empty-list{display:none;font-style:italic}body.closet_hangers-index .closet-list .closet-list-controls{display:none;position:absolute;right:1em;top:0}body.closet_hangers-index .closet-list .closet-list-controls a,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#aaa url(/assets/alert-overlay.png) repeat-x;-moz-opacity:0.9;-webkit-opacity:0.9;-o-opacity:0.9;-khtml-opacity:0.9;font-size:80%}body.closet_hangers-index .closet-list .closet-list-controls a:hover,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]:hover{background-color:#005300}body.closet_hangers-index .closet-list .closet-list-controls a:hover,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]:hover{color:#fff}body.closet_hangers-index .closet-list .closet-list-controls a:active,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]:active{top:1px}body.closet_hangers-index .closet-list .closet-list-controls a:hover,body.closet_hangers-index .closet-list .closet-list-controls input[type=submit]:hover{background-color:#999}body.closet_hangers-index .closet-list .closet-list-controls form{display:inline}body.closet_hangers-index .closet-list[data-hangers-count="0"] .empty-list{display:block}body.closet_hangers-index .closet-list.unlisted h4{font-size:125%;font-style:italic}body.closet_hangers-index .closet-list:hover .closet-list-controls{display:block}body.closet_hangers-index .closet-list:hover .visibility-form input[type=submit]{visibility:visible}body.closet_hangers-index .closet-list:hover .visibility-form select{border-color:#ada}body.closet_hangers-index .closet-list:last-child{border-bottom:0}body.closet_hangers-index .closet-list.droppable-active{-moz-border-radius:1em;-webkit-border-radius:1em;background:#efe;border:1px solid #060;padding:1em;border-bottom-width:1px;border-style:dotted;margin:1em 0}body.closet_hangers-index .closet-list.droppable-active .object{-moz-opacity:0.25;-webkit-opacity:0.25;-o-opacity:0.25;-khtml-opacity:0.25}body.closet_hangers-index .closet-list.droppable-active .object.ui-draggable-dragging{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.closet_hangers-index .closet-list.droppable-active .closet-list-controls{display:none}body.closet_hangers-index .closet-list.droppable-active .closet-list-hangers{overflow:hidden}body.closet_hangers-index .closet-list.droppable-active .visibility-form{display:none}body.closet_hangers-index .closet-hangers-group-autocomplete-item span,body.closet_hangers-index .closet-list-autocomplete-item span{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5;font-style:italic;padding:0.2em 0.4em}body.closet_hangers-index .closet-list-autocomplete-item a,body.closet_hangers-index .closet-list-autocomplete-item span{font-size:85%;padding-left:2em}body.closet_hangers-index .closet-hangers-group[data-owned=true] .user-wants,body.closet_hangers-index .closet-hangers-group[data-owned=false] .user-owns{background:#efe;font-weight:bold}body.closet_hangers-index.current-user #closet-hangers .object:hover form{display:inline}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy{position:absolute;right:18px;top:52px}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input{-moz-border-radius:5px;-webkit-border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#aaa url(/assets/alert-overlay.png) repeat-x;-moz-opacity:0.9;-webkit-opacity:0.9;-o-opacity:0.9;-khtml-opacity:0.9;font-size:80%}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input:hover{background-color:#005300}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input:hover{color:#fff}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input:active{top:1px}body.closet_hangers-index.current-user #closet-hangers .object:hover .closet-hanger-destroy input:hover{background-color:#999}body.closet_hangers-index.current-user #closet-hangers .object:hover .quantity{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1;background:transparent;top:0;padding:0}body.closet_hangers-index.current-user #closet-hangers .object:hover .quantity span{display:none}body.closet_hangers-index.current-user #closet-hangers .object:hover .quantity input[type=number]{padding:2px;width:2em}body.closet_hangers-index.current-user #closet-hangers .object:hover .quantity input[type=submit]{font-size:85%}body.closet_hangers-index.current-user.js #closet-hangers .object:hover .quantity{display:block}body.closet_hangers-index.current-user.js #closet-hangers .object:hover .quantity input[type=number]{width:2.5em}body.closet_hangers-index.current-user.js #closet-hangers .object:hover .quantity input[type=submit]{display:none}body.closet_hangers-index.current-user.js #closet-hangers .object.loading{background:#efe;outline:1px solid #060}body.closet_hangers-index.current-user.js #closet-hangers .object.loading .quantity{display:block}body.closet_hangers-index.current-user.js #closet-hangers .object.loading .quantity span:after{content:"…"}body.closet_hangers-index.current-user.js #closet-hangers-contact form{display:none}body.closet_hangers-index.current-user.js #closet-hangers-contact .edit-contact-link,body.closet_hangers-index.current-user.js #closet-hangers-contact #cancel-contact-link{display:inline}body.closet_hangers-index.current-user.js #closet-hangers-contact.editing form{display:block}body.closet_hangers-index.current-user.js #closet-hangers-contact.editing .edit-contact-link{display:none}body.closet_hangers-index.current-user.js .closet-hangers-group header .show,body.closet_hangers-index.current-user.js .closet-hangers-group header .hide{cursor:pointer}body.closet_hangers-index.current-user.js .closet-hangers-group header .hide{display:block}body.closet_hangers-index.current-user.js .closet-hangers-group.hidden header .hide,body.closet_hangers-index.current-user.js .closet-hangers-group.hidden .closet-hangers-group-content{display:none}body.closet_hangers-index.current-user.js .closet-hangers-group.hidden header .show{display:block}body.closet_hangers-index.current-user.js #toggle-help{display:inline}body.closet_hangers-index.js #toggle-compare{display:inline}body.closet_hangers-index.js #closet-hangers.comparing .object{display:none}body.closet_hangers-index.js #closet-hangers.comparing .closet-hangers-group[data-owned=true] .user-wants,body.closet_hangers-index.js #closet-hangers.comparing .closet-hangers-group[data-owned=false] .user-owns{display:inline-block}body.closet_hangers-petpage #title{float:left;margin-right:0.5em}body.closet_hangers-petpage .flash{clear:both}body.closet_hangers-petpage #secondary-nav{display:block;margin-top:0.75em}body.closet_hangers-petpage #intro{clear:both}body.closet_hangers-petpage #petpage-closet-lists{overflow:hidden;display:inline-block;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px;border-radius:10px;border:1px solid #ada;margin-bottom:1.5em;padding:0.5em 1.5em}body.closet_hangers-petpage #petpage-closet-lists{display:block}body.closet_hangers-petpage #petpage-closet-lists>div{margin:0.25em 0}body.closet_hangers-petpage #petpage-closet-lists h4{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;vertical-align:middle}body.closet_hangers-petpage #petpage-closet-lists h4::after{content:":"}body.closet_hangers-petpage #petpage-closet-lists ul{list-style:none;margin:0;padding:0}body.closet_hangers-petpage #petpage-closet-lists ul li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;font-size:85%;margin:0.25em 0.5em;padding:1px}body.closet_hangers-petpage #petpage-closet-lists ul li label{padding:0.25em 0.75em 0.25em 0.25em}body.closet_hangers-petpage #petpage-closet-lists ul li.checked{background:#efe;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;border:1px solid #060;padding:0}body.closet_hangers-petpage #petpage-closet-lists ul li.unlisted{font-style:italic}body.closet_hangers-petpage #petpage-closet-lists input[type=submit]{float:right}body.closet_hangers-petpage #petpage-output{display:block;height:30em;margin:0 auto;width:50%}body.closet_lists-new #title,body.closet_lists-create #title,body.closet_lists-edit #title,body.closet_lists-update #title{float:left;margin-right:0.5em}body.closet_lists-new .flash,body.closet_lists-create .flash,body.closet_lists-edit .flash,body.closet_lists-update .flash{clear:both}body.closet_lists-new #secondary-nav,body.closet_lists-create #secondary-nav,body.closet_lists-edit #secondary-nav,body.closet_lists-update #secondary-nav{display:block;margin-top:0.75em}body.closet_lists-new form ul.fields,body.closet_lists-create form ul.fields,body.closet_lists-edit form ul.fields,body.closet_lists-update form ul.fields{clear:both;list-style:none}body.closet_lists-new form ul.fields label,body.closet_lists-create form ul.fields label,body.closet_lists-edit form ul.fields label,body.closet_lists-update form ul.fields label{float:left;font-weight:bold;margin-right:1em}body.closet_lists-new form ul.fields li,body.closet_lists-create form ul.fields li,body.closet_lists-edit form ul.fields li,body.closet_lists-update form ul.fields li{padding:0.75em 0;width:35em}body.closet_lists-new form ul.fields input,body.closet_lists-new form ul.fields textarea,body.closet_lists-new form ul.fields select,body.closet_lists-create form ul.fields input,body.closet_lists-create form ul.fields textarea,body.closet_lists-create form ul.fields select,body.closet_lists-edit form ul.fields input,body.closet_lists-edit form ul.fields textarea,body.closet_lists-edit form ul.fields select,body.closet_lists-update form ul.fields input,body.closet_lists-update form ul.fields textarea,body.closet_lists-update form ul.fields select{clear:both;display:block;margin-top:0.25em;width:80%}body.closet_lists-new form ul.fields textarea,body.closet_lists-create form ul.fields textarea,body.closet_lists-edit form ul.fields textarea,body.closet_lists-update form ul.fields textarea{height:12em}body.closet_lists-new form ul.fields .hint,body.closet_lists-create form ul.fields .hint,body.closet_lists-edit form ul.fields .hint,body.closet_lists-update form ul.fields .hint{display:block;font-size:85%}body.neopets_pages-new #title,body.neopets_pages-create #title{float:left}body.neopets_pages-new .flash,body.neopets_pages-create .flash{clear:both}body.neopets_pages-new #back-to-items,body.neopets_pages-create #back-to-items{-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;margin-left:1em;margin-top:0.75em}body.neopets_pages-new #back-to-items:hover,body.neopets_pages-create #back-to-items:hover{background-color:#005300}body.neopets_pages-new #back-to-items:hover,body.neopets_pages-create #back-to-items:hover{color:#fff}body.neopets_pages-new #back-to-items:active,body.neopets_pages-create #back-to-items:active{top:1px}body.neopets_pages-new #closet-page-form,body.neopets_pages-create #closet-page-form{overflow:hidden;display:inline-block;clear:both;margin-bottom:1em}body.neopets_pages-new #closet-page-form,body.neopets_pages-create #closet-page-form{display:block}body.neopets_pages-new #closet-page-frame-wrapper,body.neopets_pages-create #closet-page-frame-wrapper{float:left;margin-right:2%;width:48%}body.neopets_pages-new #closet-page-frame,body.neopets_pages-create #closet-page-frame{height:19em;width:100%}body.neopets_pages-new #closet-page-source,body.neopets_pages-create #closet-page-source{float:left;width:50%}body.neopets_pages-new #closet-page-source label,body.neopets_pages-create #closet-page-source label{font-weight:bold}body.neopets_pages-new #closet-page-source textarea,body.neopets_pages-create #closet-page-source textarea{height:19em}body.neopets_pages-new ol,body.neopets_pages-create ol{padding-left:1em}body.neopets_pages-new ol>li,body.neopets_pages-create ol>li{margin-bottom:1em}body.neopets_pages-new ol ul,body.neopets_pages-create ol ul{font-size:85%;margin-bottom:1em;margin-top:0;padding-left:1em}body.neopets_pages-new ol p,body.neopets_pages-create ol p{margin:0}body.neopets_users-new #title,body.neopets_users-create #title{float:left;margin-right:0.5em}body.neopets_users-new .flash,body.neopets_users-create .flash{clear:both}body.neopets_users-new #secondary-nav,body.neopets_users-create #secondary-nav{display:block;margin-top:0.75em}body.neopets_users-new #neopets-user-form,body.neopets_users-create #neopets-user-form{clear:both}body.neopets_users-new #neopets-user-form label,body.neopets_users-create #neopets-user-form label{font-weight:bold;margin-right:1em}body.neopets_users-new #neopets-user-form label:after,body.neopets_users-create #neopets-user-form label:after{content:":"}body.contributions-index{text-align:center}body.contributions-index .contributions li{list-style:none;height:80px;overflow:hidden;padding:1em 0 0 100px;position:relative;text-align:left}body.contributions-index .contributions .point-value{font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;color:#fff;font-size:80px;left:0;line-height:1;position:absolute;text-align:center;text-shadow:2px 2px 0 #000;top:0;width:80px;z-index:3}body.contributions-index .contributions .point-value:hover{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.contributions-index .contributions img{height:80px;left:0;position:absolute;top:0;width:80px;z-index:2}body.contributions-index .contributions .username,body.contributions-index .contributions .contributed-name{font-weight:bold}body.contributions-index .contributions .time-ago{display:block;font-size:75%}body.items{text-align:center}body.items .campaign-progress-wrapper{-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;border-radius:8px;background:#aaa;background-image:linear-gradient(#cccccc,#aaaaaa);border:4px solid #060;clear:both;margin-bottom:1.5em;position:relative;visibility:hidden}body.items .campaign-progress-wrapper .button{background:#ff5c00 url(/assets/alert-overlay.png) repeat-x;font-size:75%;margin-left:1em;padding:0.25em 0.75em}body.items .campaign-progress-wrapper .button:hover{background-color:#ee4b00}body.items .campaign-progress-wrapper .button:after{content:none}body.items .campaign-progress{background:#060;background-image:linear-gradient(#228822,#006600);border-right:1px solid #060}body.items .campaign-progress-wrapper,body.items .campaign-progress{height:2.5em}body.items .campaign-progress-label{text-shadow:#777,-1px,-1px,0;font-size:150%;left:0;position:absolute;top:0;text-align:center;width:100%}body.items .campaign-progress-label,body.items .campaign-progress-label a{color:#fff}body.items.campaign-loaded .campaign-progress-wrapper{visibility:visible}body.items input[type=text],body.items body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.items textarea{font-size:125%;width:15em}body.items h1{margin-bottom:1em}body.items h1 img{height:80px;margin-bottom:-0.5em;width:80px}body.items h1 a{text-decoration:none}body.items h1 a span{text-decoration:underline}body.items h1 a:hover span{text-decoration:none}body.items-index form{margin-bottom:2em}body.items-index #search-info{float:left;width:49%;padding-right:1%}body.items-index #search-info h2{font-size:125%}body.items-index #search-info dl{text-align:left}body.items-index #search-info dd{margin-bottom:1em}body.items-index #species-search-links{float:left;width:49%;padding-left:1%}body.items-index #species-search-links h2{font-size:125%}body.items-index #species-search-links img{height:80px;width:80px}body.items-show #item-header{border-bottom:1px solid #060;display:block;margin-bottom:1em;padding:1em 0}body.items-show #item-header div,body.items-show #item-header img{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.items-show #item-header div{text-align:left}body.items-show #item-header a{font-size:75%;margin-left:1em}body.items-show #item-thumbnail{border:1px solid #060;height:80px;margin-right:0.5em;width:80px}body.items-show #item-name{margin-bottom:0}body.items-show #item-preview{overflow:hidden;display:inline-block}body.items-show #item-preview{display:block}body.items-show #item-preview div{float:left}body.items-show #item-preview-species{width:400px}body.items-show #item-preview-species a,body.items-show #item-preview-species img{height:50px;width:50px}body.items-show #item-preview-species a{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.items-show #item-preview-species a.current{background:#efe;outline:1px solid #060}body.items-show #item-preview-species a.deactivated img{filter:url("data:image/svg+xml;utf8,#grayscale");filter:gray;-webkit-filter:grayscale(100%);-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.items-show #item-preview-species a.deactivated.current{background:transparent;outline-color:#fbc2c4}body.items-show #item-preview-error{display:none;padding:20px 10px 0;width:380px}body.items-show #item-preview-swf{height:300px;overflow:hidden;width:300px}body.items-show #item-zones{font-family:"Droid Serif",Georgia,"Times New Roman",Times,serif;font-size:85%;margin-bottom:1em}body.items-show #item-zones p{display:inline}body.items-show #item-zones p:first-child{margin-right:1em}body.items-show #trade-hangers{font-size:85%;margin-bottom:3em;text-align:left}body.items-show #trade-hangers p{position:relative}body.items-show #trade-hangers p:first-child{margin-bottom:0.5em}body.items-show #trade-hangers p.overflows .toggle{display:block}body.items-show #trade-hangers p.showing-more .toggle .less{display:block}body.items-show #trade-hangers p.showing-more .toggle .more{display:none}body.items-show #trade-hangers .toggle{background:#fff;bottom:0;cursor:pointer;display:none;font-family:"Droid Sans",Helvetica,Arial,Verdana,sans-serif;padding:0 1em;position:absolute;right:0}body.items-show #trade-hangers .toggle:hover{text-decoration:underline}body.items-show #trade-hangers .toggle .less{display:none}body.items-show #item-contributors{border-color:#ada;border-style:solid;border-width:1px 0;font-size:85%;margin:1em 0;padding:0.5em 0;text-align:center;clear:both;margin-bottom:0;margin-top:2em}body.items-show #item-contributors header{display:inline;font-weight:bold;margin-right:0.25em}body.items-show #item-contributors footer{display:inline}body.items-show #item-contributors ul{list-style-type:none}body.items-show #item-contributors ul,body.items-show #item-contributors ul li{margin:0px;padding:0px;display:inline}body.items-show #item-contributors ul li:after{content:", "}body.items-show #item-contributors ul li:last-child:after{content:""}body.items-show #item-contributors ul li.last:after{content:""}body.items-show #item-contributors ul li:last-child::after{content:"."}body.items-show #item-preview-header{clear:both}body.items-show #item-preview-header h3,body.items-show #item-preview-header a{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.items-show #item-preview-header a{font-size:85%;margin:-1.5em 0 0 1em}body.items-show .nc-icon{height:16px;width:16px}body.items-show #closet-hangers{border:1px solid #060;float:right;font-size:85%;margin-bottom:3em;margin-left:1em;padding:1em;width:30em;position:relative;z-index:2}body.items-show #closet-hangers h3{font-size:150%;font-weight:bold;margin-bottom:0.25em}body.items-show #closet-hangers #closet-hangers-ownership-groups{overflow:hidden;display:inline-block;margin-bottom:0.5em}body.items-show #closet-hangers #closet-hangers-ownership-groups{display:block}body.items-show #closet-hangers #closet-hangers-ownership-groups div{float:left;margin:0 5%;text-align:left;width:40%}body.items-show #closet-hangers #closet-hangers-ownership-groups div li{list-style:none;word-wrap:break-word}body.items-show #closet-hangers #closet-hangers-ownership-groups div li label.unlisted{font-style:italic}body.items-show #closet-hangers form{padding:0.5em 0}body.items-show #closet-hangers select{width:9em}body.items-show #closet-hangers input[type=number]{margin-right:0.5em;width:3em}body.items-show.js #trade-hangers p{max-height:3em;overflow:hidden}body.items-show.js #trade-hangers p.showing-more{max-height:none}div.jGrowl{padding:10px;z-index:9999;color:#fff;font-size:12px}div.ie6{position:absolute}div.ie6.top-right{right:auto;bottom:auto;left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.top-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-right{left:expression(( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.bottom-left{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' )}div.ie6.center{left:expression(( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );top:expression(( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );width:100%}body>div.jGrowl{position:fixed}body>div.jGrowl.top-left{left:0px;top:0px}body>div.jGrowl.top-right{right:0px;top:0px}body>div.jGrowl.bottom-left{left:0px;bottom:0px}body>div.jGrowl.bottom-right{right:0px;bottom:0px}body>div.jGrowl.center{top:0px;width:50%;left:25%}div.center div.jGrowl-notification,div.center div.jGrowl-closer{margin-left:auto;margin-right:auto}div.jGrowl div.jGrowl-notification,div.jGrowl div.jGrowl-closer{background-color:#000;opacity:0.85;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=85);zoom:1;width:235px;padding:10px;margin-top:5px;margin-bottom:5px;font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:1em;text-align:left;display:none;-moz-border-radius:5px;-webkit-border-radius:5px}div.jGrowl div.jGrowl-notification{min-height:40px}div.jGrowl div.jGrowl-notification div.header{font-weight:bold;font-size:0.85em}div.jGrowl div.jGrowl-notification div.close{z-index:99;float:right;font-weight:bold;font-size:1em;cursor:pointer}div.jGrowl div.jGrowl-closer{padding-top:4px;padding-bottom:4px;cursor:pointer;font-size:0.9em;font-weight:bold;text-align:center}@media print{div.jGrowl{display:none}}body.outfits-edit #preview-toolbar{margin-bottom:0.5em;text-align:left}body.outfits-edit #preview-toolbar form{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;margin-right:2em}body.outfits-edit #pet-info form{display:inline}body.outfits-edit #pet-state-form{font-size:85%}body.outfits-edit #pet-state-form.hidden{visibility:hidden}body.outfits-edit #save-outfit-wrapper{float:right}body.outfits-edit #save-outfit-wrapper button{display:none}body.outfits-edit #save-outfit-wrapper #share-outfit{display:inline-block}body.outfits-edit #save-outfit-wrapper.loading{background-image:url(/assets/loading.gif);background-position:left center;background-repeat:no-repeat;padding-left:20px}body.outfits-edit #save-outfit,body.outfits-edit #save-outfit-not-signed-in,body.outfits-edit #save-current-outfit,body.outfits-edit #save-outfit-finish{background:#ff5c00 url(/assets/alert-overlay.png) repeat-x}body.outfits-edit #save-outfit:hover,body.outfits-edit #save-outfit-not-signed-in:hover,body.outfits-edit #save-current-outfit:hover,body.outfits-edit #save-outfit-finish:hover{background-color:#ee4b00}body.outfits-edit #current-outfit-permalink,body.outfits-edit #shared-outfit-permalink{display:none;margin-right:0.25em}body.outfits-edit #current-outfit-permalink img,body.outfits-edit #shared-outfit-permalink img{bottom:-2px;height:16px;position:relative;width:16px}body.outfits-edit #shared-outfit-url{display:none;width:15em}body.outfits-edit #preview{clear:both}body.outfits-edit #preview-swf{float:left;height:380px;margin-bottom:1em;position:relative;width:380px}body.outfits-edit #preview-swf.swf-adapter #preview-image-container{display:none}body.outfits-edit #preview-swf.image-adapter #preview-swf-container{display:none}body.outfits-edit #preview-image-container{position:relative}body.outfits-edit #preview-image-container img{left:0;position:absolute;top:0}body.outfits-edit #preview-image-container,body.outfits-edit #preview-image-container img{height:100%;width:100%}body.outfits-edit #preview-swf-overlay{-moz-opacity:0;-webkit-opacity:0;-o-opacity:0;-khtml-opacity:0;background:#000;height:100%;left:0;position:absolute;top:0;width:100%}body.outfits-edit #preview-images-pending{background:#000;background:rgba(0,0,0,0.75);bottom:0;color:#fff;font-size:75%;padding:0.5em;position:absolute;right:0;z-index:1000}body.outfits-edit #preview-images-pending.waiting-on-0{display:none}body.outfits-edit #preview-mode{margin-right:1em;position:absolute;right:100%;text-align:center;top:0;width:7em}body.outfits-edit #preview-mode.flash-active #preview-mode-flash{color:#040;font-weight:bold}body.outfits-edit #preview-mode.image-active #preview-mode-image{color:#040;font-weight:bold}body.outfits-edit #preview-mode.image-active #preview-mode-note,body.outfits-edit #preview-mode.image-active #report-broken-image{display:block}body.outfits-edit #preview-mode-toggle{-webkit-border-radius:0.5em;-moz-border-radius:0.5em;-ms-border-radius:0.5em;-o-border-radius:0.5em;border-radius:0.5em;border:1px solid #060;color:#484;font-size:85%;list-style:none;margin:0 auto 0.5em;text-align:center;width:5em}body.outfits-edit #preview-mode-toggle li{border-top:1px solid #ada;cursor:pointer;padding:0.125em 0;width:100%}body.outfits-edit #preview-mode-toggle li:first-child{border-top:0}body.outfits-edit #preview-download-image{display:none;margin:1em auto}body.outfits-edit #preview-download-image h3{font-size:125%;margin-bottom:0.5em}body.outfits-edit #preview-download-image ul{list-style:none}body.outfits-edit #preview-download-image button{font-size:75%;width:100%}body.outfits-edit #preview-mode-note,body.outfits-edit #report-broken-image{display:block;font-size:75%;margin-top:0.5em;text-align:center;text-decoration:none;width:100%}body.outfits-edit #preview-mode-note em,body.outfits-edit #report-broken-image em{font-style:normal;text-decoration:underline}body.outfits-edit #preview-mode-note,body.outfits-edit #report-broken-image{display:none}body.outfits-edit #preview-sidebar{float:left;height:380px;margin-left:20px;margin-bottom:1em;width:400px}body.outfits-edit #preview-sidebar.viewing-outfits #preview-closet{display:none}body.outfits-edit #preview-sidebar.viewing-outfits #preview-outfits{display:block}body.outfits-edit #preview-sidebar.sharing #preview-closet{display:none}body.outfits-edit #preview-sidebar.sharing #preview-sharing{display:block}body.outfits-edit #preview-sidebar .sidebar-view{margin:1.5em 0}body.outfits-edit #preview-closet h2{margin-bottom:0}body.outfits-edit #preview-closet ul{text-align:center}body.outfits-edit #preview-closet .object{background:#efe}body.outfits-edit #preview-closet .object img{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.outfits-edit #preview-closet .object.worn{background:transparent}body.outfits-edit #preview-closet .object.worn img{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-edit #preview-closet .object.no-assets{background:#fbe3e4;color:#8a1f11;padding-bottom:1.25em}body.outfits-edit #preview-closet .object.no-assets .no-assets-message{display:block}body.outfits-edit .no-assets-message{background:#f3dbdc;bottom:0;color:#821709;cursor:pointer;display:none;font-size:75%;left:0;position:absolute;width:100%}body.outfits-edit #no-assets-full-message{-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:#fff4f5;border:1px solid #ffd3d5;color:#9b3022;font-size:75%;left:-9999px;padding:0.25em;position:absolute;top:-9999px;width:30em}body.outfits-edit #preview-search-form{clear:both;text-align:left}body.outfits-edit #preview-search-form h2{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;margin:0 1em 0 0}body.outfits-edit #preview-search-form input{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.outfits-edit #preview-search-form input[type=submit]{margin-right:2em}body.outfits-edit .preview-search-form-your-items{display:none;font-size:85%;margin-right:1em}body.outfits-edit #preview-search-form-pagination{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.outfits-edit #preview-search-form-pagination a,body.outfits-edit #preview-search-form-pagination span{margin:0 0.25em}body.outfits-edit #preview-search-form-pagination .current{font-weight:bold}body.outfits-edit #preview-search-form-clear{display:none;font-size:87.5%;margin-left:2em}body.outfits-edit #preview-search-form-loading{display:none;font-size:75%;font-style:italic;margin-left:2em}body.outfits-edit #preview-search-form-no-results{display:none}body.outfits-edit #preview-search-form-help{font-size:87.5%;margin-left:2em}body.outfits-edit .search-helper{font-family:inherit}body.outfits-edit .possible-error{display:none}body.outfits-edit.fullscreen{height:100%}body.outfits-edit.fullscreen #container{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;height:100%;margin:0 auto;min-width:800px;padding-top:2.5em;position:relative;width:80%}body.outfits-edit.fullscreen #short-url-response{position:static}body.outfits-edit.fullscreen #preview{width:100%}body.outfits-edit.fullscreen #preview-sidebar{float:right;margin:0;position:relative;width:400px}body.outfits-edit.fullscreen #preview-sidebar.viewing-saving-outfit{height:auto;max-height:100%}body.outfits-edit.fullscreen #preview-search-form{bottom:1.5em;left:0;overflow:auto;padding:0.5em 1em;position:absolute;width:100%}body.outfits-edit.fullscreen #preview-search-form-help div{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;width:48%}body.outfits-edit.fullscreen #footer{bottom:0;left:0;position:absolute;width:100%}body.outfits-edit.fullscreen #footer ul,body.outfits-edit.fullscreen #footer li,body.outfits-edit.fullscreen #footer p,body.outfits-edit.fullscreen #footer div{display:inline-block;vertical-align:middle;padding:0}body.outfits-edit.fullscreen #footer>ul{margin-right:2em}body.outfits-edit.fullscreen #footer>p{margin:0}body.outfits-edit.fullscreen #footer>ul,body.outfits-edit.fullscreen #footer div,body.outfits-edit.fullscreen #footer p{margin-top:6px}body.outfits-edit .object{padding:6px;position:relative}body.outfits-edit .object ul{display:none;left:0;list-style:none;position:absolute;top:0}body.outfits-edit .object ul li{margin-bottom:0.25em}body.outfits-edit .object ul li a{-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#aaa url(/assets/alert-overlay.png) repeat-x;-moz-opacity:0.9;-webkit-opacity:0.9;-o-opacity:0.9;-khtml-opacity:0.9;font-size:80%}body.outfits-edit .object ul li a:hover{background-color:#005300}body.outfits-edit .object ul li a:hover{color:#fff}body.outfits-edit .object ul li a:active{top:1px}body.outfits-edit .object ul li a:hover{background-color:#999}body.outfits-edit .object .unwear-item,body.outfits-edit .object .uncloset-item{display:none}body.outfits-edit .object.worn .wear-item{display:none}body.outfits-edit .object.worn .unwear-item{display:block}body.outfits-edit .object.closeted .closet-item{display:none}body.outfits-edit .object.closeted .uncloset-item{display:block}body.outfits-edit .object:hover ul,body.outfits-edit .object:hover .object-info{display:block}body.outfits-edit .nc-icon{background:url(/assets/nc.png) no-repeat;height:16px;position:absolute;right:16px;text-indent:-9999px;top:64px;width:16px}body.outfits-edit .nc-icon:hover{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.outfits-edit .object-info{-webkit-border-radius:12px;-moz-border-radius:12px;-ms-border-radius:12px;-o-border-radius:12px;border-radius:12px;-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;background:#aaa;color:#fff;display:none;height:16px;position:absolute;right:8px;top:0;width:16px}body.outfits-edit .object-info span{font-family:"Droid Serif",Georgia,"Times New Roman",Times,serif;font-weight:bold;position:relative;top:-2px}body.outfits-edit .object-info:hover{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-edit #preview-outfits{display:none;text-align:left}body.outfits-edit #preview-outfits>ul{font-size:0;list-style:none;margin-left:24px;margin-right:24px;background:url(/assets/loading.gif) no-repeat center top;display:none;font-family:"Droid Sans",Helvetica,Arial,Verdana,sans-serif;margin:0 auto 1em;min-height:16px;width:336px}body.outfits-edit #preview-outfits>ul>li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;overflow:hidden;position:relative;font-size:14px}body.outfits-edit #preview-outfits>ul>li .outfit-star{bottom:-2px;height:16px;position:relative;width:16px;background-image:url(/assets/unstarred.png);background-position:left top;background-repeat:no-repeat;cursor:pointer;display:block;float:left;margin-right:8px}body.outfits-edit #preview-outfits>ul>li.starred .outfit-star{background-image:url(/assets/star.png)}body.outfits-edit #preview-outfits>ul>li.loading .outfit-star{background-image:url(/assets/loading.gif)}body.outfits-edit #preview-outfits>ul>li header,body.outfits-edit #preview-outfits>ul>li footer{color:#fff;left:0;position:absolute;z-index:2;background:#000;background:rgba(0,0,0,0.75)}body.outfits-edit #preview-outfits>ul>li header{bottom:0}body.outfits-edit #preview-outfits>ul>li footer{top:0}body.outfits-edit #preview-outfits>ul>li a{color:#fff}body.outfits-edit #preview-outfits>ul.loaded{background:transparent}body.outfits-edit #preview-outfits>ul>li{height:110px;margin:1px;width:110px}body.outfits-edit #preview-outfits>ul>li header,body.outfits-edit #preview-outfits>ul>li footer,body.outfits-edit #preview-outfits>ul>li .outfit-delete-confirmation{font-size:12px;padding:2px 4px;width:102px}body.outfits-edit #preview-outfits>ul>li header{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;bottom:0;cursor:pointer}body.outfits-edit #preview-outfits>ul>li footer,body.outfits-edit #preview-outfits>ul>li .outfit-delete-confirmation{display:none}body.outfits-edit #preview-outfits>ul>li .outfit-delete-confirmation{color:#fff;left:0;position:absolute;z-index:2;background:#ff3232;background:rgba(255,50,50,0.75);text-align:center;top:0}body.outfits-edit #preview-outfits>ul>li .outfit-delete-confirmation span{font-weight:bold}body.outfits-edit #preview-outfits>ul>li .outfit-thumbnail-wrapper{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5;background-image:url(/assets/small_default.png);background-position:center center;background-size:110px 110px;cursor:pointer;height:150px;left:-20px;position:absolute;top:-24px;width:150px;z-index:1}body.outfits-edit #preview-outfits>ul>li .outfit-thumbnail{display:none}body.outfits-edit #preview-outfits>ul>li .outfit-star{bottom:0;margin-right:4px}body.outfits-edit #preview-outfits>ul>li .outfit-delete{float:right}body.outfits-edit #preview-outfits>ul>li .outfit-rename-button{float:left}body.outfits-edit #preview-outfits>ul>li .outfit-rename-button,body.outfits-edit #preview-outfits>ul>li .outfit-delete{font-size:85%;text-decoration:none}body.outfits-edit #preview-outfits>ul>li .outfit-rename-button:hover,body.outfits-edit #preview-outfits>ul>li .outfit-delete:hover{text-decoration:underline}body.outfits-edit #preview-outfits>ul>li .outfit-rename-form{display:none}body.outfits-edit #preview-outfits>ul>li .outfit-rename-form input{background:transparent;border:1px solid #fff;width:6em}body.outfits-edit #preview-outfits>ul>li:hover header{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-edit #preview-outfits>ul>li:hover .outfit-thumbnail-wrapper{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75}body.outfits-edit #preview-outfits>ul>li:hover footer{display:block}body.outfits-edit #preview-outfits>ul>li.active header{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1;font-weight:bold}body.outfits-edit #preview-outfits>ul>li.active .outfit-thumbnail-wrapper{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-edit #preview-outfits>ul>li.confirming-deletion footer{display:none}body.outfits-edit #preview-outfits>ul>li.confirming-deletion .outfit-delete-confirmation{display:block}body.outfits-edit #preview-outfits>ul>li.renaming .outfit-name{display:none}body.outfits-edit #preview-outfits>ul>li.renaming .outfit-rename-form{display:inline}body.outfits-edit #preview-outfits>ul>li.thumbnail-available{background:transparent}body.outfits-edit #preview-outfits>ul>li.thumbnail-available .outfit-thumbnail-wrapper{background-image:none}body.outfits-edit #preview-outfits>ul>li.thumbnail-available .outfit-thumbnail{display:block}body.outfits-edit #preview-outfits>ul>li.loading .outfit-star{background-image:url(/assets/loading_outfit_pane.gif)}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in{text-align:center;overflow-x:hidden}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in img{border-color:#060;border-style:solid;border-width:1px 0}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in figure{display:block;margin:0 0 1em 0;padding:0}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in figcaption{display:block;font-weight:bold}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in p{margin-left:24px;margin-right:24px;font-size:85%}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in{-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;background:#006400 url(/assets/alert-overlay.png) repeat-x;border:0;display:inline-block;padding:0.5em 0.75em 0.45em;color:#fff;text-decoration:none;-moz-box-shadow:0 1px 3px rgba(0,0,0,0.5);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5);text-shadow:0 -1px 1px rgba(0,0,0,0.25);border-bottom:1px solid rgba(0,0,0,0.25);position:relative;font-weight:bold;line-height:1;background:#ff5c00 url(/assets/alert-overlay.png) repeat-x}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in:hover{background-color:#005300}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in:hover{color:#fff}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in:active{top:1px}body.outfits-edit #preview-outfits #preview-outfits-not-logged-in #preview-outfits-log-in:hover{background-color:#ee4b00}body.outfits-edit #preview-sharing{display:none}body.outfits-edit #preview-sharing #preview-sharing-urls{margin-left:24px;margin-right:24px;display:none;margin-bottom:1em;margin-top:1em}body.outfits-edit #preview-sharing #preview-sharing-urls li{display:block;padding:0.25em 0;width:100%}body.outfits-edit #preview-sharing #preview-sharing-urls li label{display:block;font-weight:bold}body.outfits-edit #preview-sharing #preview-sharing-urls li input{display:block;width:100%}body.outfits-edit #preview-sharing #preview-sharing-url-formats{margin-left:24px;margin-right:24px;select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:none;font-size:0;text-align:center}body.outfits-edit #preview-sharing #preview-sharing-url-formats li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;border:1px solid #060;border-left-width:0;border-right-color:#ada;color:#484;cursor:pointer;font-size:12px;padding:0 2em}body.outfits-edit #preview-sharing #preview-sharing-url-formats li.active{background:#efe;color:inherit;font-weight:bold}body.outfits-edit #preview-sharing #preview-sharing-url-formats li:first-child{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;border-bottom-left-radius:5px;border-left-width:1px}body.outfits-edit #preview-sharing #preview-sharing-url-formats li:last-child{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;border-bottom-right-radius:5px;border-right-color:#060}body.outfits-edit #preview-sharing #preview-sharing-thumbnail-wrapper{border:1px solid #ada;display:block;height:150px;margin:1em auto 0;position:relative;width:150px}body.outfits-edit #preview-sharing #preview-sharing-thumbnail-loading{height:100%;left:0;position:absolute;top:0;width:100%}body.outfits-edit #preview-sharing #preview-sharing-thumbnail-loading span{color:#484;font-size:85%;margin-top:-0.75em;position:absolute;text-align:center;top:50%;width:100%}body.outfits-edit #preview-sharing #preview-sharing-thumbnail,body.outfits-edit #preview-sharing #preview-sharing-thumbnail-generating{display:none}body.outfits-edit #preview-sharing #preview-sharing-beta-note{margin-left:24px;margin-right:24px;background:#fff6bf;border:1px solid #ffd324;color:#514721;font-size:85%;margin-top:1em;text-align:center}body.outfits-edit #preview-sharing.urls-loaded #preview-sharing-thumbnail-saving{display:none}body.outfits-edit #preview-sharing.urls-loaded #preview-sharing-urls,body.outfits-edit #preview-sharing.urls-loaded #preview-sharing-url-formats,body.outfits-edit #preview-sharing.urls-loaded #preview-sharing-thumbnail-generating{display:block}body.outfits-edit #preview-sharing.urls-loaded.thumbnail-loaded #preview-sharing-thumbnail-loading{display:none}body.outfits-edit #preview-sharing.urls-loaded.thumbnail-loaded #preview-sharing-thumbnail{display:block}body.outfits-edit #preview-sharing.urls-loaded.thumbnail-available #preview-sharing-thumbnail-loading{-moz-opacity:0.85;-webkit-opacity:0.85;-o-opacity:0.85;-khtml-opacity:0.85}body.outfits-edit #preview-sharing.urls-loaded.thumbnail-available #preview-sharing-thumbnail{display:block}body.outfits-edit .preview-sidebar-nav{float:right;font-size:85%;margin-right:24px;margin-top:1em}body.outfits-edit #preview-sidebar #preview-sidebar-navbar-closet{background:#fff;border-bottom-color:#fff;font-weight:bold}body.outfits-edit #preview-sidebar.viewing-outfits #preview-sidebar-navbar-closet,body.outfits-edit #preview-sidebar.sharing #preview-sidebar-navbar-closet{background:transparent;border-bottom:1px solid #ada;font-weight:normal}body.outfits-edit #preview-sidebar.viewing-outfits #preview-sidebar-navbar-outfits,body.outfits-edit #preview-sidebar.sharing #preview-sidebar-navbar-sharing{background:#fff;border-bottom-color:#fff;font-weight:bold}body.outfits-edit #preview-sidebar-navbar{-webkit-border-radius:10px 10px 0 0;-moz-border-radius:10px 10px 0 0;-ms-border-radius:10px 10px 0 0;-o-border-radius:10px 10px 0 0;border-radius:10px 10px 0 0;overflow:hidden;display:inline-block;font-family:Delicious,Helvetica,Arial,Verdana,sans-serif;background:#efe;border:1px solid #ada;border-bottom:0;font-size:150%}body.outfits-edit #preview-sidebar-navbar{display:block}body.outfits-edit #preview-sidebar-navbar>div{background:transparent;border-bottom:1px solid #ada;font-weight:normal;cursor:pointer;float:left;border-left:1px solid #ada;padding:0.5em 0;text-align:center;width:132px}body.outfits-edit #preview-sidebar-navbar>div:first-child{border-left:0}body.outfits-edit #preview-sidebar-content{-webkit-border-radius:0 0 10px 10px;-moz-border-radius:0 0 10px 10px;-ms-border-radius:0 0 10px 10px;-o-border-radius:0 0 10px 10px;border-radius:0 0 10px 10px;border:1px solid #ada;border-top:0;height:300px;overflow:auto}body.outfits-edit #save-success,body.outfits-edit #save-error,body.outfits-edit #outfit-not-found,body.outfits-edit #preview-sidebar-donation-request{margin-left:24px;margin-right:24px;display:none;margin-top:1em;text-align:center}body.outfits-edit #preview-sidebar-donation-request{background:#e6efc2;border:1px solid #c6d880;color:#264409;font-size:85%;padding:1em}body.outfits-edit #preview-sidebar-donation-request-no-thanks{margin-left:1em}body.outfits-edit #save-success{background:#e6efc2;border:1px solid #c6d880;color:#264409}body.outfits-edit #save-error,body.outfits-edit #outfit-not-found{background:#fbe3e4;border:1px solid #fbc2c4;color:#8a1f11}body.outfits-edit #userbar-session-message{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5;display:none}body.outfits-edit #new-outfit-name{font:inherit;line-height:1}body.outfits-edit #pet-type-form,body.outfits-edit #pet-state-form,body.outfits-edit #preview-swf,body.outfits-edit #preview-search-form{position:relative}body.outfits-edit .control-overlay{height:100%;left:0;position:absolute;top:0;width:100%;z-index:5}body.outfits-edit #preview-sidebar-nav-outfits,body.outfits-edit #save-outfit-signed-in{display:none}body.outfits-edit form#save-outfit-form{display:none;margin-right:0;padding:0}body.outfits-edit form#save-outfit-form .outfit-star{bottom:-2px;height:16px;position:relative;width:16px;background-image:url(/assets/unstarred.png);background-position:left top;background-repeat:no-repeat;cursor:pointer;display:block;float:left;margin-right:8px}body.outfits-edit form#save-outfit-form.starred .outfit-star{background-image:url(/assets/star.png)}body.outfits-edit form#save-outfit-form.loading .outfit-star{background-image:url(/assets/loading.gif)}body.outfits-edit form#save-outfit-form .outfit-star{margin-left:-24px;margin-right:0}body.outfits-edit form#save-outfit-form .outfit-star,body.outfits-edit form#save-outfit-form input,body.outfits-edit form#save-outfit-form button{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;float:none;vertical-align:top}body.outfits-edit form#save-outfit-form .outfit-star{margin-top:0.25em}body.outfits-edit .outfit-url{font-size:75%}body.outfits-edit #preview-search-form-error{background:#fbe3e4;border:1px solid #fbc2c4;color:#8a1f11;padding:0.25em 0.5em}body.outfits-edit.user-signed-in #preview-sidebar-nav-outfits{display:block}body.outfits-edit.user-signed-in #save-outfit{display:inline-block}body.outfits-edit.user-signed-in #save-outfit-wrapper.active-outfit #save-outfit{display:none}body.outfits-edit.user-signed-in #save-outfit-wrapper.active-outfit #save-current-outfit,body.outfits-edit.user-signed-in #save-outfit-wrapper.active-outfit #save-outfit-copy{display:inline-block}body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #save-outfit-form{display:block}body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #save-outfit,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #save-current-outfit,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #save-outfit-copy,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #current-outfit-permalink,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #shared-outfit-permalink,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #share-outfit,body.outfits-edit.user-signed-in #save-outfit-wrapper.saving-outfit #shared-outfit-url{display:none}body.outfits-edit.user-signed-in .preview-search-form-your-items{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline}body.outfits-edit.user-signed-in #preview-outfits-not-logged-in{display:none}body.outfits-edit.user-signed-in #preview-outfits-list{display:block}body.outfits-edit.user-not-signed-in #save-outfit-not-signed-in{display:inline-block}body.outfits-edit #save-outfit-wrapper.shared-outfit #shared-outfit-permalink,body.outfits-edit #save-outfit-wrapper.shared-outfit #shared-outfit-url{display:inline-block}body.outfits-edit #save-outfit-wrapper.shared-outfit #current-outfit-permalink{display:none !important}body.outfits-index #outfits{font-size:0;list-style:none}body.outfits-index #outfits>li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;overflow:hidden;position:relative;font-size:14px}body.outfits-index #outfits>li .outfit-star{bottom:-2px;height:16px;position:relative;width:16px;background-image:url(/assets/unstarred.png);background-position:left top;background-repeat:no-repeat;cursor:pointer;display:block;float:left;margin-right:8px}body.outfits-index #outfits>li.starred .outfit-star{background-image:url(/assets/star.png)}body.outfits-index #outfits>li.loading .outfit-star{background-image:url(/assets/loading.gif)}body.outfits-index #outfits>li header,body.outfits-index #outfits>li footer{color:#fff;left:0;position:absolute;z-index:2;background:#000;background:rgba(0,0,0,0.75)}body.outfits-index #outfits>li header{bottom:0}body.outfits-index #outfits>li footer{top:0}body.outfits-index #outfits>li a{color:#fff}body.outfits-index #outfits>li{height:150px;margin:2px;width:150px}body.outfits-index #outfits>li header,body.outfits-index #outfits>li footer{padding:2px 4px;width:142px}body.outfits-index #outfits>li footer{display:none}body.outfits-index #outfits>li footer .outfit-edit-link{float:left;text-decoration:none}body.outfits-index #outfits>li footer form{float:right}body.outfits-index #outfits>li footer form .outfit-delete-button{margin:0;padding:0}body.outfits-index #outfits>li footer .outfit-edit-link:hover,body.outfits-index #outfits>li footer .outfit-delete-button:hover{text-decoration:underline}body.outfits-index #outfits>li .outfit-star{cursor:auto}body.outfits-index #outfits>li .outfit-name{text-decoration:none}body.outfits-index #outfits>li .outfit-name:hover{text-decoration:underline}body.outfits-index #outfits>li:hover footer{display:block}body.outfits-index #outfits .outfit-delete-button{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;background:transparent;display:inline;padding:0;color:inherit;-moz-box-shadow:none;-webkit-box-shadow:none;text-shadow:none;border-bottom:0;position:static;font-weight:normal;line-height:inherit}body.outfits-index #outfits .outfit-delete-button:hover{background:transparent;color:inherit}body.outfits-index #outfits .outfit-delete-button:active{top:auto}body.outfits-new .campaign-progress-wrapper{-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;border-radius:8px;background:#aaa;background-image:linear-gradient(#cccccc,#aaaaaa);border:4px solid #060;clear:both;margin-bottom:1.5em;position:relative;visibility:hidden}body.outfits-new .campaign-progress-wrapper .button{background:#ff5c00 url(/assets/alert-overlay.png) repeat-x;font-size:75%;margin-left:1em;padding:0.25em 0.75em}body.outfits-new .campaign-progress-wrapper .button:hover{background-color:#ee4b00}body.outfits-new .campaign-progress-wrapper .button:after{content:none}body.outfits-new .campaign-progress{background:#060;background-image:linear-gradient(#228822,#006600);border-right:1px solid #060}body.outfits-new .campaign-progress-wrapper,body.outfits-new .campaign-progress{height:2.5em}body.outfits-new .campaign-progress-label{text-shadow:#777,-1px,-1px,0;font-size:150%;left:0;position:absolute;top:0;text-align:center;width:100%}body.outfits-new .campaign-progress-label,body.outfits-new .campaign-progress-label a{color:#fff}body.outfits-new.campaign-loaded .campaign-progress-wrapper{visibility:visible}body.outfits-new #outfit-forms{overflow:hidden;display:inline-block;background:#efe;border:1px solid #060;padding:1em;position:relative}body.outfits-new #outfit-forms{display:block}body.outfits-new #outfit-forms h1{margin-bottom:0}body.outfits-new #outfit-forms h2{font-size:150%;font-style:italic;text-indent:1em}body.outfits-new #outfit-forms #pet-preview{float:left;height:300px;margin-right:2em;position:relative;width:300px}body.outfits-new #outfit-forms #pet-preview img{height:100%;width:100%}body.outfits-new #outfit-forms #pet-preview.loading img{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.outfits-new #outfit-forms #pet-preview.hidden img{display:none}body.outfits-new #outfit-forms #pet-preview.loaded{cursor:pointer}body.outfits-new #outfit-forms #pet-preview span{background:gray;background:rgba(0,0,0,0.5);bottom:0;color:#fff;padding:0.25em 0.5em;position:absolute;right:0}body.outfits-new #outfit-forms #pet-preview span:empty{display:none}body.outfits-new #outfit-forms fieldset{position:relative;left:16px}body.outfits-new #outfit-forms fieldset legend{margin-left:-16px}body.outfits-new #load-pet-to-wardrobe{font-size:175%;margin-bottom:1em;margin-top:2em}body.outfits-new #load-pet-to-wardrobe input{font-size:67%;padding:0.5em;width:10em}body.outfits-new #load-pet-to-wardrobe button{background:#ff5c00 url(/assets/alert-overlay.png) repeat-x;font-size:125%;padding:8px 14px 9px;font-size:67%}body.outfits-new #load-pet-to-wardrobe button:hover{background-color:#ee4b00}body.outfits-new #description,body.outfits-new #top-contributors{float:left}body.outfits-new #description{margin-right:2%;width:64%}body.outfits-new #top-contributors{border:1px solid #cec;margin-top:1em;padding:1%;width:30%}body.outfits-new #top-contributors ol{margin-left:2em;padding-left:1em}body.outfits-new #top-contributors>a{font-size:80%;display:block;text-align:right}body.outfits-new #how-can-i-help,body.outfits-new #i-found-something{background:#efe;border:1px solid #060;padding:1em;float:left;padding:1%;width:46%}body.outfits-new #how-can-i-help h2,body.outfits-new #i-found-something h2{font-style:italic}body.outfits-new #how-can-i-help input,body.outfits-new #how-can-i-help button,body.outfits-new #i-found-something input,body.outfits-new #i-found-something button{font-size:115%}body.outfits-new #how-can-i-help input[type=text],body.outfits-new #how-can-i-help body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.outfits-new #how-can-i-help textarea,body.outfits-new #i-found-something input[type=text],body.outfits-new #i-found-something body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.outfits-new #i-found-something textarea{border-color:#060;width:12em}body.outfits-new #how-can-i-help{margin-right:1%}body.outfits-new #i-found-something{margin-left:1%}body.outfits-new #i-found-something a{float:right;font-size:87.5%;margin-top:1em}body.outfits-new #sections{overflow:hidden;display:inline-block;display:table;list-style:none;margin-top:1em}body.outfits-new #sections{display:block}body.outfits-new #sections h3{margin-bottom:0.25em}body.outfits-new #sections li{border-left-color:#060;border-left-style:solid;border-left-width:1px;display:table-cell;padding:0.5em;position:relative;width:33.33333%}body.outfits-new #sections li:first-child{border-left:0}body.outfits-new #sections div{color:#484;font-size:75%;margin-left:1em;z-index:2}body.outfits-new #sections h4,body.outfits-new #sections input{font-size:116%}body.outfits-new #sections h4,body.outfits-new #sections input[type=text],body.outfits-new #sections body.pets-bulk #bulk-pets-form textarea,body.pets-bulk #bulk-pets-form body.outfits-new #sections textarea{color:inherit}body.outfits-new #sections h4 a{background:#ffffc0}body.outfits-new #sections img{-moz-opacity:0.75;-webkit-opacity:0.75;-o-opacity:0.75;-khtml-opacity:0.75;float:right;margin-left:0.5em}body.outfits-new #sections img:hover{-moz-opacity:1;-webkit-opacity:1;-o-opacity:1;-khtml-opacity:1}body.outfits-new #sections p{min-height:4.5em}body.outfits-new #whats-new{overflow:hidden;display:inline-block;height:300px;margin-bottom:1em}body.outfits-new #whats-new{display:block}body.outfits-new #whats-new #blog-preview{background:#efe;border:1px solid #060;display:none;float:left;height:274px;margin-right:12px;padding:12px;width:495.33333px}body.outfits-new #whats-new #blog-preview>h2{font-size:150%}body.outfits-new #whats-new #blog-preview>div,body.outfits-new #whats-new #blog-preview>a{font-size:85%}body.outfits-new #whats-new #blog-preview>div{height:200px;margin-bottom:0.75em;overflow:auto;position:relative}body.outfits-new #whats-new #blog-preview>div ul,body.outfits-new #whats-new #blog-preview>div ol{margin-bottom:1em;padding:0 1.5em}body.outfits-new #whats-new #blog-preview #blog-preview-linkback{float:left}body.outfits-new #whats-new #blog-preview #blog-preview-comments{float:right;font-size:85%;margin-left:1em}body.outfits-new #whats-new #newest-items{float:right;text-align:center;width:266.66667px}body.outfits-new #whats-new #newest-items h2{font-size:150%}body.outfits-new #whats-new #newest-items img{height:80px;width:80px}body.outfits-new #latest-contribution{border-color:#ada;border-style:solid;border-width:1px 0;font-size:85%;margin:1em 0;padding:0.5em 0;text-align:center}body.outfits-new #latest-contribution #recent-contributions-link{font-weight:bold;margin-right:0.5em}body.outfits-new #latest-contribution #recent-contributions-link::after{content:":"}body.outfits-new #latest-contribution #latest-contribution-created-at{color:#484;margin-left:0.5em}body.outfits-show .campaign-progress-wrapper{-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;border-radius:8px;background:#aaa;background-image:linear-gradient(#cccccc,#aaaaaa);border:4px solid #060;clear:both;margin-bottom:1.5em;position:relative;visibility:hidden}body.outfits-show .campaign-progress-wrapper .button{background:#ff5c00 url(/assets/alert-overlay.png) repeat-x;font-size:75%;margin-left:1em;padding:0.25em 0.75em}body.outfits-show .campaign-progress-wrapper .button:hover{background-color:#ee4b00}body.outfits-show .campaign-progress-wrapper .button:after{content:none}body.outfits-show .campaign-progress{background:#060;background-image:linear-gradient(#228822,#006600);border-right:1px solid #060}body.outfits-show .campaign-progress-wrapper,body.outfits-show .campaign-progress{height:2.5em}body.outfits-show .campaign-progress-label{text-shadow:#777,-1px,-1px,0;font-size:150%;left:0;position:absolute;top:0;text-align:center;width:100%}body.outfits-show .campaign-progress-label,body.outfits-show .campaign-progress-label a{color:#fff}body.outfits-show.campaign-loaded .campaign-progress-wrapper{visibility:visible}body.outfits-show #title{float:left}body.outfits-show #outfit-wardrobe-link{float:left;font-size:85%;margin-left:2em;margin-top:0.75em}body.outfits-show #outfit-user{float:right;margin-top:1em}body.outfits-show #preview-wrapper{clear:both;height:400px;margin:0 auto 1em;position:relative;width:400px}body.outfits-show #preview-wrapper #preview-swf{left:0;position:absolute;top:0}body.outfits-show #outfit-items{text-align:center}body.pets-bulk #needed-items-form,body.pets-bulk #bulk-pets-form{text-align:center}body.pets-bulk #needed-items-form #needed-items-pet{border-top:1px solid #ada;display:none;margin-top:1em;padding-top:1em}body.pets-bulk #needed-items-form #needed-items-pet h4{font-size:150%;margin-bottom:0.5em}body.pets-bulk #needed-items-form #needed-items-pet #needed-items-reload{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;font-size:12px;margin-left:1em;vertical-align:middle}body.pets-bulk #needed-items-form #needed-items-alert{display:none;margin-top:0.5em}body.pets-bulk #needed-items-form #needed-items-pet-thumbnail{height:50px;width:50px}body.pets-bulk #needed-items-form #needed-items-pet-items li.owned{background:#efe;border:1px solid #060}body.pets-bulk #needed-items-form .object-owned{color:#484;display:block;font-size:75%;font-style:italic;padding-bottom:0.25em}body.pets-bulk #needed-items-form.loading-pet #needed-items-pet-name-field,body.pets-bulk #needed-items-form.loading-items #needed-items-pet-name-field{background-image:url(/assets/loading.gif);background-position:center right;background-repeat:no-repeat}body.pets-bulk #needed-items-form.loading-pet #needed-items-pet-items,body.pets-bulk #needed-items-form.loading-items #needed-items-pet-items{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.pets-bulk #needed-items-form.loading-pet #needed-items-pet h4{-moz-opacity:0.5;-webkit-opacity:0.5;-o-opacity:0.5;-khtml-opacity:0.5}body.pets-bulk #needed-items-form.loaded #needed-items-pet{display:block}body.pets-bulk #needed-items-form.failed #needed-items-alert{display:block}body.pets-bulk #bulk-pets-form{border-top:1px solid #060;margin-top:12px;padding-top:12px}body.pets-bulk #bulk-pets-form textarea{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;display:inline;font:inherit;height:1.5em;overflow:hidden;resize:none}body.pets-bulk #bulk-pets-form ul{list-style:none;margin-top:1em}body.pets-bulk #bulk-pets-form ul li{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;background:#eee;margin:0 auto;min-width:25%;text-align:left}body.pets-bulk #bulk-pets-form ul li .waiting-message,body.pets-bulk #bulk-pets-form ul li .loading-message,body.pets-bulk #bulk-pets-form ul li .response{display:none;font-size:75%;font-style:italic;margin-left:75px}body.pets-bulk #bulk-pets-form ul li.waiting .waiting-message,body.pets-bulk #bulk-pets-form ul li.loading .loading-message,body.pets-bulk #bulk-pets-form ul li.loaded .response,body.pets-bulk #bulk-pets-form ul li.failed .response{display:block}body.pets-bulk #bulk-pets-form ul li.loaded{background:#e6efc2}body.pets-bulk #bulk-pets-form ul li.failed{background:#fbe3e4}body.pets-bulk #bulk-pets-form ul img{float:left;height:50px;width:50px}body.pets-bulk.js .noscript{display:none}body.pets-bulk.js .script-only{display:block}body.pets-bulk .script-only{display:none}body.static-donate .campaign-progress-wrapper{-webkit-border-radius:8px;-moz-border-radius:8px;-ms-border-radius:8px;-o-border-radius:8px;border-radius:8px;background:#aaa;background-image:linear-gradient(#cccccc,#aaaaaa);border:4px solid #060;clear:both;margin-bottom:1.5em;position:relative;visibility:hidden}body.static-donate .campaign-progress-wrapper .button{background:#ff5c00 url(/assets/alert-overlay.png) repeat-x;font-size:75%;margin-left:1em;padding:0.25em 0.75em}body.static-donate .campaign-progress-wrapper .button:hover{background-color:#ee4b00}body.static-donate .campaign-progress-wrapper .button:after{content:none}body.static-donate .campaign-progress{background:#060;background-image:linear-gradient(#228822,#006600);border-right:1px solid #060}body.static-donate .campaign-progress-wrapper,body.static-donate .campaign-progress{height:2.5em}body.static-donate .campaign-progress-label{text-shadow:#777,-1px,-1px,0;font-size:150%;left:0;position:absolute;top:0;text-align:center;width:100%}body.static-donate .campaign-progress-label,body.static-donate .campaign-progress-label a{color:#fff}body.static-donate.campaign-loaded .campaign-progress-wrapper{visibility:visible}body.static-donate #title{margin-bottom:0}body.static-donate h2{font-style:italic;font-weight:normal}body.static-donate #title,body.static-donate h2{clear:left;float:left}body.static-donate h2{margin-bottom:0.25em}body.static-donate #image-mode-data{clear:both;display:block;float:left;margin-right:20px;width:344px}body.static-donate #image-mode-preview{border:1px solid #060;display:block;margin:0 0 2em 0;padding-top:20px;padding-right:20px;padding-bottom:13.33333px;padding-left:20px}body.static-donate #image-mode-preview img{border:1px solid #060;height:300px;margin-bottom:0.5em;width:300px}body.static-donate #image-mode-preview figcaption{display:block;font-family:Calligraffitti;font-size:250%;text-align:center}body.static-donate #campaign-donors{display:none;margin-right:20px;width:344px}body.static-donate #campaign-donors ol{font-size:85%;padding-left:2em}body.static-donate #campaign-donors ol span{color:#484;float:right}body.static-donate #campaign-donors.has-donors{display:block}body.static-donate #image-mode-beta{background:#efe;border:1px solid #060;padding:1em;border-width:1px;display:block;float:left;margin-bottom:1em;padding:10px 15px;text-align:center;width:404px}body.static-donate #image-mode-beta header{display:block;font-weight:bold}body.static-donate #image-mode-beta p{font-family:"Droid Sans",Helvetica,Arial,Verdana,sans-serif;font-size:75%;margin:0}body.static-donate #image-mode-beta form{margin:0.75em 0}body.static-donate #image-mode-beta form label{font-size:85%;font-weight:bold}body.static-donate #image-mode-beta form label:after{content:":"}body.static-donate #image-mode-beta form input{width:5em}body.static-donate #image-mode-beta form button{background:#ff5c00 url(/assets/alert-overlay.png) repeat-x}body.static-donate #image-mode-beta form button:hover{background-color:#ee4b00}body.static-donate #image-mode-description,body.static-donate #image-mode-comments{float:right;width:436px}body.static-image_mode h2{margin-bottom:0.25em;margin-top:1.25em}body.static-image_mode ol,body.static-image_mode ul{font-family:"Droid Serif",Georgia,"Times New Roman",Times,serif;margin-bottom:1em;padding-left:3em}body.static-terms{text-align:center}body.users-top_contributors{text-align:center}body.users-top_contributors #top-contributors{border-spacing:0;border-width:1px 1px 0 0;margin:1em auto}body.users-top_contributors #top-contributors,body.users-top_contributors #top-contributors td,body.users-top_contributors #top-contributors th{border-color:#040;border-style:solid}body.users-top_contributors #top-contributors td,body.users-top_contributors #top-contributors th{border-width:0 0 1px 1px;padding:0.5em 1em} diff --git a/public/assets/application.css.gz b/public/assets/application.css.gz new file mode 100644 index 00000000..4bc48cc2 Binary files /dev/null and b/public/assets/application.css.gz differ diff --git a/public/assets/application.js b/public/assets/application.js new file mode 100644 index 00000000..1c8a0e79 --- /dev/null +++ b/public/assets/application.js @@ -0,0 +1 @@ +; \ No newline at end of file diff --git a/public/assets/application.js.gz b/public/assets/application.js.gz new file mode 100644 index 00000000..e5e3b4f4 Binary files /dev/null and b/public/assets/application.js.gz differ diff --git a/public/assets/blog-3c0a43b8489ccaedf87d6cf963e8f491.png b/public/assets/blog-3c0a43b8489ccaedf87d6cf963e8f491.png new file mode 100644 index 00000000..0b118eef Binary files /dev/null and b/public/assets/blog-3c0a43b8489ccaedf87d6cf963e8f491.png differ diff --git a/public/assets/blog.png b/public/assets/blog.png new file mode 100644 index 00000000..0b118eef Binary files /dev/null and b/public/assets/blog.png differ diff --git a/public/assets/closet_hangers/index-54a3fdc9636ae17d082c8021ffc15fa6.js b/public/assets/closet_hangers/index-54a3fdc9636ae17d082c8021ffc15fa6.js new file mode 100644 index 00000000..d284529e --- /dev/null +++ b/public/assets/closet_hangers/index-54a3fdc9636ae17d082c8021ffc15fa6.js @@ -0,0 +1 @@ +(function(){function t(t){e[e.length]=t}function n(){for(var t=0;t0,n[n.length]={group:i,item:s,label:s.label,hasHanger:a};for(var f=0;f0,n[n.length]={group:i,item:s,label:s.label,list:i.lists[f],hasHanger:a}}t(n)}}});var g=m.data("autocomplete");g._renderItem=function(e,t){var n=$("
  • ").data("item.autocomplete",t);if(t.is_item)$("#autocomplete-item-tmpl").tmpl({item_name:t.label}).appendTo(n);else if(t.list){var r=t.list.label;t.hasHanger?$("#autocomplete-already-in-collection-tmpl").tmpl({collection_name:r}).appendTo(n):$("#autocomplete-add-to-list-tmpl").tmpl({list_name:r}).appendTo(n),n.addClass("closet-list-autocomplete-item")}else{var i=t.group.label;t.hasHanger?$("#autocomplete-already-in-collection-tmpl").tmpl({collection_name:i}).appendTo(n):$("#autocomplete-add-to-group-tmpl").tmpl({group_name:i.replace(/\s+$/,"")}).appendTo(n),n.addClass("closet-hangers-group-autocomplete-item")}return n.appendTo(e)};var y=$("#closet-hangers-contact"),b=$(".edit-contact-link"),w=y.children("form"),E=$("#cancel-contact-link"),S=w.children("input[type=text]"),x=$("#contact-link-has-value span");b.click(function(){y.addClass("editing"),S.focus()}),E.click(T),w.submit(function(e){var t=w.serialize();w.disableForms(),$.ajax({url:w.attr("action")+".json",type:"post",data:t,dataType:"json",complete:function(){w.enableForms()},success:function(){var e=S.val();e.length>0?(b.addClass("has-value"),x.text(e)):b.removeClass("has-value"),T()},error:function(e){u(e,"saving Neopets username")}}),e.preventDefault()}),$("input[type=submit][data-confirm]").live("click",function(e){confirm(this.getAttribute("data-confirm"))||e.preventDefault()}),t(function(){$("div.closet-list").droppable({accept:"div.object",activate:function(){$(this).find(".closet-list-content").animate({opacity:0,height:100},250)},activeClass:"droppable-active",deactivate:function(){$(this).find(".closet-list-content").css("height","auto").animate({opacity:1},250)},drop:function(e,t){var n=t.draggable.find("form.closet-hanger-update");n.find("input[name=closet_hanger[list_id]]").val(this.getAttribute("data-id")),n.find("input[name=closet_hanger[owned]]").val($(this).closest(".closet-hangers-group").attr("data-owned")),p(n)}})}),C().live("change",N),t(function(){C().each(N)}),$("#toggle-help").click(function(){$("#closet-hangers-help").toggleClass("hidden")}),$("#closet-hangers-share-box").mouseover(function(){$(this).focus()}).mouseout(function(){$(this).blur()}),n()})(); \ No newline at end of file diff --git a/public/assets/closet_hangers/index-54a3fdc9636ae17d082c8021ffc15fa6.js.gz b/public/assets/closet_hangers/index-54a3fdc9636ae17d082c8021ffc15fa6.js.gz new file mode 100644 index 00000000..040f500f Binary files /dev/null and b/public/assets/closet_hangers/index-54a3fdc9636ae17d082c8021ffc15fa6.js.gz differ diff --git a/public/assets/closet_hangers/index.js b/public/assets/closet_hangers/index.js new file mode 100644 index 00000000..d284529e --- /dev/null +++ b/public/assets/closet_hangers/index.js @@ -0,0 +1 @@ +(function(){function t(t){e[e.length]=t}function n(){for(var t=0;t0,n[n.length]={group:i,item:s,label:s.label,hasHanger:a};for(var f=0;f0,n[n.length]={group:i,item:s,label:s.label,list:i.lists[f],hasHanger:a}}t(n)}}});var g=m.data("autocomplete");g._renderItem=function(e,t){var n=$("
  • ").data("item.autocomplete",t);if(t.is_item)$("#autocomplete-item-tmpl").tmpl({item_name:t.label}).appendTo(n);else if(t.list){var r=t.list.label;t.hasHanger?$("#autocomplete-already-in-collection-tmpl").tmpl({collection_name:r}).appendTo(n):$("#autocomplete-add-to-list-tmpl").tmpl({list_name:r}).appendTo(n),n.addClass("closet-list-autocomplete-item")}else{var i=t.group.label;t.hasHanger?$("#autocomplete-already-in-collection-tmpl").tmpl({collection_name:i}).appendTo(n):$("#autocomplete-add-to-group-tmpl").tmpl({group_name:i.replace(/\s+$/,"")}).appendTo(n),n.addClass("closet-hangers-group-autocomplete-item")}return n.appendTo(e)};var y=$("#closet-hangers-contact"),b=$(".edit-contact-link"),w=y.children("form"),E=$("#cancel-contact-link"),S=w.children("input[type=text]"),x=$("#contact-link-has-value span");b.click(function(){y.addClass("editing"),S.focus()}),E.click(T),w.submit(function(e){var t=w.serialize();w.disableForms(),$.ajax({url:w.attr("action")+".json",type:"post",data:t,dataType:"json",complete:function(){w.enableForms()},success:function(){var e=S.val();e.length>0?(b.addClass("has-value"),x.text(e)):b.removeClass("has-value"),T()},error:function(e){u(e,"saving Neopets username")}}),e.preventDefault()}),$("input[type=submit][data-confirm]").live("click",function(e){confirm(this.getAttribute("data-confirm"))||e.preventDefault()}),t(function(){$("div.closet-list").droppable({accept:"div.object",activate:function(){$(this).find(".closet-list-content").animate({opacity:0,height:100},250)},activeClass:"droppable-active",deactivate:function(){$(this).find(".closet-list-content").css("height","auto").animate({opacity:1},250)},drop:function(e,t){var n=t.draggable.find("form.closet-hanger-update");n.find("input[name=closet_hanger[list_id]]").val(this.getAttribute("data-id")),n.find("input[name=closet_hanger[owned]]").val($(this).closest(".closet-hangers-group").attr("data-owned")),p(n)}})}),C().live("change",N),t(function(){C().each(N)}),$("#toggle-help").click(function(){$("#closet-hangers-help").toggleClass("hidden")}),$("#closet-hangers-share-box").mouseover(function(){$(this).focus()}).mouseout(function(){$(this).blur()}),n()})(); \ No newline at end of file diff --git a/public/assets/closet_hangers/index.js.gz b/public/assets/closet_hangers/index.js.gz new file mode 100644 index 00000000..b1146713 Binary files /dev/null and b/public/assets/closet_hangers/index.js.gz differ diff --git a/public/assets/closet_hangers/petpage-e20abd045aae24f02491660ae9e1a58b.js b/public/assets/closet_hangers/petpage-e20abd045aae24f02491660ae9e1a58b.js new file mode 100644 index 00000000..f7cf7ac9 --- /dev/null +++ b/public/assets/closet_hangers/petpage-e20abd045aae24f02491660ae9e1a58b.js @@ -0,0 +1 @@ +(function(){function e(){var e=$(this);e.closest("li").toggleClass("checked",e.is(":checked"))}$("#petpage-closet-lists input").click(e).each(e)})(); \ No newline at end of file diff --git a/public/assets/closet_hangers/petpage-e20abd045aae24f02491660ae9e1a58b.js.gz b/public/assets/closet_hangers/petpage-e20abd045aae24f02491660ae9e1a58b.js.gz new file mode 100644 index 00000000..f1f5ea3b Binary files /dev/null and b/public/assets/closet_hangers/petpage-e20abd045aae24f02491660ae9e1a58b.js.gz differ diff --git a/public/assets/closet_hangers/petpage.js b/public/assets/closet_hangers/petpage.js new file mode 100644 index 00000000..f7cf7ac9 --- /dev/null +++ b/public/assets/closet_hangers/petpage.js @@ -0,0 +1 @@ +(function(){function e(){var e=$(this);e.closest("li").toggleClass("checked",e.is(":checked"))}$("#petpage-closet-lists input").click(e).each(e)})(); \ No newline at end of file diff --git a/public/assets/closet_hangers/petpage.js.gz b/public/assets/closet_hangers/petpage.js.gz new file mode 100644 index 00000000..c564646f Binary files /dev/null and b/public/assets/closet_hangers/petpage.js.gz differ diff --git a/public/assets/controls-0bf0cc249afd7039305b3dff2670d113.js b/public/assets/controls-0bf0cc249afd7039305b3dff2670d113.js new file mode 100644 index 00000000..f167513f --- /dev/null +++ b/public/assets/controls-0bf0cc249afd7039305b3dff2670d113.js @@ -0,0 +1,36 @@ +// script.aculo.us controls.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 +// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) +// (c) 2005-2009 Ivan Krstic (http://blogs.law.harvard.edu/ivan) +// (c) 2005-2009 Jon Tirsen (http://www.tirsen.com) +// Contributors: +// Richard Livsey +// Rahul Bhargava +// Rob Wills +// +// script.aculo.us is freely distributable under the terms of an MIT-style license. +// For details, see the script.aculo.us web site: http://script.aculo.us/ +// Autocompleter.Base handles all the autocompletion functionality +// that's independent of the data source for autocompletion. This +// includes drawing the autocompletion menu, observing keyboard +// and mouse events, and similar. +// +// Specific autocompleters need to provide, at the very least, +// a getUpdatedChoices function that will be invoked every time +// the text inside the monitored textbox changes. This method +// should get the text for which to provide autocompletion by +// invoking this.getToken(), NOT by directly accessing +// this.element.value. This is to allow incremental tokenized +// autocompletion. Specific auto-completion logic (AJAX, etc) +// belongs in getUpdatedChoices. +// +// Tokenized incremental autocompletion is enabled automatically +// when an autocompleter is instantiated with the 'tokens' option +// in the options parameter, e.g.: +// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' }); +// will incrementally autocomplete with a comma as the token. +// Additionally, ',' in the above example can be replaced with +// a token array, e.g. { tokens: [',', '\n'] } which +// enables autocompletion on multiple tokens. This is most +// useful when one of the tokens is \n (a newline), as it +// allows smart autocompletion after linebreaks. +if(typeof Effect=="undefined")throw"controls.js requires including script.aculo.us' effects.js library";var Autocompleter={};Autocompleter.Base=Class.create({baseInitialize:function(e,t,n){e=$(e),this.element=e,this.update=$(t),this.hasFocus=!1,this.changed=!1,this.active=!1,this.index=0,this.entryCount=0,this.oldElementValue=this.element.value,this.setOptions?this.setOptions(n):this.options=n||{},this.options.paramName=this.options.paramName||this.element.name,this.options.tokens=this.options.tokens||[],this.options.frequency=this.options.frequency||.4,this.options.minChars=this.options.minChars||1,this.options.onShow=this.options.onShow||function(e,t){if(!t.style.position||t.style.position=="absolute")t.style.position="absolute",Position.clone(e,t,{setHeight:!1,offsetTop:e.offsetHeight});Effect.Appear(t,{duration:.15})},this.options.onHide=this.options.onHide||function(e,t){new Effect.Fade(t,{duration:.15})},typeof this.options.tokens=="string"&&(this.options.tokens=new Array(this.options.tokens)),this.options.tokens.include("\n")||this.options.tokens.push("\n"),this.observer=null,this.element.setAttribute("autocomplete","off"),Element.hide(this.update),Event.observe(this.element,"blur",this.onBlur.bindAsEventListener(this)),Event.observe(this.element,"keydown",this.onKeyPress.bindAsEventListener(this))},show:function(){Element.getStyle(this.update,"display")=="none"&&this.options.onShow(this.element,this.update),!this.iefix&&Prototype.Browser.IE&&Element.getStyle(this.update,"position")=="absolute"&&(new Insertion.After(this.update,''),this.iefix=$(this.update.id+"_iefix")),this.iefix&&setTimeout(this.fixIEOverlapping.bind(this),50)},fixIEOverlapping:function(){Position.clone(this.update,this.iefix,{setTop:!this.update.style.height}),this.iefix.style.zIndex=1,this.update.style.zIndex=2,Element.show(this.iefix)},hide:function(){this.stopIndicator(),Element.getStyle(this.update,"display")!="none"&&this.options.onHide(this.element,this.update),this.iefix&&Element.hide(this.iefix)},startIndicator:function(){this.options.indicator&&Element.show(this.options.indicator)},stopIndicator:function(){this.options.indicator&&Element.hide(this.options.indicator)},onKeyPress:function(e){if(this.active)switch(e.keyCode){case Event.KEY_TAB:case Event.KEY_RETURN:this.selectEntry(),Event.stop(e);case Event.KEY_ESC:this.hide(),this.active=!1,Event.stop(e);return;case Event.KEY_LEFT:case Event.KEY_RIGHT:return;case Event.KEY_UP:this.markPrevious(),this.render(),Event.stop(e);return;case Event.KEY_DOWN:this.markNext(),this.render(),Event.stop(e);return}else if(e.keyCode==Event.KEY_TAB||e.keyCode==Event.KEY_RETURN||Prototype.Browser.WebKit>0&&e.keyCode==0)return;this.changed=!0,this.hasFocus=!0,this.observer&&clearTimeout(this.observer),this.observer=setTimeout(this.onObserverEvent.bind(this),this.options.frequency*1e3)},activate:function(){this.changed=!1,this.hasFocus=!0,this.getUpdatedChoices()},onHover:function(e){var t=Event.findElement(e,"LI");this.index!=t.autocompleteIndex&&(this.index=t.autocompleteIndex,this.render()),Event.stop(e)},onClick:function(e){var t=Event.findElement(e,"LI");this.index=t.autocompleteIndex,this.selectEntry(),this.hide()},onBlur:function(e){setTimeout(this.hide.bind(this),250),this.hasFocus=!1,this.active=!1},render:function(){if(this.entryCount>0){for(var e=0;e0?this.index--:this.index=this.entryCount-1,this.getEntry(this.index).scrollIntoView(!0)},markNext:function(){this.index0&&(t=Element.collectTextNodes(n[0],this.options.select))}else t=Element.collectTextNodesIgnoreClass(e,"informal");var r=this.getTokenBounds();if(r[0]!=-1){var i=this.element.value.substr(0,r[0]),s=this.element.value.substr(r[0]).match(/^\s+/);s&&(i+=s[0]),this.element.value=i+t+this.element.value.substr(r[1])}else this.element.value=t;this.oldElementValue=this.element.value,this.element.focus(),this.options.afterUpdateElement&&this.options.afterUpdateElement(this.element,e)},updateChoices:function(e){if(!this.changed&&this.hasFocus){this.update.innerHTML=e,Element.cleanWhitespace(this.update),Element.cleanWhitespace(this.update.down());if(this.update.firstChild&&this.update.down().childNodes){this.entryCount=this.update.down().childNodes.length;for(var t=0;t=this.options.minChars?this.getUpdatedChoices():(this.active=!1,this.hide()),this.oldElementValue=this.element.value},getToken:function(){var e=this.getTokenBounds();return this.element.value.substring(e[0],e[1]).strip()},getTokenBounds:function(){if(null!=this.tokenBounds)return this.tokenBounds;var e=this.element.value;if(e.strip().empty())return[-1,0];var t=arguments.callee.getFirstDifferencePos(e,this.oldElementValue),n=t==this.oldElementValue.length?1:0,r=-1,i=e.length,s;for(var o=0,u=this.options.tokens.length;or&&(r=s),s=e.indexOf(this.options.tokens[o],t+n),-1!=s&&s"+o.substr(0,r.length)+""+o.substr(r.length)+"");break}if(r.length>=e.options.partialChars&&e.options.partialSearch&&u!=-1)if(e.options.fullSearch||/\s/.test(o.substr(u-1,1))){n.push("
  • "+o.substr(0,u)+""+o.substr(u,r.length)+""+o.substr(u+r.length)+"
  • ");break}u=e.options.ignoreCase?o.toLowerCase().indexOf(r.toLowerCase(),u+1):o.indexOf(r,u+1)}}return n.length&&(t=t.concat(n.slice(0,e.options.choices-t.length))),"
      "+t.join("")+"
    "}},e||{})}}),Field.scrollFreeActivate=function(e){setTimeout(function(){Field.activate(e)},1)},Ajax.InPlaceEditor=Class.create({initialize:function(e,t,n){this.url=t,this.element=e=$(e),this.prepareOptions(),this._controls={},arguments.callee.dealWithDeprecatedOptions(n),Object.extend(this.options,n||{}),!this.options.formId&&this.element.id&&(this.options.formId=this.element.id+"-inplaceeditor",$(this.options.formId)&&(this.options.formId="")),this.options.externalControl&&(this.options.externalControl=$(this.options.externalControl)),this.options.externalControl||(this.options.externalControlOnly=!1),this._originalBackground=this.element.getStyle("background-color")||"transparent",this.element.title=this.options.clickToEditText,this._boundCancelHandler=this.handleFormCancellation.bind(this),this._boundComplete=(this.options.onComplete||Prototype.emptyFunction).bind(this),this._boundFailureHandler=this.handleAJAXFailure.bind(this),this._boundSubmitHandler=this.handleFormSubmission.bind(this),this._boundWrapperHandler=this.wrapUp.bind(this),this.registerListeners()},checkForEscapeOrReturn:function(e){if(!this._editing||e.ctrlKey||e.altKey||e.shiftKey)return;Event.KEY_ESC==e.keyCode?this.handleFormCancellation(e):Event.KEY_RETURN==e.keyCode&&this.handleFormSubmission(e)},createControl:function(e,t,n){var r=this.options[e+"Control"],i=this.options[e+"Text"];if("button"==r){var s=document.createElement("input");s.type="submit",s.value=i,s.className="editor_"+e+"_button","cancel"==e&&(s.onclick=this._boundCancelHandler),this._form.appendChild(s),this._controls[e]=s}else if("link"==r){var o=document.createElement("a");o.href="#",o.appendChild(document.createTextNode(i)),o.onclick="cancel"==e?this._boundCancelHandler:this._boundSubmitHandler,o.className="editor_"+e+"_link",n&&(o.className+=" "+n),this._form.appendChild(o),this._controls[e]=o}},createEditField:function(){var e=this.options.loadTextURL?this.options.loadingText:this.getText(),t;if(1>=this.options.rows&&!/\r|\n/.test(this.getText())){t=document.createElement("input"),t.type="text";var n=this.options.size||this.options.cols||0;0=this.options.rows?this.options.autoRows:this.options.rows,t.cols=this.options.cols||40;t.name=this.options.paramName,t.value=e,t.className="editor_field",this.options.submitOnBlur&&(t.onblur=this._boundSubmitHandler),this._controls.editor=t,this.options.loadTextURL&&this.loadExternalText(),this._form.appendChild(this._controls.editor)},createForm:function(){function t(t,n){var r=e.options["text"+t+"Controls"];if(!r||n===!1)return;e._form.appendChild(document.createTextNode(r))}var e=this;this._form=$(document.createElement("form")),this._form.id=this.options.formId,this._form.addClassName(this.options.formClassName),this._form.onsubmit=this._boundSubmitHandler,this.createEditField(),"textarea"==this._controls.editor.tagName.toLowerCase()&&this._form.appendChild(document.createElement("br")),this.options.onFormCustomization&&this.options.onFormCustomization(this,this._form),t("Before",this.options.okControl||this.options.cancelControl),this.createControl("ok",this._boundSubmitHandler),t("Between",this.options.okControl&&this.options.cancelControl),this.createControl("cancel",this._boundCancelHandler,"editor_cancel"),t("After",this.options.okControl||this.options.cancelControl)},destroy:function(){this._oldInnerHTML&&(this.element.innerHTML=this._oldInnerHTML),this.leaveEditMode(),this.unregisterListeners()},enterEditMode:function(e){if(this._saving||this._editing)return;this._editing=!0,this.triggerCallback("onEnterEditMode"),this.options.externalControl&&this.options.externalControl.hide(),this.element.hide(),this.createForm(),this.element.parentNode.insertBefore(this._form,this.element),this.options.loadTextURL||this.postProcessEditField(),e&&Event.stop(e)},enterHover:function(e){this.options.hoverClassName&&this.element.addClassName(this.options.hoverClassName);if(this._saving)return;this.triggerCallback("onEnterHover")},getText:function(){return this.element.innerHTML.unescapeHTML()},handleAJAXFailure:function(e){this.triggerCallback("onFailure",e),this._oldInnerHTML&&(this.element.innerHTML=this._oldInnerHTML,this._oldInnerHTML=null)},handleFormCancellation:function(e){this.wrapUp(),e&&Event.stop(e)},handleFormSubmission:function(e){var t=this._form,n=$F(this._controls.editor);this.prepareSubmission();var r=this.options.callback(t,n)||"";Object.isString(r)&&(r=r.toQueryParams()),r.editorId=this.element.id;if(this.options.htmlResponse){var i=Object.extend({evalScripts:!0},this.options.ajaxOptions);Object.extend(i,{parameters:r,onComplete:this._boundWrapperHandler,onFailure:this._boundFailureHandler}),new Ajax.Updater({success:this.element},this.url,i)}else{var i=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(i,{parameters:r,onComplete:this._boundWrapperHandler,onFailure:this._boundFailureHandler}),new Ajax.Request(this.url,i)}e&&Event.stop(e)},leaveEditMode:function(){this.element.removeClassName(this.options.savingClassName),this.removeForm(),this.leaveHover(),this.element.style.backgroundColor=this._originalBackground,this.element.show(),this.options.externalControl&&this.options.externalControl.show(),this._saving=!1,this._editing=!1,this._oldInnerHTML=null,this.triggerCallback("onLeaveEditMode")},leaveHover:function(e){this.options.hoverClassName&&this.element.removeClassName(this.options.hoverClassName);if(this._saving)return;this.triggerCallback("onLeaveHover")},loadExternalText:function(){this._form.addClassName(this.options.loadingClassName),this._controls.editor.disabled=!0;var e=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(e,{parameters:"editorId="+encodeURIComponent(this.element.id),onComplete:Prototype.emptyFunction,onSuccess:function(e){this._form.removeClassName(this.options.loadingClassName);var t=e.responseText;this.options.stripLoadedTextTags&&(t=t.stripTags()),this._controls.editor.value=t,this._controls.editor.disabled=!1,this.postProcessEditField()}.bind(this),onFailure:this._boundFailureHandler}),new Ajax.Request(this.options.loadTextURL,e)},postProcessEditField:function(){var e=this.options.fieldPostCreation;e&&$(this._controls.editor)["focus"==e?"focus":"activate"]()},prepareOptions:function(){this.options=Object.clone(Ajax.InPlaceEditor.DefaultOptions),Object.extend(this.options,Ajax.InPlaceEditor.DefaultCallbacks),[this._extraDefaultOptions].flatten().compact().each(function(e){Object.extend(this.options,e)}.bind(this))},prepareSubmission:function(){this._saving=!0,this.removeForm(),this.leaveHover(),this.showSaving()},registerListeners:function(){this._listeners={};var e;$H(Ajax.InPlaceEditor.Listeners).each(function(t){e=this[t.value].bind(this),this._listeners[t.key]=e,this.options.externalControlOnly||this.element.observe(t.key,e),this.options.externalControl&&this.options.externalControl.observe(t.key,e)}.bind(this))},removeForm:function(){if(!this._form)return;this._form.remove(),this._form=null,this._controls={}},showSaving:function(){this._oldInnerHTML=this.element.innerHTML,this.element.innerHTML=this.options.savingText,this.element.addClassName(this.options.savingClassName),this.element.style.backgroundColor=this._originalBackground,this.element.show()},triggerCallback:function(e,t){"function"==typeof this.options[e]&&this.options[e](this,t)},unregisterListeners:function(){$H(this._listeners).each(function(e){this.options.externalControlOnly||this.element.stopObserving(e.key,e.value),this.options.externalControl&&this.options.externalControl.stopObserving(e.key,e.value)}.bind(this))},wrapUp:function(e){this.leaveEditMode(),this._boundComplete(e,this.element)}}),Object.extend(Ajax.InPlaceEditor.prototype,{dispose:Ajax.InPlaceEditor.prototype.destroy}),Ajax.InPlaceCollectionEditor=Class.create(Ajax.InPlaceEditor,{initialize:function($super,e,t,n){this._extraDefaultOptions=Ajax.InPlaceCollectionEditor.DefaultOptions,$super(e,t,n)},createEditField:function(){var e=document.createElement("select");e.name=this.options.paramName,e.size=1,this._controls.editor=e,this._collection=this.options.collection||[],this.options.loadCollectionURL?this.loadCollection():this.checkForExternalText(),this._form.appendChild(this._controls.editor)},loadCollection:function(){this._form.addClassName(this.options.loadingClassName),this.showLoadingText(this.options.loadingCollectionText);var options=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(options,{parameters:"editorId="+encodeURIComponent(this.element.id),onComplete:Prototype.emptyFunction,onSuccess:function(transport){var js=transport.responseText.strip();if(!/^\[.*\]$/.test(js))throw"Server returned an invalid collection representation.";this._collection=eval(js),this.checkForExternalText()}.bind(this),onFailure:this.onFailure}),new Ajax.Request(this.options.loadCollectionURL,options)},showLoadingText:function(e){this._controls.editor.disabled=!0;var t=this._controls.editor.firstChild;t||(t=document.createElement("option"),t.value="",this._controls.editor.appendChild(t),t.selected=!0),t.update((e||"").stripScripts().stripTags())},checkForExternalText:function(){this._text=this.getText(),this.options.loadTextURL?this.loadExternalText():this.buildOptionList()},loadExternalText:function(){this.showLoadingText(this.options.loadingText);var e=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(e,{parameters:"editorId="+encodeURIComponent(this.element.id),onComplete:Prototype.emptyFunction,onSuccess:function(e){this._text=e.responseText.strip(),this.buildOptionList()}.bind(this),onFailure:this.onFailure}),new Ajax.Request(this.options.loadTextURL,e)},buildOptionList:function(){this._form.removeClassName(this.options.loadingClassName),this._collection=this._collection.map(function(e){return 2===e.length?e:[e,e].flatten()});var e="value"in this.options?this.options.value:this._text,t=this._collection.any(function(t){return t[0]==e}.bind(this));this._controls.editor.update("");var n;this._collection.each(function(r,i){n=document.createElement("option"),n.value=r[0],n.selected=t?r[0]==e:0==i,n.appendChild(document.createTextNode(r[1])),this._controls.editor.appendChild(n)}.bind(this)),this._controls.editor.disabled=!1,Field.scrollFreeActivate(this._controls.editor)}}),Ajax.InPlaceEditor.prototype.initialize.dealWithDeprecatedOptions=function(e){function t(t,n){if(t in e||n===undefined)return;e[t]=n}if(!e)return;t("cancelControl",e.cancelLink?"link":e.cancelButton?"button":e.cancelLink==e.cancelButton==0?!1:undefined),t("okControl",e.okLink?"link":e.okButton?"button":e.okLink==e.okButton==0?!1:undefined),t("highlightColor",e.highlightcolor),t("highlightEndColor",e.highlightendcolor)},Object.extend(Ajax.InPlaceEditor,{DefaultOptions:{ajaxOptions:{},autoRows:3,cancelControl:"link",cancelText:"cancel",clickToEditText:"Click to edit",externalControl:null,externalControlOnly:!1,fieldPostCreation:"activate",formClassName:"inplaceeditor-form",formId:null,highlightColor:"#ffff99",highlightEndColor:"#ffffff",hoverClassName:"",htmlResponse:!0,loadingClassName:"inplaceeditor-loading",loadingText:"Loading...",okControl:"button",okText:"ok",paramName:"value",rows:1,savingClassName:"inplaceeditor-saving",savingText:"Saving...",size:0,stripLoadedTextTags:!1,submitOnBlur:!1,textAfterControls:"",textBeforeControls:"",textBetweenControls:""},DefaultCallbacks:{callback:function(e){return Form.serialize(e)},onComplete:function(e,t){new Effect.Highlight(t,{startcolor:this.options.highlightColor,keepBackgroundImage:!0})},onEnterEditMode:null,onEnterHover:function(e){e.element.style.backgroundColor=e.options.highlightColor,e._effect&&e._effect.cancel()},onFailure:function(e,t){alert("Error communication with the server: "+e.responseText.stripTags())},onFormCustomization:null,onLeaveEditMode:null,onLeaveHover:function(e){e._effect=new Effect.Highlight(e.element,{startcolor:e.options.highlightColor,endcolor:e.options.highlightEndColor,restorecolor:e._originalBackground,keepBackgroundImage:!0})}},Listeners:{click:"enterEditMode",keydown:"checkForEscapeOrReturn",mouseover:"enterHover",mouseout:"leaveHover"}}),Ajax.InPlaceCollectionEditor.DefaultOptions={loadingCollectionText:"Loading options..."},Form.Element.DelayedObserver=Class.create({initialize:function(e,t,n){this.delay=t||.5,this.element=$(e),this.callback=n,this.timer=null,this.lastValue=$F(this.element),Event.observe(this.element,"keyup",this.delayedListener.bindAsEventListener(this))},delayedListener:function(e){if(this.lastValue==$F(this.element))return;this.timer&&clearTimeout(this.timer),this.timer=setTimeout(this.onTimerEvent.bind(this),this.delay*1e3),this.lastValue=$F(this.element)},onTimerEvent:function(){this.timer=null,this.callback(this.element,$F(this.element))}}); \ No newline at end of file diff --git a/public/assets/controls-0bf0cc249afd7039305b3dff2670d113.js.gz b/public/assets/controls-0bf0cc249afd7039305b3dff2670d113.js.gz new file mode 100644 index 00000000..a1761943 Binary files /dev/null and b/public/assets/controls-0bf0cc249afd7039305b3dff2670d113.js.gz differ diff --git a/public/assets/controls.js b/public/assets/controls.js new file mode 100644 index 00000000..f167513f --- /dev/null +++ b/public/assets/controls.js @@ -0,0 +1,36 @@ +// script.aculo.us controls.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 +// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) +// (c) 2005-2009 Ivan Krstic (http://blogs.law.harvard.edu/ivan) +// (c) 2005-2009 Jon Tirsen (http://www.tirsen.com) +// Contributors: +// Richard Livsey +// Rahul Bhargava +// Rob Wills +// +// script.aculo.us is freely distributable under the terms of an MIT-style license. +// For details, see the script.aculo.us web site: http://script.aculo.us/ +// Autocompleter.Base handles all the autocompletion functionality +// that's independent of the data source for autocompletion. This +// includes drawing the autocompletion menu, observing keyboard +// and mouse events, and similar. +// +// Specific autocompleters need to provide, at the very least, +// a getUpdatedChoices function that will be invoked every time +// the text inside the monitored textbox changes. This method +// should get the text for which to provide autocompletion by +// invoking this.getToken(), NOT by directly accessing +// this.element.value. This is to allow incremental tokenized +// autocompletion. Specific auto-completion logic (AJAX, etc) +// belongs in getUpdatedChoices. +// +// Tokenized incremental autocompletion is enabled automatically +// when an autocompleter is instantiated with the 'tokens' option +// in the options parameter, e.g.: +// new Ajax.Autocompleter('id','upd', '/url/', { tokens: ',' }); +// will incrementally autocomplete with a comma as the token. +// Additionally, ',' in the above example can be replaced with +// a token array, e.g. { tokens: [',', '\n'] } which +// enables autocompletion on multiple tokens. This is most +// useful when one of the tokens is \n (a newline), as it +// allows smart autocompletion after linebreaks. +if(typeof Effect=="undefined")throw"controls.js requires including script.aculo.us' effects.js library";var Autocompleter={};Autocompleter.Base=Class.create({baseInitialize:function(e,t,n){e=$(e),this.element=e,this.update=$(t),this.hasFocus=!1,this.changed=!1,this.active=!1,this.index=0,this.entryCount=0,this.oldElementValue=this.element.value,this.setOptions?this.setOptions(n):this.options=n||{},this.options.paramName=this.options.paramName||this.element.name,this.options.tokens=this.options.tokens||[],this.options.frequency=this.options.frequency||.4,this.options.minChars=this.options.minChars||1,this.options.onShow=this.options.onShow||function(e,t){if(!t.style.position||t.style.position=="absolute")t.style.position="absolute",Position.clone(e,t,{setHeight:!1,offsetTop:e.offsetHeight});Effect.Appear(t,{duration:.15})},this.options.onHide=this.options.onHide||function(e,t){new Effect.Fade(t,{duration:.15})},typeof this.options.tokens=="string"&&(this.options.tokens=new Array(this.options.tokens)),this.options.tokens.include("\n")||this.options.tokens.push("\n"),this.observer=null,this.element.setAttribute("autocomplete","off"),Element.hide(this.update),Event.observe(this.element,"blur",this.onBlur.bindAsEventListener(this)),Event.observe(this.element,"keydown",this.onKeyPress.bindAsEventListener(this))},show:function(){Element.getStyle(this.update,"display")=="none"&&this.options.onShow(this.element,this.update),!this.iefix&&Prototype.Browser.IE&&Element.getStyle(this.update,"position")=="absolute"&&(new Insertion.After(this.update,''),this.iefix=$(this.update.id+"_iefix")),this.iefix&&setTimeout(this.fixIEOverlapping.bind(this),50)},fixIEOverlapping:function(){Position.clone(this.update,this.iefix,{setTop:!this.update.style.height}),this.iefix.style.zIndex=1,this.update.style.zIndex=2,Element.show(this.iefix)},hide:function(){this.stopIndicator(),Element.getStyle(this.update,"display")!="none"&&this.options.onHide(this.element,this.update),this.iefix&&Element.hide(this.iefix)},startIndicator:function(){this.options.indicator&&Element.show(this.options.indicator)},stopIndicator:function(){this.options.indicator&&Element.hide(this.options.indicator)},onKeyPress:function(e){if(this.active)switch(e.keyCode){case Event.KEY_TAB:case Event.KEY_RETURN:this.selectEntry(),Event.stop(e);case Event.KEY_ESC:this.hide(),this.active=!1,Event.stop(e);return;case Event.KEY_LEFT:case Event.KEY_RIGHT:return;case Event.KEY_UP:this.markPrevious(),this.render(),Event.stop(e);return;case Event.KEY_DOWN:this.markNext(),this.render(),Event.stop(e);return}else if(e.keyCode==Event.KEY_TAB||e.keyCode==Event.KEY_RETURN||Prototype.Browser.WebKit>0&&e.keyCode==0)return;this.changed=!0,this.hasFocus=!0,this.observer&&clearTimeout(this.observer),this.observer=setTimeout(this.onObserverEvent.bind(this),this.options.frequency*1e3)},activate:function(){this.changed=!1,this.hasFocus=!0,this.getUpdatedChoices()},onHover:function(e){var t=Event.findElement(e,"LI");this.index!=t.autocompleteIndex&&(this.index=t.autocompleteIndex,this.render()),Event.stop(e)},onClick:function(e){var t=Event.findElement(e,"LI");this.index=t.autocompleteIndex,this.selectEntry(),this.hide()},onBlur:function(e){setTimeout(this.hide.bind(this),250),this.hasFocus=!1,this.active=!1},render:function(){if(this.entryCount>0){for(var e=0;e0?this.index--:this.index=this.entryCount-1,this.getEntry(this.index).scrollIntoView(!0)},markNext:function(){this.index0&&(t=Element.collectTextNodes(n[0],this.options.select))}else t=Element.collectTextNodesIgnoreClass(e,"informal");var r=this.getTokenBounds();if(r[0]!=-1){var i=this.element.value.substr(0,r[0]),s=this.element.value.substr(r[0]).match(/^\s+/);s&&(i+=s[0]),this.element.value=i+t+this.element.value.substr(r[1])}else this.element.value=t;this.oldElementValue=this.element.value,this.element.focus(),this.options.afterUpdateElement&&this.options.afterUpdateElement(this.element,e)},updateChoices:function(e){if(!this.changed&&this.hasFocus){this.update.innerHTML=e,Element.cleanWhitespace(this.update),Element.cleanWhitespace(this.update.down());if(this.update.firstChild&&this.update.down().childNodes){this.entryCount=this.update.down().childNodes.length;for(var t=0;t=this.options.minChars?this.getUpdatedChoices():(this.active=!1,this.hide()),this.oldElementValue=this.element.value},getToken:function(){var e=this.getTokenBounds();return this.element.value.substring(e[0],e[1]).strip()},getTokenBounds:function(){if(null!=this.tokenBounds)return this.tokenBounds;var e=this.element.value;if(e.strip().empty())return[-1,0];var t=arguments.callee.getFirstDifferencePos(e,this.oldElementValue),n=t==this.oldElementValue.length?1:0,r=-1,i=e.length,s;for(var o=0,u=this.options.tokens.length;or&&(r=s),s=e.indexOf(this.options.tokens[o],t+n),-1!=s&&s"+o.substr(0,r.length)+""+o.substr(r.length)+"");break}if(r.length>=e.options.partialChars&&e.options.partialSearch&&u!=-1)if(e.options.fullSearch||/\s/.test(o.substr(u-1,1))){n.push("
  • "+o.substr(0,u)+""+o.substr(u,r.length)+""+o.substr(u+r.length)+"
  • ");break}u=e.options.ignoreCase?o.toLowerCase().indexOf(r.toLowerCase(),u+1):o.indexOf(r,u+1)}}return n.length&&(t=t.concat(n.slice(0,e.options.choices-t.length))),"
      "+t.join("")+"
    "}},e||{})}}),Field.scrollFreeActivate=function(e){setTimeout(function(){Field.activate(e)},1)},Ajax.InPlaceEditor=Class.create({initialize:function(e,t,n){this.url=t,this.element=e=$(e),this.prepareOptions(),this._controls={},arguments.callee.dealWithDeprecatedOptions(n),Object.extend(this.options,n||{}),!this.options.formId&&this.element.id&&(this.options.formId=this.element.id+"-inplaceeditor",$(this.options.formId)&&(this.options.formId="")),this.options.externalControl&&(this.options.externalControl=$(this.options.externalControl)),this.options.externalControl||(this.options.externalControlOnly=!1),this._originalBackground=this.element.getStyle("background-color")||"transparent",this.element.title=this.options.clickToEditText,this._boundCancelHandler=this.handleFormCancellation.bind(this),this._boundComplete=(this.options.onComplete||Prototype.emptyFunction).bind(this),this._boundFailureHandler=this.handleAJAXFailure.bind(this),this._boundSubmitHandler=this.handleFormSubmission.bind(this),this._boundWrapperHandler=this.wrapUp.bind(this),this.registerListeners()},checkForEscapeOrReturn:function(e){if(!this._editing||e.ctrlKey||e.altKey||e.shiftKey)return;Event.KEY_ESC==e.keyCode?this.handleFormCancellation(e):Event.KEY_RETURN==e.keyCode&&this.handleFormSubmission(e)},createControl:function(e,t,n){var r=this.options[e+"Control"],i=this.options[e+"Text"];if("button"==r){var s=document.createElement("input");s.type="submit",s.value=i,s.className="editor_"+e+"_button","cancel"==e&&(s.onclick=this._boundCancelHandler),this._form.appendChild(s),this._controls[e]=s}else if("link"==r){var o=document.createElement("a");o.href="#",o.appendChild(document.createTextNode(i)),o.onclick="cancel"==e?this._boundCancelHandler:this._boundSubmitHandler,o.className="editor_"+e+"_link",n&&(o.className+=" "+n),this._form.appendChild(o),this._controls[e]=o}},createEditField:function(){var e=this.options.loadTextURL?this.options.loadingText:this.getText(),t;if(1>=this.options.rows&&!/\r|\n/.test(this.getText())){t=document.createElement("input"),t.type="text";var n=this.options.size||this.options.cols||0;0=this.options.rows?this.options.autoRows:this.options.rows,t.cols=this.options.cols||40;t.name=this.options.paramName,t.value=e,t.className="editor_field",this.options.submitOnBlur&&(t.onblur=this._boundSubmitHandler),this._controls.editor=t,this.options.loadTextURL&&this.loadExternalText(),this._form.appendChild(this._controls.editor)},createForm:function(){function t(t,n){var r=e.options["text"+t+"Controls"];if(!r||n===!1)return;e._form.appendChild(document.createTextNode(r))}var e=this;this._form=$(document.createElement("form")),this._form.id=this.options.formId,this._form.addClassName(this.options.formClassName),this._form.onsubmit=this._boundSubmitHandler,this.createEditField(),"textarea"==this._controls.editor.tagName.toLowerCase()&&this._form.appendChild(document.createElement("br")),this.options.onFormCustomization&&this.options.onFormCustomization(this,this._form),t("Before",this.options.okControl||this.options.cancelControl),this.createControl("ok",this._boundSubmitHandler),t("Between",this.options.okControl&&this.options.cancelControl),this.createControl("cancel",this._boundCancelHandler,"editor_cancel"),t("After",this.options.okControl||this.options.cancelControl)},destroy:function(){this._oldInnerHTML&&(this.element.innerHTML=this._oldInnerHTML),this.leaveEditMode(),this.unregisterListeners()},enterEditMode:function(e){if(this._saving||this._editing)return;this._editing=!0,this.triggerCallback("onEnterEditMode"),this.options.externalControl&&this.options.externalControl.hide(),this.element.hide(),this.createForm(),this.element.parentNode.insertBefore(this._form,this.element),this.options.loadTextURL||this.postProcessEditField(),e&&Event.stop(e)},enterHover:function(e){this.options.hoverClassName&&this.element.addClassName(this.options.hoverClassName);if(this._saving)return;this.triggerCallback("onEnterHover")},getText:function(){return this.element.innerHTML.unescapeHTML()},handleAJAXFailure:function(e){this.triggerCallback("onFailure",e),this._oldInnerHTML&&(this.element.innerHTML=this._oldInnerHTML,this._oldInnerHTML=null)},handleFormCancellation:function(e){this.wrapUp(),e&&Event.stop(e)},handleFormSubmission:function(e){var t=this._form,n=$F(this._controls.editor);this.prepareSubmission();var r=this.options.callback(t,n)||"";Object.isString(r)&&(r=r.toQueryParams()),r.editorId=this.element.id;if(this.options.htmlResponse){var i=Object.extend({evalScripts:!0},this.options.ajaxOptions);Object.extend(i,{parameters:r,onComplete:this._boundWrapperHandler,onFailure:this._boundFailureHandler}),new Ajax.Updater({success:this.element},this.url,i)}else{var i=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(i,{parameters:r,onComplete:this._boundWrapperHandler,onFailure:this._boundFailureHandler}),new Ajax.Request(this.url,i)}e&&Event.stop(e)},leaveEditMode:function(){this.element.removeClassName(this.options.savingClassName),this.removeForm(),this.leaveHover(),this.element.style.backgroundColor=this._originalBackground,this.element.show(),this.options.externalControl&&this.options.externalControl.show(),this._saving=!1,this._editing=!1,this._oldInnerHTML=null,this.triggerCallback("onLeaveEditMode")},leaveHover:function(e){this.options.hoverClassName&&this.element.removeClassName(this.options.hoverClassName);if(this._saving)return;this.triggerCallback("onLeaveHover")},loadExternalText:function(){this._form.addClassName(this.options.loadingClassName),this._controls.editor.disabled=!0;var e=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(e,{parameters:"editorId="+encodeURIComponent(this.element.id),onComplete:Prototype.emptyFunction,onSuccess:function(e){this._form.removeClassName(this.options.loadingClassName);var t=e.responseText;this.options.stripLoadedTextTags&&(t=t.stripTags()),this._controls.editor.value=t,this._controls.editor.disabled=!1,this.postProcessEditField()}.bind(this),onFailure:this._boundFailureHandler}),new Ajax.Request(this.options.loadTextURL,e)},postProcessEditField:function(){var e=this.options.fieldPostCreation;e&&$(this._controls.editor)["focus"==e?"focus":"activate"]()},prepareOptions:function(){this.options=Object.clone(Ajax.InPlaceEditor.DefaultOptions),Object.extend(this.options,Ajax.InPlaceEditor.DefaultCallbacks),[this._extraDefaultOptions].flatten().compact().each(function(e){Object.extend(this.options,e)}.bind(this))},prepareSubmission:function(){this._saving=!0,this.removeForm(),this.leaveHover(),this.showSaving()},registerListeners:function(){this._listeners={};var e;$H(Ajax.InPlaceEditor.Listeners).each(function(t){e=this[t.value].bind(this),this._listeners[t.key]=e,this.options.externalControlOnly||this.element.observe(t.key,e),this.options.externalControl&&this.options.externalControl.observe(t.key,e)}.bind(this))},removeForm:function(){if(!this._form)return;this._form.remove(),this._form=null,this._controls={}},showSaving:function(){this._oldInnerHTML=this.element.innerHTML,this.element.innerHTML=this.options.savingText,this.element.addClassName(this.options.savingClassName),this.element.style.backgroundColor=this._originalBackground,this.element.show()},triggerCallback:function(e,t){"function"==typeof this.options[e]&&this.options[e](this,t)},unregisterListeners:function(){$H(this._listeners).each(function(e){this.options.externalControlOnly||this.element.stopObserving(e.key,e.value),this.options.externalControl&&this.options.externalControl.stopObserving(e.key,e.value)}.bind(this))},wrapUp:function(e){this.leaveEditMode(),this._boundComplete(e,this.element)}}),Object.extend(Ajax.InPlaceEditor.prototype,{dispose:Ajax.InPlaceEditor.prototype.destroy}),Ajax.InPlaceCollectionEditor=Class.create(Ajax.InPlaceEditor,{initialize:function($super,e,t,n){this._extraDefaultOptions=Ajax.InPlaceCollectionEditor.DefaultOptions,$super(e,t,n)},createEditField:function(){var e=document.createElement("select");e.name=this.options.paramName,e.size=1,this._controls.editor=e,this._collection=this.options.collection||[],this.options.loadCollectionURL?this.loadCollection():this.checkForExternalText(),this._form.appendChild(this._controls.editor)},loadCollection:function(){this._form.addClassName(this.options.loadingClassName),this.showLoadingText(this.options.loadingCollectionText);var options=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(options,{parameters:"editorId="+encodeURIComponent(this.element.id),onComplete:Prototype.emptyFunction,onSuccess:function(transport){var js=transport.responseText.strip();if(!/^\[.*\]$/.test(js))throw"Server returned an invalid collection representation.";this._collection=eval(js),this.checkForExternalText()}.bind(this),onFailure:this.onFailure}),new Ajax.Request(this.options.loadCollectionURL,options)},showLoadingText:function(e){this._controls.editor.disabled=!0;var t=this._controls.editor.firstChild;t||(t=document.createElement("option"),t.value="",this._controls.editor.appendChild(t),t.selected=!0),t.update((e||"").stripScripts().stripTags())},checkForExternalText:function(){this._text=this.getText(),this.options.loadTextURL?this.loadExternalText():this.buildOptionList()},loadExternalText:function(){this.showLoadingText(this.options.loadingText);var e=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(e,{parameters:"editorId="+encodeURIComponent(this.element.id),onComplete:Prototype.emptyFunction,onSuccess:function(e){this._text=e.responseText.strip(),this.buildOptionList()}.bind(this),onFailure:this.onFailure}),new Ajax.Request(this.options.loadTextURL,e)},buildOptionList:function(){this._form.removeClassName(this.options.loadingClassName),this._collection=this._collection.map(function(e){return 2===e.length?e:[e,e].flatten()});var e="value"in this.options?this.options.value:this._text,t=this._collection.any(function(t){return t[0]==e}.bind(this));this._controls.editor.update("");var n;this._collection.each(function(r,i){n=document.createElement("option"),n.value=r[0],n.selected=t?r[0]==e:0==i,n.appendChild(document.createTextNode(r[1])),this._controls.editor.appendChild(n)}.bind(this)),this._controls.editor.disabled=!1,Field.scrollFreeActivate(this._controls.editor)}}),Ajax.InPlaceEditor.prototype.initialize.dealWithDeprecatedOptions=function(e){function t(t,n){if(t in e||n===undefined)return;e[t]=n}if(!e)return;t("cancelControl",e.cancelLink?"link":e.cancelButton?"button":e.cancelLink==e.cancelButton==0?!1:undefined),t("okControl",e.okLink?"link":e.okButton?"button":e.okLink==e.okButton==0?!1:undefined),t("highlightColor",e.highlightcolor),t("highlightEndColor",e.highlightendcolor)},Object.extend(Ajax.InPlaceEditor,{DefaultOptions:{ajaxOptions:{},autoRows:3,cancelControl:"link",cancelText:"cancel",clickToEditText:"Click to edit",externalControl:null,externalControlOnly:!1,fieldPostCreation:"activate",formClassName:"inplaceeditor-form",formId:null,highlightColor:"#ffff99",highlightEndColor:"#ffffff",hoverClassName:"",htmlResponse:!0,loadingClassName:"inplaceeditor-loading",loadingText:"Loading...",okControl:"button",okText:"ok",paramName:"value",rows:1,savingClassName:"inplaceeditor-saving",savingText:"Saving...",size:0,stripLoadedTextTags:!1,submitOnBlur:!1,textAfterControls:"",textBeforeControls:"",textBetweenControls:""},DefaultCallbacks:{callback:function(e){return Form.serialize(e)},onComplete:function(e,t){new Effect.Highlight(t,{startcolor:this.options.highlightColor,keepBackgroundImage:!0})},onEnterEditMode:null,onEnterHover:function(e){e.element.style.backgroundColor=e.options.highlightColor,e._effect&&e._effect.cancel()},onFailure:function(e,t){alert("Error communication with the server: "+e.responseText.stripTags())},onFormCustomization:null,onLeaveEditMode:null,onLeaveHover:function(e){e._effect=new Effect.Highlight(e.element,{startcolor:e.options.highlightColor,endcolor:e.options.highlightEndColor,restorecolor:e._originalBackground,keepBackgroundImage:!0})}},Listeners:{click:"enterEditMode",keydown:"checkForEscapeOrReturn",mouseover:"enterHover",mouseout:"leaveHover"}}),Ajax.InPlaceCollectionEditor.DefaultOptions={loadingCollectionText:"Loading options..."},Form.Element.DelayedObserver=Class.create({initialize:function(e,t,n){this.delay=t||.5,this.element=$(e),this.callback=n,this.timer=null,this.lastValue=$F(this.element),Event.observe(this.element,"keyup",this.delayedListener.bindAsEventListener(this))},delayedListener:function(e){if(this.lastValue==$F(this.element))return;this.timer&&clearTimeout(this.timer),this.timer=setTimeout(this.onTimerEvent.bind(this),this.delay*1e3),this.lastValue=$F(this.element)},onTimerEvent:function(){this.timer=null,this.callback(this.element,$F(this.element))}}); \ No newline at end of file diff --git a/public/assets/controls.js.gz b/public/assets/controls.js.gz new file mode 100644 index 00000000..26020885 Binary files /dev/null and b/public/assets/controls.js.gz differ diff --git a/public/assets/default_preview-11bb8d09a9e7e14b6997d6dca281eb56.png b/public/assets/default_preview-11bb8d09a9e7e14b6997d6dca281eb56.png new file mode 100644 index 00000000..1abc124b Binary files /dev/null and b/public/assets/default_preview-11bb8d09a9e7e14b6997d6dca281eb56.png differ diff --git a/public/assets/default_preview.png b/public/assets/default_preview.png new file mode 100644 index 00000000..1abc124b Binary files /dev/null and b/public/assets/default_preview.png differ diff --git a/public/assets/dragdrop-3c19aaa2d017800cbe87bc6f786d2999.js b/public/assets/dragdrop-3c19aaa2d017800cbe87bc6f786d2999.js new file mode 100644 index 00000000..a882ab00 --- /dev/null +++ b/public/assets/dragdrop-3c19aaa2d017800cbe87bc6f786d2999.js @@ -0,0 +1,6 @@ +// script.aculo.us dragdrop.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 +// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) +// +// script.aculo.us is freely distributable under the terms of an MIT-style license. +// For details, see the script.aculo.us web site: http://script.aculo.us/ +if(Object.isUndefined(Effect))throw"dragdrop.js requires including script.aculo.us' effects.js library";var Droppables={drops:[],remove:function(e){this.drops=this.drops.reject(function(t){return t.element==$(e)})},add:function(e){e=$(e);var t=Object.extend({greedy:!0,hoverclass:null,tree:!1},arguments[1]||{});if(t.containment){t._containers=[];var n=t.containment;Object.isArray(n)?n.each(function(e){t._containers.push($(e))}):t._containers.push($(n))}t.accept&&(t.accept=[t.accept].flatten()),Element.makePositioned(e),t.element=e,this.drops.push(t)},findDeepestChild:function(e){deepest=e[0];for(i=1;i0&&(n=Droppables.findDeepestChild(r)),this.last_active&&this.last_active!=n&&this.deactivate(this.last_active),n&&(Position.within(n.element,e[0],e[1]),n.onHover&&n.onHover(t,n.element,Position.overlap(n.overlap,n.element)),n!=this.last_active&&Droppables.activate(n))},fire:function(e,t){if(!this.last_active)return;Position.prepare();if(this.isAffected([Event.pointerX(e),Event.pointerY(e)],t,this.last_active)&&this.last_active.onDrop)return this.last_active.onDrop(t,this.last_active.element,e),!0},reset:function(){this.last_active&&this.deactivate(this.last_active)}},Draggables={drags:[],observers:[],register:function(e){this.drags.length==0&&(this.eventMouseUp=this.endDrag.bindAsEventListener(this),this.eventMouseMove=this.updateDrag.bindAsEventListener(this),this.eventKeypress=this.keyPress.bindAsEventListener(this),Event.observe(document,"mouseup",this.eventMouseUp),Event.observe(document,"mousemove",this.eventMouseMove),Event.observe(document,"keypress",this.eventKeypress)),this.drags.push(e)},unregister:function(e){this.drags=this.drags.reject(function(t){return t==e}),this.drags.length==0&&(Event.stopObserving(document,"mouseup",this.eventMouseUp),Event.stopObserving(document,"mousemove",this.eventMouseMove),Event.stopObserving(document,"keypress",this.eventKeypress))},activate:function(e){e.options.delay?this._timeout=setTimeout(function(){Draggables._timeout=null,window.focus(),Draggables.activeDraggable=e}.bind(this),e.options.delay):(window.focus(),this.activeDraggable=e)},deactivate:function(){this.activeDraggable=null},updateDrag:function(e){if(!this.activeDraggable)return;var t=[Event.pointerX(e),Event.pointerY(e)];if(this._lastPointer&&this._lastPointer.inspect()==t.inspect())return;this._lastPointer=t,this.activeDraggable.updateDrag(e,t)},endDrag:function(e){this._timeout&&(clearTimeout(this._timeout),this._timeout=null);if(!this.activeDraggable)return;this._lastPointer=null,this.activeDraggable.endDrag(e),this.activeDraggable=null},keyPress:function(e){this.activeDraggable&&this.activeDraggable.keyPress(e)},addObserver:function(e){this.observers.push(e),this._cacheObserverCallbacks()},removeObserver:function(e){this.observers=this.observers.reject(function(t){return t.element==e}),this._cacheObserverCallbacks()},notify:function(e,t,n){this[e+"Count"]>0&&this.observers.each(function(r){r[e]&&r[e](e,t,n)}),t.options[e]&&t.options[e](t,n)},_cacheObserverCallbacks:function(){["onStart","onEnd","onDrag"].each(function(e){Draggables[e+"Count"]=Draggables.observers.select(function(t){return t[e]}).length})}},Draggable=Class.create({initialize:function(e){var t={handle:!1,reverteffect:function(e,t,n){var r=Math.sqrt(Math.abs(t^2)+Math.abs(n^2))*.02;new Effect.Move(e,{x:-n,y:-t,duration:r,queue:{scope:"_draggable",position:"end"}})},endeffect:function(e){var t=Object.isNumber(e._opacity)?e._opacity:1;new Effect.Opacity(e,{duration:.2,from:.7,to:t,queue:{scope:"_draggable",position:"end"},afterFinish:function(){Draggable._dragging[e]=!1}})},zindex:1e3,revert:!1,quiet:!1,scroll:!1,scrollSensitivity:20,scrollSpeed:15,snap:!1,delay:0};(!arguments[1]||Object.isUndefined(arguments[1].endeffect))&&Object.extend(t,{starteffect:function(e){e._opacity=Element.getOpacity(e),Draggable._dragging[e]=!0,new Effect.Opacity(e,{duration:.2,from:e._opacity,to:.7})}});var n=Object.extend(t,arguments[1]||{});this.element=$(e),n.handle&&Object.isString(n.handle)&&(this.handle=this.element.down("."+n.handle,0)),this.handle||(this.handle=$(n.handle)),this.handle||(this.handle=this.element),n.scroll&&!n.scroll.scrollTo&&!n.scroll.outerHTML&&(n.scroll=$(n.scroll),this._isScrollChild=Element.childOf(this.element,n.scroll)),Element.makePositioned(this.element),this.options=n,this.dragging=!1,this.eventMouseDown=this.initDrag.bindAsEventListener(this),Event.observe(this.handle,"mousedown",this.eventMouseDown),Draggables.register(this)},destroy:function(){Event.stopObserving(this.handle,"mousedown",this.eventMouseDown),Draggables.unregister(this)},currentDelta:function(){return[parseInt(Element.getStyle(this.element,"left")||"0"),parseInt(Element.getStyle(this.element,"top")||"0")]},initDrag:function(e){if(!Object.isUndefined(Draggable._dragging[this.element])&&Draggable._dragging[this.element])return;if(Event.isLeftClick(e)){var t=Event.element(e);if(!(!(tag_name=t.tagName.toUpperCase())||tag_name!="INPUT"&&tag_name!="SELECT"&&tag_name!="OPTION"&&tag_name!="BUTTON"&&tag_name!="TEXTAREA"))return;var n=[Event.pointerX(e),Event.pointerY(e)],r=this.element.cumulativeOffset();this.offset=[0,1].map(function(e){return n[e]-r[e]}),Draggables.activate(this),Event.stop(e)}},startDrag:function(e){this.dragging=!0,this.delta||(this.delta=this.currentDelta()),this.options.zindex&&(this.originalZ=parseInt(Element.getStyle(this.element,"z-index")||0),this.element.style.zIndex=this.options.zindex),this.options.ghosting&&(this._clone=this.element.cloneNode(!0),this._originallyAbsolute=this.element.getStyle("position")=="absolute",this._originallyAbsolute||Position.absolutize(this.element),this.element.parentNode.insertBefore(this._clone,this.element));if(this.options.scroll)if(this.options.scroll==window){var t=this._getWindowScroll(this.options.scroll);this.originalScrollLeft=t.left,this.originalScrollTop=t.top}else this.originalScrollLeft=this.options.scroll.scrollLeft,this.originalScrollTop=this.options.scroll.scrollTop;Draggables.notify("onStart",this,e),this.options.starteffect&&this.options.starteffect(this.element)},updateDrag:function(event,pointer){this.dragging||this.startDrag(event),this.options.quiet||(Position.prepare(),Droppables.show(pointer,this.element)),Draggables.notify("onDrag",this,event),this.draw(pointer),this.options.change&&this.options.change(this);if(this.options.scroll){this.stopScrolling();var p;if(this.options.scroll==window)with(this._getWindowScroll(this.options.scroll))p=[left,top,left+width,top+height];else p=Position.page(this.options.scroll),p[0]+=this.options.scroll.scrollLeft+Position.deltaX,p[1]+=this.options.scroll.scrollTop+Position.deltaY,p.push(p[0]+this.options.scroll.offsetWidth),p.push(p[1]+this.options.scroll.offsetHeight);var speed=[0,0];pointer[0]p[2]-this.options.scrollSensitivity&&(speed[0]=pointer[0]-(p[2]-this.options.scrollSensitivity)),pointer[1]>p[3]-this.options.scrollSensitivity&&(speed[1]=pointer[1]-(p[3]-this.options.scrollSensitivity)),this.startScrolling(speed)}Prototype.Browser.WebKit&&window.scrollBy(0,0),Event.stop(event)},finishDrag:function(e,t){this.dragging=!1;if(this.options.quiet){Position.prepare();var n=[Event.pointerX(e),Event.pointerY(e)];Droppables.show(n,this.element)}this.options.ghosting&&(this._originallyAbsolute||Position.relativize(this.element),delete this._originallyAbsolute,Element.remove(this._clone),this._clone=null);var r=!1;t&&(r=Droppables.fire(e,this.element),r||(r=!1)),r&&this.options.onDropped&&this.options.onDropped(this.element),Draggables.notify("onEnd",this,e);var i=this.options.revert;i&&Object.isFunction(i)&&(i=i(this.element));var s=this.currentDelta();i&&this.options.reverteffect?(r==0||i!="failure")&&this.options.reverteffect(this.element,s[1]-this.delta[1],s[0]-this.delta[0]):this.delta=s,this.options.zindex&&(this.element.style.zIndex=this.originalZ),this.options.endeffect&&this.options.endeffect(this.element),Draggables.deactivate(this),Droppables.reset()},keyPress:function(e){if(e.keyCode!=Event.KEY_ESC)return;this.finishDrag(e,!1),Event.stop(e)},endDrag:function(e){if(!this.dragging)return;this.stopScrolling(),this.finishDrag(e,!0),Event.stop(e)},draw:function(e){var t=this.element.cumulativeOffset();if(this.options.ghosting){var n=Position.realOffset(this.element);t[0]+=n[0]-Position.deltaX,t[1]+=n[1]-Position.deltaY}var r=this.currentDelta();t[0]-=r[0],t[1]-=r[1],this.options.scroll&&this.options.scroll!=window&&this._isScrollChild&&(t[0]-=this.options.scroll.scrollLeft-this.originalScrollLeft,t[1]-=this.options.scroll.scrollTop-this.originalScrollTop);var i=[0,1].map(function(n){return e[n]-t[n]-this.offset[n]}.bind(this));this.options.snap&&(Object.isFunction(this.options.snap)?i=this.options.snap(i[0],i[1],this):Object.isArray(this.options.snap)?i=i.map(function(e,t){return(e/this.options.snap[t]).round()*this.options.snap[t]}.bind(this)):i=i.map(function(e){return(e/this.options.snap).round()*this.options.snap}.bind(this)));var s=this.element.style;if(!this.options.constraint||this.options.constraint=="horizontal")s.left=i[0]+"px";if(!this.options.constraint||this.options.constraint=="vertical")s.top=i[1]+"px";s.visibility=="hidden"&&(s.visibility="")},stopScrolling:function(){this.scrollInterval&&(clearInterval(this.scrollInterval),this.scrollInterval=null,Draggables._lastScrollPointer=null)},startScrolling:function(e){if(!e[0]&&!e[1])return;this.scrollSpeed=[e[0]*this.options.scrollSpeed,e[1]*this.options.scrollSpeed],this.lastScrolled=new Date,this.scrollInterval=setInterval(this.scroll.bind(this),10)},scroll:function(){var current=new Date,delta=current-this.lastScrolled;this.lastScrolled=current;if(this.options.scroll==window)with(this._getWindowScroll(this.options.scroll))if(this.scrollSpeed[0]||this.scrollSpeed[1]){var d=delta/1e3;this.options.scroll.scrollTo(left+d*this.scrollSpeed[0],top+d*this.scrollSpeed[1])}else this.options.scroll.scrollLeft+=this.scrollSpeed[0]*delta/1e3,this.options.scroll.scrollTop+=this.scrollSpeed[1]*delta/1e3;Position.prepare(),Droppables.show(Draggables._lastPointer,this.element),Draggables.notify("onDrag",this),this._isScrollChild&&(Draggables._lastScrollPointer=Draggables._lastScrollPointer||$A(Draggables._lastPointer),Draggables._lastScrollPointer[0]+=this.scrollSpeed[0]*delta/1e3,Draggables._lastScrollPointer[1]+=this.scrollSpeed[1]*delta/1e3,Draggables._lastScrollPointer[0]<0&&(Draggables._lastScrollPointer[0]=0),Draggables._lastScrollPointer[1]<0&&(Draggables._lastScrollPointer[1]=0),this.draw(Draggables._lastScrollPointer)),this.options.change&&this.options.change(this)},_getWindowScroll:function(w){var T,L,W,H;with(w.document)w.document.documentElement&&documentElement.scrollTop?(T=documentElement.scrollTop,L=documentElement.scrollLeft):w.document.body&&(T=body.scrollTop,L=body.scrollLeft),w.innerWidth?(W=w.innerWidth,H=w.innerHeight):w.document.documentElement&&documentElement.clientWidth?(W=documentElement.clientWidth,H=documentElement.clientHeight):(W=body.offsetWidth,H=body.offsetHeight);return{top:T,left:L,width:W,height:H}}});Draggable._dragging={};var SortableObserver=Class.create({initialize:function(e,t){this.element=$(e),this.observer=t,this.lastValue=Sortable.serialize(this.element)},onStart:function(){this.lastValue=Sortable.serialize(this.element)},onEnd:function(){Sortable.unmark(),this.lastValue!=Sortable.serialize(this.element)&&this.observer(this.element)}}),Sortable={SERIALIZE_RULE:/^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,sortables:{},_findRootElement:function(e){while(e.tagName.toUpperCase()!="BODY"){if(e.id&&Sortable.sortables[e.id])return e;e=e.parentNode}},options:function(e){e=Sortable._findRootElement($(e));if(!e)return;return Sortable.sortables[e.id]},destroy:function(e){e=$(e);var t=Sortable.sortables[e.id];t&&(Draggables.removeObserver(t.element),t.droppables.each(function(e){Droppables.remove(e)}),t.draggables.invoke("destroy"),delete Sortable.sortables[t.element.id])},create:function(e){e=$(e);var t=Object.extend({element:e,tag:"li",dropOnEmpty:!1,tree:!1,treeTag:"ul",overlap:"vertical",constraint:"vertical",containment:e,handle:!1,only:!1,delay:0,hoverclass:null,ghosting:!1,quiet:!1,scroll:!1,scrollSensitivity:20,scrollSpeed:15,format:this.SERIALIZE_RULE,elements:!1,handles:!1,onChange:Prototype.emptyFunction,onUpdate:Prototype.emptyFunction},arguments[1]||{});this.destroy(e);var n={revert:!0,quiet:t.quiet,scroll:t.scroll,scrollSpeed:t.scrollSpeed,scrollSensitivity:t.scrollSensitivity,delay:t.delay,ghosting:t.ghosting,constraint:t.constraint,handle:t.handle};t.starteffect&&(n.starteffect=t.starteffect),t.reverteffect?n.reverteffect=t.reverteffect:t.ghosting&&(n.reverteffect=function(e){e.style.top=0,e.style.left=0}),t.endeffect&&(n.endeffect=t.endeffect),t.zindex&&(n.zindex=t.zindex);var r={overlap:t.overlap,containment:t.containment,tree:t.tree,hoverclass:t.hoverclass,onHover:Sortable.onHover},i={onHover:Sortable.onEmptyHover,overlap:t.overlap,containment:t.containment,hoverclass:t.hoverclass};Element.cleanWhitespace(e),t.draggables=[],t.droppables=[];if(t.dropOnEmpty||t.tree)Droppables.add(e,i),t.droppables.push(e);(t.elements||this.findElements(e,t)||[]).each(function(i,s){var o=t.handles?$(t.handles[s]):t.handle?$(i).select("."+t.handle)[0]:i;t.draggables.push(new Draggable(i,Object.extend(n,{handle:o}))),Droppables.add(i,r),t.tree&&(i.treeNode=e),t.droppables.push(i)}),t.tree&&(Sortable.findTreeElements(e,t)||[]).each(function(n){Droppables.add(n,i),n.treeNode=e,t.droppables.push(n)}),this.sortables[e.identify()]=t,Draggables.addObserver(new SortableObserver(e,t.onUpdate))},findElements:function(e,t){return Element.findChildren(e,t.only,t.tree?!0:!1,t.tag)},findTreeElements:function(e,t){return Element.findChildren(e,t.only,t.tree?!0:!1,t.treeTag)},onHover:function(e,t,n){if(Element.isParent(t,e))return;if(n>.33&&n<.66&&Sortable.options(t).tree)return;if(n>.5){Sortable.mark(t,"before");if(t.previousSibling!=e){var r=e.parentNode;e.style.visibility="hidden",t.parentNode.insertBefore(e,t),t.parentNode!=r&&Sortable.options(r).onChange(e),Sortable.options(t.parentNode).onChange(e)}}else{Sortable.mark(t,"after");var i=t.nextSibling||null;if(i!=e){var r=e.parentNode;e.style.visibility="hidden",t.parentNode.insertBefore(e,i),t.parentNode!=r&&Sortable.options(r).onChange(e),Sortable.options(t.parentNode).onChange(e)}}},onEmptyHover:function(e,t,n){var r=e.parentNode,i=Sortable.options(t);if(!Element.isParent(t,e)){var s,o=Sortable.findElements(t,{tag:i.tag,only:i.only}),u=null;if(o){var a=Element.offsetSize(t,i.overlap)*(1-n);for(s=0;s=0)){if(a-Element.offsetSize(o[s],i.overlap)/2>=0){u=s+10?i.flatten():[]},Element.offsetSize=function(e,t){return e["offset"+(t=="vertical"||t=="height"?"Height":"Width")]}; \ No newline at end of file diff --git a/public/assets/dragdrop-3c19aaa2d017800cbe87bc6f786d2999.js.gz b/public/assets/dragdrop-3c19aaa2d017800cbe87bc6f786d2999.js.gz new file mode 100644 index 00000000..404375d1 Binary files /dev/null and b/public/assets/dragdrop-3c19aaa2d017800cbe87bc6f786d2999.js.gz differ diff --git a/public/assets/dragdrop.js b/public/assets/dragdrop.js new file mode 100644 index 00000000..a882ab00 --- /dev/null +++ b/public/assets/dragdrop.js @@ -0,0 +1,6 @@ +// script.aculo.us dragdrop.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 +// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) +// +// script.aculo.us is freely distributable under the terms of an MIT-style license. +// For details, see the script.aculo.us web site: http://script.aculo.us/ +if(Object.isUndefined(Effect))throw"dragdrop.js requires including script.aculo.us' effects.js library";var Droppables={drops:[],remove:function(e){this.drops=this.drops.reject(function(t){return t.element==$(e)})},add:function(e){e=$(e);var t=Object.extend({greedy:!0,hoverclass:null,tree:!1},arguments[1]||{});if(t.containment){t._containers=[];var n=t.containment;Object.isArray(n)?n.each(function(e){t._containers.push($(e))}):t._containers.push($(n))}t.accept&&(t.accept=[t.accept].flatten()),Element.makePositioned(e),t.element=e,this.drops.push(t)},findDeepestChild:function(e){deepest=e[0];for(i=1;i0&&(n=Droppables.findDeepestChild(r)),this.last_active&&this.last_active!=n&&this.deactivate(this.last_active),n&&(Position.within(n.element,e[0],e[1]),n.onHover&&n.onHover(t,n.element,Position.overlap(n.overlap,n.element)),n!=this.last_active&&Droppables.activate(n))},fire:function(e,t){if(!this.last_active)return;Position.prepare();if(this.isAffected([Event.pointerX(e),Event.pointerY(e)],t,this.last_active)&&this.last_active.onDrop)return this.last_active.onDrop(t,this.last_active.element,e),!0},reset:function(){this.last_active&&this.deactivate(this.last_active)}},Draggables={drags:[],observers:[],register:function(e){this.drags.length==0&&(this.eventMouseUp=this.endDrag.bindAsEventListener(this),this.eventMouseMove=this.updateDrag.bindAsEventListener(this),this.eventKeypress=this.keyPress.bindAsEventListener(this),Event.observe(document,"mouseup",this.eventMouseUp),Event.observe(document,"mousemove",this.eventMouseMove),Event.observe(document,"keypress",this.eventKeypress)),this.drags.push(e)},unregister:function(e){this.drags=this.drags.reject(function(t){return t==e}),this.drags.length==0&&(Event.stopObserving(document,"mouseup",this.eventMouseUp),Event.stopObserving(document,"mousemove",this.eventMouseMove),Event.stopObserving(document,"keypress",this.eventKeypress))},activate:function(e){e.options.delay?this._timeout=setTimeout(function(){Draggables._timeout=null,window.focus(),Draggables.activeDraggable=e}.bind(this),e.options.delay):(window.focus(),this.activeDraggable=e)},deactivate:function(){this.activeDraggable=null},updateDrag:function(e){if(!this.activeDraggable)return;var t=[Event.pointerX(e),Event.pointerY(e)];if(this._lastPointer&&this._lastPointer.inspect()==t.inspect())return;this._lastPointer=t,this.activeDraggable.updateDrag(e,t)},endDrag:function(e){this._timeout&&(clearTimeout(this._timeout),this._timeout=null);if(!this.activeDraggable)return;this._lastPointer=null,this.activeDraggable.endDrag(e),this.activeDraggable=null},keyPress:function(e){this.activeDraggable&&this.activeDraggable.keyPress(e)},addObserver:function(e){this.observers.push(e),this._cacheObserverCallbacks()},removeObserver:function(e){this.observers=this.observers.reject(function(t){return t.element==e}),this._cacheObserverCallbacks()},notify:function(e,t,n){this[e+"Count"]>0&&this.observers.each(function(r){r[e]&&r[e](e,t,n)}),t.options[e]&&t.options[e](t,n)},_cacheObserverCallbacks:function(){["onStart","onEnd","onDrag"].each(function(e){Draggables[e+"Count"]=Draggables.observers.select(function(t){return t[e]}).length})}},Draggable=Class.create({initialize:function(e){var t={handle:!1,reverteffect:function(e,t,n){var r=Math.sqrt(Math.abs(t^2)+Math.abs(n^2))*.02;new Effect.Move(e,{x:-n,y:-t,duration:r,queue:{scope:"_draggable",position:"end"}})},endeffect:function(e){var t=Object.isNumber(e._opacity)?e._opacity:1;new Effect.Opacity(e,{duration:.2,from:.7,to:t,queue:{scope:"_draggable",position:"end"},afterFinish:function(){Draggable._dragging[e]=!1}})},zindex:1e3,revert:!1,quiet:!1,scroll:!1,scrollSensitivity:20,scrollSpeed:15,snap:!1,delay:0};(!arguments[1]||Object.isUndefined(arguments[1].endeffect))&&Object.extend(t,{starteffect:function(e){e._opacity=Element.getOpacity(e),Draggable._dragging[e]=!0,new Effect.Opacity(e,{duration:.2,from:e._opacity,to:.7})}});var n=Object.extend(t,arguments[1]||{});this.element=$(e),n.handle&&Object.isString(n.handle)&&(this.handle=this.element.down("."+n.handle,0)),this.handle||(this.handle=$(n.handle)),this.handle||(this.handle=this.element),n.scroll&&!n.scroll.scrollTo&&!n.scroll.outerHTML&&(n.scroll=$(n.scroll),this._isScrollChild=Element.childOf(this.element,n.scroll)),Element.makePositioned(this.element),this.options=n,this.dragging=!1,this.eventMouseDown=this.initDrag.bindAsEventListener(this),Event.observe(this.handle,"mousedown",this.eventMouseDown),Draggables.register(this)},destroy:function(){Event.stopObserving(this.handle,"mousedown",this.eventMouseDown),Draggables.unregister(this)},currentDelta:function(){return[parseInt(Element.getStyle(this.element,"left")||"0"),parseInt(Element.getStyle(this.element,"top")||"0")]},initDrag:function(e){if(!Object.isUndefined(Draggable._dragging[this.element])&&Draggable._dragging[this.element])return;if(Event.isLeftClick(e)){var t=Event.element(e);if(!(!(tag_name=t.tagName.toUpperCase())||tag_name!="INPUT"&&tag_name!="SELECT"&&tag_name!="OPTION"&&tag_name!="BUTTON"&&tag_name!="TEXTAREA"))return;var n=[Event.pointerX(e),Event.pointerY(e)],r=this.element.cumulativeOffset();this.offset=[0,1].map(function(e){return n[e]-r[e]}),Draggables.activate(this),Event.stop(e)}},startDrag:function(e){this.dragging=!0,this.delta||(this.delta=this.currentDelta()),this.options.zindex&&(this.originalZ=parseInt(Element.getStyle(this.element,"z-index")||0),this.element.style.zIndex=this.options.zindex),this.options.ghosting&&(this._clone=this.element.cloneNode(!0),this._originallyAbsolute=this.element.getStyle("position")=="absolute",this._originallyAbsolute||Position.absolutize(this.element),this.element.parentNode.insertBefore(this._clone,this.element));if(this.options.scroll)if(this.options.scroll==window){var t=this._getWindowScroll(this.options.scroll);this.originalScrollLeft=t.left,this.originalScrollTop=t.top}else this.originalScrollLeft=this.options.scroll.scrollLeft,this.originalScrollTop=this.options.scroll.scrollTop;Draggables.notify("onStart",this,e),this.options.starteffect&&this.options.starteffect(this.element)},updateDrag:function(event,pointer){this.dragging||this.startDrag(event),this.options.quiet||(Position.prepare(),Droppables.show(pointer,this.element)),Draggables.notify("onDrag",this,event),this.draw(pointer),this.options.change&&this.options.change(this);if(this.options.scroll){this.stopScrolling();var p;if(this.options.scroll==window)with(this._getWindowScroll(this.options.scroll))p=[left,top,left+width,top+height];else p=Position.page(this.options.scroll),p[0]+=this.options.scroll.scrollLeft+Position.deltaX,p[1]+=this.options.scroll.scrollTop+Position.deltaY,p.push(p[0]+this.options.scroll.offsetWidth),p.push(p[1]+this.options.scroll.offsetHeight);var speed=[0,0];pointer[0]p[2]-this.options.scrollSensitivity&&(speed[0]=pointer[0]-(p[2]-this.options.scrollSensitivity)),pointer[1]>p[3]-this.options.scrollSensitivity&&(speed[1]=pointer[1]-(p[3]-this.options.scrollSensitivity)),this.startScrolling(speed)}Prototype.Browser.WebKit&&window.scrollBy(0,0),Event.stop(event)},finishDrag:function(e,t){this.dragging=!1;if(this.options.quiet){Position.prepare();var n=[Event.pointerX(e),Event.pointerY(e)];Droppables.show(n,this.element)}this.options.ghosting&&(this._originallyAbsolute||Position.relativize(this.element),delete this._originallyAbsolute,Element.remove(this._clone),this._clone=null);var r=!1;t&&(r=Droppables.fire(e,this.element),r||(r=!1)),r&&this.options.onDropped&&this.options.onDropped(this.element),Draggables.notify("onEnd",this,e);var i=this.options.revert;i&&Object.isFunction(i)&&(i=i(this.element));var s=this.currentDelta();i&&this.options.reverteffect?(r==0||i!="failure")&&this.options.reverteffect(this.element,s[1]-this.delta[1],s[0]-this.delta[0]):this.delta=s,this.options.zindex&&(this.element.style.zIndex=this.originalZ),this.options.endeffect&&this.options.endeffect(this.element),Draggables.deactivate(this),Droppables.reset()},keyPress:function(e){if(e.keyCode!=Event.KEY_ESC)return;this.finishDrag(e,!1),Event.stop(e)},endDrag:function(e){if(!this.dragging)return;this.stopScrolling(),this.finishDrag(e,!0),Event.stop(e)},draw:function(e){var t=this.element.cumulativeOffset();if(this.options.ghosting){var n=Position.realOffset(this.element);t[0]+=n[0]-Position.deltaX,t[1]+=n[1]-Position.deltaY}var r=this.currentDelta();t[0]-=r[0],t[1]-=r[1],this.options.scroll&&this.options.scroll!=window&&this._isScrollChild&&(t[0]-=this.options.scroll.scrollLeft-this.originalScrollLeft,t[1]-=this.options.scroll.scrollTop-this.originalScrollTop);var i=[0,1].map(function(n){return e[n]-t[n]-this.offset[n]}.bind(this));this.options.snap&&(Object.isFunction(this.options.snap)?i=this.options.snap(i[0],i[1],this):Object.isArray(this.options.snap)?i=i.map(function(e,t){return(e/this.options.snap[t]).round()*this.options.snap[t]}.bind(this)):i=i.map(function(e){return(e/this.options.snap).round()*this.options.snap}.bind(this)));var s=this.element.style;if(!this.options.constraint||this.options.constraint=="horizontal")s.left=i[0]+"px";if(!this.options.constraint||this.options.constraint=="vertical")s.top=i[1]+"px";s.visibility=="hidden"&&(s.visibility="")},stopScrolling:function(){this.scrollInterval&&(clearInterval(this.scrollInterval),this.scrollInterval=null,Draggables._lastScrollPointer=null)},startScrolling:function(e){if(!e[0]&&!e[1])return;this.scrollSpeed=[e[0]*this.options.scrollSpeed,e[1]*this.options.scrollSpeed],this.lastScrolled=new Date,this.scrollInterval=setInterval(this.scroll.bind(this),10)},scroll:function(){var current=new Date,delta=current-this.lastScrolled;this.lastScrolled=current;if(this.options.scroll==window)with(this._getWindowScroll(this.options.scroll))if(this.scrollSpeed[0]||this.scrollSpeed[1]){var d=delta/1e3;this.options.scroll.scrollTo(left+d*this.scrollSpeed[0],top+d*this.scrollSpeed[1])}else this.options.scroll.scrollLeft+=this.scrollSpeed[0]*delta/1e3,this.options.scroll.scrollTop+=this.scrollSpeed[1]*delta/1e3;Position.prepare(),Droppables.show(Draggables._lastPointer,this.element),Draggables.notify("onDrag",this),this._isScrollChild&&(Draggables._lastScrollPointer=Draggables._lastScrollPointer||$A(Draggables._lastPointer),Draggables._lastScrollPointer[0]+=this.scrollSpeed[0]*delta/1e3,Draggables._lastScrollPointer[1]+=this.scrollSpeed[1]*delta/1e3,Draggables._lastScrollPointer[0]<0&&(Draggables._lastScrollPointer[0]=0),Draggables._lastScrollPointer[1]<0&&(Draggables._lastScrollPointer[1]=0),this.draw(Draggables._lastScrollPointer)),this.options.change&&this.options.change(this)},_getWindowScroll:function(w){var T,L,W,H;with(w.document)w.document.documentElement&&documentElement.scrollTop?(T=documentElement.scrollTop,L=documentElement.scrollLeft):w.document.body&&(T=body.scrollTop,L=body.scrollLeft),w.innerWidth?(W=w.innerWidth,H=w.innerHeight):w.document.documentElement&&documentElement.clientWidth?(W=documentElement.clientWidth,H=documentElement.clientHeight):(W=body.offsetWidth,H=body.offsetHeight);return{top:T,left:L,width:W,height:H}}});Draggable._dragging={};var SortableObserver=Class.create({initialize:function(e,t){this.element=$(e),this.observer=t,this.lastValue=Sortable.serialize(this.element)},onStart:function(){this.lastValue=Sortable.serialize(this.element)},onEnd:function(){Sortable.unmark(),this.lastValue!=Sortable.serialize(this.element)&&this.observer(this.element)}}),Sortable={SERIALIZE_RULE:/^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,sortables:{},_findRootElement:function(e){while(e.tagName.toUpperCase()!="BODY"){if(e.id&&Sortable.sortables[e.id])return e;e=e.parentNode}},options:function(e){e=Sortable._findRootElement($(e));if(!e)return;return Sortable.sortables[e.id]},destroy:function(e){e=$(e);var t=Sortable.sortables[e.id];t&&(Draggables.removeObserver(t.element),t.droppables.each(function(e){Droppables.remove(e)}),t.draggables.invoke("destroy"),delete Sortable.sortables[t.element.id])},create:function(e){e=$(e);var t=Object.extend({element:e,tag:"li",dropOnEmpty:!1,tree:!1,treeTag:"ul",overlap:"vertical",constraint:"vertical",containment:e,handle:!1,only:!1,delay:0,hoverclass:null,ghosting:!1,quiet:!1,scroll:!1,scrollSensitivity:20,scrollSpeed:15,format:this.SERIALIZE_RULE,elements:!1,handles:!1,onChange:Prototype.emptyFunction,onUpdate:Prototype.emptyFunction},arguments[1]||{});this.destroy(e);var n={revert:!0,quiet:t.quiet,scroll:t.scroll,scrollSpeed:t.scrollSpeed,scrollSensitivity:t.scrollSensitivity,delay:t.delay,ghosting:t.ghosting,constraint:t.constraint,handle:t.handle};t.starteffect&&(n.starteffect=t.starteffect),t.reverteffect?n.reverteffect=t.reverteffect:t.ghosting&&(n.reverteffect=function(e){e.style.top=0,e.style.left=0}),t.endeffect&&(n.endeffect=t.endeffect),t.zindex&&(n.zindex=t.zindex);var r={overlap:t.overlap,containment:t.containment,tree:t.tree,hoverclass:t.hoverclass,onHover:Sortable.onHover},i={onHover:Sortable.onEmptyHover,overlap:t.overlap,containment:t.containment,hoverclass:t.hoverclass};Element.cleanWhitespace(e),t.draggables=[],t.droppables=[];if(t.dropOnEmpty||t.tree)Droppables.add(e,i),t.droppables.push(e);(t.elements||this.findElements(e,t)||[]).each(function(i,s){var o=t.handles?$(t.handles[s]):t.handle?$(i).select("."+t.handle)[0]:i;t.draggables.push(new Draggable(i,Object.extend(n,{handle:o}))),Droppables.add(i,r),t.tree&&(i.treeNode=e),t.droppables.push(i)}),t.tree&&(Sortable.findTreeElements(e,t)||[]).each(function(n){Droppables.add(n,i),n.treeNode=e,t.droppables.push(n)}),this.sortables[e.identify()]=t,Draggables.addObserver(new SortableObserver(e,t.onUpdate))},findElements:function(e,t){return Element.findChildren(e,t.only,t.tree?!0:!1,t.tag)},findTreeElements:function(e,t){return Element.findChildren(e,t.only,t.tree?!0:!1,t.treeTag)},onHover:function(e,t,n){if(Element.isParent(t,e))return;if(n>.33&&n<.66&&Sortable.options(t).tree)return;if(n>.5){Sortable.mark(t,"before");if(t.previousSibling!=e){var r=e.parentNode;e.style.visibility="hidden",t.parentNode.insertBefore(e,t),t.parentNode!=r&&Sortable.options(r).onChange(e),Sortable.options(t.parentNode).onChange(e)}}else{Sortable.mark(t,"after");var i=t.nextSibling||null;if(i!=e){var r=e.parentNode;e.style.visibility="hidden",t.parentNode.insertBefore(e,i),t.parentNode!=r&&Sortable.options(r).onChange(e),Sortable.options(t.parentNode).onChange(e)}}},onEmptyHover:function(e,t,n){var r=e.parentNode,i=Sortable.options(t);if(!Element.isParent(t,e)){var s,o=Sortable.findElements(t,{tag:i.tag,only:i.only}),u=null;if(o){var a=Element.offsetSize(t,i.overlap)*(1-n);for(s=0;s=0)){if(a-Element.offsetSize(o[s],i.overlap)/2>=0){u=s+10?i.flatten():[]},Element.offsetSize=function(e,t){return e["offset"+(t=="vertical"||t=="height"?"Height":"Width")]}; \ No newline at end of file diff --git a/public/assets/dragdrop.js.gz b/public/assets/dragdrop.js.gz new file mode 100644 index 00000000..07df4f2d Binary files /dev/null and b/public/assets/dragdrop.js.gz differ diff --git a/public/assets/effects-56d0a4b0b0637c7fe22102a0ad5dd2f5.js b/public/assets/effects-56d0a4b0b0637c7fe22102a0ad5dd2f5.js new file mode 100644 index 00000000..129a6ef8 --- /dev/null +++ b/public/assets/effects-56d0a4b0b0637c7fe22102a0ad5dd2f5.js @@ -0,0 +1,12 @@ +// script.aculo.us effects.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 +// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) +// Contributors: +// Justin Palmer (http://encytemedia.com/) +// Mark Pilgrim (http://diveintomark.org/) +// Martin Bialasinki +// +// script.aculo.us is freely distributable under the terms of an MIT-style license. +// For details, see the script.aculo.us web site: http://script.aculo.us/ +// converts rgb() and #xxx to #xxxxxx format, +// returns self (or first argument) if not convertable +String.prototype.parseColor=function(){var e="#";if(this.slice(0,4)=="rgb("){var t=this.slice(4,this.length-1).split(","),n=0;do e+=parseInt(t[n]).toColorPart();while(++n<3)}else if(this.slice(0,1)=="#"){if(this.length==4)for(var n=1;n<4;n++)e+=(this.charAt(n)+this.charAt(n)).toLowerCase();this.length==7&&(e=this.toLowerCase())}return e.length==7?e:arguments[0]||this},Element.collectTextNodes=function(e){return $A($(e).childNodes).collect(function(e){return e.nodeType==3?e.nodeValue:e.hasChildNodes()?Element.collectTextNodes(e):""}).flatten().join("")},Element.collectTextNodesIgnoreClass=function(e,t){return $A($(e).childNodes).collect(function(e){return e.nodeType==3?e.nodeValue:e.hasChildNodes()&&!Element.hasClassName(e,t)?Element.collectTextNodesIgnoreClass(e,t):""}).flatten().join("")},Element.setContentZoom=function(e,t){return e=$(e),e.setStyle({fontSize:t/100+"em"}),Prototype.Browser.WebKit&&window.scrollBy(0,0),e},Element.getInlineOpacity=function(e){return $(e).style.opacity||""},Element.forceRerendering=function(e){try{e=$(e);var t=document.createTextNode(" ");e.appendChild(t),e.removeChild(t)}catch(n){}};var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},Transitions:{linear:Prototype.K,sinoidal:function(e){return-Math.cos(e*Math.PI)/2+.5},reverse:function(e){return 1-e},flicker:function(e){var e=-Math.cos(e*Math.PI)/4+.75+Math.random()/4;return e>1?1:e},wobble:function(e){return-Math.cos(e*Math.PI*9*e)/2+.5},pulse:function(e,t){return-Math.cos(e*((t||5)-.5)*2*Math.PI)/2+.5},spring:function(e){return 1-Math.cos(e*4.5*Math.PI)*Math.exp(-e*6)},none:function(e){return 0},full:function(e){return 1}},DefaultOptions:{duration:1,fps:100,sync:!1,from:0,to:1,delay:0,queue:"parallel"},tagifyText:function(e){var t="position:relative";Prototype.Browser.IE&&(t+=";zoom:1"),e=$(e),$A(e.childNodes).each(function(n){n.nodeType==3&&(n.nodeValue.toArray().each(function(r){e.insertBefore((new Element("span",{style:t})).update(r==" "?String.fromCharCode(160):r),n)}),Element.remove(n))})},multiple:function(e,t){var n;(typeof e=="object"||Object.isFunction(e))&&e.length?n=e:n=$(e).childNodes;var r=Object.extend({speed:.1,delay:0},arguments[2]||{}),i=r.delay;$A(n).each(function(e,n){new t(e,Object.extend(r,{delay:n*r.speed+i}))})},PAIRS:{slide:["SlideDown","SlideUp"],blind:["BlindDown","BlindUp"],appear:["Appear","Fade"]},toggle:function(e,t,n){return e=$(e),t=(t||"appear").toLowerCase(),Effect[Effect.PAIRS[t][e.visible()?1:0]](e,Object.extend({queue:{position:"end",scope:e.id||"global",limit:1}},n||{}))}};Effect.DefaultOptions.transition=Effect.Transitions.sinoidal,Effect.ScopedQueue=Class.create(Enumerable,{initialize:function(){this.effects=[],this.interval=null},_each:function(e){this.effects._each(e)},add:function(e){var t=(new Date).getTime(),n=Object.isString(e.options.queue)?e.options.queue:e.options.queue.position;switch(n){case"front":this.effects.findAll(function(e){return e.state=="idle"}).each(function(t){t.startOn+=e.finishOn,t.finishOn+=e.finishOn});break;case"with-last":t=this.effects.pluck("startOn").max()||t;break;case"end":t=this.effects.pluck("finishOn").max()||t}e.startOn+=t,e.finishOn+=t,(!e.options.queue.limit||this.effects.length=this.startOn){if(e>=this.finishOn){this.render(1),this.cancel(),this.event("beforeFinish"),this.finish&&this.finish(),this.event("afterFinish");return}var t=(e-this.startOn)/this.totalTime,n=(t*this.totalFrames).round();n>this.currentFrame&&(this.render(t),this.currentFrame=n)}},cancel:function(){this.options.sync||Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).remove(this),this.state="finished"},event:function(e){this.options[e+"Internal"]&&this.options[e+"Internal"](this),this.options[e]&&this.options[e](this)},inspect:function(){var e=$H();for(property in this)Object.isFunction(this[property])||e.set(property,this[property]);return"#"}}),Effect.Parallel=Class.create(Effect.Base,{initialize:function(e){this.effects=e||[],this.start(arguments[1])},update:function(e){this.effects.invoke("render",e)},finish:function(e){this.effects.each(function(t){t.render(1),t.cancel(),t.event("beforeFinish"),t.finish&&t.finish(e),t.event("afterFinish")})}}),Effect.Tween=Class.create(Effect.Base,{initialize:function(e,t,n){e=Object.isString(e)?$(e):e;var r=$A(arguments),i=r.last(),s=r.length==5?r[3]:null;this.method=Object.isFunction(i)?i.bind(e):Object.isFunction(e[i])?e[i].bind(e):function(t){e[i]=t},this.start(Object.extend({from:t,to:n},s||{}))},update:function(e){this.method(e)}}),Effect.Event=Class.create(Effect.Base,{initialize:function(){this.start(Object.extend({duration:0},arguments[0]||{}))},update:Prototype.emptyFunction}),Effect.Opacity=Class.create(Effect.Base,{initialize:function(e){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;Prototype.Browser.IE&&!this.element.currentStyle.hasLayout&&this.element.setStyle({zoom:1});var t=Object.extend({from:this.element.getOpacity()||0,to:1},arguments[1]||{});this.start(t)},update:function(e){this.element.setOpacity(e)}}),Effect.Move=Class.create(Effect.Base,{initialize:function(e){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;var t=Object.extend({x:0,y:0,mode:"relative"},arguments[1]||{});this.start(t)},setup:function(){this.element.makePositioned(),this.originalLeft=parseFloat(this.element.getStyle("left")||"0"),this.originalTop=parseFloat(this.element.getStyle("top")||"0"),this.options.mode=="absolute"&&(this.options.x=this.options.x-this.originalLeft,this.options.y=this.options.y-this.originalTop)},update:function(e){this.element.setStyle({left:(this.options.x*e+this.originalLeft).round()+"px",top:(this.options.y*e+this.originalTop).round()+"px"})}}),Effect.MoveBy=function(e,t,n){return new Effect.Move(e,Object.extend({x:n,y:t},arguments[3]||{}))},Effect.Scale=Class.create(Effect.Base,{initialize:function(e,t){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;var n=Object.extend({scaleX:!0,scaleY:!0,scaleContent:!0,scaleFromCenter:!1,scaleMode:"box",scaleFrom:100,scaleTo:t},arguments[2]||{});this.start(n)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||!1,this.elementPositioning=this.element.getStyle("position"),this.originalStyle={},["top","left","width","height","fontSize"].each(function(e){this.originalStyle[e]=this.element.style[e]}.bind(this)),this.originalTop=this.element.offsetTop,this.originalLeft=this.element.offsetLeft;var e=this.element.getStyle("font-size")||"100%";["em","px","%","pt"].each(function(t){e.indexOf(t)>0&&(this.fontSize=parseFloat(e),this.fontSizeType=t)}.bind(this)),this.factor=(this.options.scaleTo-this.options.scaleFrom)/100,this.dims=null,this.options.scaleMode=="box"&&(this.dims=[this.element.offsetHeight,this.element.offsetWidth]),/^content/.test(this.options.scaleMode)&&(this.dims=[this.element.scrollHeight,this.element.scrollWidth]),this.dims||(this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth])},update:function(e){var t=this.options.scaleFrom/100+this.factor*e;this.options.scaleContent&&this.fontSize&&this.element.setStyle({fontSize:this.fontSize*t+this.fontSizeType}),this.setDimensions(this.dims[0]*t,this.dims[1]*t)},finish:function(e){this.restoreAfterFinish&&this.element.setStyle(this.originalStyle)},setDimensions:function(e,t){var n={};this.options.scaleX&&(n.width=t.round()+"px"),this.options.scaleY&&(n.height=e.round()+"px");if(this.options.scaleFromCenter){var r=(e-this.dims[0])/2,i=(t-this.dims[1])/2;this.elementPositioning=="absolute"?(this.options.scaleY&&(n.top=this.originalTop-r+"px"),this.options.scaleX&&(n.left=this.originalLeft-i+"px")):(this.options.scaleY&&(n.top=-r+"px"),this.options.scaleX&&(n.left=-i+"px"))}this.element.setStyle(n)}}),Effect.Highlight=Class.create(Effect.Base,{initialize:function(e){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;var t=Object.extend({startcolor:"#ffff99"},arguments[1]||{});this.start(t)},setup:function(){if(this.element.getStyle("display")=="none"){this.cancel();return}this.oldStyle={},this.options.keepBackgroundImage||(this.oldStyle.backgroundImage=this.element.getStyle("background-image"),this.element.setStyle({backgroundImage:"none"})),this.options.endcolor||(this.options.endcolor=this.element.getStyle("background-color").parseColor("#ffffff")),this.options.restorecolor||(this.options.restorecolor=this.element.getStyle("background-color")),this._base=$R(0,2).map(function(e){return parseInt(this.options.startcolor.slice(e*2+1,e*2+3),16)}.bind(this)),this._delta=$R(0,2).map(function(e){return parseInt(this.options.endcolor.slice(e*2+1,e*2+3),16)-this._base[e]}.bind(this))},update:function(e){this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(t,n,r){return t+(this._base[r]+this._delta[r]*e).round().toColorPart()}.bind(this))})},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}}),Effect.ScrollTo=function(e){var t=arguments[1]||{},n=document.viewport.getScrollOffsets(),r=$(e).cumulativeOffset();return t.offset&&(r[1]+=t.offset),new Effect.Tween(null,n.top,r[1],t,function(e){scrollTo(n.left,e.round())})},Effect.Fade=function(e){e=$(e);var t=e.getInlineOpacity(),n=Object.extend({from:e.getOpacity()||1,to:0,afterFinishInternal:function(e){if(e.options.to!=0)return;e.element.hide().setStyle({opacity:t})}},arguments[1]||{});return new Effect.Opacity(e,n)},Effect.Appear=function(e){e=$(e);var t=Object.extend({from:e.getStyle("display")=="none"?0:e.getOpacity()||0,to:1,afterFinishInternal:function(e){e.element.forceRerendering()},beforeSetup:function(e){e.element.setOpacity(e.options.from).show()}},arguments[1]||{});return new Effect.Opacity(e,t)},Effect.Puff=function(e){e=$(e);var t={opacity:e.getInlineOpacity(),position:e.getStyle("position"),top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height};return new Effect.Parallel([new Effect.Scale(e,200,{sync:!0,scaleFromCenter:!0,scaleContent:!0,restoreAfterFinish:!0}),new Effect.Opacity(e,{sync:!0,to:0})],Object.extend({duration:1,beforeSetupInternal:function(e){Position.absolutize(e.effects[0].element)},afterFinishInternal:function(e){e.effects[0].element.hide().setStyle(t)}},arguments[1]||{}))},Effect.BlindUp=function(e){return e=$(e),e.makeClipping(),new Effect.Scale(e,0,Object.extend({scaleContent:!1,scaleX:!1,restoreAfterFinish:!0,afterFinishInternal:function(e){e.element.hide().undoClipping()}},arguments[1]||{}))},Effect.BlindDown=function(e){e=$(e);var t=e.getDimensions();return new Effect.Scale(e,100,Object.extend({scaleContent:!1,scaleX:!1,scaleFrom:0,scaleMode:{originalHeight:t.height,originalWidth:t.width},restoreAfterFinish:!0,afterSetup:function(e){e.element.makeClipping().setStyle({height:"0px"}).show()},afterFinishInternal:function(e){e.element.undoClipping()}},arguments[1]||{}))},Effect.SwitchOff=function(e){e=$(e);var t=e.getInlineOpacity();return new Effect.Appear(e,Object.extend({duration:.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(e){new Effect.Scale(e.element,1,{duration:.3,scaleFromCenter:!0,scaleX:!1,scaleContent:!1,restoreAfterFinish:!0,beforeSetup:function(e){e.element.makePositioned().makeClipping()},afterFinishInternal:function(e){e.element.hide().undoClipping().undoPositioned().setStyle({opacity:t})}})}},arguments[1]||{}))},Effect.DropOut=function(e){e=$(e);var t={top:e.getStyle("top"),left:e.getStyle("left"),opacity:e.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(e,{x:0,y:100,sync:!0}),new Effect.Opacity(e,{sync:!0,to:0})],Object.extend({duration:.5,beforeSetup:function(e){e.effects[0].element.makePositioned()},afterFinishInternal:function(e){e.effects[0].element.hide().undoPositioned().setStyle(t)}},arguments[1]||{}))},Effect.Shake=function(e){e=$(e);var t=Object.extend({distance:20,duration:.5},arguments[1]||{}),n=parseFloat(t.distance),r=parseFloat(t.duration)/10,i={top:e.getStyle("top"),left:e.getStyle("left")};return new Effect.Move(e,{x:n,y:0,duration:r,afterFinishInternal:function(e){new Effect.Move(e.element,{x:-n*2,y:0,duration:r*2,afterFinishInternal:function(e){new Effect.Move(e.element,{x:n*2,y:0,duration:r*2,afterFinishInternal:function(e){new Effect.Move(e.element,{x:-n*2,y:0,duration:r*2,afterFinishInternal:function(e){new Effect.Move(e.element,{x:n*2,y:0,duration:r*2,afterFinishInternal:function(e){new Effect.Move(e.element,{x:-n,y:0,duration:r,afterFinishInternal:function(e){e.element.undoPositioned().setStyle(i)}})}})}})}})}})}})},Effect.SlideDown=function(e){e=$(e).cleanWhitespace();var t=e.down().getStyle("bottom"),n=e.getDimensions();return new Effect.Scale(e,100,Object.extend({scaleContent:!1,scaleX:!1,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:n.height,originalWidth:n.width},restoreAfterFinish:!0,afterSetup:function(e){e.element.makePositioned(),e.element.down().makePositioned(),window.opera&&e.element.setStyle({top:""}),e.element.makeClipping().setStyle({height:"0px"}).show()},afterUpdateInternal:function(e){e.element.down().setStyle({bottom:e.dims[0]-e.element.clientHeight+"px"})},afterFinishInternal:function(e){e.element.undoClipping().undoPositioned(),e.element.down().undoPositioned().setStyle({bottom:t})}},arguments[1]||{}))},Effect.SlideUp=function(e){e=$(e).cleanWhitespace();var t=e.down().getStyle("bottom"),n=e.getDimensions();return new Effect.Scale(e,window.opera?0:1,Object.extend({scaleContent:!1,scaleX:!1,scaleMode:"box",scaleFrom:100,scaleMode:{originalHeight:n.height,originalWidth:n.width},restoreAfterFinish:!0,afterSetup:function(e){e.element.makePositioned(),e.element.down().makePositioned(),window.opera&&e.element.setStyle({top:""}),e.element.makeClipping().show()},afterUpdateInternal:function(e){e.element.down().setStyle({bottom:e.dims[0]-e.element.clientHeight+"px"})},afterFinishInternal:function(e){e.element.hide().undoClipping().undoPositioned(),e.element.down().undoPositioned().setStyle({bottom:t})}},arguments[1]||{}))},Effect.Squish=function(e){return new Effect.Scale(e,window.opera?1:0,{restoreAfterFinish:!0,beforeSetup:function(e){e.element.makeClipping()},afterFinishInternal:function(e){e.element.hide().undoClipping()}})},Effect.Grow=function(e){e=$(e);var t=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{}),n={top:e.style.top,left:e.style.left,height:e.style.height,width:e.style.width,opacity:e.getInlineOpacity()},r=e.getDimensions(),i,s,o,u;switch(t.direction){case"top-left":i=s=o=u=0;break;case"top-right":i=r.width,s=u=0,o=-r.width;break;case"bottom-left":i=o=0,s=r.height,u=-r.height;break;case"bottom-right":i=r.width,s=r.height,o=-r.width,u=-r.height;break;case"center":i=r.width/2,s=r.height/2,o=-r.width/2,u=-r.height/2}return new Effect.Move(e,{x:i,y:s,duration:.01,beforeSetup:function(e){e.element.hide().makeClipping().makePositioned()},afterFinishInternal:function(e){new Effect.Parallel([new Effect.Opacity(e.element,{sync:!0,to:1,from:0,transition:t.opacityTransition}),new Effect.Move(e.element,{x:o,y:u,sync:!0,transition:t.moveTransition}),new Effect.Scale(e.element,100,{scaleMode:{originalHeight:r.height,originalWidth:r.width},sync:!0,scaleFrom:window.opera?1:0,transition:t.scaleTransition,restoreAfterFinish:!0})],Object.extend({beforeSetup:function(e){e.effects[0].element.setStyle({height:"0px"}).show()},afterFinishInternal:function(e){e.effects[0].element.undoClipping().undoPositioned().setStyle(n)}},t))}})},Effect.Shrink=function(e){e=$(e);var t=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{}),n={top:e.style.top,left:e.style.left,height:e.style.height,width:e.style.width,opacity:e.getInlineOpacity()},r=e.getDimensions(),i,s;switch(t.direction){case"top-left":i=s=0;break;case"top-right":i=r.width,s=0;break;case"bottom-left":i=0,s=r.height;break;case"bottom-right":i=r.width,s=r.height;break;case"center":i=r.width/2,s=r.height/2}return new Effect.Parallel([new Effect.Opacity(e,{sync:!0,to:0,from:1,transition:t.opacityTransition}),new Effect.Scale(e,window.opera?1:0,{sync:!0,transition:t.scaleTransition,restoreAfterFinish:!0}),new Effect.Move(e,{x:i,y:s,sync:!0,transition:t.moveTransition})],Object.extend({beforeStartInternal:function(e){e.effects[0].element.makePositioned().makeClipping()},afterFinishInternal:function(e){e.effects[0].element.hide().undoClipping().undoPositioned().setStyle(n)}},t))},Effect.Pulsate=function(e){e=$(e);var t=arguments[1]||{},n=e.getInlineOpacity(),r=t.transition||Effect.Transitions.linear,i=function(e){return 1-r(-Math.cos(e*(t.pulses||5)*2*Math.PI)/2+.5)};return new Effect.Opacity(e,Object.extend(Object.extend({duration:2,from:0,afterFinishInternal:function(e){e.element.setStyle({opacity:n})}},t),{transition:i}))},Effect.Fold=function(e){e=$(e);var t={top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height};return e.makeClipping(),new Effect.Scale(e,5,Object.extend({scaleContent:!1,scaleX:!1,afterFinishInternal:function(n){new Effect.Scale(e,1,{scaleContent:!1,scaleY:!1,afterFinishInternal:function(e){e.element.hide().undoClipping().setStyle(t)}})}},arguments[1]||{}))},Effect.Morph=Class.create(Effect.Base,{initialize:function(e){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;var t=Object.extend({style:{}},arguments[1]||{});if(!Object.isString(t.style))this.style=$H(t.style);else if(t.style.include(":"))this.style=t.style.parseStyle();else{this.element.addClassName(t.style),this.style=$H(this.element.getStyles()),this.element.removeClassName(t.style);var n=this.element.getStyles();this.style=this.style.reject(function(e){return e.value==n[e.key]}),t.afterFinishInternal=function(e){e.element.addClassName(e.options.style),e.transforms.each(function(t){e.element.style[t.style]=""})}}this.start(t)},setup:function(){function e(e){if(!e||["rgba(0, 0, 0, 0)","transparent"].include(e))e="#ffffff";return e=e.parseColor(),$R(0,2).map(function(t){return parseInt(e.slice(t*2+1,t*2+3),16)})}this.transforms=this.style.map(function(t){var n=t[0],r=t[1],i=null;if(r.parseColor("#zzzzzz")!="#zzzzzz")r=r.parseColor(),i="color";else if(n=="opacity")r=parseFloat(r),Prototype.Browser.IE&&!this.element.currentStyle.hasLayout&&this.element.setStyle({zoom:1});else if(Element.CSS_LENGTH.test(r)){var s=r.match(/^([\+\-]?[0-9\.]+)(.*)$/);r=parseFloat(s[1]),i=s.length==3?s[2]:null}var o=this.element.getStyle(n);return{style:n.camelize(),originalValue:i=="color"?e(o):parseFloat(o||0),targetValue:i=="color"?e(r):r,unit:i}}.bind(this)).reject(function(e){return e.originalValue==e.targetValue||e.unit!="color"&&(isNaN(e.originalValue)||isNaN(e.targetValue))})},update:function(e){var t={},n,r=this.transforms.length;while(r--)t[(n=this.transforms[r]).style]=n.unit=="color"?"#"+Math.round(n.originalValue[0]+(n.targetValue[0]-n.originalValue[0])*e).toColorPart()+Math.round(n.originalValue[1]+(n.targetValue[1]-n.originalValue[1])*e).toColorPart()+Math.round(n.originalValue[2]+(n.targetValue[2]-n.originalValue[2])*e).toColorPart():(n.originalValue+(n.targetValue-n.originalValue)*e).toFixed(3)+(n.unit===null?"":n.unit);this.element.setStyle(t,!0)}}),Effect.Transform=Class.create({initialize:function(e){this.tracks=[],this.options=arguments[1]||{},this.addTracks(e)},addTracks:function(e){return e.each(function(e){e=$H(e);var t=e.values().first();this.tracks.push($H({ids:e.keys().first(),effect:Effect.Morph,options:{style:t}}))}.bind(this)),this},play:function(){return new Effect.Parallel(this.tracks.map(function(e){var t=e.get("ids"),n=e.get("effect"),r=e.get("options"),i=[$(t)||$$(t)].flatten();return i.map(function(e){return new n(e,Object.extend({sync:!0},r))})}).flatten(),this.options)}}),Element.CSS_PROPERTIES=$w("backgroundColor backgroundPosition borderBottomColor borderBottomStyle borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderSpacing borderTopColor borderTopStyle borderTopWidth bottom clip color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop markerOffset maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex"),Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/,String.__parseStyleElement=document.createElement("div"),String.prototype.parseStyle=function(){var e,t=$H();return Prototype.Browser.WebKit?e=(new Element("div",{style:this})).style:(String.__parseStyleElement.innerHTML='
    ',e=String.__parseStyleElement.childNodes[0].style),Element.CSS_PROPERTIES.each(function(n){e[n]&&t.set(n,e[n])}),Prototype.Browser.IE&&this.include("opacity")&&t.set("opacity",this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]),t},document.defaultView&&document.defaultView.getComputedStyle?Element.getStyles=function(e){var t=document.defaultView.getComputedStyle($(e),null);return Element.CSS_PROPERTIES.inject({},function(e,n){return e[n]=t[n],e})}:Element.getStyles=function(e){e=$(e);var t=e.currentStyle,n;return n=Element.CSS_PROPERTIES.inject({},function(e,n){return e[n]=t[n],e}),n.opacity||(n.opacity=e.getOpacity()),n},Effect.Methods={morph:function(e,t){return e=$(e),new Effect.Morph(e,Object.extend({style:t},arguments[2]||{})),e},visualEffect:function(e,t,n){e=$(e);var r=t.dasherize().camelize(),i=r.charAt(0).toUpperCase()+r.substring(1);return new Effect[i](e,n),e},highlight:function(e,t){return e=$(e),new Effect.Highlight(e,t),e}},$w("fade appear grow shrink fold blindUp blindDown slideUp slideDown pulsate shake puff squish switchOff dropOut").each(function(e){Effect.Methods[e]=function(t,n){return t=$(t),Effect[e.charAt(0).toUpperCase()+e.substring(1)](t,n),t}}),$w("getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles").each(function(e){Effect.Methods[e]=Element[e]}),Element.addMethods(Effect.Methods); \ No newline at end of file diff --git a/public/assets/effects-56d0a4b0b0637c7fe22102a0ad5dd2f5.js.gz b/public/assets/effects-56d0a4b0b0637c7fe22102a0ad5dd2f5.js.gz new file mode 100644 index 00000000..dba2b779 Binary files /dev/null and b/public/assets/effects-56d0a4b0b0637c7fe22102a0ad5dd2f5.js.gz differ diff --git a/public/assets/effects.js b/public/assets/effects.js new file mode 100644 index 00000000..129a6ef8 --- /dev/null +++ b/public/assets/effects.js @@ -0,0 +1,12 @@ +// script.aculo.us effects.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009 +// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) +// Contributors: +// Justin Palmer (http://encytemedia.com/) +// Mark Pilgrim (http://diveintomark.org/) +// Martin Bialasinki +// +// script.aculo.us is freely distributable under the terms of an MIT-style license. +// For details, see the script.aculo.us web site: http://script.aculo.us/ +// converts rgb() and #xxx to #xxxxxx format, +// returns self (or first argument) if not convertable +String.prototype.parseColor=function(){var e="#";if(this.slice(0,4)=="rgb("){var t=this.slice(4,this.length-1).split(","),n=0;do e+=parseInt(t[n]).toColorPart();while(++n<3)}else if(this.slice(0,1)=="#"){if(this.length==4)for(var n=1;n<4;n++)e+=(this.charAt(n)+this.charAt(n)).toLowerCase();this.length==7&&(e=this.toLowerCase())}return e.length==7?e:arguments[0]||this},Element.collectTextNodes=function(e){return $A($(e).childNodes).collect(function(e){return e.nodeType==3?e.nodeValue:e.hasChildNodes()?Element.collectTextNodes(e):""}).flatten().join("")},Element.collectTextNodesIgnoreClass=function(e,t){return $A($(e).childNodes).collect(function(e){return e.nodeType==3?e.nodeValue:e.hasChildNodes()&&!Element.hasClassName(e,t)?Element.collectTextNodesIgnoreClass(e,t):""}).flatten().join("")},Element.setContentZoom=function(e,t){return e=$(e),e.setStyle({fontSize:t/100+"em"}),Prototype.Browser.WebKit&&window.scrollBy(0,0),e},Element.getInlineOpacity=function(e){return $(e).style.opacity||""},Element.forceRerendering=function(e){try{e=$(e);var t=document.createTextNode(" ");e.appendChild(t),e.removeChild(t)}catch(n){}};var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},Transitions:{linear:Prototype.K,sinoidal:function(e){return-Math.cos(e*Math.PI)/2+.5},reverse:function(e){return 1-e},flicker:function(e){var e=-Math.cos(e*Math.PI)/4+.75+Math.random()/4;return e>1?1:e},wobble:function(e){return-Math.cos(e*Math.PI*9*e)/2+.5},pulse:function(e,t){return-Math.cos(e*((t||5)-.5)*2*Math.PI)/2+.5},spring:function(e){return 1-Math.cos(e*4.5*Math.PI)*Math.exp(-e*6)},none:function(e){return 0},full:function(e){return 1}},DefaultOptions:{duration:1,fps:100,sync:!1,from:0,to:1,delay:0,queue:"parallel"},tagifyText:function(e){var t="position:relative";Prototype.Browser.IE&&(t+=";zoom:1"),e=$(e),$A(e.childNodes).each(function(n){n.nodeType==3&&(n.nodeValue.toArray().each(function(r){e.insertBefore((new Element("span",{style:t})).update(r==" "?String.fromCharCode(160):r),n)}),Element.remove(n))})},multiple:function(e,t){var n;(typeof e=="object"||Object.isFunction(e))&&e.length?n=e:n=$(e).childNodes;var r=Object.extend({speed:.1,delay:0},arguments[2]||{}),i=r.delay;$A(n).each(function(e,n){new t(e,Object.extend(r,{delay:n*r.speed+i}))})},PAIRS:{slide:["SlideDown","SlideUp"],blind:["BlindDown","BlindUp"],appear:["Appear","Fade"]},toggle:function(e,t,n){return e=$(e),t=(t||"appear").toLowerCase(),Effect[Effect.PAIRS[t][e.visible()?1:0]](e,Object.extend({queue:{position:"end",scope:e.id||"global",limit:1}},n||{}))}};Effect.DefaultOptions.transition=Effect.Transitions.sinoidal,Effect.ScopedQueue=Class.create(Enumerable,{initialize:function(){this.effects=[],this.interval=null},_each:function(e){this.effects._each(e)},add:function(e){var t=(new Date).getTime(),n=Object.isString(e.options.queue)?e.options.queue:e.options.queue.position;switch(n){case"front":this.effects.findAll(function(e){return e.state=="idle"}).each(function(t){t.startOn+=e.finishOn,t.finishOn+=e.finishOn});break;case"with-last":t=this.effects.pluck("startOn").max()||t;break;case"end":t=this.effects.pluck("finishOn").max()||t}e.startOn+=t,e.finishOn+=t,(!e.options.queue.limit||this.effects.length=this.startOn){if(e>=this.finishOn){this.render(1),this.cancel(),this.event("beforeFinish"),this.finish&&this.finish(),this.event("afterFinish");return}var t=(e-this.startOn)/this.totalTime,n=(t*this.totalFrames).round();n>this.currentFrame&&(this.render(t),this.currentFrame=n)}},cancel:function(){this.options.sync||Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).remove(this),this.state="finished"},event:function(e){this.options[e+"Internal"]&&this.options[e+"Internal"](this),this.options[e]&&this.options[e](this)},inspect:function(){var e=$H();for(property in this)Object.isFunction(this[property])||e.set(property,this[property]);return"#"}}),Effect.Parallel=Class.create(Effect.Base,{initialize:function(e){this.effects=e||[],this.start(arguments[1])},update:function(e){this.effects.invoke("render",e)},finish:function(e){this.effects.each(function(t){t.render(1),t.cancel(),t.event("beforeFinish"),t.finish&&t.finish(e),t.event("afterFinish")})}}),Effect.Tween=Class.create(Effect.Base,{initialize:function(e,t,n){e=Object.isString(e)?$(e):e;var r=$A(arguments),i=r.last(),s=r.length==5?r[3]:null;this.method=Object.isFunction(i)?i.bind(e):Object.isFunction(e[i])?e[i].bind(e):function(t){e[i]=t},this.start(Object.extend({from:t,to:n},s||{}))},update:function(e){this.method(e)}}),Effect.Event=Class.create(Effect.Base,{initialize:function(){this.start(Object.extend({duration:0},arguments[0]||{}))},update:Prototype.emptyFunction}),Effect.Opacity=Class.create(Effect.Base,{initialize:function(e){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;Prototype.Browser.IE&&!this.element.currentStyle.hasLayout&&this.element.setStyle({zoom:1});var t=Object.extend({from:this.element.getOpacity()||0,to:1},arguments[1]||{});this.start(t)},update:function(e){this.element.setOpacity(e)}}),Effect.Move=Class.create(Effect.Base,{initialize:function(e){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;var t=Object.extend({x:0,y:0,mode:"relative"},arguments[1]||{});this.start(t)},setup:function(){this.element.makePositioned(),this.originalLeft=parseFloat(this.element.getStyle("left")||"0"),this.originalTop=parseFloat(this.element.getStyle("top")||"0"),this.options.mode=="absolute"&&(this.options.x=this.options.x-this.originalLeft,this.options.y=this.options.y-this.originalTop)},update:function(e){this.element.setStyle({left:(this.options.x*e+this.originalLeft).round()+"px",top:(this.options.y*e+this.originalTop).round()+"px"})}}),Effect.MoveBy=function(e,t,n){return new Effect.Move(e,Object.extend({x:n,y:t},arguments[3]||{}))},Effect.Scale=Class.create(Effect.Base,{initialize:function(e,t){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;var n=Object.extend({scaleX:!0,scaleY:!0,scaleContent:!0,scaleFromCenter:!1,scaleMode:"box",scaleFrom:100,scaleTo:t},arguments[2]||{});this.start(n)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||!1,this.elementPositioning=this.element.getStyle("position"),this.originalStyle={},["top","left","width","height","fontSize"].each(function(e){this.originalStyle[e]=this.element.style[e]}.bind(this)),this.originalTop=this.element.offsetTop,this.originalLeft=this.element.offsetLeft;var e=this.element.getStyle("font-size")||"100%";["em","px","%","pt"].each(function(t){e.indexOf(t)>0&&(this.fontSize=parseFloat(e),this.fontSizeType=t)}.bind(this)),this.factor=(this.options.scaleTo-this.options.scaleFrom)/100,this.dims=null,this.options.scaleMode=="box"&&(this.dims=[this.element.offsetHeight,this.element.offsetWidth]),/^content/.test(this.options.scaleMode)&&(this.dims=[this.element.scrollHeight,this.element.scrollWidth]),this.dims||(this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth])},update:function(e){var t=this.options.scaleFrom/100+this.factor*e;this.options.scaleContent&&this.fontSize&&this.element.setStyle({fontSize:this.fontSize*t+this.fontSizeType}),this.setDimensions(this.dims[0]*t,this.dims[1]*t)},finish:function(e){this.restoreAfterFinish&&this.element.setStyle(this.originalStyle)},setDimensions:function(e,t){var n={};this.options.scaleX&&(n.width=t.round()+"px"),this.options.scaleY&&(n.height=e.round()+"px");if(this.options.scaleFromCenter){var r=(e-this.dims[0])/2,i=(t-this.dims[1])/2;this.elementPositioning=="absolute"?(this.options.scaleY&&(n.top=this.originalTop-r+"px"),this.options.scaleX&&(n.left=this.originalLeft-i+"px")):(this.options.scaleY&&(n.top=-r+"px"),this.options.scaleX&&(n.left=-i+"px"))}this.element.setStyle(n)}}),Effect.Highlight=Class.create(Effect.Base,{initialize:function(e){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;var t=Object.extend({startcolor:"#ffff99"},arguments[1]||{});this.start(t)},setup:function(){if(this.element.getStyle("display")=="none"){this.cancel();return}this.oldStyle={},this.options.keepBackgroundImage||(this.oldStyle.backgroundImage=this.element.getStyle("background-image"),this.element.setStyle({backgroundImage:"none"})),this.options.endcolor||(this.options.endcolor=this.element.getStyle("background-color").parseColor("#ffffff")),this.options.restorecolor||(this.options.restorecolor=this.element.getStyle("background-color")),this._base=$R(0,2).map(function(e){return parseInt(this.options.startcolor.slice(e*2+1,e*2+3),16)}.bind(this)),this._delta=$R(0,2).map(function(e){return parseInt(this.options.endcolor.slice(e*2+1,e*2+3),16)-this._base[e]}.bind(this))},update:function(e){this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(t,n,r){return t+(this._base[r]+this._delta[r]*e).round().toColorPart()}.bind(this))})},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}}),Effect.ScrollTo=function(e){var t=arguments[1]||{},n=document.viewport.getScrollOffsets(),r=$(e).cumulativeOffset();return t.offset&&(r[1]+=t.offset),new Effect.Tween(null,n.top,r[1],t,function(e){scrollTo(n.left,e.round())})},Effect.Fade=function(e){e=$(e);var t=e.getInlineOpacity(),n=Object.extend({from:e.getOpacity()||1,to:0,afterFinishInternal:function(e){if(e.options.to!=0)return;e.element.hide().setStyle({opacity:t})}},arguments[1]||{});return new Effect.Opacity(e,n)},Effect.Appear=function(e){e=$(e);var t=Object.extend({from:e.getStyle("display")=="none"?0:e.getOpacity()||0,to:1,afterFinishInternal:function(e){e.element.forceRerendering()},beforeSetup:function(e){e.element.setOpacity(e.options.from).show()}},arguments[1]||{});return new Effect.Opacity(e,t)},Effect.Puff=function(e){e=$(e);var t={opacity:e.getInlineOpacity(),position:e.getStyle("position"),top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height};return new Effect.Parallel([new Effect.Scale(e,200,{sync:!0,scaleFromCenter:!0,scaleContent:!0,restoreAfterFinish:!0}),new Effect.Opacity(e,{sync:!0,to:0})],Object.extend({duration:1,beforeSetupInternal:function(e){Position.absolutize(e.effects[0].element)},afterFinishInternal:function(e){e.effects[0].element.hide().setStyle(t)}},arguments[1]||{}))},Effect.BlindUp=function(e){return e=$(e),e.makeClipping(),new Effect.Scale(e,0,Object.extend({scaleContent:!1,scaleX:!1,restoreAfterFinish:!0,afterFinishInternal:function(e){e.element.hide().undoClipping()}},arguments[1]||{}))},Effect.BlindDown=function(e){e=$(e);var t=e.getDimensions();return new Effect.Scale(e,100,Object.extend({scaleContent:!1,scaleX:!1,scaleFrom:0,scaleMode:{originalHeight:t.height,originalWidth:t.width},restoreAfterFinish:!0,afterSetup:function(e){e.element.makeClipping().setStyle({height:"0px"}).show()},afterFinishInternal:function(e){e.element.undoClipping()}},arguments[1]||{}))},Effect.SwitchOff=function(e){e=$(e);var t=e.getInlineOpacity();return new Effect.Appear(e,Object.extend({duration:.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(e){new Effect.Scale(e.element,1,{duration:.3,scaleFromCenter:!0,scaleX:!1,scaleContent:!1,restoreAfterFinish:!0,beforeSetup:function(e){e.element.makePositioned().makeClipping()},afterFinishInternal:function(e){e.element.hide().undoClipping().undoPositioned().setStyle({opacity:t})}})}},arguments[1]||{}))},Effect.DropOut=function(e){e=$(e);var t={top:e.getStyle("top"),left:e.getStyle("left"),opacity:e.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(e,{x:0,y:100,sync:!0}),new Effect.Opacity(e,{sync:!0,to:0})],Object.extend({duration:.5,beforeSetup:function(e){e.effects[0].element.makePositioned()},afterFinishInternal:function(e){e.effects[0].element.hide().undoPositioned().setStyle(t)}},arguments[1]||{}))},Effect.Shake=function(e){e=$(e);var t=Object.extend({distance:20,duration:.5},arguments[1]||{}),n=parseFloat(t.distance),r=parseFloat(t.duration)/10,i={top:e.getStyle("top"),left:e.getStyle("left")};return new Effect.Move(e,{x:n,y:0,duration:r,afterFinishInternal:function(e){new Effect.Move(e.element,{x:-n*2,y:0,duration:r*2,afterFinishInternal:function(e){new Effect.Move(e.element,{x:n*2,y:0,duration:r*2,afterFinishInternal:function(e){new Effect.Move(e.element,{x:-n*2,y:0,duration:r*2,afterFinishInternal:function(e){new Effect.Move(e.element,{x:n*2,y:0,duration:r*2,afterFinishInternal:function(e){new Effect.Move(e.element,{x:-n,y:0,duration:r,afterFinishInternal:function(e){e.element.undoPositioned().setStyle(i)}})}})}})}})}})}})},Effect.SlideDown=function(e){e=$(e).cleanWhitespace();var t=e.down().getStyle("bottom"),n=e.getDimensions();return new Effect.Scale(e,100,Object.extend({scaleContent:!1,scaleX:!1,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:n.height,originalWidth:n.width},restoreAfterFinish:!0,afterSetup:function(e){e.element.makePositioned(),e.element.down().makePositioned(),window.opera&&e.element.setStyle({top:""}),e.element.makeClipping().setStyle({height:"0px"}).show()},afterUpdateInternal:function(e){e.element.down().setStyle({bottom:e.dims[0]-e.element.clientHeight+"px"})},afterFinishInternal:function(e){e.element.undoClipping().undoPositioned(),e.element.down().undoPositioned().setStyle({bottom:t})}},arguments[1]||{}))},Effect.SlideUp=function(e){e=$(e).cleanWhitespace();var t=e.down().getStyle("bottom"),n=e.getDimensions();return new Effect.Scale(e,window.opera?0:1,Object.extend({scaleContent:!1,scaleX:!1,scaleMode:"box",scaleFrom:100,scaleMode:{originalHeight:n.height,originalWidth:n.width},restoreAfterFinish:!0,afterSetup:function(e){e.element.makePositioned(),e.element.down().makePositioned(),window.opera&&e.element.setStyle({top:""}),e.element.makeClipping().show()},afterUpdateInternal:function(e){e.element.down().setStyle({bottom:e.dims[0]-e.element.clientHeight+"px"})},afterFinishInternal:function(e){e.element.hide().undoClipping().undoPositioned(),e.element.down().undoPositioned().setStyle({bottom:t})}},arguments[1]||{}))},Effect.Squish=function(e){return new Effect.Scale(e,window.opera?1:0,{restoreAfterFinish:!0,beforeSetup:function(e){e.element.makeClipping()},afterFinishInternal:function(e){e.element.hide().undoClipping()}})},Effect.Grow=function(e){e=$(e);var t=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{}),n={top:e.style.top,left:e.style.left,height:e.style.height,width:e.style.width,opacity:e.getInlineOpacity()},r=e.getDimensions(),i,s,o,u;switch(t.direction){case"top-left":i=s=o=u=0;break;case"top-right":i=r.width,s=u=0,o=-r.width;break;case"bottom-left":i=o=0,s=r.height,u=-r.height;break;case"bottom-right":i=r.width,s=r.height,o=-r.width,u=-r.height;break;case"center":i=r.width/2,s=r.height/2,o=-r.width/2,u=-r.height/2}return new Effect.Move(e,{x:i,y:s,duration:.01,beforeSetup:function(e){e.element.hide().makeClipping().makePositioned()},afterFinishInternal:function(e){new Effect.Parallel([new Effect.Opacity(e.element,{sync:!0,to:1,from:0,transition:t.opacityTransition}),new Effect.Move(e.element,{x:o,y:u,sync:!0,transition:t.moveTransition}),new Effect.Scale(e.element,100,{scaleMode:{originalHeight:r.height,originalWidth:r.width},sync:!0,scaleFrom:window.opera?1:0,transition:t.scaleTransition,restoreAfterFinish:!0})],Object.extend({beforeSetup:function(e){e.effects[0].element.setStyle({height:"0px"}).show()},afterFinishInternal:function(e){e.effects[0].element.undoClipping().undoPositioned().setStyle(n)}},t))}})},Effect.Shrink=function(e){e=$(e);var t=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{}),n={top:e.style.top,left:e.style.left,height:e.style.height,width:e.style.width,opacity:e.getInlineOpacity()},r=e.getDimensions(),i,s;switch(t.direction){case"top-left":i=s=0;break;case"top-right":i=r.width,s=0;break;case"bottom-left":i=0,s=r.height;break;case"bottom-right":i=r.width,s=r.height;break;case"center":i=r.width/2,s=r.height/2}return new Effect.Parallel([new Effect.Opacity(e,{sync:!0,to:0,from:1,transition:t.opacityTransition}),new Effect.Scale(e,window.opera?1:0,{sync:!0,transition:t.scaleTransition,restoreAfterFinish:!0}),new Effect.Move(e,{x:i,y:s,sync:!0,transition:t.moveTransition})],Object.extend({beforeStartInternal:function(e){e.effects[0].element.makePositioned().makeClipping()},afterFinishInternal:function(e){e.effects[0].element.hide().undoClipping().undoPositioned().setStyle(n)}},t))},Effect.Pulsate=function(e){e=$(e);var t=arguments[1]||{},n=e.getInlineOpacity(),r=t.transition||Effect.Transitions.linear,i=function(e){return 1-r(-Math.cos(e*(t.pulses||5)*2*Math.PI)/2+.5)};return new Effect.Opacity(e,Object.extend(Object.extend({duration:2,from:0,afterFinishInternal:function(e){e.element.setStyle({opacity:n})}},t),{transition:i}))},Effect.Fold=function(e){e=$(e);var t={top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height};return e.makeClipping(),new Effect.Scale(e,5,Object.extend({scaleContent:!1,scaleX:!1,afterFinishInternal:function(n){new Effect.Scale(e,1,{scaleContent:!1,scaleY:!1,afterFinishInternal:function(e){e.element.hide().undoClipping().setStyle(t)}})}},arguments[1]||{}))},Effect.Morph=Class.create(Effect.Base,{initialize:function(e){this.element=$(e);if(!this.element)throw Effect._elementDoesNotExistError;var t=Object.extend({style:{}},arguments[1]||{});if(!Object.isString(t.style))this.style=$H(t.style);else if(t.style.include(":"))this.style=t.style.parseStyle();else{this.element.addClassName(t.style),this.style=$H(this.element.getStyles()),this.element.removeClassName(t.style);var n=this.element.getStyles();this.style=this.style.reject(function(e){return e.value==n[e.key]}),t.afterFinishInternal=function(e){e.element.addClassName(e.options.style),e.transforms.each(function(t){e.element.style[t.style]=""})}}this.start(t)},setup:function(){function e(e){if(!e||["rgba(0, 0, 0, 0)","transparent"].include(e))e="#ffffff";return e=e.parseColor(),$R(0,2).map(function(t){return parseInt(e.slice(t*2+1,t*2+3),16)})}this.transforms=this.style.map(function(t){var n=t[0],r=t[1],i=null;if(r.parseColor("#zzzzzz")!="#zzzzzz")r=r.parseColor(),i="color";else if(n=="opacity")r=parseFloat(r),Prototype.Browser.IE&&!this.element.currentStyle.hasLayout&&this.element.setStyle({zoom:1});else if(Element.CSS_LENGTH.test(r)){var s=r.match(/^([\+\-]?[0-9\.]+)(.*)$/);r=parseFloat(s[1]),i=s.length==3?s[2]:null}var o=this.element.getStyle(n);return{style:n.camelize(),originalValue:i=="color"?e(o):parseFloat(o||0),targetValue:i=="color"?e(r):r,unit:i}}.bind(this)).reject(function(e){return e.originalValue==e.targetValue||e.unit!="color"&&(isNaN(e.originalValue)||isNaN(e.targetValue))})},update:function(e){var t={},n,r=this.transforms.length;while(r--)t[(n=this.transforms[r]).style]=n.unit=="color"?"#"+Math.round(n.originalValue[0]+(n.targetValue[0]-n.originalValue[0])*e).toColorPart()+Math.round(n.originalValue[1]+(n.targetValue[1]-n.originalValue[1])*e).toColorPart()+Math.round(n.originalValue[2]+(n.targetValue[2]-n.originalValue[2])*e).toColorPart():(n.originalValue+(n.targetValue-n.originalValue)*e).toFixed(3)+(n.unit===null?"":n.unit);this.element.setStyle(t,!0)}}),Effect.Transform=Class.create({initialize:function(e){this.tracks=[],this.options=arguments[1]||{},this.addTracks(e)},addTracks:function(e){return e.each(function(e){e=$H(e);var t=e.values().first();this.tracks.push($H({ids:e.keys().first(),effect:Effect.Morph,options:{style:t}}))}.bind(this)),this},play:function(){return new Effect.Parallel(this.tracks.map(function(e){var t=e.get("ids"),n=e.get("effect"),r=e.get("options"),i=[$(t)||$$(t)].flatten();return i.map(function(e){return new n(e,Object.extend({sync:!0},r))})}).flatten(),this.options)}}),Element.CSS_PROPERTIES=$w("backgroundColor backgroundPosition borderBottomColor borderBottomStyle borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderSpacing borderTopColor borderTopStyle borderTopWidth bottom clip color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop markerOffset maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex"),Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/,String.__parseStyleElement=document.createElement("div"),String.prototype.parseStyle=function(){var e,t=$H();return Prototype.Browser.WebKit?e=(new Element("div",{style:this})).style:(String.__parseStyleElement.innerHTML='
    ',e=String.__parseStyleElement.childNodes[0].style),Element.CSS_PROPERTIES.each(function(n){e[n]&&t.set(n,e[n])}),Prototype.Browser.IE&&this.include("opacity")&&t.set("opacity",this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]),t},document.defaultView&&document.defaultView.getComputedStyle?Element.getStyles=function(e){var t=document.defaultView.getComputedStyle($(e),null);return Element.CSS_PROPERTIES.inject({},function(e,n){return e[n]=t[n],e})}:Element.getStyles=function(e){e=$(e);var t=e.currentStyle,n;return n=Element.CSS_PROPERTIES.inject({},function(e,n){return e[n]=t[n],e}),n.opacity||(n.opacity=e.getOpacity()),n},Effect.Methods={morph:function(e,t){return e=$(e),new Effect.Morph(e,Object.extend({style:t},arguments[2]||{})),e},visualEffect:function(e,t,n){e=$(e);var r=t.dasherize().camelize(),i=r.charAt(0).toUpperCase()+r.substring(1);return new Effect[i](e,n),e},highlight:function(e,t){return e=$(e),new Effect.Highlight(e,t),e}},$w("fade appear grow shrink fold blindUp blindDown slideUp slideDown pulsate shake puff squish switchOff dropOut").each(function(e){Effect.Methods[e]=function(t,n){return t=$(t),Effect[e.charAt(0).toUpperCase()+e.substring(1)](t,n),t}}),$w("getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles").each(function(e){Effect.Methods[e]=Element[e]}),Element.addMethods(Effect.Methods); \ No newline at end of file diff --git a/public/assets/effects.js.gz b/public/assets/effects.js.gz new file mode 100644 index 00000000..e53b6154 Binary files /dev/null and b/public/assets/effects.js.gz differ diff --git a/public/assets/forum-5f20828c77844a76d3b6a43d230f4bb4.png b/public/assets/forum-5f20828c77844a76d3b6a43d230f4bb4.png new file mode 100644 index 00000000..8ec45952 Binary files /dev/null and b/public/assets/forum-5f20828c77844a76d3b6a43d230f4bb4.png differ diff --git a/public/assets/forum.png b/public/assets/forum.png new file mode 100644 index 00000000..8ec45952 Binary files /dev/null and b/public/assets/forum.png differ diff --git a/public/assets/grid-f5696880747244116772725bf4834d5e.png b/public/assets/grid-f5696880747244116772725bf4834d5e.png new file mode 100644 index 00000000..129d4a29 Binary files /dev/null and b/public/assets/grid-f5696880747244116772725bf4834d5e.png differ diff --git a/public/assets/grid.png b/public/assets/grid.png new file mode 100644 index 00000000..129d4a29 Binary files /dev/null and b/public/assets/grid.png differ diff --git a/public/assets/image_mode_icon-724099e255b5bf4309c74de07b9a1f9d.png b/public/assets/image_mode_icon-724099e255b5bf4309c74de07b9a1f9d.png new file mode 100644 index 00000000..fc3c393c Binary files /dev/null and b/public/assets/image_mode_icon-724099e255b5bf4309c74de07b9a1f9d.png differ diff --git a/public/assets/image_mode_icon.png b/public/assets/image_mode_icon.png new file mode 100644 index 00000000..fc3c393c Binary files /dev/null and b/public/assets/image_mode_icon.png differ diff --git a/public/assets/image_mode_preview-2c2a2baf66c4558763bb58a7231d0309.png b/public/assets/image_mode_preview-2c2a2baf66c4558763bb58a7231d0309.png new file mode 100644 index 00000000..c86e22eb Binary files /dev/null and b/public/assets/image_mode_preview-2c2a2baf66c4558763bb58a7231d0309.png differ diff --git a/public/assets/image_mode_preview.png b/public/assets/image_mode_preview.png new file mode 100644 index 00000000..c86e22eb Binary files /dev/null and b/public/assets/image_mode_preview.png differ diff --git a/public/assets/items-cb910143dc5a3a53a4d35bb125988b68.png b/public/assets/items-cb910143dc5a3a53a4d35bb125988b68.png new file mode 100644 index 00000000..0e7ec487 Binary files /dev/null and b/public/assets/items-cb910143dc5a3a53a4d35bb125988b68.png differ diff --git a/public/assets/items.png b/public/assets/items.png new file mode 100644 index 00000000..0e7ec487 Binary files /dev/null and b/public/assets/items.png differ diff --git a/public/assets/items/show-524e62e23483e1eba9f6693a8e4199d0.js b/public/assets/items/show-524e62e23483e1eba9f6693a8e4199d0.js new file mode 100644 index 00000000..13e1f503 --- /dev/null +++ b/public/assets/items/show-524e62e23483e1eba9f6693a8e4199d0.js @@ -0,0 +1,2 @@ +// FIXME: pick a consistent javascript style! underscores for vars or camelCase? +function impressUrl(e){return"http://"+IMPRESS_HOST+e}function PetType(){function r(){n?e.onUpdate():$.getJSON("/pet_types/"+e.id+"/swf_assets.json",function(t){e.assets=t,n=!0,e.onUpdate()})}function i(){Preview.disable(e.deactivation_msg)}var e=this,t=!1,n=!1;this.activated=!0,this.assets=[],this.deactivate=function(){var e;this.activated=!1,this.deactivation_msg=$("#swf-assets-not-found-template").tmpl({color_name:this.color_name.capitalize(),species_name:this.species_name.capitalize()}),this==PetType.current&&i();var t=this.link.children("img").get(0);this.link.addClass("deactivated"),t.src=t.src.replace("/1/","/2/")},this.load=function(){Item.current.load(this),r()},this.setAsCurrent=function(){PetType.current=this,speciesList.filter(".current").removeClass("current"),this.link.addClass("current"),customize_more_el.attr("href","http://impress.openneo.net/wardrobe?species="+this.species_id+"&color="+this.color_id+"&objects[]="+Item.current.id),this.activated?(Preview.enable(),this.load()):i()},this.onUpdate=function(){e==PetType.current&&Preview.update()}}function Item(e){this.assets_by_body_id={},this.id=e,this.load=function(t){var n="/items/"+e+"/bodies/"+t.body_id+"/swf_assets.json",r=this;this.getAssetsForPetType(t).length?t.onUpdate():$.getJSON(n,function(e){r.setAssetsForPetType(e,t)})},this.loadAllStandard=function(){var t=this;$.getJSON("/items/"+e+"/swf_assets.json",function(e){$.each(e,function(e){t.assets_by_body_id[parseInt(e)]=this}),$.each(PetType.all,function(){t.getAssetsForPetType(this).length==0&&this.deactivate()})})},this.getAssetsForPetType=function(e){return this.assets_by_body_id[e.body_id]||this.assets_by_body_id[0]||[]},this.setAsCurrent=function(){Item.current=this},this.setAssetsForPetType=function(e,t){e.length?(this.assets_by_body_id[t.body_id]=e,t.onUpdate()):t.deactivate()}}var PREVIEW_SWF_ID="item-preview-swf",PREVIEW_SWF=document.getElementById(PREVIEW_SWF_ID),speciesList=$("#item-preview a"),customize_more_el=$("#customize-more"),MainWardrobe;if(typeof console=="undefined"||typeof console.log=="undefined")function log(){}else log=$.proxy(console,"log");String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.substr(1)},PetType.all={},PetType.DASH_REGEX=/-/g,PetType.createFromLink=function(e){var t=new PetType;return $.each(e.get(0).attributes,function(){this.name.substr(0,5)=="data-"&&(t[this.name.substr(5).replace(PetType.DASH_REGEX,"_")]=this.value)}),t.link=e,PetType.all[t.id]=t,t},Item.createFromLocation=function(){var e=new Item(parseInt(document.location.pathname.substr(7),10)),t=CURRENT_ITEM_ZONES_RESTRICT,n=t.length;e.restricted_zones=[];for(i=0;i").each(function(){var e=$(this);e.height()").each(function(){var e=$(this);e.height()').addClass(e.jGrowl.defaults.position).appendTo("body"),e("#jGrowl").jGrowl(t,n)},e.fn.jGrowl=function(t,n){if(e.isFunction(this.each)){var r=arguments;return this.each(function(){var i=this;e(this).data("jGrowl.instance")==undefined&&(e(this).data("jGrowl.instance",e.extend(new e.fn.jGrowl,{notifications:[],element:null,interval:null})),e(this).data("jGrowl.instance").startup(this)),e.isFunction(e(this).data("jGrowl.instance")[t])?e(this).data("jGrowl.instance")[t].apply(e(this).data("jGrowl.instance"),e.makeArray(r).slice(1)):e(this).data("jGrowl.instance").create(t,n)})}},e.extend(e.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",glue:"after",theme:"default",corners:"10px",check:250,life:3e3,speed:"normal",easing:"swing",closer:!0,closeTemplate:"×",closerTemplate:"
    [ close all ]
    ",log:function(e,t,n){},beforeOpen:function(e,t,n){},open:function(e,t,n){},beforeClose:function(e,t,n){},close:function(e,t,n){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(t,n){var n=e.extend({},this.defaults,n);this.notifications.push({message:t,options:n}),n.log.apply(this.element,[this.element,t,n])},render:function(t){var n=this,r=t.message,i=t.options,t=e('
    '+'
    '+i.closeTemplate+"
    "+'
    '+i.header+"
    "+'
    '+r+"
    ").data("jGrowl",i).addClass(i.theme).children("div.close").bind("click.jGrowl",function(){e(this).parent().trigger("jGrowl.close")}).parent();e(t).bind("mouseover.jGrowl",function(){e("div.jGrowl-notification",n.element).data("jGrowl.pause",!0)}).bind("mouseout.jGrowl",function(){e("div.jGrowl-notification",n.element).data("jGrowl.pause",!1)}).bind("jGrowl.beforeOpen",function(){i.beforeOpen.apply(t,[t,r,i,n.element])!=0&&e(this).trigger("jGrowl.open")}).bind("jGrowl.open",function(){i.open.apply(t,[t,r,i,n.element])!=0&&(i.glue=="after"?e("div.jGrowl-notification:last",n.element).after(t):e("div.jGrowl-notification:first",n.element).before(t),e(this).animate(i.animateOpen,i.speed,i.easing,function(){e.browser.msie&&(parseInt(e(this).css("opacity"),10)===1||parseInt(e(this).css("opacity"),10)===0)&&this.style.removeAttribute("filter"),e(this).data("jGrowl").created=new Date}))}).bind("jGrowl.beforeClose",function(){i.beforeClose.apply(t,[t,r,i,n.element])!=0&&e(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){e(this).data("jGrowl.pause",!0),e(this).animate(i.animateClose,i.speed,i.easing,function(){e(this).remove();var s=i.close.apply(t,[t,r,i,n.element]);e.isFunction(s)&&s.apply(t,[t,r,i,n.element])})}).trigger("jGrowl.beforeOpen"),e.fn.corner!=undefined&&e(t).corner(i.corners),e("div.jGrowl-notification:parent",n.element).size()>1&&e("div.jGrowl-closer",n.element).size()==0&&this.defaults.closer!=0&&e(this.defaults.closerTemplate).addClass("jGrowl-closer ui-state-highlight ui-corner-all").addClass(this.defaults.theme).appendTo(n.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){e(this).siblings().children("div.close").trigger("click.jGrowl"),e.isFunction(n.defaults.closer)&&n.defaults.closer.apply(e(this).parent()[0],[e(this).parent()[0]])})},update:function(){e(this.element).find("div.jGrowl-notification:parent").each(function(){e(this).data("jGrowl")!=undefined&&e(this).data("jGrowl").created!=undefined&&e(this).data("jGrowl").created.getTime()+e(this).data("jGrowl").life<(new Date).getTime()&&e(this).data("jGrowl").sticky!=1&&(e(this).data("jGrowl.pause")==undefined||e(this).data("jGrowl.pause")!=1)&&e(this).trigger("jGrowl.beforeClose")}),this.notifications.length>0&&(this.defaults.pool==0||e(this.element).find("div.jGrowl-notification:parent").size()'),this.interval=setInterval(function(){e(t).data("jGrowl.instance").update()},this.defaults.check),e.browser.msie&&parseInt(e.browser.version)<7&&!window.XMLHttpRequest&&e(this.element).addClass("ie6")},shutdown:function(){e(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove(),clearInterval(this.interval)},close:function(){e(this.element).find("div.jGrowl-notification").each(function(){e(this).trigger("jGrowl.beforeClose")})}}),e.jGrowl.defaults=e.fn.jGrowl.prototype.defaults})(jQuery); \ No newline at end of file diff --git a/public/assets/jquery.jgrowl-be197f5b36d6211f874e31a00978d488.js.gz b/public/assets/jquery.jgrowl-be197f5b36d6211f874e31a00978d488.js.gz new file mode 100644 index 00000000..9331d856 Binary files /dev/null and b/public/assets/jquery.jgrowl-be197f5b36d6211f874e31a00978d488.js.gz differ diff --git a/public/assets/jquery.jgrowl.js b/public/assets/jquery.jgrowl.js new file mode 100644 index 00000000..cfd1dca1 --- /dev/null +++ b/public/assets/jquery.jgrowl.js @@ -0,0 +1 @@ +(function(e){e.jGrowl=function(t,n){e("#jGrowl").size()==0&&e('
    ').addClass(e.jGrowl.defaults.position).appendTo("body"),e("#jGrowl").jGrowl(t,n)},e.fn.jGrowl=function(t,n){if(e.isFunction(this.each)){var r=arguments;return this.each(function(){var i=this;e(this).data("jGrowl.instance")==undefined&&(e(this).data("jGrowl.instance",e.extend(new e.fn.jGrowl,{notifications:[],element:null,interval:null})),e(this).data("jGrowl.instance").startup(this)),e.isFunction(e(this).data("jGrowl.instance")[t])?e(this).data("jGrowl.instance")[t].apply(e(this).data("jGrowl.instance"),e.makeArray(r).slice(1)):e(this).data("jGrowl.instance").create(t,n)})}},e.extend(e.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",glue:"after",theme:"default",corners:"10px",check:250,life:3e3,speed:"normal",easing:"swing",closer:!0,closeTemplate:"×",closerTemplate:"
    [ close all ]
    ",log:function(e,t,n){},beforeOpen:function(e,t,n){},open:function(e,t,n){},beforeClose:function(e,t,n){},close:function(e,t,n){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(t,n){var n=e.extend({},this.defaults,n);this.notifications.push({message:t,options:n}),n.log.apply(this.element,[this.element,t,n])},render:function(t){var n=this,r=t.message,i=t.options,t=e('
    '+'
    '+i.closeTemplate+"
    "+'
    '+i.header+"
    "+'
    '+r+"
    ").data("jGrowl",i).addClass(i.theme).children("div.close").bind("click.jGrowl",function(){e(this).parent().trigger("jGrowl.close")}).parent();e(t).bind("mouseover.jGrowl",function(){e("div.jGrowl-notification",n.element).data("jGrowl.pause",!0)}).bind("mouseout.jGrowl",function(){e("div.jGrowl-notification",n.element).data("jGrowl.pause",!1)}).bind("jGrowl.beforeOpen",function(){i.beforeOpen.apply(t,[t,r,i,n.element])!=0&&e(this).trigger("jGrowl.open")}).bind("jGrowl.open",function(){i.open.apply(t,[t,r,i,n.element])!=0&&(i.glue=="after"?e("div.jGrowl-notification:last",n.element).after(t):e("div.jGrowl-notification:first",n.element).before(t),e(this).animate(i.animateOpen,i.speed,i.easing,function(){e.browser.msie&&(parseInt(e(this).css("opacity"),10)===1||parseInt(e(this).css("opacity"),10)===0)&&this.style.removeAttribute("filter"),e(this).data("jGrowl").created=new Date}))}).bind("jGrowl.beforeClose",function(){i.beforeClose.apply(t,[t,r,i,n.element])!=0&&e(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){e(this).data("jGrowl.pause",!0),e(this).animate(i.animateClose,i.speed,i.easing,function(){e(this).remove();var s=i.close.apply(t,[t,r,i,n.element]);e.isFunction(s)&&s.apply(t,[t,r,i,n.element])})}).trigger("jGrowl.beforeOpen"),e.fn.corner!=undefined&&e(t).corner(i.corners),e("div.jGrowl-notification:parent",n.element).size()>1&&e("div.jGrowl-closer",n.element).size()==0&&this.defaults.closer!=0&&e(this.defaults.closerTemplate).addClass("jGrowl-closer ui-state-highlight ui-corner-all").addClass(this.defaults.theme).appendTo(n.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){e(this).siblings().children("div.close").trigger("click.jGrowl"),e.isFunction(n.defaults.closer)&&n.defaults.closer.apply(e(this).parent()[0],[e(this).parent()[0]])})},update:function(){e(this.element).find("div.jGrowl-notification:parent").each(function(){e(this).data("jGrowl")!=undefined&&e(this).data("jGrowl").created!=undefined&&e(this).data("jGrowl").created.getTime()+e(this).data("jGrowl").life<(new Date).getTime()&&e(this).data("jGrowl").sticky!=1&&(e(this).data("jGrowl.pause")==undefined||e(this).data("jGrowl.pause")!=1)&&e(this).trigger("jGrowl.beforeClose")}),this.notifications.length>0&&(this.defaults.pool==0||e(this.element).find("div.jGrowl-notification:parent").size()'),this.interval=setInterval(function(){e(t).data("jGrowl.instance").update()},this.defaults.check),e.browser.msie&&parseInt(e.browser.version)<7&&!window.XMLHttpRequest&&e(this.element).addClass("ie6")},shutdown:function(){e(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove(),clearInterval(this.interval)},close:function(){e(this.element).find("div.jGrowl-notification").each(function(){e(this).trigger("jGrowl.beforeClose")})}}),e.jGrowl.defaults=e.fn.jGrowl.prototype.defaults})(jQuery); \ No newline at end of file diff --git a/public/assets/jquery.jgrowl.js.gz b/public/assets/jquery.jgrowl.js.gz new file mode 100644 index 00000000..b0be931e Binary files /dev/null and b/public/assets/jquery.jgrowl.js.gz differ diff --git a/public/assets/jquery.timeago-7333e4dc5872ee408c6bb105e60eb7a5.js b/public/assets/jquery.timeago-7333e4dc5872ee408c6bb105e60eb7a5.js new file mode 100644 index 00000000..2227356a --- /dev/null +++ b/public/assets/jquery.timeago-7333e4dc5872ee408c6bb105e60eb7a5.js @@ -0,0 +1,16 @@ +/** + * Timeago is a jQuery plugin that makes it easy to support automatically + * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago"). + * + * @name timeago + * @version 0.11.4 + * @requires jQuery v1.2.3+ + * @author Ryan McGeary + * @license MIT License - http://www.opensource.org/licenses/mit-license.php + * + * For usage and examples, visit: + * http://timeago.yarp.com/ + * + * Copyright (c) 2008-2012, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org) + */ +(function(e){function n(){var t=r(this);return isNaN(t.datetime)||e(this).text(i(t.datetime)),this}function r(n){n=e(n);if(!n.data("timeago")){n.data("timeago",{datetime:t.datetime(n)});var r=e.trim(n.text());r.length>0&&(!t.isTime(n)||!n.attr("title"))&&n.attr("title",r)}return n.data("timeago")}function i(e){return t.inWords(s(e))}function s(e){return(new Date).getTime()-e.getTime()}e.timeago=function(t){return t instanceof Date?i(t):typeof t=="string"?i(e.timeago.parse(t)):typeof t=="number"?i(new Date(t)):i(e.timeago.datetime(t))};var t=e.timeago;e.extend(e.timeago,{settings:{refreshMillis:6e4,allowFuture:!1,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(t){function l(r,i){var s=e.isFunction(r)?r(i,t):r,o=n.numbers&&n.numbers[i]||i;return s.replace(/%d/i,o)}var n=this.settings.strings,r=n.prefixAgo,i=n.suffixAgo;this.settings.allowFuture&&t<0&&(r=n.prefixFromNow,i=n.suffixFromNow);var s=Math.abs(t)/1e3,o=s/60,u=o/60,a=u/24,f=a/365,c=s<45&&l(n.seconds,Math.round(s))||s<90&&l(n.minute,1)||o<45&&l(n.minutes,Math.round(o))||o<90&&l(n.hour,1)||u<24&&l(n.hours,Math.round(u))||u<42&&l(n.day,1)||a<30&&l(n.days,Math.round(a))||a<45&&l(n.month,1)||a<365&&l(n.months,Math.round(a/30))||f<1.5&&l(n.year,1)||l(n.years,Math.round(f)),h=n.wordSeparator===undefined?" ":n.wordSeparator;return e.trim([r,c,i].join(h))},parse:function(t){var n=e.trim(t);return n=n.replace(/\.\d+/,""),n=n.replace(/-/,"/").replace(/-/,"/"),n=n.replace(/T/," ").replace(/Z/," UTC"),n=n.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(n)},datetime:function(n){var r=t.isTime(n)?e(n).attr("datetime"):e(n).attr("title");return t.parse(r)},isTime:function(t){return e(t).get(0).tagName.toLowerCase()==="time"}}),e.fn.timeago=function(){var e=this;e.each(n);var r=t.settings;return r.refreshMillis>0&&setInterval(function(){e.each(n)},r.refreshMillis),e},document.createElement("abbr"),document.createElement("time")})(jQuery); \ No newline at end of file diff --git a/public/assets/jquery.timeago-7333e4dc5872ee408c6bb105e60eb7a5.js.gz b/public/assets/jquery.timeago-7333e4dc5872ee408c6bb105e60eb7a5.js.gz new file mode 100644 index 00000000..10a62d1d Binary files /dev/null and b/public/assets/jquery.timeago-7333e4dc5872ee408c6bb105e60eb7a5.js.gz differ diff --git a/public/assets/jquery.timeago.js b/public/assets/jquery.timeago.js new file mode 100644 index 00000000..2227356a --- /dev/null +++ b/public/assets/jquery.timeago.js @@ -0,0 +1,16 @@ +/** + * Timeago is a jQuery plugin that makes it easy to support automatically + * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago"). + * + * @name timeago + * @version 0.11.4 + * @requires jQuery v1.2.3+ + * @author Ryan McGeary + * @license MIT License - http://www.opensource.org/licenses/mit-license.php + * + * For usage and examples, visit: + * http://timeago.yarp.com/ + * + * Copyright (c) 2008-2012, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org) + */ +(function(e){function n(){var t=r(this);return isNaN(t.datetime)||e(this).text(i(t.datetime)),this}function r(n){n=e(n);if(!n.data("timeago")){n.data("timeago",{datetime:t.datetime(n)});var r=e.trim(n.text());r.length>0&&(!t.isTime(n)||!n.attr("title"))&&n.attr("title",r)}return n.data("timeago")}function i(e){return t.inWords(s(e))}function s(e){return(new Date).getTime()-e.getTime()}e.timeago=function(t){return t instanceof Date?i(t):typeof t=="string"?i(e.timeago.parse(t)):typeof t=="number"?i(new Date(t)):i(e.timeago.datetime(t))};var t=e.timeago;e.extend(e.timeago,{settings:{refreshMillis:6e4,allowFuture:!1,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(t){function l(r,i){var s=e.isFunction(r)?r(i,t):r,o=n.numbers&&n.numbers[i]||i;return s.replace(/%d/i,o)}var n=this.settings.strings,r=n.prefixAgo,i=n.suffixAgo;this.settings.allowFuture&&t<0&&(r=n.prefixFromNow,i=n.suffixFromNow);var s=Math.abs(t)/1e3,o=s/60,u=o/60,a=u/24,f=a/365,c=s<45&&l(n.seconds,Math.round(s))||s<90&&l(n.minute,1)||o<45&&l(n.minutes,Math.round(o))||o<90&&l(n.hour,1)||u<24&&l(n.hours,Math.round(u))||u<42&&l(n.day,1)||a<30&&l(n.days,Math.round(a))||a<45&&l(n.month,1)||a<365&&l(n.months,Math.round(a/30))||f<1.5&&l(n.year,1)||l(n.years,Math.round(f)),h=n.wordSeparator===undefined?" ":n.wordSeparator;return e.trim([r,c,i].join(h))},parse:function(t){var n=e.trim(t);return n=n.replace(/\.\d+/,""),n=n.replace(/-/,"/").replace(/-/,"/"),n=n.replace(/T/," ").replace(/Z/," UTC"),n=n.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(n)},datetime:function(n){var r=t.isTime(n)?e(n).attr("datetime"):e(n).attr("title");return t.parse(r)},isTime:function(t){return e(t).get(0).tagName.toLowerCase()==="time"}}),e.fn.timeago=function(){var e=this;e.each(n);var r=t.settings;return r.refreshMillis>0&&setInterval(function(){e.each(n)},r.refreshMillis),e},document.createElement("abbr"),document.createElement("time")})(jQuery); \ No newline at end of file diff --git a/public/assets/jquery.timeago.js.gz b/public/assets/jquery.timeago.js.gz new file mode 100644 index 00000000..7e784266 Binary files /dev/null and b/public/assets/jquery.timeago.js.gz differ diff --git a/public/assets/jquery.ui-3be37bbe30d182f6ee6d3e29dd73e1cb.js b/public/assets/jquery.ui-3be37bbe30d182f6ee6d3e29dd73e1cb.js new file mode 100644 index 00000000..98b37415 --- /dev/null +++ b/public/assets/jquery.ui-3be37bbe30d182f6ee6d3e29dd73e1cb.js @@ -0,0 +1,11 @@ +/*! + * jQuery UI 1.8.14 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI + */ +(function(e,t){function n(t,n){var i=t.nodeName.toLowerCase();return"area"===i?(n=t.parentNode,i=n.name,!t.href||!i||n.nodeName.toLowerCase()!=="map"?!1:(t=e("img[usemap=#"+i+"]")[0],!!t&&r(t))):(/input|select|textarea|button|object/.test(i)?!t.disabled:"a"==i?t.href||n:n)&&r(t)}function r(t){return!e(t).parents().andSelf().filter(function(){return e.curCSS(this,"visibility")==="hidden"||e.expr.filters.hidden(this)}).length}e.ui=e.ui||{},e.ui.version||(e.extend(e.ui,{version:"1.8.14",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return t=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length){n=e(this[0]);for(var r;n.length&&n[0]!==document;){r=n.css("position");if(r==="absolute"||r==="relative"||r==="fixed"){r=parseInt(n.css("zIndex"),10);if(!isNaN(r)&&r!==0)return r}n=n.parent()}}return 0},disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.each(["Width","Height"],function(n,r){function i(t,n,r,i){return e.each(s,function(){n-=parseFloat(e.curCSS(t,"padding"+this,!0))||0,r&&(n-=parseFloat(e.curCSS(t,"border"+this+"Width",!0))||0),i&&(n-=parseFloat(e.curCSS(t,"margin"+this,!0))||0)}),n}var s=r==="Width"?["Left","Right"]:["Top","Bottom"],o=r.toLowerCase(),u={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?u["inner"+r].call(this):this.each(function(){e(this).css(o,i(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?u["outer"+r].call(this,t):this.each(function(){e(this).css(o,i(this,t,!0,n)+"px")})}}),e.extend(e.expr[":"],{data:function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return n(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var r=e.attr(t,"tabindex"),i=isNaN(r);return(i||r>=0)&&n(t,!i)}}),e(function(){var t=document.body,n=t.appendChild(n=document.createElement("div"));e.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=n.offsetHeight===100,e.support.selectstart="onselectstart"in n,t.removeChild(n).style.display="none"}),e.extend(e.ui,{plugin:{add:function(t,n,r){t=e.ui[t].prototype;for(var i in r)t.plugins[i]=t.plugins[i]||[],t.plugins[i].push([n,r[i]])},call:function(e,t,n){if((t=e.plugins[t])&&e.element[0].parentNode)for(var r=0;r0?!0:(t[n]=1,r=t[n]>0,t[n]=0,r)},isOverAxis:function(e,t,n){return e>t&&e=9||!!t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&((this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1)?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target==this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(e){e.ui=e.ui||{};var t=/left|center|right/,n=/top|center|bottom/,r=e.fn.position,i=e.fn.offset;e.fn.position=function(i){if(!i||!i.of)return r.apply(this,arguments);i=e.extend({},i);var s=e(i.of),u=s[0],a=(i.collision||"flip").split(" "),f=i.offset?i.offset.split(" "):[0,0],l,h,p;return u.nodeType===9?(l=s.width(),h=s.height(),p={top:0,left:0}):u.setTimeout?(l=s.width(),h=s.height(),p={top:s.scrollTop(),left:s.scrollLeft()}):u.preventDefault?(i.at="left top",l=h=0,p={top:i.of.pageY,left:i.of.pageX}):(l=s.outerWidth(),h=s.outerHeight(),p=s.offset()),e.each(["my","at"],function(){var e=(i[this]||"").split(" ");e.length===1&&(e=t.test(e[0])?e.concat(["center"]):n.test(e[0])?["center"].concat(e):["center","center"]),e[0]=t.test(e[0])?e[0]:"center",e[1]=n.test(e[1])?e[1]:"center",i[this]=e}),a.length===1&&(a[1]=a[0]),f[0]=parseInt(f[0],10)||0,f.length===1&&(f[1]=f[0]),f[1]=parseInt(f[1],10)||0,i.at[0]==="right"?p.left+=l:i.at[0]==="center"&&(p.left+=l/2),i.at[1]==="bottom"?p.top+=h:i.at[1]==="center"&&(p.top+=h/2),p.left+=f[0],p.top+=f[1],this.each(function(){var t=e(this),n=t.outerWidth(),r=t.outerHeight(),s=parseInt(e.curCSS(this,"marginLeft",!0))||0,o=parseInt(e.curCSS(this,"marginTop",!0))||0,u=n+s+(parseInt(e.curCSS(this,"marginRight",!0))||0),d=r+o+(parseInt(e.curCSS(this,"marginBottom",!0))||0),v=e.extend({},p),m;i.my[0]==="right"?v.left-=n:i.my[0]==="center"&&(v.left-=n/2),i.my[1]==="bottom"?v.top-=r:i.my[1]==="center"&&(v.top-=r/2),v.left=Math.round(v.left),v.top=Math.round(v.top),m={left:v.left-s,top:v.top-o},e.each(["left","top"],function(t,s){e.ui.position[a[t]]&&e.ui.position[a[t]][s](v,{targetWidth:l,targetHeight:h,elemWidth:n,elemHeight:r,collisionPosition:m,collisionWidth:u,collisionHeight:d,offset:f,my:i.my,at:i.at})}),e.fn.bgiframe&&t.bgiframe(),t.offset(e.extend(v,{using:i.using}))})},e.ui.position={fit:{left:function(t,n){var r=e(window);r=n.collisionPosition.left+n.collisionWidth-r.width()-r.scrollLeft(),t.left=r>0?t.left-r:Math.max(t.left-n.collisionPosition.left,t.left)},top:function(t,n){var r=e(window);r=n.collisionPosition.top+n.collisionHeight-r.height()-r.scrollTop(),t.top=r>0?t.top-r:Math.max(t.top-n.collisionPosition.top,t.top)}},flip:{left:function(t,n){if(n.at[0]!=="center"){var r=e(window);r=n.collisionPosition.left+n.collisionWidth-r.width()-r.scrollLeft();var i=n.my[0]==="left"?-n.elemWidth:n.my[0]==="right"?n.elemWidth:0,s=n.at[0]==="left"?n.targetWidth:-n.targetWidth,o=-2*n.offset[0];t.left+=n.collisionPosition.left<0?i+s+o:r>0?i+s+o:0}},top:function(t,n){if(n.at[1]!=="center"){var r=e(window);r=n.collisionPosition.top+n.collisionHeight-r.height()-r.scrollTop();var i=n.my[1]==="top"?-n.elemHeight:n.my[1]==="bottom"?n.elemHeight:0,s=n.at[1]==="top"?n.targetHeight:-n.targetHeight,o=-2*n.offset[1];t.top+=n.collisionPosition.top<0?i+s+o:r>0?i+s+o:0}}}},e.offset.setOffset||(e.offset.setOffset=function(t,n){/static/.test(e.curCSS(t,"position"))&&(t.style.position="relative");var r=e(t),i=r.offset(),s=parseInt(e.curCSS(t,"top",!0),10)||0,o=parseInt(e.curCSS(t,"left",!0),10)||0;i={top:n.top-i.top+s,left:n.left-i.left+o},"using"in n?n.using.call(t,i):r.css(i)},e.fn.offset=function(t){var n=this[0];return!n||!n.ownerDocument?null:t?this.each(function(){e.offset.setOffset(this,t)}):i.call(this)})}(jQuery),function(e){e.widget("ui.draggable",e.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){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(),this},_mouseCapture:function(t){var n=this.options;return this.helper||n.disabled||e(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(t),this.handle?(e(n.iframeFix===!0?"iframe":n.iframeFix).each(function(){e('
    ').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,n){this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute");if(!n){n=this._uiHash();if(this._trigger("drag",t,n)===!1)return this._mouseUp({}),!1;this.position=n.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";return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=!1;e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1);if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!n||this.options.revert=="valid"&&n||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){var r=this;e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()})}else this._trigger("stop",t)!==!1&&this._clear();return!1},_mouseUp:function(t){return this.options.iframeFix===!0&&e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var n=!this.options.handle||!e(this.options.handle,this.element).length?!0:!1;return e(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(n=!0)}),n},_createHelper:function(t){var n=this.options;return t=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t])):n.helper=="clone"?this.element.clone().removeAttr("id"):this.element,t.parents("body").length||t.appendTo(n.appendTo=="parent"?this.element[0].parentNode:n.appendTo),t[0]!=this.element[0]&&!/(fixed|absolute)/.test(t.css("position"))&&t.css("position","absolute"),t},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&e.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&e.browser.msie)t={top:0,left:0};return{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}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,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;t.containment=="parent"&&(t.containment=this.helper[0].parentNode);if(t.containment=="document"||t.containment=="window")this.containment=[t.containment=="document"?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t.containment=="document"?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(t.containment=="document"?0:e(window).scrollLeft())+e(t.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(t.containment=="document"?0:e(window).scrollTop())+(e(t.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(t.containment)&&t.containment.constructor!=Array){t=e(t.containment);var n=t[0];if(n){t.offset();var r=e(n).css("overflow")!="hidden";this.containment=[(parseInt(e(n).css("borderLeftWidth"),10)||0)+(parseInt(e(n).css("paddingLeft"),10)||0),(parseInt(e(n).css("borderTopWidth"),10)||0)+(parseInt(e(n).css("paddingTop"),10)||0),(r?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(e(n).css("borderLeftWidth"),10)||0)-(parseInt(e(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(r?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(e(n).css("borderTopWidth"),10)||0)-(parseInt(e(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=t}}else t.containment.constructor==Array&&(this.containment=t.containment)},_convertPositionTo:function(t,n){n||(n=this.position),t=t=="absolute"?1:-1;var r=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*t+this.offset.parent.top*t-(e.browser.safari&&e.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():i?0:r.scrollTop())*t),left:n.left+this.offset.relative.left*t+this.offset.parent.left*t-(e.browser.safari&&e.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:r.scrollLeft())*t)}},_generatePosition:function(t){var n=this.options,r=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(r[0].tagName),s=t.pageX,o=t.pageY;if(this.originalPosition){var u;this.containment&&(this.relative_container?(u=this.relative_container.offset(),u=[this.containment[0]+u.left,this.containment[1]+u.top,this.containment[2]+u.left,this.containment[3]+u.top]):u=this.containment,t.pageX-this.offset.click.leftu[2]&&(s=u[2]+this.offset.click.left),t.pageY-this.offset.click.top>u[3]&&(o=u[3]+this.offset.click.top)),n.grid&&(o=n.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY,o=u?o-this.offset.click.topu[3]?o-this.offset.click.topu[2]?s-this.offset.click.left=0;l--){var c=r.snapElements[l].left,h=c+r.snapElements[l].width,p=r.snapElements[l].top,v=p+r.snapElements[l].height;if(c-s=l&&o<=c||u>=l&&u<=c||oc)&&(i>=a&&i<=f||s>=a&&s<=f||if);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,n){var r=e.ui.ddmanager.droppables[t.options.scope]||[],i=n?n.type:null,s=(t.currentItem||t.element).find(":data(droppable)").andSelf(),o=0;e:for(;o").addClass("ui-autocomplete").appendTo(e(this.options.appendTo||"body",n)[0]).mousedown(function(n){var r=t.menu.element[0];e(n.target).closest(".ui-menu-item").length||setTimeout(function(){e(document).one("mousedown",function(n){n.target!==t.element[0]&&n.target!==r&&!e.ui.contains(r,n.target)&&t.close()})},1),setTimeout(function(){clearTimeout(t.closing)},13)}).menu({focus:function(e,n){n=n.item.data("item.autocomplete"),!1!==t._trigger("focus",e,{item:n})&&/^key/.test(e.originalEvent.type)&&t.element.val(n.value)},selected:function(e,r){var i=r.item.data("item.autocomplete"),s=t.previous;t.element[0]!==n.activeElement&&(t.element.focus(),t.previous=s,setTimeout(function(){t.previous=s,t.selectedItem=i},1)),!1!==t._trigger("select",e,{item:i})&&t.element.val(i.value),t.term=t.element.val(),t.close(e),t.selectedItem=i},blur:function(){t.menu.element.is(":visible")&&t.element.val()!==t.term&&t.element.val(t.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),e.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),e.Widget.prototype.destroy.call(this)},_setOption:function(t,n){e.Widget.prototype._setOption.apply(this,arguments),t==="source"&&this._initSource(),t==="appendTo"&&this.menu.element.appendTo(e(n||"body",this.element[0].ownerDocument)[0]),t==="disabled"&&n&&this.xhr&&this.xhr.abort()},_initSource:function(){var n=this,r,i;e.isArray(this.options.source)?(r=this.options.source,this.source=function(t,n){n(e.ui.autocomplete.filter(r,t.term))}):typeof this.options.source=="string"?(i=this.options.source,this.source=function(r,s){n.xhr&&n.xhr.abort(),n.xhr=e.ajax({url:i,data:r,dataType:"json",autocompleteRequest:++t,success:function(e){this.autocompleteRequest===t&&s(e)},error:function(){this.autocompleteRequest===t&&s([])}})}):this.source=this.options.source},search:function(e,t){e=e!=null?e:this.element.val(),this.term=this.element.val();if(e.length").data("item.autocomplete",n).append(e("").text(n.label)).appendTo(t)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)?(this.element.val(this.term),this.menu.deactivate()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(t,n){var r=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return r.test(e.label||e.value||e)})}})}(jQuery),function(e){e.widget("ui.menu",{_create:function(){var t=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(n){e(n.target).closest(".ui-menu-item a").length&&(n.preventDefault(),t.select(n))}),this.refresh()},refresh:function(){var t=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(n){t.activate(n,e(this).parent())}).mouseleave(function(){t.deactivate()})},activate:function(e,t){this.deactivate();if(this.hasScroll()){var n=t.offset().top-this.element.offset().top,r=this.element.scrollTop(),i=this.element.height();n<0?this.element.scrollTop(r+n):n>=i&&this.element.scrollTop(r+n-i+t.height())}this.active=t.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",e,{item:t})},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,t,n){this.active?(e=this.active[e+"All"](".ui-menu-item").eq(0),e.length?this.activate(n,e):this.activate(n,this.element.children(t))):this.activate(n,this.element.children(t))},nextPage:function(t){if(this.hasScroll())if(!this.active||this.last())this.activate(t,this.element.children(".ui-menu-item:first"));else{var n=this.active.offset().top,r=this.element.height(),i=this.element.children(".ui-menu-item").filter(function(){var t=e(this).offset().top-n-r+e(this).height();return t<10&&t>-10});i.length||(i=this.element.children(".ui-menu-item:last")),this.activate(t,i)}else this.activate(t,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(t){if(this.hasScroll())if(!this.active||this.first())this.activate(t,this.element.children(".ui-menu-item:last"));else{var n=this.active.offset().top,r=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var t=e(this).offset().top-n+r-e(this).height();return t<10&&t>-10}),result.length||(result=this.element.children(".ui-menu-item:first")),this.activate(t,result)}else this.activate(t,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()=0)&&n(t,!i)}}),e(function(){var t=document.body,n=t.appendChild(n=document.createElement("div"));e.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=n.offsetHeight===100,e.support.selectstart="onselectstart"in n,t.removeChild(n).style.display="none"}),e.extend(e.ui,{plugin:{add:function(t,n,r){t=e.ui[t].prototype;for(var i in r)t.plugins[i]=t.plugins[i]||[],t.plugins[i].push([n,r[i]])},call:function(e,t,n){if((t=e.plugins[t])&&e.element[0].parentNode)for(var r=0;r0?!0:(t[n]=1,r=t[n]>0,t[n]=0,r)},isOverAxis:function(e,t,n){return e>t&&e=9||!!t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&((this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1)?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target==this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(e){e.ui=e.ui||{};var t=/left|center|right/,n=/top|center|bottom/,r=e.fn.position,i=e.fn.offset;e.fn.position=function(i){if(!i||!i.of)return r.apply(this,arguments);i=e.extend({},i);var s=e(i.of),u=s[0],a=(i.collision||"flip").split(" "),f=i.offset?i.offset.split(" "):[0,0],l,h,p;return u.nodeType===9?(l=s.width(),h=s.height(),p={top:0,left:0}):u.setTimeout?(l=s.width(),h=s.height(),p={top:s.scrollTop(),left:s.scrollLeft()}):u.preventDefault?(i.at="left top",l=h=0,p={top:i.of.pageY,left:i.of.pageX}):(l=s.outerWidth(),h=s.outerHeight(),p=s.offset()),e.each(["my","at"],function(){var e=(i[this]||"").split(" ");e.length===1&&(e=t.test(e[0])?e.concat(["center"]):n.test(e[0])?["center"].concat(e):["center","center"]),e[0]=t.test(e[0])?e[0]:"center",e[1]=n.test(e[1])?e[1]:"center",i[this]=e}),a.length===1&&(a[1]=a[0]),f[0]=parseInt(f[0],10)||0,f.length===1&&(f[1]=f[0]),f[1]=parseInt(f[1],10)||0,i.at[0]==="right"?p.left+=l:i.at[0]==="center"&&(p.left+=l/2),i.at[1]==="bottom"?p.top+=h:i.at[1]==="center"&&(p.top+=h/2),p.left+=f[0],p.top+=f[1],this.each(function(){var t=e(this),n=t.outerWidth(),r=t.outerHeight(),s=parseInt(e.curCSS(this,"marginLeft",!0))||0,o=parseInt(e.curCSS(this,"marginTop",!0))||0,u=n+s+(parseInt(e.curCSS(this,"marginRight",!0))||0),d=r+o+(parseInt(e.curCSS(this,"marginBottom",!0))||0),v=e.extend({},p),m;i.my[0]==="right"?v.left-=n:i.my[0]==="center"&&(v.left-=n/2),i.my[1]==="bottom"?v.top-=r:i.my[1]==="center"&&(v.top-=r/2),v.left=Math.round(v.left),v.top=Math.round(v.top),m={left:v.left-s,top:v.top-o},e.each(["left","top"],function(t,s){e.ui.position[a[t]]&&e.ui.position[a[t]][s](v,{targetWidth:l,targetHeight:h,elemWidth:n,elemHeight:r,collisionPosition:m,collisionWidth:u,collisionHeight:d,offset:f,my:i.my,at:i.at})}),e.fn.bgiframe&&t.bgiframe(),t.offset(e.extend(v,{using:i.using}))})},e.ui.position={fit:{left:function(t,n){var r=e(window);r=n.collisionPosition.left+n.collisionWidth-r.width()-r.scrollLeft(),t.left=r>0?t.left-r:Math.max(t.left-n.collisionPosition.left,t.left)},top:function(t,n){var r=e(window);r=n.collisionPosition.top+n.collisionHeight-r.height()-r.scrollTop(),t.top=r>0?t.top-r:Math.max(t.top-n.collisionPosition.top,t.top)}},flip:{left:function(t,n){if(n.at[0]!=="center"){var r=e(window);r=n.collisionPosition.left+n.collisionWidth-r.width()-r.scrollLeft();var i=n.my[0]==="left"?-n.elemWidth:n.my[0]==="right"?n.elemWidth:0,s=n.at[0]==="left"?n.targetWidth:-n.targetWidth,o=-2*n.offset[0];t.left+=n.collisionPosition.left<0?i+s+o:r>0?i+s+o:0}},top:function(t,n){if(n.at[1]!=="center"){var r=e(window);r=n.collisionPosition.top+n.collisionHeight-r.height()-r.scrollTop();var i=n.my[1]==="top"?-n.elemHeight:n.my[1]==="bottom"?n.elemHeight:0,s=n.at[1]==="top"?n.targetHeight:-n.targetHeight,o=-2*n.offset[1];t.top+=n.collisionPosition.top<0?i+s+o:r>0?i+s+o:0}}}},e.offset.setOffset||(e.offset.setOffset=function(t,n){/static/.test(e.curCSS(t,"position"))&&(t.style.position="relative");var r=e(t),i=r.offset(),s=parseInt(e.curCSS(t,"top",!0),10)||0,o=parseInt(e.curCSS(t,"left",!0),10)||0;i={top:n.top-i.top+s,left:n.left-i.left+o},"using"in n?n.using.call(t,i):r.css(i)},e.fn.offset=function(t){var n=this[0];return!n||!n.ownerDocument?null:t?this.each(function(){e.offset.setOffset(this,t)}):i.call(this)})}(jQuery),function(e){e.widget("ui.draggable",e.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){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(),this},_mouseCapture:function(t){var n=this.options;return this.helper||n.disabled||e(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(t),this.handle?(e(n.iframeFix===!0?"iframe":n.iframeFix).each(function(){e('
    ').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,n){this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute");if(!n){n=this._uiHash();if(this._trigger("drag",t,n)===!1)return this._mouseUp({}),!1;this.position=n.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";return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=!1;e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1);if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!n||this.options.revert=="valid"&&n||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){var r=this;e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()})}else this._trigger("stop",t)!==!1&&this._clear();return!1},_mouseUp:function(t){return this.options.iframeFix===!0&&e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var n=!this.options.handle||!e(this.options.handle,this.element).length?!0:!1;return e(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(n=!0)}),n},_createHelper:function(t){var n=this.options;return t=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t])):n.helper=="clone"?this.element.clone().removeAttr("id"):this.element,t.parents("body").length||t.appendTo(n.appendTo=="parent"?this.element[0].parentNode:n.appendTo),t[0]!=this.element[0]&&!/(fixed|absolute)/.test(t.css("position"))&&t.css("position","absolute"),t},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&e.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&e.browser.msie)t={top:0,left:0};return{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}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,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;t.containment=="parent"&&(t.containment=this.helper[0].parentNode);if(t.containment=="document"||t.containment=="window")this.containment=[t.containment=="document"?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t.containment=="document"?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(t.containment=="document"?0:e(window).scrollLeft())+e(t.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(t.containment=="document"?0:e(window).scrollTop())+(e(t.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(t.containment)&&t.containment.constructor!=Array){t=e(t.containment);var n=t[0];if(n){t.offset();var r=e(n).css("overflow")!="hidden";this.containment=[(parseInt(e(n).css("borderLeftWidth"),10)||0)+(parseInt(e(n).css("paddingLeft"),10)||0),(parseInt(e(n).css("borderTopWidth"),10)||0)+(parseInt(e(n).css("paddingTop"),10)||0),(r?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(e(n).css("borderLeftWidth"),10)||0)-(parseInt(e(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(r?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(e(n).css("borderTopWidth"),10)||0)-(parseInt(e(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=t}}else t.containment.constructor==Array&&(this.containment=t.containment)},_convertPositionTo:function(t,n){n||(n=this.position),t=t=="absolute"?1:-1;var r=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*t+this.offset.parent.top*t-(e.browser.safari&&e.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():i?0:r.scrollTop())*t),left:n.left+this.offset.relative.left*t+this.offset.parent.left*t-(e.browser.safari&&e.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:r.scrollLeft())*t)}},_generatePosition:function(t){var n=this.options,r=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(r[0].tagName),s=t.pageX,o=t.pageY;if(this.originalPosition){var u;this.containment&&(this.relative_container?(u=this.relative_container.offset(),u=[this.containment[0]+u.left,this.containment[1]+u.top,this.containment[2]+u.left,this.containment[3]+u.top]):u=this.containment,t.pageX-this.offset.click.leftu[2]&&(s=u[2]+this.offset.click.left),t.pageY-this.offset.click.top>u[3]&&(o=u[3]+this.offset.click.top)),n.grid&&(o=n.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY,o=u?o-this.offset.click.topu[3]?o-this.offset.click.topu[2]?s-this.offset.click.left=0;l--){var c=r.snapElements[l].left,h=c+r.snapElements[l].width,p=r.snapElements[l].top,v=p+r.snapElements[l].height;if(c-s=l&&o<=c||u>=l&&u<=c||oc)&&(i>=a&&i<=f||s>=a&&s<=f||if);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,n){var r=e.ui.ddmanager.droppables[t.options.scope]||[],i=n?n.type:null,s=(t.currentItem||t.element).find(":data(droppable)").andSelf(),o=0;e:for(;o").addClass("ui-autocomplete").appendTo(e(this.options.appendTo||"body",n)[0]).mousedown(function(n){var r=t.menu.element[0];e(n.target).closest(".ui-menu-item").length||setTimeout(function(){e(document).one("mousedown",function(n){n.target!==t.element[0]&&n.target!==r&&!e.ui.contains(r,n.target)&&t.close()})},1),setTimeout(function(){clearTimeout(t.closing)},13)}).menu({focus:function(e,n){n=n.item.data("item.autocomplete"),!1!==t._trigger("focus",e,{item:n})&&/^key/.test(e.originalEvent.type)&&t.element.val(n.value)},selected:function(e,r){var i=r.item.data("item.autocomplete"),s=t.previous;t.element[0]!==n.activeElement&&(t.element.focus(),t.previous=s,setTimeout(function(){t.previous=s,t.selectedItem=i},1)),!1!==t._trigger("select",e,{item:i})&&t.element.val(i.value),t.term=t.element.val(),t.close(e),t.selectedItem=i},blur:function(){t.menu.element.is(":visible")&&t.element.val()!==t.term&&t.element.val(t.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),e.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),e.Widget.prototype.destroy.call(this)},_setOption:function(t,n){e.Widget.prototype._setOption.apply(this,arguments),t==="source"&&this._initSource(),t==="appendTo"&&this.menu.element.appendTo(e(n||"body",this.element[0].ownerDocument)[0]),t==="disabled"&&n&&this.xhr&&this.xhr.abort()},_initSource:function(){var n=this,r,i;e.isArray(this.options.source)?(r=this.options.source,this.source=function(t,n){n(e.ui.autocomplete.filter(r,t.term))}):typeof this.options.source=="string"?(i=this.options.source,this.source=function(r,s){n.xhr&&n.xhr.abort(),n.xhr=e.ajax({url:i,data:r,dataType:"json",autocompleteRequest:++t,success:function(e){this.autocompleteRequest===t&&s(e)},error:function(){this.autocompleteRequest===t&&s([])}})}):this.source=this.options.source},search:function(e,t){e=e!=null?e:this.element.val(),this.term=this.element.val();if(e.length").data("item.autocomplete",n).append(e("").text(n.label)).appendTo(t)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)?(this.element.val(this.term),this.menu.deactivate()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(t,n){var r=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return r.test(e.label||e.value||e)})}})}(jQuery),function(e){e.widget("ui.menu",{_create:function(){var t=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(n){e(n.target).closest(".ui-menu-item a").length&&(n.preventDefault(),t.select(n))}),this.refresh()},refresh:function(){var t=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(n){t.activate(n,e(this).parent())}).mouseleave(function(){t.deactivate()})},activate:function(e,t){this.deactivate();if(this.hasScroll()){var n=t.offset().top-this.element.offset().top,r=this.element.scrollTop(),i=this.element.height();n<0?this.element.scrollTop(r+n):n>=i&&this.element.scrollTop(r+n-i+t.height())}this.active=t.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",e,{item:t})},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,t,n){this.active?(e=this.active[e+"All"](".ui-menu-item").eq(0),e.length?this.activate(n,e):this.activate(n,this.element.children(t))):this.activate(n,this.element.children(t))},nextPage:function(t){if(this.hasScroll())if(!this.active||this.last())this.activate(t,this.element.children(".ui-menu-item:first"));else{var n=this.active.offset().top,r=this.element.height(),i=this.element.children(".ui-menu-item").filter(function(){var t=e(this).offset().top-n-r+e(this).height();return t<10&&t>-10});i.length||(i=this.element.children(".ui-menu-item:last")),this.activate(t,i)}else this.activate(t,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(t){if(this.hasScroll())if(!this.active||this.first())this.activate(t,this.element.children(".ui-menu-item:last"));else{var n=this.active.offset().top,r=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var t=e(this).offset().top-n+r-e(this).height();return t<10&&t>-10}),result.length||(result=this.element.children(".ui-menu-item:first")),this.activate(t,result)}else this.activate(t,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()500;e!=t&&(t=e,$(document.body).toggleClass("fullscreen",t),t||(s.removeAttr("style").css("visibility","visible"),r.removeAttr("style"),u.removeAttr("style")))}if(t){s=$("#preview-swf");var n={height:i.offset().top-r.offset().top,width:r.innerWidth()-o.outerWidth()-12},f={},h={},p={old:{height:s.height(),width:s.width()},next:{}},d;n.height>n.width?(f.larger="height",f.smaller="width",h.active="marginTop",h.inactive="marginLeft"):(f.larger="width",f.smaller="height",h.active="marginLeft",h.inactive="marginTop"),p.next[f.smaller]=n[f.smaller],p.next[f.larger]=n[f.smaller],p.next[h.active]=(n[f.larger]-p.next[f.larger])/2,p.next[h.inactive]=0,s.css(p.next),r.height(n.height);var v=n.height-a.outerHeight()-1;u.height(v)}}function p(){setTimeout(h,0)}var t=$(document.body).hasClass("fullscreen"),n=$(window),r=$("#preview"),i=$("#preview-search-form"),s=$("#preview-swf"),o=$("#preview-sidebar"),u=$("#preview-sidebar-content"),a=$("#preview-sidebar-navbar"),f=$("#footer"),l=$(window),c=!1;$("#preview").data("fit",h),n.resize(h).load(h),e.item_zone_sets.bind("update",p),e.pet_attributes.bind("update",p),h()},View.Hash=function(e){function a(){var e=(document.location.hash||document.location.search).substr(1);e!=r&&(f(e),r=e)}function f(n){var r={},u=n.split("&");i=!0;for(var a=0;a").parent().html();return r}function h(){e.image_subscriptions.unsubscribe(c),c=null}function d(t){c=e.image_subscriptions.subscribe(t)}function v(e){e&&p.hasClass("sharing")&&d(e)}function g(){b("small_image"),b("medium_image"),b("large_image"),y("permalink")}function y(e){w(e,f.text(l[e]))}function b(e){w(e,f.image(l[e],l.permalink))}function w(e,t){r[e].val(t)}var n=$("#preview-sharing"),r={permalink:$("#preview-sharing-permalink-url"),large_image:$("#preview-sharing-large-image-url"),medium_image:$("#preview-sharing-medium-image-url"),small_image:$("#preview-sharing-small-image-url")},i=$("#preview-sharing-url-formats li"),s=$("#preview-sharing-thumbnail"),o={html:{image:$("#sharing-html-image-template"),text:$("#sharing-html-text-template")},bbcode:{image:$("#sharing-bbcode-image-template"),text:$("#sharing-bbcode-text-template")}},a={plain:{image:function(e){return e},text:function(e){return e}},html:{image:function(e,t){return u(o.html.image,{image_url:e,permalink:t})},text:function(e){return u(o.html.text,{permalink:e})}},bbcode:{image:function(e,t){return u(o.bbcode.image,{image_url:e,permalink:t})},text:function(e){return u(o.bbcode.text,{permalink:e})}}},f=a.plain,l={permalink:null,small_image:null,medium_image:null,large_image:null};i.click(function(){var e=$(this);i.removeClass("active"),e.addClass("active"),log("Setting sharing URL format:",e.attr("data-format")),f=a[e.attr("data-format")],g()});var c=null,m={id:null};this.setOutfit=function(t){if(!t.id)return P.startLoading(),e.outfits.share(t),!1;t.id!=m.id&&(m=t.clone(),l.permalink=L(t),l.small_image=k(t.image_versions.small),l.medium_image=k(t.image_versions.medium),l.large_image=k(t.image_versions.large),g(),n.removeClass("thumbnail-available"),v(m)),n.addClass("urls-loaded")},this.startLoading=function(){n.removeClass("urls-loaded")},this.onHide=function(){h()},this.onShow=function(){v(e.outfits.getOutfit())},e.image_subscriptions.bind("imageEnqueued",function(e){e.id==m.id&&(log("Sharing thumbnail enqueued for outfit",e),n.removeClass("thumbnail-loaded"))}),e.image_subscriptions.bind("imageReady",function(e){if(e.id==m.id){log("Sharing thumbnail ready for outfit",e);var t=e.image_versions.small+"?"+e.image_layers_hash;s.attr("src",t),n.addClass("thumbnail-loaded"),n.addClass("thumbnail-available"),h(e)}}),e.outfits.bind("updateSuccess",function(e){p.hasClass("sharing")&&d(e)}),e.outfits.bind("setOutfit",function(e){log("Sharing sees the setOutfit signal, and will set",e),P.setOutfit(e)})};u.click(function(){e.outfits.update()}),n.submit(function(t){t.preventDefault(),n.startLoading(),e.outfits.create({starred:n.hasClass("starred"),name:r.val()})}),n.find("div.outfit-star").click(function(){n.toggleClass("starred")}),e.outfits.bind("saveSuccess",function(e){l.notify()}),e.outfits.bind("createSuccess",function(e){b(),S()}),e.outfits.bind("shareSuccess",B),e.outfits.bind("shareSkipped",B),e.outfits.bind("updateClosetItems",j),e.outfits.bind("updateWornItems",j),e.outfits.bind("updatePetState",j),e.outfits.bind("saveFailure",F),e.outfits.bind("saveFailure",F),e.outfits.bind("shareFailure",function(e,t){f.stopLoading(),F(e,t)}),e.outfits.bind("outfitNotFound",function(){o.notify()})},View.PetStateForm=function(e){function s(e){e&&i.val(e.id)}var t="pet_state_id",n="#pet-state-form",r=$(n),i=r.children("select");i.change(function(t){var n=parseInt(i.children(":selected").val(),10);e.outfits.setPetStateById(n)}),e.outfits.bind("petTypeLoaded",function(t){var n=t.pet_states,o,u,a;i.children().remove();if(n.length==1)r.addClass("hidden");else{r.removeClass("hidden");for(var o=0;o",{value:n[o].id,text:n[o].gender_mood_description}),a.appendTo(i);s(e.outfits.getPetState())}}),e.outfits.bind("updatePetState",s)},View.PetTypeForm=function(e){function i(e){r&&e&&$.each(n,function(t){n[t].val(e[t+"_id"])})}var t=$("#pet-type-form"),n={},r=!1;t.submit(function(t){t.preventDefault(),e.outfits.setPetTypeByColorAndSpecies(+n.color.val(),+n.species.val())}).children("select").each(function(){n[this.name]=$(this)}),this.initialize=function(){e.pet_attributes.load()},e.pet_attributes.bind("update",function(t){$.each(t,function(e){var t=n[e];$.each(this,function(){var e=$("