Editorial Calendar - Version 1.8

Version Description

The calendar is now translated into Norwegian.

The mouse wheel scrolling with the calendar is now working properly on WordPress 3.3. Previously it would only scroll up (into the past) and not down (into the future).

The calendar is now translated into Japanese. Thanks to Masahiro who blogs at http://www.buslog.net.

Support for WordPress version 3.3.1.

Download this release

Release Info

Developer jkudish
Plugin Icon wp plugin Editorial Calendar
Version 1.8
Comparing to
See all releases

Code changes from version 1.7 to 1.8

closure.sh CHANGED
@@ -1,3 +1,3 @@
1
- java -jar closure/compiler.jar --js_output_file lib/edcallib.min.js --js lib/humanmsg.js --js lib/sprintf-0.7-beta1.js --js lib/jquery.cookie.js --js lib/jquery.bgiframe.js --js lib/jquery.delegate.js --js lib/jquery.tools.min.js --js lib/jquery.timepicker.js --js lib/json2.js --js lib/tools.scrollable-1.1.2.js --js lib/tools.scrollable.mousewheel-1.0.1.js --js lib/date.extras.js
2
 
3
  java -jar closure/compiler.jar --js_output_file edcal.min.js --js edcal.js
1
+ java -jar closure/compiler.jar --js_output_file lib/edcallib.min.js --js lib/humanmsg.js --js lib/jquery.mousewheel.js --js lib/sprintf-0.7-beta1.js --js lib/jquery.cookie.js --js lib/jquery.bgiframe.js --js lib/jquery.delegate.js --js lib/jquery.tools.min.js --js lib/jquery.timepicker.js --js lib/json2.js --js lib/tools.scrollable-1.1.2.js --js lib/tools.scrollable.mousewheel-1.0.1.js --js lib/date.extras.js
2
 
3
  java -jar closure/compiler.jar --js_output_file edcal.min.js --js edcal.js
edcal.js CHANGED
@@ -395,7 +395,7 @@ var edcal = {
395
  newrow += '<div class="dayobj">';
396
 
397
  newrow += '<a href="#" adddate="' + _date.toString('MMMM d') + '" class="daynewlink" title="' +
398
- sprintf(edcal.str_newpost, _date.toString(Date.CultureInfo.formatPatterns.monthDay)) + '" ' +
399
  'onclick="return false;">' + edcal.str_addPostLink + '</a>';
400
 
401
  if (_date.toString('dd') == '01') {
@@ -1337,7 +1337,8 @@ var edcal = {
1337
  var firstDate = edcal.getDayFromDayId(items.eq(0).children('.row').children('.day:first').attr('id'));
1338
  var lastDate = edcal.getDayFromDayId(items.eq(edcal.weeksPref - 1).children('.row').children('.day:last').attr('id'));
1339
 
1340
- jQuery('#currentRange').text(firstDate.toString('MMMM yyyy') + ' - ' + lastDate.toString('MMMM yyyy'));
 
1341
  },
1342
 
1343
  /*
@@ -1636,8 +1637,7 @@ var edcal = {
1636
  keyboardSteps: 1,
1637
  speed: 100,
1638
  easing: 'linear'
1639
- // use mousewheel plugin
1640
- }).mousewheel();
1641
 
1642
  var api = jQuery('#edcal_scrollable').scrollable();
1643
 
@@ -1660,27 +1660,22 @@ var edcal = {
1660
 
1661
  edcal.moveTo(curDate.clone());
1662
 
 
 
 
 
 
 
 
 
 
 
 
1663
  /*
1664
- * The scrollable handles some basic binding. This gets us
1665
- * up arrow, down arrow and the mouse wheel.
1666
  */
1667
  api.onBeforeSeek(function(evt, direction) {
1668
- // inside callbacks the "this" variable is a reference to the API
1669
- /*
1670
- * Some times for reasons I haven't been able to figure out
1671
- * the direction is an int instead of a boolean. I don't
1672
- * know why, but this works around it.
1673
- */
1674
- if (direction === 1) {
1675
- direction = false;
1676
- } else if (direction === 3) {
1677
- direction = true;
1678
- }
1679
-
1680
- if (!edcal.isMoving) {
1681
- edcal.move(1, direction);
1682
- }
1683
-
1684
  return false;
1685
  });
1686
 
@@ -1709,11 +1704,11 @@ var edcal = {
1709
  edcal.move(1, false);
1710
  return false;
1711
  } else if ((evt.keyCode === 34 && !(evt.altKey || evt.ctrlKey)) || //page down
1712
- evt.keyCode === 40 && evt.ctrlKey) { // Ctrl+down down arrow
1713
  edcal.move(edcal.weeksPref, true);
1714
  return false;
1715
  } else if ((evt.keyCode === 33 && !(evt.altKey || evt.ctrlKey)) || //page up
1716
- evt.keyCode === 38 && evt.ctrlKey) { // Ctrl+up up arrow
1717
  edcal.move(edcal.weeksPref, false);
1718
  return false;
1719
  }
@@ -2318,6 +2313,14 @@ var edcal = {
2318
  if (window.console) {
2319
  console.error(msg);
2320
  }
 
 
 
 
 
 
 
 
2321
  }
2322
  };
2323
 
395
  newrow += '<div class="dayobj">';
396
 
397
  newrow += '<a href="#" adddate="' + _date.toString('MMMM d') + '" class="daynewlink" title="' +
398
+ sprintf(edcal.str_newpost, edcal.chineseAposWorkaround(_date.toString(Date.CultureInfo.formatPatterns.monthDay))) + '" ' +
399
  'onclick="return false;">' + edcal.str_addPostLink + '</a>';
400
 
401
  if (_date.toString('dd') == '01') {
1337
  var firstDate = edcal.getDayFromDayId(items.eq(0).children('.row').children('.day:first').attr('id'));
1338
  var lastDate = edcal.getDayFromDayId(items.eq(edcal.weeksPref - 1).children('.row').children('.day:last').attr('id'));
1339
 
1340
+ jQuery('#currentRange').text(edcal.chineseAposWorkaround(firstDate.toString(Date.CultureInfo.formatPatterns.yearMonth)) + ' - ' +
1341
+ edcal.chineseAposWorkaround(lastDate.toString(Date.CultureInfo.formatPatterns.yearMonth)));
1342
  },
1343
 
1344
  /*
1637
  keyboardSteps: 1,
1638
  speed: 100,
1639
  easing: 'linear'
1640
+ });
 
1641
 
1642
  var api = jQuery('#edcal_scrollable').scrollable();
1643
 
1660
 
1661
  edcal.moveTo(curDate.clone());
1662
 
1663
+ jQuery('#edcal_scrollable').bind('mousewheel', function(event, delta) {
1664
+ var dir = delta > 0 ? false : true, vel = Math.abs(delta);
1665
+ edcal.output(dir + ' at a velocity of ' + vel);
1666
+
1667
+ if (!edcal.isMoving && vel > 0.2) {
1668
+ edcal.move(1, dir);
1669
+ }
1670
+
1671
+ return false;
1672
+ });
1673
+
1674
  /*
1675
+ We are handling all of our own events so we just cancel all events from
1676
+ the scrollable.
1677
  */
1678
  api.onBeforeSeek(function(evt, direction) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1679
  return false;
1680
  });
1681
 
1704
  edcal.move(1, false);
1705
  return false;
1706
  } else if ((evt.keyCode === 34 && !(evt.altKey || evt.ctrlKey)) || //page down
1707
+ evt.keyCode === 40 && evt.ctrlKey) { // Ctrl+down down arrow
1708
  edcal.move(edcal.weeksPref, true);
1709
  return false;
1710
  } else if ((evt.keyCode === 33 && !(evt.altKey || evt.ctrlKey)) || //page up
1711
+ evt.keyCode === 38 && evt.ctrlKey) { // Ctrl+up up arrow
1712
  edcal.move(edcal.weeksPref, false);
1713
  return false;
1714
  }
2313
  if (window.console) {
2314
  console.error(msg);
2315
  }
2316
+ },
2317
+
2318
+ chineseAposWorkaround: function(/*String*/ dateString) {
2319
+ if (Date.CultureInfo.name.indexOf("zh") === 0 ||
2320
+ Date.CultureInfo.name.indexOf("ja") === 0) {
2321
+ return dateString.replace(/'/g, "");
2322
+ }
2323
+ return dateString;
2324
  }
2325
  };
2326
 
