diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..59c77f7 --- /dev/null +++ b/.classpath @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..b2c7999 --- /dev/null +++ b/.project @@ -0,0 +1,37 @@ + + + Zallery + + + ZUtil + + + + org.eclipse.wst.jsdt.core.javascriptValidator + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.jdt.core.javanature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope new file mode 100644 index 0000000..f40dd98 --- /dev/null +++ b/.settings/.jsdtscope @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..cdf52c4 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +#Tue Jun 22 19:38:02 CEST 2010 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..e4088d3 --- /dev/null +++ b/.settings/org.eclipse.wst.common.component @@ -0,0 +1,12 @@ + + + + + + + uses + + + + + diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..00884a1 --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/.settings/org.eclipse.wst.ws.service.policy.prefs b/.settings/org.eclipse.wst.ws.service.policy.prefs new file mode 100644 index 0000000..a40eff5 --- /dev/null +++ b/.settings/org.eclipse.wst.ws.service.policy.prefs @@ -0,0 +1,3 @@ +#Mon Aug 16 22:06:03 CEST 2010 +eclipse.preferences.version=1 +org.eclipse.wst.ws.service.policy.projectEnabled=false diff --git a/WebContent/META-INF/MANIFEST.MF b/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..5e94951 --- /dev/null +++ b/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/WebContent/META-INF/context.xml b/WebContent/META-INF/context.xml new file mode 100644 index 0000000..9f5a308 --- /dev/null +++ b/WebContent/META-INF/context.xml @@ -0,0 +1,47 @@ + + + + + + + WEB-INF/web.xml + + + + + + + + + \ No newline at end of file diff --git a/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar b/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar new file mode 100644 index 0000000..aa209b3 Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar differ diff --git a/WebContent/WEB-INF/lib/commons-io-1.4.jar b/WebContent/WEB-INF/lib/commons-io-1.4.jar new file mode 100644 index 0000000..133dc6c Binary files /dev/null and b/WebContent/WEB-INF/lib/commons-io-1.4.jar differ diff --git a/WebContent/WEB-INF/lib/mail.jar b/WebContent/WEB-INF/lib/mail.jar new file mode 100644 index 0000000..d1a4971 Binary files /dev/null and b/WebContent/WEB-INF/lib/mail.jar differ diff --git a/WebContent/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar b/WebContent/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar new file mode 100644 index 0000000..560c5f0 Binary files /dev/null and b/WebContent/WEB-INF/lib/mysql-connector-java-5.1.15-bin.jar differ diff --git a/WebContent/WEB-INF/web_sample.xml b/WebContent/WEB-INF/web_sample.xml new file mode 100644 index 0000000..d8b2365 --- /dev/null +++ b/WebContent/WEB-INF/web_sample.xml @@ -0,0 +1,99 @@ + + + Zallery + + + gallery + + + + Zallery + zall.Zallery + + WEBSITE_NAME + Gallery + + + WEBSITE_URL + http://example.com/Zallery/ + + + SMTP_HOST + 127.0.0.1 + + + THEME + + + + DATA_PATH + C:\\data + + + FB_APPID + 123456789 + + + FB_APPSEC + 123456789abcdefklmnopqrst + + 1 + + + Zallery + /gallery + /media + /slideshow + /login + /logout + /upload + /profile + /users + /register + + + + Content + zall.ZalleryContent + + + Content + /content + + + + Ajax + zall.ZalleryAjax + + + Ajax + /ajax + + + + Upload + zall.UploadServlet + + TEMP_PATH + C:\\temp + + + ALLOWED_EXTENSIONS + png,jpg,jpeg,gif,tif,bmp,avi,wmv,mov,mp4,mpeg,flv,m4v,divx,xvid + + + + Upload + /uploadserv + + + + transcoder + zall.ZalleryTranscoder + 1 + + + + gallery + + \ No newline at end of file diff --git a/WebContent/css/2c-l-fixed.css b/WebContent/css/2c-l-fixed.css new file mode 100644 index 0000000..0249b01 --- /dev/null +++ b/WebContent/css/2c-l-fixed.css @@ -0,0 +1,95 @@ +/* +LAYOUT: One-Column (Left) Fixed +DESCRIPTION: Two-column 950px fixed layout with one sidebar left of content +*/ + +body { + min-width:940px; +} +#header { + position:relative; +} +#branding { + width:940px; + margin:0 auto; +} +#access { + position:relative; + overflow:hidden; +} +.menu { + width:940px; + margin:0 auto; +} +#main { + width:940px; + margin:0 auto; + overflow:hidden; + position:relative; +} +#container { + width:940px; + float:right; + margin: 0 0 0 -310px; +} +#content { + width:620px; + overflow:hidden; + margin: 0 0 0 320px; +} +.hentry { + width:620px; +} +.main-aside { + width:300px; + float:left; + position:relative; +} +#primary { + float:left; +} +#secondary { + clear:left; +} +#footer { + clear:both; +} +#subsidiary { + width:940px; + margin:0 auto; + overflow:hidden; +} +#subsidiary .aside { + width:300px; + float:left; + margin:0 20px 0 0; +} +#subsidiary #third { + margin:0; +} +#siteinfo { + clear:both; + width:940px; + margin:0 auto; +} + +/* =Page Templates +-------------------------------------------------------------- */ + +/* + Full Width Template +*/ + +.page-template-template-page-fullwidth-php #container { + margin:0; + width:940px; +} + +.page-template-template-page-fullwidth-php #content { + margin: 0 0 0 10px; + width:940px; +} + +.page-template-template-page-fullwidth-php #comments { + width:540px; +} \ No newline at end of file diff --git a/WebContent/css/images.css b/WebContent/css/images.css new file mode 100644 index 0000000..713bcb5 --- /dev/null +++ b/WebContent/css/images.css @@ -0,0 +1,81 @@ +/* -------------------------------------------------------------- + + Default styles for Images + +-------------------------------------------------------------- */ +.entry-content .wp-post-image { + border: 1px solid #ccc; + float:right; + margin: 0 0 20px 18px; + padding: 5px; +} +.entry-content img { + height:auto; + margin: 0 0 18px 0; + max-width:100%; +} +.alignleft, +img.alignleft { + float: left; + margin-right:20px; +} +.alignright, +img.alignright { + display: block; + float: right; + margin-left:20px; +} +.aligncenter, +img.aligncenter { + margin-left:auto; + margin-right:auto; + display: block; + clear: both; +} +.wp-caption { + border:1px solid #ccc; + text-align: center; + margin-bottom:18px; + padding:9px 5px 0; +} +.wp-caption img { + border: 1px solid #ccc; + margin: 0; + padding: 0; +} +.wp-caption p.wp-caption-text { + margin: 0; + padding:18px 5px; +} +.gallery-icon { + border: 1px solid #ccc; + margin: 0 5px; + padding-top: 6px; +} +.gallery img { + margin:0; +} +.gallery-caption { + padding:6px 6px 0; +} +.wp-smiley { /* Prevent the smileys from breaking line-height */ + max-height:12px; + margin:0 !important; +} + +/* + +Adapt the following for use in your Child Themes when using +different font-sizes and line-heights + +.entry-content img, +.wp-caption { + margin-bottom:--px; +} +.wp-smiley { + max-height:--px; +} + +All other styles can be overridden--or ignored!--in Child Theme stylesheets + +*/ \ No newline at end of file diff --git a/WebContent/css/reset.css b/WebContent/css/reset.css new file mode 100644 index 0000000..aa31d6f --- /dev/null +++ b/WebContent/css/reset.css @@ -0,0 +1,64 @@ +/* -------------------------------------------------------------- + + Reset default browser CSS. + + Based on work by Eric Meyer: + http://meyerweb.com/eric/tools/css/reset/index.html + +-------------------------------------------------------------- */ + +/* v1.0 | 20080212 */ + +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; +} +body { + background:#fff; + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} + +/* remember to define focus styles! */ +:focus { + outline: 0; +} + +/* remember to highlight inserts somehow! */ +ins { + text-decoration: none; +} +del { + text-decoration: line-through; +} + +/* tables still need 'cellspacing="0"' in the markup */ +table { + border-collapse: collapse; + border-spacing: 0; +} + +a img { border: none; } \ No newline at end of file diff --git a/WebContent/css/style.css b/WebContent/css/style.css new file mode 100644 index 0000000..37419c4 --- /dev/null +++ b/WebContent/css/style.css @@ -0,0 +1,1166 @@ +/* +Theme Name: Gallery +Theme URI: http://www.upthemes.com/themes/gallery/ +Description: The ultimate gallery-style Thematic child theme for WordPress. +Author: Chris Wallace for UpThemes +Author URI: http://upthemes.com +Template: thematic +Version: 1.5.1 +. +This work, like WordPress, is released under GNU General Public License, version 2 (GPL). +http://www.gnu.org/licenses/old-licenses/gpl-2.0.html +. +*/ + +/* Reset browser defaults */ +@import url('reset.css'); + +/* Apply a basic layout */ +@import url('2c-l-fixed.css'); + +/* Apply basic image styles */ +@import url('images.css'); + + +input,select,textarea{ + color: #eee; + background-color: #3F3F3F; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px +} +input[type="submit"], +input[type="button"], +button{ + background: url("../img/btn-bg.jpg") repeat-x left top; + color:#ddd; + font-weight: normal; + position: relative; + line-height: 30px; + overflow: hidden; + border: 1px solid #101010; + padding: 3px 18px; + font-size: 10px; + line-height: 0.75em; + font-family: Verdana, Arial, sans-serif; + text-transform: uppercase; + cursor: pointer; + -moz-border-radius: 4px; + border-radius: 4px; + -webkit-border-radius: 4px +} +input[type="submit"]:hover, +input[type="button"]:hover, +button:hover{ + background-position: 0 -22px; + color: #ddd +} +input[type="submit"]:active, +input[type="button"]:active, +button:active{ + background-position: 0 -44px; + padding-top: 4px; + padding-bottom: 0 +} +abbr{ + border-bottom: 1px dotted #555 +} +pre{ + background-color: #191919; + border: 1px solid #333; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-border-radius: 3px; + padding: 5px; + margin: 10px 0; + white-space: pre; + overflow: auto + +} +pre, +code{ + font-size: 12px; +} +body { + background: #000 url("../img/body-background.jpg") center top; + color: #AFAFAF; + font-family: Lucida Grande,Helvetica,Arial,Verdana,sans-serif; + font-size: 90%; + font-style: normal; + line-height: 2em +} +#wrapper{ + background: transparent url("../img/light-source-trans.png") no-repeat center top; + height: auto; + min-height: 300px +} +a { + color: white; + text-decoration: none +} +a:hover { + color: #ddd +} +h1, h2, h3{ + color: white +} +h2{ + font-size: 1.5em; + margin-bottom: 0.7em +} +#content ol, +#content ul{ + margin-bottom: 1em +} +.single #content li{ + line-height: 1.4em +} +.single #content ul{ + border-top: 1px solid #101010; + border-bottom: 1px solid #282828; +} +.single #content li{ + padding: 10px 0 10px 24px; + list-style: none; + position: relative; + border-top: 1px solid #282828; + border-bottom: 1px solid #101010 +} +.twitter{ + background: url("../img/icons/twitter.png") no-repeat left center +} +.delicious{ + background: url("../img/icons/delicious.png") no-repeat left center +} +.designer{ + background: url("../img/icons/person.png") no-repeat left center +} +.site-link{ + background: url("../img/icons/globe.png") no-repeat left center +} +#header { + margin: 0 auto; + padding: 20px 0; + position: relative; + z-index: 20 +} +#branding,#access { + margin: 0 auto; + overflow: visible; + width: 940px; +} +#branding{ + padding: 10px 0; +} +.ie8 #branding{ + margin-bottom: 20px; + height: 30px +} +#blog-title { + text-align: left; + display: inline; + float: left; + margin-bottom: 20px; +} +#blog-title a{ + display: block; +} +.msie #blog-title a{ + position: relative; + margin-bottom: -10px +} +#blog-description { + color:#777; + font-size:0.9em; + line-height: 1.4em; + font-weight:normal; + text-align: right; + padding-top: 66px +} +#access { + width: 940px; + height: 45px; + margin-top: 10px; + clear: both; + background: url("../img/menu-bg-trans.png") no-repeat top left; +} +#category-menu ul{ + padding: auto +} +#category-menu li{ + float: left; + height: 45px +} +#category-menu li a, +li.blog-description span{ + display: block; + font-size: .8em; + font-weight: bold; + height: 28px; + padding: 8px; + margin-right: 8px; + color: white; + text-decoration: none +} +#category-menu li.home a{ + display: block; + text-indent: -9000px; + overflow: hidden; + text-align: left; + width: 24px; + background: url("../img/ico-home-trans.png") no-repeat; + background-position: center 15px; + padding-bottom: 0; + margin-left: 10px +} +#category-menu li.home a:hover{ + background: url("../img/ico-home-trans.png") no-repeat center -16px +} +#category-menu li.current_page_item{ +} +#category-menu li.current_page_item a{ + color: #ddd; +} +#category-menu > li:first-child{ + margin-left: 10px; +} +#category-menu li a:hover{ + color: #ddd +} +#category-menu li.blog-description{ + float: right +} +#category-menu li.blog-description span{ + color: #eee; + font-weight: normal +} +#blog-description{ + display: none +} +#page-menu{ + position: absolute; + bottom: 50px; + right: 10px; + margin: 0; + width: 500px; + font-size: .8em; + color: #888; + z-index: 100 +} +#page-menu #page-nav{ + text-align: right +} +#page-menu #page-nav li{ + float: right; + margin: 10px 0 0 4px +} +#page-menu #page-nav li a{ + padding: 8px 12px; + font-size: .9em; + color: #bbb; + text-transform: uppercase +} +#page-menu #page-nav li.rss a{ + padding-left: 20px; + background: url("../img/ico-rss-trans.png") no-repeat left center +} +#page-menu #page-nav li a:hover{ + color: white +} + +.sf-menu .current_page_item a, +.sf-menu .current_page_ancestor a, +.sf-menu .current_page_parent a { +} +.sf-menu a, .sf-menu a:visited { + color:#FFFFFF; +} +.sf-menu li { + position: relative; + background:transparent; +} +body #access #category-menu .sf-menu li li { + width: 100%; + margin: 0; + padding: 0; + height: auto; + width: auto + +} +.sf-menu li li li { + background: #333; +} +body #access #category-menu .sf-menu a:focus, +body #access #category-menu .sf-menu a:hover, +body #access #category-menu .sf-menu a:active { + background: #232323; + background: rgba(255,255,255,0.06); +} +body #access #category-menu .sf-menu .home a:focus, +body #access #category-menu .sf-menu .home a:hover, +body #access #category-menu .sf-menu .home a:active { + background: url("../img/ico-home-trans.png") no-repeat center -16px +} +body #access #category-menu .sf-menu ul a:focus, +body #access #category-menu .sf-menu ul a:hover, +body #access #category-menu .sf-menu ul a:active { + background: #454545; + background: rgba(255,255,255,0.1); +} +.sf-menu li li a:hover { + background: #333333; + background: rgba(255,255,255,0.1); +} +.sf-menu ul { + border:medium none; +} +.sf-menu li:hover ul, +.sf-menu li.sfHover ul { + top: 45px; + position: absolute; + border: 1px solid #000; + background: #1A1A1A; + padding: 0; + border-top: none; +} +.sf-menu li:hover ul ul, +.sf-menu li.sfHover ul ul{ + top: auto; + left: auto; + margin-top: -31px; + border-top: 1px solid #000; +} +body #access #category-menu .sf-menu ul a { + background:#111111; + color: white; + padding: 5px 0 5px 5px; + margin: 0; + line-height: 20px; + height: 20px; + display: block; + width: auto +} +.sf-menu ul a:hover { + color:#CC0000; + background: rgba(255,255,255,0.1); +} +.skip-link { + display: none; +} +#main{ + position: relative; + z-index: 5; + margin: 0 auto 30px auto +} +#primary, +#secondary{ + display: none +} +.page #primary{ + display: block +} +.aside{ + width: 270px +} +#content{ + width: 940px; + margin: 0; + float: none; + padding-top: 0 +} +.msie #content, +.single #content, +.home #content, +.page #content{ + padding-top: 20px +} +.page #content{ + margin-left: 320px; + width: 620px +} +.page #content li{ + list-style: disc; + margin-left: 20px +} +.single #container{ + position: relative +} +.single .entry-content{ + display: inline; + float: left; + margin: 20px 0 0 550px; + width: 385px +} +.single div.video ul.meta, +.single div.video #nav-below{ + display: none +} +.single .artwork-container{ + float: left; + margin-left: -935px +} +.single .entry-artwork{ + background-color: #191919; + border: 1px solid #333; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-border-radius: 3px; + padding: 10px +} +.single .navigation{ + margin-top: 10px; + padding-top: 0; +} +.single .entry-content h1, +h1.page-title{ + font-size: 1.8em; + margin-bottom: .5em +} +h1.page-title{ + margin-bottom: 1em +} +.single .entry-content p{ + line-height: 1.3em +} +.not-singular .entry-content{ + float: left; + width: 134px; + margin: 0 0 5px 0; +} +.not-singular .entry-content a{ + border: 3px solid #191919; + display: block; + height: 125px; + width: 125px; + overflow: hidden; + position: relative; + background-color: #191919 +} +.not-singular .entry-content a img{ + position: absolute; + z-index: 5 +} +.not-singular .entry-content a span.slide-title{ + position: absolute; + top: 108px; + left: 3px; + width: 300px; + line-height: 1em; + color: white !important; + font-size: .8em; + text-transform: uppercase; + z-index: 0 +} +.not-singular .entry-content{ + position: relative +} +.not-singular .entry-content .new{ + display: block; + position: absolute; + top: -6px; + right: 10px; + width: 42px; + height: 22px; + background: url("../img/ico-new-trans.png") no-repeat top left; + z-index: 200 +} +.not-singular .video .new{ + background: url("../img/ico-video-trans.png") no-repeat top left; + width: 74px; +} +span.cover-up{ + background: url("../img/side-fade-trans.png") no-repeat right top; + position: absolute; + right: 0; + top: 0; + height: 125px; + width: 20px; + z-index: 4 +} +.entry-content .wp-post-image{ + border: none; + margin: 0; + padding: 0; +} +.main-aside h3{ + font-weight: bold; + color: #fff; + padding: 5px 0 5px 10px +} +.main-aside .xoxo li{ + margin: 0 0 10px 0; + padding: 15px; + background-color: #191919; + border: 1px solid #333; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px +} +.main-aside .xoxo li div{ + padding: 0 0 0 10px; + font-size: .8em; + line-height: 2em +} +.main-aside .xoxo li ul li{ + margin: 0; + padding: 0 0 0 10px; + background: transparent; + border: none; + -moz-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0 +} +.main-aside p{ + margin-bottom: 1em +} +form{ + margin: 0 0 2em 0 +} +legend{ + font-size: 1.2em; + font-weight: 700; + color: white +} +.form-label, +.wpcf7-form label{ + display: block; + margin: 5px 0 0 0 +} +input[type="text"], +input[type="password"], +textarea, +select{ + font-family: Arial, Helvetica, sans-serif; + border: 1px solid #303030; + background: #232323; + color: #999999; + padding: 6px; +} +.aside input[type="text"]{ + width: 180px; + margin-bottom: 5px; +} +.navigation { + font-family: Helvetica,Arial,sans-serif; + margin-bottom: 20px; + overflow: hidden; + text-transform: uppercase; + width: 100%; +} +#nav-above { + display: none; +} +#nav-below{ + clear: both; + padding-top: 10px; + height: auto; + overflow: auto; + padding-bottom: 10px +} +.nav-next { + float: right; + text-align: right; + width: 47%; +} +.not-singular .nav-next{ + margin-right: 5px +} +.nav-previous { + float: left; + width: 47%; +} +#nav-above{ + display: none; +} +.hentry{ + width: auto +} +.entry-title { + color: white; + font-size: 2.6em; + font-weight: bold; + letter-spacing: -1px; + margin-bottom: 1em; + padding-bottom: 1px; +} +.entry-title a{ + color: white +} +.post .entry-meta,.post .entry-utility { + color: #afafa1; + font-size: 0.825em; + margin-bottom: 24px; + padding-bottom: 5px; +} +.post p, .entry-content p { + margin-bottom: 1em; +} +.post pre,#content .page pre { + font-size: 1.6em; +} +.post dt { + margin-bottom: 5px; + padding-bottom: 5px; +} +.post dd { + color: #eee; + margin-bottom: 1em; +} +.post dl { + margin-bottom: 1.3em; + padding-left: 20px; +} +.post a.more-link { + background: #be194f; + color: #fff; + font-size: 0.75em; + font-weight: bold; + padding: 5px 10px; + text-decoration: none; + text-transform: uppercase; +} +.post a.more-link:hover { + background: #d93c6f; +} +a.more-link .meta-nav { + display: none; +} +.post h3,.post h4,.post h5,.post h6 { + margin: 5px 0; + padding: 5px 0; +} +.post h4 { + font-size: 1.4em; +} +.post h5 { + font-size: 1.2em; + text-transform: uppercase; +} +.post h6 { + font-size: 1.1em; + text-transform: uppercase; +} +.post blockquote { + font: italic 2em Georgia, "Times New Roman", Times, serif; + color: white; + margin: 10px 0px; + padding: 10px 20px 1px 10px; +} +.post blockquote p { + font-stayle: italic; +} +.post .page-link { + font-size: 0.825em; + margin-bottom: 20px; + text-transform: uppercase; +} +.page-link a { + background: #f0f0f0; + border-bottom: 1px solid #ddd; + border-left: 1px solid #eee; + border-right: 1px solid #ddd; + border-top: 1px solid #eee; + padding: 5px 10px; + text-decoration: none; +} +.post .entry-utility { + border-top: 1px solid #232323; + margin-bottom: 0; + padding: 5px 0 0 0; +} +.btc-powered{ + font-size: 0.825em +} +#comments { + margin-top: 20px; + padding: 20px 0 0 0; + clear: both; + overflow: auto; +} +body.page #comments, +body.page #respond, +body.page #comments-list{ + width: 100%; + float: none; +} +#comments,#comments input[type="text"],#comments textarea { + font-size: 12px; +} +#comments h3 { + font-size: 0.9em; + text-transform: uppercase; + letter-spacing: 0.2em; + padding: 7px 12px 7px 42px; + font-weight: bold; + background: #171717 url("../img/ico-comment.png") no-repeat 16px center +} +#comments #respond h3{ + background-image: url("../img/ico-person.png") +} +#comments #comments-list #respond h3{ + background-image: url("../img/ico-reply.png") +} +.formcontainer{ + border-top: 1px solid #282828; +} +#comments-list { + border-top: 1px solid #141414; + float: left; + margin-right: 30px; + padding: 0 0 18px; + width: 520px; +} +#comments-list ol,#comments-list ul { + list-style: none; + margin: 0; +} +#comments-list ol { + margin: 0 0 18px 0; +} +#comments-list li { + padding: 18px 1.5em 18px 1.5em; + position: relative; + border-top: 1px solid #282828; + border-bottom: 1px solid #101010; +} +#comments-list ol { + border-bottom: 1px solid #282828; + list-type: none; +} +.single #content #comments-list li, +.page #content #comments-list li{ + padding: 20px 0; + position: relative; + z-index: 0; + list-type: none; + margin: 0; +} +#comments-list li .avatar { + height: 60px; + width: 60px; + padding: 4px; + border: 1px solid #282828; + background: #171717; + float: left; + position: relative; + margin-left: -95px +} +#comments-list .comment-author, +#comments-list .comment-meta, +#comments-list .comment-content, +#comments-list .unapproved{ + display: block; + margin-left: 100px +} +#comments-list .unapproved{ + background-color: #191919; + margin-bottom: 15px; + padding: 10px; + color: white +} +#comments-list .comment-author { + font-weight: bold; + font-size: 1.3em + padding: 5px 0 0 0; +} +#comments-list .comment-meta { + color: #666; + font-size: 11px; + padding: 10px 0 9px 0; +} +#comments-list .comment-meta a { + color: #eee; + font-style: italic; + text-decoration: none; +} +#comments-list .comment-meta a:active,#comments-list .comment-meta a:hover { + color: #FF4B33; +} +#comments-list .comment-content{ + padding-right: 10px +} +#commentform{ + padding: 15px; + width: 360px +} +.comment-reply-link { + font-size: 11px; + padding: 0 0 18px 0; + text-align: right; +} +.hover-url{ + color: #666; + margin-left: 10px; + font-weight: normal; + font-style: italic; + font-family: Georgia, "Georgia MS", Times, serif +} +.comment-reply-link a { + color: #eee; + font-style: italic; + text-decoration: none; +} +.comment-navigation { + font-weight: bold; + margin-right: 0.5em; + padding: 0; +} +.comment-navigation a { + border: 1px solid #ccc; + color: #eee; + font-weight: normal; + padding: 0.5em 0.75em; + text-decoration: none; +} +.comment-navigation a:active,.comment-navigation a:hover { + color: #FF4B33; +} +.comment-navigation a,.comment-navigation span { + margin-right: 0.5em; +} +#trackbacks-list .comment-content { + left: -9000px; + position: absolute; +} +#respond { + border-top: 1px solid #141414; + margin-bottom: 22px; + overflow: hidden; + padding: 0; + width: 390px; + float: right; + position: relative; + z-index: 4 + } +#comments-list #respond { + margin: 0; + padding: 0; + float: none; + width: 520px +} +#comments-list #commentform { + width: auto +} +#comments-list ul #respond { + margin: 0; +} +#cancel-comment-reply { + font-size: 11px; + position: absolute; + right: 1.5em; + top: 7px; +} +#respond .required { + color: #FF4B33; + font-weight: bold; +} +.form-section{ + padding: 0 0 10px 0; + clear: both; + overflow: auto +} +.form-section label { + font-size: 11px; +} +.form-section .form-label{ + width: 35%; + float: left; + clear: both; + text-align: right +} +.form-section .form-input{ + width: 65%; + float: right; + text-align: right +} +.form-section .form-input input{ + width: 80% +} +.form-section .form-textarea{ + width: 100%; + text-align: right +} +.form-section .form-textarea textarea{ + width: 94% +} +#respond #comment-notes{ + line-height: 1.2em; + margin: 5px 0 20px 0; + font-size: 0.9em +} +#comments-list ul.children{ + margin-left: 20px; +} +.single #content #comments-list ul.children li{ + padding-left: 25px; + background: url("../img/ico-reply.png") no-repeat 5px 20px +} +#form-section-comment .form-label{ + display: none +} +#form-allowed-tags p { + color: #ccc; + font-size: 10px; + line-height: normal; + margin: 0; +} +#form-allowed-tags span { + font-style: italic; +} +.form-submit { + padding: 18px 0 0 0 +} +.subscribe-to-comments { + color: #eee; + float: left; + font-size: 11px; + margin: 0; + padding: 18px 0 0 0; +} +.solo-subscribe-to-comments { + color: #eee; + font-size: 11px; + padding: 18px 0 0 0; +} +.comment_license { + clear: both; + color: #eee; + font-size: 11px; + margin: 0; + padding: 18px 0 0 0; +} +#footer { + z-index: 0; + border-top: 1px solid #353535; + padding: 40px 0; + color: #555; + background-color: #0F0F0F; + margin-top: 20px +} +#footer a{ + color: #666 +} +#footer a:hover{ + color: #666 +} +#footer #subsidiary .aside{ + width: 940px +} +#footer .widgetcontainer{ + float: left; + width: 270px; + padding: 10px; + margin: 10px 10px 20px 10px; + background: #121212; + border: 1px solid #282828; + } +#footer .widgetcontainer h3{ + margin-bottom: 10px +} +#footer .widgetcontainer a:hover{ + color: #999 +} +#footer .reset{ + clear: both +} +#siteinfo{ + text-align: center; + font-size: .8em +} +#siteinfo a{ + text-decoration: none; + border-bottom: 1px dotted #333 +} +#siteinfo a:hover{ + border-bottom-color: #555555 +} +#author-info { + border: 1px dotted #ccc; + padding: 5px; + overflow: hidden; + font-size: 1.2em; + margin-bottom: 20px; +} +#author-info h2 { + border-bottom: 3px double #ddd; + padding: 5px 0; + font-size: 1.8em; + margin-bottom: 10px; +} +#author-info .avatar { + float: left; + border: 3px double #ddd; + margin: 0 10px 10px 0; +} + +/* IE6 fixes */ + +.ie6 .single .entry-content{ + height: 450px +} + +.ie6 .entry-content { + height:130px; +} + +.ie6, +.ie6 #container{ + width: 100%; + overflow: hidden +} +.ie6 #blog-title a{ + overflow: auto +} +.ie6 #category-menu, +.ie6 #category-nav{ + width: 940px +} +.ie6 #category-menu{ + margin: 10px 0 0 10px +} +.ie6 #category-nav li { + float: left; + display: inline; + padding: 0; + margin: 0; + height: auto +} +.ie6 #category-nav li.blog-description{ + float: right +} +.ie6 #category-nav li.blog-description span{ + float: right +} +.ie6 #category-nav a{ + float: left +} +.ie6 .single #content { + height: auto +} + + +/* Styles for Contact Form 7 plugin */ + +div.wpcf7-response-output{ + display: none +} + +/* Styles for WP Post Ratings plugin */ + +.post-ratings{margin-bottom: 10px; float: right; width: 100px !important; margin-top: 5px; overflow: hidden; height: 20px} +.post-ratings small{font-size: .7em;} +.post-ratings-text{display:none !important} + +/* Styles for BuySellAds widget */ + +.BuySellAds_widget{ + width: 938px; + margin: 0; + padding: 3px 0; + height: auto; + overflow: auto; +} +.BuySellAds_widget a { +background-color:#191919; +border:3px solid #191919; +display:block; +height:125px; +overflow:hidden; +position:relative; +width:125px; +float: left; +margin:0 3px 0 0; +} +.BuySellAds_widget a:hover{ + border-color: #191919 +} +.BuySellAds_widget img { + border: 0; + clear: right; +} +.BuySellAds_widget a.adhere { + background: #191919; + border:3px solid #191919; + color: #666; + font-size: 11px; + font-weight: bold; + text-align: center; + width: 125px; + height: 125px; + margin:0 3px 0 0; +} +.BuySellAds_widget a.adhere:hover { + background: #191919; + border: 3px solid #191919; + color: #777; +} + +/* =PageNavi +-------------------------------------------------------------- */ + +/* Use !important to override PageNavi CSS */ + +.wp-pagenavi{ + text-align: center; + padding-top: 20px; +} + +.navigation .wp-pagenavi a, .navigation .wp-pagenavi a:link, .navigation .wp-pagenavi a:active { + color: #fff; + background: #222; + background: rgba(0,0,0,0.3); + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + padding: 5px 9px; + border-width: 0 !important; +} +.navigation .wp-pagenavi a:hover { + background: #282828; + background: rgba(0,0,0,0.7); +} +.navigation .wp-pagenavi span.pages { + background: transparent; + color: #fff; + color: rgba(255,255,255,0.4); + padding: 5px 9px; + border-width: 0 !important; +} +.navigation .wp-pagenavi span.current { + background: #555; + background: rgba(255,255,255,0.07); + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + color: #fff; + padding: 5px 9px; + border-width: 0 !important; +} +.navigation .wp-pagenavi span.extend { + background: none; + color: white; + color: rgba(255,255,255,0.4); + padding: 5px 9px; + border-width: 0 !important; +} + +* { + margin: 0; +} +html, body { + height: 100%; +} +#wrapper { + min-height: 100%; + height: auto !important; + height: 100%; + margin: 0 auto -71px; /* the bottom margin is the negative value of the footer's height */ +} +#footer{ + margin-top: 0; + height: 30px; + padding: 20px 0; +} +.push { + height: 71px; /* .push must be the same height as .footer */ +} \ No newline at end of file diff --git a/WebContent/css/zallery.css b/WebContent/css/zallery.css new file mode 100644 index 0000000..461dbc9 --- /dev/null +++ b/WebContent/css/zallery.css @@ -0,0 +1,99 @@ +.progressbar, .progressbarYellow, .progressbarGreen, .progressbarRed, .progressbarBlue{ + background: transparent url(../img/bar-grey.gif) repeat-x scroll 0%; + border: 1px solid black; + color: white; + height: 16px; + margin: 5pt; + padding: 0pt; + position: relative; + text-align: center; + width; 150px; + border-collapse: collapse; +} +.progressbar b, .progressbarYellow b, .progressbarGreen b, .progressbarRed b, .progressbarBlue b{ + float: left; + height: 16px; + margin: 0pt; + padding: 0pt; + font-size: 11px; +} +.progressbar b, .progressbarGreen b{ + background: transparent url(../img/bar-green.gif) repeat-x scroll 0%; +} +.progressbarYellow b{ + background: transparent url(../img/bar-yellow.gif) repeat-x scroll 0%; +} +.progressbarRed b{ + background: transparent url(../img/bar-red.gif) repeat-x scroll 0%; +} +.progressbarBlue b{ + background: transparent url(../img/bar-blue.gif) repeat-x scroll 0%; +} + + +input:focus{ + border: 1px solid #7D6D06; +} + +.slideshow-link{ + background: url("../img/icons/slideshow.png") no-repeat left center +} + +#footer{ + padding: 25px 0; +} + +.fb_edge_comment_widget { + display: none !important; +} + + + +/** Forms **/ +/* style.css:34 */ +input[type="submit"], input[type="button"], button { + padding: 3px 18px 6px 18px; + -moz-border-radius: 0px; + border-radius: 0px; + -webkit-border-radius: 0px; +} + +/** Gallery **/ +/* style.css:141 */ +#header { + padding: 10px 0; +} +/* style.css:374 */ +.msie #content, .single #content, .home #content, .page #content { + padding-top: 0px; +} +/* style.css:516 */ +form { + margin: 0 0 1em 0; +} + +/** Upload **/ +/* style.css:674 */ +/*#comments { + padding: 0px 0 0 0; +}*/ +/* style.css:374 */ +/*.msie #content, .single #content, .home #content, .page #content { +padding-top: 0px; +}*/ + +.entry-title { + margin-top: 1em; +} + + +#edit-row{ + margin: 0 0 0.8em 0; +} +#edit-row form{ + margin: 0; +} + +.modmedia_edit{ + display: none; +} \ No newline at end of file diff --git a/WebContent/footer.jsp b/WebContent/footer.jsp new file mode 100644 index 0000000..f73eac8 --- /dev/null +++ b/WebContent/footer.jsp @@ -0,0 +1,21 @@ + + + +
+ + + + + + \ No newline at end of file diff --git a/WebContent/gallery.jsp b/WebContent/gallery.jsp new file mode 100644 index 0000000..8a1edec --- /dev/null +++ b/WebContent/gallery.jsp @@ -0,0 +1,66 @@ + <%@ page import="java.util.List" %> + <%@ page import="zall.bean.*" %> + <%@ page import="java.sql.Timestamp" %> + <% + User user = (User)session.getAttribute("user"); + Folder folder = (Folder)request.getAttribute("folder"); + %> + +
+
+
+ + +
+ <%if( folder.getParent() != null ){ %> + + <%} %> + + <%if( user.canEdit( folder ) && folder.getParent() != null ){ %> +
+ + +
+ <%} %> +
+ <% // Folders + for( Folder subfolder : ((List)request.getAttribute("subfolders")) ){ %> +
+
+ <%if( subfolder.getDate().after(new Timestamp(System.currentTimeMillis()-10*24*60*60*1000) )){ %><%} %> + <%=subfolder.getName()%> + <%=subfolder.getName()%> +
+
+ <% } %> + + + <% // Media + for( Media media : (List)request.getAttribute("media") ){ + if( media instanceof Image ){ %> +
+ <% } else if( media instanceof Video ){ %> +
+ <% } %> + +
+ <%if( media.getDate().after(new Timestamp(System.currentTimeMillis()-10*24*60*60*1000)) ){ %><%} %> + <%=media.getTitle()%> + <%=media.getTitle()%> +
+
+ <% } %> + + +
+
+
\ No newline at end of file diff --git a/WebContent/header.jsp b/WebContent/header.jsp new file mode 100644 index 0000000..dae8014 --- /dev/null +++ b/WebContent/header.jsp @@ -0,0 +1,181 @@ + +<%@ page import="zall.bean.*" %> +<%@ page import="zall.*, zall.util.msg.UserMessage, zall.util.msg.UserMessage.*" %> +<% +String page_url = (String)request.getAttribute("page"); +if( page_url == null ) page_url = ""; +User user = (User)session.getAttribute("user"); +UserMessage message = UserMessage.getUserMessage(session); +%> + + + + <%=Zallery.getWebsiteName() %> + + + + + + + + + + + <% if( page_url.startsWith("media") ){ %> + + + + + <% } %> + + <% if( page_url.startsWith("slideshow") ){ %> + + + <% } %> + + <% if( page_url.startsWith("upload") ){ %> + + + <% } %> + + + + + + +<% if( page_url.startsWith("upload") || page_url.startsWith("users") || page_url.startsWith("profile") || page_url.startsWith("login") || page_url.startsWith("register") ){ %> + +<% }else if( page_url.startsWith("gallery") || page_url.startsWith("Zallery") ){ %> + +<% }else if( page_url.startsWith("media") ){ %> + +<% }else{ %> + +<% } %> + +
+ + +
+ diff --git a/WebContent/img/.picasa.ini b/WebContent/img/.picasa.ini new file mode 100644 index 0000000..f370dd4 --- /dev/null +++ b/WebContent/img/.picasa.ini @@ -0,0 +1,2 @@ +[download.png] +rotate=rotate(2) diff --git a/WebContent/img/arrow_undo.png b/WebContent/img/arrow_undo.png new file mode 100644 index 0000000..6972c5e Binary files /dev/null and b/WebContent/img/arrow_undo.png differ diff --git a/WebContent/img/bar-blue.gif b/WebContent/img/bar-blue.gif new file mode 100644 index 0000000..6ad75b3 Binary files /dev/null and b/WebContent/img/bar-blue.gif differ diff --git a/WebContent/img/bar-green.gif b/WebContent/img/bar-green.gif new file mode 100644 index 0000000..c61f7d1 Binary files /dev/null and b/WebContent/img/bar-green.gif differ diff --git a/WebContent/img/bar-grey.gif b/WebContent/img/bar-grey.gif new file mode 100644 index 0000000..e331546 Binary files /dev/null and b/WebContent/img/bar-grey.gif differ diff --git a/WebContent/img/bar-red.gif b/WebContent/img/bar-red.gif new file mode 100644 index 0000000..3793283 Binary files /dev/null and b/WebContent/img/bar-red.gif differ diff --git a/WebContent/img/bar-yellow.gif b/WebContent/img/bar-yellow.gif new file mode 100644 index 0000000..ea930a1 Binary files /dev/null and b/WebContent/img/bar-yellow.gif differ diff --git a/WebContent/img/body-background.jpg b/WebContent/img/body-background.jpg new file mode 100644 index 0000000..52d2a12 Binary files /dev/null and b/WebContent/img/body-background.jpg differ diff --git a/WebContent/img/btn-bg.jpg b/WebContent/img/btn-bg.jpg new file mode 100644 index 0000000..f68d2a9 Binary files /dev/null and b/WebContent/img/btn-bg.jpg differ diff --git a/WebContent/img/default-user.png b/WebContent/img/default-user.png new file mode 100644 index 0000000..077c70b Binary files /dev/null and b/WebContent/img/default-user.png differ diff --git a/WebContent/img/delete.png b/WebContent/img/delete.png new file mode 100644 index 0000000..7260af5 Binary files /dev/null and b/WebContent/img/delete.png differ diff --git a/WebContent/img/disk-black.png b/WebContent/img/disk-black.png new file mode 100644 index 0000000..6178478 Binary files /dev/null and b/WebContent/img/disk-black.png differ diff --git a/WebContent/img/download.png b/WebContent/img/download.png new file mode 100644 index 0000000..2fbebf2 Binary files /dev/null and b/WebContent/img/download.png differ diff --git a/WebContent/img/error.png b/WebContent/img/error.png new file mode 100644 index 0000000..5177258 Binary files /dev/null and b/WebContent/img/error.png differ diff --git a/WebContent/img/folder.png b/WebContent/img/folder.png new file mode 100644 index 0000000..bbeaf2a Binary files /dev/null and b/WebContent/img/folder.png differ diff --git a/WebContent/img/full-image-default.jpg b/WebContent/img/full-image-default.jpg new file mode 100644 index 0000000..bd16c6b Binary files /dev/null and b/WebContent/img/full-image-default.jpg differ diff --git a/WebContent/img/ico-comment.png b/WebContent/img/ico-comment.png new file mode 100644 index 0000000..c1ccf97 Binary files /dev/null and b/WebContent/img/ico-comment.png differ diff --git a/WebContent/img/ico-home-trans.png b/WebContent/img/ico-home-trans.png new file mode 100644 index 0000000..22c3b2f Binary files /dev/null and b/WebContent/img/ico-home-trans.png differ diff --git a/WebContent/img/ico-new-trans.png b/WebContent/img/ico-new-trans.png new file mode 100644 index 0000000..690fb6d Binary files /dev/null and b/WebContent/img/ico-new-trans.png differ diff --git a/WebContent/img/ico-person.png b/WebContent/img/ico-person.png new file mode 100644 index 0000000..49c1a35 Binary files /dev/null and b/WebContent/img/ico-person.png differ diff --git a/WebContent/img/ico-reply.png b/WebContent/img/ico-reply.png new file mode 100644 index 0000000..b89132b Binary files /dev/null and b/WebContent/img/ico-reply.png differ diff --git a/WebContent/img/ico-rss-trans.png b/WebContent/img/ico-rss-trans.png new file mode 100644 index 0000000..e1f963d Binary files /dev/null and b/WebContent/img/ico-rss-trans.png differ diff --git a/WebContent/img/ico-video-trans.png b/WebContent/img/ico-video-trans.png new file mode 100644 index 0000000..9655eb0 Binary files /dev/null and b/WebContent/img/ico-video-trans.png differ diff --git a/WebContent/img/icons/email.png b/WebContent/img/icons/email.png new file mode 100644 index 0000000..958dd26 Binary files /dev/null and b/WebContent/img/icons/email.png differ diff --git a/WebContent/img/icons/facebook.png b/WebContent/img/icons/facebook.png new file mode 100644 index 0000000..f6437cd Binary files /dev/null and b/WebContent/img/icons/facebook.png differ diff --git a/WebContent/img/icons/feed.png b/WebContent/img/icons/feed.png new file mode 100644 index 0000000..cdf4e8f Binary files /dev/null and b/WebContent/img/icons/feed.png differ diff --git a/WebContent/img/icons/flickr.png b/WebContent/img/icons/flickr.png new file mode 100644 index 0000000..f973ad9 Binary files /dev/null and b/WebContent/img/icons/flickr.png differ diff --git a/WebContent/img/icons/globe.png b/WebContent/img/icons/globe.png new file mode 100644 index 0000000..4c8515c Binary files /dev/null and b/WebContent/img/icons/globe.png differ diff --git a/WebContent/img/icons/person.png b/WebContent/img/icons/person.png new file mode 100644 index 0000000..2d44726 Binary files /dev/null and b/WebContent/img/icons/person.png differ diff --git a/WebContent/img/icons/slideshow.png b/WebContent/img/icons/slideshow.png new file mode 100644 index 0000000..9be5e13 Binary files /dev/null and b/WebContent/img/icons/slideshow.png differ diff --git a/WebContent/img/icons/slideshow2.png b/WebContent/img/icons/slideshow2.png new file mode 100644 index 0000000..656d872 Binary files /dev/null and b/WebContent/img/icons/slideshow2.png differ diff --git a/WebContent/img/icons/vimeo.png b/WebContent/img/icons/vimeo.png new file mode 100644 index 0000000..fed0959 Binary files /dev/null and b/WebContent/img/icons/vimeo.png differ diff --git a/WebContent/img/icons/youtube.png b/WebContent/img/icons/youtube.png new file mode 100644 index 0000000..ed79600 Binary files /dev/null and b/WebContent/img/icons/youtube.png differ diff --git a/WebContent/img/light-source-trans.png b/WebContent/img/light-source-trans.png new file mode 100644 index 0000000..b111591 Binary files /dev/null and b/WebContent/img/light-source-trans.png differ diff --git a/WebContent/img/loading.gif b/WebContent/img/loading.gif new file mode 100644 index 0000000..e846e1d Binary files /dev/null and b/WebContent/img/loading.gif differ diff --git a/WebContent/img/logo.png b/WebContent/img/logo.png new file mode 100644 index 0000000..e08caef Binary files /dev/null and b/WebContent/img/logo.png differ diff --git a/WebContent/img/menu-bg-trans.png b/WebContent/img/menu-bg-trans.png new file mode 100644 index 0000000..b919a4e Binary files /dev/null and b/WebContent/img/menu-bg-trans.png differ diff --git a/WebContent/img/mixcss-logo-small-trans.png b/WebContent/img/mixcss-logo-small-trans.png new file mode 100644 index 0000000..e2b9957 Binary files /dev/null and b/WebContent/img/mixcss-logo-small-trans.png differ diff --git a/WebContent/img/mixcss-logo-trans.png b/WebContent/img/mixcss-logo-trans.png new file mode 100644 index 0000000..a0df3f5 Binary files /dev/null and b/WebContent/img/mixcss-logo-trans.png differ diff --git a/WebContent/img/pencil.png b/WebContent/img/pencil.png new file mode 100644 index 0000000..0bfecd5 Binary files /dev/null and b/WebContent/img/pencil.png differ diff --git a/WebContent/img/processing.gif b/WebContent/img/processing.gif new file mode 100644 index 0000000..9eac4a7 Binary files /dev/null and b/WebContent/img/processing.gif differ diff --git a/WebContent/img/rating_half.png b/WebContent/img/rating_half.png new file mode 100644 index 0000000..f3df5f0 Binary files /dev/null and b/WebContent/img/rating_half.png differ diff --git a/WebContent/img/rating_off.png b/WebContent/img/rating_off.png new file mode 100644 index 0000000..6caa109 Binary files /dev/null and b/WebContent/img/rating_off.png differ diff --git a/WebContent/img/rating_on.png b/WebContent/img/rating_on.png new file mode 100644 index 0000000..b88c857 Binary files /dev/null and b/WebContent/img/rating_on.png differ diff --git a/WebContent/img/rating_over.png b/WebContent/img/rating_over.png new file mode 100644 index 0000000..f067c59 Binary files /dev/null and b/WebContent/img/rating_over.png differ diff --git a/WebContent/img/side-fade-trans.png b/WebContent/img/side-fade-trans.png new file mode 100644 index 0000000..db65fa9 Binary files /dev/null and b/WebContent/img/side-fade-trans.png differ diff --git a/WebContent/img/thumbnail-default.jpg b/WebContent/img/thumbnail-default.jpg new file mode 100644 index 0000000..36dc4e6 Binary files /dev/null and b/WebContent/img/thumbnail-default.jpg differ diff --git a/WebContent/img/upload.png b/WebContent/img/upload.png new file mode 100644 index 0000000..fda725b Binary files /dev/null and b/WebContent/img/upload.png differ diff --git a/WebContent/js/colortip-1.0-jquery.css b/WebContent/js/colortip-1.0-jquery.css new file mode 100644 index 0000000..b445ca9 --- /dev/null +++ b/WebContent/js/colortip-1.0-jquery.css @@ -0,0 +1,99 @@ +.colorTip{ + /* This class is assigned to the color tip span by jQuery */ + + display:none; + position:absolute; + left:50%; + top:-30px; + padding:6px; + + background-color:white; + font-family:Arial,Helvetica,sans-serif; + font-size:11px; + font-style:normal; + line-height:1; + text-decoration:none; + text-align:center; + text-shadow:0 0 1px white; + white-space:nowrap; + + -moz-border-radius:4px; + -webkit-border-radius:4px; + border-radius:4px; +} + +.pointyTip,.pointyTipShadow{ + /* Setting a thick transparent border on a 0x0 div to create a triangle */ + border:6px solid transparent; + bottom:-12px; + height:0; + left:50%; + margin-left:-6px; + position:absolute; + width:0; +} + +.pointyTipShadow{ + /* The shadow tip is 1px larger, so it acts as a border to the tip */ + border-width:7px; + bottom:-14px; + margin-left:-7px; +} + +.colorTipContainer{ + position:relative; + text-decoration:none !important; +} + + +/* 6 Available Color Themes */ + +.white .pointyTip{ border-top-color:white;} +.white .pointyTipShadow{ border-top-color:#ddd;} +.white .colorTip{ + background-color:white; + border:1px solid #DDDDDD; + color:#555555; +} + +.yellow .pointyTip{ border-top-color:#f9f2ba;} +.yellow .pointyTipShadow{ border-top-color:#e9d315;} +.yellow .colorTip{ + background-color:#f9f2ba; + border:1px solid #e9d315; + color:#5b5316; +} + +.blue .pointyTip{ border-top-color:#d9f1fb;} +.blue .pointyTipShadow{ border-top-color:#7fcdee;} +.blue .colorTip{ + background-color:#d9f1fb; + border:1px solid #7fcdee; + color:#1b475a; +} + +.green .pointyTip{ border-top-color:#f2fdf1;} +.green .pointyTipShadow{ border-top-color:#b6e184;} +.green .colorTip{ + background-color:#f2fdf1; + border:1px solid #b6e184; + color:#558221; +} + +.red .pointyTip{ border-top-color:#bb3b1d;} +.red .pointyTipShadow{ border-top-color:#8f2a0f;} +.red .colorTip{ + background-color:#bb3b1d; + border:1px solid #8f2a0f; + color:#fcfcfc; + text-shadow:none; +} + +.black .pointyTip{ border-top-color:#333;} +.black .pointyTipShadow{ border-top-color:#111;} +.black .colorTip{ + background-color:#333; + border:1px solid #111; + color:#fcfcfc; + text-shadow:none; +} \ No newline at end of file diff --git a/WebContent/js/colortip-1.0-jquery.js b/WebContent/js/colortip-1.0-jquery.js new file mode 100644 index 0000000..13bc1fa --- /dev/null +++ b/WebContent/js/colortip-1.0-jquery.js @@ -0,0 +1,142 @@ +(function($){ + $.fn.colorTip = function(settings){ + + var defaultSettings = { + color : 'yellow', + timeout : 500 + } + + var supportedColors = ['red','green','blue','white','yellow','black']; + + /* Combining the default settings object with the supplied one */ + settings = $.extend(defaultSettings,settings); + + /* + * Looping through all the elements and returning them afterwards. + * This will add chainability to the plugin. + */ + + return this.each(function(){ + + var elem = $(this); + + // If the title attribute is empty, continue with the next element + if(!elem.attr('title')) return true; + + // Creating new eventScheduler and Tip objects for this element. + // (See the class definition at the bottom). + + var scheduleEvent = new eventScheduler(); + var tip = new Tip(elem.attr('title')); + + // Adding the tooltip markup to the element and + // applying a special class: + + elem.append(tip.generate()).addClass('colorTipContainer'); + + // Checking to see whether a supported color has been + // set as a classname on the element. + + var hasClass = false; + for(var i=0;i
');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor== +String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,k);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection(); +this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){e(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()}; +if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(), +d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset= +this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio: +this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize", +b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height; +f={width:c.size.width-(f?0:c.sizeDiff.width),height:c.size.height-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop", +b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(l(b.left))this.position.left=b.left;if(l(b.top))this.position.top=b.top;if(l(b.height))this.size.height=b.height;if(l(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(d=="nw"){b.top= +a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,d=l(b.width)&&a.maxWidth&&a.maxWidthb.width,h=l(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height, +k=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&k)b.left=i-a.minWidth;if(d&&k)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a
');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+ +a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this, +arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable, +{version:"1.8.5"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize, +function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var k=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:k.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n= +(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(k.css("position"))){c._revertToRelativePosition=true;k.css({position:"absolute",top:"auto",left:"auto"})}k.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition= +false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left- +a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize", +b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top", +"Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset, +f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left= +a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+ +a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&& +e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative", +height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width= +d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},l=function(b){return!isNaN(parseInt(b,10))}})(jQuery); +;/* + * jQuery UI Selectable 1.8.5 + * + * Copyright 2010, 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/Selectables + * + * Depends: + * jquery.ui.core.js + * jquery.ui.mouse.js + * jquery.ui.widget.js + */ +(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"), +selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("
")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX, +c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting", +c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d= +this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.righti||a.bottomb&&a.rightg&&a.bottom *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable"); +this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a==="disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this, +arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem= +c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset, +{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment(); +if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start", +a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute"); +if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a, +c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]== +document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate", +null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem): +d(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")},toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute|| +"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+jg&&b+la[this.floating?"width":"height"]?j:g0?"down":"up")}, +_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!= +this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a= +this.currentItem.find(":data(sortable-item)"),b=0;b=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable"); +if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h= +0;b--){var c=this.items[b],e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width= +this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f}, +update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b= +null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this)); +this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-f)this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.topthis.containment[3])? +g:!(g-this.offset.click.topthis.containment[2])?f:!(f-this.offset.click.left=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive", +g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over= +0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",a,this._uiHash());for(e=0;e li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"); +a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"); +if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var f=d.closest(".ui-accordion-header");a.active=f.length?f:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",function(g){return a._keydown(g)}).next().attr("role", +"tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(g){a._clickHandler.call(a,g,this);g.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){c("").addClass("ui-icon "+a.icons.header).prependTo(this.headers); +this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex"); +this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons(); +b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,f=this.headers.index(a.target),g=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:g=this.headers[(f+1)%d];break;case b.LEFT:case b.UP:g=this.headers[(f-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target); +a.preventDefault()}if(g){c(a.target).attr("tabIndex",-1);c(g).attr("tabIndex",0);g.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+ +c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options; +if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected); +a.next().addClass("ui-accordion-content-active")}h=a.next();f=this.active.next();g={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):h,oldContent:f};d=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(h,f,g,b,d)}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); +this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),g={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:f},h=this.active=c([]);this._toggle(h,f,g)}},_toggle:function(a,b,d,f,g){var h=this,e=h.options;h.toShow=a;h.toHide=b;h.data=d;var j=function(){if(h)return h._completed.apply(h,arguments)};h._trigger("changestart",null,h.data);h.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&f?{toShow:c([]),toHide:b,complete:j, +down:g,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:g,autoHeight:e.autoHeight||e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;f=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!f[k]&&!c.easing[k])k="slide";f[k]||(f[k]=function(l){this.slide(l,{easing:k,duration:i||700})}); +f[k](d)}else{if(e.collapsible&&f)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.5",animations:{slide:function(a, +b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),f=0,g={},h={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){h[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);g[i]={value:j[1], +unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(h,{step:function(j,i){if(i.prop=="height")f=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=f*g[i.prop].value+g[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",paddingTop:"hide", +paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery); +;/* + * jQuery UI Autocomplete 1.8.5 + * + * Copyright 2010, 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/Autocomplete + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + * jquery.ui.position.js + */ +(function(e){e.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var a=this,b=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!a.options.disabled){var d=e.ui.keyCode;switch(c.keyCode){case d.PAGE_UP:a._move("previousPage", +c);break;case d.PAGE_DOWN:a._move("nextPage",c);break;case d.UP:a._move("previous",c);c.preventDefault();break;case d.DOWN:a._move("next",c);c.preventDefault();break;case d.ENTER:case d.NUMPAD_ENTER:a.menu.element.is(":visible")&&c.preventDefault();case d.TAB:if(!a.menu.active)return;a.menu.select(c);break;case d.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay); +break}}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};this.menu=e("
    ").addClass("ui-autocomplete").appendTo(e(this.options.appendTo||"body",b)[0]).mousedown(function(c){var d=a.menu.element[0]; +c.target===d&&setTimeout(function(){e(document).one("mousedown",function(f){f.target!==a.element[0]&&f.target!==d&&!e.ui.contains(d,f.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,d){d=d.item.data("item.autocomplete");false!==a._trigger("focus",null,{item:d})&&/^key/.test(c.originalEvent.type)&&a.element.val(d.value)},selected:function(c,d){d=d.item.data("item.autocomplete");var f=a.previous;if(a.element[0]!==b.activeElement){a.element.focus(); +a.previous=f}if(false!==a._trigger("select",c,{item:d})){a.term=d.value;a.element.val(d.value)}a.close(c);a.selectedItem=d},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.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(a,b){e.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(e(b||"body",this.element[0].ownerDocument)[0])},_initSource:function(){var a=this,b,c;if(e.isArray(this.options.source)){b=this.options.source;this.source=function(d,f){f(e.ui.autocomplete.filter(b,d.term))}}else if(typeof this.options.source==="string"){c=this.options.source;this.source= +function(d,f){a.xhr&&a.xhr.abort();a.xhr=e.getJSON(c,d,function(g,i,h){h===a.xhr&&f(g);a.xhr=null})}}else this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length").data("item.autocomplete",b).append(e("").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}, +filter:function(a,b){var c=new RegExp(e.ui.autocomplete.escapeRegex(b),"i");return e.grep(a,function(d){return c.test(d.label||d.value||d)})}})})(jQuery); +(function(e){e.widget("ui.menu",{_create:function(){var a=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(b){if(e(b.target).closest(".ui-menu-item a").length){b.preventDefault();a.select(b)}});this.refresh()},refresh:function(){var a=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(b){a.activate(b,e(this).parent())}).mouseleave(function(){a.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.attr("scrollTop"),f=this.element.height();if(c<0)this.element.attr("scrollTop",d+c);else c>=f&&this.element.attr("scrollTop",d+c-f+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",a,{item:b})}, +deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},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(a,b,c){if(this.active){a=this.active[a+"All"](".ui-menu-item").eq(0); +a.length?this.activate(c,a):this.activate(c,this.element.children(b))}else this.activate(c,this.element.children(b))},nextPage:function(a){if(this.hasScroll())if(!this.active||this.last())this.activate(a,this.element.children(":first"));else{var b=this.active.offset().top,c=this.element.height(),d=this.element.children("li").filter(function(){var f=e(this).offset().top-b-c+e(this).height();return f<10&&f>-10});d.length||(d=this.element.children(":last"));this.activate(a,d)}else this.activate(a,this.element.children(!this.active|| +this.last()?":first":":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||this.first())this.activate(a,this.element.children(":last"));else{var b=this.active.offset().top,c=this.element.height();result=this.element.children("li").filter(function(){var d=e(this).offset().top-b+c-e(this).height();return d<10&&d>-10});result.length||(result=this.element.children(":first"));this.activate(a,result)}else this.activate(a,this.element.children(!this.active||this.first()?":last":":first"))}, +hasScroll:function(){return this.element.height()").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary;if(d.primary||d.secondary){b.addClass("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary"));d.primary&&b.prepend("");d.secondary&&b.append("");if(!this.options.text){b.addClass(e?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary"); +this.hasTitle||b.attr("title",c)}}else b.addClass("ui-button-text-only")}}});a.widget("ui.buttonset",{_create:function(){this.element.addClass("ui-buttonset");this._init()},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(":button, :submit, :reset, :checkbox, :radio, a, :data(button)").filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":visible").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end().end()}, +destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery); +;/* + * jQuery UI Dialog 1.8.5 + * + * Copyright 2010, 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/Dialog + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + * jquery.ui.button.js + * jquery.ui.draggable.js + * jquery.ui.mouse.js + * jquery.ui.position.js + * jquery.ui.resizable.js + */ +(function(c,j){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title"); +if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",f=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("
    ")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog", +"aria-labelledby":f}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var e=(a.uiDialogTitlebar=c("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),h=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i); +return false}).appendTo(e);(a.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("").addClass("ui-dialog-title").attr("id",f).html(d).prependTo(e);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;e.find("*").add(e).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&& +g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog"); +b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!==b.uiDialog[0])d=Math.max(d,c(this).css("z-index"))});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,f=d.options;if(f.modal&&!a||!f.stack&&!f.modal)return d._trigger("focus",b);if(f.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ= +f.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;d.next().length&&d.appendTo("body");a._size();a._position(b.position);d.show(b.show); +a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(f){if(f.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),e=g.filter(":first");g=g.filter(":last");if(f.target===g[0]&&!f.shiftKey){e.focus(1);return false}else if(f.target===e[0]&&f.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false, +f=c("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
    ").addClass("ui-dialog-buttonset").appendTo(f);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a,function(){return!(d=true)});if(d){c.each(a,function(e,h){h=c.isFunction(h)?{click:h,text:e}:h;e=c("",h).unbind("click").click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.fn.button&&e.button()});f.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(e){return{position:e.position, +offset:e.offset}}var b=this,d=b.options,f=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",e,a(h))},drag:function(e,h){b._trigger("drag",e,a(h))},stop:function(e,h){d.position=[h.position.left-f.scrollLeft(),h.position.top-f.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g); +b._trigger("dragStop",e,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}a=a===j?this.options.resizable:a;var d=this,f=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:d._minHeight(), +handles:a,start:function(e,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",e,b(h))},resize:function(e,h){d._trigger("resize",e,b(h))},stop:function(e,h){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();d._trigger("resizeStop",e,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight, +a.height)},_position:function(a){var b=[],d=[0,0],f;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "):[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,e){if(+b[g]===b[g]){d[g]=b[g];b[g]=e}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(f=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(a); +f||this.uiDialog.hide()},_setOption:function(a,b){var d=this,f=d.uiDialog,g=f.is(":data(resizable)"),e=false;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);e=true;break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":f.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case "draggable":b? +d._makeDraggable():f.draggable("destroy");break;case "height":e=true;break;case "maxHeight":g&&f.resizable("option","maxHeight",b);e=true;break;case "maxWidth":g&&f.resizable("option","maxWidth",b);e=true;break;case "minHeight":g&&f.resizable("option","minHeight",b);e=true;break;case "minWidth":g&&f.resizable("option","minWidth",b);e=true;break;case "position":d._position(b);break;case "resizable":g&&!b&&f.resizable("destroy");g&&typeof b==="string"&&f.resizable("option","handles",b);!g&&b!==false&& +d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break;case "width":e=true;break}c.Widget.prototype._setOption.apply(d,arguments);e&&d._size()},_size:function(){var a=this.options,b;this.element.css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();this.element.css(a.height==="auto"?{minHeight:Math.max(a.minHeight-b,0),height:c.support.minHeight?"auto":Math.max(a.minHeight- +b,0)}:{minHeight:0,height:Math.max(a.height-b,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.5",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","), +function(a){return a+".dialog-overlay"}).join(" "),create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inArray(a,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var b=0;c.each(this.instances,function(){b=Math.max(b,this.css("z-index"))});this.maxZ=b},height:function(){var a, +b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a");if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}else this.range=d("
    ");this.range.appendTo(this.element).addClass("ui-slider-range");if(b.range==="min"||b.range==="max")this.range.addClass("ui-slider-range-"+b.range);this.range.addClass("ui-widget-header")}d(".ui-slider-handle",this.element).length===0&&d("").appendTo(this.element).addClass("ui-slider-handle"); +if(b.values&&b.values.length)for(;d(".ui-slider-handle",this.element).length").appendTo(this.element).addClass("ui-slider-handle");this.handles=d(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur(); +else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(c){d(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(c){var e=true,f=d(this).data("index.ui-slider-handle"),h,g,i;if(!a.options.disabled){switch(c.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:e= +false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");h=a._start(c,f);if(h===false)return}break}i=a.options.step;h=a.options.values&&a.options.values.length?(g=a.values(f)):(g=a.value());switch(c.keyCode){case d.ui.keyCode.HOME:g=a._valueMin();break;case d.ui.keyCode.END:g=a._valueMax();break;case d.ui.keyCode.PAGE_UP:g=a._trimAlignValue(h+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:g=a._trimAlignValue(h-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(h=== +a._valueMax())return;g=a._trimAlignValue(h+i);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(h===a._valueMin())return;g=a._trimAlignValue(h-i);break}a._slide(c,f,g);return e}}).keyup(function(c){var e=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(c,e);a._change(c,e);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"); +this._mouseDestroy();return this},_mouseCapture:function(a){var b=this.options,c,e,f,h,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});e=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(i){var j=Math.abs(c-h.values(i));if(e>j){e=j;f=d(this);g=i}});if(b.range===true&&this.values(1)===b.min){g+=1;f=d(this.handles[g])}if(this._start(a, +g)===false)return false;this._mouseSliding=true;h._handleIndex=g;f.addClass("ui-state-active").focus();b=f.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-f.width()/2,top:a.pageY-b.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b= +this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b= +this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b); +c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var e;if(this.options.values&&this.options.values.length){e=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>e||b===1&&c1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;e=arguments[0];for(f=0;fthis._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=a%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a= +this.options.range,b=this.options,c=this,e=!this._animateOff?b.animate:false,f,h={},g,i,j,l;if(this.options.values&&this.options.values.length)this.handles.each(function(k){f=(c.values(k)-c._valueMin())/(c._valueMax()-c._valueMin())*100;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";d(this).stop(1,1)[e?"animate":"css"](h,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(k===0)c.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},b.animate);if(k===1)c.range[e?"animate":"css"]({width:f- +g+"%"},{queue:false,duration:b.animate})}else{if(k===0)c.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},b.animate);if(k===1)c.range[e?"animate":"css"]({height:f-g+"%"},{queue:false,duration:b.animate})}g=f});else{i=this.value();j=this._valueMin();l=this._valueMax();f=l!==j?(i-j)/(l-j)*100:0;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[e?"animate":"css"](h,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"}, +b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[e?"animate":"css"]({width:100-f+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[e?"animate":"css"]({height:100-f+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.5"})})(jQuery); +;/* + * jQuery UI Tabs 1.8.5 + * + * Copyright 2010, 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/Tabs + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"
    ",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
  • #{label}
  • "},_create:function(){this._tabify(true)},_setOption:function(a,e){if(a=="selected")this.options.collapsible&& +e==this.options.selected||this.select(e);else{this.options[a]=e;this._tabify()}},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var a=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[a].concat(d.makeArray(arguments)))},_ui:function(a,e){return{tab:a,panel:e,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var a= +d(this);a.html(a.data("label.tabs")).removeData("label.tabs")})},_tabify:function(a){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var b=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| +(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))b.panels=b.panels.add(b._sanitizeSelector(i));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=b._tabId(f);f.href="#"+i;f=d("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(b.panels[g-1]||b.list);f.data("destroy.tabs",true)}b.panels=b.panels.add(f)}else c.disabled.push(g)});if(a){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); +this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(b._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= +this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return b.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); +if(c.selected>=0&&this.anchors.length){this.panels.eq(c.selected).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");b.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[c.selected],b.panels[c.selected]))});this.load(c.selected)}d(window).bind("unload",function(){b.lis.add(b.anchors).unbind(".tabs");b.lis=b.anchors=b.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));this.element[c.collapsible?"addClass": +"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);a=0;for(var j;j=this.lis[a];a++)d(j)[d.inArray(a,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+g)};this.lis.bind("mouseover.tabs", +function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",function(){e(f,o);b._trigger("show", +null,b._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");b._trigger("show",null,b._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){b.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);b.element.dequeue("tabs")})}:function(g,f){b.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");b.element.dequeue("tabs")};this.anchors.bind(c.event+".tabs", +function(){var g=this,f=d(g).closest("li"),i=b.panels.filter(":not(.ui-tabs-hide)"),l=d(b._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||b.panels.filter(":animated").length||b._trigger("select",null,b._ui(this,l[0]))===false){this.blur();return false}c.selected=b.anchors.index(this);b.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=-1;c.cookie&&b._cookie(c.selected,c.cookie);b.element.queue("tabs", +function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&b._cookie(c.selected,c.cookie);b.element.queue("tabs",function(){r(g,l)});b.load(b.anchors.index(this));this.blur();return false}c.cookie&&b._cookie(c.selected,c.cookie);if(l.length){i.length&&b.element.queue("tabs",function(){s(g,i)});b.element.queue("tabs",function(){r(g,l)});b.load(b.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";d.browser.msie&&this.blur()});this.anchors.bind("click.tabs", +function(){return false})},_getIndex:function(a){if(typeof a=="string")a=this.anchors.index(this.anchors.filter("[href$="+a+"]"));return a},destroy:function(){var a=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=d.data(this,"href.tabs");if(e)this.href= +e;var b=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){b.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});a.cookie&&this._cookie(null,a.cookie);return this},add:function(a,e,b){if(b===p)b=this.anchors.length; +var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,a).replace(/#\{label\}/g,e));a=!a.indexOf("#")?a.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=d("#"+a);j.length||(j=d(h.panelTemplate).attr("id",a).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(b>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[b]); +j.insertBefore(this.panels[b])}h.disabled=d.map(h.disabled,function(k){return k>=b?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[b],this.panels[b]));return this},remove:function(a){a=this._getIndex(a);var e=this.options,b=this.lis.eq(a).remove(),c=this.panels.eq(a).remove(); +if(b.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(a+(a+1=a?--h:h});this._tabify();this._trigger("remove",null,this._ui(b.find("a")[0],c[0]));return this},enable:function(a){a=this._getIndex(a);var e=this.options;if(d.inArray(a,e.disabled)!=-1){this.lis.eq(a).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(b){return b!=a});this._trigger("enable",null, +this._ui(this.anchors[a],this.panels[a]));return this}},disable:function(a){a=this._getIndex(a);var e=this.options;if(a!=e.selected){this.lis.eq(a).addClass("ui-state-disabled");e.disabled.push(a);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))}return this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;this.anchors.eq(a).trigger(this.options.event+".tabs");return this}, +load:function(a){a=this._getIndex(a);var e=this,b=this.options,c=this.anchors.eq(a)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(a).addClass("ui-state-processing");if(b.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(b.spinner)}this.xhr=d.ajax(d.extend({},b.ajaxOptions,{url:h,success:function(k,n){d(e._sanitizeSelector(c.hash)).html(k);e._cleanup();b.cache&&d.data(c,"cache.tabs", +true);e._trigger("load",null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[a],e.panels[a]));try{b.ajaxOptions.error(k,n,a,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(a, +e){this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.5"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(a,e){var b=this,c=this.options,h=b._rotate||(b._rotate=function(j){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var k=c.selected;b.select(++k')}function E(a,b){d.extend(a, +b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.5"}});var y=(new Date).getTime();d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]= +f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('
    ')}}, +_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&& +b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f== +""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a, +c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b), +true);this._updateDatepicker(b);this._updateAlternate(b)}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}E(a.settings,e||{});b=b&&b.constructor== +Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]); +d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}}, +_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b= +d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false; +for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target|| +a;if(a.nodeName.toLowerCase()!="input")a=d("input",a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");E(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a); +d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&& +d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;var i=d.datepicker._getBorders(b.dpDiv);b.dpDiv.find("iframe.ui-datepicker-cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f, +h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover"); +this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover"); +this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);var e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"); +a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input.focus()},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(), +k=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>k&&k>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1);)a=a[b?"previousSibling":"nextSibling"]; +a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose"))a.apply(b.input?b.input[0]:null,[b.input?b.input.val(): +"",b]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&& +!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth; +b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b= +this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a= +d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a, +"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b== +"object"?b.toString():b+"";if(b=="")return null;for(var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,k=c=-1,l=-1,u=-1,j=false,o=function(p){(p=z+1 +-1){k=1;l=u;do{e=this._getDaysInMonth(c,k-1);if(l<=e)break;k++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,k-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=k||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24* +60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=j+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e? +"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),k= +this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),j=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=j&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a, +"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-k,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+ +n+"";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+k,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+r+"":f?"":''+r+"";k=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;k=!h?k:this.formatDate(k,r,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
    '+(c?h:"")+(this._isInRange(a,r)?'":"")+(c?"":h)+"
    ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;k=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),w=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var M=this._getDefaultDate(a),I="",C=0;C1)switch(D){case 0:x+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:x+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";t="";break}x+='">'}x+='
    '+(/all|left/.test(t)&&C==0?c? +f:n:"")+(/all|right/.test(t)&&C==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,j,o,C>0||D>0,z,v)+'
    ';var A=k?'":"";for(t=0;t<7;t++){var q=(t+h)%7;A+="=5?' class="ui-datepicker-week-end"':"")+'>'+s[q]+""}x+=A+"";A=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay, +A);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;A=l?6:Math.ceil((t+A)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var O=0;O";var P=!k?"":'";for(t=0;t<7;t++){var F=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,K=B&&!H||!F[0]||j&&qo;P+='";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=P+""}g++;if(g>11){g=0;m++}x+="
    '+this._get(a,"weekHeader")+"
    '+this._get(a,"calculateWeek")(q)+""+(B&&!w?" ":K?''+q.getDate()+ +"":''+q.getDate()+"")+"
    "+(l?""+(i[0]>0&&D==i[1]-1?'
    ':""):"");N+=x}I+=N}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'': +"");a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var k=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),j='
    ',o="";if(h||!k)o+=''+i[b]+"";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(j+=o+(h||!(k&&l)?" ":""));if(h||!l)j+=''+c+"";else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b, +i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(j+='"}j+=this._get(a,"yearSuffix");if(u)j+=(h||!(k&&l)?" ":"")+o;j+="
    ";return j},_adjustInstDate:function(a,b,c){var e= +a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a, +"onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a); +c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a, +"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker= +function(a){if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b)); +return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new L;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.5";window["DP_jQuery_"+y]=d})(jQuery); +;/* + * jQuery UI Progressbar 1.8.5 + * + * Copyright 2010, 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/Progressbar + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function(b,c){b.widget("ui.progressbar",{options:{value:0},min:0,max:100,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this._value()});this.valueDiv=b("
    ").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"); +this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===c)return this._value();this._setOption("value",a);return this},_setOption:function(a,d){if(a==="value"){this.options.value=d;this._refreshValue();this._trigger("change")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.max,Math.max(this.min,a))},_refreshValue:function(){var a=this.value();this.valueDiv.toggleClass("ui-corner-right", +a===this.max).width(a+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.5"})})(jQuery); +;/* + * jQuery UI Effects 1.8.5 + * + * Copyright 2010, 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/Effects/ + */ +jQuery.effects||function(f,j){function l(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1], +16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[f.trim(c).toLowerCase()]}function r(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return l(b)}function n(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, +a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function o(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in s||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function t(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= +a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:f.fx.speeds[b]||f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=r(b.elem,a);b.end=l(b.end);b.colorInit= +true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var m={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189, +183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255, +165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},p=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,d){if(f.isFunction(b)){d=b;b=null}return this.each(function(){var e=f(this),g=e.attr("style")||" ",h=o(n.call(this)),q,u=e.attr("className");f.each(p,function(v, +i){c[i]&&e[i+"Class"](c[i])});q=o(n.call(this));e.attr("className",u);e.animate(t(h,q),a,b,function(){f.each(p,function(v,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a? +f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.5",save:function(c,a){for(var b=0;b").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"}); +c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments);a={options:a[1],duration:a[2],callback:a[3]};var b=f.effects[c];return b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c|| +typeof c=="number"||f.fx.speeds[c]||!f.effects[c])return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||!f.effects[c])return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||!f.effects[c]||typeof c== +"boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c, +a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/= +e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+ +b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/ +2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+ +e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery); +;/* + * jQuery UI Effects Fade 1.8.5 + * + * Copyright 2010, 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/Effects/Fade + * + * Depends: + * jquery.effects.core.js + */ +(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery); +;/* + * jQuery UI Effects Fold 1.8.5 + * + * Copyright 2010, 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/Effects/Fold + * + * Depends: + * jquery.effects.core.js + */ +(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","left"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1],10)/100* +f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery); +;/* + * jQuery UI Effects Highlight 1.8.5 + * + * Copyright 2010, 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/Effects/Highlight + * + * Depends: + * jquery.effects.core.js + */ +(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&& +this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); +;/* + * jQuery UI Effects Pulsate 1.8.5 + * + * Copyright 2010, 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/Effects/Pulsate + * + * Depends: + * jquery.effects.core.js + */ +(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments); +b.dequeue()})})}})(jQuery); +; \ No newline at end of file diff --git a/WebContent/js/jquery.lazyload.pack.js b/WebContent/js/jquery.lazyload.pack.js new file mode 100644 index 0000000..5449316 --- /dev/null +++ b/WebContent/js/jquery.lazyload.pack.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5($){$.J.L=5(r){8 1={d:0,A:0,b:"h",v:"N",3:4};6(r){$.D(1,r)}8 m=9;6("h"==1.b){$(1.3).p("h",5(b){8 C=0;m.t(5(){6(!$.k(9,1)&&!$.l(9,1)){$(9).z("o")}j{6(C++>1.A){g B}}});8 w=$.M(m,5(f){g!f.e});m=$(w)})}g 9.t(5(){8 2=9;$(2).c("s",$(2).c("i"));6("h"!=1.b||$.k(2,1)||$.l(2,1)){6(1.u){$(2).c("i",1.u)}j{$(2).K("i")}2.e=B}j{2.e=x}$(2).T("o",5(){6(!9.e){$("").p("X",5(){$(2).Y().c("i",$(2).c("s"))[1.v](1.Z);2.e=x}).c("i",$(2).c("s"))}});6("h"!=1.b){$(2).p(1.b,5(b){6(!2.e){$(2).z("o")}})}})};$.k=5(f,1){6(1.3===E||1.3===4){8 7=$(4).F()+$(4).O()}j{8 7=$(1.3).n().G+$(1.3).F()}g 7<=$(f).n().G-1.d};$.l=5(f,1){6(1.3===E||1.3===4){8 7=$(4).I()+$(4).U()}j{8 7=$(1.3).n().q+$(1.3).I()}g 7<=$(f).n().q-1.d};$.D($.P[\':\'],{"Q-H-7":"$.k(a, {d : 0, 3: 4})","R-H-7":"!$.k(a, {d : 0, 3: 4})","S-y-7":"$.l(a, {d : 0, 3: 4})","q-y-7":"!$.l(a, {d : 0, 3: 4})"})})(W);',62,62,'|settings|self|container|window|function|if|fold|var|this||event|attr|threshold|loaded|element|return|scroll|src|else|belowthefold|rightoffold|elements|offset|appear|bind|left|options|original|each|placeholder|effect|temp|true|of|trigger|failurelimit|false|counter|extend|undefined|height|top|the|width|fn|removeAttr|lazyload|grep|show|scrollTop|expr|below|above|right|one|scrollLeft|img|jQuery|load|hide|effectspeed'.split('|'),0,{})) diff --git a/WebContent/js/jquery.validate.js b/WebContent/js/jquery.validate.js new file mode 100644 index 0000000..e402ea8 --- /dev/null +++ b/WebContent/js/jquery.validate.js @@ -0,0 +1,1146 @@ +/* + * jQuery validation plug-in 1.7 + * + * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ + * http://docs.jquery.com/Plugins/Validation + * + * Copyright (c) 2006 - 2008 Jörn Zaefferer + * + * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $ + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ + +(function($) { + +$.extend($.fn, { + // http://docs.jquery.com/Plugins/Validation/validate + validate: function( options ) { + + // if nothing is selected, return nothing; can't chain anyway + if (!this.length) { + options && options.debug && window.console && console.warn( "nothing selected, can't validate, returning nothing" ); + return; + } + + // check if a validator for this form was already created + var validator = $.data(this[0], 'validator'); + if ( validator ) { + return validator; + } + + validator = new $.validator( options, this[0] ); + $.data(this[0], 'validator', validator); + + if ( validator.settings.onsubmit ) { + + // allow suppresing validation by adding a cancel class to the submit button + this.find("input, button").filter(".cancel").click(function() { + validator.cancelSubmit = true; + }); + + // when a submitHandler is used, capture the submitting button + if (validator.settings.submitHandler) { + this.find("input, button").filter(":submit").click(function() { + validator.submitButton = this; + }); + } + + // validate the form on submit + this.submit( function( event ) { + if ( validator.settings.debug ) + // prevent form submit to be able to see console output + event.preventDefault(); + + function handle() { + if ( validator.settings.submitHandler ) { + if (validator.submitButton) { + // insert a hidden input as a replacement for the missing submit button + var hidden = $("").attr("name", validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm); + } + validator.settings.submitHandler.call( validator, validator.currentForm ); + if (validator.submitButton) { + // and clean up afterwards; thanks to no-block-scope, hidden can be referenced + hidden.remove(); + } + return false; + } + return true; + } + + // prevent submit for invalid forms or custom submit handlers + if ( validator.cancelSubmit ) { + validator.cancelSubmit = false; + return handle(); + } + if ( validator.form() ) { + if ( validator.pendingRequest ) { + validator.formSubmitted = true; + return false; + } + return handle(); + } else { + validator.focusInvalid(); + return false; + } + }); + } + + return validator; + }, + // http://docs.jquery.com/Plugins/Validation/valid + valid: function() { + if ( $(this[0]).is('form')) { + return this.validate().form(); + } else { + var valid = true; + var validator = $(this[0].form).validate(); + this.each(function() { + valid &= validator.element(this); + }); + return valid; + } + }, + // attributes: space seperated list of attributes to retrieve and remove + removeAttrs: function(attributes) { + var result = {}, + $element = this; + $.each(attributes.split(/\s/), function(index, value) { + result[value] = $element.attr(value); + $element.removeAttr(value); + }); + return result; + }, + // http://docs.jquery.com/Plugins/Validation/rules + rules: function(command, argument) { + var element = this[0]; + + if (command) { + var settings = $.data(element.form, 'validator').settings; + var staticRules = settings.rules; + var existingRules = $.validator.staticRules(element); + switch(command) { + case "add": + $.extend(existingRules, $.validator.normalizeRule(argument)); + staticRules[element.name] = existingRules; + if (argument.messages) + settings.messages[element.name] = $.extend( settings.messages[element.name], argument.messages ); + break; + case "remove": + if (!argument) { + delete staticRules[element.name]; + return existingRules; + } + var filtered = {}; + $.each(argument.split(/\s/), function(index, method) { + filtered[method] = existingRules[method]; + delete existingRules[method]; + }); + return filtered; + } + } + + var data = $.validator.normalizeRules( + $.extend( + {}, + $.validator.metadataRules(element), + $.validator.classRules(element), + $.validator.attributeRules(element), + $.validator.staticRules(element) + ), element); + + // make sure required is at front + if (data.required) { + var param = data.required; + delete data.required; + data = $.extend({required: param}, data); + } + + return data; + } +}); + +// Custom selectors +$.extend($.expr[":"], { + // http://docs.jquery.com/Plugins/Validation/blank + blank: function(a) {return !$.trim("" + a.value);}, + // http://docs.jquery.com/Plugins/Validation/filled + filled: function(a) {return !!$.trim("" + a.value);}, + // http://docs.jquery.com/Plugins/Validation/unchecked + unchecked: function(a) {return !a.checked;} +}); + +// constructor for validator +$.validator = function( options, form ) { + this.settings = $.extend( true, {}, $.validator.defaults, options ); + this.currentForm = form; + this.init(); +}; + +$.validator.format = function(source, params) { + if ( arguments.length == 1 ) + return function() { + var args = $.makeArray(arguments); + args.unshift(source); + return $.validator.format.apply( this, args ); + }; + if ( arguments.length > 2 && params.constructor != Array ) { + params = $.makeArray(arguments).slice(1); + } + if ( params.constructor != Array ) { + params = [ params ]; + } + $.each(params, function(i, n) { + source = source.replace(new RegExp("\\{" + i + "\\}", "g"), n); + }); + return source; +}; + +$.extend($.validator, { + + defaults: { + messages: {}, + groups: {}, + rules: {}, + errorClass: "error", + validClass: "valid", + errorElement: "label", + focusInvalid: true, + errorContainer: $( [] ), + errorLabelContainer: $( [] ), + onsubmit: true, + ignore: [], + ignoreTitle: false, + onfocusin: function(element) { + this.lastActive = element; + + // hide error label and remove error class on focus if enabled + if ( this.settings.focusCleanup && !this.blockFocusCleanup ) { + this.settings.unhighlight && this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); + this.errorsFor(element).hide(); + } + }, + onfocusout: function(element) { + if ( !this.checkable(element) && (element.name in this.submitted || !this.optional(element)) ) { + this.element(element); + } + }, + onkeyup: function(element) { + if ( element.name in this.submitted || element == this.lastElement ) { + this.element(element); + } + }, + onclick: function(element) { + // click on selects, radiobuttons and checkboxes + if ( element.name in this.submitted ) + this.element(element); + // or option elements, check parent select in that case + else if (element.parentNode.name in this.submitted) + this.element(element.parentNode); + }, + highlight: function( element, errorClass, validClass ) { + $(element).addClass(errorClass).removeClass(validClass); + }, + unhighlight: function( element, errorClass, validClass ) { + $(element).removeClass(errorClass).addClass(validClass); + } + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/setDefaults + setDefaults: function(settings) { + $.extend( $.validator.defaults, settings ); + }, + + messages: { + required: "This field is required.", + remote: "Please fix this field.", + email: "Please enter a valid email address.", + url: "Please enter a valid URL.", + date: "Please enter a valid date.", + dateISO: "Please enter a valid date (ISO).", + number: "Please enter a valid number.", + digits: "Please enter only digits.", + creditcard: "Please enter a valid credit card number.", + equalTo: "Please enter the same value again.", + accept: "Please enter a value with a valid extension.", + maxlength: $.validator.format("Please enter no more than {0} characters."), + minlength: $.validator.format("Please enter at least {0} characters."), + rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."), + range: $.validator.format("Please enter a value between {0} and {1}."), + max: $.validator.format("Please enter a value less than or equal to {0}."), + min: $.validator.format("Please enter a value greater than or equal to {0}.") + }, + + autoCreateRanges: false, + + prototype: { + + init: function() { + this.labelContainer = $(this.settings.errorLabelContainer); + this.errorContext = this.labelContainer.length && this.labelContainer || $(this.currentForm); + this.containers = $(this.settings.errorContainer).add( this.settings.errorLabelContainer ); + this.submitted = {}; + this.valueCache = {}; + this.pendingRequest = 0; + this.pending = {}; + this.invalid = {}; + this.reset(); + + var groups = (this.groups = {}); + $.each(this.settings.groups, function(key, value) { + $.each(value.split(/\s/), function(index, name) { + groups[name] = key; + }); + }); + var rules = this.settings.rules; + $.each(rules, function(key, value) { + rules[key] = $.validator.normalizeRule(value); + }); + + function delegate(event) { + var validator = $.data(this[0].form, "validator"), + eventType = "on" + event.type.replace(/^validate/, ""); + validator.settings[eventType] && validator.settings[eventType].call(validator, this[0] ); + } + $(this.currentForm) + .validateDelegate(":text, :password, :file, select, textarea", "focusin focusout keyup", delegate) + .validateDelegate(":radio, :checkbox, select, option", "click", delegate); + + if (this.settings.invalidHandler) + $(this.currentForm).bind("invalid-form.validate", this.settings.invalidHandler); + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/form + form: function() { + this.checkForm(); + $.extend(this.submitted, this.errorMap); + this.invalid = $.extend({}, this.errorMap); + if (!this.valid()) + $(this.currentForm).triggerHandler("invalid-form", [this]); + this.showErrors(); + return this.valid(); + }, + + checkForm: function() { + this.prepareForm(); + for ( var i = 0, elements = (this.currentElements = this.elements()); elements[i]; i++ ) { + this.check( elements[i] ); + } + return this.valid(); + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/element + element: function( element ) { + element = this.clean( element ); + this.lastElement = element; + this.prepareElement( element ); + this.currentElements = $(element); + var result = this.check( element ); + if ( result ) { + delete this.invalid[element.name]; + } else { + this.invalid[element.name] = true; + } + if ( !this.numberOfInvalids() ) { + // Hide error containers on last error + this.toHide = this.toHide.add( this.containers ); + } + this.showErrors(); + return result; + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/showErrors + showErrors: function(errors) { + if(errors) { + // add items to error list and map + $.extend( this.errorMap, errors ); + this.errorList = []; + for ( var name in errors ) { + this.errorList.push({ + message: errors[name], + element: this.findByName(name)[0] + }); + } + // remove items from success list + this.successList = $.grep( this.successList, function(element) { + return !(element.name in errors); + }); + } + this.settings.showErrors + ? this.settings.showErrors.call( this, this.errorMap, this.errorList ) + : this.defaultShowErrors(); + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/resetForm + resetForm: function() { + if ( $.fn.resetForm ) + $( this.currentForm ).resetForm(); + this.submitted = {}; + this.prepareForm(); + this.hideErrors(); + this.elements().removeClass( this.settings.errorClass ); + }, + + numberOfInvalids: function() { + return this.objectLength(this.invalid); + }, + + objectLength: function( obj ) { + var count = 0; + for ( var i in obj ) + count++; + return count; + }, + + hideErrors: function() { + this.addWrapper( this.toHide ).hide(); + }, + + valid: function() { + return this.size() == 0; + }, + + size: function() { + return this.errorList.length; + }, + + focusInvalid: function() { + if( this.settings.focusInvalid ) { + try { + $(this.findLastActive() || this.errorList.length && this.errorList[0].element || []) + .filter(":visible") + .focus() + // manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find + .trigger("focusin"); + } catch(e) { + // ignore IE throwing errors when focusing hidden elements + } + } + }, + + findLastActive: function() { + var lastActive = this.lastActive; + return lastActive && $.grep(this.errorList, function(n) { + return n.element.name == lastActive.name; + }).length == 1 && lastActive; + }, + + elements: function() { + var validator = this, + rulesCache = {}; + + // select all valid inputs inside the form (no submit or reset buttons) + // workaround $Query([]).add until http://dev.jquery.com/ticket/2114 is solved + return $([]).add(this.currentForm.elements) + .filter(":input") + .not(":submit, :reset, :image, [disabled]") + .not( this.settings.ignore ) + .filter(function() { + !this.name && validator.settings.debug && window.console && console.error( "%o has no name assigned", this); + + // select only the first element for each name, and only those with rules specified + if ( this.name in rulesCache || !validator.objectLength($(this).rules()) ) + return false; + + rulesCache[this.name] = true; + return true; + }); + }, + + clean: function( selector ) { + return $( selector )[0]; + }, + + errors: function() { + return $( this.settings.errorElement + "." + this.settings.errorClass, this.errorContext ); + }, + + reset: function() { + this.successList = []; + this.errorList = []; + this.errorMap = {}; + this.toShow = $([]); + this.toHide = $([]); + this.currentElements = $([]); + }, + + prepareForm: function() { + this.reset(); + this.toHide = this.errors().add( this.containers ); + }, + + prepareElement: function( element ) { + this.reset(); + this.toHide = this.errorsFor(element); + }, + + check: function( element ) { + element = this.clean( element ); + + // if radio/checkbox, validate first element in group instead + if (this.checkable(element)) { + element = this.findByName( element.name )[0]; + } + + var rules = $(element).rules(); + var dependencyMismatch = false; + for( method in rules ) { + var rule = { method: method, parameters: rules[method] }; + try { + var result = $.validator.methods[method].call( this, element.value.replace(/\r/g, ""), element, rule.parameters ); + + // if a method indicates that the field is optional and therefore valid, + // don't mark it as valid when there are no other rules + if ( result == "dependency-mismatch" ) { + dependencyMismatch = true; + continue; + } + dependencyMismatch = false; + + if ( result == "pending" ) { + this.toHide = this.toHide.not( this.errorsFor(element) ); + return; + } + + if( !result ) { + this.formatAndAdd( element, rule ); + return false; + } + } catch(e) { + this.settings.debug && window.console && console.log("exception occured when checking element " + element.id + + ", check the '" + rule.method + "' method", e); + throw e; + } + } + if (dependencyMismatch) + return; + if ( this.objectLength(rules) ) + this.successList.push(element); + return true; + }, + + // return the custom message for the given element and validation method + // specified in the element's "messages" metadata + customMetaMessage: function(element, method) { + if (!$.metadata) + return; + + var meta = this.settings.meta + ? $(element).metadata()[this.settings.meta] + : $(element).metadata(); + + return meta && meta.messages && meta.messages[method]; + }, + + // return the custom message for the given element name and validation method + customMessage: function( name, method ) { + var m = this.settings.messages[name]; + return m && (m.constructor == String + ? m + : m[method]); + }, + + // return the first defined argument, allowing empty strings + findDefined: function() { + for(var i = 0; i < arguments.length; i++) { + if (arguments[i] !== undefined) + return arguments[i]; + } + return undefined; + }, + + defaultMessage: function( element, method) { + return this.findDefined( + this.customMessage( element.name, method ), + this.customMetaMessage( element, method ), + // title is never undefined, so handle empty string as undefined + !this.settings.ignoreTitle && element.title || undefined, + $.validator.messages[method], + "Warning: No message defined for " + element.name + "" + ); + }, + + formatAndAdd: function( element, rule ) { + var message = this.defaultMessage( element, rule.method ), + theregex = /\$?\{(\d+)\}/g; + if ( typeof message == "function" ) { + message = message.call(this, rule.parameters, element); + } else if (theregex.test(message)) { + message = jQuery.format(message.replace(theregex, '{$1}'), rule.parameters); + } + this.errorList.push({ + message: message, + element: element + }); + + this.errorMap[element.name] = message; + this.submitted[element.name] = message; + }, + + addWrapper: function(toToggle) { + if ( this.settings.wrapper ) + toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); + return toToggle; + }, + + defaultShowErrors: function() { + for ( var i = 0; this.errorList[i]; i++ ) { + var error = this.errorList[i]; + this.settings.highlight && this.settings.highlight.call( this, error.element, this.settings.errorClass, this.settings.validClass ); + this.showLabel( error.element, error.message ); + } + if( this.errorList.length ) { + this.toShow = this.toShow.add( this.containers ); + } + if (this.settings.success) { + for ( var i = 0; this.successList[i]; i++ ) { + this.showLabel( this.successList[i] ); + } + } + if (this.settings.unhighlight) { + for ( var i = 0, elements = this.validElements(); elements[i]; i++ ) { + this.settings.unhighlight.call( this, elements[i], this.settings.errorClass, this.settings.validClass ); + } + } + this.toHide = this.toHide.not( this.toShow ); + this.hideErrors(); + this.addWrapper( this.toShow ).show(); + }, + + validElements: function() { + return this.currentElements.not(this.invalidElements()); + }, + + invalidElements: function() { + return $(this.errorList).map(function() { + return this.element; + }); + }, + + showLabel: function(element, message) { + var label = this.errorsFor( element ); + if ( label.length ) { + // refresh error/success class + label.removeClass().addClass( this.settings.errorClass ); + + // check if we have a generated label, replace the message then + label.attr("generated") && label.html(message); + } else { + // create label + label = $("<" + this.settings.errorElement + "/>") + .attr({"for": this.idOrName(element), generated: true}) + .addClass(this.settings.errorClass) + .html(message || ""); + if ( this.settings.wrapper ) { + // make sure the element is visible, even in IE + // actually showing the wrapped element is handled elsewhere + label = label.hide().show().wrap("<" + this.settings.wrapper + "/>").parent(); + } + if ( !this.labelContainer.append(label).length ) + this.settings.errorPlacement + ? this.settings.errorPlacement(label, $(element) ) + : label.insertAfter(element); + } + if ( !message && this.settings.success ) { + label.text(""); + typeof this.settings.success == "string" + ? label.addClass( this.settings.success ) + : this.settings.success( label ); + } + this.toShow = this.toShow.add(label); + }, + + errorsFor: function(element) { + var name = this.idOrName(element); + return this.errors().filter(function() { + return $(this).attr('for') == name; + }); + }, + + idOrName: function(element) { + return this.groups[element.name] || (this.checkable(element) ? element.name : element.id || element.name); + }, + + checkable: function( element ) { + return /radio|checkbox/i.test(element.type); + }, + + findByName: function( name ) { + // select by name and filter by form for performance over form.find("[name=...]") + var form = this.currentForm; + return $(document.getElementsByName(name)).map(function(index, element) { + return element.form == form && element.name == name && element || null; + }); + }, + + getLength: function(value, element) { + switch( element.nodeName.toLowerCase() ) { + case 'select': + return $("option:selected", element).length; + case 'input': + if( this.checkable( element) ) + return this.findByName(element.name).filter(':checked').length; + } + return value.length; + }, + + depend: function(param, element) { + return this.dependTypes[typeof param] + ? this.dependTypes[typeof param](param, element) + : true; + }, + + dependTypes: { + "boolean": function(param, element) { + return param; + }, + "string": function(param, element) { + return !!$(param, element.form).length; + }, + "function": function(param, element) { + return param(element); + } + }, + + optional: function(element) { + return !$.validator.methods.required.call(this, $.trim(element.value), element) && "dependency-mismatch"; + }, + + startRequest: function(element) { + if (!this.pending[element.name]) { + this.pendingRequest++; + this.pending[element.name] = true; + } + }, + + stopRequest: function(element, valid) { + this.pendingRequest--; + // sometimes synchronization fails, make sure pendingRequest is never < 0 + if (this.pendingRequest < 0) + this.pendingRequest = 0; + delete this.pending[element.name]; + if ( valid && this.pendingRequest == 0 && this.formSubmitted && this.form() ) { + $(this.currentForm).submit(); + this.formSubmitted = false; + } else if (!valid && this.pendingRequest == 0 && this.formSubmitted) { + $(this.currentForm).triggerHandler("invalid-form", [this]); + this.formSubmitted = false; + } + }, + + previousValue: function(element) { + return $.data(element, "previousValue") || $.data(element, "previousValue", { + old: null, + valid: true, + message: this.defaultMessage( element, "remote" ) + }); + } + + }, + + classRuleSettings: { + required: {required: true}, + email: {email: true}, + url: {url: true}, + date: {date: true}, + dateISO: {dateISO: true}, + dateDE: {dateDE: true}, + number: {number: true}, + numberDE: {numberDE: true}, + digits: {digits: true}, + creditcard: {creditcard: true} + }, + + addClassRules: function(className, rules) { + className.constructor == String ? + this.classRuleSettings[className] = rules : + $.extend(this.classRuleSettings, className); + }, + + classRules: function(element) { + var rules = {}; + var classes = $(element).attr('class'); + classes && $.each(classes.split(' '), function() { + if (this in $.validator.classRuleSettings) { + $.extend(rules, $.validator.classRuleSettings[this]); + } + }); + return rules; + }, + + attributeRules: function(element) { + var rules = {}; + var $element = $(element); + + for (method in $.validator.methods) { + var value = $element.attr(method); + if (value) { + rules[method] = value; + } + } + + // maxlength may be returned as -1, 2147483647 (IE) and 524288 (safari) for text inputs + if (rules.maxlength && /-1|2147483647|524288/.test(rules.maxlength)) { + delete rules.maxlength; + } + + return rules; + }, + + metadataRules: function(element) { + if (!$.metadata) return {}; + + var meta = $.data(element.form, 'validator').settings.meta; + return meta ? + $(element).metadata()[meta] : + $(element).metadata(); + }, + + staticRules: function(element) { + var rules = {}; + var validator = $.data(element.form, 'validator'); + if (validator.settings.rules) { + rules = $.validator.normalizeRule(validator.settings.rules[element.name]) || {}; + } + return rules; + }, + + normalizeRules: function(rules, element) { + // handle dependency check + $.each(rules, function(prop, val) { + // ignore rule when param is explicitly false, eg. required:false + if (val === false) { + delete rules[prop]; + return; + } + if (val.param || val.depends) { + var keepRule = true; + switch (typeof val.depends) { + case "string": + keepRule = !!$(val.depends, element.form).length; + break; + case "function": + keepRule = val.depends.call(element, element); + break; + } + if (keepRule) { + rules[prop] = val.param !== undefined ? val.param : true; + } else { + delete rules[prop]; + } + } + }); + + // evaluate parameters + $.each(rules, function(rule, parameter) { + rules[rule] = $.isFunction(parameter) ? parameter(element) : parameter; + }); + + // clean number parameters + $.each(['minlength', 'maxlength', 'min', 'max'], function() { + if (rules[this]) { + rules[this] = Number(rules[this]); + } + }); + $.each(['rangelength', 'range'], function() { + if (rules[this]) { + rules[this] = [Number(rules[this][0]), Number(rules[this][1])]; + } + }); + + if ($.validator.autoCreateRanges) { + // auto-create ranges + if (rules.min && rules.max) { + rules.range = [rules.min, rules.max]; + delete rules.min; + delete rules.max; + } + if (rules.minlength && rules.maxlength) { + rules.rangelength = [rules.minlength, rules.maxlength]; + delete rules.minlength; + delete rules.maxlength; + } + } + + // To support custom messages in metadata ignore rule methods titled "messages" + if (rules.messages) { + delete rules.messages; + } + + return rules; + }, + + // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} + normalizeRule: function(data) { + if( typeof data == "string" ) { + var transformed = {}; + $.each(data.split(/\s/), function() { + transformed[this] = true; + }); + data = transformed; + } + return data; + }, + + // http://docs.jquery.com/Plugins/Validation/Validator/addMethod + addMethod: function(name, method, message) { + $.validator.methods[name] = method; + $.validator.messages[name] = message != undefined ? message : $.validator.messages[name]; + if (method.length < 3) { + $.validator.addClassRules(name, $.validator.normalizeRule(name)); + } + }, + + methods: { + + // http://docs.jquery.com/Plugins/Validation/Methods/required + required: function(value, element, param) { + // check if dependency is met + if ( !this.depend(param, element) ) + return "dependency-mismatch"; + switch( element.nodeName.toLowerCase() ) { + case 'select': + // could be an array for select-multiple or a string, both are fine this way + var val = $(element).val(); + return val && val.length > 0; + case 'input': + if ( this.checkable(element) ) + return this.getLength(value, element) > 0; + default: + return $.trim(value).length > 0; + } + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/remote + remote: function(value, element, param) { + if ( this.optional(element) ) + return "dependency-mismatch"; + + var previous = this.previousValue(element); + if (!this.settings.messages[element.name] ) + this.settings.messages[element.name] = {}; + previous.originalMessage = this.settings.messages[element.name].remote; + this.settings.messages[element.name].remote = previous.message; + + param = typeof param == "string" && {url:param} || param; + + if ( previous.old !== value ) { + previous.old = value; + var validator = this; + this.startRequest(element); + var data = {}; + data[element.name] = value; + $.ajax($.extend(true, { + url: param, + mode: "abort", + port: "validate" + element.name, + dataType: "json", + data: data, + success: function(response) { + validator.settings.messages[element.name].remote = previous.originalMessage; + var valid = response === true; + if ( valid ) { + var submitted = validator.formSubmitted; + validator.prepareElement(element); + validator.formSubmitted = submitted; + validator.successList.push(element); + validator.showErrors(); + } else { + var errors = {}; + var message = (previous.message = response || validator.defaultMessage( element, "remote" )); + errors[element.name] = $.isFunction(message) ? message(value) : message; + validator.showErrors(errors); + } + previous.valid = valid; + validator.stopRequest(element, valid); + } + }, param)); + return "pending"; + } else if( this.pending[element.name] ) { + return "pending"; + } + return previous.valid; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/minlength + minlength: function(value, element, param) { + return this.optional(element) || this.getLength($.trim(value), element) >= param; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/maxlength + maxlength: function(value, element, param) { + return this.optional(element) || this.getLength($.trim(value), element) <= param; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/rangelength + rangelength: function(value, element, param) { + var length = this.getLength($.trim(value), element); + return this.optional(element) || ( length >= param[0] && length <= param[1] ); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/min + min: function( value, element, param ) { + return this.optional(element) || value >= param; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/max + max: function( value, element, param ) { + return this.optional(element) || value <= param; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/range + range: function( value, element, param ) { + return this.optional(element) || ( value >= param[0] && value <= param[1] ); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/email + email: function(value, element) { + // contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/ + return this.optional(element) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/url + url: function(value, element) { + // contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/ + return this.optional(element) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/date + date: function(value, element) { + return this.optional(element) || !/Invalid|NaN/.test(new Date(value)); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/dateISO + dateISO: function(value, element) { + return this.optional(element) || /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/number + number: function(value, element) { + return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/digits + digits: function(value, element) { + return this.optional(element) || /^\d+$/.test(value); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/creditcard + // based on http://en.wikipedia.org/wiki/Luhn + creditcard: function(value, element) { + if ( this.optional(element) ) + return "dependency-mismatch"; + // accept only digits and dashes + if (/[^0-9-]+/.test(value)) + return false; + var nCheck = 0, + nDigit = 0, + bEven = false; + + value = value.replace(/\D/g, ""); + + for (var n = value.length - 1; n >= 0; n--) { + var cDigit = value.charAt(n); + var nDigit = parseInt(cDigit, 10); + if (bEven) { + if ((nDigit *= 2) > 9) + nDigit -= 9; + } + nCheck += nDigit; + bEven = !bEven; + } + + return (nCheck % 10) == 0; + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/accept + accept: function(value, element, param) { + param = typeof param == "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif"; + return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); + }, + + // http://docs.jquery.com/Plugins/Validation/Methods/equalTo + equalTo: function(value, element, param) { + // bind to the blur event of the target in order to revalidate whenever the target field is updated + // TODO find a way to bind the event just once, avoiding the unbind-rebind overhead + var target = $(param).unbind(".validate-equalTo").bind("blur.validate-equalTo", function() { + $(element).valid(); + }); + return value == target.val(); + } + + } + +}); + +// deprecated, use $.validator.format instead +$.format = $.validator.format; + +})(jQuery); + +// ajax mode: abort +// usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); +// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() +;(function($) { + var ajax = $.ajax; + var pendingRequests = {}; + $.ajax = function(settings) { + // create settings for compatibility with ajaxSetup + settings = $.extend(settings, $.extend({}, $.ajaxSettings, settings)); + var port = settings.port; + if (settings.mode == "abort") { + if ( pendingRequests[port] ) { + pendingRequests[port].abort(); + } + return (pendingRequests[port] = ajax.apply(this, arguments)); + } + return ajax.apply(this, arguments); + }; +})(jQuery); + +// provides cross-browser focusin and focusout events +// IE has native support, in other browsers, use event caputuring (neither bubbles) + +// provides delegate(type: String, delegate: Selector, handler: Callback) plugin for easier event delegation +// handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target +;(function($) { + // only implement if not provided by jQuery core (since 1.4) + // TODO verify if jQuery 1.4's implementation is compatible with older jQuery special-event APIs + if (!jQuery.event.special.focusin && !jQuery.event.special.focusout && document.addEventListener) { + $.each({ + focus: 'focusin', + blur: 'focusout' + }, function( original, fix ){ + $.event.special[fix] = { + setup:function() { + this.addEventListener( original, handler, true ); + }, + teardown:function() { + this.removeEventListener( original, handler, true ); + }, + handler: function(e) { + arguments[0] = $.event.fix(e); + arguments[0].type = fix; + return $.event.handle.apply(this, arguments); + } + }; + function handler(e) { + e = $.event.fix(e); + e.type = fix; + return $.event.handle.call(this, e); + } + }); + }; + $.extend($.fn, { + validateDelegate: function(delegate, type, handler) { + return this.bind(type, function(event) { + var target = $(event.target); + if (target.is(delegate)) { + return handler.apply(target, arguments); + } + }); + } + }); +})(jQuery); diff --git a/WebContent/login.jsp b/WebContent/login.jsp new file mode 100644 index 0000000..b2ce354 --- /dev/null +++ b/WebContent/login.jsp @@ -0,0 +1,57 @@ + + +
    +
    +
    +
    +
    +

    Login

    + +
    +
    "> + +

    Please login with your email address and password or with an existing Facebook account.

    + +
    +
    *
    +
    +
    + +
    +
    *
    +
    +
    + + + + + + + +
    +
    +
    + +
    +
    +
    +
    \ No newline at end of file diff --git a/WebContent/media.jsp b/WebContent/media.jsp new file mode 100644 index 0000000..594f658 --- /dev/null +++ b/WebContent/media.jsp @@ -0,0 +1,177 @@ + <%@ page import="zall.bean.*" %> + <%@ page import="java.text.SimpleDateFormat" %> + <% + Media media = (Media)request.getAttribute("media"); + User user = (User)session.getAttribute("user"); + %> + + + +
    +
    +
    +
    + + +
    + + + <%if( user.canEdit( media ) ){ %> +
    + + + + + +
    + <%} %> +
    +
    + +
    + + + +

    + <%=media.getTitle() %> + +

    +

    + + <%=(media.getDescription()==null || media.getDescription().isEmpty() ? " No description available" : media.getDescription() )%> + + +

    +
    + + +
    +
    + +
    +
    + <%if( media instanceof Video ){ %> + + <%} else{ %> + + <%=media.getTitle()%> + + <%} %> +
    +
    + + +
    +
    +

    <%=media.getComments().size() %> Comments

    +
      + <% + SimpleDateFormat formatter = new SimpleDateFormat("HH:mm - d MMMMM yyyy "); + for( Comment cm : media.getComments() ){ %> +
    1. +
      + + <%=cm.getUser().getName() %> +
      +
      Posted: <%=formatter.format(cm.getDate()) %>
      +
      +

      <%=cm.getMessage() %>

      +
      +
    2. + <% } %> + +
    +
    + +
    +
    + + +
    +

    Post a Comment

    + +
    +
    + + + +

    HTML is not allowed, Use BBCode instead.

    + +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/WebContent/media_video.jsp b/WebContent/media_video.jsp new file mode 100644 index 0000000..77a395d --- /dev/null +++ b/WebContent/media_video.jsp @@ -0,0 +1,88 @@ + <%@ page import="zall.bean.*" %> + <%@ page import="java.text.SimpleDateFormat" %> + <% + Media media = (Media)request.getAttribute("media"); + User user = (User)session.getAttribute("user"); + %> + + + + + + \ No newline at end of file diff --git a/WebContent/page_chat.jsp b/WebContent/page_chat.jsp new file mode 100644 index 0000000..57292a2 --- /dev/null +++ b/WebContent/page_chat.jsp @@ -0,0 +1,25 @@ +<%@ page import="zall.bean.*" %> +<% +if( session.getAttribute("user") == null ){ + response.sendRedirect("login"); + return; +} +%> + + +
    +
    +
    + + + + + + + + +
    +
    +
    + + diff --git a/WebContent/page_geni.jsp b/WebContent/page_geni.jsp new file mode 100644 index 0000000..edb88f2 --- /dev/null +++ b/WebContent/page_geni.jsp @@ -0,0 +1,31 @@ +<%@ page import="zall.bean.*" %> +<% +if( session.getAttribute("user") == null ){ + response.sendRedirect("login"); + return; +} +%> + + +
    + +
    + + diff --git a/WebContent/profile.jsp b/WebContent/profile.jsp new file mode 100644 index 0000000..74615dd --- /dev/null +++ b/WebContent/profile.jsp @@ -0,0 +1,125 @@ +<%@ page import="zall.bean.*" %> +<% +User user = (User)request.getAttribute("profile_user"); +%> + +
    + + +
    +
    +
    + <% if( request.getParameter("page")==null || request.getParameter("page").equalsIgnoreCase("general") ){ %> +
    +

    General settings

    + +
    +
    + +

     

    + +
    +
    *
    +
    +
    + +
    +
    *
    +
    +
    + + +
    +
    +
    + <%} else if( request.getParameter("page").equalsIgnoreCase("password") ){ %> +
    +

    General settings

    + +
    +
    + +

     

    + +
    +
    *
    + <% if( user.getPassword()==null ){ %> +
    + <%} else{ %> +
    + <%} %> +
    +

     

    +
    +
    *
    +
    +
    +
    +
    *
    +
    +
    + + +
    +
    +
    + <%} %> +
    +
    +
    + + +
    +
      +
    • +

      Settings

      +
        +
      • General
      • +
      • Password
      • +
      • Faces
      • +
      •  
      • + <% if( user.getFacebookUid() == null ){ %> +
      • + +
      • + <%} %> +
      +
    • +
    +
    + +
    diff --git a/WebContent/register.jsp b/WebContent/register.jsp new file mode 100644 index 0000000..6e386ad --- /dev/null +++ b/WebContent/register.jsp @@ -0,0 +1,78 @@ + + + +
    +
    +
    +
    +
    +

    Register

    + +
    +
    + + +

    Please fill in all the required fields in this form to register. Be specific in the Name field so the admin recognises you.

    + +
    +
    *
    +
    +
    + +
    +
    *
    +
    +
    +
    +
    *
    +
    +
    + +
    +
    *
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    \ No newline at end of file diff --git a/WebContent/slideshow.jsp b/WebContent/slideshow.jsp new file mode 100644 index 0000000..5386adf --- /dev/null +++ b/WebContent/slideshow.jsp @@ -0,0 +1,49 @@ +<%@ page import="zall.bean.*" %> +<%@ page import="java.util.List" %> +<% +List imgs = (List)request.getAttribute("images"); +Image start_img = (Image)request.getAttribute("image"); +int start_id = 0; +%> +
    +
    +
    +
    + <% + int i = 0; + for( Image image : imgs ){ + if( image == start_img ) + start_id = i; + i++; + %> + + <%=image.getTitle()%> + <%=( image.getDescription()!=null ? image.getDescription() : "No description available" ) %> + + <% } %> +
    + + +
    +
    +
    \ No newline at end of file diff --git a/WebContent/status.jsp b/WebContent/status.jsp new file mode 100644 index 0000000..1fcd7de --- /dev/null +++ b/WebContent/status.jsp @@ -0,0 +1,57 @@ +<%@ page import="zall.ZalleryTranscoder" %> +<%@ page import="zall.bean.*" %> +<%@ page import="java.util.Queue" %> +<%@ page import="java.io.IOException" %> +<% +if( session.getAttribute("user") == null ){ + response.sendRedirect("login"); + return; +} +%> +<%! + public void transcodingHTML(JspWriter out, boolean transcoding, Video video) throws IOException{ + out.println("
    "); + out.println(" "); + out.println(" "+(transcoding ? "Transcoding" : "Queued")+": "+video.getTitle()+""); + out.println("
    "); + out.println(" "+video.getTranscodingProgress()+"%"); + out.println("
    "); + out.println("
    "); + out.println("
    "); + out.println("
    "); + out.println(" Time remaining: 10 min "); + out.println("
    "); + } +%> + + +
    +
    +
    +
    +
    +

    Transcoding Queue

    +
      + <% + if( ZalleryTranscoder.getProcessingVideo() != null ){ + out.println("
    • "); + transcodingHTML(out, true, ZalleryTranscoder.getProcessingVideo()); + out.println("
    • "); + } + Queue
    +
    + +
    +
    +
    +
    +
    +
    + + diff --git a/WebContent/upload.jsp b/WebContent/upload.jsp new file mode 100644 index 0000000..7dbbf81 --- /dev/null +++ b/WebContent/upload.jsp @@ -0,0 +1,96 @@ + <%@ page import="zall.bean.*, java.util.List" %> + + + +
    +
    +
    +
    +
    +

    Upload Queue

    +
      + +
    +
    + +
    +
    +
    +
    +
    + + +
    +
      +
    • +

      + +
      +
      + + + +
      +
      +
    • +
    +
    + + + + +
    diff --git a/WebContent/users.jsp b/WebContent/users.jsp new file mode 100644 index 0000000..cf63d15 --- /dev/null +++ b/WebContent/users.jsp @@ -0,0 +1,186 @@ +<%@ page import="java.util.List" %> +<%@ page import="zall.bean.*" %> +<%@ page import="java.text.SimpleDateFormat" %> +<%@ page import="java.io.IOException" %> +<% +User user = (User)session.getAttribute("user"); +List users = (List)request.getAttribute("users"); +SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd HH:MM"); + +String search = null; +if( request.getParameter("search") != null ){ + if( !request.getParameter("search").trim().isEmpty() && !request.getParameter("search").equalsIgnoreCase("To search, type and hit enter") ) + search = request.getParameter("search"); +} +%><%! + + public void userHTML(JspWriter out, User currentUser, User printUser) throws IOException{ + SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd HH:MM"); + + out.println("
  • "); + out.println("
    "); + out.println(" "); + out.print(" "); + if( printUser.getEmail().isEmpty() ) + out.println(" "); + else if( currentUser.canEdit( printUser )) + out.println(""+printUser.getEmail()+""); + else + out.println( printUser.getEmail() ); + out.println("  "+(printUser.getEmail().isEmpty() || printUser.isEmailVerified() ? "" : "(Unverified)")); + out.println(" "); + out.println("
    "); + + out.println("
    "); + out.println(" "); + out.println(" "); + out.println(" "); + out.println(" "); + out.println(" "); + out.println(" "); + + out.println(" "); + if( currentUser.isSuperUser() && !currentUser.equals(printUser) ){ + if( printUser.getEmail() != null && !printUser.getEmail().isEmpty() && !printUser.isEmailVerified() ){ + out.println(" "); + } else { + out.println(" "); + } + out.println(" "); + out.println(" "); + + } else{ + out.println(" "); + } + out.println(" "); + out.println("
    "+printUser.getName()+"Last login: "+formatter.format( printUser.getLoginDate() )+" "); + if( printUser.getFacebookUid() != null ){ + out.println(" Facebook"); + } + out.println("  
    "); + out.println("
    "); + out.println(" "); + out.println(" "); + out.println(" "); + out.println("
    "); + out.println("
     "); + out.println("
    "); + out.println(" "); + out.println(" "); + + if( !printUser.isEnabled() ) + out.println(" "); + else + out.println(" "); + + if(printUser.isSuperUser()) + out.println(" "); + else + out.println(" "); + + out.println("
    "); + out.println("
    "); + out.println("
    "); + out.println(" "); + out.println(" "); + out.println(" "); + out.println("
    "); + out.println("
     
    "); + out.println("
    "); + out.println("
  • "); + } +%> + +
    +
    +
    +
    +

    Users

    +
    +
    + + +
    +

    Inactive Users

    +
      + <% + for( User us : users ){ + if( !us.isEnabled() ){ + if( search == null || + us.getName().contains(search) || + us.getEmail().contains(search) ){ + userHTML(out, user, us); + } + } + } + %> +
    +
    + + + +
    +

    Active Users

    +
      + <% + for( User us : users ){ + if( us.isEnabled() && !us.isSuperUser() ){ + if( search == null || + us.getName().contains(search) || + us.getEmail().contains(search) ){ + userHTML(out, user, us); + } + } + } + %> +
    +
    + + + +
    +

    Admins

    +
      + <% + for( User us : users ){ + if( us.isEnabled() && us.isSuperUser() ){ + if( search == null || + us.getName().contains(search) || + us.getEmail().contains(search) ){ + userHTML(out, user, us); + } + } + } + %> +
    +
    + +
    +
    +
    + + +
    +
      + +
    • +

      User Types

      + +
    • +
    +
    +
    diff --git a/prototype/About.url b/prototype/About.url new file mode 100644 index 0000000..edf2ca3 --- /dev/null +++ b/prototype/About.url @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=http://www.upthemes.com/demo/gallerypro/?page_id=1179 diff --git a/prototype/Collective- Jquery Photo Tag Plugin - Codrops.url b/prototype/Collective- Jquery Photo Tag Plugin - Codrops.url new file mode 100644 index 0000000..0af80d3 --- /dev/null +++ b/prototype/Collective- Jquery Photo Tag Plugin - Codrops.url @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=http://tympanus.net/codrops/2010/07/20/collective-jquery-photo-tag-plugin/ diff --git a/prototype/chat.html b/prototype/chat.html new file mode 100644 index 0000000..582587f --- /dev/null +++ b/prototype/chat.html @@ -0,0 +1,110 @@ + + + + + + Gallery Demo | Just another WordPress weblog + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    + + + + + + + + +
    +
    +
    + + +
    + \ No newline at end of file diff --git a/prototype/chat.jsp b/prototype/chat.jsp new file mode 100644 index 0000000..4987f08 --- /dev/null +++ b/prototype/chat.jsp @@ -0,0 +1,17 @@ + + + +
    +
    +
    + + + + + + + + +
    +
    +
    diff --git a/prototype/css/2c-l-fixed.css b/prototype/css/2c-l-fixed.css new file mode 100644 index 0000000..86e70ab --- /dev/null +++ b/prototype/css/2c-l-fixed.css @@ -0,0 +1,74 @@ +/* +LAYOUT: One-Column (Left) Fixed +DESCRIPTION: Two-column 950px fixed layout with one sidebar left of content +*/ + +body { + min-width:940px; +} +#header { + position:relative; +} +#branding { + width:940px; + margin:0 auto; +} +#access { + position:relative; + overflow:hidden; +} +.menu { + width:940px; + margin:0 auto; +} +#main { + width:940px; + margin:0 auto; + overflow:hidden; + position:relative; +} +#container { + width:940px; + float:right; + margin: 0 0 0 -310px; +} +#content { + width:620px; + overflow:hidden; + margin: 0 0 0 320px; +} +.hentry { + width:620px; +} +.main-aside { + width:300px; + float:left; + position:relative; +} +#primary { + float:left; +} +#secondary { + clear:left; +} +#footer { + clear:both; +} +#subsidiary { + width:940px; + margin:0 auto; + overflow:hidden; +} +#subsidiary .aside { + width:300px; + float:left; + margin:0 20px 0 0; +} +#subsidiary #third { + margin:0; +} +#siteinfo { + clear:both; + width:940px; + margin:0 auto; +} \ No newline at end of file diff --git a/prototype/css/images.css b/prototype/css/images.css new file mode 100644 index 0000000..3941914 --- /dev/null +++ b/prototype/css/images.css @@ -0,0 +1,64 @@ +/* -------------------------------------------------------------- + + Default styles for Images + +-------------------------------------------------------------- */ + +.entry-content img { + margin: 0 0 18px 0; +} +.alignleft, +img.alignleft { + float: left; + margin-right:20px; +} +.alignright, +img.alignright { + display: block; + float: right; + margin-left:20px; +} +.aligncenter, +img.aligncenter { + margin-left:auto; + margin-right:auto; + display: block; + clear: both; +} +.wp-caption { + text-align: center; + margin-bottom:18px; +} +.wp-caption img { + margin: 0; + padding: 0; + border: 0 none; +} +.wp-caption p.wp-caption-text { + margin: 0; + padding:5px; +} +.gallery img { + margin:0; +} +.wp-smiley { /* Prevent the smileys from breaking line-height */ + max-height:12px; + margin:0 !important; +} + +/* + +Adapt the following for use in your Child Themes when using +different font-sizes and line-heights + +.entry-content img, +.wp-caption { + margin-bottom:--px; +} +.wp-smiley { + max-height:--px; +} + +All other styles can be overridden--or ignored!--in Child Theme stylesheets + +*/ \ No newline at end of file diff --git a/prototype/css/reset.css b/prototype/css/reset.css new file mode 100644 index 0000000..b8223ea --- /dev/null +++ b/prototype/css/reset.css @@ -0,0 +1,64 @@ +/* -------------------------------------------------------------- + + Reset default browser CSS. + + Based on work by Eric Meyer: + http://meyerweb.com/eric/tools/css/reset/index.html + +-------------------------------------------------------------- */ + +/* v1.0 | 20080212 */ + +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; +} +body { + background:#fff; + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} + +/* remember to define focus styles! +:focus { + outline: 0; +} +*/ +/* remember to highlight inserts somehow! */ +ins { + text-decoration: none; +} +del { + text-decoration: line-through; +} + +/* tables still need 'cellspacing="0"' in the markup */ +table { + border-collapse: collapse; + border-spacing: 0; +} + +a img { border: none; } \ No newline at end of file diff --git a/prototype/css/style.css b/prototype/css/style.css new file mode 100644 index 0000000..67a8585 --- /dev/null +++ b/prototype/css/style.css @@ -0,0 +1,1097 @@ +/* +Theme Name: Gallery, a Thematic child theme +Theme URI: http://www.chris-wallace.com/2009/06/22/gallery-1-2-released/ +Description: The ultimate gallery-style Thematic child theme for WordPress. +Author: Chris Wallace +Author URI: http://chris-wallace.com +Template: thematic +Version: 1.2.1 +. +This work, like WordPress, is released under GNU General Public License, version 2 (GPL). +http://www.gnu.org/licenses/old-licenses/gpl-2.0.html +. +*/ + +/* Reset browser defaults */ +@import url('reset.css'); + +/* Apply a basic layout */ +@import url('2c-l-fixed.css'); + +/* Apply basic image styles */ +@import url('images.css'); + +slideshow{ + /* width:900px; */ + margin:20px auto; +} + +input,select,textarea{ + color: #eee; + background-color: #3F3F3F; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 2px 2px inset; +} +input[type="submit"], +input[type="button"], +button{ + background: url("../img/btn-bg.jpg") repeat-x left top; + color:#ddd; + font-weight: normal; + position: relative; + height: 22px; + overflow: hidden; + border: 1px solid #101010; + padding: 3px 18px; + font-size: 10px; + line-height: 0.75em; + font-family: Verdana, Arial, sans-serif; + text-transform: uppercase; + cursor: pointer; + -moz-border-radius: 20px; + border-radius: 20px; + -webkit-border-radius: 20px +} +input[type="submit"]:hover, +input[type="button"]:hover, +button:hover{ + background-position: 0 -22px; + color: #ddd +} +input[type="submit"]:active, +input[type="button"]:active, +button:active{ + background-position: 0 -44px; + padding-top: 4px; + padding-bottom: 0 +} + +.form-section input:focus, +.form-section textarea:focus{ + border: 1px solid #926c23; /* #aaa */ + color: #bbb; +} + +abbr{ + border-bottom: 1px dotted #555 +} +pre{ + background-color: #191919; + border: 1px solid #333; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-border-radius: 3px; + padding: 5px; + margin: 10px 0; + white-space: pre; + overflow: auto + +} +pre, +code{ + font-size: 12px; +} +body { + background: #000 url("../img/body-background.jpg") center top; + color: #AFAFAF; + font-family: Lucida Grande,Helvetica,Arial,Verdana,sans-serif; + font-size: 90%; + font-style: normal; + line-height: 2em +} +#wrapper{ + background: transparent url("../img/light-source-trans.png") no-repeat center top; + height: auto; + min-height: 300px +} +a { + color: white; + text-decoration: none +} +a:hover { + color: #ddd +} +h1, h2, h3{ + color: white +} +h2{ + font-size: 1.5em; + margin-bottom: 0.7em +} +#content ol, +#content ul{ + margin-bottom: 1em +} +.single #content li{ + line-height: 1.4em +} +.single #content ul{ + border-top: 1px solid #101010; + border-bottom: 1px solid #282828; +} +.single #content li{ + padding: 10px 0 10px 24px; + list-style: none; + position: relative; + border-top: 1px solid #282828; + border-bottom: 1px solid #101010 +} +.twitter{ + background: url("../img/icons/twitter.png") no-repeat left center +} +.delicious{ + background: url("../img/icons/delicious.png") no-repeat left center +} +.designer{ + background: url("../img/icons/person.png") no-repeat left center +} +.site-link{ + background: url("../img/icons/globe.png") no-repeat left center +} +#header { + margin: 0 auto; + padding: 20px 0; + position: relative; + z-index: 20 +} +#branding,#access { + margin: 0 auto; + overflow: visible; + width: 940px; +} +#branding{ + padding: 10px 0; +} +.ie8 #branding{ + margin-bottom: 20px; + height: 30px +} +#blog-title { + text-align: left; + display: inline; + float: left; +} +#blog-title a{ + display: block; + width: 164px; + height: 50px; + background: url("../img/logo.png") no-repeat left top; + text-indent: -9000px; + margin-bottom: 10px +} +.msie #blog-title a{ + position: relative; + margin-bottom: -10px +} +#blog-description { + color:#777; + font-size:0.9em; + line-height: 1.4em; + font-weight:normal; + text-align: right; + padding-top: 66px +} +#access { + width: 940px; + height: 45px; + margin-top: 10px; + clear: both; + background: url("../img/menu-bg-trans.png") no-repeat top left; +} +#category-menu ul{ + padding: auto +} +#category-menu li{ + float: left; + height: 45px +} +#category-menu li a, +li.blog-description span{ + display: block; + font-size: .8em; + font-weight: bold; + height: 28px; + padding: 8px; + margin-right: 8px; + color: white; + text-decoration: none +} +#category-menu li.home a{ + display: block; + text-indent: -9000px; + overflow: hidden; + text-align: left; + width: 24px; + background: url("../img/ico-home-trans.png") no-repeat; + background-position: center 15px; + padding-bottom: 0; + margin-left: 10px +} +#category-menu li.home a:hover{ + background: url("../img/ico-home-trans.png") no-repeat center -16px +} +#category-menu li.current_page_item{ +} +#category-menu li.current_page_item a{ + color: #ddd; +} +#category-menu > li:first-child{ + margin-left: 10px; +} +#category-menu li a:hover{ + color: #ddd +} +#category-menu li.blog-description{ + float: right +} +#category-menu li.blog-description span{ + color: #eee; + font-weight: normal +} +#blog-description{ + display: none +} +#page-menu{ + position: absolute; + bottom: 50px; + right: 10px; + margin: 0; + width: 500px; + font-size: .8em; + color: #888; + z-index: 100 +} +#page-menu #page-nav{ + text-align: right +} +#page-menu #page-nav li{ + float: right; + margin: 10px 0 0 4px +} +#page-menu #page-nav li a{ + padding: 8px 12px; + font-size: .9em; + color: #bbb; + text-transform: uppercase +} +#page-menu #page-nav li.rss a{ + padding-left: 20px; + background: url("../img/ico-rss-trans.png") no-repeat left center +} +#page-menu #page-nav li a:hover{ + color: white +} + +.sf-menu .current_page_item a, +.sf-menu .current_page_ancestor a, +.sf-menu .current_page_parent a { +} +.sf-menu a, .sf-menu a:visited { + color:#FFFFFF; +} +.sf-menu li { + position: relative; + background:transparent; +} +body #access #category-menu .sf-menu li li { + width: 100%; + margin: 0; + padding: 0; + height: auto; + width: auto + +} +.sf-menu li li li { + background: red ; +} +body #access #category-menu .sf-menu a:focus, +body #access #category-menu .sf-menu a:hover, +body #access #category-menu .sf-menu a:active { + background: #232323; +} +body #access #category-menu .sf-menu .home a:focus, +body #access #category-menu .sf-menu .home a:hover, +body #access #category-menu .sf-menu .home a:active { + background: url("../img/ico-home-trans.png") no-repeat center -16px +} +body #access #category-menu .sf-menu ul a:focus, +body #access #category-menu .sf-menu ul a:hover, +body #access #category-menu .sf-menu ul a:active { + background: #454545; +} +.sf-menu li li a:hover { + background:#333333; +} +.sf-menu ul { + border:medium none; +} +.sf-menu li:hover ul, +.sf-menu li.sfHover ul { + top: 45px; + position: absolute; + border: 3px solid #333; + background: #1A1A1A; + padding: 0; + border-top: none +} +.sf-menu ul ul { + top: auto; + left: auto; + margin-top:0; +} +body #access #category-menu .sf-menu ul a { + background:#111111; + color: white; + padding: 5px 0 5px 5px; + margin: 0; + line-height: 20px; + height: 20px; + display: block; + width: auto +} +.sf-menu ul a:hover { + color:#CC0000; +} + + +.skip-link { + display: none; +} +#main{ + position: relative; + z-index: 5; + margin: 0 auto 30px auto +} +#primary, +#secondary{ + display: none +} +.page #primary{ + display: block +} +.aside{ + width: 270px +} +#content{ + width: 940px; + margin: 0; + float: none; + padding-top: 0 +} +.msie #content, +.single #content, +.home #content, +.page #content{ + padding-top: 20px +} +.page #content{ + margin-left: 320px; + width: 620px +} +.page #content li{ + list-style: disc; + margin-left: 20px +} +.single #container{ + position: relative +} +.single .entry-content{ + display: inline; + float: left; + margin: 20px 0 0 550px; + width: 385px +} +.single div.video .entry-content{ + margin:20px 0 0 680px; + width:255px; +} +.single div.video ul.meta, +.single div.video #nav-below{ + display: none +} +.single .artwork-container{ + float: left; + margin-left: -935px +} +.single .entry-artwork{ + background-color: #191919; + border: 1px solid #333; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-border-radius: 3px; + padding: 10px +} +.single .navigation{ + margin-top: 10px; + padding-top: 0; +} +.single .entry-content h1, +h1.page-title{ + font-size: 1.8em; + margin-bottom: .5em +} +h1.page-title{ + margin-bottom: 1em +} +.single .entry-content p{ + line-height: 1.3em +} +.not-singular .entry-content{ + float: left; + width: 134px; + margin: 0 0 5px 0; +} +.not-singular .entry-content a{ + border: 3px solid #191919; + display: block; + height: 125px; + width: 125px; + overflow: hidden; + position: relative; + background-color: #191919 +} +.not-singular .entry-content a img{ + position: absolute; + z-index: 5 +} +.not-singular .entry-content a span.slide-title{ + position: absolute; + top: 108px; + left: 3px; + width: 300px; + line-height: 1em; + color: white !important; + font-size: .8em; + text-transform: uppercase; + z-index: 0 +} +.not-singular .entry-content{ + position: relative +} +.not-singular .entry-content .new{ + display: block; + position: absolute; + top: -6px; + right: 10px; + width: 42px; + height: 22px; + background: url("../img/ico-new-trans.png") no-repeat top left; + z-index: 200 +} +.not-singular .video .new{ + background: url("../img/ico-video-trans.png") no-repeat top left; + width: 74px; +} +span.cover-up{ + background: url("../img/side-fade-trans.png") no-repeat right top; + position: absolute; + right: 0; + top: 0; + height: 125px; + width: 20px; + z-index: 4 +} +.main-aside h3{ + font-weight: bold; + color: #fff; + padding: 5px 0 5px 10px +} +.main-aside .xoxo li{ + margin: 0 0 10px 0; + padding: 15px; + background-color: #191919; + border: 1px solid #333; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px +} +.main-aside .xoxo li div{ + padding: 0 0 0 10px; + font-size: .8em; + line-height: 2em +} +.main-aside .xoxo li ul li{ + margin: 0; + padding: 0 0 0 10px; + background: transparent; + border: none; + -moz-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0 +} +.main-aside p{ + margin-bottom: 1em +} +form{ + margin: 0 0 2em 0 +} +legend{ + font-size: 1.2em; + font-weight: 700; + color: white +} +.form-label, +.wpcf7-form label{ + display: block; + margin: 5px 0 0 0 +} +input[type="text"], +input[type="password"], +textarea, +select{ + font-family: Arial, Helvetica, sans-serif; + border: 1px solid #303030; + background: #191919; + color: #999999; + padding: 10px; +} +.navigation { + font-family: Helvetica,Arial,sans-serif; + margin-bottom: 20px; + overflow: hidden; + text-transform: uppercase; + width: 100%; +} +#nav-above { + display: none; +} +#nav-below{ + clear: both; + padding-top: 10px; + height: auto; + overflow: auto; + padding-bottom: 10px +} +.nav-next { + float: right; + text-align: right; + width: 47%; +} +.not-singular .nav-next{ + margin-right: 5px +} +.nav-previous { + float: left; + width: 47%; +} +#nav-above{ + display: none; +} +.hentry{ + width: auto +} +.entry-title { + color: white; + font-size: 2.6em; + font-weight: bold; + letter-spacing: -1px; + margin-bottom: 1em; + padding-bottom: 1px; +} +.entry-title a{ + color: white +} +.post .entry-meta,.post .entry-utility { + color: #afafa1; + font-size: 0.825em; + margin-bottom: 24px; + padding-bottom: 5px; +} +.post p, .entry-content p { + margin-bottom: 1em; +} +.post pre,#content .page pre { + font-size: 1.6em; +} +.post dt { + margin-bottom: 5px; + padding-bottom: 5px; +} +.post dd { + color: #eee; + margin-bottom: 1em; +} +.post dl { + margin-bottom: 1.3em; + padding-left: 20px; +} +.post a.more-link { + background: #be194f; + color: #fff; + font-size: 0.75em; + font-weight: bold; + padding: 5px 10px; + text-decoration: none; + text-transform: uppercase; +} +.post a.more-link:hover { + background: #d93c6f; +} +a.more-link .meta-nav { + display: none; +} +.post h3,.post h4,.post h5,.post h6 { + margin: 5px 0; + padding: 5px 0; +} +.post h4 { + font-size: 1.4em; +} +.post h5 { + font-size: 1.2em; + text-transform: uppercase; +} +.post h6 { + font-size: 1.1em; + text-transform: uppercase; +} +.post blockquote { + font: italic 2em Georgia, "Times New Roman", Times, serif; + color: white; + margin: 10px 0px; + padding: 10px 20px 1px 10px; +} +.post blockquote p { + font-stayle: italic; +} +.post .page-link { + font-size: 0.825em; + margin-bottom: 20px; + text-transform: uppercase; +} +.page-link a { + background: #f0f0f0; + border-bottom: 1px solid #ddd; + border-left: 1px solid #eee; + border-right: 1px solid #ddd; + border-top: 1px solid #eee; + padding: 5px 10px; + text-decoration: none; +} +.post .entry-utility { + border-top: 1px solid #232323; + margin-bottom: 0; + padding: 5px 0 0 0; +} +.btc-powered{ + font-size: 0.825em +} +#comments { + margin-top: 20px; + padding: 20px 0 0 0; + clear: both; + overflow: auto +} +#comments,#comments input[type="text"],#comments textarea { + font-size: 12px; +} +#comments h3 { + font-size: 0.9em; + text-transform: uppercase; + letter-spacing: 0.2em; + padding: 7px 12px 7px 42px; + font-weight: bold; + background: #171717 url("../img/ico-comment.png") no-repeat 16px center +} +#comments #respond h3{ + background-image: url("../img/ico-person.png") +} +#comments #comments-list #respond h3{ + background-image: url("../img/ico-reply.png") +} +.formcontainer{ + border-top: 1px solid #282828; +} +#comments-list { + border-top: 1px solid #141414; + float: left; + margin-right: 30px; + padding: 0 0 18px; + width: 520px; +} +#comments-list ol,#comments-list ul { + list-style: none; + margin: 0; +} +#comments-list ol { + margin: 0 0 18px 0; +} +#comments-list li { + padding: 18px 1.5em 18px 1.5em; + position: relative; + border-top: 1px solid #282828; + border-bottom: 1px solid #101010 +} +#comments-list ol { + border-bottom: 1px solid #282828 +} +.single #content #comments-list li, +.page #content #comments-list li{ + padding: 20px 0; + position: relative; + z-index: 0 +} +#comments-list li .avatar { + height: 60px; + width: 60px; + padding: 4px; + border: 1px solid #282828; + background: #171717; + float: left; + position: relative; + margin-left: -95px +} +#comments-list .comment-author, +#comments-list .comment-meta, +#comments-list .comment-content, +#comments-list .unapproved{ + display: block; + margin-left: 100px +} +#comments-list .unapproved{ + background-color: #191919; + margin-bottom: 15px; + padding: 10px; + color: white +} +#comments-list .comment-author { + font-weight: bold; + font-size: 1.3em + padding: 5px 0 0 0; +} +#comments-list .comment-meta { + color: #666; + font-size: 11px; + padding: 10px 0 9px 0; +} +#comments-list .comment-meta a { + color: #eee; + font-style: italic; + text-decoration: none; +} +#comments-list .comment-meta a:active,#comments-list .comment-meta a:hover { + color: #FF4B33; +} +#comments-list .comment-content{ + padding-right: 10px +} +#commentform{ + padding: 15px; + width: 360px +} +.comment-reply-link { + font-size: 11px; + padding: 0 0 18px 0; + text-align: right; +} +.hover-url{ + color: #666; + margin-left: 10px; + font-weight: normal; + font-style: italic; + font-family: Georgia, "Georgia MS", Times, serif +} +.comment-reply-link a { + color: #eee; + font-style: italic; + text-decoration: none; +} +.comment-navigation { + font-weight: bold; + margin-right: 0.5em; + padding: 0; +} +.comment-navigation a { + border: 1px solid #ccc; + color: #eee; + font-weight: normal; + padding: 0.5em 0.75em; + text-decoration: none; +} +.comment-navigation a:active,.comment-navigation a:hover { + color: #FF4B33; +} +.comment-navigation a,.comment-navigation span { + margin-right: 0.5em; +} +#trackbacks-list .comment-content { + left: -9000px; + position: absolute; +} +#respond { + border-top: 1px solid #141414; + margin-bottom: 22px; + overflow: hidden; + padding: 0; + width: 390px; + float: right; + position: relative; + z-index: 4 + } +.login{ + float: left; +} +#comments-list #respond { + margin: 0; + padding: 0; + float: none; + width: 520px +} +#comments-list #commentform { + width: auto +} +#comments-list ul #respond { + margin: 0; +} +#cancel-comment-reply { + font-size: 11px; + position: absolute; + right: 1.5em; + top: 7px; +} +#respond .required { + color: #FF4B33; + font-weight: bold; +} +.form-section{ + padding: 0 0 10px 0; + clear: both; + overflow: auto +} +.form-section label { + font-size: 11px; +} +.form-section .form-label{ + width: 35%; + float: left; + clear: both; + text-align: right +} +.form-section .form-input{ + width: 65%; + float: right; + text-align: right +} +.form-section .form-input input{ + width: 80% +} +.form-section .form-textarea{ + width: 100%; + text-align: right +} +.form-section .form-textarea textarea{ + width: 94% +} +#respond #comment-notes{ + line-height: 1.2em; + margin: 5px 0 20px 0; + font-size: 0.9em +} +#comments-list ul.children{ + margin-left: 20px; +} +.single #content #comments-list ul.children li{ + padding-left: 25px; + background: url("../img/ico-reply.png") no-repeat 5px 20px +} +#form-section-comment .form-label{ + display: none +} +#form-allowed-tags p { + color: #ccc; + font-size: 10px; + line-height: normal; + margin: 0; +} +#form-allowed-tags span { + font-style: italic; +} +.form-submit { + padding: 18px 0 0 0 +} +.subscribe-to-comments { + color: #eee; + float: left; + font-size: 11px; + margin: 0; + padding: 18px 0 0 0; +} +.solo-subscribe-to-comments { + color: #eee; + font-size: 11px; + padding: 18px 0 0 0; +} +.comment_license { + clear: both; + color: #eee; + font-size: 11px; + margin: 0; + padding: 18px 0 0 0; +} +#footer { + z-index: 0; + border-top: 1px solid #353535; + padding: 40px 0; + color: #555; + background-color: #0F0F0F; + margin-top: 20px +} +#footer a{ + color: #666 +} +#footer a:hover{ + color: #666 +} +#footer #subsidiary .aside{ + width: 940px +} +#footer .widgetcontainer{ + float: left; + width: 270px; + padding: 10px; + margin: 10px 10px 20px 10px; + background: #121212; + border: 1px solid #282828; + } +#footer .widgetcontainer h3{ + margin-bottom: 10px +} +#footer .widgetcontainer a:hover{ + color: #999 +} +#footer .reset{ + clear: both +} +#siteinfo{ + text-align: center; + font-size: .8em +} +#siteinfo a{ + text-decoration: none; + border-bottom: 1px dotted #333 +} +#siteinfo a:hover{ + border-bottom-color: #555555 +} +#author-info { + border: 1px dotted #ccc; + padding: 5px; + overflow: hidden; + font-size: 1.2em; + margin-bottom: 20px; +} +#author-info h2 { + border-bottom: 3px double #ddd; + padding: 5px 0; + font-size: 1.8em; + margin-bottom: 10px; +} +#author-info .avatar { + float: left; + border: 3px double #ddd; + margin: 0 10px 10px 0; +} + +/* IE6 fixes */ + +.ie6 .single .entry-content{ + height: 450px +} + +.ie6 .entry-content { + height:130px; +} + +.ie6, +.ie6 #container{ + width: 100%; + overflow: hidden +} +.ie6 #blog-title a{ + overflow: auto +} +.ie6 #category-menu, +.ie6 #category-nav{ + width: 940px +} +.ie6 #category-menu{ + margin: 10px 0 0 10px +} +.ie6 #category-nav li { + float: left; + display: inline; + padding: 0; + margin: 0; + height: auto +} +.ie6 #category-nav li.blog-description{ + float: right +} +.ie6 #category-nav li.blog-description span{ + float: right +} +.ie6 #category-nav a{ + float: left +} +.ie6 .single #content { + height: auto +} + + +/* Styles for Contact Form 7 plugin */ + +div.wpcf7-response-output{ + display: none +} + +/* Styles for WP Post Ratings plugin */ + +.post-ratings{margin-bottom: 10px; float: right; width: 100px !important; margin-top: 5px; overflow: hidden; height: 20px} +.post-ratings small{font-size: .7em;} +.post-ratings-text{display:none !important} + +/* Styles for BuySellAds widget */ + +.BuySellAds_widget{ + width: 938px; + margin: 0; + padding: 3px 0; + height: auto; + overflow: auto; +} +.BuySellAds_widget a { +background-color:#191919; +border:3px solid #191919; +display:block; +height:125px; +overflow:hidden; +position:relative; +width:125px; +float: left; +margin:0 3px 0 0; +} +.BuySellAds_widget a:hover{ + border-color: #191919 +} +.BuySellAds_widget img { + border: 0; + clear: right; +} +.BuySellAds_widget a.adhere { + background: #191919; + border:3px solid #191919; + color: #666; + font-size: 11px; + font-weight: bold; + text-align: center; + width: 125px; + height: 125px; + margin:0 3px 0 0; +} +.BuySellAds_widget a.adhere:hover { + background: #191919; + border: 3px solid #191919; + color: #777; +} \ No newline at end of file diff --git a/prototype/image.html b/prototype/image.html new file mode 100644 index 0000000..a8f9e5c --- /dev/null +++ b/prototype/image.html @@ -0,0 +1,218 @@ + + + + + + Gallery Demo | Just another WordPress weblog + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    + 1 Star + 2 Stars + 3 Stars + 4 Stars + 5 Stars +
    + +

    Envira Media

    +

    An advertising network focused on being green.

    + + +
    +
    + +
    +
    + + http://www.enviramedia.com + +
    +
    + + +
    +
    +

    2 Comments

    +
      +
    1. +
      + + john +
      +
      Posted August 6, 2009 at 6:32 am
      +
      +

      This is a really cool site

      +
      +
    2. +
    3. +
      + + Daniel +
      +
      Posted August 17, 2009 at 5:32 pm
      +
      +

      Hi man,
      + I love this template, but one question – how do you create the image gallery on it?

      +
      +
    4. +
    +
    + +
    +
    + + +
    +

    Post a Comment

    + +
    +
    +

    Your email is never published nor shared. Required fields are marked *

    + +
    +
    *
    +
    +
    + +
    +
    *
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    + + + +
    + \ No newline at end of file diff --git a/prototype/img/body-background.jpg b/prototype/img/body-background.jpg new file mode 100644 index 0000000..52d2a12 Binary files /dev/null and b/prototype/img/body-background.jpg differ diff --git a/prototype/img/btn-bg.jpg b/prototype/img/btn-bg.jpg new file mode 100644 index 0000000..f68d2a9 Binary files /dev/null and b/prototype/img/btn-bg.jpg differ diff --git a/prototype/img/default-user.png b/prototype/img/default-user.png new file mode 100644 index 0000000..077c70b Binary files /dev/null and b/prototype/img/default-user.png differ diff --git a/prototype/img/full-image-default.jpg b/prototype/img/full-image-default.jpg new file mode 100644 index 0000000..bd16c6b Binary files /dev/null and b/prototype/img/full-image-default.jpg differ diff --git a/prototype/img/ico-comment.png b/prototype/img/ico-comment.png new file mode 100644 index 0000000..c1ccf97 Binary files /dev/null and b/prototype/img/ico-comment.png differ diff --git a/prototype/img/ico-home-trans.png b/prototype/img/ico-home-trans.png new file mode 100644 index 0000000..22c3b2f Binary files /dev/null and b/prototype/img/ico-home-trans.png differ diff --git a/prototype/img/ico-new-trans.png b/prototype/img/ico-new-trans.png new file mode 100644 index 0000000..690fb6d Binary files /dev/null and b/prototype/img/ico-new-trans.png differ diff --git a/prototype/img/ico-person.png b/prototype/img/ico-person.png new file mode 100644 index 0000000..49c1a35 Binary files /dev/null and b/prototype/img/ico-person.png differ diff --git a/prototype/img/ico-reply.png b/prototype/img/ico-reply.png new file mode 100644 index 0000000..b89132b Binary files /dev/null and b/prototype/img/ico-reply.png differ diff --git a/prototype/img/ico-rss-trans.png b/prototype/img/ico-rss-trans.png new file mode 100644 index 0000000..e1f963d Binary files /dev/null and b/prototype/img/ico-rss-trans.png differ diff --git a/prototype/img/ico-video-trans.png b/prototype/img/ico-video-trans.png new file mode 100644 index 0000000..9655eb0 Binary files /dev/null and b/prototype/img/ico-video-trans.png differ diff --git a/prototype/img/icons/blinklist.png b/prototype/img/icons/blinklist.png new file mode 100644 index 0000000..c309ac7 Binary files /dev/null and b/prototype/img/icons/blinklist.png differ diff --git a/prototype/img/icons/brightkite.png b/prototype/img/icons/brightkite.png new file mode 100644 index 0000000..adc8e1d Binary files /dev/null and b/prototype/img/icons/brightkite.png differ diff --git a/prototype/img/icons/delicious.png b/prototype/img/icons/delicious.png new file mode 100644 index 0000000..fa131b1 Binary files /dev/null and b/prototype/img/icons/delicious.png differ diff --git a/prototype/img/icons/design_float.png b/prototype/img/icons/design_float.png new file mode 100644 index 0000000..8717190 Binary files /dev/null and b/prototype/img/icons/design_float.png differ diff --git a/prototype/img/icons/digg.png b/prototype/img/icons/digg.png new file mode 100644 index 0000000..7a436ab Binary files /dev/null and b/prototype/img/icons/digg.png differ diff --git a/prototype/img/icons/dopplr.png b/prototype/img/icons/dopplr.png new file mode 100644 index 0000000..9d399ec Binary files /dev/null and b/prototype/img/icons/dopplr.png differ diff --git a/prototype/img/icons/email.png b/prototype/img/icons/email.png new file mode 100644 index 0000000..958dd26 Binary files /dev/null and b/prototype/img/icons/email.png differ diff --git a/prototype/img/icons/facebook.png b/prototype/img/icons/facebook.png new file mode 100644 index 0000000..f6437cd Binary files /dev/null and b/prototype/img/icons/facebook.png differ diff --git a/prototype/img/icons/feed.png b/prototype/img/icons/feed.png new file mode 100644 index 0000000..738081a Binary files /dev/null and b/prototype/img/icons/feed.png differ diff --git a/prototype/img/icons/flickr.png b/prototype/img/icons/flickr.png new file mode 100644 index 0000000..f973ad9 Binary files /dev/null and b/prototype/img/icons/flickr.png differ diff --git a/prototype/img/icons/friendfeed.png b/prototype/img/icons/friendfeed.png new file mode 100644 index 0000000..70daf1b Binary files /dev/null and b/prototype/img/icons/friendfeed.png differ diff --git a/prototype/img/icons/furl.png b/prototype/img/icons/furl.png new file mode 100644 index 0000000..2898eae Binary files /dev/null and b/prototype/img/icons/furl.png differ diff --git a/prototype/img/icons/gamespot.png b/prototype/img/icons/gamespot.png new file mode 100644 index 0000000..67d513c Binary files /dev/null and b/prototype/img/icons/gamespot.png differ diff --git a/prototype/img/icons/globe.png b/prototype/img/icons/globe.png new file mode 100644 index 0000000..4a945da Binary files /dev/null and b/prototype/img/icons/globe.png differ diff --git a/prototype/img/icons/lastfm.png b/prototype/img/icons/lastfm.png new file mode 100644 index 0000000..e604f21 Binary files /dev/null and b/prototype/img/icons/lastfm.png differ diff --git a/prototype/img/icons/linkedin.png b/prototype/img/icons/linkedin.png new file mode 100644 index 0000000..0994b53 Binary files /dev/null and b/prototype/img/icons/linkedin.png differ diff --git a/prototype/img/icons/magnolia.png b/prototype/img/icons/magnolia.png new file mode 100644 index 0000000..22cfd88 Binary files /dev/null and b/prototype/img/icons/magnolia.png differ diff --git a/prototype/img/icons/mixx.png b/prototype/img/icons/mixx.png new file mode 100644 index 0000000..18a12fe Binary files /dev/null and b/prototype/img/icons/mixx.png differ diff --git a/prototype/img/icons/myspace.png b/prototype/img/icons/myspace.png new file mode 100644 index 0000000..27cecf4 Binary files /dev/null and b/prototype/img/icons/myspace.png differ diff --git a/prototype/img/icons/newsvine.png b/prototype/img/icons/newsvine.png new file mode 100644 index 0000000..15b5bf7 Binary files /dev/null and b/prototype/img/icons/newsvine.png differ diff --git a/prototype/img/icons/person.png b/prototype/img/icons/person.png new file mode 100644 index 0000000..7dc20ed Binary files /dev/null and b/prototype/img/icons/person.png differ diff --git a/prototype/img/icons/posterous.png b/prototype/img/icons/posterous.png new file mode 100644 index 0000000..e91440c Binary files /dev/null and b/prototype/img/icons/posterous.png differ diff --git a/prototype/img/icons/reddit.png b/prototype/img/icons/reddit.png new file mode 100644 index 0000000..3074745 Binary files /dev/null and b/prototype/img/icons/reddit.png differ diff --git a/prototype/img/icons/sphere.png b/prototype/img/icons/sphere.png new file mode 100644 index 0000000..abb52b7 Binary files /dev/null and b/prototype/img/icons/sphere.png differ diff --git a/prototype/img/icons/sphinn.png b/prototype/img/icons/sphinn.png new file mode 100644 index 0000000..e745733 Binary files /dev/null and b/prototype/img/icons/sphinn.png differ diff --git a/prototype/img/icons/stumble.png b/prototype/img/icons/stumble.png new file mode 100644 index 0000000..44a3372 Binary files /dev/null and b/prototype/img/icons/stumble.png differ diff --git a/prototype/img/icons/technorati.png b/prototype/img/icons/technorati.png new file mode 100644 index 0000000..0b5d315 Binary files /dev/null and b/prototype/img/icons/technorati.png differ diff --git a/prototype/img/icons/tripadvisor.png b/prototype/img/icons/tripadvisor.png new file mode 100644 index 0000000..d6a5057 Binary files /dev/null and b/prototype/img/icons/tripadvisor.png differ diff --git a/prototype/img/icons/tumblr.png b/prototype/img/icons/tumblr.png new file mode 100644 index 0000000..26eeaeb Binary files /dev/null and b/prototype/img/icons/tumblr.png differ diff --git a/prototype/img/icons/twitter.png b/prototype/img/icons/twitter.png new file mode 100644 index 0000000..dc551ed Binary files /dev/null and b/prototype/img/icons/twitter.png differ diff --git a/prototype/img/icons/vimeo.png b/prototype/img/icons/vimeo.png new file mode 100644 index 0000000..fed0959 Binary files /dev/null and b/prototype/img/icons/vimeo.png differ diff --git a/prototype/img/icons/youtube.png b/prototype/img/icons/youtube.png new file mode 100644 index 0000000..ed79600 Binary files /dev/null and b/prototype/img/icons/youtube.png differ diff --git a/prototype/img/light-source-trans.png b/prototype/img/light-source-trans.png new file mode 100644 index 0000000..b111591 Binary files /dev/null and b/prototype/img/light-source-trans.png differ diff --git a/prototype/img/loading.gif b/prototype/img/loading.gif new file mode 100644 index 0000000..e846e1d Binary files /dev/null and b/prototype/img/loading.gif differ diff --git a/prototype/img/logo.png b/prototype/img/logo.png new file mode 100644 index 0000000..e08caef Binary files /dev/null and b/prototype/img/logo.png differ diff --git a/prototype/img/menu-bg-trans.png b/prototype/img/menu-bg-trans.png new file mode 100644 index 0000000..b919a4e Binary files /dev/null and b/prototype/img/menu-bg-trans.png differ diff --git a/prototype/img/mixcss-logo-small-trans.png b/prototype/img/mixcss-logo-small-trans.png new file mode 100644 index 0000000..e2b9957 Binary files /dev/null and b/prototype/img/mixcss-logo-small-trans.png differ diff --git a/prototype/img/mixcss-logo-trans.png b/prototype/img/mixcss-logo-trans.png new file mode 100644 index 0000000..a0df3f5 Binary files /dev/null and b/prototype/img/mixcss-logo-trans.png differ diff --git a/prototype/img/processing.gif b/prototype/img/processing.gif new file mode 100644 index 0000000..9eac4a7 Binary files /dev/null and b/prototype/img/processing.gif differ diff --git a/prototype/img/processing2.gif b/prototype/img/processing2.gif new file mode 100644 index 0000000..c69e937 Binary files /dev/null and b/prototype/img/processing2.gif differ diff --git a/prototype/img/rating_half.png b/prototype/img/rating_half.png new file mode 100644 index 0000000..f3df5f0 Binary files /dev/null and b/prototype/img/rating_half.png differ diff --git a/prototype/img/rating_off.png b/prototype/img/rating_off.png new file mode 100644 index 0000000..6caa109 Binary files /dev/null and b/prototype/img/rating_off.png differ diff --git a/prototype/img/rating_on.png b/prototype/img/rating_on.png new file mode 100644 index 0000000..b88c857 Binary files /dev/null and b/prototype/img/rating_on.png differ diff --git a/prototype/img/rating_over.png b/prototype/img/rating_over.png new file mode 100644 index 0000000..f067c59 Binary files /dev/null and b/prototype/img/rating_over.png differ diff --git a/prototype/img/side-fade-trans.png b/prototype/img/side-fade-trans.png new file mode 100644 index 0000000..db65fa9 Binary files /dev/null and b/prototype/img/side-fade-trans.png differ diff --git a/prototype/img/thumbnail-default.jpg b/prototype/img/thumbnail-default.jpg new file mode 100644 index 0000000..36dc4e6 Binary files /dev/null and b/prototype/img/thumbnail-default.jpg differ diff --git a/prototype/img_Folder/1585.jpg b/prototype/img_Folder/1585.jpg new file mode 100644 index 0000000..3a0a44f Binary files /dev/null and b/prototype/img_Folder/1585.jpg differ diff --git a/prototype/img_Folder/1587.jpg b/prototype/img_Folder/1587.jpg new file mode 100644 index 0000000..bc2c6a0 Binary files /dev/null and b/prototype/img_Folder/1587.jpg differ diff --git a/prototype/img_Folder/CaptainChair.jpg b/prototype/img_Folder/CaptainChair.jpg new file mode 100644 index 0000000..ac48675 Binary files /dev/null and b/prototype/img_Folder/CaptainChair.jpg differ diff --git a/prototype/img_Folder/Folder.png b/prototype/img_Folder/Folder.png new file mode 100644 index 0000000..3b97638 Binary files /dev/null and b/prototype/img_Folder/Folder.png differ diff --git a/prototype/img_Folder/FolderBack.png b/prototype/img_Folder/FolderBack.png new file mode 100644 index 0000000..69b7fe5 Binary files /dev/null and b/prototype/img_Folder/FolderBack.png differ diff --git a/prototype/img_Folder/FolderFront.png b/prototype/img_Folder/FolderFront.png new file mode 100644 index 0000000..4b3e9d5 Binary files /dev/null and b/prototype/img_Folder/FolderFront.png differ diff --git a/prototype/img_Folder/VistaDefaultBack.png b/prototype/img_Folder/VistaDefaultBack.png new file mode 100644 index 0000000..07b5c80 Binary files /dev/null and b/prototype/img_Folder/VistaDefaultBack.png differ diff --git a/prototype/img_Folder/VistaDefaultEmpty.png b/prototype/img_Folder/VistaDefaultEmpty.png new file mode 100644 index 0000000..fb232df Binary files /dev/null and b/prototype/img_Folder/VistaDefaultEmpty.png differ diff --git a/prototype/img_Folder/VistaDefaultFront.png b/prototype/img_Folder/VistaDefaultFront.png new file mode 100644 index 0000000..663f937 Binary files /dev/null and b/prototype/img_Folder/VistaDefaultFront.png differ diff --git a/prototype/img_Folder/child_dodgeas_2003.jpg b/prototype/img_Folder/child_dodgeas_2003.jpg new file mode 100644 index 0000000..99a87f0 Binary files /dev/null and b/prototype/img_Folder/child_dodgeas_2003.jpg differ diff --git a/prototype/img_Folder/folder-ext.png b/prototype/img_Folder/folder-ext.png new file mode 100644 index 0000000..bbeaf2a Binary files /dev/null and b/prototype/img_Folder/folder-ext.png differ diff --git a/prototype/img_Folder/test.xcf b/prototype/img_Folder/test.xcf new file mode 100644 index 0000000..e4016b5 Binary files /dev/null and b/prototype/img_Folder/test.xcf differ diff --git a/prototype/index.html b/prototype/index.html new file mode 100644 index 0000000..f525d6d --- /dev/null +++ b/prototype/index.html @@ -0,0 +1,208 @@ + + + + + + Gallery Demo | Just another WordPress weblog + + + + + + + + + + + + + + + + + + + + +
    + + + +
    +
    +
    +
    +
    + + + Envira Media + Envira Media + +
    +
    + + +
    +
    + Rawkes + Rawkes +
    +
    +
    +
    + Tutorial9 + Tutorial9 +
    +
    + + + +
    +
    + Pop Labs + Pop Labs +
    +
    +
    +
    + Orange Label + Orange Label +
    +
    + + +
    +
    +
    + + +
    + \ No newline at end of file diff --git a/prototype/js/DD_belatedPNG.js b/prototype/js/DD_belatedPNG.js new file mode 100644 index 0000000..f61d70d --- /dev/null +++ b/prototype/js/DD_belatedPNG.js @@ -0,0 +1,9 @@ +/** +* DD_belatedPNG 0.0.6a ~ Adds IE6 support: PNG images for CSS background-image and HTML . +* Author: Drew Diller +* Email: drew.diller@gmail.com +* MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license +**/ + +/* JS packer: Dean Edwards, http://dean.edwards.name/packer/ */ +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 o={p:\'o\',1q:9(){7(m.1c&&!m.1c[3.p]){m.1c.1R(3.p,\'1S:1T-1U-1V:1W\')}7(1r.K){1r.K(\'1X\',9(){o=1Y})}},1s:9(){4 a=m.D(\'6\');m.1t.10.M(a,m.1t.10.10);4 b=a.1d;b.11(3.p+\'\\\\:*\',\'{1e:1u(#1v#1Z)}\');b.11(3.p+\'\\\\:E\',\'F:1f;\');b.11(\'1w.\'+3.p+\'1x\',\'F:1f; z-20:-1; 12:-21; 1y:1z;\');3.1d=b},1A:9(){4 a=1B.22;7(1B.23.1g(\'24\')!=-1){a.N.25=\'\';o.13.t(a)}},O:9(a){4 b=3;1C(9(){b.N.P=\'\';b.N.G=\'\';o.13.t(b)},1)},26:9(a){4 b=a.1h(\',\');u(4 i=0;i=m.1b.16){f.W=m.1b.16-1}u(4 r=0;r<2;r++){3.J[r].6.15=f.W+\'8\';3.J[r].6.17=f.H+\'8\';3.J[r].6.1k=(f.L+f.1l-1)+\'8\';3.J[r].6.12=(f.T+f.1O-1)+\'8\'}4 h={\'X\':0,\'Y\':0};4 i=9(a,b){4 c=n;2F(b){Z\'1k\':Z\'12\':h[a]=0;1m;Z\'1j\':h[a]=.5;1m;Z\'2G\':Z\'2H\':h[a]=1;1m;1v:7(b.1g(\'%\')!=-1){h[a]=1P(b)*.2I}1Q{c=1M}}4 d=(a==\'X\');h[a]=2J.2K(c?((f[d?\'W\':\'H\']*h[a])-(f[d?\'w\':\'h\']*h[a])):1P(b));7(h[a]==0){h[a]=1}};u(4 b 18 h){i(b,e[\'1J\'+b])}3.V.F=(h.X/f.W)+\',\'+(h.Y/f.H);4 j=e.1I;4 k={\'T\':1,\'R\':f.W+g,\'B\':f.H,\'L\':1+g};4 l={\'X\':{\'1n\':\'L\',\'1o\':\'R\',\'d\':\'W\'},\'Y\':{\'1n\':\'T\',\'1o\':\'B\',\'d\':\'H\'}};7(j!=\'19\'){4 c={\'T\':(h.Y),\'R\':(h.X+f.w),\'B\':(h.Y+f.h),\'L\':(h.X)};7(j.1g(\'19-\')!=-1){4 v=j.1h(\'19-\')[1].2L();c[l[v].1n]=1;c[l[v].1o]=f[l[v].d]}7(c.B>f.H){c.B=f.H}3.y.6.1p=\'E(\'+c.T+\'8 \'+(c.R+g)+\'8 \'+c.B+\'8 \'+(c.L+g)+\'8)\'}1Q{3.y.6.1p=\'E(\'+k.T+\'8 \'+k.R+\'8 \'+k.B+\'8 \'+k.L+\'8)\'}7(3.1F){k.R++;k.B++}3.C.6.1p=\'E(\'+k.T+\'8 \'+k.R+\'8 \'+k.B+\'8 \'+k.L+\'8)\'}};o.1q();o.1s();',62,172,'|||this|var||style|if|px|function|||||||||||||document|true|DD_belatedPNG|ns|borderRect|||call|for|||bgSizeFinder|imgRect||||colorRect|createElement|rect|position|backgroundImage||src|rects|attachEvent||insertBefore|runtimeStyle|handlePseudoHover|backgroundColor|nodeName||zIndex||parentNode|imgFill||||case|firstChild|addRule|top|updateVmlFill|currentStyle|width|clientWidth|height|in|repeat|updateVmlDimensions|body|namespaces|styleSheet|behavior|absolute|search|split|fixPng|center|left|bLW|break|b1|b2|clip|createVmlNameSpace|window|createVmlStyleSheet|documentElement|url|default|img|_sizeFinder|visibility|hidden|interceptPropertyChanges|event|setTimeout|none|return|isImg|clientHeight|zoom|backgroundRepeat|backgroundPosition|offsetLeft|offsetTop|false|transparent|bTW|parseInt|else|add|urn|schemas|microsoft|com|vml|onbeforeunload|null|VML|index|10000px|srcElement|propertyName|background|cssText|fix|length|expression|BODY|TD|TR|IMG|div|borderStyle|borderWidth|borderColor|display|verticalAlign|no|className|onload|fill|stroked|appendChild|resize|move|mouseleave|mouseenter|focus|blur|on|onpropertychange|static|relative|type|tile|filled|fillColor|clientLeft|clientTop|switch|right|bottom|01|Math|ceil|toUpperCase'.split('|'),0,{})) \ No newline at end of file diff --git a/prototype/js/colortip-1.0-jquery.css b/prototype/js/colortip-1.0-jquery.css new file mode 100644 index 0000000..b445ca9 --- /dev/null +++ b/prototype/js/colortip-1.0-jquery.css @@ -0,0 +1,99 @@ +.colorTip{ + /* This class is assigned to the color tip span by jQuery */ + + display:none; + position:absolute; + left:50%; + top:-30px; + padding:6px; + + background-color:white; + font-family:Arial,Helvetica,sans-serif; + font-size:11px; + font-style:normal; + line-height:1; + text-decoration:none; + text-align:center; + text-shadow:0 0 1px white; + white-space:nowrap; + + -moz-border-radius:4px; + -webkit-border-radius:4px; + border-radius:4px; +} + +.pointyTip,.pointyTipShadow{ + /* Setting a thick transparent border on a 0x0 div to create a triangle */ + border:6px solid transparent; + bottom:-12px; + height:0; + left:50%; + margin-left:-6px; + position:absolute; + width:0; +} + +.pointyTipShadow{ + /* The shadow tip is 1px larger, so it acts as a border to the tip */ + border-width:7px; + bottom:-14px; + margin-left:-7px; +} + +.colorTipContainer{ + position:relative; + text-decoration:none !important; +} + + +/* 6 Available Color Themes */ + +.white .pointyTip{ border-top-color:white;} +.white .pointyTipShadow{ border-top-color:#ddd;} +.white .colorTip{ + background-color:white; + border:1px solid #DDDDDD; + color:#555555; +} + +.yellow .pointyTip{ border-top-color:#f9f2ba;} +.yellow .pointyTipShadow{ border-top-color:#e9d315;} +.yellow .colorTip{ + background-color:#f9f2ba; + border:1px solid #e9d315; + color:#5b5316; +} + +.blue .pointyTip{ border-top-color:#d9f1fb;} +.blue .pointyTipShadow{ border-top-color:#7fcdee;} +.blue .colorTip{ + background-color:#d9f1fb; + border:1px solid #7fcdee; + color:#1b475a; +} + +.green .pointyTip{ border-top-color:#f2fdf1;} +.green .pointyTipShadow{ border-top-color:#b6e184;} +.green .colorTip{ + background-color:#f2fdf1; + border:1px solid #b6e184; + color:#558221; +} + +.red .pointyTip{ border-top-color:#bb3b1d;} +.red .pointyTipShadow{ border-top-color:#8f2a0f;} +.red .colorTip{ + background-color:#bb3b1d; + border:1px solid #8f2a0f; + color:#fcfcfc; + text-shadow:none; +} + +.black .pointyTip{ border-top-color:#333;} +.black .pointyTipShadow{ border-top-color:#111;} +.black .colorTip{ + background-color:#333; + border:1px solid #111; + color:#fcfcfc; + text-shadow:none; +} \ No newline at end of file diff --git a/prototype/js/colortip-1.0-jquery.js b/prototype/js/colortip-1.0-jquery.js new file mode 100644 index 0000000..13bc1fa --- /dev/null +++ b/prototype/js/colortip-1.0-jquery.js @@ -0,0 +1,142 @@ +(function($){ + $.fn.colorTip = function(settings){ + + var defaultSettings = { + color : 'yellow', + timeout : 500 + } + + var supportedColors = ['red','green','blue','white','yellow','black']; + + /* Combining the default settings object with the supplied one */ + settings = $.extend(defaultSettings,settings); + + /* + * Looping through all the elements and returning them afterwards. + * This will add chainability to the plugin. + */ + + return this.each(function(){ + + var elem = $(this); + + // If the title attribute is empty, continue with the next element + if(!elem.attr('title')) return true; + + // Creating new eventScheduler and Tip objects for this element. + // (See the class definition at the bottom). + + var scheduleEvent = new eventScheduler(); + var tip = new Tip(elem.attr('title')); + + // Adding the tooltip markup to the element and + // applying a special class: + + elem.append(tip.generate()).addClass('colorTipContainer'); + + // Checking to see whether a supported color has been + // set as a classname on the element. + + var hasClass = false; + for(var i=0;i