From 9222412ac65e03f92ed2f329e0f5d80118c28e8c Mon Sep 17 00:00:00 2001 From: Higher Ground Studio Date: Thu, 12 Jul 2012 18:22:49 -0600 Subject: [PATCH 1/2] changed over to coffee, haml, sass (compass) optimized plugin and moved over to coffee --- .gitignore | 9 + css/images/bg.jpg | Bin 26676 -> 0 bytes css/images/dlg-close.png | Bin 1910 -> 0 bytes css/style.css | 50 --- css/topbox.css | 170 ---------- engine/coffeescripts/litelighter.js.coffee | 159 ++++++++++ engine/coffeescripts/topbox.js.coffee | 190 ++++++++++++ engine/config.rb | 26 ++ engine/fire_app_log.txt | 302 ++++++++++++++++++ engine/images/bg.png | Bin 0 -> 13100 bytes engine/images/dlg-close.png | Bin 0 -> 1130 bytes engine/index.html.haml | 155 ++++++++++ {js => engine/javascripts}/jquery.easing.js | 0 engine/javascripts/jquery.min.js | 4 + engine/javascripts/litelighter.js | 201 ++++++++++++ engine/javascripts/topbox.js | 250 +++++++++++++++ engine/sass/screen.scss | 114 +++++++ engine/sass/themes.scss | 115 +++++++ engine/sass/topbox.scss | 118 +++++++ engine/stylesheets/screen.css | 39 +++ engine/stylesheets/themes.css | 26 ++ engine/stylesheets/topbox.css | 46 +++ images/bg.png | Bin 0 -> 13100 bytes images/dlg-close.png | Bin 0 -> 1130 bytes index.html | 267 ++++++++-------- javascripts/jquery.easing.js | 205 ++++++++++++ javascripts/jquery.min.js | 4 + javascripts/litelighter.js | 201 ++++++++++++ javascripts/topbox.js | 250 +++++++++++++++ js/jquery.js | 167 ---------- js/topbox.js | 327 -------------------- readme.markdown => readme.md | 1 + stylesheets/screen.css | 39 +++ stylesheets/themes.css | 26 ++ stylesheets/topbox.css | 46 +++ 35 files changed, 2660 insertions(+), 847 deletions(-) create mode 100644 .gitignore delete mode 100644 css/images/bg.jpg delete mode 100644 css/images/dlg-close.png delete mode 100644 css/style.css delete mode 100644 css/topbox.css create mode 100644 engine/coffeescripts/litelighter.js.coffee create mode 100644 engine/coffeescripts/topbox.js.coffee create mode 100644 engine/config.rb create mode 100644 engine/fire_app_log.txt create mode 100644 engine/images/bg.png create mode 100644 engine/images/dlg-close.png create mode 100644 engine/index.html.haml rename {js => engine/javascripts}/jquery.easing.js (100%) create mode 100644 engine/javascripts/jquery.min.js create mode 100644 engine/javascripts/litelighter.js create mode 100644 engine/javascripts/topbox.js create mode 100644 engine/sass/screen.scss create mode 100644 engine/sass/themes.scss create mode 100644 engine/sass/topbox.scss create mode 100644 engine/stylesheets/screen.css create mode 100644 engine/stylesheets/themes.css create mode 100644 engine/stylesheets/topbox.css create mode 100644 images/bg.png create mode 100644 images/dlg-close.png create mode 100644 javascripts/jquery.easing.js create mode 100644 javascripts/jquery.min.js create mode 100644 javascripts/litelighter.js create mode 100644 javascripts/topbox.js delete mode 100644 js/jquery.js delete mode 100644 js/topbox.js rename readme.markdown => readme.md (99%) create mode 100644 stylesheets/screen.css create mode 100644 stylesheets/themes.css create mode 100644 stylesheets/topbox.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2bd25f --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.sass-cache +.coffeescript-cache + +# OS generated files # +###################### +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db diff --git a/css/images/bg.jpg b/css/images/bg.jpg deleted file mode 100644 index 2a630763ee7c6bd419f7a6ccb59cc78055ef06c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 26676 zcmbTdc{tR2{QvzKgF%`hI*~D>Mp^2V?PMlqk+OxcwH(I@4N0eD%QBW36cWZ-D$F>R zp-tMT2q|MJ#2jQ7vKz~cvCX(YeSi0L-`92jb^m@J7nh3ynX{mXem0k&}~^k(HH`N65?VfbWo% z-Kn?}j!;lgRFIS3rL;>y3H)B+*FS;$`b(&!4ETo%J7jl&KmFglw(9^z8HgQ(4~6Up zBorY~MacFi01duRDaij^!2f+gB%qQ~(l8lWxgFpQuN43Z@U*yN&am*Nt zJ8pjRl!c|0wT-jOnX~84|LIEc^1kGA+4o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OMbwX-9R$f%Jfm=aj zVt5pmH2bRa+m>AlMqG$?wG*K^Za0G3V?h+{%s8K2>4$sE165HrzBTZi6A{?K9_G7~ z<;=w#e(xknIWtgmFr;OQ)|5t7Ap#i^>{w;3Mn%~ila->(%P&G{L<&i^Aw84~a*6i_ zZ(VFgypEy$z&?3wXduJ8F3%IW@1#_di?2+4rRykL#{{{uv!Z10>RY=qc?!r^*JycMaubZG+>(}&~jcCBb%L_!!}A_F78_x=~u0P&@tbZw#Rl}^W7YAqGN94 zk9R}`Ftc75J4?|N{Uaz>ped>gyuhoJ2j=B}^wn)No%V&bP7J1e>f@`E#c{5VCdif+ z;fV!q0F+fS=CVCz`A@PW38x^zLLAinzM?XJaSTvit-K< zo0@*o8mI_0`3~5@UbS!Gnxhx*8s3$-MSh^l|EaIi+?}Fo7aAkz9%R8YL2gnVRapxm z_F7NOqoxlpLWV5bdda8zRrLBB`ITQEe!m$%@CB5K{FKwaDa9nSF?tWafEVv$M2gEs#|a^Z5gUhp-aIifGejRmrzL~c)BB8VCdxcAYg!5Oz0r}I0INOh6G zUrV~IZp33a#Z00+_#ii8o6P`RX;9ROlsD`w1=eNkGSqb3V7t#`yTdZq%k72HHElhd zKmjO0yQRD!yGV6nKXHV-^Pq+V$=W66XRcIJKKpI2s0~zSa*9J`_7VlmLlEu1Z~q5t C4j={q diff --git a/css/images/dlg-close.png b/css/images/dlg-close.png deleted file mode 100644 index 4de4396d4a09677774f79289de2a09511baeea22..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1910 zcmV-+2Z{KJP)z^Q>-8KIssI20AY({UO#lFGm;eBCjsO7iaR2~=Yybd* zy8r;x$N&H_>;M26yq<`~KL7v*>`6pHRCwBAWWWy?p_swJ!GY=X=g*8ke*9qk`ST}Z zdU`qw7Z(@fv}x0Rf#f+jIR5kU^8P2LK7aoF=BZPs zUOIK^)MsF*`~o`QH`D=t(JcoEAauk84FygG1qFf7&``O#bLZLs4PE;m4ZL{q;_rh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}lRr{Y9MF0T?00rpcocj25u>b%707*qoM6N<$g7 span { - font-weight: normal; -} - -pre { - background: #fff; - padding: 20px; - font-size: 14px; - font-family: Courier; - font-style: normal; - border-radius: 5px; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; - -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.1) inset; - -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; -} - -.wrapper{ - width: 800px; - margin: 40px auto; -} \ No newline at end of file diff --git a/css/topbox.css b/css/topbox.css deleted file mode 100644 index 450e3d0..0000000 --- a/css/topbox.css +++ /dev/null @@ -1,170 +0,0 @@ -/** - DEFAULTS -**/ -.topbox-window { - font-family: “Trebuchet MS”, sans-serif; - font-size: 14px; - font-style: normal; - font-weight: normal; - text-transform: normal; - letter-spacing: normal; - line-height: 1.4em; - - position: fixed; - top: 0px; - background-color: #fff; - color: #000; - - min-width: 400px; - - z-index: 1000; - -webkit-box-shadow: 0px 0px 20px #444; - -moz-box-shadow: 0px 0px 20px #444; - box-shadow: 0px 0px 20px #444; - - -webkit-border-radius: 0px 0px 8px 8px; - -moz-border-radius: 0px 0px 8px 8px; - border-radius: 0px 0px 8px 8px; -} - -.topbox-closebutton{ - background: transparent url(images/dlg-close.png) 50% 50% no-repeat; - width: 30px; - height: 30px; - cursor: pointer; - - position: absolute; - right: -15px; - top: 2px; -} - -.topbox-title{ - padding: 6px; - font-weight: bold; - background: #ddd; - border-bottom: 1px #ccc solid; -} - -.topbox-content{ - padding: 6px; -} - -.topbox-buttonsbar{ - margin: 6px; - border-top: 1px #ccc dotted; -} - -.topbox-buttons{ - padding: 6px 0px; - text-align: right; -} - -.topbox-button{ - font-size: 90%; - cursor: pointer; - color: #999; - display: inline-block; - padding: 6px 8px; - border-style: none; - background: transparent; -} - -.topbox-button:hover{ - background: #111; - color: #fff; - text-shadow: 0px -1px 1px rgba(0, 0, 0, .8), 0 1px 1px rgba(255, 255, 255, 0.3); - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -#topbox-overlay { - z-index: 999; - background: #222d3f; - opacity: 0.5; - filter:Alpha(Opacity=50); - -ms-filter:Alpha(Opacity=50); -} - - -/** STYLES - Optional **/ - -/* default */ - -.default .topbox-title{ - background: -moz-linear-gradient(0% 100% 90deg, #ddd, #eee); - background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eee), to(#ddd)); - - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#dddddd',GradientType=0 ); /* ie */ - -ms-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#dddddd',GradientType=0 ); /* ie 8 */ - - border-bottom: 1px #ccc solid; - text-shadow: #F4F4F4 0px 1px 0px; -} - -.default .topbox-button:hover{ - background: #111; - background: -moz-linear-gradient(0% 100% 90deg, #FFFFFF, #000000, - rgba(0, 0, 0, 0.9) 0%, - rgba(20, 20, 20, 0.9) 50%, - rgba(30, 30, 30, 0.9) 50%, - rgba(50, 50, 50, 0.9) 100%); - background: -webkit-gradient(linear, 0 0, 0 100%, - color-stop(0, rgba(50, 50, 50, 0.9)), - color-stop(0.5, rgba(30, 30, 30, 0.9)), - color-stop(0.5, rgba(20, 20, 20, 0.9)), - color-stop(1, rgba(0, 0, 0, 0.9))); - - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#666666', endColorstr='#111111',GradientType=0 ); /* ie */ - -ms-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#666666', endColorstr='#111111',GradientType=0 ); /* ie 8 */ - - -moz-box-shadow: inset 1px 1px 1px 0px rgba(135, 135, 135, 0.1), inset -1px -1px 1px 0px rgba(135, 135, 135, 0.1); - -webkit-box-shadow: inset 1px 1px 1px 0px rgba(135, 135, 135, 0.1), inset -1px -1px 1px 0px rgba(135, 135, 135, 0.1); - box-shadow: inset 1px 1px 1px 0px rgba(135, 135, 135, 0.1), inset -1px -1px 1px 0px rgba(135, 135, 135, 0.1); -} - -/* dark */ - -.topbox-window.dark { - background: #222; - - background: -moz-linear-gradient(top, #45484d 0%, #000000 100%); /* firefox */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#000000)); /* webkit */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); /* ie */ - -ms-filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); /* ie */ - - color: #ccc; - border-bottom: 2px #fff solid; - border-left: 2px #fff solid; - border-right: 2px #fff solid; -} - -.dark .topbox-title{ - color: #fff; - background: transparent; - border-bottom: none; -} - -.dark .topbox-buttonsbar{ - border-top: 1px #666 dotted; -} - -/* classic */ - -.topbox-window.classic { - background-color: #eee; - color: #666; - -} - -.classic .topbox-title{ - color: #000; - background: #fff; - border-bottom: 1px #ccc solid; -} - -.classic .topbox-buttonsbar{ - border-top: none; -} - - diff --git a/engine/coffeescripts/litelighter.js.coffee b/engine/coffeescripts/litelighter.js.coffee new file mode 100644 index 0000000..70c9e79 --- /dev/null +++ b/engine/coffeescripts/litelighter.js.coffee @@ -0,0 +1,159 @@ +(($) -> + $.litelighter = ($this, options) -> + @settings = $.extend({}, + clone: false + style: "light" + language: "generic" + , options) + @code = $this + @enable() + + $.extend $.litelighter::, + enable: -> + @codelite = @code.data("llcode", @code.text()) + @codelite = $("
").text(@code.text()).addClass("litelighter").insertAfter(@code.css("display", "none"))  if @settings.clone is true
+      @settings.language = @code.data("lllanguage")  if @code.data("lllanguage")
+      @settings.style = @code.data("llstyle")  if @code.data("llstyle")
+      style = $.litelighter.styles[@settings.style]
+      lang = $.litelighter.languages[@settings.language]
+      txt = $.litelighter.highlight(@codelite.html(), style, lang)
+      @codelite.attr("style", style.code).html txt
+      @code
+
+    disable: ->
+      if @settings.clone
+        @codelite.remove()
+        return @code.css("display", "block")
+      @code.html("").text @code.data("llcode")
+
+    destroy: ->
+      @disable()
+      @code.removeData "litelighter"
+
+    option: (key, val) ->
+      if val isnt `undefined`
+        @code.data "ll" + key, val
+        @settings[key] = val
+        @disable()
+        return @enable()
+      this[key]
+
+  $.fn.extend litelighter: (o) ->
+    o = o or {}
+    tmp_args = Array::slice.call(arguments)
+    if typeof (o) is "string"
+      @each ->
+        inst = $(this).data("litelighter")
+        inst[o].apply inst, tmp_args.slice(1)
+    else
+      @each ->
+        $t = $(this)
+        $t.data "litelighter", new $.litelighter($t, o)
+
+  $.litelighter.highlight = (txt, style, lang) ->
+    sublangsi = 0
+    sublangs = []
+    for i of lang
+      if lang.hasOwnProperty(i) and lang[i].language isnt `undefined` and $.litelighter.languages[lang[i].language] isnt `undefined`
+        txt = txt.replace(lang[i].re, ($1, $2, $3) ->
+          sublangs[sublangsi++] = $.litelighter.highlight($2, style, $.litelighter.languages[lang[i].language])
+          $1.replace $2, "___subtmpl" + (sublangsi - 1) + "___"
+        )
+    for i of lang
+      txt = txt.replace(lang[i].re, "___" + i + "___$1___end" + i + "___")  if lang.hasOwnProperty(i) and lang[i].language is `undefined`
+    lvls = []
+    txt = txt.replace(/___(?!subtmpl)\w+?___/g, ($0) ->
+      end = (if ($0.substr(3, 3) is "end") then true else false)
+      tag = (if not end then $0.substr(3) else $0.substr(6)).replace(/_/g, "")
+      lastTag = (if lvls.length > 0 then lvls[lvls.length - 1] else null)
+      if not end and (not lastTag? or tag is lastTag or (lastTag? and lang[lastTag].embed isnt `undefined` and $.inArray(tag, lang[lastTag].embed) >= 0))
+        lvls.push tag
+        return $0
+      else if end and tag is lastTag
+        lvls.pop()
+        return $0
+      ""
+    )
+    for i of lang
+      txt = txt.replace(new RegExp("___end" + i + "___", "g"), "").replace(new RegExp("___" + i + "___", "g"), "")  if lang.hasOwnProperty(i)
+    for i of lang
+      if lang.hasOwnProperty(i) and lang[i].language isnt `undefined` and $.litelighter.languages[lang[i].language] isnt `undefined`
+        txt = txt.replace(/___subtmpl\d+___/g, ($tmpl) ->
+          i = parseInt($tmpl.replace(/___subtmpl(\d+)___/, "$1"), 10)
+          sublangs[i]
+        )
+    txt
+
+  $.litelighter.styles =
+    light:
+      code: "background-color:#ffffff;color:#555;"
+      comment: "color:#999"
+      string: "color:#8F9657"
+      number: "color:#CF6745;"
+      keyword: "color:#6F87A8;"
+      operators: "color:#9e771e;"
+
+    dark:
+      code: "background-color:#141414;color:#ffffff;"
+      comment: "color:#999"
+      string: "color:#8F9657"
+      number: "color:#CF6745;"
+      keyword: "color:#6F87A8;"
+      operators: "color:#fee79e;"
+
+  $.litelighter.languages = generic:
+    comment:
+      re: /(\/\/.*|\/\*([\s\S]*?)\*\/)/g
+      style: "comment"
+
+    string:
+      re: /((\'.*?\')|(\".*?\"))/g
+      style: "string"
+
+    numbers:
+      re: /(\-?(\d+|\d+\.\d+|\.\d+))/g
+      style: "number"
+
+    regex:
+      re: /([^\/]\/[^\/].+\/(g|i|m)*)/g
+      style: "number"
+
+    keywords:
+      re: /(?:\b)(for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|false|true|null|undefined)(?:\b)/g
+      style: "keyword"
+
+    operators:
+      re: /(\+|\-|\/|\*|\%|\=|\<|\>|\||\?|\.)/g
+      style: "operators"
+
+  $.litelighter.languages.js = $.litelighter.languages.generic
+  $.litelighter.languages.css =
+    comment: $.litelighter.languages.generic.comment
+    string: $.litelighter.languages.generic.string
+    numbers:
+      re: /((\-?(\d+|\d+\.\d+|\.\d+)(\%|px|em|pt|in)?)|\#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g
+      style: "number"
+
+    keywords:
+      re: /(\@\w+|\:?\:\w+|[a-z\-]+\:)/g
+      style: "keyword"
+
+  $.litelighter.languages.html =
+    comment:
+      re: /(\<\;\!\-\-([\s\S]*?)\-\-\>\;)/g
+      style: "comment"
+
+    tag:
+      re: /(\<\;\/?\w(.|\n)*?\/?\>\;)/g
+      style: "keyword"
+      embed: [ "string" ]
+
+    string: $.litelighter.languages.generic.string
+    css:
+      re: /(?:\<style.*?\>)([\s\S]+?)(?:\<\/style\>)/g
+      language: "css"
+
+    script:
+      re: /(?:\<script.*?\>)([\s\S]+?)(?:\<\/script\>)/g
+      language: "js"
+) jQuery
\ No newline at end of file
diff --git a/engine/coffeescripts/topbox.js.coffee b/engine/coffeescripts/topbox.js.coffee
new file mode 100644
index 0000000..94f490a
--- /dev/null
+++ b/engine/coffeescripts/topbox.js.coffee
@@ -0,0 +1,190 @@
+(($) ->
+  $this = null
+  $.topbox = $this =
+    box: null
+    options: {}
+    persist: false
+    show: (content, options) ->
+      @clear()  if @box
+      @options = $.extend(
+        title: false
+        closeOnEsc: true
+        closeBtn: true
+        theme: ""
+        height: "auto"
+        width: "auto"
+        speed: 500
+        easing: "swing"
+        buttons: false
+        _status: true
+        beforeShow: ->
+
+        beforeClose: ->
+
+        onClose: ->
+      , options)
+      dlgAlt = Array()
+      dlgAlt.push "
" + dlgAlt.push "
" if @options.closeBtn + dlgAlt.push "
" + dlgAlt.push "
" + dlgAlt.push "
" + dlgAlt.push "
" + dlgAlt = dlgAlt.join("") + @box = $(dlgAlt) + if @options.closeBtn + @box.find(".topbox-closebutton").bind "click", -> + $this.close() + if @options.buttons + btns = @box.find(".topbox-buttons") + $.each @options.buttons, (caption, fn) -> + $("").bind("click", (e) -> + e.preventDefault() + fn.apply $this + ).appendTo btns + else + @box.find(".topbox-buttonsbar").hide() + unless @options.height is "auto" + @box.find(".topbox-innercontent").css + height: @options.height + "overflow-y": "auto" + unless @options.width is "auto" + @box.find(".topbox-innercontent").css + width: @options.width + "overflow-x": "auto" + @setContent(content).setTitle @options.title + @box.css( + opacity: 0 + visibility: "hidden" + ).appendTo "body" + @options.beforeShow.apply this + @box.css( + left: ($(window).width() / 2 - $this.box.width() / 2) + top: (-1.5) * $this.box.height() + ).css(visibility: "visible").animate + top: 0 + opacity: 1 + , @options.speed, @options.easing, -> + $this.box.find(":input:first").focus() if $this.box.find(":input:first").length + + $(window).bind "resize.topbox", -> + $this.center() + $this.overlay.hide().css( + width: $(document).width() + height: $(document).height() + ).show() + + if @options.closeOnEsc + $(document).bind "keydown.topbox", (e) -> + if e.keyCode is 27 + e.preventDefault() + $this.close() + @showOverlay() + this + + close: -> + return unless @box + return this if @options.beforeClose.apply(this) is false + @overlay.fadeOut() + @box.animate + top: (-1.5) * $this.box.height() + opacity: 0 + , @options.speed, @options.easing, -> + $this.clear() + + @options.onClose.apply this + this + + blockUI: (content, options) -> + options = $.extend( + closeBtn: false + closeOnEsc: false + , options) + @show content, options + + confirm: (content, fn, options) -> + options = $.extend( + title: "Please confirm" + buttons: + Ok: -> + fn.apply $this + + Cancel: -> + @close() + , options) + @show content, options + + alert: (content, options) -> + options = $.extend( + title: "Alert" + theme: "error" + buttons: + Ok: -> + @close() + , options) + @show content, options + + clear: -> + return unless @box + if @persist + @persist.appendTo @persist.data("tb-persist-parent") + @persist = false + @box.stop().remove() + @box = null + @overlay.hide() if @overlay + $(window).unbind "resize.topbox" + $(document).unbind "keydown.topbox" + this + + center: -> + return unless @box + @box.css left: ($(window).width() / 2 - $this.box.width() / 2) + + setTitle: (title) -> + return unless @box + if title + @box.find(".topbox-title").html(title).show() + else + @box.find(".topbox-title").html(title).hide() + this + + setContent: (content) -> + return unless @box + if typeof content is "object" + content = (if content instanceof jQuery then content else $(content)) + if content.parent().length + @persist = content + @persist.data "tb-persist-parent", content.parent() + else if typeof content is "string" or typeof content is "number" + content = $("
").html(content) + else + content = $("
").html("SimpleModal Error: Unsupported data type: " + typeof content) + content.appendTo @box.find(".topbox-innercontent").html("") + this + + showOverlay: -> + return unless @box + unless @overlay + unless $("#topbox-overlay").length + $("
").attr("id", "topbox-overlay").css( + top: 0 + left: 0 + position: "absolute" + ).prependTo "body" + @overlay = $("#topbox-overlay") + @overlay.css( + width: $(document).width() + height: $(document).height() + ).show() + + $.fn.topbox = -> + args = arguments + options = (if args[0] then args[0] else {}) + @each -> + ele = $(this) + ele.bind "click", (e) -> + e.preventDefault() + target = String(ele.data("target") or ele.attr("href")) + type = ele.data("type") or "html" + $.topbox.show $(target), options if target[0] is "#" or type is "html" +) jQuery \ No newline at end of file diff --git a/engine/config.rb b/engine/config.rb new file mode 100644 index 0000000..84fe586 --- /dev/null +++ b/engine/config.rb @@ -0,0 +1,26 @@ +# Require any additional compass plugins here. + +# Set this to the root of your project when deployed: +http_path = "/" +css_dir = "stylesheets" +sass_dir = "sass" +images_dir = "images" +javascripts_dir = "javascripts" + +# You can select your preferred output style here (can be overridden via the command line): +# output_style = :expanded or :nested or :compact or :compressed +# output_style = :compressed + +# To enable relative paths to assets via compass helper functions. Uncomment: +#relative_assets = true + +# To disable debugging comments that display the original location of your selectors. Uncomment: +# line_comments = false + +# If you prefer the indented syntax, you might want to regenerate this +# project again passing --syntax sass, or you can uncomment this: +# preferred_syntax = :sass +# and then run: +# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass +line_comments = false # by Fire.app +output_style = :compact # by Fire.app \ No newline at end of file diff --git a/engine/fire_app_log.txt b/engine/fire_app_log.txt new file mode 100644 index 0000000..e26746d --- /dev/null +++ b/engine/fire_app_log.txt @@ -0,0 +1,302 @@ +2012-07-11 16:47:54 overwrite stylesheets/screen.css +2012-07-11 16:47:59 identical stylesheets/screen.css +2012-07-11 16:48:14 overwrite stylesheets/screen.css +2012-07-11 16:48:25 overwrite stylesheets/screen.css +2012-07-11 16:48:32 overwrite stylesheets/screen.css +2012-07-11 16:50:10 overwrite stylesheets/screen.css +2012-07-11 16:50:37 overwrite stylesheets/screen.css +2012-07-11 16:53:02 overwrite stylesheets/screen.css +2012-07-11 16:53:14 overwrite stylesheets/screen.css +2012-07-11 16:53:43 overwrite stylesheets/screen.css +2012-07-11 17:03:18 overwrite stylesheets/screen.css +2012-07-11 17:03:54 overwrite stylesheets/screen.css +2012-07-11 17:03:59 overwrite stylesheets/screen.css +2012-07-11 17:04:59 overwrite stylesheets/screen.css +2012-07-11 17:05:15 overwrite stylesheets/screen.css +2012-07-11 17:05:25 overwrite stylesheets/screen.css +2012-07-11 17:10:48 overwrite stylesheets/screen.css +2012-07-11 17:16:40 create javascripts/litelighter.js +2012-07-11 17:16:56 overwrite javascripts/litelighter.js +2012-07-11 17:17:09 overwrite javascripts/litelighter.js +2012-07-11 17:17:10 overwrite javascripts/litelighter.js +2012-07-11 17:22:38 overwrite stylesheets/screen.css +2012-07-11 17:23:00 overwrite stylesheets/screen.css +2012-07-11 17:23:31 overwrite stylesheets/screen.css +2012-07-11 18:01:06 error sass/screen.scss (Line 47: Invalid property: "border:" (no value).) +2012-07-11 18:01:06 overwrite stylesheets/screen.css +2012-07-11 18:01:11 error sass/screen.scss (Line 47: Invalid property: "border:" (no value).) +2012-07-11 18:01:11 identical stylesheets/screen.css +2012-07-11 18:01:19 error sass/screen.scss (Line 62: Invalid property: "border:" (no value).) +2012-07-11 18:01:19 overwrite stylesheets/screen.css +2012-07-11 18:01:40 overwrite stylesheets/screen.css +2012-07-11 18:02:28 overwrite stylesheets/screen.css +2012-07-11 18:03:53 overwrite stylesheets/screen.css +2012-07-11 18:04:31 overwrite stylesheets/screen.css +2012-07-11 18:04:52 overwrite stylesheets/screen.css +2012-07-11 18:04:57 overwrite stylesheets/screen.css +2012-07-11 18:05:10 overwrite stylesheets/screen.css +2012-07-11 18:05:33 overwrite stylesheets/screen.css +2012-07-11 18:05:59 overwrite stylesheets/screen.css +2012-07-11 18:07:41 overwrite stylesheets/screen.css +2012-07-11 18:09:06 overwrite stylesheets/screen.css +2012-07-11 18:09:20 overwrite stylesheets/screen.css +2012-07-11 18:09:29 overwrite stylesheets/screen.css +2012-07-11 18:09:42 overwrite stylesheets/screen.css +2012-07-11 18:10:03 overwrite stylesheets/screen.css +2012-07-11 18:12:10 overwrite stylesheets/screen.css +2012-07-11 18:12:22 overwrite stylesheets/screen.css +2012-07-11 18:13:10 overwrite stylesheets/screen.css +2012-07-11 18:13:39 overwrite stylesheets/screen.css +2012-07-11 18:13:48 overwrite stylesheets/screen.css +2012-07-11 18:14:06 overwrite stylesheets/screen.css +2012-07-11 18:14:29 overwrite stylesheets/screen.css +2012-07-11 18:14:39 overwrite stylesheets/screen.css +2012-07-11 18:14:49 overwrite stylesheets/screen.css +2012-07-11 18:15:14 overwrite stylesheets/screen.css +2012-07-11 18:15:34 overwrite stylesheets/screen.css +2012-07-11 18:17:18 overwrite stylesheets/screen.css +2012-07-11 18:17:24 overwrite stylesheets/screen.css +2012-07-11 18:18:18 overwrite stylesheets/screen.css +2012-07-11 18:18:33 overwrite stylesheets/screen.css +2012-07-11 18:18:41 overwrite stylesheets/screen.css +2012-07-12 11:52:53 overwrite stylesheets/screen.css +2012-07-12 11:53:15 overwrite stylesheets/screen.css +2012-07-12 11:54:16 overwrite stylesheets/screen.css +2012-07-12 11:54:39 overwrite stylesheets/screen.css +2012-07-12 11:54:46 overwrite stylesheets/screen.css +2012-07-12 11:54:50 overwrite stylesheets/screen.css +2012-07-12 11:55:24 overwrite stylesheets/screen.css +2012-07-12 11:55:32 overwrite stylesheets/screen.css +2012-07-12 11:55:38 overwrite stylesheets/screen.css +2012-07-12 11:55:47 overwrite stylesheets/screen.css +2012-07-12 11:55:59 overwrite stylesheets/screen.css +2012-07-12 11:56:03 overwrite stylesheets/screen.css +2012-07-12 11:57:04 overwrite stylesheets/screen.css +2012-07-12 11:57:29 overwrite stylesheets/screen.css +2012-07-12 11:57:38 overwrite stylesheets/screen.css +2012-07-12 11:58:05 overwrite stylesheets/screen.css +2012-07-12 11:58:27 overwrite stylesheets/screen.css +2012-07-12 11:58:45 overwrite stylesheets/screen.css +2012-07-12 11:59:32 overwrite stylesheets/screen.css +2012-07-12 11:59:43 overwrite stylesheets/screen.css +2012-07-12 11:59:47 identical stylesheets/screen.css +2012-07-12 12:00:14 overwrite stylesheets/screen.css +2012-07-12 12:00:24 overwrite stylesheets/screen.css +2012-07-12 12:01:19 overwrite stylesheets/screen.css +2012-07-12 12:02:49 overwrite stylesheets/screen.css +2012-07-12 12:04:09 error sass/screen.scss (Line 43: Invalid CSS after " +link-colors": expected "{", was "(#00c, #0cc, #c...") +2012-07-12 12:04:09 overwrite stylesheets/screen.css +2012-07-12 12:04:35 error sass/screen.scss (Line 43: Invalid CSS after " +link-colors": expected "{", was "(#00c, #0cc, #c...") +2012-07-12 12:04:35 identical stylesheets/screen.css +2012-07-12 12:05:30 error sass/screen.scss (Line 43: Invalid CSS after " @link-colors": expected "}", was "(#00c, #0cc, #c...") +2012-07-12 12:05:30 overwrite stylesheets/screen.css +2012-07-12 12:05:32 error sass/screen.scss (Line 43: Invalid CSS after " @link-colors": expected "}", was "(#00c, #0cc, #c...") +2012-07-12 12:05:32 identical stylesheets/screen.css +2012-07-12 12:06:50 error sass/screen.scss (Line 43: Invalid CSS after " +link-colors": expected "{", was "(#00c, #0cc, #c...") +2012-07-12 12:06:50 overwrite stylesheets/screen.css +2012-07-12 12:07:04 error sass/screen.scss (Line 43: Invalid CSS after " +link-colors": expected "{", was "(#00c, #0cc, #c...") +2012-07-12 12:07:04 identical stylesheets/screen.css +2012-07-12 12:07:20 overwrite stylesheets/screen.css +2012-07-12 12:07:49 overwrite stylesheets/screen.css +2012-07-12 12:07:55 overwrite stylesheets/screen.css +2012-07-12 12:07:59 overwrite stylesheets/screen.css +2012-07-12 12:08:14 overwrite stylesheets/screen.css +2012-07-12 12:08:48 overwrite stylesheets/screen.css +2012-07-12 12:10:51 overwrite stylesheets/screen.css +2012-07-12 12:11:11 overwrite stylesheets/screen.css +2012-07-12 12:11:25 overwrite stylesheets/screen.css +2012-07-12 12:12:53 overwrite stylesheets/screen.css +2012-07-12 12:13:19 overwrite stylesheets/screen.css +2012-07-12 12:13:25 identical stylesheets/screen.css +2012-07-12 12:13:57 overwrite stylesheets/screen.css +2012-07-12 12:14:42 identical stylesheets/screen.css +2012-07-12 12:15:12 overwrite stylesheets/screen.css +2012-07-12 12:17:05 overwrite stylesheets/screen.css +2012-07-12 12:17:20 overwrite stylesheets/screen.css +2012-07-12 12:17:27 overwrite stylesheets/screen.css +2012-07-12 12:18:51 overwrite stylesheets/screen.css +2012-07-12 12:19:46 overwrite stylesheets/screen.css +2012-07-12 12:20:08 overwrite stylesheets/screen.css +2012-07-12 12:20:42 overwrite stylesheets/screen.css +2012-07-12 12:20:54 overwrite stylesheets/screen.css +2012-07-12 12:21:09 overwrite stylesheets/screen.css +2012-07-12 12:21:32 overwrite stylesheets/screen.css +2012-07-12 12:23:37 error sass/screen.scss (Line 33: Invalid CSS after " 0px 1px 1px #fff": expected "{", was ";") +2012-07-12 12:23:37 overwrite stylesheets/screen.css +2012-07-12 12:23:54 overwrite stylesheets/screen.css +2012-07-12 12:31:20 overwrite stylesheets/screen.css +2012-07-12 12:31:39 overwrite stylesheets/screen.css +2012-07-12 12:32:57 overwrite stylesheets/screen.css +2012-07-12 12:34:11 error sass/screen.scss (Line 50: Mixin text-shadow takes 10 arguments but 11 were passed.) +2012-07-12 12:34:11 overwrite stylesheets/screen.css +2012-07-12 12:34:20 error sass/screen.scss (Line 50: Mixin text-shadow takes 10 arguments but 11 were passed.) +2012-07-12 12:34:20 identical stylesheets/screen.css +2012-07-12 12:34:34 overwrite stylesheets/screen.css +2012-07-12 12:35:33 error sass/screen.scss (Line 40: Mixin text-shadow takes 10 arguments but 11 were passed.) +2012-07-12 12:35:33 overwrite stylesheets/screen.css +2012-07-12 12:35:59 overwrite stylesheets/screen.css +2012-07-12 12:36:31 overwrite stylesheets/screen.css +2012-07-12 12:36:45 overwrite stylesheets/screen.css +2012-07-12 12:37:03 overwrite stylesheets/screen.css +2012-07-12 12:37:34 overwrite stylesheets/screen.css +2012-07-12 12:38:27 overwrite stylesheets/screen.css +2012-07-12 12:38:53 overwrite stylesheets/screen.css +2012-07-12 12:39:41 overwrite stylesheets/screen.css +2012-07-12 12:40:10 overwrite stylesheets/screen.css +2012-07-12 12:40:29 overwrite stylesheets/screen.css +2012-07-12 12:40:53 overwrite stylesheets/screen.css +2012-07-12 12:41:20 overwrite stylesheets/screen.css +2012-07-12 12:41:35 overwrite stylesheets/screen.css +2012-07-12 13:05:43 error sass/foundation-style/buttons.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:43 overwrite stylesheets/foundation-style/buttons.css +2012-07-12 13:05:44 error sass/foundation-style/forms.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/forms.css +2012-07-12 13:05:44 error sass/foundation-style/globals.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/globals.css +2012-07-12 13:05:44 error sass/foundation-style/grid.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/grid.css +2012-07-12 13:05:44 error sass/foundation-style/navbar.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/navbar.css +2012-07-12 13:05:44 error sass/foundation-style/orbit.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/orbit.css +2012-07-12 13:05:44 error sass/foundation-style/reveal.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/reveal.css +2012-07-12 13:05:44 error sass/foundation-style/tabs.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/tabs.css +2012-07-12 13:05:44 error sass/foundation-style/typography.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/typography.css +2012-07-12 13:05:44 error sass/foundation-style/ui.scss (Line 2: File to import not found or unreadable: foundation/base. +Load paths: + C:/Users/Kyle/Desktop/Website-Stuff/Envato Marketplace/jquery plugins/dialog-alternative/sass + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/blueprint/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_0.12/compass-0.12.2/frameworks/compass/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-960-plugin-f4bfe8555a7d2cae09bc/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/heygrady-compass-html5-boilerplate-4cc8815/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/compass-h5bp/stylesheets + C:/Program Files/fire.app/lib/ruby/compass_extensions/thomas-mcdonald-bootstrap-sass-831f25b/vendor/assets/stylesheets + Compass::SpriteImporter) +2012-07-12 13:05:44 overwrite stylesheets/foundation-style/ui.css +2012-07-12 13:17:18 overwrite stylesheets/screen.css +2012-07-12 13:18:34 overwrite stylesheets/screen.css +2012-07-12 13:18:41 overwrite stylesheets/screen.css +2012-07-12 13:18:46 overwrite stylesheets/screen.css +2012-07-12 13:18:50 overwrite stylesheets/screen.css +2012-07-12 13:20:19 overwrite stylesheets/screen.css +2012-07-12 13:20:41 overwrite stylesheets/screen.css +2012-07-12 13:20:52 overwrite stylesheets/screen.css +2012-07-12 13:21:15 overwrite stylesheets/screen.css +2012-07-12 13:21:43 overwrite stylesheets/altdialog.css +2012-07-12 13:26:50 overwrite stylesheets/altdialog.css +2012-07-12 13:26:59 overwrite stylesheets/screen.css +2012-07-12 13:27:22 overwrite stylesheets/altdialog.css +2012-07-12 13:27:39 overwrite stylesheets/altdialog.css +2012-07-12 17:11:18 overwrite stylesheets/screen.css +2012-07-12 17:11:43 overwrite stylesheets/screen.css +2012-07-12 17:14:06 overwrite stylesheets/screen.css +2012-07-12 17:14:22 overwrite stylesheets/screen.css +2012-07-12 17:17:23 overwrite javascripts/altdialog.js +2012-07-12 17:17:58 overwrite javascripts/altdialog.js +2012-07-12 17:18:22 overwrite javascripts/altdialog.js +2012-07-12 17:18:28 overwrite javascripts/altdialog.js +2012-07-12 17:20:09 overwrite javascripts/altdialog.js +2012-07-12 17:20:40 overwrite javascripts/altdialog.js +2012-07-12 17:21:27 create javascripts/dialogAlt.js +2012-07-12 17:21:31 overwrite javascripts/litelighter.js +2012-07-12 17:21:53 create stylesheets/dialogAlt.css +2012-07-12 17:23:12 overwrite stylesheets/dialogAlt.css +2012-07-12 17:33:48 overwrite javascripts/dialogAlt.js +2012-07-12 17:33:49 overwrite javascripts/litelighter.js +2012-07-12 17:35:15 overwrite stylesheets/screen.css +2012-07-12 17:37:30 overwrite javascripts/dialogAlt.js +2012-07-12 17:37:34 overwrite javascripts/litelighter.js +2012-07-12 17:42:32 overwrite javascripts/dialogAlt.js +2012-07-12 17:42:32 overwrite javascripts/litelighter.js +2012-07-12 17:47:23 create javascripts/topbox.js +2012-07-12 17:47:43 identical stylesheets/screen.css +2012-07-12 17:47:59 overwrite stylesheets/dialogAlt.css +2012-07-12 17:48:00 overwrite stylesheets/themes.css +2012-07-12 17:48:11 overwrite stylesheets/dialogAlt.css +2012-07-12 17:48:47 overwrite javascripts/topbox.js +2012-07-12 17:49:14 identical stylesheets/dialogAlt.css +2012-07-12 17:49:58 create stylesheets/topbox.css diff --git a/engine/images/bg.png b/engine/images/bg.png new file mode 100644 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4Z**atg-QLME*@6C8$UuMw@KD}Pq#hLO6#|c_I1wuIK6u4w z`slX$@X)C-pm)Fq(z3z{+qbU5Dg%$1T3M#o9@*;Y3v@gd=@H{z-<5w;5|x%EsZ{dl zHQ1?#0r*93F}IoNV>%`mCiYtGCLX&LobSiPM&bwzqD%@rF|qdSn#pwstv4;kWxdfI zjNhsLXz(&Oc|cr4VUv`x#NeKDu-(7jU>q9s&;0P^*}?maq%THBwqySd_5Ah85$Fzf z_!$f9jN<`AJAMAOGYk<+%LX7ZiOa!%?(F(Q{;+jfr@u|@Q9X8o3@p|=nIDAH7aMxH z%R}N`*UCU4v4}GyL&JgH#_#N&Ib-_Qn9iT}1qE|>$~|Ei8tA^Z{Vcb*=Uqq(i2~3G z5T%lOn)S`$eRO?z>iSjn2sdwZpYwIIkIghwPbE>j-!nUgD58owmhcKYLI>%J9$9p9 zSKqF_=AR!wN*4#&;Z~MVM-`bdls5n=qLNw~S "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/ + %title Topbox + %link{:href => "stylesheets/screen.css", :media => "screen, projection", :rel => "stylesheet", :type => "text/css"}/ + %link{:href => "stylesheets/topbox.css", :rel => "stylesheet"}/ + %script{:src => "javascripts/jquery.min.js", :type => "text/javascript"} + %script{:src => "javascripts/jquery.easing.js", :type => "text/javascript"} + %script{:src => "javascripts/topbox.js", :type => "text/javascript"} + %script{:src => "javascripts/litelighter.js", :type => "text/javascript"} + %script{:src => "http://localhost:35729/livereload.js", :type => "text/javascript"} + :javascript + jQuery(function($) { + + $('pre').litelighter({ + clone: true, + style: 'light', + language: 'js' + }); + + $("#btnDemo").bind("click", function(){ + + $.topbox.show('test',{ + title: 'Test caption', + + buttons: { + Close: function(){ + this.close(); + } + } + }); + }); + + $("#btnDark").bind("click", function(){ + + $.topbox.show('Dark theme',{ + title: 'Dark', + theme: "dark", + + buttons: { + Close: function(){ + this.close(); + } + } + }); + }); + + + $("#btnOSX").bind("click", function(){ + + $.topbox.show('jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.',{ + title: 'OSX', + theme: "osx", + + }); + }); + + $("#btnError").bind("click", function(){ + + $.topbox.show('There has been an error!',{ + title: 'Error!', + theme: "error", + + buttons: { + Close: function(){ + this.close(); + } + } + }); + }); + + $("#btnSuccess").bind("click", function(){ + + $.topbox.show('There has been a success!',{ + title: 'Success!', + theme: "success", + + buttons: { + Close: function(){ + this.close(); + } + } + }); + }); + + $("#btnAlert").bind("click", function(){ + $.topbox.alert('This is an alert!'); + }); + + + $("#btnConfirm").bind("click", function(){ + $.topbox.confirm('Message to confirm', function(){ + alert("Yep, confirmed!"); + this.close(); + }); + }); + + $("#btnBlockUI").bind("click", function(){ + $.topbox.blockUI('This screen is blocked for 5 seconds!', {title:"Blocking the screen..."}); + + setTimeout(function(){$.topbox.close();}, 5000); + }); + }); +%body + .wrapper + %header + %h1.title Alternative Dialog + %h2.title ... a dialog alternative. + %section.examples + %h3 Examples + %button#btnDemo.gbutton Click me + %button#btnDark.gbutton Dark theme + %button#btnOSX.gbutton OSX theme + %button#btnError.gbutton Error + %button#btnSuccess.gbutton Success + %section.usage + %h3 Usage + %p + Content could be a string, dom element or jQuery element. + %pre + :preserve + $.topbox.show(content, { + //settings + 'title' : false, + 'closeOnEsc': true, + 'theme' : 'default', + 'height' : 'auto', + 'width' : 'auto', + 'speed' : 500, + 'easing' : 'swing', + 'buttons' : false, + + //events + 'beforeShow' : function(){}, + 'beforeClose' : function(){}, + 'onClose' : function(){} + }); + %section.shortcuts + %h3 Shortcuts + %p + %button#btnAlert.gbutton Alert + %pre + :preserve + $.topbox.alert("...") + %button#btnConfirm.gbutton Confirm + %pre + :preserve + $.topbox.confirm("...", function(){ + //your callback code + }); + %button#btnBlockUI.gbutton Block UI + %pre + :preserve + $.topbox.blockUI("...") \ No newline at end of file diff --git a/js/jquery.easing.js b/engine/javascripts/jquery.easing.js similarity index 100% rename from js/jquery.easing.js rename to engine/javascripts/jquery.easing.js diff --git a/engine/javascripts/jquery.min.js b/engine/javascripts/jquery.min.js new file mode 100644 index 0000000..5627896 --- /dev/null +++ b/engine/javascripts/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
"+""+"
",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
t
",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); diff --git a/engine/javascripts/litelighter.js b/engine/javascripts/litelighter.js new file mode 100644 index 0000000..73ea411 --- /dev/null +++ b/engine/javascripts/litelighter.js @@ -0,0 +1,201 @@ +(function() { + + (function($) { + $.litelighter = function($this, options) { + this.settings = $.extend({}, { + clone: false, + style: "light", + language: "generic" + }, options); + this.code = $this; + return this.enable(); + }; + $.extend($.litelighter.prototype, { + enable: function() { + var lang, style, txt; + this.codelite = this.code.data("llcode", this.code.text()); + if (this.settings.clone === true) { + this.codelite = $("
").text(this.code.text()).addClass("litelighter").insertAfter(this.code.css("display", "none"));
+        }
+        if (this.code.data("lllanguage")) {
+          this.settings.language = this.code.data("lllanguage");
+        }
+        if (this.code.data("llstyle")) {
+          this.settings.style = this.code.data("llstyle");
+        }
+        style = $.litelighter.styles[this.settings.style];
+        lang = $.litelighter.languages[this.settings.language];
+        txt = $.litelighter.highlight(this.codelite.html(), style, lang);
+        this.codelite.attr("style", style.code).html(txt);
+        return this.code;
+      },
+      disable: function() {
+        if (this.settings.clone) {
+          this.codelite.remove();
+          return this.code.css("display", "block");
+        }
+        return this.code.html("").text(this.code.data("llcode"));
+      },
+      destroy: function() {
+        this.disable();
+        return this.code.removeData("litelighter");
+      },
+      option: function(key, val) {
+        if (val !== undefined) {
+          this.code.data("ll" + key, val);
+          this.settings[key] = val;
+          this.disable();
+          return this.enable();
+        }
+        return this[key];
+      }
+    });
+    $.fn.extend({
+      litelighter: function(o) {
+        var tmp_args;
+        o = o || {};
+        tmp_args = Array.prototype.slice.call(arguments);
+        if (typeof o === "string") {
+          return this.each(function() {
+            var inst;
+            inst = $(this).data("litelighter");
+            return inst[o].apply(inst, tmp_args.slice(1));
+          });
+        } else {
+          return this.each(function() {
+            var $t;
+            $t = $(this);
+            return $t.data("litelighter", new $.litelighter($t, o));
+          });
+        }
+      }
+    });
+    $.litelighter.highlight = function(txt, style, lang) {
+      var i, lvls, sublangs, sublangsi;
+      sublangsi = 0;
+      sublangs = [];
+      for (i in lang) {
+        if (lang.hasOwnProperty(i) && lang[i].language !== undefined && $.litelighter.languages[lang[i].language] !== undefined) {
+          txt = txt.replace(lang[i].re, function($1, $2, $3) {
+            sublangs[sublangsi++] = $.litelighter.highlight($2, style, $.litelighter.languages[lang[i].language]);
+            return $1.replace($2, "___subtmpl" + (sublangsi - 1) + "___");
+          });
+        }
+      }
+      for (i in lang) {
+        if (lang.hasOwnProperty(i) && lang[i].language === undefined) {
+          txt = txt.replace(lang[i].re, "___" + i + "___$1___end" + i + "___");
+        }
+      }
+      lvls = [];
+      txt = txt.replace(/___(?!subtmpl)\w+?___/g, function($0) {
+        var end, lastTag, tag;
+        end = ($0.substr(3, 3) === "end" ? true : false);
+        tag = (!end ? $0.substr(3) : $0.substr(6)).replace(/_/g, "");
+        lastTag = (lvls.length > 0 ? lvls[lvls.length - 1] : null);
+        if (!end && (!(lastTag != null) || tag === lastTag || ((lastTag != null) && lang[lastTag].embed !== undefined && $.inArray(tag, lang[lastTag].embed) >= 0))) {
+          lvls.push(tag);
+          return $0;
+        } else if (end && tag === lastTag) {
+          lvls.pop();
+          return $0;
+        }
+        return "";
+      });
+      for (i in lang) {
+        if (lang.hasOwnProperty(i)) {
+          txt = txt.replace(new RegExp("___end" + i + "___", "g"), "").replace(new RegExp("___" + i + "___", "g"), "");
+        }
+      }
+      for (i in lang) {
+        if (lang.hasOwnProperty(i) && lang[i].language !== undefined && $.litelighter.languages[lang[i].language] !== undefined) {
+          txt = txt.replace(/___subtmpl\d+___/g, function($tmpl) {
+            i = parseInt($tmpl.replace(/___subtmpl(\d+)___/, "$1"), 10);
+            return sublangs[i];
+          });
+        }
+      }
+      return txt;
+    };
+    $.litelighter.styles = {
+      light: {
+        code: "background-color:#ffffff;color:#555;",
+        comment: "color:#999",
+        string: "color:#8F9657",
+        number: "color:#CF6745;",
+        keyword: "color:#6F87A8;",
+        operators: "color:#9e771e;"
+      },
+      dark: {
+        code: "background-color:#141414;color:#ffffff;",
+        comment: "color:#999",
+        string: "color:#8F9657",
+        number: "color:#CF6745;",
+        keyword: "color:#6F87A8;",
+        operators: "color:#fee79e;"
+      }
+    };
+    $.litelighter.languages = {
+      generic: {
+        comment: {
+          re: /(\/\/.*|\/\*([\s\S]*?)\*\/)/g,
+          style: "comment"
+        },
+        string: {
+          re: /((\'.*?\')|(\".*?\"))/g,
+          style: "string"
+        },
+        numbers: {
+          re: /(\-?(\d+|\d+\.\d+|\.\d+))/g,
+          style: "number"
+        },
+        regex: {
+          re: /([^\/]\/[^\/].+\/(g|i|m)*)/g,
+          style: "number"
+        },
+        keywords: {
+          re: /(?:\b)(for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|false|true|null|undefined)(?:\b)/g,
+          style: "keyword"
+        },
+        operators: {
+          re: /(\+|\-|\/|\*|\%|\=|\<|\>|\||\?|\.)/g,
+          style: "operators"
+        }
+      }
+    };
+    $.litelighter.languages.js = $.litelighter.languages.generic;
+    $.litelighter.languages.css = {
+      comment: $.litelighter.languages.generic.comment,
+      string: $.litelighter.languages.generic.string,
+      numbers: {
+        re: /((\-?(\d+|\d+\.\d+|\.\d+)(\%|px|em|pt|in)?)|\#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,
+        style: "number"
+      },
+      keywords: {
+        re: /(\@\w+|\:?\:\w+|[a-z\-]+\:)/g,
+        style: "keyword"
+      }
+    };
+    return $.litelighter.languages.html = {
+      comment: {
+        re: /(\<\;\!\-\-([\s\S]*?)\-\-\>\;)/g,
+        style: "comment"
+      },
+      tag: {
+        re: /(\<\;\/?\w(.|\n)*?\/?\>\;)/g,
+        style: "keyword",
+        embed: ["string"]
+      },
+      string: $.litelighter.languages.generic.string,
+      css: {
+        re: /(?:\<style.*?\>)([\s\S]+?)(?:\<\/style\>)/g,
+        language: "css"
+      },
+      script: {
+        re: /(?:\<script.*?\>)([\s\S]+?)(?:\<\/script\>)/g,
+        language: "js"
+      }
+    };
+  })(jQuery);
+
+}).call(this);
diff --git a/engine/javascripts/topbox.js b/engine/javascripts/topbox.js
new file mode 100644
index 0000000..47bf843
--- /dev/null
+++ b/engine/javascripts/topbox.js
@@ -0,0 +1,250 @@
+(function() {
+
+  (function($) {
+    var $this;
+    $this = null;
+    $.topbox = $this = {
+      box: null,
+      options: {},
+      persist: false,
+      show: function(content, options) {
+        var btns, dlgAlt;
+        if (this.box) {
+          this.clear();
+        }
+        this.options = $.extend({
+          title: false,
+          closeOnEsc: true,
+          closeBtn: true,
+          theme: "",
+          height: "auto",
+          width: "auto",
+          speed: 500,
+          easing: "swing",
+          buttons: false,
+          _status: true,
+          beforeShow: function() {},
+          beforeClose: function() {},
+          onClose: function() {}
+        }, options);
+        dlgAlt = Array();
+        dlgAlt.push("
"); + if (this.options.closeBtn) { + dlgAlt.push("
"); + } + dlgAlt.push("
"); + dlgAlt.push("
"); + dlgAlt.push("
"); + dlgAlt.push("
"); + dlgAlt = dlgAlt.join(""); + this.box = $(dlgAlt); + if (this.options.closeBtn) { + this.box.find(".topbox-closebutton").bind("click", function() { + return $this.close(); + }); + } + if (this.options.buttons) { + btns = this.box.find(".topbox-buttons"); + $.each(this.options.buttons, function(caption, fn) { + return $("").bind("click", function(e) { + e.preventDefault(); + return fn.apply($this); + }).appendTo(btns); + }); + } else { + this.box.find(".topbox-buttonsbar").hide(); + } + if (this.options.height !== "auto") { + this.box.find(".topbox-innercontent").css({ + height: this.options.height, + "overflow-y": "auto" + }); + } + if (this.options.width !== "auto") { + this.box.find(".topbox-innercontent").css({ + width: this.options.width, + "overflow-x": "auto" + }); + } + this.setContent(content).setTitle(this.options.title); + this.box.css({ + opacity: 0, + visibility: "hidden" + }).appendTo("body"); + this.options.beforeShow.apply(this); + this.box.css({ + left: $(window).width() / 2 - $this.box.width() / 2, + top: (-1.5) * $this.box.height() + }).css({ + visibility: "visible" + }).animate({ + top: 0, + opacity: 1 + }, this.options.speed, this.options.easing, function() { + if ($this.box.find(":input:first").length) { + return $this.box.find(":input:first").focus(); + } + }); + $(window).bind("resize.topbox", function() { + $this.center(); + return $this.overlay.hide().css({ + width: $(document).width(), + height: $(document).height() + }).show(); + }); + if (this.options.closeOnEsc) { + $(document).bind("keydown.topbox", function(e) { + if (e.keyCode === 27) { + e.preventDefault(); + return $this.close(); + } + }); + } + this.showOverlay(); + return this; + }, + close: function() { + if (!this.box) { + return; + } + if (this.options.beforeClose.apply(this) === false) { + return this; + } + this.overlay.fadeOut(); + this.box.animate({ + top: (-1.5) * $this.box.height(), + opacity: 0 + }, this.options.speed, this.options.easing, function() { + return $this.clear(); + }); + this.options.onClose.apply(this); + return this; + }, + blockUI: function(content, options) { + options = $.extend({ + closeBtn: false, + closeOnEsc: false + }, options); + return this.show(content, options); + }, + confirm: function(content, fn, options) { + options = $.extend({ + title: "Please confirm", + buttons: { + Ok: function() { + return fn.apply($this); + }, + Cancel: function() { + return this.close(); + } + } + }, options); + return this.show(content, options); + }, + alert: function(content, options) { + options = $.extend({ + title: "Alert", + theme: "error", + buttons: { + Ok: function() { + return this.close(); + } + } + }, options); + return this.show(content, options); + }, + clear: function() { + if (!this.box) { + return; + } + if (this.persist) { + this.persist.appendTo(this.persist.data("tb-persist-parent")); + this.persist = false; + } + this.box.stop().remove(); + this.box = null; + if (this.overlay) { + this.overlay.hide(); + } + $(window).unbind("resize.topbox"); + $(document).unbind("keydown.topbox"); + return this; + }, + center: function() { + if (!this.box) { + return; + } + return this.box.css({ + left: $(window).width() / 2 - $this.box.width() / 2 + }); + }, + setTitle: function(title) { + if (!this.box) { + return; + } + if (title) { + this.box.find(".topbox-title").html(title).show(); + } else { + this.box.find(".topbox-title").html(title).hide(); + } + return this; + }, + setContent: function(content) { + if (!this.box) { + return; + } + if (typeof content === "object") { + content = (content instanceof jQuery ? content : $(content)); + if (content.parent().length) { + this.persist = content; + this.persist.data("tb-persist-parent", content.parent()); + } + } else if (typeof content === "string" || typeof content === "number") { + content = $("
").html(content); + } else { + content = $("
").html("SimpleModal Error: Unsupported data type: " + typeof content); + } + content.appendTo(this.box.find(".topbox-innercontent").html("")); + return this; + }, + showOverlay: function() { + if (!this.box) { + return; + } + if (!this.overlay) { + if (!$("#topbox-overlay").length) { + $("
").attr("id", "topbox-overlay").css({ + top: 0, + left: 0, + position: "absolute" + }).prependTo("body"); + } + this.overlay = $("#topbox-overlay"); + } + return this.overlay.css({ + width: $(document).width(), + height: $(document).height() + }).show(); + } + }; + return $.fn.topbox = function() { + var args, options; + args = arguments; + options = (args[0] ? args[0] : {}); + return this.each(function() { + var ele; + ele = $(this); + return ele.bind("click", function(e) { + var target, type; + e.preventDefault(); + target = String(ele.data("target") || ele.attr("href")); + type = ele.data("type") || "html"; + if (target[0] === "#" || type === "html") { + return $.topbox.show($(target), options); + } + }); + }); + }; + })(jQuery); + +}).call(this); diff --git a/engine/sass/screen.scss b/engine/sass/screen.scss new file mode 100644 index 0000000..8e66742 --- /dev/null +++ b/engine/sass/screen.scss @@ -0,0 +1,114 @@ +@import "compass/reset"; +@import "compass"; + +body { + font-family: Georgia, serif; + font-size: 14px; + font-style: italic; + font-weight: normal; + text-transform: normal; + letter-spacing: normal; + line-height: 1.4em; + + color:#333; + + background: #888 { + image: image-url("bg.png"); + repeat: repeat; + } +} + +h1, h2, h3 { + font-family: Helvetica, Arial, sans-serif; + font-style: normal; + font-weight: bold; + text-transform: normal; + letter-spacing: -1px; + line-height: 1.2em; +} + +a { + color: red; + text-decoration: underline; + &:hover{ + text-decoration: none; + } +} + +h1 { + font-size: 6.5em; + margin: 15px 0 0 15px; + @include text-shadow(0px 0 5px #fff); +} + +h2.title { + font: normal 2.3em 'ProximaNovaRgRegular', "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; + margin: -20px 0 30px 56px; + color: hsl(80, 70%, 55%); + @include text-shadow(0 0 2px #fff); +} + +h3 { + font-size: 2em; + color: hsl(330, 100%, 50%); + padding:15px 0; + + @include text-shadow(0px 0 5px #fff); +} + +.wrapper { + width: 920px; + margin: 40px auto; +} + +section{ + padding:25px; +} + +pre { + background: #fff; + padding: 20px; + margin:15px 0; + outline: 1px solid #E1E1E1; + border: 5px solid #FAFAFA; +} + +.gbutton { + position: relative; + overflow: visible; + display: inline-block; + padding: 0.5em 1em; + border: 1px solid #d4d4d4; + margin: 2em 0; + text-decoration: none; + text-shadow: 1px 1px 0 #fff; + font: 11px/normal sans-serif; + color: #333; + white-space: nowrap; + cursor: pointer; + outline: none; + background-color: #ececec; + + @include background-image(linear-gradient( #f4f4f4, #ececec)); + @include background-clip(padding-box); + @include border-radius(.2em); + + &:hover, &:focus { + color: #fff; + border-color: #3072b3; + border-bottom-color: #2a65a0; + text-decoration: none; + background-color: #3072b3; + + @include background-image(linear-gradient( #599bdc, #3072b3)); + @include text-shadow(-1px -1px 0 rgba(0,0,0,0.3)); + } + &:active { + border-color: #2a65a0; + border-bottom-color: #3884CF; + color: #fff; + background-color: #3072b3; + + @include background-image(linear-gradient( #3072b3, #599bdc)); + } +} \ No newline at end of file diff --git a/engine/sass/themes.scss b/engine/sass/themes.scss new file mode 100644 index 0000000..78e212e --- /dev/null +++ b/engine/sass/themes.scss @@ -0,0 +1,115 @@ +@import "compass"; + +/* osx */ + +.osx { + .topbox-title { + border-bottom: 1px #ccc solid; + + @include background-image(linear-gradient(90deg, #dddddd, #eeeeee)); + @include text-shadow(#F4F4F4 0px 1px 0px); + } +} + +/* dark */ + +.topbox-window.dark { + background: #222; + color: #ccc; + border-bottom: 2px #fff solid; + border-left: 2px #fff solid; + border-right: 2px #fff solid; + + @include background-image(linear-gradient(#45484d, black)); +} + +.dark { + .topbox-title { + color: #ccc; + border-bottom: 2px #000 solid; + border-left: 2px #000 solid; + border-right: 2px #000 solid; + background: transparent; + border-bottom: none; + + @include text-shadow(-1px -1px 0 rgba(0, 0, 0, 0.3)); + @include background-image(linear-gradient(#45484d, black)); + } + .topbox-buttonsbar { + border-top: 1px #666 dotted; + } +} + +/* + * black theme + */ +.black { + .topbox-title { + color: #ccc; + border-bottom: 2px #000 solid; + border-left: 2px #000 solid; + border-right: 2px #000 solid; + background: transparent; + border-bottom: none; + + @include text-shadow(-1px -1px 0 rgba(0, 0, 0, 0.3)); + @include background-image(linear-gradient(#45484d, black)); + } + .topbox-buttonsbar { + border-top: 1px #666 dotted; + } +} + +/* alert theme */ + +.error { + .topbox-title { + color: white; + border-color: #B53F3A; + border-bottom-color: #A0302A; + background-color: #DC5F59; + + @include box-shadow(inset 0px 1px 0px #f7d0d0); + @include text-shadow(-1px -1px 0 rgba(0, 0, 0, 0.3)); + @include background-image(linear-gradient(#DC5F59, #B33630)); + } + .topbox-buttonsbar { + border-top: 1px #666 dotted; + } +} + +/* success theme */ + +.success { + .topbox-title { + color: white; + background-color: #76CA43; + border-color: #76CA43; + border-bottom-color: #569D2B; + + @include box-shadow(inset 0px 1px 0px #f7d0d0); + @include text-shadow(-1px -1px 0 rgba(0, 0, 0, 0.3)); + @include background-image(linear-gradient(#76CA43, #569D2B)); + } + .topbox-buttonsbar { + border-top: 1px #666 dotted; + } +} + +/* classic */ + +.topbox-window.classic { + background-color: #eee; + color: #666; +} + +.classic { + .topbox-title { + color: #000; + background: #fff; + border-bottom: 1px #ccc solid; + } + .topbox-buttonsbar { + border-top: none; + } +} \ No newline at end of file diff --git a/engine/sass/topbox.scss b/engine/sass/topbox.scss new file mode 100644 index 0000000..bcd8864 --- /dev/null +++ b/engine/sass/topbox.scss @@ -0,0 +1,118 @@ +@import "compass"; + +/* + *DEFAULTS + */ + +.topbox-window { + font-family: Trebuchet, sans-serif; + font-size: 14px; + font-style: normal; + font-weight: normal; + text-transform: normal; + letter-spacing: normal; + line-height: 1.4em; + position: fixed; + top: 0px; + + color: #000; + min-width: 200px; + max-width: 400px; + z-index: 1000; + + border-bottom: 2px #fff solid; + border-left: 2px #fff solid; + border-right: 2px #fff solid; + + background-color: #ECECEC; + @include background-image(linear-gradient(#F4F4F4, #ECECEC)); + + @include box-shadow(#444 0px 0px 20px); + @include single-box-shadow; + @include border-radius(0px 0px 8px 8px); + @include box-sizing(border-box); +} + +.topbox-closebutton { + background: { + image: image-url("dlg-close.png"); + repeat: no-repeat; + position: 50% 50%; + color: transparent; + }; + width: 30px; + height: 30px; + cursor: pointer; + position: absolute; + right: -15px; + top: 2px; +} + +.topbox-title { + padding: 6px; + font-weight: bold; + background: #ddd; + border-bottom: 1px #ccc solid; + @include box-sizing(border-box); +} + +.topbox-content { + padding: 6px; +} + +.topbox-buttonsbar { + margin: 6px; + border-top: 1px #ccc dotted; +} + +.topbox-buttons { + padding: 6px 0px; + text-align: right; +} + +.topbox-button { + position: relative; + overflow: visible; + display: inline-block; + padding: 0.5em 1em; + border: 1px solid #d4d4d4; + margin: 0; + text-decoration: none; + text-shadow: 1px 1px 0 #fff; + font: .9em/normal sans-serif; + color: #333; + white-space: nowrap; + cursor: pointer; + outline: none; + background-color: #ececec; + @include background-image(linear-gradient( #f4f4f4, #ececec)); + @include background-clip(padding-box); + @include border-radius(.2em); + &:hover, &:focus { + border-color: #3072b3; + border-bottom-color: #2a65a0; + text-decoration: none; + @include text-shadow(-1px -1px 0 rgba(0,0,0,0.3)); + color: #fff; + background-color: #3072b3; + @include background-image(linear-gradient( #599bdc, #3072b3)); + } + &:active { + border-color: #2a65a0; + border-bottom-color: #3884CF; + color: #fff; + background-color: #3072b3; + @include background-image(linear-gradient( #3072b3, #599bdc)); + } + @include box-sizing(border-box); +} + +#topbox-overlay { + z-index: 999; + background: #222d3f; + + @include opacity(0.5); +} + +/** THEMES - Optional **/ +@import "themes"; \ No newline at end of file diff --git a/engine/stylesheets/screen.css b/engine/stylesheets/screen.css new file mode 100644 index 0000000..12b60d1 --- /dev/null +++ b/engine/stylesheets/screen.css @@ -0,0 +1,39 @@ +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, 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, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; } + +html { line-height: 1; } + +ol, ul { list-style: none; } + +table { border-collapse: collapse; border-spacing: 0; } + +caption, th, td { text-align: left; font-weight: normal; vertical-align: middle; } + +q, blockquote { quotes: none; } +q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none; } + +a img { border: none; } + +article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { display: block; } + +body { font-family: Georgia, serif; font-size: 14px; font-style: italic; font-weight: normal; text-transform: normal; letter-spacing: normal; line-height: 1.4em; color: #333; background: #888888; background-image: url('/images/bg.png?1342115483'); background-repeat: repeat; } + +h1, h2, h3 { font-family: Helvetica, Arial, sans-serif; font-style: normal; font-weight: bold; text-transform: normal; letter-spacing: -1px; line-height: 1.2em; } + +a { color: red; text-decoration: underline; } +a:hover { text-decoration: none; } + +h1 { font-size: 6.5em; margin: 15px 0 0 15px; text-shadow: 0px 0 5px white; } + +h2.title { font: normal 2.3em "ProximaNovaRgRegular", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; margin: -20px 0 30px 56px; color: #a7dd3c; text-shadow: 0 0 2px white; } + +h3 { font-size: 2em; color: #ff0080; padding: 15px 0; text-shadow: 0px 0 5px white; } + +.wrapper { width: 920px; margin: 40px auto; } + +section { padding: 25px; } + +pre { background: #fff; padding: 20px; margin: 15px 0; outline: 1px solid #E1E1E1; border: 5px solid #FAFAFA; } + +.gbutton { position: relative; overflow: visible; display: inline-block; padding: 0.5em 1em; border: 1px solid #d4d4d4; margin: 2em 0; text-decoration: none; text-shadow: 1px 1px 0 #fff; font: 11px/normal sans-serif; color: #333; white-space: nowrap; cursor: pointer; outline: none; background-color: #ececec; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)); background-image: -webkit-linear-gradient(#f4f4f4, #ececec); background-image: -moz-linear-gradient(#f4f4f4, #ececec); background-image: -o-linear-gradient(#f4f4f4, #ececec); background-image: linear-gradient(#f4f4f4, #ececec); -webkit-background-clip: padding; -moz-background-clip: padding; background-clip: padding-box; -webkit-border-radius: 0.2em; -moz-border-radius: 0.2em; -ms-border-radius: 0.2em; -o-border-radius: 0.2em; border-radius: 0.2em; } +.gbutton:hover, .gbutton:focus { color: #fff; border-color: #3072b3; border-bottom-color: #2a65a0; text-decoration: none; background-color: #3072b3; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #599bdc), color-stop(100%, #3072b3)); background-image: -webkit-linear-gradient(#599bdc, #3072b3); background-image: -moz-linear-gradient(#599bdc, #3072b3); background-image: -o-linear-gradient(#599bdc, #3072b3); background-image: linear-gradient(#599bdc, #3072b3); text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); } +.gbutton:active { border-color: #2a65a0; border-bottom-color: #3884CF; color: #fff; background-color: #3072b3; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #3072b3), color-stop(100%, #599bdc)); background-image: -webkit-linear-gradient(#3072b3, #599bdc); background-image: -moz-linear-gradient(#3072b3, #599bdc); background-image: -o-linear-gradient(#3072b3, #599bdc); background-image: linear-gradient(#3072b3, #599bdc); } diff --git a/engine/stylesheets/themes.css b/engine/stylesheets/themes.css new file mode 100644 index 0000000..35ee790 --- /dev/null +++ b/engine/stylesheets/themes.css @@ -0,0 +1,26 @@ +/* osx */ +.osx .topbox-title { border-bottom: 1px #ccc solid; background-image: -webkit-linear-gradient(90deg, #dddddd, #eeeeee); background-image: -moz-linear-gradient(90deg, #dddddd, #eeeeee); background-image: -o-linear-gradient(90deg, #dddddd, #eeeeee); background-image: linear-gradient(90deg, #dddddd, #eeeeee); text-shadow: #f4f4f4 0px 1px 0px; } + +/* dark */ +.topbox-window.dark { background: #222; color: #ccc; border-bottom: 2px #fff solid; border-left: 2px #fff solid; border-right: 2px #fff solid; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } + +.dark .topbox-title { color: #ccc; border-bottom: 2px #000 solid; border-left: 2px #000 solid; border-right: 2px #000 solid; background: transparent; border-bottom: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } +.dark .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* black theme */ +.black .topbox-title { color: #ccc; border-bottom: 2px #000 solid; border-left: 2px #000 solid; border-right: 2px #000 solid; background: transparent; border-bottom: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } +.black .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* alert theme */ +.error .topbox-title { color: white; border-color: #B53F3A; border-bottom-color: #A0302A; background-color: #DC5F59; -webkit-box-shadow: inset 0px 1px 0px #f7d0d0; -moz-box-shadow: inset 0px 1px 0px #f7d0d0; box-shadow: inset 0px 1px 0px #f7d0d0; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dc5f59), color-stop(100%, #b33630)); background-image: -webkit-linear-gradient(#dc5f59, #b33630); background-image: -moz-linear-gradient(#dc5f59, #b33630); background-image: -o-linear-gradient(#dc5f59, #b33630); background-image: linear-gradient(#dc5f59, #b33630); } +.error .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* success theme */ +.success .topbox-title { color: white; background-color: #76CA43; border-color: #76CA43; border-bottom-color: #569D2B; -webkit-box-shadow: inset 0px 1px 0px #f7d0d0; -moz-box-shadow: inset 0px 1px 0px #f7d0d0; box-shadow: inset 0px 1px 0px #f7d0d0; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #76ca43), color-stop(100%, #569d2b)); background-image: -webkit-linear-gradient(#76ca43, #569d2b); background-image: -moz-linear-gradient(#76ca43, #569d2b); background-image: -o-linear-gradient(#76ca43, #569d2b); background-image: linear-gradient(#76ca43, #569d2b); } +.success .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* classic */ +.topbox-window.classic { background-color: #eee; color: #666; } + +.classic .topbox-title { color: #000; background: #fff; border-bottom: 1px #ccc solid; } +.classic .topbox-buttonsbar { border-top: none; } diff --git a/engine/stylesheets/topbox.css b/engine/stylesheets/topbox.css new file mode 100644 index 0000000..c570d9d --- /dev/null +++ b/engine/stylesheets/topbox.css @@ -0,0 +1,46 @@ +/* DEFAULTS */ +.topbox-window { font-family: Trebuchet, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-transform: normal; letter-spacing: normal; line-height: 1.4em; position: fixed; top: 0px; color: #000; min-width: 200px; max-width: 400px; z-index: 1000; border-bottom: 2px #fff solid; border-left: 2px #fff solid; border-right: 2px #fff solid; background-color: #ECECEC; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)); background-image: -webkit-linear-gradient(#f4f4f4, #ececec); background-image: -moz-linear-gradient(#f4f4f4, #ececec); background-image: -o-linear-gradient(#f4f4f4, #ececec); background-image: linear-gradient(#f4f4f4, #ececec); -webkit-box-shadow: #444444 0px 0px 20px; -moz-box-shadow: #444444 0px 0px 20px; box-shadow: #444444 0px 0px 20px; -webkit-box-shadow: 0px 0px 5px #333333; -moz-box-shadow: 0px 0px 5px #333333; box-shadow: 0px 0px 5px #333333; -webkit-border-radius: 0px 0px 8px 8px; -moz-border-radius: 0px 0px 8px 8px; -ms-border-radius: 0px 0px 8px 8px; -o-border-radius: 0px 0px 8px 8px; border-radius: 0px 0px 8px 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } + +.topbox-closebutton { background-image: url('/images/dlg-close.png?1342052187'); background-repeat: no-repeat; background-position: 50% 50%; background-color: transparent; width: 30px; height: 30px; cursor: pointer; position: absolute; right: -15px; top: 2px; } + +.topbox-title { padding: 6px; font-weight: bold; background: #ddd; border-bottom: 1px #ccc solid; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } + +.topbox-content { padding: 6px; } + +.topbox-buttonsbar { margin: 6px; border-top: 1px #ccc dotted; } + +.topbox-buttons { padding: 6px 0px; text-align: right; } + +.topbox-button { position: relative; overflow: visible; display: inline-block; padding: 0.5em 1em; border: 1px solid #d4d4d4; margin: 0; text-decoration: none; text-shadow: 1px 1px 0 #fff; font: 0.9em/normal sans-serif; color: #333; white-space: nowrap; cursor: pointer; outline: none; background-color: #ececec; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)); background-image: -webkit-linear-gradient(#f4f4f4, #ececec); background-image: -moz-linear-gradient(#f4f4f4, #ececec); background-image: -o-linear-gradient(#f4f4f4, #ececec); background-image: linear-gradient(#f4f4f4, #ececec); -webkit-background-clip: padding; -moz-background-clip: padding; background-clip: padding-box; -webkit-border-radius: 0.2em; -moz-border-radius: 0.2em; -ms-border-radius: 0.2em; -o-border-radius: 0.2em; border-radius: 0.2em; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } +.topbox-button:hover, .topbox-button:focus { border-color: #3072b3; border-bottom-color: #2a65a0; text-decoration: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); color: #fff; background-color: #3072b3; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #599bdc), color-stop(100%, #3072b3)); background-image: -webkit-linear-gradient(#599bdc, #3072b3); background-image: -moz-linear-gradient(#599bdc, #3072b3); background-image: -o-linear-gradient(#599bdc, #3072b3); background-image: linear-gradient(#599bdc, #3072b3); } +.topbox-button:active { border-color: #2a65a0; border-bottom-color: #3884CF; color: #fff; background-color: #3072b3; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #3072b3), color-stop(100%, #599bdc)); background-image: -webkit-linear-gradient(#3072b3, #599bdc); background-image: -moz-linear-gradient(#3072b3, #599bdc); background-image: -o-linear-gradient(#3072b3, #599bdc); background-image: linear-gradient(#3072b3, #599bdc); } + +#topbox-overlay { z-index: 999; background: #222d3f; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50); opacity: 0.5; } + +/** THEMES - Optional **/ +/* osx */ +.osx .topbox-title { border-bottom: 1px #ccc solid; background-image: -webkit-linear-gradient(90deg, #dddddd, #eeeeee); background-image: -moz-linear-gradient(90deg, #dddddd, #eeeeee); background-image: -o-linear-gradient(90deg, #dddddd, #eeeeee); background-image: linear-gradient(90deg, #dddddd, #eeeeee); text-shadow: #f4f4f4 0px 1px 0px; } + +/* dark */ +.topbox-window.dark { background: #222; color: #ccc; border-bottom: 2px #fff solid; border-left: 2px #fff solid; border-right: 2px #fff solid; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } + +.dark .topbox-title { color: #ccc; border-bottom: 2px #000 solid; border-left: 2px #000 solid; border-right: 2px #000 solid; background: transparent; border-bottom: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } +.dark .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* black theme */ +.black .topbox-title { color: #ccc; border-bottom: 2px #000 solid; border-left: 2px #000 solid; border-right: 2px #000 solid; background: transparent; border-bottom: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } +.black .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* alert theme */ +.error .topbox-title { color: white; border-color: #B53F3A; border-bottom-color: #A0302A; background-color: #DC5F59; -webkit-box-shadow: inset 0px 1px 0px #f7d0d0; -moz-box-shadow: inset 0px 1px 0px #f7d0d0; box-shadow: inset 0px 1px 0px #f7d0d0; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dc5f59), color-stop(100%, #b33630)); background-image: -webkit-linear-gradient(#dc5f59, #b33630); background-image: -moz-linear-gradient(#dc5f59, #b33630); background-image: -o-linear-gradient(#dc5f59, #b33630); background-image: linear-gradient(#dc5f59, #b33630); } +.error .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* success theme */ +.success .topbox-title { color: white; background-color: #76CA43; border-color: #76CA43; border-bottom-color: #569D2B; -webkit-box-shadow: inset 0px 1px 0px #f7d0d0; -moz-box-shadow: inset 0px 1px 0px #f7d0d0; box-shadow: inset 0px 1px 0px #f7d0d0; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #76ca43), color-stop(100%, #569d2b)); background-image: -webkit-linear-gradient(#76ca43, #569d2b); background-image: -moz-linear-gradient(#76ca43, #569d2b); background-image: -o-linear-gradient(#76ca43, #569d2b); background-image: linear-gradient(#76ca43, #569d2b); } +.success .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* classic */ +.topbox-window.classic { background-color: #eee; color: #666; } + +.classic .topbox-title { color: #000; background: #fff; border-bottom: 1px #ccc solid; } +.classic .topbox-buttonsbar { border-top: none; } diff --git a/images/bg.png b/images/bg.png new file mode 100644 index 0000000000000000000000000000000000000000..60e1cd96b3b026b60f746d8e68c94a2b5aac0452 GIT binary patch literal 13100 zcmV+{Gt2rmmXdR%wcPSyue(umnrbc($X=X=n;3u)1hjZ% z6+Gu+s!);1h-)$ncRO}UXh{#GmI%z~vQOtc3AyFe+{YZ)%7LN*c)1iII%8DtlQ>Y=b}0JJNIRp>!XX8(npA{!b-3-tX2 z$&!ebdY~7h_y(84`$%hb%O|~l7~R)HX*89S@Qy)6;~>HDZ^QVlFcDqFXaW(9rKEC(>oT4Jvu?ZXHHp_Z`e zb_F1?`c`SWQe>)=G`Sa+)|sVy=GrW9mWZ3z%v>7rA)z5R&@#mzEH9>2p_`k5C?TlW zVaxZ~yor`;hZR(D97)8Wr?vZ*g~Td?Q4m~P*zFhEt66dYj-gEv^dM_5Ik8)A#NN*3 zPMLyC&B6ekp-#($v5JuT0rg}=niSVM3VF8B&!|}ECifbv8`MnisN_H{h;9TB+$>(hlYe9D{wSA>c)x5OaOx;?P=cTatFxUo&Y}JLNXT7wnbxbWE9HO6MO?s>s z8Vm_d6FRM4(Jlx(9xQsb5>xj?7`atCNL8y_ma{Kp7tmbFN>Rl&M4ZWGQI;#!5Q7w* z#ah~!*^rlsf|*P*5s1f?h$d(eHC{Y*v2pL^Mnl^ntf?qnFCmJF$Jx0jlDfhLo++!V zwi%IRr*Mb67hD#zY!Pjtj)LJuvH<{Lh(hh;v`n<38I=d6Mk{JmH%RZ?os#sl#ub=) zm=(|48?Jtc)|E4;?kvU28ErK5!?7id_B7Klj;T~bvv^?qcL#TV4c9kO5 zE*zn|+8_amvTN0f`e?H%ELtR$G<*5BKEFha;RdpUa;PljAqhaYietEO)(fTT!3t@j zwgMhTsa?l=6NRHl60(y;&k0ekwUV>0*rLmpkb>C4b|ZZPg-a+QVmOoTGz!*EM_pAK zeEq1j7f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XBc6 zWN5O0VTH$cwxpzK!UTdCXkbuMR{K($Qo}NLx-E%>a#6#MaygRHvz5!HQg3Z5tf7>k zhA7ZWLlaBkt|H4Z**atg-QLME*@6C8$UuMw@KD}Pq#hLO6#|c_I1wuIK6u4w z`slX$@X)C-pm)Fq(z3z{+qbU5Dg%$1T3M#o9@*;Y3v@gd=@H{z-<5w;5|x%EsZ{dl zHQ1?#0r*93F}IoNV>%`mCiYtGCLX&LobSiPM&bwzqD%@rF|qdSn#pwstv4;kWxdfI zjNhsLXz(&Oc|cr4VUv`x#NeKDu-(7jU>q9s&;0P^*}?maq%THBwqySd_5Ah85$Fzf z_!$f9jN<`AJAMAOGYk<+%LX7ZiOa!%?(F(Q{;+jfr@u|@Q9X8o3@p|=nIDAH7aMxH z%R}N`*UCU4v4}GyL&JgH#_#N&Ib-_Qn9iT}1qE|>$~|Ei8tA^Z{Vcb*=Uqq(i2~3G z5T%lOn)S`$eRO?z>iSjn2sdwZpYwIIkIghwPbE>j-!nUgD58owmhcKYLI>%J9$9p9 zSKqF_=AR!wN*4#&;Z~MVM-`bdls5n=qLNw~S - - - - Topbox demo - - - - - - + + + + + - - -
-

Topbox - a product by d-xp.com

- -

- ... a dialog alternative. -

-

- - - -

- -

Usage

-

- -

-$.topbox.show(content, {
-	//settings
-	'title'     : false,
-	'closeOnEsc': true,
-	'theme'     : 'default',
-	'height'    : 'auto',
-	'width'     : 'auto',
-	'speed'     : 500,
-	'easing'    : 'swing',
-	'buttons'   : false,
-
-	//events
-	'beforeShow'  : function(){},
-	'beforeClose' : function(){},
-	'onClose'     : function(){}
-});
-
- - where content could be a string, dom element or jQuery element. -

- -

Shortcuts

-

- -

-$.topbox.alert("...")
-
- - -
-$.topbox.confirm("...", function(){ 
-	//your callback code
-});
-
- - -
-$.topbox.blockUI("...")
-
-

+ $("#btnOSX").bind("click", function(){ + + $.topbox.show('jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.',{ + title: 'OSX', + theme: "osx", + + }); + }); -

Code

-

Fork me on github

+ $("#btnError").bind("click", function(){ + + $.topbox.show('There has been an error!',{ + title: 'Error!', + theme: "error", + + buttons: { + Close: function(){ + this.close(); + } + } + }); + }); + + $("#btnSuccess").bind("click", function(){ + + $.topbox.show('There has been a success!',{ + title: 'Success!', + theme: "success", + + buttons: { + Close: function(){ + this.close(); + } + } + }); + }); -
- - - \ No newline at end of file + $("#btnAlert").bind("click", function(){ + $.topbox.alert('This is an alert!'); + }); + + + $("#btnConfirm").bind("click", function(){ + $.topbox.confirm('Message to confirm', function(){ + alert("Yep, confirmed!"); + this.close(); + }); + }); + + $("#btnBlockUI").bind("click", function(){ + $.topbox.blockUI('This screen is blocked for 5 seconds!', {title:"Blocking the screen..."}); + + setTimeout(function(){$.topbox.close();}, 5000); + }); + }); + //]]> + + + + +
+
+

Alternative Dialog

+

... a dialog alternative.

+
+
+

Examples

+ + + + + +
+
+

Usage

+

+ Content could be a string, dom element or jQuery element. +

+
$.topbox.show(content, {
    //settings
    'title'     : false,
    'closeOnEsc': true,
    'theme'     : 'default',
    'height'    : 'auto',
    'width'     : 'auto',
    'speed'     : 500,
    'easing'    : 'swing',
    'buttons'   : false,

    //events
    'beforeShow'  : function(){},
    'beforeClose' : function(){},
    'onClose'     : function(){}
});
+
+
+

Shortcuts

+

+ +

$.topbox.alert("...")
+ +
$.topbox.confirm("...", function(){ 
  //your callback code
});
+ +
$.topbox.blockUI("...")
+

+
+
+ diff --git a/javascripts/jquery.easing.js b/javascripts/jquery.easing.js new file mode 100644 index 0000000..eea539e --- /dev/null +++ b/javascripts/jquery.easing.js @@ -0,0 +1,205 @@ +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +jQuery.easing['jswing'] = jQuery.easing['swing']; + +jQuery.extend( jQuery.easing, +{ + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert(jQuery.easing.default); + return jQuery.easing[jQuery.easing.def](x, t, b, c, d); + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright © 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ \ No newline at end of file diff --git a/javascripts/jquery.min.js b/javascripts/jquery.min.js new file mode 100644 index 0000000..5627896 --- /dev/null +++ b/javascripts/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
"+""+"
",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
t
",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); diff --git a/javascripts/litelighter.js b/javascripts/litelighter.js new file mode 100644 index 0000000..73ea411 --- /dev/null +++ b/javascripts/litelighter.js @@ -0,0 +1,201 @@ +(function() { + + (function($) { + $.litelighter = function($this, options) { + this.settings = $.extend({}, { + clone: false, + style: "light", + language: "generic" + }, options); + this.code = $this; + return this.enable(); + }; + $.extend($.litelighter.prototype, { + enable: function() { + var lang, style, txt; + this.codelite = this.code.data("llcode", this.code.text()); + if (this.settings.clone === true) { + this.codelite = $("
").text(this.code.text()).addClass("litelighter").insertAfter(this.code.css("display", "none"));
+        }
+        if (this.code.data("lllanguage")) {
+          this.settings.language = this.code.data("lllanguage");
+        }
+        if (this.code.data("llstyle")) {
+          this.settings.style = this.code.data("llstyle");
+        }
+        style = $.litelighter.styles[this.settings.style];
+        lang = $.litelighter.languages[this.settings.language];
+        txt = $.litelighter.highlight(this.codelite.html(), style, lang);
+        this.codelite.attr("style", style.code).html(txt);
+        return this.code;
+      },
+      disable: function() {
+        if (this.settings.clone) {
+          this.codelite.remove();
+          return this.code.css("display", "block");
+        }
+        return this.code.html("").text(this.code.data("llcode"));
+      },
+      destroy: function() {
+        this.disable();
+        return this.code.removeData("litelighter");
+      },
+      option: function(key, val) {
+        if (val !== undefined) {
+          this.code.data("ll" + key, val);
+          this.settings[key] = val;
+          this.disable();
+          return this.enable();
+        }
+        return this[key];
+      }
+    });
+    $.fn.extend({
+      litelighter: function(o) {
+        var tmp_args;
+        o = o || {};
+        tmp_args = Array.prototype.slice.call(arguments);
+        if (typeof o === "string") {
+          return this.each(function() {
+            var inst;
+            inst = $(this).data("litelighter");
+            return inst[o].apply(inst, tmp_args.slice(1));
+          });
+        } else {
+          return this.each(function() {
+            var $t;
+            $t = $(this);
+            return $t.data("litelighter", new $.litelighter($t, o));
+          });
+        }
+      }
+    });
+    $.litelighter.highlight = function(txt, style, lang) {
+      var i, lvls, sublangs, sublangsi;
+      sublangsi = 0;
+      sublangs = [];
+      for (i in lang) {
+        if (lang.hasOwnProperty(i) && lang[i].language !== undefined && $.litelighter.languages[lang[i].language] !== undefined) {
+          txt = txt.replace(lang[i].re, function($1, $2, $3) {
+            sublangs[sublangsi++] = $.litelighter.highlight($2, style, $.litelighter.languages[lang[i].language]);
+            return $1.replace($2, "___subtmpl" + (sublangsi - 1) + "___");
+          });
+        }
+      }
+      for (i in lang) {
+        if (lang.hasOwnProperty(i) && lang[i].language === undefined) {
+          txt = txt.replace(lang[i].re, "___" + i + "___$1___end" + i + "___");
+        }
+      }
+      lvls = [];
+      txt = txt.replace(/___(?!subtmpl)\w+?___/g, function($0) {
+        var end, lastTag, tag;
+        end = ($0.substr(3, 3) === "end" ? true : false);
+        tag = (!end ? $0.substr(3) : $0.substr(6)).replace(/_/g, "");
+        lastTag = (lvls.length > 0 ? lvls[lvls.length - 1] : null);
+        if (!end && (!(lastTag != null) || tag === lastTag || ((lastTag != null) && lang[lastTag].embed !== undefined && $.inArray(tag, lang[lastTag].embed) >= 0))) {
+          lvls.push(tag);
+          return $0;
+        } else if (end && tag === lastTag) {
+          lvls.pop();
+          return $0;
+        }
+        return "";
+      });
+      for (i in lang) {
+        if (lang.hasOwnProperty(i)) {
+          txt = txt.replace(new RegExp("___end" + i + "___", "g"), "").replace(new RegExp("___" + i + "___", "g"), "");
+        }
+      }
+      for (i in lang) {
+        if (lang.hasOwnProperty(i) && lang[i].language !== undefined && $.litelighter.languages[lang[i].language] !== undefined) {
+          txt = txt.replace(/___subtmpl\d+___/g, function($tmpl) {
+            i = parseInt($tmpl.replace(/___subtmpl(\d+)___/, "$1"), 10);
+            return sublangs[i];
+          });
+        }
+      }
+      return txt;
+    };
+    $.litelighter.styles = {
+      light: {
+        code: "background-color:#ffffff;color:#555;",
+        comment: "color:#999",
+        string: "color:#8F9657",
+        number: "color:#CF6745;",
+        keyword: "color:#6F87A8;",
+        operators: "color:#9e771e;"
+      },
+      dark: {
+        code: "background-color:#141414;color:#ffffff;",
+        comment: "color:#999",
+        string: "color:#8F9657",
+        number: "color:#CF6745;",
+        keyword: "color:#6F87A8;",
+        operators: "color:#fee79e;"
+      }
+    };
+    $.litelighter.languages = {
+      generic: {
+        comment: {
+          re: /(\/\/.*|\/\*([\s\S]*?)\*\/)/g,
+          style: "comment"
+        },
+        string: {
+          re: /((\'.*?\')|(\".*?\"))/g,
+          style: "string"
+        },
+        numbers: {
+          re: /(\-?(\d+|\d+\.\d+|\.\d+))/g,
+          style: "number"
+        },
+        regex: {
+          re: /([^\/]\/[^\/].+\/(g|i|m)*)/g,
+          style: "number"
+        },
+        keywords: {
+          re: /(?:\b)(for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|false|true|null|undefined)(?:\b)/g,
+          style: "keyword"
+        },
+        operators: {
+          re: /(\+|\-|\/|\*|\%|\=|\<|\>|\||\?|\.)/g,
+          style: "operators"
+        }
+      }
+    };
+    $.litelighter.languages.js = $.litelighter.languages.generic;
+    $.litelighter.languages.css = {
+      comment: $.litelighter.languages.generic.comment,
+      string: $.litelighter.languages.generic.string,
+      numbers: {
+        re: /((\-?(\d+|\d+\.\d+|\.\d+)(\%|px|em|pt|in)?)|\#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,
+        style: "number"
+      },
+      keywords: {
+        re: /(\@\w+|\:?\:\w+|[a-z\-]+\:)/g,
+        style: "keyword"
+      }
+    };
+    return $.litelighter.languages.html = {
+      comment: {
+        re: /(\<\;\!\-\-([\s\S]*?)\-\-\>\;)/g,
+        style: "comment"
+      },
+      tag: {
+        re: /(\<\;\/?\w(.|\n)*?\/?\>\;)/g,
+        style: "keyword",
+        embed: ["string"]
+      },
+      string: $.litelighter.languages.generic.string,
+      css: {
+        re: /(?:\<style.*?\>)([\s\S]+?)(?:\<\/style\>)/g,
+        language: "css"
+      },
+      script: {
+        re: /(?:\<script.*?\>)([\s\S]+?)(?:\<\/script\>)/g,
+        language: "js"
+      }
+    };
+  })(jQuery);
+
+}).call(this);
diff --git a/javascripts/topbox.js b/javascripts/topbox.js
new file mode 100644
index 0000000..47bf843
--- /dev/null
+++ b/javascripts/topbox.js
@@ -0,0 +1,250 @@
+(function() {
+
+  (function($) {
+    var $this;
+    $this = null;
+    $.topbox = $this = {
+      box: null,
+      options: {},
+      persist: false,
+      show: function(content, options) {
+        var btns, dlgAlt;
+        if (this.box) {
+          this.clear();
+        }
+        this.options = $.extend({
+          title: false,
+          closeOnEsc: true,
+          closeBtn: true,
+          theme: "",
+          height: "auto",
+          width: "auto",
+          speed: 500,
+          easing: "swing",
+          buttons: false,
+          _status: true,
+          beforeShow: function() {},
+          beforeClose: function() {},
+          onClose: function() {}
+        }, options);
+        dlgAlt = Array();
+        dlgAlt.push("
"); + if (this.options.closeBtn) { + dlgAlt.push("
"); + } + dlgAlt.push("
"); + dlgAlt.push("
"); + dlgAlt.push("
"); + dlgAlt.push("
"); + dlgAlt = dlgAlt.join(""); + this.box = $(dlgAlt); + if (this.options.closeBtn) { + this.box.find(".topbox-closebutton").bind("click", function() { + return $this.close(); + }); + } + if (this.options.buttons) { + btns = this.box.find(".topbox-buttons"); + $.each(this.options.buttons, function(caption, fn) { + return $("").bind("click", function(e) { + e.preventDefault(); + return fn.apply($this); + }).appendTo(btns); + }); + } else { + this.box.find(".topbox-buttonsbar").hide(); + } + if (this.options.height !== "auto") { + this.box.find(".topbox-innercontent").css({ + height: this.options.height, + "overflow-y": "auto" + }); + } + if (this.options.width !== "auto") { + this.box.find(".topbox-innercontent").css({ + width: this.options.width, + "overflow-x": "auto" + }); + } + this.setContent(content).setTitle(this.options.title); + this.box.css({ + opacity: 0, + visibility: "hidden" + }).appendTo("body"); + this.options.beforeShow.apply(this); + this.box.css({ + left: $(window).width() / 2 - $this.box.width() / 2, + top: (-1.5) * $this.box.height() + }).css({ + visibility: "visible" + }).animate({ + top: 0, + opacity: 1 + }, this.options.speed, this.options.easing, function() { + if ($this.box.find(":input:first").length) { + return $this.box.find(":input:first").focus(); + } + }); + $(window).bind("resize.topbox", function() { + $this.center(); + return $this.overlay.hide().css({ + width: $(document).width(), + height: $(document).height() + }).show(); + }); + if (this.options.closeOnEsc) { + $(document).bind("keydown.topbox", function(e) { + if (e.keyCode === 27) { + e.preventDefault(); + return $this.close(); + } + }); + } + this.showOverlay(); + return this; + }, + close: function() { + if (!this.box) { + return; + } + if (this.options.beforeClose.apply(this) === false) { + return this; + } + this.overlay.fadeOut(); + this.box.animate({ + top: (-1.5) * $this.box.height(), + opacity: 0 + }, this.options.speed, this.options.easing, function() { + return $this.clear(); + }); + this.options.onClose.apply(this); + return this; + }, + blockUI: function(content, options) { + options = $.extend({ + closeBtn: false, + closeOnEsc: false + }, options); + return this.show(content, options); + }, + confirm: function(content, fn, options) { + options = $.extend({ + title: "Please confirm", + buttons: { + Ok: function() { + return fn.apply($this); + }, + Cancel: function() { + return this.close(); + } + } + }, options); + return this.show(content, options); + }, + alert: function(content, options) { + options = $.extend({ + title: "Alert", + theme: "error", + buttons: { + Ok: function() { + return this.close(); + } + } + }, options); + return this.show(content, options); + }, + clear: function() { + if (!this.box) { + return; + } + if (this.persist) { + this.persist.appendTo(this.persist.data("tb-persist-parent")); + this.persist = false; + } + this.box.stop().remove(); + this.box = null; + if (this.overlay) { + this.overlay.hide(); + } + $(window).unbind("resize.topbox"); + $(document).unbind("keydown.topbox"); + return this; + }, + center: function() { + if (!this.box) { + return; + } + return this.box.css({ + left: $(window).width() / 2 - $this.box.width() / 2 + }); + }, + setTitle: function(title) { + if (!this.box) { + return; + } + if (title) { + this.box.find(".topbox-title").html(title).show(); + } else { + this.box.find(".topbox-title").html(title).hide(); + } + return this; + }, + setContent: function(content) { + if (!this.box) { + return; + } + if (typeof content === "object") { + content = (content instanceof jQuery ? content : $(content)); + if (content.parent().length) { + this.persist = content; + this.persist.data("tb-persist-parent", content.parent()); + } + } else if (typeof content === "string" || typeof content === "number") { + content = $("
").html(content); + } else { + content = $("
").html("SimpleModal Error: Unsupported data type: " + typeof content); + } + content.appendTo(this.box.find(".topbox-innercontent").html("")); + return this; + }, + showOverlay: function() { + if (!this.box) { + return; + } + if (!this.overlay) { + if (!$("#topbox-overlay").length) { + $("
").attr("id", "topbox-overlay").css({ + top: 0, + left: 0, + position: "absolute" + }).prependTo("body"); + } + this.overlay = $("#topbox-overlay"); + } + return this.overlay.css({ + width: $(document).width(), + height: $(document).height() + }).show(); + } + }; + return $.fn.topbox = function() { + var args, options; + args = arguments; + options = (args[0] ? args[0] : {}); + return this.each(function() { + var ele; + ele = $(this); + return ele.bind("click", function(e) { + var target, type; + e.preventDefault(); + target = String(ele.data("target") || ele.attr("href")); + type = ele.data("type") || "html"; + if (target[0] === "#" || type === "html") { + return $.topbox.show($(target), options); + } + }); + }); + }; + })(jQuery); + +}).call(this); diff --git a/js/jquery.js b/js/jquery.js deleted file mode 100644 index 2bd4cbb..0000000 --- a/js/jquery.js +++ /dev/null @@ -1,167 +0,0 @@ -/*! - * jQuery JavaScript Library v1.4.4 - * http://jquery.com/ - * - * Copyright 2010, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2010, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Thu Nov 11 19:04:53 2010 -0500 - */ -(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h= -h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;kd)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La, -"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this, -e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a, -"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+ -a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/, -C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j, -s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this, -j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length}, -toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j=== --1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false; -if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload", -b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&& -!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&& -l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H
a";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"), -k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false, -scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent= -false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom= -1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="
";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="
t
";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display= -"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h= -c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando); -else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one"; -if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true}, -attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&& -b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0}; -c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem, -arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid= -d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+ -c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType=== -8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k=== -"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+ -d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired= -B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type=== -"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]=== -0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}}); -(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3]; -break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr, -q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h= -l;g.sort(w);if(h)for(var i=1;i0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n, -m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled=== -true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"=== -g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return in[3]-0},nth:function(g,i,n){return n[3]- -0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()=== -i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]]; -if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m, -g);else if(typeof g.length==="number")for(var p=g.length;n";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g); -n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&& -function(){var g=k,i=t.createElement("div");i.innerHTML="

";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F|| -p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g= -t.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition? -function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n0)for(var h=d;h0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h= -h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context): -c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a, -2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a, -b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&& -e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/\s]+\/)>/g,P={option:[1, -""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= -c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, -wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, -prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, -this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); -return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null; -else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1>");try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append", -prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument|| -b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]===""&&!x?r.childNodes:[];for(o=k.length- -1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script")))); -d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i, -jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true, -zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b), -h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b); -if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f= -d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left; -e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/)<[^<]*)*<\/script>/gi, -ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b=== -"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("
").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&& -!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})}, -getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html", -script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data|| -!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache= -false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset; -A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type", -b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&& -c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d|| -c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]= -encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess", -[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"), -e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}}); -if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show", -3),a,b,d);else{d=0;for(var e=this.length;d=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b, -d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a* -Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)} -var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true; -this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide|| -this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a= -c.timers,b=0;b-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a, -e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&& -c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase(); -c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+ -b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window); \ No newline at end of file diff --git a/js/topbox.js b/js/topbox.js deleted file mode 100644 index 77c10a8..0000000 --- a/js/topbox.js +++ /dev/null @@ -1,327 +0,0 @@ -/*! - * Topbox - * http://d-xp.com - * - * Copyright 2011, Artur Heinze - * Licensed under the GPL Version 2. - * https://github.com/jquery/jquery/blob/master/GPL-LICENSE.txt - */ - -(function($){ - - var $this = null; - - $.topbox = $this = { - - box: null, - options: {}, - persist: false, - - show: function(content, options) { - - if(this.box) {this.clear();} - - this.options = $.extend({ - 'title' : false, - 'closeOnEsc': true, - 'closeBtn' : true, - 'theme' : 'default', - 'height' : 'auto', - 'width' : 'auto', - 'speed' : 500, - 'easing' : 'swing', - 'buttons' : false, - - //private - '_status' : true, - - //events - 'beforeShow' : function(){}, - 'beforeClose' : function(){}, - 'onClose' : function(){} - },options); - - var tplDlg = '
'; - tplDlg+= '
'; - tplDlg+= ''; - tplDlg+= '
'; - tplDlg+= '
'; - tplDlg+= '
'; - - this.box = $(tplDlg); - - if(!this.options.closeBtn) { - this.box.find(".topbox-closebutton").hide(); - } else { - this.box.find(".topbox-closebutton").bind("click",function(){ - $this.close(); - }); - } - - if(this.options.buttons){ - - var btns = this.box.find(".topbox-buttons"); - - $.each(this.options.buttons, function(caption, fn){ - - $('').bind("click", function(e){ - e.preventDefault(); - fn.apply($this); - }).appendTo(btns); - }); - }else{ - this.box.find(".topbox-buttonsbar").hide(); - } - - if($this.options.height != 'auto'){ - this.box.find(".topbox-innercontent").css({ - 'height' : $this.options.height, - 'overflow-y': 'auto' - }); - } - - if($this.options.width != 'auto'){ - this.box.find(".topbox-innercontent").css({ - 'width' : $this.options.width, - 'overflow-x': 'auto' - }); - } - - this.setContent(content).setTitle(this.options.title); - - - this.box.css({ - 'opacity' : 0, - 'visibility': 'hidden' - }) - .appendTo("body"); - - this.options.beforeShow.apply(this); - - this.box.css({ - 'left' : ($(window).width()/2-$this.box.width()/2), - 'top' : ((-1.5) * $this.box.height()) - }).css({ - 'visibility': 'visible' - }).animate({ - top: 0, - opacity: 1 - }, this.options.speed, this.options.easing, function(){ - - //focus - if($this.box.find(":input:first").length) { - $this.box.find(":input:first").focus(); - } - - }); - - $(window).bind('resize.topbox', function(){ - - $this.center(); - - $this.overlay.hide().css({ - width: $(document).width(), - height: $(document).height() - }).show(); - }); - - // bind esc - if(this.options.closeOnEsc){ - $(document).bind('keydown.topbox', function (e) { - if (e.keyCode === 27) { // ESC - e.preventDefault(); - $this.close(); - } - }); - } - - this.showOverlay(); - - return this; - }, - - close: function(){ - - if(!this.box) {return;} - - if(this.options.beforeClose.apply(this)===false){ - return this; - } - - this.overlay.fadeOut(); - - this.box.animate({ - 'top' : ((-1.5) * $this.box.height()), - 'opacity': 0 - }, this.options.speed, this.options.easing, function(){ - $this.clear(); - }); - - this.options.onClose.apply(this); - - return this; - }, - - blockUI: function(content, options) { - - var options = $.extend({ - closeBtn: false, - closeOnEsc: false - }, options); - - this.show(content, options); - }, - - 'confirm': function(content, fn, options){ - - var options = $.extend({ - title : "Please confirm", - buttons: { - Ok: function(){ - fn.apply($this); - }, - - Cancel: function(){ - this.close(); - } - } - }, options); - - this.show(content, options); - - }, - - 'alert': function(content, options){ - - var options = $.extend({ - title : "Alert", - buttons: { - Ok: function(){ - this.close(); - } - } - }, options); - - this.show(content, options); - }, - - clear: function(){ - - if(!this.box) {return;} - - if (this.persist) { - this.persist.appendTo(this.persist.data("tb-persist-parent")); - this.persist = false; - } - - this.box.stop().remove(); - this.box = null; - - if(this.overlay){ - this.overlay.hide(); - } - - $(window).unbind('resize.topbox'); - $(document).unbind('keydown.topbox'); - - return this; - }, - - center: function(){ - - if(!this.box) {return;} - - this.box.css({ - 'left': ($(window).width()/2-$this.box.width()/2) - }); - }, - - setTitle: function(title){ - - if(!this.box) {return;} - - if(title){ - this.box.find(".topbox-title").html(title).show(); - }else{ - this.box.find(".topbox-title").html(title).hide(); - } - - return this; - }, - - setContent: function(content){ - - if(!this.box) {return;} - - if (typeof content === 'object') { - // convert DOM object to a jQuery object - content = content instanceof jQuery ? content : $(content); - - if(content.parent().length) { - this.persist = content; - this.persist.data("tb-persist-parent", content.parent()); - } - } - else if (typeof content === 'string' || typeof content === 'number') { - // just insert the data as innerHTML - content = $('
').html(content); - } - else { - // unsupported data type! - content = $('
').html('SimpleModal Error: Unsupported data type: ' + typeof content); - } - - content.appendTo(this.box.find(".topbox-innercontent").html('')); - - return this; - }, - - showOverlay: function(){ - - if(!this.box) {return;} - - if(!this.overlay){ - if(!$("#topbox-overlay").length) { - $("
").attr('id','topbox-overlay').css({ - top: 0, - left: 0, - position: 'absolute' - }).prependTo('body'); - - } - - this.overlay = $("#topbox-overlay"); - } - - this.overlay.css({ - width: $(document).width(), - height: $(document).height() - }).show(); - } - }; - - $.fn.topbox = function() { - - var args = arguments; - var options = args[0] ? args[0] : {}; - - return this.each(function() { - - var ele = $(this); - - ele.bind("click", function(e) { - - e.preventDefault(); - - var target = String(ele.data('target') || ele.attr("href")), - type = ele.data("type") || "html"; - - //html source - if(target[0]=="#" || type=="html") { - $.topbox.show($(target), options); - } - - }); - }); - }; -})(jQuery); \ No newline at end of file diff --git a/readme.markdown b/readme.md similarity index 99% rename from readme.markdown rename to readme.md index ff11a84..e02101a 100644 --- a/readme.markdown +++ b/readme.md @@ -1,3 +1,4 @@ + # Topbox # ... a dialog alternative. diff --git a/stylesheets/screen.css b/stylesheets/screen.css new file mode 100644 index 0000000..9995943 --- /dev/null +++ b/stylesheets/screen.css @@ -0,0 +1,39 @@ +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, 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, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline; } + +html { line-height: 1; } + +ol, ul { list-style: none; } + +table { border-collapse: collapse; border-spacing: 0; } + +caption, th, td { text-align: left; font-weight: normal; vertical-align: middle; } + +q, blockquote { quotes: none; } +q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none; } + +a img { border: none; } + +article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { display: block; } + +body { font-family: Georgia, serif; font-size: 14px; font-style: italic; font-weight: normal; text-transform: normal; letter-spacing: normal; line-height: 1.4em; color: #333; background: #888888; background-image: url('../images/bg.png'); background-repeat: repeat; } + +h1, h2, h3 { font-family: Helvetica, Arial, sans-serif; font-style: normal; font-weight: bold; text-transform: normal; letter-spacing: -1px; line-height: 1.2em; } + +a { color: red; text-decoration: underline; } +a:hover { text-decoration: none; } + +h1 { font-size: 6.5em; margin: 15px 0 0 15px; text-shadow: 0px 0 5px white; } + +h2.title { font: normal 2.3em "ProximaNovaRgRegular", "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; margin: -20px 0 30px 56px; color: #a7dd3c; text-shadow: 0 0 2px white; } + +h3 { font-size: 2em; color: #ff0080; padding: 15px 0; text-shadow: 0px 0 5px white; } + +.wrapper { width: 920px; margin: 40px auto; } + +section { padding: 25px; } + +pre { background: #fff; padding: 20px; margin: 15px 0; outline: 1px solid #E1E1E1; border: 5px solid #FAFAFA; } + +.gbutton { position: relative; overflow: visible; display: inline-block; padding: 0.5em 1em; border: 1px solid #d4d4d4; margin: 2em 0; text-decoration: none; text-shadow: 1px 1px 0 #fff; font: 11px/normal sans-serif; color: #333; white-space: nowrap; cursor: pointer; outline: none; background-color: #ececec; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)); background-image: -webkit-linear-gradient(#f4f4f4, #ececec); background-image: -moz-linear-gradient(#f4f4f4, #ececec); background-image: -o-linear-gradient(#f4f4f4, #ececec); background-image: linear-gradient(#f4f4f4, #ececec); -webkit-background-clip: padding; -moz-background-clip: padding; background-clip: padding-box; -webkit-border-radius: 0.2em; -moz-border-radius: 0.2em; -ms-border-radius: 0.2em; -o-border-radius: 0.2em; border-radius: 0.2em; } +.gbutton:hover, .gbutton:focus { color: #fff; border-color: #3072b3; border-bottom-color: #2a65a0; text-decoration: none; background-color: #3072b3; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #599bdc), color-stop(100%, #3072b3)); background-image: -webkit-linear-gradient(#599bdc, #3072b3); background-image: -moz-linear-gradient(#599bdc, #3072b3); background-image: -o-linear-gradient(#599bdc, #3072b3); background-image: linear-gradient(#599bdc, #3072b3); text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); } +.gbutton:active { border-color: #2a65a0; border-bottom-color: #3884CF; color: #fff; background-color: #3072b3; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #3072b3), color-stop(100%, #599bdc)); background-image: -webkit-linear-gradient(#3072b3, #599bdc); background-image: -moz-linear-gradient(#3072b3, #599bdc); background-image: -o-linear-gradient(#3072b3, #599bdc); background-image: linear-gradient(#3072b3, #599bdc); } diff --git a/stylesheets/themes.css b/stylesheets/themes.css new file mode 100644 index 0000000..35ee790 --- /dev/null +++ b/stylesheets/themes.css @@ -0,0 +1,26 @@ +/* osx */ +.osx .topbox-title { border-bottom: 1px #ccc solid; background-image: -webkit-linear-gradient(90deg, #dddddd, #eeeeee); background-image: -moz-linear-gradient(90deg, #dddddd, #eeeeee); background-image: -o-linear-gradient(90deg, #dddddd, #eeeeee); background-image: linear-gradient(90deg, #dddddd, #eeeeee); text-shadow: #f4f4f4 0px 1px 0px; } + +/* dark */ +.topbox-window.dark { background: #222; color: #ccc; border-bottom: 2px #fff solid; border-left: 2px #fff solid; border-right: 2px #fff solid; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } + +.dark .topbox-title { color: #ccc; border-bottom: 2px #000 solid; border-left: 2px #000 solid; border-right: 2px #000 solid; background: transparent; border-bottom: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } +.dark .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* black theme */ +.black .topbox-title { color: #ccc; border-bottom: 2px #000 solid; border-left: 2px #000 solid; border-right: 2px #000 solid; background: transparent; border-bottom: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } +.black .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* alert theme */ +.error .topbox-title { color: white; border-color: #B53F3A; border-bottom-color: #A0302A; background-color: #DC5F59; -webkit-box-shadow: inset 0px 1px 0px #f7d0d0; -moz-box-shadow: inset 0px 1px 0px #f7d0d0; box-shadow: inset 0px 1px 0px #f7d0d0; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dc5f59), color-stop(100%, #b33630)); background-image: -webkit-linear-gradient(#dc5f59, #b33630); background-image: -moz-linear-gradient(#dc5f59, #b33630); background-image: -o-linear-gradient(#dc5f59, #b33630); background-image: linear-gradient(#dc5f59, #b33630); } +.error .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* success theme */ +.success .topbox-title { color: white; background-color: #76CA43; border-color: #76CA43; border-bottom-color: #569D2B; -webkit-box-shadow: inset 0px 1px 0px #f7d0d0; -moz-box-shadow: inset 0px 1px 0px #f7d0d0; box-shadow: inset 0px 1px 0px #f7d0d0; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #76ca43), color-stop(100%, #569d2b)); background-image: -webkit-linear-gradient(#76ca43, #569d2b); background-image: -moz-linear-gradient(#76ca43, #569d2b); background-image: -o-linear-gradient(#76ca43, #569d2b); background-image: linear-gradient(#76ca43, #569d2b); } +.success .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* classic */ +.topbox-window.classic { background-color: #eee; color: #666; } + +.classic .topbox-title { color: #000; background: #fff; border-bottom: 1px #ccc solid; } +.classic .topbox-buttonsbar { border-top: none; } diff --git a/stylesheets/topbox.css b/stylesheets/topbox.css new file mode 100644 index 0000000..76a7d5a --- /dev/null +++ b/stylesheets/topbox.css @@ -0,0 +1,46 @@ +/* DEFAULTS */ +.topbox-window { font-family: Trebuchet, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-transform: normal; letter-spacing: normal; line-height: 1.4em; position: fixed; top: 0px; color: #000; min-width: 200px; max-width: 400px; z-index: 1000; border-bottom: 2px #fff solid; border-left: 2px #fff solid; border-right: 2px #fff solid; background-color: #ECECEC; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)); background-image: -webkit-linear-gradient(#f4f4f4, #ececec); background-image: -moz-linear-gradient(#f4f4f4, #ececec); background-image: -o-linear-gradient(#f4f4f4, #ececec); background-image: linear-gradient(#f4f4f4, #ececec); -webkit-box-shadow: #444444 0px 0px 20px; -moz-box-shadow: #444444 0px 0px 20px; box-shadow: #444444 0px 0px 20px; -webkit-box-shadow: 0px 0px 5px #333333; -moz-box-shadow: 0px 0px 5px #333333; box-shadow: 0px 0px 5px #333333; -webkit-border-radius: 0px 0px 8px 8px; -moz-border-radius: 0px 0px 8px 8px; -ms-border-radius: 0px 0px 8px 8px; -o-border-radius: 0px 0px 8px 8px; border-radius: 0px 0px 8px 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } + +.topbox-closebutton { background-image: url('../images/dlg-close.png'); background-repeat: no-repeat; background-position: 50% 50%; background-color: transparent; width: 30px; height: 30px; cursor: pointer; position: absolute; right: -15px; top: 2px; } + +.topbox-title { padding: 6px; font-weight: bold; background: #ddd; border-bottom: 1px #ccc solid; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } + +.topbox-content { padding: 6px; } + +.topbox-buttonsbar { margin: 6px; border-top: 1px #ccc dotted; } + +.topbox-buttons { padding: 6px 0px; text-align: right; } + +.topbox-button { position: relative; overflow: visible; display: inline-block; padding: 0.5em 1em; border: 1px solid #d4d4d4; margin: 0; text-decoration: none; text-shadow: 1px 1px 0 #fff; font: 0.9em/normal sans-serif; color: #333; white-space: nowrap; cursor: pointer; outline: none; background-color: #ececec; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #f4f4f4), color-stop(100%, #ececec)); background-image: -webkit-linear-gradient(#f4f4f4, #ececec); background-image: -moz-linear-gradient(#f4f4f4, #ececec); background-image: -o-linear-gradient(#f4f4f4, #ececec); background-image: linear-gradient(#f4f4f4, #ececec); -webkit-background-clip: padding; -moz-background-clip: padding; background-clip: padding-box; -webkit-border-radius: 0.2em; -moz-border-radius: 0.2em; -ms-border-radius: 0.2em; -o-border-radius: 0.2em; border-radius: 0.2em; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } +.topbox-button:hover, .topbox-button:focus { border-color: #3072b3; border-bottom-color: #2a65a0; text-decoration: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); color: #fff; background-color: #3072b3; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #599bdc), color-stop(100%, #3072b3)); background-image: -webkit-linear-gradient(#599bdc, #3072b3); background-image: -moz-linear-gradient(#599bdc, #3072b3); background-image: -o-linear-gradient(#599bdc, #3072b3); background-image: linear-gradient(#599bdc, #3072b3); } +.topbox-button:active { border-color: #2a65a0; border-bottom-color: #3884CF; color: #fff; background-color: #3072b3; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #3072b3), color-stop(100%, #599bdc)); background-image: -webkit-linear-gradient(#3072b3, #599bdc); background-image: -moz-linear-gradient(#3072b3, #599bdc); background-image: -o-linear-gradient(#3072b3, #599bdc); background-image: linear-gradient(#3072b3, #599bdc); } + +#topbox-overlay { z-index: 999; background: #222d3f; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50); opacity: 0.5; } + +/** THEMES - Optional **/ +/* osx */ +.osx .topbox-title { border-bottom: 1px #ccc solid; background-image: -webkit-linear-gradient(90deg, #dddddd, #eeeeee); background-image: -moz-linear-gradient(90deg, #dddddd, #eeeeee); background-image: -o-linear-gradient(90deg, #dddddd, #eeeeee); background-image: linear-gradient(90deg, #dddddd, #eeeeee); text-shadow: #f4f4f4 0px 1px 0px; } + +/* dark */ +.topbox-window.dark { background: #222; color: #ccc; border-bottom: 2px #fff solid; border-left: 2px #fff solid; border-right: 2px #fff solid; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } + +.dark .topbox-title { color: #ccc; border-bottom: 2px #000 solid; border-left: 2px #000 solid; border-right: 2px #000 solid; background: transparent; border-bottom: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } +.dark .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* black theme */ +.black .topbox-title { color: #ccc; border-bottom: 2px #000 solid; border-left: 2px #000 solid; border-right: 2px #000 solid; background: transparent; border-bottom: none; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #000000)); background-image: -webkit-linear-gradient(#45484d, #000000); background-image: -moz-linear-gradient(#45484d, #000000); background-image: -o-linear-gradient(#45484d, #000000); background-image: linear-gradient(#45484d, #000000); } +.black .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* alert theme */ +.error .topbox-title { color: white; border-color: #B53F3A; border-bottom-color: #A0302A; background-color: #DC5F59; -webkit-box-shadow: inset 0px 1px 0px #f7d0d0; -moz-box-shadow: inset 0px 1px 0px #f7d0d0; box-shadow: inset 0px 1px 0px #f7d0d0; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #dc5f59), color-stop(100%, #b33630)); background-image: -webkit-linear-gradient(#dc5f59, #b33630); background-image: -moz-linear-gradient(#dc5f59, #b33630); background-image: -o-linear-gradient(#dc5f59, #b33630); background-image: linear-gradient(#dc5f59, #b33630); } +.error .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* success theme */ +.success .topbox-title { color: white; background-color: #76CA43; border-color: #76CA43; border-bottom-color: #569D2B; -webkit-box-shadow: inset 0px 1px 0px #f7d0d0; -moz-box-shadow: inset 0px 1px 0px #f7d0d0; box-shadow: inset 0px 1px 0px #f7d0d0; text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #76ca43), color-stop(100%, #569d2b)); background-image: -webkit-linear-gradient(#76ca43, #569d2b); background-image: -moz-linear-gradient(#76ca43, #569d2b); background-image: -o-linear-gradient(#76ca43, #569d2b); background-image: linear-gradient(#76ca43, #569d2b); } +.success .topbox-buttonsbar { border-top: 1px #666 dotted; } + +/* classic */ +.topbox-window.classic { background-color: #eee; color: #666; } + +.classic .topbox-title { color: #000; background: #fff; border-bottom: 1px #ccc solid; } +.classic .topbox-buttonsbar { border-top: none; } From 366c82babf149a75c00a3d8fb606fc09a241790e Mon Sep 17 00:00:00 2001 From: Higher Ground Studio Date: Thu, 12 Jul 2012 18:28:48 -0600 Subject: [PATCH 2/2] Added themes to readme --- readme.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index e02101a..bc190e2 100644 --- a/readme.md +++ b/readme.md @@ -26,7 +26,7 @@ where content could be a string, dom element or jQuery element. -*Shortcuts* +# Shortcuts # - Alert @@ -41,4 +41,12 @@ where content could be a string, dom element or jQuery element. - Block UI - $.topbox.blockUI("...", { title: "Blocking UI"}); \ No newline at end of file + $.topbox.blockUI("...", { title: "Blocking UI"}); + +# Themes # +- OSX +- Dark +- Black +- Error +- Success +- Classic \ No newline at end of file