edcal.php CHANGED
@@ -18,7 +18,7 @@
18
  /*
19
  Plugin Name: WordPress Editorial Calendar
20
  Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
21
- Version: 1.7
22
  Author: Colin Vernon, Justin Evans, Joachim Kudish, Mary Vogt, and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
18
  /*
19
  Plugin Name: WordPress Editorial Calendar
20
  Description: The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
21
+ Version: 1.8
22
  Author: Colin Vernon, Justin Evans, Joachim Kudish, Mary Vogt, and Zack Grossbart
23
  Author URI: http://www.zackgrossbart.com
24
  Plugin URI: http://stresslimitdesign.com/editorial-calendar-plugin
languages/editorial-calendar-ja_JP.mo ADDED
Binary file
languages/editorial-calendar-ja_JP.po ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010
2
+ # This file is distributed under the same license as the package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: \n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/editorial-calendar\n"
7
+ "POT-Creation-Date: 2011-12-26 13:18:14+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2012-01-10 18:35-0500\n"
12
+ "Last-Translator: Zack Grossbart <zack@grossbart.com>\n"
13
+ "Language-Team: Editorial Calendar\n"
14
+
15
+ #: edcal.php:90
16
+ #: edcal.php:114
17
+ msgid "Calendar"
18
+ msgstr "カレンダー"
19
+
20
+ #: edcal.php:242
21
+ #: edcal.php:466
22
+ msgid "en-US"
23
+ msgstr "ja-JP"
24
+
25
+ #: edcal.php:250
26
+ msgid "%1$s by %2$s"
27
+ msgstr "%1$s by %2$s"
28
+
29
+ #: edcal.php:252
30
+ msgid "New Post"
31
+ msgstr "新規追加"
32
+
33
+ #: edcal.php:254
34
+ msgid " [DRAFT]"
35
+ msgstr " [下書き]"
36
+
37
+ #: edcal.php:255
38
+ msgid " [PENDING]"
39
+ msgstr " [レビュー待ち]"
40
+
41
+ #: edcal.php:256
42
+ msgid " [STICKY]"
43
+ msgstr " [先頭に固定表示]"
44
+
45
+ #: edcal.php:257
46
+ msgid " [DRAFT, STICKY]"
47
+ msgstr " [下書き、先頭に固定表示]"
48
+
49
+ #: edcal.php:258
50
+ msgid " [PENDING, STICKY]"
51
+ msgstr " [レビュー待ち、先頭に固定表示]"
52
+
53
+ #: edcal.php:259
54
+ #: edcal.php:263
55
+ msgid "Edit"
56
+ msgstr "編集"
57
+
58
+ #: edcal.php:260
59
+ msgid "Quick Edit"
60
+ msgstr "クイック編集"
61
+
62
+ #: edcal.php:261
63
+ msgid "Delete"
64
+ msgstr "削除"
65
+
66
+ #: edcal.php:262
67
+ msgid "View"
68
+ msgstr "プレビュー"
69
+
70
+ #: edcal.php:264
71
+ msgid "Status:"
72
+ msgstr "ステータス:"
73
+
74
+ #: edcal.php:265
75
+ #: edcal.php:435
76
+ msgid "Cancel"
77
+ msgstr "キャンセル"
78
+
79
+ #: edcal.php:266
80
+ #: edcal.php:398
81
+ msgid "Title"
82
+ msgstr "タイトル"
83
+
84
+ #: edcal.php:267
85
+ #: edcal.php:403
86
+ msgid "Content"
87
+ msgstr "本文"
88
+
89
+ #: edcal.php:268
90
+ msgid "Add a new post on %s"
91
+ msgstr "%s に新規投稿を追加"
92
+
93
+ #: edcal.php:269
94
+ msgid "New %s - "
95
+ msgstr "新規 %s - "
96
+
97
+ #: edcal.php:270
98
+ msgid "Update"
99
+ msgstr "アップデート"
100
+
101
+ #: edcal.php:271
102
+ #: edcal.php:434
103
+ msgid "Schedule"
104
+ msgstr "スケジュール"
105
+
106
+ #: edcal.php:272
107
+ msgid "Submit for Review"
108
+ msgstr "レビュー待ちとして送信"
109
+
110
+ #: edcal.php:273
111
+ msgid "Save"
112
+ msgstr "保存"
113
+
114
+ #: edcal.php:274
115
+ msgid "Edit %1$s - %2$s"
116
+ msgstr "編集 %1$s - %2$s"
117
+
118
+ #: edcal.php:275
119
+ #: edcal.php:420
120
+ msgid "Scheduled"
121
+ msgstr "予約投稿"
122
+
123
+ #: edcal.php:277
124
+ msgid "You are about to delete the post \""
125
+ msgstr "投稿を削除しようとしています \""
126
+
127
+ #: edcal.php:278
128
+ msgid "\". Press Cancel to stop, OK to delete."
129
+ msgstr "\". 中止するにはキャンセルを、削除するならOKを押してください。"
130
+
131
+ #: edcal.php:280
132
+ msgid "Looks like someone else already moved this post."
133
+ msgstr "他の誰かがすでにこの投稿を移動させたようです。"
134
+
135
+ #: edcal.php:281
136
+ msgid "You do not have permission to edit posts."
137
+ msgstr "この投稿を編集する権限がありません。"
138
+
139
+ #: edcal.php:282
140
+ msgid "Invalid checksum for post. This is commonly a cross-site scripting error."
141
+ msgstr "チェックサムが正しくありません。これは一般的にはクロスサイトスクリプティングのエラーです。"
142
+
143
+ #: edcal.php:283
144
+ msgid "There was an error contacting your blog."
145
+ msgstr "あなたのブログとの間でエラーがありました。"
146
+
147
+ #: edcal.php:285
148
+ msgid "Screen Options"
149
+ msgstr "表示オプション"
150
+
151
+ #: edcal.php:286
152
+ msgid "Colors"
153
+ msgstr "色"
154
+
155
+ #: edcal.php:287
156
+ msgid "Drafts: "
157
+ msgstr "下書き:"
158
+
159
+ #: edcal.php:288
160
+ msgid "Apply"
161
+ msgstr "適用"
162
+
163
+ #: edcal.php:289
164
+ msgid "Show on screen"
165
+ msgstr "画面への表示"
166
+
167
+ #: edcal.php:290
168
+ msgid " weeks at a time"
169
+ msgstr " 週間"
170
+
171
+ #: edcal.php:291
172
+ msgid "Show in Calendar Cell"
173
+ msgstr "カレンダーのセルへの表示"
174
+
175
+ #: edcal.php:292
176
+ msgid "Author"
177
+ msgstr "作成者"
178
+
179
+ #: edcal.php:293
180
+ #: edcal.php:414
181
+ msgid "Status"
182
+ msgstr "ステータス"
183
+
184
+ #: edcal.php:294
185
+ msgid "Time of day"
186
+ msgstr "時刻"
187
+
188
+ #: edcal.php:295
189
+ msgid "An error occurred while loading the calendar: "
190
+ msgstr "カレンダーを読み込み中にエラーが発生しました:"
191
+
192
+ #: edcal.php:297
193
+ msgid "The calendar can only show between 1 and 5 weeks at a time."
194
+ msgstr "カレンダーは1~5週間のみ一度に表示できます。"
195
+
196
+ #: edcal.php:298
197
+ msgid "Select the number of weeks for the calendar to show."
198
+ msgstr "表示させる週数を選んでください。"
199
+
200
+ #: edcal.php:306
201
+ msgid "<h2>We're done</h2>We've finished collecting data. Thank you for helping us make the calendar better."
202
+ msgstr "<h2>完了しました</h2>データの収集が完了しました。カレンダーをより良いものにするためのご協力ありがとうございます。"
203
+
204
+ #: edcal.php:347
205
+ msgid " Calendar"
206
+ msgstr " カレンダー"
207
+
208
+ #: edcal.php:356
209
+ msgid "Jump back"
210
+ msgstr "前のページへ"
211
+
212
+ #: edcal.php:358
213
+ msgid "Skip ahead"
214
+ msgstr "次のページへ"
215
+
216
+ #: edcal.php:363
217
+ msgid "Scroll the calendar and make the today visible"
218
+ msgstr "カレンダーをスクロールして今日の日付を表示します"
219
+
220
+ #: edcal.php:363
221
+ msgid "Show Today"
222
+ msgstr "今日"
223
+
224
+ #: edcal.php:389
225
+ msgid "Edit Post"
226
+ msgstr "投稿を編集"
227
+
228
+ #: edcal.php:409
229
+ msgid "Time"
230
+ msgstr "時刻"
231
+
232
+ #: edcal.php:417
233
+ msgid "Draft"
234
+ msgstr "下書き"
235
+
236
+ #: edcal.php:418
237
+ msgid "Pending Review"
238
+ msgstr "レビュー待ち"
239
+
240
+ #: edcal.php:617
241
+ msgid "Posts "
242
+ msgstr "投稿"
243
+
244
+ #: edcal.php:633
245
+ msgid "Post "
246
+ msgstr "投稿"
247
+
248
+ #: edcal.php:737
249
+ #: edcal.php:740
250
+ msgid "Error in deleting..."
251
+ msgstr "削除中にエラーが発生しました..."
252
+
languages/editorial-calendar-nb_NO.mo ADDED
Binary file
languages/editorial-calendar-nb_NO.po ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/editorial-calendar\n"
5
+ "POT-Creation-Date: 2011-12-21 13:34:53+00:00\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "PO-Revision-Date: 2011-12-22 08:02-0500\n"
10
+ "Last-Translator: Zack Grossbart <zack@grossbart.com>\n"
11
+ "Language-Team: Zack Grossbart <zack@grossbart.com>\n"
12
+
13
+ #: edcal.php:90
14
+ #: edcal.php:114
15
+ msgid "Calendar"
16
+ msgstr "Kalendar"
17
+
18
+ #: edcal.php:242
19
+ #: edcal.php:466
20
+ msgid "en-US"
21
+ msgstr "nb-NO"
22
+
23
+ #: edcal.php:250
24
+ msgid "%1$s by %2$s"
25
+ msgstr "1$s av %2$s"
26
+
27
+ #: edcal.php:252
28
+ msgid "New Post"
29
+ msgstr "Nytt Innlegg"
30
+
31
+ #: edcal.php:254
32
+ msgid " [DRAFT]"
33
+ msgstr " [UTKAST]"
34
+
35
+ #: edcal.php:255
36
+ msgid " [PENDING]"
37
+ msgstr " [PÃ…VENTE]"
38
+
39
+ #: edcal.php:256
40
+ msgid " [STICKY]"
41
+ msgstr " [KLISTRET]"
42
+
43
+ #: edcal.php:257
44
+ msgid " [DRAFT, STICKY]"
45
+ msgstr " [UTKAST KLISTRET]"
46
+
47
+ #: edcal.php:258
48
+ msgid " [PENDING, STICKY]"
49
+ msgstr " [PÃ…VENTE KLISTRET]"
50
+
51
+ #: edcal.php:259
52
+ #: edcal.php:263
53
+ msgid "Edit"
54
+ msgstr "Editer"
55
+
56
+ #: edcal.php:260
57
+ msgid "Quick Edit"
58
+ msgstr "Hurtig Editering"
59
+
60
+ #: edcal.php:261
61
+ msgid "Delete"
62
+ msgstr "Slett"
63
+
64
+ #: edcal.php:262
65
+ msgid "View"
66
+ msgstr "Se"
67
+
68
+ #: edcal.php:264
69
+ msgid "Status:"
70
+ msgstr "Status"
71
+
72
+ #: edcal.php:265
73
+ #: edcal.php:435
74
+ msgid "Cancel"
75
+ msgstr "Avbryt"
76
+
77
+ #: edcal.php:266
78
+ #: edcal.php:398
79
+ msgid "Title"
80
+ msgstr "Tittel"
81
+
82
+ #: edcal.php:267
83
+ #: edcal.php:403
84
+ msgid "Content"
85
+ msgstr "Innhold"
86
+
87
+ #: edcal.php:268
88
+ msgid "Add a new post on %s"
89
+ msgstr "Legg til nytt innlegg på %s"
90
+
91
+ #: edcal.php:269
92
+ msgid "New %s - "
93
+ msgstr "Nytt %s - "
94
+
95
+ #: edcal.php:270
96
+ msgid "Update"
97
+ msgstr "Oppdater"
98
+
99
+ #: edcal.php:271
100
+ #: edcal.php:434
101
+ msgid "Schedule"
102
+ msgstr "Planlegg"
103
+
104
+ #: edcal.php:272
105
+ msgid "Submit for Review"
106
+ msgstr "Send til vurdering"
107
+
108
+ #: edcal.php:273
109
+ msgid "Save"
110
+ msgstr "Lagre"
111
+
112
+ #: edcal.php:274
113
+ msgid "Edit %1$s - %2$s"
114
+ msgstr "Editer %1$ - %2$s"
115
+
116
+ #: edcal.php:275
117
+ #: edcal.php:420
118
+ msgid "Scheduled"
119
+ msgstr "Planlagt"
120
+
121
+ #: edcal.php:277
122
+ msgid "You are about to delete the post \""
123
+ msgstr "Du er i ferd med å slette innlegget \""
124
+
125
+ #: edcal.php:278
126
+ msgid "\". Press Cancel to stop, OK to delete."
127
+ msgstr "\". Trykk Avbryt for å stoppe, OK for å slette."
128
+
129
+ #: edcal.php:280
130
+ msgid "Looks like someone else already moved this post."
131
+ msgstr "Ser ut som noen andre allerede flyttet dette innlegget."
132
+
133
+ #: edcal.php:281
134
+ msgid "You do not have permission to edit posts."
135
+ msgstr "Du har ikke tillatelse til å redigere innlegg."
136
+
137
+ #: edcal.php:282
138
+ msgid "Invalid checksum for post. This is commonly a cross-site scripting error."
139
+ msgstr "Ugyldig kontrollsum for post. Dette er vanligvis en cross-site scripting feil."
140
+
141
+ #: edcal.php:283
142
+ msgid "There was an error contacting your blog."
143
+ msgstr "Det oppstod en feil med tilkobling av din blogg."
144
+
145
+ #: edcal.php:285
146
+ msgid "Screen Options"
147
+ msgstr "Skjerm Alternativer"
148
+
149
+ #: edcal.php:286
150
+ msgid "Colors"
151
+ msgstr "Farger"
152
+
153
+ #: edcal.php:287
154
+ msgid "Drafts: "
155
+ msgstr "Utkast: "
156
+
157
+ #: edcal.php:288
158
+ msgid "Apply"
159
+ msgstr "Legg til"
160
+
161
+ #: edcal.php:289
162
+ msgid "Show on screen"
163
+ msgstr "Vis på skjerm"
164
+
165
+ #: edcal.php:290
166
+ msgid " weeks at a time"
167
+ msgstr "Uker"
168
+
169
+ #: edcal.php:291
170
+ msgid "Show in Calendar Cell"
171
+ msgstr "Vis i Kalender celle"
172
+
173
+ #: edcal.php:292
174
+ msgid "Author"
175
+ msgstr "Forfatter"
176
+
177
+ #: edcal.php:293
178
+ #: edcal.php:414
179
+ msgid "Status"
180
+ msgstr "Status"
181
+
182
+ #: edcal.php:294
183
+ msgid "Time of day"
184
+ msgstr "Tid på dagen"
185
+
186
+ #: edcal.php:295
187
+ msgid "An error occurred while loading the calendar: "
188
+ msgstr "Det oppstod en feil under innlasting av kalenderen: "
189
+
190
+ #: edcal.php:297
191
+ msgid "The calendar can only show between 1 and 5 weeks at a time."
192
+ msgstr "Kalenderen kan bare vise mellom 1 og 5 uker av gangen."
193
+
194
+ #: edcal.php:298
195
+ msgid "Select the number of weeks for the calendar to show."
196
+ msgstr "Velg antall uker som kalenderen skal vise"
197
+
198
+ #: edcal.php:306
199
+ msgid "<h2>We're done</h2>We've finished collecting data. Thank you for helping us make the calendar better."
200
+ msgstr "<h2>Vi er ferdig</h2> Vi er ferdig med å samle data. Takk for at du hjelper oss" "med å gjøre kalenderen bedre."
201
+
202
+ #: edcal.php:347
203
+ msgid " Calendar"
204
+ msgstr " Kalendar"
205
+
206
+ #: edcal.php:356
207
+ msgid "Jump back"
208
+ msgstr "GÃ¥ tilbake"
209
+
210
+ #: edcal.php:358
211
+ msgid "Skip ahead"
212
+ msgstr "hopp fremover"
213
+
214
+ #: edcal.php:363
215
+ msgid "Scroll the calendar and make the today visible"
216
+ msgstr "Bla i kalenderen og gjør i dag synlig"
217
+
218
+ #: edcal.php:363
219
+ msgid "Show Today"
220
+ msgstr "Vis i dag"
221
+
222
+ #: edcal.php:389
223
+ msgid "Edit Post"
224
+ msgstr "Editer Innlegg"
225
+
226
+ #: edcal.php:409
227
+ msgid "Time"
228
+ msgstr "Tid"
229
+
230
+ #: edcal.php:417
231
+ msgid "Draft"
232
+ msgstr "Utkast"
233
+
234
+ #: edcal.php:418
235
+ msgid "Pending Review"
236
+ msgstr "Send til gjennomgang"
237
+
238
+ #: edcal.php:617
239
+ msgid "Posts "
240
+ msgstr "Innlegg "
241
+
242
+ #: edcal.php:633
243
+ msgid "Post "
244
+ msgstr "Innlegg "
245
+
246
+ #: edcal.php:737
247
+ #: edcal.php:740
248
+ msgid "Error in deleting..."
249
+ msgstr "Feil under sletting..."
250
+
lib/edcallib.min.js CHANGED
@@ -4,56 +4,58 @@ jQuery("#humanMsgClose").show()}else{humanMsg.setLogHeight();jQuery(this).siblin
4
  200,function(){k&&humanMsg.log(b)});humanMsg.t1&&clearTimeout(humanMsg.t1);humanMsg.t2&&clearTimeout(humanMsg.t2);humanMsg.t1=setTimeout(function(){humanMsg.bindEvents()},3000);humanMsg.t2=setTimeout(function(){humanMsg.removeMsg()},5000)}},log:function(b){jQuery("#"+humanMsg.logID).show().children("ul").prepend("<li>"+b+"</li>").children("li:first").slideDown(200);jQuery("#"+humanMsg.logID+" ul").css("display")=="none"?jQuery("#"+humanMsg.logID+" p").animate({bottom:40},200,"linear",function(){jQuery(this).animate({bottom:0},
5
  300,"swing",function(){jQuery(this).css({bottom:0})})}):humanMsg.setLogHeight();jQuery("#humanMsgClose").show();jQuery("#"+humanMsg.logID+" p").removeClass("minimized")},activateLog:function(){jQuery("#"+humanMsg.logID+" p").removeClass("faded");clearTimeout(humanMsg.t3);humanMsg.t3=setTimeout(humanMsg.fadeLog,15000)},setLogHeight:function(){if(navigator.appName==="Microsoft Internet Explorer"){var b=Math.min(jQuery("#"+humanMsg.logID+" ul").children("li").length*48,112);jQuery("#"+humanMsg.logID+
6
  " ul").css("height",b+10+"px");jQuery("#"+humanMsg.logID).css("top","-"+(b+56+humanMsg.logTop)+"px")}else{b=Math.min(jQuery("#"+humanMsg.logID+" ul").children("li").length*14,56);jQuery("#"+humanMsg.logID+" ul").css("height",b+10+"px");jQuery("#"+humanMsg.logID).css("top","-"+(b+112+humanMsg.logTop)+"px")}},bindEvents:function(){jQuery(window).mousemove(humanMsg.removeMsg).click(humanMsg.removeMsg).keypress(humanMsg.removeMsg)},removeMsg:function(){jQuery(window).unbind("mousemove",humanMsg.removeMsg).unbind("click",
7
- humanMsg.removeMsg).unbind("keypress",humanMsg.removeMsg);jQuery("#"+humanMsg.msgID).fadeOut()},fadeLog:function(){jQuery("#"+humanMsg.logID+" ul").css("display")==="none"&&jQuery("#"+humanMsg.logID+" p").addClass("faded")}};jQuery(document).ready(function(){humanMsg.setup()});var sprintf=function(){function b(i){return Object.prototype.toString.call(i).slice(8,-1).toLowerCase()}function k(i,a){for(var c=[];a>0;c[--a]=i);return c.join("")}function j(){j.cache.hasOwnProperty(arguments[0])||(j.cache[arguments[0]]=j.parse(arguments[0]));return j.format.call(null,j.cache[arguments[0]],arguments)}j.format=function(i,a){var c=1,n=i.length,h="",f=[],g,m,l,q;for(g=0;g<n;g++){h=b(i[g]);if(h==="string")f.push(i[g]);else if(h==="array"){l=i[g];if(l[2]){h=a[c];for(m=0;m<l[2].length;m++){if(!h.hasOwnProperty(l[2][m]))throw sprintf('[sprintf] property "%s" does not exist',
8
- l[2][m]);h=h[l[2][m]]}}else h=l[1]?a[l[1]]:a[c++];if(/[^s]/.test(l[8])&&b(h)!="number")throw sprintf("[sprintf] expecting number but found %s",b(h));switch(l[8]){case "b":h=h.toString(2);break;case "c":h=String.fromCharCode(h);break;case "d":h=parseInt(h,10);break;case "e":h=l[7]?h.toExponential(l[7]):h.toExponential();break;case "f":h=l[7]?parseFloat(h).toFixed(l[7]):parseFloat(h);break;case "o":h=h.toString(8);break;case "s":h=(h=String(h))&&l[7]?h.substring(0,l[7]):h;break;case "u":h=Math.abs(h);
9
- break;case "x":h=h.toString(16);break;case "X":h=h.toString(16).toUpperCase();break}h=/[def]/.test(l[8])&&l[3]&&h>=0?"+"+h:h;m=l[4]?l[4]=="0"?"0":l[4].charAt(1):" ";q=l[6]-String(h).length;m=l[6]?k(m,q):"";f.push(l[5]?h+m:m+h)}}return f.join("")};j.cache={};j.parse=function(i){var a=i;i=[];for(var c=[],n=0;a;){if((i=/^[^\x25]+/.exec(a))!==null)c.push(i[0]);else if((i=/^\x25{2}/.exec(a))!==null)c.push("%");else if((i=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a))!==
10
- null){if(i[2]){n|=1;var h=[],f=i[2],g=[];if((g=/^([a-z_][a-z_\d]*)/i.exec(f))!==null)for(h.push(g[1]);(f=f.substring(g[0].length))!=="";)if((g=/^\.([a-z_][a-z_\d]*)/i.exec(f))!==null)h.push(g[1]);else if((g=/^\[(\d+)\]/.exec(f))!==null)h.push(g[1]);else throw"[sprintf] huh?";else throw"[sprintf] huh?";i[2]=h}else n|=2;if(n===3)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";c.push(i)}else throw"[sprintf] huh?";a=a.substring(i[0].length)}return c};return j}();
 
 
11
  function vsprintf(b,k){k.unshift(b);return sprintf.apply(null,k)};jQuery.cookie=function(b,k,j){if(typeof k!="undefined"){j=j||{};if(k===null){k="";j.expires=-1}var i="";if(j.expires&&(typeof j.expires=="number"||j.expires.toUTCString)){if(typeof j.expires=="number"){i=new Date;i.setTime(i.getTime()+j.expires*24*60*60*1000)}else i=j.expires;i="; expires="+i.toUTCString()}var a=j.path?"; path="+j.path:"",c=j.domain?"; domain="+j.domain:"";j=j.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(k),i,a,c,j].join("")}else{k=null;if(document.cookie&&document.cookie!=
12
  ""){j=document.cookie.split(";");for(i=0;i<j.length;i++){a=jQuery.trim(j[i]);if(a.substring(0,b.length+1)==b+"="){k=decodeURIComponent(a.substring(b.length+1));break}}}return k}};(function(b){b.fn.bgIframe=b.fn.bgiframe=function(k){if(b.browser.msie&&parseInt(b.browser.version)<=6){k=b.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},k||{});var j=function(a){return a&&a.constructor==Number?a+"px":a},i='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+k.src+'"style="display:block;position:absolute;z-index:-1;'+(k.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(k.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
13
  j(k.top))+";left:"+(k.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":j(k.left))+";width:"+(k.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":j(k.width))+";height:"+(k.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":j(k.height))+';"/>';return this.each(function(){b("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(i),this.firstChild)})}return this};if(!b.browser.version)b.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]})(jQuery);(function(b){b.each({focus:"focusin",blur:"focusout"},function(k,j){b.event.special[j]={setup:function(){if(b.browser.msie)return false;this.addEventListener(k,b.event.special[j].handler,true)},teardown:function(){if(b.browser.msie)return false;this.removeEventListener(k,b.event.special[j].handler,true)},handler:function(i){arguments[0]=b.event.fix(i);arguments[0].type=j;return b.event.handle.apply(this,arguments)}}});b.extend(b.fn,{delegate:function(k,j,i){return this.bind(k,function(a){var c=b(a.target);
14
- if(c.is(j))return i.apply(c,arguments)})},triggerEvent:function(k,j){return this.triggerHandler(k,[b.event.fix({type:k,target:j})])}})})(jQuery);(function(b){b.tools=b.tools||{};b.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var k;function j(i,a){var c=this,n=b(this),h=!a.vertical,f=i.children(),g=0,m;k||(k=c);b.each(a,function(d,e){b.isFunction(e)&&n.bind(d,e)});if(f.length>
15
- 1)f=b(a.items,i);function l(d){var e=b(d);return a.globalNav?e:i.parent().find(d)}i.data("finder",l);var q=l(a.prev),u=l(a.next),r=l(a.prevPage),p=l(a.nextPage);b.extend(c,{getIndex:function(){return g},getClickIndex:function(){var d=c.getItems();return d.index(d.filter("."+a.activeClass))},getConf:function(){return a},getSize:function(){return c.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/a.size)},getPageIndex:function(){return Math.ceil(g/a.size)},getNaviButtons:function(){return q.add(u).add(r).add(p)},
16
- getRoot:function(){return i},getItemWrap:function(){return f},getItems:function(){return f.children(a.item)},getVisibleItems:function(){return c.getItems().slice(g,g+a.size)},seekTo:function(d,e,o){if(d<0)d=0;if(g===d)return c;if(b.isFunction(e))o=e;if(d>c.getSize()-a.size)return a.loop?c.begin():this.end();var t=c.getItems().eq(d);if(!t.length)return c;var v=b.Event("onBeforeSeek");n.trigger(v,[d]);if(v.isDefaultPrevented())return c;if(e===undefined||b.isFunction(e))e=a.speed;function x(){o&&o.call(c,
17
- d);n.trigger("onSeek",[d])}h?f.animate({left:-t.position().left},e,a.easing,x):f.animate({top:-t.position().top},e,a.easing,x);k=c;g=d;v=b.Event("onStart");n.trigger(v,[d]);if(v.isDefaultPrevented())return c;q.add(r).toggleClass(a.disabledClass,d===0);u.add(p).toggleClass(a.disabledClass,d>=c.getSize()-a.size);return c},move:function(d,e,o){m=d>0;return this.seekTo(g+d,e,o)},next:function(d,e){return this.move(1,d,e)},prev:function(d,e){return this.move(-1,d,e)},movePage:function(d,e,o){m=d>0;var t=
18
- a.size*d,v=g%a.size;if(v>0)t+=d>0?-v:a.size-v;return this.move(t,e,o)},prevPage:function(d,e){return this.movePage(-1,d,e)},nextPage:function(d,e){return this.movePage(1,d,e)},setPage:function(d,e,o){return this.seekTo(d*a.size,e,o)},begin:function(d,e){m=false;return this.seekTo(0,d,e)},end:function(d,e){m=true;var o=this.getSize()-a.size;return o>0?this.seekTo(o,d,e):c},reload:function(){n.trigger("onReload");return c},focus:function(){return k=c},click:function(d){var e=c.getItems().eq(d),o=a.activeClass,
19
- t=a.size;if(d<0||d>=c.getSize())return c;if(t==1){if(a.loop)return c.next();if(d===0||d==c.getSize()-1)m=m===undefined?true:!m;return m===false?c.prev():c.next()}if(t==2){d==g&&d--;c.getItems().removeClass(o);e.addClass(o);return c.seekTo(d,time,fn)}if(!e.hasClass(o)){c.getItems().removeClass(o);e.addClass(o);e=Math.floor(t/2);e=d-e;if(e>c.getSize()-t)e=c.getSize()-t;if(e!==d)return c.seekTo(e)}return c},bind:function(d,e){n.bind(d,e);return c},unbind:function(d){n.unbind(d);return c}});b.each("onBeforeSeek,onStart,onSeek,onReload".split(","),
20
  function(d,e){c[e]=function(o){return c.bind(e,o)}});q.addClass(a.disabledClass).click(function(){c.prev()});u.click(function(){c.next()});p.click(function(){c.nextPage()});c.getSize()<a.size&&u.add(p).addClass(a.disabledClass);r.addClass(a.disabledClass).click(function(){c.prevPage()});var s=a.hoverClass,w="keydown."+Math.random().toString().substring(10);c.onReload(function(){s&&c.getItems().hover(function(){b(this).addClass(s)},function(){b(this).removeClass(s)});a.clickable&&c.getItems().each(function(d){b(this).unbind("click.scrollable").bind("click.scrollable",
21
- function(e){if(!b(e.target).is("a"))return c.click(d)})});a.keyboard?b(document).unbind(w).bind(w,function(d){if(!(d.altKey||d.ctrlKey))if(!(a.keyboard!="static"&&k!=c)){var e=a.keyboardSteps;if(h&&(d.keyCode==37||d.keyCode==39)){c.move(d.keyCode==37?-e:e);return d.preventDefault()}if(!h&&(d.keyCode==38||d.keyCode==40)){c.move(d.keyCode==38?-e:e);return d.preventDefault()}return true}}):b(document).unbind(w)});c.reload()}b.fn.scrollable=function(i){var a=this.eq(typeof i=="number"?i:0).data("scrollable");
22
  if(a)return a;var c=b.extend({},b.tools.scrollable.conf);i=b.extend(c,i);i.keyboardSteps=i.keyboardSteps||i.size;this.each(function(){a=new j(b(this),i);b(this).data("scrollable",a)});return i.api?a:this}})(jQuery);
23
- (function(b){var k=b.tools.scrollable;k.plugins=k.plugins||{};k.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3000,autopause:true,steps:1,api:false}};b.fn.autoscroll=function(j){if(typeof j=="number")j={interval:j};var i=b.extend({},k.plugins.autoscroll.conf),a;b.extend(i,j);this.each(function(){var c=b(this).scrollable();if(c)a=c;var n,h,f=true;c.play=function(){if(!n){f=false;n=setInterval(function(){c.move(i.steps)},i.interval);c.move(i.steps)}};c.pause=function(){n=clearInterval(n)};
24
- c.stop=function(){c.pause();f=true};i.autopause&&c.getRoot().add(c.getNaviButtons()).hover(function(){c.pause();clearInterval(h)},function(){f||(h=setTimeout(c.play,i.interval))});i.autoplay&&setTimeout(c.play,i.interval)});return i.api?a:this}})(jQuery);
25
- (function(b){var k=b.tools.scrollable;k.plugins=k.plugins||{};k.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};b.fn.navigator=function(j){var i=b.extend({},k.plugins.navigator.conf),a;if(typeof j=="string")j={navi:j};j=b.extend(i,j);this.each(function(){var c=b(this).scrollable(),n=c.getRoot(),h=n.data("finder").call(null,j.navi),f=null,g=c.getNaviButtons();if(c)a=c;c.getNaviButtons=function(){return g.add(h)};function m(){if(!h.children().length||
26
- h.data("navi")==c){h.empty();h.data("navi",c);for(var l=0;l<c.getPageAmount();l++)h.append(b("<"+(j.naviItem||"a")+"/>"));f=h.children().each(function(q){var u=b(this);u.click(function(r){c.setPage(q);return r.preventDefault()});j.indexed&&u.text(q);j.idPrefix&&u.attr("id",j.idPrefix+q)})}else{f=j.naviItem?h.find(j.naviItem):h.children();f.each(function(q){var u=b(this);u.click(function(r){c.setPage(q);return r.preventDefault()})})}f.eq(0).addClass(j.activeClass)}c.onStart(function(){var l=j.activeClass;
27
  f.removeClass(l).eq(c.getPageIndex()).addClass(l)});c.onReload(function(){m()});m();n=f.filter("[href="+location.hash+"]");n.length&&c.move(f.index(n))});return j.api?a:this}})(jQuery);
28
  (function(b){b.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};b.event.special.wheel={setup:function(){b.event.add(this,k,j,{})},teardown:function(){b.event.remove(this,k,j)}};var k=!b.browser.mozilla?"mousewheel":"DOMMouseScroll"+(b.browser.version<"1.9"?" mousemove":"");function j(a){switch(a.type){case "mousemove":return b.extend(a.data,{clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY});case "DOMMouseScroll":b.extend(a,a.data);a.delta=-a.detail/3;break;case "mousewheel":a.delta=
29
- a.wheelDelta/120;break}a.type="wheel";return b.event.handle.call(this,a,a.delta)}var i=b.tools.scrollable;i.plugins=i.plugins||{};i.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};b.fn.mousewheel=function(a){var c=b.extend({},i.plugins.mousewheel.conf),n;if(typeof a=="number")a={speed:a};a=b.extend(c,a);this.each(function(){var h=b(this).scrollable();if(h)n=h;h.getRoot().wheel(function(f,g){h.move(g<0?1:-1,a.speed||50);return false})});return a.api?n:this}})(jQuery);(function(b){b.fn.timePicker=function(f){var g=b.extend({},b.fn.timePicker.defaults,f);return this.each(function(){b.timePicker(this,g)})};b.timePicker=function(f,g){f=b(f)[0];return f.timePicker||(f.timePicker=new jQuery._timePicker(f,g))};b._timePicker=function(f,g){var m=false,l=false,q=c(g.startTime,g),u=c(g.endTime,g);b(f).attr("autocomplete","OFF");for(var r=[],p=new Date(q);p<=u;){r[r.length]=j(p,g);p=new Date(p.setMinutes(p.getMinutes()+g.step))}var s=b("<div "+(g.tpDivId?'id="'+g.tpDivId+
30
- '" ':"")+'class="time-picker'+(g.show24Hours?"":" time-picker-12hours")+'"></div>'),w=b("<ul></ul>");for(p=0;p<r.length;p++)w.append("<li>"+r[p]+"</li>");s.append(w);r=b(f).offset();s.appendTo("body").css({top:r.top-48+"px",left:r.left,width:b(f).width()+5+"px"}).hide();s.mouseover(function(){m=true}).mouseout(function(){m=false});b("li",w).mouseover(function(){if(!l){b("li.selected",s).removeClass("selected");b(this).addClass("selected")}}).mousedown(function(){m=true}).click(function(){k(f,this,
31
- s,g);m=false});function d(){if(s.is(":visible"))return false;b("li",s).removeClass("selected");var e=b(f).offset();s.css({top:e.top+b(f).height()+10+"px",left:e.left,width:b(f).width()+5+"px"});s.show();var o=f.value?n(f.value,g):q;e=q.getHours()*60+q.getMinutes();o=o.getHours()*60+o.getMinutes()-e;o=Math.round(o/g.step);e=h(new Date(0,0,0,0,o*g.step+e,0));e=q<e&&e<=u?e:q;e=b("li:contains("+j(e,g)+")",s);if(e.length){e.addClass("selected");s[0].scrollTop=e[0].offsetTop}return true}b(f).focus(d).click(d);
32
  b(f).blur(function(){m||s.hide()});r=b.browser.opera||b.browser.mozilla?"keypress":"keydown";b(f)[r](function(e){l=true;var o=s[0].scrollTop;switch(e.keyCode){case 38:if(d())return false;e=b("li.selected",w);var t=e.prev().addClass("selected")[0];if(t){e.removeClass("selected");if(t.offsetTop<o)s[0].scrollTop=o-t.offsetHeight}else{e.removeClass("selected");t=b("li:last",w).addClass("selected")[0];s[0].scrollTop=t.offsetTop-t.offsetHeight}return false;case 40:if(d())return false;e=b("li.selected",
33
- w);if(t=e.next().addClass("selected")[0]){e.removeClass("selected");if(t.offsetTop+t.offsetHeight>o+s[0].offsetHeight)s[0].scrollTop=o+t.offsetHeight}else{e.removeClass("selected");b("li:first",w).addClass("selected");s[0].scrollTop=0}return false;case 13:if(s.is(":visible")){o=b("li.selected",w)[0];k(f,o,s,g)}return false;case 27:s.hide();return false}return true});b(f).keyup(function(){l=false});this.getTime=function(){return n(f.value,g)};this.setTime=function(e){f.value=j(h(e),g);b(f).change()}};
34
- b.fn.timePicker.defaults={step:30,startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,23,30,0),separator:":",show24Hours:true,timeFormat:"hh:mm tt",amDesignator:"AM",pmDesignator:"PM"};function k(f,g,m){f.value=b(g).text();b(f).change();b.browser.msie||f.focus();m.hide()}function j(f,g){var m=f.getHours(),l=g.show24Hours?m:(m+11)%12+1;l=a(l,g);var q=f.getMinutes();f=g.timeFormat;f=f.replace("hh",l);f=f.replace("h",l);f=f.replace("mm",i(q));return f=g.show24Hours?f.replace(" tt",""):f.replace("tt",
35
- m<12?g.amDesignator:g.pmDesignator)}function i(f){return(f<10?"0":"")+f}function a(f,g){return g.show24Hours?(f<10?"0":"")+f:f}function c(f,g){return typeof f=="object"?h(f):n(f,g)}function n(f,g){if(f){var m=f.split(g.separator),l=parseFloat(m[0]);m=parseFloat(m[1]);if(!g.show24Hours)if(l===12&&f.substr(g.amDesignator)!==-1)l=0;else if(l!==12&&f.indexOf(g.pmDesignator)!==-1)l+=12;f=new Date(0,0,0,l,m,0);return h(f)}return null}function h(f){f.setFullYear(2001);f.setMonth(0);f.setDate(0);return f}
36
  })(jQuery);if(!this.JSON)this.JSON={};
37
- (function(){function b(g){return g<10?"0"+g:g}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var k=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,j=
38
- /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,a,c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},n;function h(g){j.lastIndex=0;return j.test(g)?'"'+g.replace(j,function(m){var l=c[m];return typeof l==="string"?l:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+g+'"'}function f(g,m){var l,q,u=i,r,p=m[g];if(p&&typeof p==="object"&&typeof p.toJSON==="function")p=p.toJSON(g);
39
- if(typeof n==="function")p=n.call(m,g,p);switch(typeof p){case "string":return h(p);case "number":return isFinite(p)?String(p):"null";case "boolean":case "null":return String(p);case "object":if(!p)return"null";i+=a;r=[];if(Object.prototype.toString.apply(p)==="[object Array]"){q=p.length;for(g=0;g<q;g+=1)r[g]=f(g,p)||"null";m=r.length===0?"[]":i?"[\n"+i+r.join(",\n"+i)+"\n"+u+"]":"["+r.join(",")+"]";i=u;return m}if(n&&typeof n==="object"){q=n.length;for(g=0;g<q;g+=1){l=n[g];if(typeof l==="string")if(m=
40
- f(l,p))r.push(h(l)+(i?": ":":")+m)}}else for(l in p)if(Object.hasOwnProperty.call(p,l))if(m=f(l,p))r.push(h(l)+(i?": ":":")+m);m=r.length===0?"{}":i?"{\n"+i+r.join(",\n"+i)+"\n"+u+"}":"{"+r.join(",")+"}";i=u;return m}}if(typeof JSON.stringify!=="function")JSON.stringify=function(g,m,l){var q;a=i="";if(typeof l==="number")for(q=0;q<l;q+=1)a+=" ";else if(typeof l==="string")a=l;if((n=m)&&typeof m!=="function"&&(typeof m!=="object"||typeof m.length!=="number"))throw new Error("JSON.stringify");return f("",
41
- {"":g})};if(typeof JSON.parseIt!=="function")JSON.parseIt=function(g,m){function l(q,u){var r,p,s=q[u];if(s&&typeof s==="object")for(r in s)if(Object.hasOwnProperty.call(s,r)){p=l(s,r);if(p!==undefined)s[r]=p;else delete s[r]}return m.call(q,u,s)}k.lastIndex=0;if(k.test(g))g=g.replace(k,function(q){return"\\u"+("0000"+q.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(g.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
42
- "]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){g=eval("("+g+")");return typeof m==="function"?l({"":g},""):g}throw new SyntaxError("JSON.parseIt");}})();(function(b){b.tools=b.tools||{};b.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var k;function j(i,a){var c=this,n=b(this),h=!a.vertical,f=i.children(),g=0,m;k||(k=c);b.each(a,function(d,e){b.isFunction(e)&&n.bind(d,e)});if(f.length>
43
- 1)f=b(a.items,i);function l(d){var e=b(d);return a.globalNav?e:i.parent().find(d)}i.data("finder",l);var q=l(a.prev),u=l(a.next),r=l(a.prevPage),p=l(a.nextPage);b.extend(c,{getIndex:function(){return g},getClickIndex:function(){var d=c.getItems();return d.index(d.filter("."+a.activeClass))},getConf:function(){return a},getSize:function(){return c.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/a.size)},getPageIndex:function(){return Math.ceil(g/a.size)},getNaviButtons:function(){return q.add(u).add(r).add(p)},
44
- getRoot:function(){return i},getItemWrap:function(){return f},getItems:function(){return f.children(a.item)},getVisibleItems:function(){return c.getItems().slice(g,g+a.size)},seekTo:function(d,e,o){if(d<0)d=0;if(g===d)return c;if(b.isFunction(e))o=e;if(d>c.getSize()-a.size)return a.loop?c.begin():this.end();var t=c.getItems().eq(d);if(!t.length)return c;var v=b.Event("onBeforeSeek");n.trigger(v,d>g);if(v.isDefaultPrevented())return c;if(e===undefined||b.isFunction(e))e=a.speed;function x(){o&&o.call(c,
45
- d);n.trigger("onSeek",[d])}h?f.animate({left:-t.position().left},e,a.easing,x):f.animate({top:-t.position().top},e,a.easing,x);k=c;g=d;v=b.Event("onStart");n.trigger(v,[d]);if(v.isDefaultPrevented())return c;q.add(r).toggleClass(a.disabledClass,d===0);u.add(p).toggleClass(a.disabledClass,d>=c.getSize()-a.size);return c},move:function(d,e,o){m=d>0;return this.seekTo(g+d,e,o)},next:function(d,e){return this.move(1,d,e)},prev:function(d,e){return this.move(-1,d,e)},movePage:function(d,e,o){m=d>0;var t=
46
- a.size*d,v=g%a.size;if(v>0)t+=d>0?-v:a.size-v;return this.move(t,e,o)},prevPage:function(d,e){return this.movePage(-1,d,e)},nextPage:function(d,e){return this.movePage(1,d,e)},setPage:function(d,e,o){return this.seekTo(d*a.size,e,o)},begin:function(d,e){m=false;return this.seekTo(0,d,e)},end:function(d,e){m=true;var o=this.getSize()-a.size;return o>0?this.seekTo(o,d,e):c},reload:function(){n.trigger("onReload");return c},focus:function(){return k=c},click:function(d){var e=c.getItems().eq(d),o=a.activeClass,
47
- t=a.size;if(d<0||d>=c.getSize())return c;if(t==1){if(a.loop)return c.next();if(d===0||d==c.getSize()-1)m=m===undefined?true:!m;return m===false?c.prev():c.next()}if(t==2){d==g&&d--;c.getItems().removeClass(o);e.addClass(o);return c.seekTo(d,time,fn)}if(!e.hasClass(o)){c.getItems().removeClass(o);e.addClass(o);e=Math.floor(t/2);e=d-e;if(e>c.getSize()-t)e=c.getSize()-t;if(e!==d)return c.seekTo(e)}return c},bind:function(d,e){n.bind(d,e);return c},unbind:function(d){n.unbind(d);return c}});b.each("onBeforeSeek,onStart,onSeek,onReload".split(","),
48
  function(d,e){c[e]=function(o){return c.bind(e,o)}});q.addClass(a.disabledClass).click(function(){c.prev()});u.click(function(){c.next()});p.click(function(){c.nextPage()});c.getSize()<a.size&&u.add(p).addClass(a.disabledClass);r.addClass(a.disabledClass).click(function(){c.prevPage()});var s=a.hoverClass,w="keydown."+Math.random().toString().substring(10);c.onReload(function(){s&&c.getItems().hover(function(){b(this).addClass(s)},function(){b(this).removeClass(s)});a.clickable&&c.getItems().each(function(d){b(this).unbind("click.scrollable").bind("click.scrollable",
49
- function(e){if(!b(e.target).is("a"))return c.click(d)})});a.keyboard?b(document).unbind(w).bind(w,function(d){if(!(d.altKey||d.ctrlKey))if(!(a.keyboard!="static"&&k!=c)){var e=a.keyboardSteps;if(h&&(d.keyCode==37||d.keyCode==39)){c.move(d.keyCode==37?-e:e);return d.preventDefault()}if(!h&&(d.keyCode==38||d.keyCode==40)){c.move(d.keyCode==38?-e:e);return d.preventDefault()}return true}}):b(document).unbind(w)});c.reload()}b.fn.scrollable=function(i){var a=this.eq(typeof i=="number"?i:0).data("scrollable");
50
  if(a)return a;var c=b.extend({},b.tools.scrollable.conf);i=b.extend(c,i);i.keyboardSteps=i.keyboardSteps||i.size;this.each(function(){a=new j(b(this),i);b(this).data("scrollable",a)});return i.api?a:this}})(jQuery);(function(b){b.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};b.event.special.wheel={setup:function(){b.event.add(this,k,j,{})},teardown:function(){b.event.remove(this,k,j)}};var k=!b.browser.mozilla?"mousewheel":"DOMMouseScroll"+(b.browser.version<"1.9"?" mousemove":"");function j(a){switch(a.type){case "mousemove":return b.extend(a.data,{clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY});case "DOMMouseScroll":b.extend(a,a.data);a.delta=-a.detail/3;break;case "mousewheel":a.delta=
51
- a.wheelDelta/120;break}a.type="wheel";return b.event.handle.call(this,a,a.delta)}var i=b.tools.scrollable;i.plugins=i.plugins||{};i.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};b.fn.mousewheel=function(a){var c=b.extend({},i.plugins.mousewheel.conf),n;if(typeof a=="number")a={speed:a};a=b.extend(c,a);this.each(function(){var h=b(this).scrollable();if(h)n=h;h.getRoot().wheel(function(f,g){h.move(g<0?1:-1,a.speed||50);return false})});return a.api?n:this}})(jQuery);/*
52
  : Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
53
  */
54
  (function(){var b=Date,k=b.prototype,j=[];function i(a,c){c||(c=2);return("000"+a).slice(c*-1)}b.normalizeFormat=function(a){j=[];(new Date).$format(a);return j.join("")};b.strftime=function(a,c){return(new Date(c*1000)).$format(a)};b.strtotime=function(a){a=b.parse(a);a.addMinutes(a.getTimezoneOffset()*-1);return Math.round(b.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds())/1000)};k.$format=function(a){var c=this,n;
55
- function h(f){j.push(f);return c.toString(f)}return a?a.replace(/(%|\\)?.|%%/g,function(f){if(f.charAt(0)==="\\"||f.substring(0,2)==="%%")return f.replace("\\","").replace("%%","%");switch(f){case "d":case "%d":return h("dd");case "D":case "%a":return h("ddd");case "j":case "%e":return h("d");case "l":case "%A":return h("dddd");case "N":case "%u":return c.getDay()+1;case "S":return h("S");case "w":case "%w":return c.getDay();case "z":return c.getOrdinalNumber();case "%j":return i(c.getOrdinalNumber(),
56
- 3);case "%U":f=c.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0);var g=c.clone().addDays(1).moveToDayOfWeek(0,-1);return g<f?"00":i((g.getOrdinalNumber()-f.getOrdinalNumber())/7+1);case "W":case "%V":return c.getISOWeek();case "%W":return i(c.getWeek());case "F":case "%B":return h("MMMM");case "m":case "%m":return h("MM");case "M":case "%b":case "%h":return h("MMM");case "n":return h("M");case "t":return b.getDaysInMonth(c.getFullYear(),c.getMonth());case "L":return b.isLeapYear(c.getFullYear())?
57
- 1:0;case "o":case "%G":return c.setWeek(c.getISOWeek()).toString("yyyy");case "%g":return c.$format("%G").slice(-2);case "Y":case "%Y":return h("yyyy");case "y":case "%y":return h("yy");case "a":case "%p":return h("tt").toLowerCase();case "A":return h("tt").toUpperCase();case "g":case "%I":return h("h");case "G":return h("H");case "h":return h("hh");case "H":case "%H":return h("HH");case "i":case "%M":return h("mm");case "s":case "%S":return h("ss");case "u":return i(c.getMilliseconds(),3);case "I":return c.isDaylightSavingTime()?
58
- 1:0;case "O":return c.getUTCOffset();case "P":n=c.getUTCOffset();return n.substring(0,n.length-2)+":"+n.substring(n.length-2);case "e":case "T":case "%z":case "%Z":return c.getTimezone();case "Z":return c.getTimezoneOffset()*-60;case "B":f=new Date;return Math.floor((f.getHours()*3600+f.getMinutes()*60+f.getSeconds()+(f.getTimezoneOffset()+60)*60)/86.4);case "c":return c.toISOString().replace(/\"/g,"");case "U":return b.strtotime("now");case "%c":return h("d")+" "+h("t");case "%C":return Math.floor(c.getFullYear()/
59
- 100+1);case "%D":return h("MM/dd/yy");case "%n":return"\\n";case "%t":return"\\t";case "%r":return h("hh:mm tt");case "%R":return h("H:mm");case "%T":return h("H:mm:ss");case "%x":return h("d");case "%X":return h("t");default:j.push(f);return f}}):this._toString()};if(!k.format)k.format=k.$format})();
4
  200,function(){k&&humanMsg.log(b)});humanMsg.t1&&clearTimeout(humanMsg.t1);humanMsg.t2&&clearTimeout(humanMsg.t2);humanMsg.t1=setTimeout(function(){humanMsg.bindEvents()},3000);humanMsg.t2=setTimeout(function(){humanMsg.removeMsg()},5000)}},log:function(b){jQuery("#"+humanMsg.logID).show().children("ul").prepend("<li>"+b+"</li>").children("li:first").slideDown(200);jQuery("#"+humanMsg.logID+" ul").css("display")=="none"?jQuery("#"+humanMsg.logID+" p").animate({bottom:40},200,"linear",function(){jQuery(this).animate({bottom:0},
5
  300,"swing",function(){jQuery(this).css({bottom:0})})}):humanMsg.setLogHeight();jQuery("#humanMsgClose").show();jQuery("#"+humanMsg.logID+" p").removeClass("minimized")},activateLog:function(){jQuery("#"+humanMsg.logID+" p").removeClass("faded");clearTimeout(humanMsg.t3);humanMsg.t3=setTimeout(humanMsg.fadeLog,15000)},setLogHeight:function(){if(navigator.appName==="Microsoft Internet Explorer"){var b=Math.min(jQuery("#"+humanMsg.logID+" ul").children("li").length*48,112);jQuery("#"+humanMsg.logID+
6
  " ul").css("height",b+10+"px");jQuery("#"+humanMsg.logID).css("top","-"+(b+56+humanMsg.logTop)+"px")}else{b=Math.min(jQuery("#"+humanMsg.logID+" ul").children("li").length*14,56);jQuery("#"+humanMsg.logID+" ul").css("height",b+10+"px");jQuery("#"+humanMsg.logID).css("top","-"+(b+112+humanMsg.logTop)+"px")}},bindEvents:function(){jQuery(window).mousemove(humanMsg.removeMsg).click(humanMsg.removeMsg).keypress(humanMsg.removeMsg)},removeMsg:function(){jQuery(window).unbind("mousemove",humanMsg.removeMsg).unbind("click",
7
+ humanMsg.removeMsg).unbind("keypress",humanMsg.removeMsg);jQuery("#"+humanMsg.msgID).fadeOut()},fadeLog:function(){jQuery("#"+humanMsg.logID+" ul").css("display")==="none"&&jQuery("#"+humanMsg.logID+" p").addClass("faded")}};jQuery(document).ready(function(){humanMsg.setup()});(function(b){var k=["DOMMouseScroll","mousewheel"];if(b.event.fixHooks)for(var j=k.length;j;)b.event.fixHooks[k[--j]]=b.event.mouseHooks;b.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=k.length;a;)this.addEventListener(k[--a],i,false);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var a=k.length;a;)this.removeEventListener(k[--a],i,false);else this.onmousewheel=null}};b.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",
8
+ a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}});function i(a){var c=a||window.event,n=[].slice.call(arguments,1),g=0,f=0,h=0;a=b.event.fix(c);a.type="mousewheel";if(c.wheelDelta)g=c.wheelDelta/120;if(c.detail)g=-c.detail/3;h=g;if(c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS){h=0;f=-1*g}if(c.wheelDeltaY!==undefined)h=c.wheelDeltaY/120;if(c.wheelDeltaX!==undefined)f=-1*c.wheelDeltaX/120;n.unshift(a,g,f,h);return(b.event.dispatch||b.event.handle).apply(this,
9
+ n)}})(jQuery);var sprintf=function(){function b(i){return Object.prototype.toString.call(i).slice(8,-1).toLowerCase()}function k(i,a){for(var c=[];a>0;c[--a]=i);return c.join("")}function j(){j.cache.hasOwnProperty(arguments[0])||(j.cache[arguments[0]]=j.parse(arguments[0]));return j.format.call(null,j.cache[arguments[0]],arguments)}j.format=function(i,a){var c=1,n=i.length,g="",f=[],h,m,l,q;for(h=0;h<n;h++){g=b(i[h]);if(g==="string")f.push(i[h]);else if(g==="array"){l=i[h];if(l[2]){g=a[c];for(m=0;m<l[2].length;m++){if(!g.hasOwnProperty(l[2][m]))throw sprintf('[sprintf] property "%s" does not exist',
10
+ l[2][m]);g=g[l[2][m]]}}else g=l[1]?a[l[1]]:a[c++];if(/[^s]/.test(l[8])&&b(g)!="number")throw sprintf("[sprintf] expecting number but found %s",b(g));switch(l[8]){case "b":g=g.toString(2);break;case "c":g=String.fromCharCode(g);break;case "d":g=parseInt(g,10);break;case "e":g=l[7]?g.toExponential(l[7]):g.toExponential();break;case "f":g=l[7]?parseFloat(g).toFixed(l[7]):parseFloat(g);break;case "o":g=g.toString(8);break;case "s":g=(g=String(g))&&l[7]?g.substring(0,l[7]):g;break;case "u":g=Math.abs(g);
11
+ break;case "x":g=g.toString(16);break;case "X":g=g.toString(16).toUpperCase();break}g=/[def]/.test(l[8])&&l[3]&&g>=0?"+"+g:g;m=l[4]?l[4]=="0"?"0":l[4].charAt(1):" ";q=l[6]-String(g).length;m=l[6]?k(m,q):"";f.push(l[5]?g+m:m+g)}}return f.join("")};j.cache={};j.parse=function(i){var a=i;i=[];for(var c=[],n=0;a;){if((i=/^[^\x25]+/.exec(a))!==null)c.push(i[0]);else if((i=/^\x25{2}/.exec(a))!==null)c.push("%");else if((i=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(a))!==
12
+ null){if(i[2]){n|=1;var g=[],f=i[2],h=[];if((h=/^([a-z_][a-z_\d]*)/i.exec(f))!==null)for(g.push(h[1]);(f=f.substring(h[0].length))!=="";)if((h=/^\.([a-z_][a-z_\d]*)/i.exec(f))!==null)g.push(h[1]);else if((h=/^\[(\d+)\]/.exec(f))!==null)g.push(h[1]);else throw"[sprintf] huh?";else throw"[sprintf] huh?";i[2]=g}else n|=2;if(n===3)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";c.push(i)}else throw"[sprintf] huh?";a=a.substring(i[0].length)}return c};return j}();
13
  function vsprintf(b,k){k.unshift(b);return sprintf.apply(null,k)};jQuery.cookie=function(b,k,j){if(typeof k!="undefined"){j=j||{};if(k===null){k="";j.expires=-1}var i="";if(j.expires&&(typeof j.expires=="number"||j.expires.toUTCString)){if(typeof j.expires=="number"){i=new Date;i.setTime(i.getTime()+j.expires*24*60*60*1000)}else i=j.expires;i="; expires="+i.toUTCString()}var a=j.path?"; path="+j.path:"",c=j.domain?"; domain="+j.domain:"";j=j.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(k),i,a,c,j].join("")}else{k=null;if(document.cookie&&document.cookie!=
14
  ""){j=document.cookie.split(";");for(i=0;i<j.length;i++){a=jQuery.trim(j[i]);if(a.substring(0,b.length+1)==b+"="){k=decodeURIComponent(a.substring(b.length+1));break}}}return k}};(function(b){b.fn.bgIframe=b.fn.bgiframe=function(k){if(b.browser.msie&&parseInt(b.browser.version)<=6){k=b.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},k||{});var j=function(a){return a&&a.constructor==Number?a+"px":a},i='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+k.src+'"style="display:block;position:absolute;z-index:-1;'+(k.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(k.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
15
  j(k.top))+";left:"+(k.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":j(k.left))+";width:"+(k.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":j(k.width))+";height:"+(k.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":j(k.height))+';"/>';return this.each(function(){b("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(i),this.firstChild)})}return this};if(!b.browser.version)b.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]})(jQuery);(function(b){b.each({focus:"focusin",blur:"focusout"},function(k,j){b.event.special[j]={setup:function(){if(b.browser.msie)return false;this.addEventListener(k,b.event.special[j].handler,true)},teardown:function(){if(b.browser.msie)return false;this.removeEventListener(k,b.event.special[j].handler,true)},handler:function(i){arguments[0]=b.event.fix(i);arguments[0].type=j;return b.event.handle.apply(this,arguments)}}});b.extend(b.fn,{delegate:function(k,j,i){return this.bind(k,function(a){var c=b(a.target);
16
+ if(c.is(j))return i.apply(c,arguments)})},triggerEvent:function(k,j){return this.triggerHandler(k,[b.event.fix({type:k,target:j})])}})})(jQuery);(function(b){b.tools=b.tools||{};b.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var k;function j(i,a){var c=this,n=b(this),g=!a.vertical,f=i.children(),h=0,m;k||(k=c);b.each(a,function(d,e){b.isFunction(e)&&n.bind(d,e)});if(f.length>
17
+ 1)f=b(a.items,i);function l(d){var e=b(d);return a.globalNav?e:i.parent().find(d)}i.data("finder",l);var q=l(a.prev),u=l(a.next),r=l(a.prevPage),p=l(a.nextPage);b.extend(c,{getIndex:function(){return h},getClickIndex:function(){var d=c.getItems();return d.index(d.filter("."+a.activeClass))},getConf:function(){return a},getSize:function(){return c.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/a.size)},getPageIndex:function(){return Math.ceil(h/a.size)},getNaviButtons:function(){return q.add(u).add(r).add(p)},
18
+ getRoot:function(){return i},getItemWrap:function(){return f},getItems:function(){return f.children(a.item)},getVisibleItems:function(){return c.getItems().slice(h,h+a.size)},seekTo:function(d,e,o){if(d<0)d=0;if(h===d)return c;if(b.isFunction(e))o=e;if(d>c.getSize()-a.size)return a.loop?c.begin():this.end();var t=c.getItems().eq(d);if(!t.length)return c;var v=b.Event("onBeforeSeek");n.trigger(v,[d]);if(v.isDefaultPrevented())return c;if(e===undefined||b.isFunction(e))e=a.speed;function x(){o&&o.call(c,
19
+ d);n.trigger("onSeek",[d])}g?f.animate({left:-t.position().left},e,a.easing,x):f.animate({top:-t.position().top},e,a.easing,x);k=c;h=d;v=b.Event("onStart");n.trigger(v,[d]);if(v.isDefaultPrevented())return c;q.add(r).toggleClass(a.disabledClass,d===0);u.add(p).toggleClass(a.disabledClass,d>=c.getSize()-a.size);return c},move:function(d,e,o){m=d>0;return this.seekTo(h+d,e,o)},next:function(d,e){return this.move(1,d,e)},prev:function(d,e){return this.move(-1,d,e)},movePage:function(d,e,o){m=d>0;var t=
20
+ a.size*d,v=h%a.size;if(v>0)t+=d>0?-v:a.size-v;return this.move(t,e,o)},prevPage:function(d,e){return this.movePage(-1,d,e)},nextPage:function(d,e){return this.movePage(1,d,e)},setPage:function(d,e,o){return this.seekTo(d*a.size,e,o)},begin:function(d,e){m=false;return this.seekTo(0,d,e)},end:function(d,e){m=true;var o=this.getSize()-a.size;return o>0?this.seekTo(o,d,e):c},reload:function(){n.trigger("onReload");return c},focus:function(){return k=c},click:function(d){var e=c.getItems().eq(d),o=a.activeClass,
21
+ t=a.size;if(d<0||d>=c.getSize())return c;if(t==1){if(a.loop)return c.next();if(d===0||d==c.getSize()-1)m=m===undefined?true:!m;return m===false?c.prev():c.next()}if(t==2){d==h&&d--;c.getItems().removeClass(o);e.addClass(o);return c.seekTo(d,time,fn)}if(!e.hasClass(o)){c.getItems().removeClass(o);e.addClass(o);e=Math.floor(t/2);e=d-e;if(e>c.getSize()-t)e=c.getSize()-t;if(e!==d)return c.seekTo(e)}return c},bind:function(d,e){n.bind(d,e);return c},unbind:function(d){n.unbind(d);return c}});b.each("onBeforeSeek,onStart,onSeek,onReload".split(","),
22
  function(d,e){c[e]=function(o){return c.bind(e,o)}});q.addClass(a.disabledClass).click(function(){c.prev()});u.click(function(){c.next()});p.click(function(){c.nextPage()});c.getSize()<a.size&&u.add(p).addClass(a.disabledClass);r.addClass(a.disabledClass).click(function(){c.prevPage()});var s=a.hoverClass,w="keydown."+Math.random().toString().substring(10);c.onReload(function(){s&&c.getItems().hover(function(){b(this).addClass(s)},function(){b(this).removeClass(s)});a.clickable&&c.getItems().each(function(d){b(this).unbind("click.scrollable").bind("click.scrollable",
23
+ function(e){if(!b(e.target).is("a"))return c.click(d)})});a.keyboard?b(document).unbind(w).bind(w,function(d){if(!(d.altKey||d.ctrlKey))if(!(a.keyboard!="static"&&k!=c)){var e=a.keyboardSteps;if(g&&(d.keyCode==37||d.keyCode==39)){c.move(d.keyCode==37?-e:e);return d.preventDefault()}if(!g&&(d.keyCode==38||d.keyCode==40)){c.move(d.keyCode==38?-e:e);return d.preventDefault()}return true}}):b(document).unbind(w)});c.reload()}b.fn.scrollable=function(i){var a=this.eq(typeof i=="number"?i:0).data("scrollable");
24
  if(a)return a;var c=b.extend({},b.tools.scrollable.conf);i=b.extend(c,i);i.keyboardSteps=i.keyboardSteps||i.size;this.each(function(){a=new j(b(this),i);b(this).data("scrollable",a)});return i.api?a:this}})(jQuery);
25
+ (function(b){var k=b.tools.scrollable;k.plugins=k.plugins||{};k.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3000,autopause:true,steps:1,api:false}};b.fn.autoscroll=function(j){if(typeof j=="number")j={interval:j};var i=b.extend({},k.plugins.autoscroll.conf),a;b.extend(i,j);this.each(function(){var c=b(this).scrollable();if(c)a=c;var n,g,f=true;c.play=function(){if(!n){f=false;n=setInterval(function(){c.move(i.steps)},i.interval);c.move(i.steps)}};c.pause=function(){n=clearInterval(n)};
26
+ c.stop=function(){c.pause();f=true};i.autopause&&c.getRoot().add(c.getNaviButtons()).hover(function(){c.pause();clearInterval(g)},function(){f||(g=setTimeout(c.play,i.interval))});i.autoplay&&setTimeout(c.play,i.interval)});return i.api?a:this}})(jQuery);
27
+ (function(b){var k=b.tools.scrollable;k.plugins=k.plugins||{};k.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};b.fn.navigator=function(j){var i=b.extend({},k.plugins.navigator.conf),a;if(typeof j=="string")j={navi:j};j=b.extend(i,j);this.each(function(){var c=b(this).scrollable(),n=c.getRoot(),g=n.data("finder").call(null,j.navi),f=null,h=c.getNaviButtons();if(c)a=c;c.getNaviButtons=function(){return h.add(g)};function m(){if(!g.children().length||
28
+ g.data("navi")==c){g.empty();g.data("navi",c);for(var l=0;l<c.getPageAmount();l++)g.append(b("<"+(j.naviItem||"a")+"/>"));f=g.children().each(function(q){var u=b(this);u.click(function(r){c.setPage(q);return r.preventDefault()});j.indexed&&u.text(q);j.idPrefix&&u.attr("id",j.idPrefix+q)})}else{f=j.naviItem?g.find(j.naviItem):g.children();f.each(function(q){var u=b(this);u.click(function(r){c.setPage(q);return r.preventDefault()})})}f.eq(0).addClass(j.activeClass)}c.onStart(function(){var l=j.activeClass;
29
  f.removeClass(l).eq(c.getPageIndex()).addClass(l)});c.onReload(function(){m()});m();n=f.filter("[href="+location.hash+"]");n.length&&c.move(f.index(n))});return j.api?a:this}})(jQuery);
30
  (function(b){b.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};b.event.special.wheel={setup:function(){b.event.add(this,k,j,{})},teardown:function(){b.event.remove(this,k,j)}};var k=!b.browser.mozilla?"mousewheel":"DOMMouseScroll"+(b.browser.version<"1.9"?" mousemove":"");function j(a){switch(a.type){case "mousemove":return b.extend(a.data,{clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY});case "DOMMouseScroll":b.extend(a,a.data);a.delta=-a.detail/3;break;case "mousewheel":a.delta=
31
+ a.wheelDelta/120;break}a.type="wheel";return b.event.handle.call(this,a,a.delta)}var i=b.tools.scrollable;i.plugins=i.plugins||{};i.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};b.fn.mousewheel=function(a){var c=b.extend({},i.plugins.mousewheel.conf),n;if(typeof a=="number")a={speed:a};a=b.extend(c,a);this.each(function(){var g=b(this).scrollable();if(g)n=g;g.getRoot().wheel(function(f,h){g.move(h<0?1:-1,a.speed||50);return false})});return a.api?n:this}})(jQuery);(function(b){b.fn.timePicker=function(f){var h=b.extend({},b.fn.timePicker.defaults,f);return this.each(function(){b.timePicker(this,h)})};b.timePicker=function(f,h){f=b(f)[0];return f.timePicker||(f.timePicker=new jQuery._timePicker(f,h))};b._timePicker=function(f,h){var m=false,l=false,q=c(h.startTime,h),u=c(h.endTime,h);b(f).attr("autocomplete","OFF");for(var r=[],p=new Date(q);p<=u;){r[r.length]=j(p,h);p=new Date(p.setMinutes(p.getMinutes()+h.step))}var s=b("<div "+(h.tpDivId?'id="'+h.tpDivId+
32
+ '" ':"")+'class="time-picker'+(h.show24Hours?"":" time-picker-12hours")+'"></div>'),w=b("<ul></ul>");for(p=0;p<r.length;p++)w.append("<li>"+r[p]+"</li>");s.append(w);r=b(f).offset();s.appendTo("body").css({top:r.top-48+"px",left:r.left,width:b(f).width()+5+"px"}).hide();s.mouseover(function(){m=true}).mouseout(function(){m=false});b("li",w).mouseover(function(){if(!l){b("li.selected",s).removeClass("selected");b(this).addClass("selected")}}).mousedown(function(){m=true}).click(function(){k(f,this,
33
+ s,h);m=false});function d(){if(s.is(":visible"))return false;b("li",s).removeClass("selected");var e=b(f).offset();s.css({top:e.top+b(f).height()+10+"px",left:e.left,width:b(f).width()+5+"px"});s.show();var o=f.value?n(f.value,h):q;e=q.getHours()*60+q.getMinutes();o=o.getHours()*60+o.getMinutes()-e;o=Math.round(o/h.step);e=g(new Date(0,0,0,0,o*h.step+e,0));e=q<e&&e<=u?e:q;e=b("li:contains("+j(e,h)+")",s);if(e.length){e.addClass("selected");s[0].scrollTop=e[0].offsetTop}return true}b(f).focus(d).click(d);
34
  b(f).blur(function(){m||s.hide()});r=b.browser.opera||b.browser.mozilla?"keypress":"keydown";b(f)[r](function(e){l=true;var o=s[0].scrollTop;switch(e.keyCode){case 38:if(d())return false;e=b("li.selected",w);var t=e.prev().addClass("selected")[0];if(t){e.removeClass("selected");if(t.offsetTop<o)s[0].scrollTop=o-t.offsetHeight}else{e.removeClass("selected");t=b("li:last",w).addClass("selected")[0];s[0].scrollTop=t.offsetTop-t.offsetHeight}return false;case 40:if(d())return false;e=b("li.selected",
35
+ w);if(t=e.next().addClass("selected")[0]){e.removeClass("selected");if(t.offsetTop+t.offsetHeight>o+s[0].offsetHeight)s[0].scrollTop=o+t.offsetHeight}else{e.removeClass("selected");b("li:first",w).addClass("selected");s[0].scrollTop=0}return false;case 13:if(s.is(":visible")){o=b("li.selected",w)[0];k(f,o,s,h)}return false;case 27:s.hide();return false}return true});b(f).keyup(function(){l=false});this.getTime=function(){return n(f.value,h)};this.setTime=function(e){f.value=j(g(e),h);b(f).change()}};
36
+ b.fn.timePicker.defaults={step:30,startTime:new Date(0,0,0,0,0,0),endTime:new Date(0,0,0,23,30,0),separator:":",show24Hours:true,timeFormat:"hh:mm tt",amDesignator:"AM",pmDesignator:"PM"};function k(f,h,m){f.value=b(h).text();b(f).change();b.browser.msie||f.focus();m.hide()}function j(f,h){var m=f.getHours(),l=h.show24Hours?m:(m+11)%12+1;l=a(l,h);var q=f.getMinutes();f=h.timeFormat;f=f.replace("hh",l);f=f.replace("h",l);f=f.replace("mm",i(q));return f=h.show24Hours?f.replace(" tt",""):f.replace("tt",
37
+ m<12?h.amDesignator:h.pmDesignator)}function i(f){return(f<10?"0":"")+f}function a(f,h){return h.show24Hours?(f<10?"0":"")+f:f}function c(f,h){return typeof f=="object"?g(f):n(f,h)}function n(f,h){if(f){var m=f.split(h.separator),l=parseFloat(m[0]);m=parseFloat(m[1]);if(!h.show24Hours)if(l===12&&f.substr(h.amDesignator)!==-1)l=0;else if(l!==12&&f.indexOf(h.pmDesignator)!==-1)l+=12;f=new Date(0,0,0,l,m,0);return g(f)}return null}function g(f){f.setFullYear(2001);f.setMonth(0);f.setDate(0);return f}
38
  })(jQuery);if(!this.JSON)this.JSON={};
39
+ (function(){function b(h){return h<10?"0"+h:h}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var k=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,j=
40
+ /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,a,c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},n;function g(h){j.lastIndex=0;return j.test(h)?'"'+h.replace(j,function(m){var l=c[m];return typeof l==="string"?l:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+h+'"'}function f(h,m){var l,q,u=i,r,p=m[h];if(p&&typeof p==="object"&&typeof p.toJSON==="function")p=p.toJSON(h);
41
+ if(typeof n==="function")p=n.call(m,h,p);switch(typeof p){case "string":return g(p);case "number":return isFinite(p)?String(p):"null";case "boolean":case "null":return String(p);case "object":if(!p)return"null";i+=a;r=[];if(Object.prototype.toString.apply(p)==="[object Array]"){q=p.length;for(h=0;h<q;h+=1)r[h]=f(h,p)||"null";m=r.length===0?"[]":i?"[\n"+i+r.join(",\n"+i)+"\n"+u+"]":"["+r.join(",")+"]";i=u;return m}if(n&&typeof n==="object"){q=n.length;for(h=0;h<q;h+=1){l=n[h];if(typeof l==="string")if(m=
42
+ f(l,p))r.push(g(l)+(i?": ":":")+m)}}else for(l in p)if(Object.hasOwnProperty.call(p,l))if(m=f(l,p))r.push(g(l)+(i?": ":":")+m);m=r.length===0?"{}":i?"{\n"+i+r.join(",\n"+i)+"\n"+u+"}":"{"+r.join(",")+"}";i=u;return m}}if(typeof JSON.stringify!=="function")JSON.stringify=function(h,m,l){var q;a=i="";if(typeof l==="number")for(q=0;q<l;q+=1)a+=" ";else if(typeof l==="string")a=l;if((n=m)&&typeof m!=="function"&&(typeof m!=="object"||typeof m.length!=="number"))throw new Error("JSON.stringify");return f("",
43
+ {"":h})};if(typeof JSON.parseIt!=="function")JSON.parseIt=function(h,m){function l(q,u){var r,p,s=q[u];if(s&&typeof s==="object")for(r in s)if(Object.hasOwnProperty.call(s,r)){p=l(s,r);if(p!==undefined)s[r]=p;else delete s[r]}return m.call(q,u,s)}k.lastIndex=0;if(k.test(h))h=h.replace(k,function(q){return"\\u"+("0000"+q.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(h.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
44
+ "]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){h=eval("("+h+")");return typeof m==="function"?l({"":h},""):h}throw new SyntaxError("JSON.parseIt");}})();(function(b){b.tools=b.tools||{};b.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var k;function j(i,a){var c=this,n=b(this),g=!a.vertical,f=i.children(),h=0,m;k||(k=c);b.each(a,function(d,e){b.isFunction(e)&&n.bind(d,e)});if(f.length>
45
+ 1)f=b(a.items,i);function l(d){var e=b(d);return a.globalNav?e:i.parent().find(d)}i.data("finder",l);var q=l(a.prev),u=l(a.next),r=l(a.prevPage),p=l(a.nextPage);b.extend(c,{getIndex:function(){return h},getClickIndex:function(){var d=c.getItems();return d.index(d.filter("."+a.activeClass))},getConf:function(){return a},getSize:function(){return c.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/a.size)},getPageIndex:function(){return Math.ceil(h/a.size)},getNaviButtons:function(){return q.add(u).add(r).add(p)},
46
+ getRoot:function(){return i},getItemWrap:function(){return f},getItems:function(){return f.children(a.item)},getVisibleItems:function(){return c.getItems().slice(h,h+a.size)},seekTo:function(d,e,o){if(d<0)d=0;if(h===d)return c;if(b.isFunction(e))o=e;if(d>c.getSize()-a.size)return a.loop?c.begin():this.end();var t=c.getItems().eq(d);if(!t.length)return c;var v=b.Event("onBeforeSeek");n.trigger(v,d>h);if(v.isDefaultPrevented())return c;if(e===undefined||b.isFunction(e))e=a.speed;function x(){o&&o.call(c,
47
+ d);n.trigger("onSeek",[d])}g?f.animate({left:-t.position().left},e,a.easing,x):f.animate({top:-t.position().top},e,a.easing,x);k=c;h=d;v=b.Event("onStart");n.trigger(v,[d]);if(v.isDefaultPrevented())return c;q.add(r).toggleClass(a.disabledClass,d===0);u.add(p).toggleClass(a.disabledClass,d>=c.getSize()-a.size);return c},move:function(d,e,o){m=d>0;return this.seekTo(h+d,e,o)},next:function(d,e){return this.move(1,d,e)},prev:function(d,e){return this.move(-1,d,e)},movePage:function(d,e,o){m=d>0;var t=
48
+ a.size*d,v=h%a.size;if(v>0)t+=d>0?-v:a.size-v;return this.move(t,e,o)},prevPage:function(d,e){return this.movePage(-1,d,e)},nextPage:function(d,e){return this.movePage(1,d,e)},setPage:function(d,e,o){return this.seekTo(d*a.size,e,o)},begin:function(d,e){m=false;return this.seekTo(0,d,e)},end:function(d,e){m=true;var o=this.getSize()-a.size;return o>0?this.seekTo(o,d,e):c},reload:function(){n.trigger("onReload");return c},focus:function(){return k=c},click:function(d){var e=c.getItems().eq(d),o=a.activeClass,
49
+ t=a.size;if(d<0||d>=c.getSize())return c;if(t==1){if(a.loop)return c.next();if(d===0||d==c.getSize()-1)m=m===undefined?true:!m;return m===false?c.prev():c.next()}if(t==2){d==h&&d--;c.getItems().removeClass(o);e.addClass(o);return c.seekTo(d,time,fn)}if(!e.hasClass(o)){c.getItems().removeClass(o);e.addClass(o);e=Math.floor(t/2);e=d-e;if(e>c.getSize()-t)e=c.getSize()-t;if(e!==d)return c.seekTo(e)}return c},bind:function(d,e){n.bind(d,e);return c},unbind:function(d){n.unbind(d);return c}});b.each("onBeforeSeek,onStart,onSeek,onReload".split(","),
50
  function(d,e){c[e]=function(o){return c.bind(e,o)}});q.addClass(a.disabledClass).click(function(){c.prev()});u.click(function(){c.next()});p.click(function(){c.nextPage()});c.getSize()<a.size&&u.add(p).addClass(a.disabledClass);r.addClass(a.disabledClass).click(function(){c.prevPage()});var s=a.hoverClass,w="keydown."+Math.random().toString().substring(10);c.onReload(function(){s&&c.getItems().hover(function(){b(this).addClass(s)},function(){b(this).removeClass(s)});a.clickable&&c.getItems().each(function(d){b(this).unbind("click.scrollable").bind("click.scrollable",
51
+ function(e){if(!b(e.target).is("a"))return c.click(d)})});a.keyboard?b(document).unbind(w).bind(w,function(d){if(!(d.altKey||d.ctrlKey))if(!(a.keyboard!="static"&&k!=c)){var e=a.keyboardSteps;if(g&&(d.keyCode==37||d.keyCode==39)){c.move(d.keyCode==37?-e:e);return d.preventDefault()}if(!g&&(d.keyCode==38||d.keyCode==40)){c.move(d.keyCode==38?-e:e);return d.preventDefault()}return true}}):b(document).unbind(w)});c.reload()}b.fn.scrollable=function(i){var a=this.eq(typeof i=="number"?i:0).data("scrollable");
52
  if(a)return a;var c=b.extend({},b.tools.scrollable.conf);i=b.extend(c,i);i.keyboardSteps=i.keyboardSteps||i.size;this.each(function(){a=new j(b(this),i);b(this).data("scrollable",a)});return i.api?a:this}})(jQuery);(function(b){b.fn.wheel=function(a){return this[a?"bind":"trigger"]("wheel",a)};b.event.special.wheel={setup:function(){b.event.add(this,k,j,{})},teardown:function(){b.event.remove(this,k,j)}};var k=!b.browser.mozilla?"mousewheel":"DOMMouseScroll"+(b.browser.version<"1.9"?" mousemove":"");function j(a){switch(a.type){case "mousemove":return b.extend(a.data,{clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY});case "DOMMouseScroll":b.extend(a,a.data);a.delta=-a.detail/3;break;case "mousewheel":a.delta=
53
+ a.wheelDelta/120;break}a.type="wheel";return b.event.handle.call(this,a,a.delta)}var i=b.tools.scrollable;i.plugins=i.plugins||{};i.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};b.fn.mousewheel=function(a){var c=b.extend({},i.plugins.mousewheel.conf),n;if(typeof a=="number")a={speed:a};a=b.extend(c,a);this.each(function(){var g=b(this).scrollable();if(g)n=g;g.getRoot().wheel(function(f,h){g.move(h<0?1:-1,a.speed||50);return false})});return a.api?n:this}})(jQuery);/*
54
  : Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
55
  */
56
  (function(){var b=Date,k=b.prototype,j=[];function i(a,c){c||(c=2);return("000"+a).slice(c*-1)}b.normalizeFormat=function(a){j=[];(new Date).$format(a);return j.join("")};b.strftime=function(a,c){return(new Date(c*1000)).$format(a)};b.strtotime=function(a){a=b.parse(a);a.addMinutes(a.getTimezoneOffset()*-1);return Math.round(b.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds())/1000)};k.$format=function(a){var c=this,n;
57
+ function g(f){j.push(f);return c.toString(f)}return a?a.replace(/(%|\\)?.|%%/g,function(f){if(f.charAt(0)==="\\"||f.substring(0,2)==="%%")return f.replace("\\","").replace("%%","%");switch(f){case "d":case "%d":return g("dd");case "D":case "%a":return g("ddd");case "j":case "%e":return g("d");case "l":case "%A":return g("dddd");case "N":case "%u":return c.getDay()+1;case "S":return g("S");case "w":case "%w":return c.getDay();case "z":return c.getOrdinalNumber();case "%j":return i(c.getOrdinalNumber(),
58
+ 3);case "%U":f=c.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0);var h=c.clone().addDays(1).moveToDayOfWeek(0,-1);return h<f?"00":i((h.getOrdinalNumber()-f.getOrdinalNumber())/7+1);case "W":case "%V":return c.getISOWeek();case "%W":return i(c.getWeek());case "F":case "%B":return g("MMMM");case "m":case "%m":return g("MM");case "M":case "%b":case "%h":return g("MMM");case "n":return g("M");case "t":return b.getDaysInMonth(c.getFullYear(),c.getMonth());case "L":return b.isLeapYear(c.getFullYear())?
59
+ 1:0;case "o":case "%G":return c.setWeek(c.getISOWeek()).toString("yyyy");case "%g":return c.$format("%G").slice(-2);case "Y":case "%Y":return g("yyyy");case "y":case "%y":return g("yy");case "a":case "%p":return g("tt").toLowerCase();case "A":return g("tt").toUpperCase();case "g":case "%I":return g("h");case "G":return g("H");case "h":return g("hh");case "H":case "%H":return g("HH");case "i":case "%M":return g("mm");case "s":case "%S":return g("ss");case "u":return i(c.getMilliseconds(),3);case "I":return c.isDaylightSavingTime()?
60
+ 1:0;case "O":return c.getUTCOffset();case "P":n=c.getUTCOffset();return n.substring(0,n.length-2)+":"+n.substring(n.length-2);case "e":case "T":case "%z":case "%Z":return c.getTimezone();case "Z":return c.getTimezoneOffset()*-60;case "B":f=new Date;return Math.floor((f.getHours()*3600+f.getMinutes()*60+f.getSeconds()+(f.getTimezoneOffset()+60)*60)/86.4);case "c":return c.toISOString().replace(/\"/g,"");case "U":return b.strtotime("now");case "%c":return g("d")+" "+g("t");case "%C":return Math.floor(c.getFullYear()/
61
+ 100+1);case "%D":return g("MM/dd/yy");case "%n":return"\\n";case "%t":return"\\t";case "%r":return g("hh:mm tt");case "%R":return g("H:mm");case "%T":return g("H:mm:ss");case "%x":return g("d");case "%X":return g("t");default:j.push(f);return f}}):this._toString()};if(!k.format)k.format=k.$format})();
lib/jquery.mousewheel.js ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
2
+ * Licensed under the MIT License (LICENSE.txt).
3
+ *
4
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
+ *
8
+ * Version: 3.0.6
9
+ *
10
+ * Requires: 1.2.2+
11
+ */
12
+
13
+ (function($) {
14
+
15
+ var types = ['DOMMouseScroll', 'mousewheel'];
16
+
17
+ if ($.event.fixHooks) {
18
+ for ( var i=types.length; i; ) {
19
+ $.event.fixHooks[ types[--i] ] = $.event.mouseHooks;
20
+ }
21
+ }
22
+
23
+ $.event.special.mousewheel = {
24
+ setup: function() {
25
+ if ( this.addEventListener ) {
26
+ for ( var i=types.length; i; ) {
27
+ this.addEventListener( types[--i], handler, false );
28
+ }
29
+ } else {
30
+ this.onmousewheel = handler;
31
+ }
32
+ },
33
+
34
+ teardown: function() {
35
+ if ( this.removeEventListener ) {
36
+ for ( var i=types.length; i; ) {
37
+ this.removeEventListener( types[--i], handler, false );
38
+ }
39
+ } else {
40
+ this.onmousewheel = null;
41
+ }
42
+ }
43
+ };
44
+
45
+ $.fn.extend({
46
+ mousewheel: function(fn) {
47
+ return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
48
+ },
49
+
50
+ unmousewheel: function(fn) {
51
+ return this.unbind("mousewheel", fn);
52
+ }
53
+ });
54
+
55
+
56
+ function handler(event) {
57
+ var orgEvent = event || window.event, args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true, deltaX = 0, deltaY = 0;
58
+ event = $.event.fix(orgEvent);
59
+ event.type = "mousewheel";
60
+
61
+ // Old school scrollwheel delta
62
+ if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
63
+ if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
64
+
65
+ // New school multidimensional scroll (touchpads) deltas
66
+ deltaY = delta;
67
+
68
+ // Gecko
69
+ if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
70
+ deltaY = 0;
71
+ deltaX = -1*delta;
72
+ }
73
+
74
+ // Webkit
75
+ if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY/120; }
76
+ if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = -1*orgEvent.wheelDeltaX/120; }
77
+
78
+ // Add event and delta to the front of the arguments
79
+ args.unshift(event, delta, deltaX, deltaY);
80
+
81
+ return ($.event.dispatch || $.event.handle).apply(this, args);
82
+ }
83
+
84
+ })(jQuery);
lib/languages/date-ja-JP.js ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Version: 1.0 Alpha-1
3
+ * Build Date: 13-Nov-2007
4
+ * Copyright (c) 2006-2007, Coolite Inc. (http://www.coolite.com/). All rights reserved.
5
+ * License: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
6
+ * Website: http://www.datejs.com/ or http://www.coolite.com/datejs/
7
+ */
8
+ Date.CultureInfo={name:"ja-JP",englishName:"Japanese (Japan)",nativeName:"日本語 (日本)",dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],abbreviatedDayNames:["日","月","火","水","木","金","土"],shortestDayNames:["日","月","火","水","木","金","土"],firstLetterDayNames:["日","月","火","水","木","金","土"],monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],abbreviatedMonthNames:["1","2","3","4","5","6","7","8","9","10","11","12"],amDesignator:"午前",pmDesignator:"午後",firstDayOfWeek:0,twoDigitYearMax:2029,dateElementOrder:"ymd",formatPatterns:{shortDate:"yyyy/MM/dd",longDate:"yyyy'年'M'月'd'日'",shortTime:"H:mm",longTime:"H:mm:ss",fullDateTime:"yyyy'年'M'月'd'日' H:mm:ss",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"M'月'd'日'",yearMonth:"yyyy'年'M'月'"},regexPatterns:{jan:/^1(月)?/i,feb:/^2(月)?/i,mar:/^3(月)?/i,apr:/^4(月)?/i,may:/^5(月)?/i,jun:/^6(月)?/i,jul:/^7(月)?/i,aug:/^8(月)?/i,sep:/^9(月)?/i,oct:/^10(月)?/i,nov:/^11(月)?/i,dec:/^12(月)?/i,sun:/^日曜日/i,mon:/^月曜日/i,tue:/^火曜日/i,wed:/^水曜日/i,thu:/^木曜日/i,fri:/^金曜日/i,sat:/^土曜日/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i,tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600",PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",MDT:"-0700",PDT:"-0800"}};
9
+ Date.getMonthNumberFromName=function(name){var n=Date.CultureInfo.monthNames,m=Date.CultureInfo.abbreviatedMonthNames,s=name.toLowerCase();for(var i=0;i<n.length;i++){if(n[i].toLowerCase()==s||m[i].toLowerCase()==s){return i;}}
10
+ return-1;};Date.getDayNumberFromName=function(name){var n=Date.CultureInfo.dayNames,m=Date.CultureInfo.abbreviatedDayNames,o=Date.CultureInfo.shortestDayNames,s=name.toLowerCase();for(var i=0;i<n.length;i++){if(n[i].toLowerCase()==s||m[i].toLowerCase()==s){return i;}}
11
+ return-1;};Date.isLeapYear=function(year){return(((year%4===0)&&(year%100!==0))||(year%400===0));};Date.getDaysInMonth=function(year,month){return[31,(Date.isLeapYear(year)?29:28),31,30,31,30,31,31,30,31,30,31][month];};Date.getTimezoneOffset=function(s,dst){return(dst||false)?Date.CultureInfo.abbreviatedTimeZoneDST[s.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[s.toUpperCase()];};Date.getTimezoneAbbreviation=function(offset,dst){var n=(dst||false)?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,p;for(p in n){if(n[p]===offset){return p;}}
12
+ return null;};Date.prototype.clone=function(){return new Date(this.getTime());};Date.prototype.compareTo=function(date){if(isNaN(this)){throw new Error(this);}
13
+ if(date instanceof Date&&!isNaN(date)){return(this>date)?1:(this<date)?-1:0;}else{throw new TypeError(date);}};Date.prototype.equals=function(date){return(this.compareTo(date)===0);};Date.prototype.between=function(start,end){var t=this.getTime();return t>=start.getTime()&&t<=end.getTime();};Date.prototype.addMilliseconds=function(value){this.setMilliseconds(this.getMilliseconds()+value);return this;};Date.prototype.addSeconds=function(value){return this.addMilliseconds(value*1000);};Date.prototype.addMinutes=function(value){return this.addMilliseconds(value*60000);};Date.prototype.addHours=function(value){return this.addMilliseconds(value*3600000);};Date.prototype.addDays=function(value){return this.addMilliseconds(value*86400000);};Date.prototype.addWeeks=function(value){return this.addMilliseconds(value*604800000);};Date.prototype.addMonths=function(value){var n=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+value);this.setDate(Math.min(n,this.getDaysInMonth()));return this;};Date.prototype.addYears=function(value){return this.addMonths(value*12);};Date.prototype.add=function(config){if(typeof config=="number"){this._orient=config;return this;}
14
+ var x=config;if(x.millisecond||x.milliseconds){this.addMilliseconds(x.millisecond||x.milliseconds);}
15
+ if(x.second||x.seconds){this.addSeconds(x.second||x.seconds);}
16
+ if(x.minute||x.minutes){this.addMinutes(x.minute||x.minutes);}
17
+ if(x.hour||x.hours){this.addHours(x.hour||x.hours);}
18
+ if(x.month||x.months){this.addMonths(x.month||x.months);}
19
+ if(x.year||x.years){this.addYears(x.year||x.years);}
20
+ if(x.day||x.days){this.addDays(x.day||x.days);}
21
+ return this;};Date._validate=function(value,min,max,name){if(typeof value!="number"){throw new TypeError(value+" is not a Number.");}else if(value<min||value>max){throw new RangeError(value+" is not a valid value for "+name+".");}
22
+ return true;};Date.validateMillisecond=function(n){return Date._validate(n,0,999,"milliseconds");};Date.validateSecond=function(n){return Date._validate(n,0,59,"seconds");};Date.validateMinute=function(n){return Date._validate(n,0,59,"minutes");};Date.validateHour=function(n){return Date._validate(n,0,23,"hours");};Date.validateDay=function(n,year,month){return Date._validate(n,1,Date.getDaysInMonth(year,month),"days");};Date.validateMonth=function(n){return Date._validate(n,0,11,"months");};Date.validateYear=function(n){return Date._validate(n,1,9999,"seconds");};Date.prototype.set=function(config){var x=config;if(!x.millisecond&&x.millisecond!==0){x.millisecond=-1;}
23
+ if(!x.second&&x.second!==0){x.second=-1;}
24
+ if(!x.minute&&x.minute!==0){x.minute=-1;}
25
+ if(!x.hour&&x.hour!==0){x.hour=-1;}
26
+ if(!x.day&&x.day!==0){x.day=-1;}
27
+ if(!x.month&&x.month!==0){x.month=-1;}
28
+ if(!x.year&&x.year!==0){x.year=-1;}
29
+ if(x.millisecond!=-1&&Date.validateMillisecond(x.millisecond)){this.addMilliseconds(x.millisecond-this.getMilliseconds());}
30
+ if(x.second!=-1&&Date.validateSecond(x.second)){this.addSeconds(x.second-this.getSeconds());}
31
+ if(x.minute!=-1&&Date.validateMinute(x.minute)){this.addMinutes(x.minute-this.getMinutes());}
32
+ if(x.hour!=-1&&Date.validateHour(x.hour)){this.addHours(x.hour-this.getHours());}
33
+ if(x.month!==-1&&Date.validateMonth(x.month)){this.addMonths(x.month-this.getMonth());}
34
+ if(x.year!=-1&&Date.validateYear(x.year)){this.addYears(x.year-this.getFullYear());}
35
+ if(x.day!=-1&&Date.validateDay(x.day,this.getFullYear(),this.getMonth())){this.addDays(x.day-this.getDate());}
36
+ if(x.timezone){this.setTimezone(x.timezone);}
37
+ if(x.timezoneOffset){this.setTimezoneOffset(x.timezoneOffset);}
38
+ return this;};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this;};Date.prototype.isLeapYear=function(){var y=this.getFullYear();return(((y%4===0)&&(y%100!==0))||(y%400===0));};Date.prototype.isWeekday=function(){return!(this.is().sat()||this.is().sun());};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth());};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1});};Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()});};Date.prototype.moveToDayOfWeek=function(day,orient){var diff=(day-this.getDay()+7*(orient||+1))%7;return this.addDays((diff===0)?diff+=7*(orient||+1):diff);};Date.prototype.moveToMonth=function(month,orient){var diff=(month-this.getMonth()+12*(orient||+1))%12;return this.addMonths((diff===0)?diff+=12*(orient||+1):diff);};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/86400000);};Date.prototype.getWeekOfYear=function(firstDayOfWeek){var y=this.getFullYear(),m=this.getMonth(),d=this.getDate();var dow=firstDayOfWeek||Date.CultureInfo.firstDayOfWeek;var offset=7+1-new Date(y,0,1).getDay();if(offset==8){offset=1;}
39
+ var daynum=((Date.UTC(y,m,d,0,0,0)-Date.UTC(y,0,1,0,0,0))/86400000)+1;var w=Math.floor((daynum-offset+7)/7);if(w===dow){y--;var prevOffset=7+1-new Date(y,0,1).getDay();if(prevOffset==2||prevOffset==8){w=53;}else{w=52;}}
40
+ return w;};Date.prototype.isDST=function(){console.log('isDST');return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D";};Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST());};Date.prototype.setTimezoneOffset=function(s){var here=this.getTimezoneOffset(),there=Number(s)*-6/10;this.addMinutes(there-here);return this;};Date.prototype.setTimezone=function(s){return this.setTimezoneOffset(Date.getTimezoneOffset(s));};Date.prototype.getUTCOffset=function(){var n=this.getTimezoneOffset()*-10/6,r;if(n<0){r=(n-10000).toString();return r[0]+r.substr(2);}else{r=(n+10000).toString();return"+"+r.substr(1);}};Date.prototype.getDayName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()];};Date.prototype.getMonthName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()];};Date.prototype._toString=Date.prototype.toString;Date.prototype.toString=function(format){var self=this;var p=function p(s){return(s.toString().length==1)?"0"+s:s;};return format?format.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(format){switch(format){case"hh":return p(self.getHours()<13?self.getHours():(self.getHours()-12));case"h":return self.getHours()<13?self.getHours():(self.getHours()-12);case"HH":return p(self.getHours());case"H":return self.getHours();case"mm":return p(self.getMinutes());case"m":return self.getMinutes();case"ss":return p(self.getSeconds());case"s":return self.getSeconds();case"yyyy":return self.getFullYear();case"yy":return self.getFullYear().toString().substring(2,4);case"dddd":return self.getDayName();case"ddd":return self.getDayName(true);case"dd":return p(self.getDate());case"d":return self.getDate().toString();case"MMMM":return self.getMonthName();case"MMM":return self.getMonthName(true);case"MM":return p((self.getMonth()+1));case"M":return self.getMonth()+1;case"t":return self.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return self.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"zzz":case"zz":case"z":return"";}}):this._toString();};
41
+ Date.now=function(){return new Date();};Date.today=function(){return Date.now().clearTime();};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this;};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this;};Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var c={};c[this._dateElement]=this;return Date.now().add(c);};Number.prototype.ago=function(){var c={};c[this._dateElement]=this*-1;return Date.now().add(c);};(function(){var $D=Date.prototype,$N=Number.prototype;var dx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),de;var df=function(n){return function(){if(this._is){this._is=false;return this.getDay()==n;}
42
+ return this.moveToDayOfWeek(n,this._orient);};};for(var i=0;i<dx.length;i++){$D[dx[i]]=$D[dx[i].substring(0,3)]=df(i);}
43
+ var mf=function(n){return function(){if(this._is){this._is=false;return this.getMonth()===n;}
44
+ return this.moveToMonth(n,this._orient);};};for(var j=0;j<mx.length;j++){$D[mx[j]]=$D[mx[j].substring(0,3)]=mf(j);}
45
+ var ef=function(j){return function(){if(j.substring(j.length-1)!="s"){j+="s";}
46
+ return this["add"+j](this._orient);};};var nf=function(n){return function(){this._dateElement=n;return this;};};for(var k=0;k<px.length;k++){de=px[k].toLowerCase();$D[de]=$D[de+"s"]=ef(px[k]);$N[de]=$N[de+"s"]=nf(de);}}());Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ");};Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern);};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern);};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern);};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern);};Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};
47
+ (function(){Date.Parsing={Exception:function(s){this.message="Parse error at '"+s.substring(0,10)+" ...'";}};var $P=Date.Parsing;var _=$P.Operators={rtoken:function(r){return function(s){var mx=s.match(r);if(mx){return([mx[0],s.substring(mx[0].length)]);}else{throw new $P.Exception(s);}};},token:function(s){return function(s){return _.rtoken(new RegExp("^\s*"+s+"\s*"))(s);};},stoken:function(s){return _.rtoken(new RegExp("^"+s));},until:function(p){return function(s){var qx=[],rx=null;while(s.length){try{rx=p.call(this,s);}catch(e){qx.push(rx[0]);s=rx[1];continue;}
48
+ break;}
49
+ return[qx,s];};},many:function(p){return function(s){var rx=[],r=null;while(s.length){try{r=p.call(this,s);}catch(e){return[rx,s];}
50
+ rx.push(r[0]);s=r[1];}
51
+ return[rx,s];};},optional:function(p){return function(s){var r=null;try{r=p.call(this,s);}catch(e){return[null,s];}
52
+ return[r[0],r[1]];};},not:function(p){return function(s){try{p.call(this,s);}catch(e){return[null,s];}
53
+ throw new $P.Exception(s);};},ignore:function(p){return p?function(s){var r=null;r=p.call(this,s);return[null,r[1]];}:null;},product:function(){var px=arguments[0],qx=Array.prototype.slice.call(arguments,1),rx=[];for(var i=0;i<px.length;i++){rx.push(_.each(px[i],qx));}
54
+ return rx;},cache:function(rule){var cache={},r=null;return function(s){try{r=cache[s]=(cache[s]||rule.call(this,s));}catch(e){r=cache[s]=e;}
55
+ if(r instanceof $P.Exception){throw r;}else{return r;}};},any:function(){var px=arguments;return function(s){var r=null;for(var i=0;i<px.length;i++){if(px[i]==null){continue;}
56
+ try{r=(px[i].call(this,s));}catch(e){r=null;}
57
+ if(r){return r;}}
58
+ throw new $P.Exception(s);};},each:function(){var px=arguments;return function(s){var rx=[],r=null;for(var i=0;i<px.length;i++){if(px[i]==null){continue;}
59
+ try{r=(px[i].call(this,s));}catch(e){throw new $P.Exception(s);}
60
+ rx.push(r[0]);s=r[1];}
61
+ return[rx,s];};},all:function(){var px=arguments,_=_;return _.each(_.optional(px));},sequence:function(px,d,c){d=d||_.rtoken(/^\s*/);c=c||null;if(px.length==1){return px[0];}
62
+ return function(s){var r=null,q=null;var rx=[];for(var i=0;i<px.length;i++){try{r=px[i].call(this,s);}catch(e){break;}
63
+ rx.push(r[0]);try{q=d.call(this,r[1]);}catch(ex){q=null;break;}
64
+ s=q[1];}
65
+ if(!r){throw new $P.Exception(s);}
66
+ if(q){throw new $P.Exception(q[1]);}
67
+ if(c){try{r=c.call(this,r[1]);}catch(ey){throw new $P.Exception(r[1]);}}
68
+ return[rx,(r?r[1]:s)];};},between:function(d1,p,d2){d2=d2||d1;var _fn=_.each(_.ignore(d1),p,_.ignore(d2));return function(s){var rx=_fn.call(this,s);return[[rx[0][0],r[0][2]],rx[1]];};},list:function(p,d,c){d=d||_.rtoken(/^\s*/);c=c||null;return(p instanceof Array?_.each(_.product(p.slice(0,-1),_.ignore(d)),p.slice(-1),_.ignore(c)):_.each(_.many(_.each(p,_.ignore(d))),px,_.ignore(c)));},set:function(px,d,c){d=d||_.rtoken(/^\s*/);c=c||null;return function(s){var r=null,p=null,q=null,rx=null,best=[[],s],last=false;for(var i=0;i<px.length;i++){q=null;p=null;r=null;last=(px.length==1);try{r=px[i].call(this,s);}catch(e){continue;}
69
+ rx=[[r[0]],r[1]];if(r[1].length>0&&!last){try{q=d.call(this,r[1]);}catch(ex){last=true;}}else{last=true;}
70
+ if(!last&&q[1].length===0){last=true;}
71
+ if(!last){var qx=[];for(var j=0;j<px.length;j++){if(i!=j){qx.push(px[j]);}}
72
+ p=_.set(qx,d).call(this,q[1]);if(p[0].length>0){rx[0]=rx[0].concat(p[0]);rx[1]=p[1];}}
73
+ if(rx[1].length<best[1].length){best=rx;}
74
+ if(best[1].length===0){break;}}
75
+ if(best[0].length===0){return best;}
76
+ if(c){try{q=c.call(this,best[1]);}catch(ey){throw new $P.Exception(best[1]);}
77
+ best[1]=q[1];}
78
+ return best;};},forward:function(gr,fname){return function(s){return gr[fname].call(this,s);};},replace:function(rule,repl){return function(s){var r=rule.call(this,s);return[repl,r[1]];};},process:function(rule,fn){return function(s){var r=rule.call(this,s);return[fn.call(this,r[0]),r[1]];};},min:function(min,rule){return function(s){var rx=rule.call(this,s);if(rx[0].length<min){throw new $P.Exception(s);}
79
+ return rx;};}};var _generator=function(op){return function(){var args=null,rx=[];if(arguments.length>1){args=Array.prototype.slice.call(arguments);}else if(arguments[0]instanceof Array){args=arguments[0];}
80
+ if(args){for(var i=0,px=args.shift();i<px.length;i++){args.unshift(px[i]);rx.push(op.apply(null,args));args.shift();return rx;}}else{return op.apply(null,arguments);}};};var gx="optional not ignore cache".split(/\s/);for(var i=0;i<gx.length;i++){_[gx[i]]=_generator(_[gx[i]]);}
81
+ var _vector=function(op){return function(){if(arguments[0]instanceof Array){return op.apply(null,arguments[0]);}else{return op.apply(null,arguments);}};};var vx="each any all".split(/\s/);for(var j=0;j<vx.length;j++){_[vx[j]]=_vector(_[vx[j]]);}}());(function(){var flattenAndCompact=function(ax){var rx=[];for(var i=0;i<ax.length;i++){if(ax[i]instanceof Array){rx=rx.concat(flattenAndCompact(ax[i]));}else{if(ax[i]){rx.push(ax[i]);}}}
82
+ return rx;};Date.Grammar={};Date.Translator={hour:function(s){return function(){this.hour=Number(s);};},minute:function(s){return function(){this.minute=Number(s);};},second:function(s){return function(){this.second=Number(s);};},meridian:function(s){return function(){this.meridian=s.slice(0,1).toLowerCase();};},timezone:function(s){return function(){var n=s.replace(/[^\d\+\-]/g,"");if(n.length){this.timezoneOffset=Number(n);}else{this.timezone=s.toLowerCase();}};},day:function(x){var s=x[0];return function(){this.day=Number(s.match(/\d+/)[0]);};},month:function(s){return function(){this.month=((s.length==3)?Date.getMonthNumberFromName(s):(Number(s)-1));};},year:function(s){return function(){var n=Number(s);this.year=((s.length>2)?n:(n+(((n+2000)<Date.CultureInfo.twoDigitYearMax)?2000:1900)));};},rday:function(s){return function(){switch(s){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0;this.now=true;break;}};},finishExact:function(x){x=(x instanceof Array)?x:[x];var now=new Date();this.year=now.getFullYear();this.month=now.getMonth();this.day=1;this.hour=0;this.minute=0;this.second=0;for(var i=0;i<x.length;i++){if(x[i]){x[i].call(this);}}
83
+ this.hour=(this.meridian=="p"&&this.hour<13)?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.");}
84
+ var r=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone){r.set({timezone:this.timezone});}else if(this.timezoneOffset){r.set({timezoneOffset:this.timezoneOffset});}
85
+ return r;},finish:function(x){x=(x instanceof Array)?flattenAndCompact(x):[x];if(x.length===0){return null;}
86
+ for(var i=0;i<x.length;i++){if(typeof x[i]=="function"){x[i].call(this);}}
87
+ if(this.now){return new Date();}
88
+ var today=Date.today();var method=null;var expression=!!(this.days!=null||this.orient||this.operator);if(expression){var gap,mod,orient;orient=((this.orient=="past"||this.operator=="subtract")?-1:1);if(this.weekday){this.unit="day";gap=(Date.getDayNumberFromName(this.weekday)-today.getDay());mod=7;this.days=gap?((gap+(orient*mod))%mod):(orient*mod);}
89
+ if(this.month){this.unit="month";gap=(this.month-today.getMonth());mod=12;this.months=gap?((gap+(orient*mod))%mod):(orient*mod);this.month=null;}
90
+ if(!this.unit){this.unit="day";}
91
+ if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value){this.value=1;}
92
+ if(this.unit=="week"){this.unit="day";this.value=this.value*7;}
93
+ this[this.unit+"s"]=this.value*orient;}
94
+ return today.add(this);}else{if(this.meridian&&this.hour){this.hour=(this.hour<13&&this.meridian=="p")?this.hour+12:this.hour;}
95
+ if(this.weekday&&!this.day){this.day=(today.addDays((Date.getDayNumberFromName(this.weekday)-today.getDay()))).getDate();}
96
+ if(this.month&&!this.day){this.day=1;}
97
+ return today.set(this);}}};var _=Date.Parsing.Operators,g=Date.Grammar,t=Date.Translator,_fn;g.datePartDelimiter=_.rtoken(/^([\s\-\.\,\/\x27]+)/);g.timePartDelimiter=_.stoken(":");g.whiteSpace=_.rtoken(/^\s*/);g.generalDelimiter=_.rtoken(/^(([\s\,]|at|on)+)/);var _C={};g.ctoken=function(keys){var fn=_C[keys];if(!fn){var c=Date.CultureInfo.regexPatterns;var kx=keys.split(/\s+/),px=[];for(var i=0;i<kx.length;i++){px.push(_.replace(_.rtoken(c[kx[i]]),kx[i]));}
98
+ fn=_C[keys]=_.any.apply(null,px);}
99
+ return fn;};g.ctoken2=function(key){return _.rtoken(Date.CultureInfo.regexPatterns[key]);};g.h=_.cache(_.process(_.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),t.hour));g.hh=_.cache(_.process(_.rtoken(/^(0[0-9]|1[0-2])/),t.hour));g.H=_.cache(_.process(_.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),t.hour));g.HH=_.cache(_.process(_.rtoken(/^([0-1][0-9]|2[0-3])/),t.hour));g.m=_.cache(_.process(_.rtoken(/^([0-5][0-9]|[0-9])/),t.minute));g.mm=_.cache(_.process(_.rtoken(/^[0-5][0-9]/),t.minute));g.s=_.cache(_.process(_.rtoken(/^([0-5][0-9]|[0-9])/),t.second));g.ss=_.cache(_.process(_.rtoken(/^[0-5][0-9]/),t.second));g.hms=_.cache(_.sequence([g.H,g.mm,g.ss],g.timePartDelimiter));g.t=_.cache(_.process(g.ctoken2("shortMeridian"),t.meridian));g.tt=_.cache(_.process(g.ctoken2("longMeridian"),t.meridian));g.z=_.cache(_.process(_.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),t.timezone));g.zz=_.cache(_.process(_.rtoken(/^(\+|\-)\s*\d\d\d\d/),t.timezone));g.zzz=_.cache(_.process(g.ctoken2("timezone"),t.timezone));g.timeSuffix=_.each(_.ignore(g.whiteSpace),_.set([g.tt,g.zzz]));g.time=_.each(_.optional(_.ignore(_.stoken("T"))),g.hms,g.timeSuffix);g.d=_.cache(_.process(_.each(_.rtoken(/^([0-2]\d|3[0-1]|\d)/),_.optional(g.ctoken2("ordinalSuffix"))),t.day));g.dd=_.cache(_.process(_.each(_.rtoken(/^([0-2]\d|3[0-1])/),_.optional(g.ctoken2("ordinalSuffix"))),t.day));g.ddd=g.dddd=_.cache(_.process(g.ctoken("sun mon tue wed thu fri sat"),function(s){return function(){this.weekday=s;};}));g.M=_.cache(_.process(_.rtoken(/^(1[0-2]|0\d|\d)/),t.month));g.MM=_.cache(_.process(_.rtoken(/^(1[0-2]|0\d)/),t.month));g.MMM=g.MMMM=_.cache(_.process(g.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),t.month));g.y=_.cache(_.process(_.rtoken(/^(\d\d?)/),t.year));g.yy=_.cache(_.process(_.rtoken(/^(\d\d)/),t.year));g.yyy=_.cache(_.process(_.rtoken(/^(\d\d?\d?\d?)/),t.year));g.yyyy=_.cache(_.process(_.rtoken(/^(\d\d\d\d)/),t.year));_fn=function(){return _.each(_.any.apply(null,arguments),_.not(g.ctoken2("timeContext")));};g.day=_fn(g.d,g.dd);g.month=_fn(g.M,g.MMM);g.year=_fn(g.yyyy,g.yy);g.orientation=_.process(g.ctoken("past future"),function(s){return function(){this.orient=s;};});g.operator=_.process(g.ctoken("add subtract"),function(s){return function(){this.operator=s;};});g.rday=_.process(g.ctoken("yesterday tomorrow today now"),t.rday);g.unit=_.process(g.ctoken("minute hour day week month year"),function(s){return function(){this.unit=s;};});g.value=_.process(_.rtoken(/^\d\d?(st|nd|rd|th)?/),function(s){return function(){this.value=s.replace(/\D/g,"");};});g.expression=_.set([g.rday,g.operator,g.value,g.unit,g.orientation,g.ddd,g.MMM]);_fn=function(){return _.set(arguments,g.datePartDelimiter);};g.mdy=_fn(g.ddd,g.month,g.day,g.year);g.ymd=_fn(g.ddd,g.year,g.month,g.day);g.dmy=_fn(g.ddd,g.day,g.month,g.year);g.date=function(s){return((g[Date.CultureInfo.dateElementOrder]||g.mdy).call(this,s));};g.format=_.process(_.many(_.any(_.process(_.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(fmt){if(g[fmt]){return g[fmt];}else{throw Date.Parsing.Exception(fmt);}}),_.process(_.rtoken(/^[^dMyhHmstz]+/),function(s){return _.ignore(_.stoken(s));}))),function(rules){return _.process(_.each.apply(null,rules),t.finishExact);});var _F={};var _get=function(f){return _F[f]=(_F[f]||g.format(f)[0]);};g.formats=function(fx){if(fx instanceof Array){var rx=[];for(var i=0;i<fx.length;i++){rx.push(_get(fx[i]));}
100
+ return _.any.apply(null,rx);}else{return _get(fx);}};g._formats=g.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","d"]);g._start=_.process(_.set([g.date,g.time,g.expression],g.generalDelimiter,g.whiteSpace),t.finish);g.start=function(s){try{var r=g._formats.call({},s);if(r[1].length===0){return r;}}catch(e){}
101
+ return g._start.call({},s);};}());Date._parse=Date.parse;Date.parse=function(s){var r=null;if(!s){return null;}
102
+ try{r=Date.Grammar.start.call({},s);}catch(e){return null;}
103
+ return((r[1].length===0)?r[0]:null);};Date.getParseFunction=function(fx){var fn=Date.Grammar.formats(fx);return function(s){var r=null;try{r=fn.call({},s);}catch(e){return null;}
104
+ return((r[1].length===0)?r[0]:null);};};Date.parseExact=function(s,fx){return Date.getParseFunction(fx)(s);};
lib/languages/date-nb-NO.js ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Version: 1.0 Alpha-1
3
+ * Build Date: 13-Nov-2007
4
+ * Copyright (c) 2006-2007, Coolite Inc. (http://www.coolite.com/). All rights reserved.
5
+ * License: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
6
+ * Website: http://www.datejs.com/ or http://www.coolite.com/datejs/
7
+ */
8
+ Date.CultureInfo={name:"nb-NO",englishName:"Norwegian, Bokmål (Norway)",nativeName:"norsk, bokmål (Norge)",dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],abbreviatedDayNames:["sø","ma","ti","on","to","fr","lø"],shortestDayNames:["sø","ma","ti","on","to","fr","lø"],firstLetterDayNames:["s","m","t","o","t","f","l"],monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],abbreviatedMonthNames:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],amDesignator:"",pmDesignator:"",firstDayOfWeek:1,twoDigitYearMax:2029,dateElementOrder:"dmy",formatPatterns:{shortDate:"dd.MM.yyyy",longDate:"d. MMMM yyyy",shortTime:"HH:mm",longTime:"HH:mm:ss",fullDateTime:"d. MMMM yyyy HH:mm:ss",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss GMT",monthDay:"d. MMMM",yearMonth:"MMMM yyyy"},regexPatterns:{jan:/^jan(uar)?/i,feb:/^feb(ruar)?/i,mar:/^mar(s)?/i,apr:/^apr(il)?/i,may:/^mai/i,jun:/^jun(i)?/i,jul:/^jul(i)?/i,aug:/^aug(ust)?/i,sep:/^sep(t(ember)?)?/i,oct:/^okt(ober)?/i,nov:/^nov(ember)?/i,dec:/^des(ember)?/i,sun:/^søndag/i,mon:/^mandag/i,tue:/^tirsdag/i,wed:/^onsdag/i,thu:/^torsdag/i,fri:/^fredag/i,sat:/^lørdag/i,future:/^next/i,past:/^last|past|prev(ious)?/i,add:/^(\+|after|from)/i,subtract:/^(\-|before|ago)/i,yesterday:/^yesterday/i,today:/^t(oday)?/i,tomorrow:/^tomorrow/i,now:/^n(ow)?/i,millisecond:/^ms|milli(second)?s?/i,second:/^sec(ond)?s?/i,minute:/^min(ute)?s?/i,hour:/^h(ou)?rs?/i,week:/^w(ee)?k/i,month:/^m(o(nth)?s?)?/i,day:/^d(ays?)?/i,year:/^y((ea)?rs?)?/i,shortMeridian:/^(a|p)/i,longMeridian:/^(a\.?m?\.?|p\.?m?\.?)/i,timezone:/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i,ordinalSuffix:/^\s*(st|nd|rd|th)/i,timeContext:/^\s*(\:|a|p)/i},abbreviatedTimeZoneStandard:{GMT:"-000",EST:"-0400",CST:"-0500",MST:"-0600",PST:"-0700"},abbreviatedTimeZoneDST:{GMT:"-000",EDT:"-0500",CDT:"-0600",MDT:"-0700",PDT:"-0800"}};
9
+ Date.getMonthNumberFromName=function(name){var n=Date.CultureInfo.monthNames,m=Date.CultureInfo.abbreviatedMonthNames,s=name.toLowerCase();for(var i=0;i<n.length;i++){if(n[i].toLowerCase()==s||m[i].toLowerCase()==s){return i;}}
10
+ return-1;};Date.getDayNumberFromName=function(name){var n=Date.CultureInfo.dayNames,m=Date.CultureInfo.abbreviatedDayNames,o=Date.CultureInfo.shortestDayNames,s=name.toLowerCase();for(var i=0;i<n.length;i++){if(n[i].toLowerCase()==s||m[i].toLowerCase()==s){return i;}}
11
+ return-1;};Date.isLeapYear=function(year){return(((year%4===0)&&(year%100!==0))||(year%400===0));};Date.getDaysInMonth=function(year,month){return[31,(Date.isLeapYear(year)?29:28),31,30,31,30,31,31,30,31,30,31][month];};Date.getTimezoneOffset=function(s,dst){return(dst||false)?Date.CultureInfo.abbreviatedTimeZoneDST[s.toUpperCase()]:Date.CultureInfo.abbreviatedTimeZoneStandard[s.toUpperCase()];};Date.getTimezoneAbbreviation=function(offset,dst){var n=(dst||false)?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard,p;for(p in n){if(n[p]===offset){return p;}}
12
+ return null;};Date.prototype.clone=function(){return new Date(this.getTime());};Date.prototype.compareTo=function(date){if(isNaN(this)){throw new Error(this);}
13
+ if(date instanceof Date&&!isNaN(date)){return(this>date)?1:(this<date)?-1:0;}else{throw new TypeError(date);}};Date.prototype.equals=function(date){return(this.compareTo(date)===0);};Date.prototype.between=function(start,end){var t=this.getTime();return t>=start.getTime()&&t<=end.getTime();};Date.prototype.addMilliseconds=function(value){this.setMilliseconds(this.getMilliseconds()+value);return this;};Date.prototype.addSeconds=function(value){return this.addMilliseconds(value*1000);};Date.prototype.addMinutes=function(value){return this.addMilliseconds(value*60000);};Date.prototype.addHours=function(value){return this.addMilliseconds(value*3600000);};Date.prototype.addDays=function(value){return this.addMilliseconds(value*86400000);};Date.prototype.addWeeks=function(value){return this.addMilliseconds(value*604800000);};Date.prototype.addMonths=function(value){var n=this.getDate();this.setDate(1);this.setMonth(this.getMonth()+value);this.setDate(Math.min(n,this.getDaysInMonth()));return this;};Date.prototype.addYears=function(value){return this.addMonths(value*12);};Date.prototype.add=function(config){if(typeof config=="number"){this._orient=config;return this;}
14
+ var x=config;if(x.millisecond||x.milliseconds){this.addMilliseconds(x.millisecond||x.milliseconds);}
15
+ if(x.second||x.seconds){this.addSeconds(x.second||x.seconds);}
16
+ if(x.minute||x.minutes){this.addMinutes(x.minute||x.minutes);}
17
+ if(x.hour||x.hours){this.addHours(x.hour||x.hours);}
18
+ if(x.month||x.months){this.addMonths(x.month||x.months);}
19
+ if(x.year||x.years){this.addYears(x.year||x.years);}
20
+ if(x.day||x.days){this.addDays(x.day||x.days);}
21
+ return this;};Date._validate=function(value,min,max,name){if(typeof value!="number"){throw new TypeError(value+" is not a Number.");}else if(value<min||value>max){throw new RangeError(value+" is not a valid value for "+name+".");}
22
+ return true;};Date.validateMillisecond=function(n){return Date._validate(n,0,999,"milliseconds");};Date.validateSecond=function(n){return Date._validate(n,0,59,"seconds");};Date.validateMinute=function(n){return Date._validate(n,0,59,"minutes");};Date.validateHour=function(n){return Date._validate(n,0,23,"hours");};Date.validateDay=function(n,year,month){return Date._validate(n,1,Date.getDaysInMonth(year,month),"days");};Date.validateMonth=function(n){return Date._validate(n,0,11,"months");};Date.validateYear=function(n){return Date._validate(n,1,9999,"seconds");};Date.prototype.set=function(config){var x=config;if(!x.millisecond&&x.millisecond!==0){x.millisecond=-1;}
23
+ if(!x.second&&x.second!==0){x.second=-1;}
24
+ if(!x.minute&&x.minute!==0){x.minute=-1;}
25
+ if(!x.hour&&x.hour!==0){x.hour=-1;}
26
+ if(!x.day&&x.day!==0){x.day=-1;}
27
+ if(!x.month&&x.month!==0){x.month=-1;}
28
+ if(!x.year&&x.year!==0){x.year=-1;}
29
+ if(x.millisecond!=-1&&Date.validateMillisecond(x.millisecond)){this.addMilliseconds(x.millisecond-this.getMilliseconds());}
30
+ if(x.second!=-1&&Date.validateSecond(x.second)){this.addSeconds(x.second-this.getSeconds());}
31
+ if(x.minute!=-1&&Date.validateMinute(x.minute)){this.addMinutes(x.minute-this.getMinutes());}
32
+ if(x.hour!=-1&&Date.validateHour(x.hour)){this.addHours(x.hour-this.getHours());}
33
+ if(x.month!==-1&&Date.validateMonth(x.month)){this.addMonths(x.month-this.getMonth());}
34
+ if(x.year!=-1&&Date.validateYear(x.year)){this.addYears(x.year-this.getFullYear());}
35
+ if(x.day!=-1&&Date.validateDay(x.day,this.getFullYear(),this.getMonth())){this.addDays(x.day-this.getDate());}
36
+ if(x.timezone){this.setTimezone(x.timezone);}
37
+ if(x.timezoneOffset){this.setTimezoneOffset(x.timezoneOffset);}
38
+ return this;};Date.prototype.clearTime=function(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this;};Date.prototype.isLeapYear=function(){var y=this.getFullYear();return(((y%4===0)&&(y%100!==0))||(y%400===0));};Date.prototype.isWeekday=function(){return!(this.is().sat()||this.is().sun());};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth());};Date.prototype.moveToFirstDayOfMonth=function(){return this.set({day:1});};Date.prototype.moveToLastDayOfMonth=function(){return this.set({day:this.getDaysInMonth()});};Date.prototype.moveToDayOfWeek=function(day,orient){var diff=(day-this.getDay()+7*(orient||+1))%7;return this.addDays((diff===0)?diff+=7*(orient||+1):diff);};Date.prototype.moveToMonth=function(month,orient){var diff=(month-this.getMonth()+12*(orient||+1))%12;return this.addMonths((diff===0)?diff+=12*(orient||+1):diff);};Date.prototype.getDayOfYear=function(){return Math.floor((this-new Date(this.getFullYear(),0,1))/86400000);};Date.prototype.getWeekOfYear=function(firstDayOfWeek){var y=this.getFullYear(),m=this.getMonth(),d=this.getDate();var dow=firstDayOfWeek||Date.CultureInfo.firstDayOfWeek;var offset=7+1-new Date(y,0,1).getDay();if(offset==8){offset=1;}
39
+ var daynum=((Date.UTC(y,m,d,0,0,0)-Date.UTC(y,0,1,0,0,0))/86400000)+1;var w=Math.floor((daynum-offset+7)/7);if(w===dow){y--;var prevOffset=7+1-new Date(y,0,1).getDay();if(prevOffset==2||prevOffset==8){w=53;}else{w=52;}}
40
+ return w;};Date.prototype.isDST=function(){console.log('isDST');return this.toString().match(/(E|C|M|P)(S|D)T/)[2]=="D";};Date.prototype.getTimezone=function(){return Date.getTimezoneAbbreviation(this.getUTCOffset,this.isDST());};Date.prototype.setTimezoneOffset=function(s){var here=this.getTimezoneOffset(),there=Number(s)*-6/10;this.addMinutes(there-here);return this;};Date.prototype.setTimezone=function(s){return this.setTimezoneOffset(Date.getTimezoneOffset(s));};Date.prototype.getUTCOffset=function(){var n=this.getTimezoneOffset()*-10/6,r;if(n<0){r=(n-10000).toString();return r[0]+r.substr(2);}else{r=(n+10000).toString();return"+"+r.substr(1);}};Date.prototype.getDayName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedDayNames[this.getDay()]:Date.CultureInfo.dayNames[this.getDay()];};Date.prototype.getMonthName=function(abbrev){return abbrev?Date.CultureInfo.abbreviatedMonthNames[this.getMonth()]:Date.CultureInfo.monthNames[this.getMonth()];};Date.prototype._toString=Date.prototype.toString;Date.prototype.toString=function(format){var self=this;var p=function p(s){return(s.toString().length==1)?"0"+s:s;};return format?format.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(format){switch(format){case"hh":return p(self.getHours()<13?self.getHours():(self.getHours()-12));case"h":return self.getHours()<13?self.getHours():(self.getHours()-12);case"HH":return p(self.getHours());case"H":return self.getHours();case"mm":return p(self.getMinutes());case"m":return self.getMinutes();case"ss":return p(self.getSeconds());case"s":return self.getSeconds();case"yyyy":return self.getFullYear();case"yy":return self.getFullYear().toString().substring(2,4);case"dddd":return self.getDayName();case"ddd":return self.getDayName(true);case"dd":return p(self.getDate());case"d":return self.getDate().toString();case"MMMM":return self.getMonthName();case"MMM":return self.getMonthName(true);case"MM":return p((self.getMonth()+1));case"M":return self.getMonth()+1;case"t":return self.getHours()<12?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return self.getHours()<12?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"zzz":case"zz":case"z":return"";}}):this._toString();};
41
+ Date.now=function(){return new Date();};Date.today=function(){return Date.now().clearTime();};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;return this;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;return this;};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;return this;};Number.prototype._dateElement="day";Number.prototype.fromNow=function(){var c={};c[this._dateElement]=this;return Date.now().add(c);};Number.prototype.ago=function(){var c={};c[this._dateElement]=this*-1;return Date.now().add(c);};(function(){var $D=Date.prototype,$N=Number.prototype;var dx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),de;var df=function(n){return function(){if(this._is){this._is=false;return this.getDay()==n;}
42
+ return this.moveToDayOfWeek(n,this._orient);};};for(var i=0;i<dx.length;i++){$D[dx[i]]=$D[dx[i].substring(0,3)]=df(i);}
43
+ var mf=function(n){return function(){if(this._is){this._is=false;return this.getMonth()===n;}
44
+ return this.moveToMonth(n,this._orient);};};for(var j=0;j<mx.length;j++){$D[mx[j]]=$D[mx[j].substring(0,3)]=mf(j);}
45
+ var ef=function(j){return function(){if(j.substring(j.length-1)!="s"){j+="s";}
46
+ return this["add"+j](this._orient);};};var nf=function(n){return function(){this._dateElement=n;return this;};};for(var k=0;k<px.length;k++){de=px[k].toLowerCase();$D[de]=$D[de+"s"]=ef(px[k]);$N[de]=$N[de+"s"]=nf(de);}}());Date.prototype.toJSONString=function(){return this.toString("yyyy-MM-ddThh:mm:ssZ");};Date.prototype.toShortDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortDatePattern);};Date.prototype.toLongDateString=function(){return this.toString(Date.CultureInfo.formatPatterns.longDatePattern);};Date.prototype.toShortTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.shortTimePattern);};Date.prototype.toLongTimeString=function(){return this.toString(Date.CultureInfo.formatPatterns.longTimePattern);};Date.prototype.getOrdinal=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};
47
+ (function(){Date.Parsing={Exception:function(s){this.message="Parse error at '"+s.substring(0,10)+" ...'";}};var $P=Date.Parsing;var _=$P.Operators={rtoken:function(r){return function(s){var mx=s.match(r);if(mx){return([mx[0],s.substring(mx[0].length)]);}else{throw new $P.Exception(s);}};},token:function(s){return function(s){return _.rtoken(new RegExp("^\s*"+s+"\s*"))(s);};},stoken:function(s){return _.rtoken(new RegExp("^"+s));},until:function(p){return function(s){var qx=[],rx=null;while(s.length){try{rx=p.call(this,s);}catch(e){qx.push(rx[0]);s=rx[1];continue;}
48
+ break;}
49
+ return[qx,s];};},many:function(p){return function(s){var rx=[],r=null;while(s.length){try{r=p.call(this,s);}catch(e){return[rx,s];}
50
+ rx.push(r[0]);s=r[1];}
51
+ return[rx,s];};},optional:function(p){return function(s){var r=null;try{r=p.call(this,s);}catch(e){return[null,s];}
52
+ return[r[0],r[1]];};},not:function(p){return function(s){try{p.call(this,s);}catch(e){return[null,s];}
53
+ throw new $P.Exception(s);};},ignore:function(p){return p?function(s){var r=null;r=p.call(this,s);return[null,r[1]];}:null;},product:function(){var px=arguments[0],qx=Array.prototype.slice.call(arguments,1),rx=[];for(var i=0;i<px.length;i++){rx.push(_.each(px[i],qx));}
54
+ return rx;},cache:function(rule){var cache={},r=null;return function(s){try{r=cache[s]=(cache[s]||rule.call(this,s));}catch(e){r=cache[s]=e;}
55
+ if(r instanceof $P.Exception){throw r;}else{return r;}};},any:function(){var px=arguments;return function(s){var r=null;for(var i=0;i<px.length;i++){if(px[i]==null){continue;}
56
+ try{r=(px[i].call(this,s));}catch(e){r=null;}
57
+ if(r){return r;}}
58
+ throw new $P.Exception(s);};},each:function(){var px=arguments;return function(s){var rx=[],r=null;for(var i=0;i<px.length;i++){if(px[i]==null){continue;}
59
+ try{r=(px[i].call(this,s));}catch(e){throw new $P.Exception(s);}
60
+ rx.push(r[0]);s=r[1];}
61
+ return[rx,s];};},all:function(){var px=arguments,_=_;return _.each(_.optional(px));},sequence:function(px,d,c){d=d||_.rtoken(/^\s*/);c=c||null;if(px.length==1){return px[0];}
62
+ return function(s){var r=null,q=null;var rx=[];for(var i=0;i<px.length;i++){try{r=px[i].call(this,s);}catch(e){break;}
63
+ rx.push(r[0]);try{q=d.call(this,r[1]);}catch(ex){q=null;break;}
64
+ s=q[1];}
65
+ if(!r){throw new $P.Exception(s);}
66
+ if(q){throw new $P.Exception(q[1]);}
67
+ if(c){try{r=c.call(this,r[1]);}catch(ey){throw new $P.Exception(r[1]);}}
68
+ return[rx,(r?r[1]:s)];};},between:function(d1,p,d2){d2=d2||d1;var _fn=_.each(_.ignore(d1),p,_.ignore(d2));return function(s){var rx=_fn.call(this,s);return[[rx[0][0],r[0][2]],rx[1]];};},list:function(p,d,c){d=d||_.rtoken(/^\s*/);c=c||null;return(p instanceof Array?_.each(_.product(p.slice(0,-1),_.ignore(d)),p.slice(-1),_.ignore(c)):_.each(_.many(_.each(p,_.ignore(d))),px,_.ignore(c)));},set:function(px,d,c){d=d||_.rtoken(/^\s*/);c=c||null;return function(s){var r=null,p=null,q=null,rx=null,best=[[],s],last=false;for(var i=0;i<px.length;i++){q=null;p=null;r=null;last=(px.length==1);try{r=px[i].call(this,s);}catch(e){continue;}
69
+ rx=[[r[0]],r[1]];if(r[1].length>0&&!last){try{q=d.call(this,r[1]);}catch(ex){last=true;}}else{last=true;}
70
+ if(!last&&q[1].length===0){last=true;}
71
+ if(!last){var qx=[];for(var j=0;j<px.length;j++){if(i!=j){qx.push(px[j]);}}
72
+ p=_.set(qx,d).call(this,q[1]);if(p[0].length>0){rx[0]=rx[0].concat(p[0]);rx[1]=p[1];}}
73
+ if(rx[1].length<best[1].length){best=rx;}
74
+ if(best[1].length===0){break;}}
75
+ if(best[0].length===0){return best;}
76
+ if(c){try{q=c.call(this,best[1]);}catch(ey){throw new $P.Exception(best[1]);}
77
+ best[1]=q[1];}
78
+ return best;};},forward:function(gr,fname){return function(s){return gr[fname].call(this,s);};},replace:function(rule,repl){return function(s){var r=rule.call(this,s);return[repl,r[1]];};},process:function(rule,fn){return function(s){var r=rule.call(this,s);return[fn.call(this,r[0]),r[1]];};},min:function(min,rule){return function(s){var rx=rule.call(this,s);if(rx[0].length<min){throw new $P.Exception(s);}
79
+ return rx;};}};var _generator=function(op){return function(){var args=null,rx=[];if(arguments.length>1){args=Array.prototype.slice.call(arguments);}else if(arguments[0]instanceof Array){args=arguments[0];}
80
+ if(args){for(var i=0,px=args.shift();i<px.length;i++){args.unshift(px[i]);rx.push(op.apply(null,args));args.shift();return rx;}}else{return op.apply(null,arguments);}};};var gx="optional not ignore cache".split(/\s/);for(var i=0;i<gx.length;i++){_[gx[i]]=_generator(_[gx[i]]);}
81
+ var _vector=function(op){return function(){if(arguments[0]instanceof Array){return op.apply(null,arguments[0]);}else{return op.apply(null,arguments);}};};var vx="each any all".split(/\s/);for(var j=0;j<vx.length;j++){_[vx[j]]=_vector(_[vx[j]]);}}());(function(){var flattenAndCompact=function(ax){var rx=[];for(var i=0;i<ax.length;i++){if(ax[i]instanceof Array){rx=rx.concat(flattenAndCompact(ax[i]));}else{if(ax[i]){rx.push(ax[i]);}}}
82
+ return rx;};Date.Grammar={};Date.Translator={hour:function(s){return function(){this.hour=Number(s);};},minute:function(s){return function(){this.minute=Number(s);};},second:function(s){return function(){this.second=Number(s);};},meridian:function(s){return function(){this.meridian=s.slice(0,1).toLowerCase();};},timezone:function(s){return function(){var n=s.replace(/[^\d\+\-]/g,"");if(n.length){this.timezoneOffset=Number(n);}else{this.timezone=s.toLowerCase();}};},day:function(x){var s=x[0];return function(){this.day=Number(s.match(/\d+/)[0]);};},month:function(s){return function(){this.month=((s.length==3)?Date.getMonthNumberFromName(s):(Number(s)-1));};},year:function(s){return function(){var n=Number(s);this.year=((s.length>2)?n:(n+(((n+2000)<Date.CultureInfo.twoDigitYearMax)?2000:1900)));};},rday:function(s){return function(){switch(s){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0;this.now=true;break;}};},finishExact:function(x){x=(x instanceof Array)?x:[x];var now=new Date();this.year=now.getFullYear();this.month=now.getMonth();this.day=1;this.hour=0;this.minute=0;this.second=0;for(var i=0;i<x.length;i++){if(x[i]){x[i].call(this);}}
83
+ this.hour=(this.meridian=="p"&&this.hour<13)?this.hour+12:this.hour;if(this.day>Date.getDaysInMonth(this.year,this.month)){throw new RangeError(this.day+" is not a valid value for days.");}
84
+ var r=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second);if(this.timezone){r.set({timezone:this.timezone});}else if(this.timezoneOffset){r.set({timezoneOffset:this.timezoneOffset});}
85
+ return r;},finish:function(x){x=(x instanceof Array)?flattenAndCompact(x):[x];if(x.length===0){return null;}
86
+ for(var i=0;i<x.length;i++){if(typeof x[i]=="function"){x[i].call(this);}}
87
+ if(this.now){return new Date();}
88
+ var today=Date.today();var method=null;var expression=!!(this.days!=null||this.orient||this.operator);if(expression){var gap,mod,orient;orient=((this.orient=="past"||this.operator=="subtract")?-1:1);if(this.weekday){this.unit="day";gap=(Date.getDayNumberFromName(this.weekday)-today.getDay());mod=7;this.days=gap?((gap+(orient*mod))%mod):(orient*mod);}
89
+ if(this.month){this.unit="month";gap=(this.month-today.getMonth());mod=12;this.months=gap?((gap+(orient*mod))%mod):(orient*mod);this.month=null;}
90
+ if(!this.unit){this.unit="day";}
91
+ if(this[this.unit+"s"]==null||this.operator!=null){if(!this.value){this.value=1;}
92
+ if(this.unit=="week"){this.unit="day";this.value=this.value*7;}
93
+ this[this.unit+"s"]=this.value*orient;}
94
+ return today.add(this);}else{if(this.meridian&&this.hour){this.hour=(this.hour<13&&this.meridian=="p")?this.hour+12:this.hour;}
95
+ if(this.weekday&&!this.day){this.day=(today.addDays((Date.getDayNumberFromName(this.weekday)-today.getDay()))).getDate();}
96
+ if(this.month&&!this.day){this.day=1;}
97
+ return today.set(this);}}};var _=Date.Parsing.Operators,g=Date.Grammar,t=Date.Translator,_fn;g.datePartDelimiter=_.rtoken(/^([\s\-\.\,\/\x27]+)/);g.timePartDelimiter=_.stoken(":");g.whiteSpace=_.rtoken(/^\s*/);g.generalDelimiter=_.rtoken(/^(([\s\,]|at|on)+)/);var _C={};g.ctoken=function(keys){var fn=_C[keys];if(!fn){var c=Date.CultureInfo.regexPatterns;var kx=keys.split(/\s+/),px=[];for(var i=0;i<kx.length;i++){px.push(_.replace(_.rtoken(c[kx[i]]),kx[i]));}
98
+ fn=_C[keys]=_.any.apply(null,px);}
99
+ return fn;};g.ctoken2=function(key){return _.rtoken(Date.CultureInfo.regexPatterns[key]);};g.h=_.cache(_.process(_.rtoken(/^(0[0-9]|1[0-2]|[1-9])/),t.hour));g.hh=_.cache(_.process(_.rtoken(/^(0[0-9]|1[0-2])/),t.hour));g.H=_.cache(_.process(_.rtoken(/^([0-1][0-9]|2[0-3]|[0-9])/),t.hour));g.HH=_.cache(_.process(_.rtoken(/^([0-1][0-9]|2[0-3])/),t.hour));g.m=_.cache(_.process(_.rtoken(/^([0-5][0-9]|[0-9])/),t.minute));g.mm=_.cache(_.process(_.rtoken(/^[0-5][0-9]/),t.minute));g.s=_.cache(_.process(_.rtoken(/^([0-5][0-9]|[0-9])/),t.second));g.ss=_.cache(_.process(_.rtoken(/^[0-5][0-9]/),t.second));g.hms=_.cache(_.sequence([g.H,g.mm,g.ss],g.timePartDelimiter));g.t=_.cache(_.process(g.ctoken2("shortMeridian"),t.meridian));g.tt=_.cache(_.process(g.ctoken2("longMeridian"),t.meridian));g.z=_.cache(_.process(_.rtoken(/^(\+|\-)?\s*\d\d\d\d?/),t.timezone));g.zz=_.cache(_.process(_.rtoken(/^(\+|\-)\s*\d\d\d\d/),t.timezone));g.zzz=_.cache(_.process(g.ctoken2("timezone"),t.timezone));g.timeSuffix=_.each(_.ignore(g.whiteSpace),_.set([g.tt,g.zzz]));g.time=_.each(_.optional(_.ignore(_.stoken("T"))),g.hms,g.timeSuffix);g.d=_.cache(_.process(_.each(_.rtoken(/^([0-2]\d|3[0-1]|\d)/),_.optional(g.ctoken2("ordinalSuffix"))),t.day));g.dd=_.cache(_.process(_.each(_.rtoken(/^([0-2]\d|3[0-1])/),_.optional(g.ctoken2("ordinalSuffix"))),t.day));g.ddd=g.dddd=_.cache(_.process(g.ctoken("sun mon tue wed thu fri sat"),function(s){return function(){this.weekday=s;};}));g.M=_.cache(_.process(_.rtoken(/^(1[0-2]|0\d|\d)/),t.month));g.MM=_.cache(_.process(_.rtoken(/^(1[0-2]|0\d)/),t.month));g.MMM=g.MMMM=_.cache(_.process(g.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),t.month));g.y=_.cache(_.process(_.rtoken(/^(\d\d?)/),t.year));g.yy=_.cache(_.process(_.rtoken(/^(\d\d)/),t.year));g.yyy=_.cache(_.process(_.rtoken(/^(\d\d?\d?\d?)/),t.year));g.yyyy=_.cache(_.process(_.rtoken(/^(\d\d\d\d)/),t.year));_fn=function(){return _.each(_.any.apply(null,arguments),_.not(g.ctoken2("timeContext")));};g.day=_fn(g.d,g.dd);g.month=_fn(g.M,g.MMM);g.year=_fn(g.yyyy,g.yy);g.orientation=_.process(g.ctoken("past future"),function(s){return function(){this.orient=s;};});g.operator=_.process(g.ctoken("add subtract"),function(s){return function(){this.operator=s;};});g.rday=_.process(g.ctoken("yesterday tomorrow today now"),t.rday);g.unit=_.process(g.ctoken("minute hour day week month year"),function(s){return function(){this.unit=s;};});g.value=_.process(_.rtoken(/^\d\d?(st|nd|rd|th)?/),function(s){return function(){this.value=s.replace(/\D/g,"");};});g.expression=_.set([g.rday,g.operator,g.value,g.unit,g.orientation,g.ddd,g.MMM]);_fn=function(){return _.set(arguments,g.datePartDelimiter);};g.mdy=_fn(g.ddd,g.month,g.day,g.year);g.ymd=_fn(g.ddd,g.year,g.month,g.day);g.dmy=_fn(g.ddd,g.day,g.month,g.year);g.date=function(s){return((g[Date.CultureInfo.dateElementOrder]||g.mdy).call(this,s));};g.format=_.process(_.many(_.any(_.process(_.rtoken(/^(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(fmt){if(g[fmt]){return g[fmt];}else{throw Date.Parsing.Exception(fmt);}}),_.process(_.rtoken(/^[^dMyhHmstz]+/),function(s){return _.ignore(_.stoken(s));}))),function(rules){return _.process(_.each.apply(null,rules),t.finishExact);});var _F={};var _get=function(f){return _F[f]=(_F[f]||g.format(f)[0]);};g.formats=function(fx){if(fx instanceof Array){var rx=[];for(var i=0;i<fx.length;i++){rx.push(_get(fx[i]));}
100
+ return _.any.apply(null,rx);}else{return _get(fx);}};g._formats=g.formats(["yyyy-MM-ddTHH:mm:ss","ddd, MMM dd, yyyy H:mm:ss tt","ddd MMM d yyyy HH:mm:ss zzz","d"]);g._start=_.process(_.set([g.date,g.time,g.expression],g.generalDelimiter,g.whiteSpace),t.finish);g.start=function(s){try{var r=g._formats.call({},s);if(r[1].length===0){return r;}}catch(e){}
101
+ return g._start.call({},s);};}());Date._parse=Date.parse;Date.parse=function(s){var r=null;if(!s){return null;}
102
+ try{r=Date.Grammar.start.call({},s);}catch(e){return null;}
103
+ return((r[1].length===0)?r[0]:null);};Date.getParseFunction=function(fx){var fn=Date.Grammar.formats(fx);return function(s){var r=null;try{r=fn.call({},s);}catch(e){return null;}
104
+ return((r[1].length===0)?r[0]:null);};};Date.parseExact=function(s,fx){return Date.getParseFunction(fx)(s);};
lib/lib.txt CHANGED
@@ -24,6 +24,11 @@ A nice utility for setting and reading cookies.
24
  http://plugins.jquery.com/project/Cookie
25
  MIT license
26
 
 
 
 
 
 
27
  timePicker.css
28
  jquery.timepicker.js
29
  The JQuery time picker shows a nice time picker when you edit the post time.
24
  http://plugins.jquery.com/project/Cookie
25
  MIT license
26
 
27
+ jquery.mousewheel.js
28
+ This library handles mousewhere integration for the calendar.
29
+ http://brandonaaron.net/code/mousewheel/demos
30
+ MIT License
31
+
32
  timePicker.css
33
  jquery.timepicker.js
34
  The JQuery time picker shows a nice time picker when you edit the post time.
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: cvernon, justinstresslimit, jkudish, MaryVogt, zgrossbart
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 2.8.5
5
- Tested up to: 3.3
6
- Stable tag: 1.7
7
 
8
  The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
@@ -104,7 +104,7 @@ The editorial calendar follows the Week Starts On preference on the WordPress Ge
104
 
105
  = What languages does the calendar support? =
106
 
107
- The calendar is available in Brazilian Portuguese, Croatian, Czech, Dutch, English, French, German, Greek, Polish, and Swedish.
108
 
109
  = Can I add new languages? =
110
 
@@ -136,7 +136,7 @@ You can see how it looks for different usres on our <a href="http://www.zackgros
136
  * conrad the Contributor
137
  * sam the Subscriber
138
 
139
- Each of theses users has the password test.
140
 
141
  = Can I use the editorial calendar with pages? =
142
 
@@ -167,6 +167,16 @@ Moving published posts can cause problems with some RSS feeds and is generally n
167
 
168
  == Changelog ==
169
 
 
 
 
 
 
 
 
 
 
 
170
  = 1.7 =
171
 
172
  Version 1.7 supports WordPress 3.3 with fixes to the date display of newly created posts and alignment and margins of each day in the calendar.
2
  Contributors: cvernon, justinstresslimit, jkudish, MaryVogt, zgrossbart
3
  Tags: posts, post, calendar, AJAX, admin, administration
4
  Requires at least: 2.8.5
5
+ Tested up to: 3.3.1
6
+ Stable tag: 1.8
7
 
8
  The Editorial Calendar makes it possible to see all your posts and drag and drop them to manage your blog.
9
 
104
 
105
  = What languages does the calendar support? =
106
 
107
+ The calendar is available in Brazilian Portuguese, Croatian, Czech, Dutch, English, French, German, Greek, Japanese, Norwegian, Polish, and Swedish.
108
 
109
  = Can I add new languages? =
110
 
136
  * conrad the Contributor
137
  * sam the Subscriber
138
 
139
+ Each of these users has the password test.
140
 
141
  = Can I use the editorial calendar with pages? =
142
 
167
 
168
  == Changelog ==
169
 
170
+ = 1.8 =
171
+
172
+ The calendar is now translated into Norwegian.
173
+
174
+ The mouse wheel scrolling with the calendar is now working properly on WordPress 3.3. Previously it would only scroll up (into the past) and not down (into the future).
175
+
176
+ The calendar is now translated into Japanese. Thanks to Masahiro who blogs at <a href="http://www.buslog.net/">http://www.buslog.net</a>.
177
+
178
+ Support for WordPress version 3.3.1.
179
+
180
  = 1.7 =
181
 
182
  Version 1.7 supports WordPress 3.3 with fixes to the date display of newly created posts and alignment and margins of each day in the calendar.
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png CHANGED
Binary file
screenshot-5.png CHANGED
Binary file
screenshot-6.png CHANGED
Binary file