diff --git a/resources/library/interactivities/Ass sons.wgt/config.xml b/resources/library/interactivities/Ass sons.wgt/config.xml
new file mode 100644
index 00000000..866ad672
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/config.xml
@@ -0,0 +1,16 @@
+
+
+
+ Notes
+ Mnemis SA
+ Associer images
+
+
+
diff --git a/resources/library/interactivities/Ass sons.wgt/css/basic.css b/resources/library/interactivities/Ass sons.wgt/css/basic.css
new file mode 100644
index 00000000..bfded305
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/basic.css
@@ -0,0 +1,427 @@
+html, body{
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border-radius: 50px;
+}
+
+body{
+ background-image: url(../img/bg.png);
+}
+
+.toggle_mode{
+ width: 100%;
+ height: 25px;
+ border-bottom: 1px solid black;
+ background-color: #ccc;
+ position: fixed;
+ top: 0;
+ left: 0;
+ z-index: 2;
+}
+
+#display_img, #edit_img{
+ width: 15px;
+ height: 15px;
+ margin: 5px 10px;
+}
+
+.green_point{
+ background-image: url(../img/green_point.png);
+}
+
+.red_point{
+ background-image: url(../img/red_point.png);
+}
+
+#display_text, #edit_text{
+ height: 19px;
+ padding: 3px 0 0 0;
+}
+
+.selected{
+
+}
+
+#display:hover, #edit:hover{
+ background-color: #999;
+}
+
+.cont{
+ width: 100%;
+ border-bottom: 1px solid black;
+ margin: 0;
+ padding: 0;
+ position: relative;
+}
+
+.sub_cont{
+ width: 100%;
+ padding: 0;
+ margin: 20px 0 0 0;
+ min-height: 60px;
+}
+
+.imgs_cont{
+ width: 100%;
+ min-height: 142px;
+ margin: 0;
+}
+
+.imgs_answers{
+ width: 162px;
+ margin: 0 auto;
+ margin-bottom: 10px;
+ min-height: 142px;
+ border: 2px dashed #ccc;
+ text-align: center;
+}
+
+.imgs_answers_gray{
+
+}
+
+.imgs_answers_green{
+ background-color: #9f9;
+}
+
+.imgs_answers_red{
+ background-color: #f99;
+}
+
+.number_cont{
+ width: 40px;
+ height: 33px;
+ margin-left: 40px;
+ margin-right: 10px;
+ background-image: url(../img/circle.png);
+ background-repeat: no-repeat;
+ text-align: center;
+ float: left;
+ font-size: 130%;
+ padding-top: 7px;
+ font-weight: bold;
+}
+
+.text_cont{
+ width: 80%;
+ min-height: 40px;
+ float: right;
+ background-color: #999;
+ border-top-left-radius: 20px;
+ border-bottom-left-radius: 20px;
+}
+
+.close_cont{
+ width: 20px;
+ height: 20px;
+ background-image: url(../img/close_cont.png);
+ cursor: pointer;
+ position: absolute;
+ top: -15px;
+ left: 5px;
+}
+
+.add_img{
+ width: 120px;
+ height: 120px;
+ margin: 10px 20px;
+ background-image: url(../img/add_img.png);
+ background-position: center;
+ background-repeat: no-repeat;
+ cursor: pointer;
+ display: inline-block;
+}
+
+.img_block{
+ width: 120px;
+ height: 120px;
+ margin: 10px 20px;
+ cursor: pointer;
+ display: inline-block;
+ position: relative;
+}
+
+.img_gray{
+ border: 1px solid #ccc;
+ -moz-box-shadow: #ccc -1px 0 4px;
+ -webkit-box-shadow: #ccc -1px 0 4px;
+ box-shadow: #ccc -1px 0 4px;
+}
+
+.close_img, .true_img, .false_img{
+ width: 30px;
+ height: 30px;
+ background-repeat: no-repeat;
+ position: absolute;
+ right: -15px;
+ cursor: pointer;
+}
+
+.close_img{
+ background-image: url(../img/close_img.png);
+ top: -15px;
+}
+
+.true_img{
+ background-image: url(../img/false.png);
+ top: 15px;
+}
+
+.false_img{
+ background-image: url(../img/true.png);
+ top: 15px;
+}
+
+.add_block{
+ margin: 20px 0 0 20px;
+ width: 110px;
+ height: 25px;
+ background-image: url(../img/add_block.png);
+ background-repeat: no-repeat;
+ padding-left: 40px;
+ padding-top: 5px;
+ cursor: pointer;
+ background-color: #ccc;
+ -webkit-border-radius: 15px;
+ border-radius: 15px;
+}
+
+.dropHere{
+ background-color: #ccc;
+}
+
+.dropBack{
+
+}
+
+.audio_block{
+ width: 120px;
+ height: 30px;
+ padding: 5px 0 5px 10px;
+ float: left;
+ border-right: 3px solid white;
+}
+
+.audio_gray{
+ border-top-left-radius: 15px;
+ border-bottom-left-radius: 15px;
+ background-color: white;
+}
+
+.audio_desc{
+ min-height: 30px;
+ margin: 5px 0;
+ float: left;
+ margin-left: 20px;
+}
+
+.play, .stop{
+ height: 30px;
+ width: 70px;
+ float: left;
+ cursor: pointer;
+}
+
+.play{
+ background-image: url(../img/play.png);
+}
+
+.stop{
+ background-image: url(../img/stop.png);
+}
+
+.replay{
+ height: 30px;
+ width: 32px;
+ margin-left: 10px;
+ float: left;
+ background-image: url(../img/replay.png);
+ background-repeat: no-repeat;
+ cursor: pointer;
+}
+
+.gray{
+ background-color: #ccc;
+}
+
+/*new design*/
+
+.body_table{
+ width: 100%;
+ height: 100%;
+ border-spacing: 0;
+}
+
+/*top*/
+
+.b_top_left{
+ width: 54px;
+ background-image: url(../img/top_left.png);
+ background-repeat: no-repeat;
+}
+
+.b_top_right{
+ width: 54px;
+ background-image: url(../img/top_right.png);
+ background-repeat: no-repeat;
+}
+
+.b_top_center{
+ height: 54px;
+ background-image: url(../img/top.png);
+ background-repeat: repeat-x;
+}
+
+/*bottom*/
+
+.b_bottom_left{
+ width: 54px;
+ background-image: url(../img/bottom_left.png);
+ background-repeat: no-repeat;
+}
+
+.b_bottom_right{
+ width: 54px;
+ background-image: url(../img/bottom_right.png);
+ background-repeat: no-repeat;
+}
+
+.b_bottom_center{
+ background-image: url(../img/bottom.png);
+ background-repeat: repeat-x;
+}
+
+/*center*/
+
+.b_center_left{
+ width: 54px;
+ background-image: url(../img/left.png);
+ background-repeat: repeat-y;
+}
+
+.b_center_right{
+ width: 54px;
+ background-image: url(../img/right.png);
+ background-repeat: repeat-y;
+}
+
+#data{
+ width: 100%;
+ height: 100%;
+ min-height: 250px;
+ overflow: auto;
+}
+
+#wgt_name{
+ height: 44px;
+ width: 300px;
+ margin: 10px 10px 0 10px;
+ padding: 0;
+ float: left;
+ /*font-family: "Lobster13Regular";*/
+ font-size: 24px;
+ color: #8c5730;
+}
+
+#wgt_reload, #wgt_edit, #wgt_display{
+ cursor: pointer;
+ width: 80px;
+ height: 44px;
+ margin: 10px 10px 0 0;
+ float: right;
+ /*font-family: "Lobster13Regular";*/
+ font-size: 24px;
+ color: #8c5730;
+}
+
+#wgt_display{
+ width: 100px;
+ padding-left: 40px;
+ background-image: url(../img/slate-edit.png);
+ background-repeat: no-repeat;
+ background-position: top 0;
+ display: none;
+}
+
+#wgt_edit{
+ width: 100px;
+ padding-left: 40px;
+ background-image: url(../img/slate-edit.png);
+ background-repeat: no-repeat;
+ background-position: top 0;
+}
+
+#wgt_reload{
+ padding-left: 40px;
+ background-image: url(../img/slate-toolbar-reload.png);
+ background-repeat: no-repeat;
+ background-position: top 0;
+}
+
+.style_select{
+ width: 120px;
+ /*font-family: "Lobster13Regular";*/
+ font-size: 24px;
+ float: right;
+ margin: 10px 20px 0 0;
+ border-radius: 10px;
+ background-image: url(../img/ar_down.png);
+ background-color: #d4aa79;
+ color: #8c5730;
+ background-position: 105px 11px;
+ background-repeat: no-repeat;
+ -webkit-appearance: menulist-text;
+ display: none;
+}
+
+.btl_pad{
+ background-image: url(../img/pad-top-left.png) !important;
+}
+
+.btc_pad{
+ background-image: url(../img/pad-top.png) !important;
+}
+
+.btr_pad{
+ background-image: url(../img/pad-top-right.png) !important;
+}
+
+.bcl_pad{
+ background-image: url(../img/pad-left.png) !important;
+}
+
+.bcr_pad{
+ background-image: url(../img/pad-right.png) !important;
+}
+
+.bbl_pad{
+ background-image: url(../img/pad-bottom-left.png) !important;
+}
+
+.bbc_pad{
+ background-image: url(../img/pad-bottom.png) !important;
+}
+
+.bbr_pad{
+ background-image: url(../img/pad-bottom-right.png) !important;
+}
+
+.pad_color{
+ color: white !important;
+}
+
+.pad_reload{
+ background-image: url(../img/slate-toolbar-reload-white.png) !important;
+}
+
+.pad_edit{
+ background-image: url(../img/slate-display.png) !important;
+}
+
+.pad_select{
+ background-color: black !important;
+ color: white !important;
+ background-image: url(../img/ar_down_white.png) !important;
+}
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot
new file mode 100644
index 00000000..b96b90c7
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg
new file mode 100644
index 00000000..93074c91
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg
@@ -0,0 +1,379 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c 2010 by Pablo Impallari wwwimpallaricom All rights reserved
+Designer : Pablo Impallari
+Foundry : Pablo Impallari wwwimpallaricom
+Foundry URL : wwwimpallaricom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf
new file mode 100644
index 00000000..47b34293
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff
new file mode 100644
index 00000000..0bd0b4dc
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt
new file mode 100644
index 00000000..e4b0c4ff
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt
@@ -0,0 +1,91 @@
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/demo.html b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/demo.html
new file mode 100644
index 00000000..1bc61965
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/demo.html
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+ Font Face Demo
+
+
+
+
+
+
+
Font-face Demo for the Lobster Font
+
+
+
+
Lobster Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/stylesheet.css b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/stylesheet.css
new file mode 100644
index 00000000..d19342e7
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/Lobster/stylesheet.css
@@ -0,0 +1,16 @@
+/* Generated by Font Squirrel (http://www.fontsquirrel.com) on March 26, 2012 06:03:05 AM America/New_York */
+
+
+
+@font-face {
+ font-family: 'Lobster13Regular';
+ src: url('Lobster_1.3-webfont.eot');
+ src: url('Lobster_1.3-webfont.eot?#iefix') format('embedded-opentype'),
+ url('Lobster_1.3-webfont.woff') format('woff'),
+ url('Lobster_1.3-webfont.ttf') format('truetype'),
+ url('Lobster_1.3-webfont.svg#Lobster13Regular') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot
new file mode 100644
index 00000000..3bff5391
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg
new file mode 100644
index 00000000..81933f60
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf
new file mode 100644
index 00000000..13307470
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff
new file mode 100644
index 00000000..aaab7cec
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot
new file mode 100644
index 00000000..ac1fd0d0
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg
new file mode 100644
index 00000000..ff631987
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf
new file mode 100644
index 00000000..47a8088a
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff
new file mode 100644
index 00000000..ddf074eb
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot
new file mode 100644
index 00000000..94d51427
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg
new file mode 100644
index 00000000..2ab9b626
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf
new file mode 100644
index 00000000..e1f76ba5
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff
new file mode 100644
index 00000000..07d9c7a5
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot
new file mode 100644
index 00000000..bfb2f7db
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg
new file mode 100644
index 00000000..c543b941
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf
new file mode 100644
index 00000000..21c24cfa
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff
new file mode 100644
index 00000000..f6ae9285
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot
new file mode 100644
index 00000000..1ca8442e
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg
new file mode 100644
index 00000000..666bcb77
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf
new file mode 100644
index 00000000..cc4da56c
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff
new file mode 100644
index 00000000..3c6df8de
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot
new file mode 100644
index 00000000..72f7912c
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg
new file mode 100644
index 00000000..45af0b93
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf
new file mode 100644
index 00000000..2edf7ae2
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff
new file mode 100644
index 00000000..d88bb523
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff differ
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt
new file mode 100644
index 00000000..2da263c4
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt
@@ -0,0 +1,32 @@
+By downloading this font package you agree to the following terms
+of use:
+
+ - This FONT PACKAGE is freeware.
+
+ - This FONT PACKAGE may be distributed ONLY via the Internet for
+ FREE. Under NO circumstances may this FONT PACKAGE be sold for
+ a profit nor be included as part of another product or CD-ROM
+ compilation. If you wish to include this FONT PACKAGE for FREE
+ distribution on your Web Site, please include all of the fonts
+ and original documentation supplied with this FONT PACKAGE.
+
+ - You may install and use this FONT PACKAGE on an unlimited
+ amount of machines.
+
+ - You may NOT rename, edit, or create any alternate variations of
+ the fonts included in this FONT PACKAGE.
+
+ - This FONT PACKAGE comes "as is" with NO warranty whatsoever.
+ SHYFONTS accepts NO responsibility for any damages or loss of
+ any kind due to the use of this FONT PACKAGE. The use of this
+ FONT PACKAGE is solely your responsibility -- you use this FONT
+ PACKAGE at your own risk.
+
+ - Enjoy the fonts!
+
+If you have any question regarding this document or the usage of
+this font package, feel free to contact us at info@shyfonts.com.
+Thank you for downloading this font package and enjoy!
+
+------------------------------------------------------------------------
+©2001 ShyFonts Type Foundry -- http://www.shyfonts.com
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/demo.html b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/demo.html
new file mode 100644
index 00000000..088d0105
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/demo.html
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+ Font Face Demo
+
+
+
+
+
+
+
FONT-FACE DEMO FOR THE TOONTIME FONT
+
+
+
+
SF Toontime Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Bold - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Bold Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Blotch Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Blotch Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
diff --git a/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/stylesheet.css b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/stylesheet.css
new file mode 100644
index 00000000..cf4371ae
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/css/fonts/SF-Toontime/stylesheet.css
@@ -0,0 +1,76 @@
+/* Generated by Font Squirrel (http://www.fontsquirrel.com) on March 26, 2012 04:36:35 PM America/New_York */
+
+
+
+@font-face {
+ font-family: 'SFToontimeRegular';
+ src: url('SF_Toontime-webfont.eot');
+ src: url('SF_Toontime-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime-webfont.woff') format('woff'),
+ url('SF_Toontime-webfont.ttf') format('truetype'),
+ url('SF_Toontime-webfont.svg#SFToontimeRegular') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeItalic';
+ src: url('SF_Toontime_Italic-webfont.eot');
+ src: url('SF_Toontime_Italic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Italic-webfont.woff') format('woff'),
+ url('SF_Toontime_Italic-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Italic-webfont.svg#SFToontimeItalic') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeBold';
+ src: url('SF_Toontime_Bold-webfont.eot');
+ src: url('SF_Toontime_Bold-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Bold-webfont.woff') format('woff'),
+ url('SF_Toontime_Bold-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Bold-webfont.svg#SFToontimeBold') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeBoldItalic';
+ src: url('SF_Toontime_Bold_Italic-webfont.eot');
+ src: url('SF_Toontime_Bold_Italic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Bold_Italic-webfont.woff') format('woff'),
+ url('SF_Toontime_Bold_Italic-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Bold_Italic-webfont.svg#SFToontimeBoldItalic') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeBlotchRegular';
+ src: url('SF_Toontime_Blotch-webfont.eot');
+ src: url('SF_Toontime_Blotch-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Blotch-webfont.woff') format('woff'),
+ url('SF_Toontime_Blotch-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Blotch-webfont.svg#SFToontimeBlotchRegular') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeBlotchItalic';
+ src: url('SF_Toontime_Blotch_Italic-webfont.eot');
+ src: url('SF_Toontime_Blotch_Italic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Blotch_Italic-webfont.woff') format('woff'),
+ url('SF_Toontime_Blotch_Italic-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Blotch_Italic-webfont.svg#SFToontimeBlotchItalic') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
diff --git a/resources/library/interactivities/Ass sons.wgt/icon.svg b/resources/library/interactivities/Ass sons.wgt/icon.svg
new file mode 100644
index 00000000..9c2fda1d
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/icon.svg
@@ -0,0 +1,226 @@
+
+
+
+]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/library/interactivities/Ass sons.wgt/img/add_block.png b/resources/library/interactivities/Ass sons.wgt/img/add_block.png
new file mode 100644
index 00000000..50f95408
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/add_block.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/add_img.png b/resources/library/interactivities/Ass sons.wgt/img/add_img.png
new file mode 100644
index 00000000..e678875d
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/add_img.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/ar_down.png b/resources/library/interactivities/Ass sons.wgt/img/ar_down.png
new file mode 100644
index 00000000..a20fab4f
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/ar_down.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/ar_down_white.png b/resources/library/interactivities/Ass sons.wgt/img/ar_down_white.png
new file mode 100644
index 00000000..4a1d133b
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/ar_down_white.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/bg.png b/resources/library/interactivities/Ass sons.wgt/img/bg.png
new file mode 100644
index 00000000..61c3c6f3
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/bg.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/bottom.png b/resources/library/interactivities/Ass sons.wgt/img/bottom.png
new file mode 100644
index 00000000..31e6afdd
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/bottom.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/bottom_left.png b/resources/library/interactivities/Ass sons.wgt/img/bottom_left.png
new file mode 100644
index 00000000..31d17418
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/bottom_left.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/bottom_right.png b/resources/library/interactivities/Ass sons.wgt/img/bottom_right.png
new file mode 100644
index 00000000..ec6e1866
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/bottom_right.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/circle.png b/resources/library/interactivities/Ass sons.wgt/img/circle.png
new file mode 100644
index 00000000..4de395a3
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/circle.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/close_cont.png b/resources/library/interactivities/Ass sons.wgt/img/close_cont.png
new file mode 100644
index 00000000..210b4d6d
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/close_cont.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/close_img.png b/resources/library/interactivities/Ass sons.wgt/img/close_img.png
new file mode 100644
index 00000000..3f22728a
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/close_img.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/drop_img.png b/resources/library/interactivities/Ass sons.wgt/img/drop_img.png
new file mode 100644
index 00000000..17024f03
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/drop_img.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/false.png b/resources/library/interactivities/Ass sons.wgt/img/false.png
new file mode 100644
index 00000000..60390390
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/false.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/green_point.png b/resources/library/interactivities/Ass sons.wgt/img/green_point.png
new file mode 100644
index 00000000..a2a44680
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/green_point.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/left.png b/resources/library/interactivities/Ass sons.wgt/img/left.png
new file mode 100644
index 00000000..270652a8
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/left.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/pad-bottom-left.png b/resources/library/interactivities/Ass sons.wgt/img/pad-bottom-left.png
new file mode 100644
index 00000000..9a2bb34d
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/pad-bottom-left.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/pad-bottom-right.png b/resources/library/interactivities/Ass sons.wgt/img/pad-bottom-right.png
new file mode 100644
index 00000000..82d24c3b
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/pad-bottom-right.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/pad-bottom.png b/resources/library/interactivities/Ass sons.wgt/img/pad-bottom.png
new file mode 100644
index 00000000..4560a69e
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/pad-bottom.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/pad-left.png b/resources/library/interactivities/Ass sons.wgt/img/pad-left.png
new file mode 100644
index 00000000..60c9fa4a
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/pad-left.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/pad-right.png b/resources/library/interactivities/Ass sons.wgt/img/pad-right.png
new file mode 100644
index 00000000..e31482c4
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/pad-right.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/pad-top-left.png b/resources/library/interactivities/Ass sons.wgt/img/pad-top-left.png
new file mode 100644
index 00000000..ea0d7568
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/pad-top-left.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/pad-top-right.png b/resources/library/interactivities/Ass sons.wgt/img/pad-top-right.png
new file mode 100644
index 00000000..5d22aa67
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/pad-top-right.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/pad-top.png b/resources/library/interactivities/Ass sons.wgt/img/pad-top.png
new file mode 100644
index 00000000..8dae00d0
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/pad-top.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/play.png b/resources/library/interactivities/Ass sons.wgt/img/play.png
new file mode 100644
index 00000000..cdd651ae
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/play.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/red_point.png b/resources/library/interactivities/Ass sons.wgt/img/red_point.png
new file mode 100644
index 00000000..f6daa19a
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/red_point.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/replay.png b/resources/library/interactivities/Ass sons.wgt/img/replay.png
new file mode 100644
index 00000000..8d6c192b
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/replay.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/right.png b/resources/library/interactivities/Ass sons.wgt/img/right.png
new file mode 100644
index 00000000..0dec63b7
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/right.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/slate-display.png b/resources/library/interactivities/Ass sons.wgt/img/slate-display.png
new file mode 100644
index 00000000..96166143
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/slate-display.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/slate-edit.png b/resources/library/interactivities/Ass sons.wgt/img/slate-edit.png
new file mode 100644
index 00000000..17f5fc5c
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/slate-edit.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-edit.png b/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-edit.png
new file mode 100644
index 00000000..f3896d0c
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-edit.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-reload-white.png b/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-reload-white.png
new file mode 100644
index 00000000..78d146ec
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-reload-white.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-reload.png b/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-reload.png
new file mode 100644
index 00000000..685a5cb2
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/slate-toolbar-reload.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/stop.png b/resources/library/interactivities/Ass sons.wgt/img/stop.png
new file mode 100644
index 00000000..782c41cf
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/stop.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/top.png b/resources/library/interactivities/Ass sons.wgt/img/top.png
new file mode 100644
index 00000000..78d6ac4f
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/top.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/top_left.png b/resources/library/interactivities/Ass sons.wgt/img/top_left.png
new file mode 100644
index 00000000..8280ab4b
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/top_left.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/top_right.png b/resources/library/interactivities/Ass sons.wgt/img/top_right.png
new file mode 100644
index 00000000..fe0286d0
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/top_right.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/img/true.png b/resources/library/interactivities/Ass sons.wgt/img/true.png
new file mode 100644
index 00000000..da01631a
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/img/true.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/index.html b/resources/library/interactivities/Ass sons.wgt/index.html
new file mode 100644
index 00000000..aaf069d9
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/index.html
@@ -0,0 +1,79 @@
+
+
+
+ D'n'd
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/library/interactivities/Ass sons.wgt/js/jquery-1.6.2.min.js b/resources/library/interactivities/Ass sons.wgt/js/jquery-1.6.2.min.js
new file mode 100644
index 00000000..48590ecb
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/js/jquery-1.6.2.min.js
@@ -0,0 +1,18 @@
+/*!
+ * jQuery JavaScript Library v1.6.2
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Thu Jun 30 14:16:56 2011 -0400
+ */
+(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;ca ",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j =0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.
+shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c ",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML=" ",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="
";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/",""],legend:[1,""," "],thead:[1,""],tr:[2,""],td:[3,""],col:[2,""],area:[1,""," "],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1>$2>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j
+)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1>$2>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/library/interactivities/Ass sons.wgt/locales/fr/js/script.js b/resources/library/interactivities/Ass sons.wgt/locales/fr/js/script.js
new file mode 100644
index 00000000..a07767a6
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/locales/fr/js/script.js
@@ -0,0 +1,834 @@
+var sankoreLang = {
+ display: "Afficher",
+ edit: "Modifier",
+ short_desc: "Combien de signaux entendez-vous?",
+ add: "Nouveau bloc",
+ enter: "Saisir votre description ici ...",
+ wgt_name: "Associer aux sons",
+ reload: "Recharger",
+ slate: "Bois",
+ pad: "Pad"
+};
+//main function
+function start(){
+
+ $("#wgt_display").text(sankoreLang.display);
+ $("#wgt_edit").text(sankoreLang.edit);
+ $("#wgt_name").text(sankoreLang.wgt_name);
+ $("#wgt_reload").text(sankoreLang.reload);
+ $(".style_select option[value='1']").text(sankoreLang.slate);
+ $(".style_select option[value='2']").text(sankoreLang.pad);
+
+ if(window.sankore){
+ if(sankore.preference("associer_sound","")){
+ var data = jQuery.parseJSON(sankore.preference("associer_sound",""));
+ importData(data);
+ }
+ else
+ showExample();
+ if(sankore.preference("as_snd_style","")){
+ changeStyle(sankore.preference("as_snd_style",""));
+ $(".style_select").val(sankore.preference("as_snd_style",""));
+ } else
+ changeStyle(1)
+ }
+ else
+ showExample();
+
+ //events
+ if (window.widget) {
+ window.widget.onleave = function(){
+ exportData();
+ sankore.setPreference("as_snd_style", $(".style_select").find("option:selected").val());
+ }
+ }
+
+ $("#wgt_reload").click(function(){
+ if($("#wgt_display").hasClass("selected")){
+ $("#wgt_edit").trigger("click");
+ $("#wgt_display").trigger("click");
+ } else {
+ $("#wgt_display").trigger("click");
+ }
+ });
+
+ $("#wgt_reload, #wgt_display, #wgt_edit").mouseover(function(){
+ exportData();
+ });
+
+ $(".style_select").change(function (event){
+ changeStyle($(this).find("option:selected").val());
+ })
+
+ $("#wgt_display, #wgt_edit").click(function(event){
+ if(this.id == "wgt_display"){
+ if(!$(this).hasClass("selected")){
+ if(window.sankore)
+ sankore.enableDropOnWidget(false);
+ $(this).addClass("selected");
+ $("#wgt_edit").removeClass("selected");
+ $(".style_select").css("display","none");
+ $(".add_block").remove();
+ $(".cont").each(function(){
+ var container = $(this);
+ var tmp_i = 0;
+ var tmp_array = [];
+
+ container.find(".text_cont .audio_desc").removeAttr("contenteditable");
+ container.find(".audio_block").removeAttr("ondragenter")
+ .removeAttr("ondragleave")
+ .removeAttr("ondragover")
+ .removeAttr("ondrop")
+ container.find(".add_img").remove();
+ container.find(".close_cont").remove();
+ container.find(".img_block").each(function(){
+ if($(this).find("img").attr("src") != "img/drop_img.png"){
+ $(this).find(".close_img").remove();
+ $(this).find(".true_img").remove();
+ $(this).find(".false_img").remove();
+ $(this).removeAttr("ondragenter")
+ .removeAttr("ondragleave")
+ .removeAttr("ondragover")
+ .removeAttr("ondrop")
+ .addClass("img_gray");
+ } else
+ $(this).remove();
+ });
+ var img_answers = $(" ").insertAfter(container.find(".sub_cont"));
+ container.find(".img_block").each(function(){
+ $(this).css("float","");
+ tmp_array.push($(this));
+ });
+ tmp_array = shuffle(tmp_array);
+ for(var i = 0; i ");
+ var answers = "";
+ $(this).parent().find(".imgs_answers .img_block").each(function(){
+ answers += $(this).find("input").val();
+ });
+ if(tmp_cont.children()[0].tagName == "IMG")
+ tmp_cont.removeClass("imgs_answers_green")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_gray");
+ else
+ if(tmp_cont.children().length == 1){
+ if(tmp_cont.children().find("input").val() == "1")
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ }
+ });
+ });
+ $(this).css("display", "none");
+ $("#wgt_edit").css("display", "block");
+ }
+ } else {
+ if(!$(this).hasClass("selected")){
+ if(window.sankore)
+ sankore.enableDropOnWidget(true);
+ $(this).addClass("selected");
+ $("#wgt_display").removeClass("selected");
+ $(".style_select").css("display","block");
+
+ $(".cont").each(function(){
+ var container = $(this);
+ container.find(".imgs_answers").find(".img_block").each(function(){
+ $(this).appendTo(container.find(".imgs_cont"))
+ });
+ container.find(".imgs_answers").remove();
+ $("").appendTo(container);
+ container.find(".imgs_cont").css("background-color", "");
+ container.find(".text_cont .audio_desc").attr("contenteditable","true");
+ container.find(".audio_block").attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).removeClass('audio_gray'); return false;")
+ .attr("ondragover", "$(this).addClass('audio_gray'); return false;")
+ .attr("ondrop", "$(this).removeClass('audio_gray'); return onDropAudio(this,event);");
+ var add_img = $("
");
+ container.find(".img_block").each(function(){
+ $(this).draggable("destroy");
+ $(this).attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;")
+ .attr("ondragover", "$(this).css(\"background-color\",\"#ccc\"); return false;")
+ .attr("ondrop", "$(this).css(\"background-color\",\"\"); return onDropTarget(this,event);")
+ .css("float","left");
+ $("
").appendTo($(this));
+ if($(this).find("input").val() == "1"){
+ $("
").appendTo($(this));
+ }
+ else{
+ $("
").appendTo($(this));
+ }
+ });
+ container.find(".imgs_cont").append(add_img)
+ });
+
+ $("
" + sankoreLang.add + "
").appendTo("#data");
+ $(this).css("display", "none");
+ $("#wgt_display").css("display", "block");
+ }
+ }
+
+ $("audio").each(function(){
+ this.pause();
+ $(this).parent().find(":first-child").removeClass("stop").addClass("play");
+ });
+
+ });
+
+ //add new block
+ $(".add_block").live("click", function(){
+ addContainer();
+ });
+
+ //adding new img
+ $(".add_img").live("click", function(){
+ addImgBlock($(this));
+ });
+
+ //deleting a block
+ $(".close_cont").live("click",function(){
+ $(this).parent().remove();
+ refreshBlockNumbers();
+ });
+
+ //deleting the img block
+ $(".close_img").live("click", function(){
+ $(this).parent().remove();
+ });
+
+ //correct image
+ $(".true_img").live("click",function(){
+ $(this).parent().parent().find(".img_block").each(function(){
+ $(this).find("input").val(0);
+ var tmp_div = $(this).find(".false_img");
+ if(tmp_div)
+ tmp_div.removeClass("false_img").addClass("true_img");
+ })
+ $(this).parent().find("input").val(1);
+ $(this).removeClass("true_img").addClass("false_img");
+ });
+
+ //wrong image
+ $(".false_img").live("click",function(){
+ $(this).parent().find("input").val(0);
+ $(this).removeClass("false_img").addClass("true_img");
+ });
+
+ //play/pause event
+ $(".play, .stop").live("click", function(){
+ var tmp_audio = $(this);
+ var audio = tmp_audio.parent().find("audio").get(0);
+ if($(this).hasClass("play")){
+ if(tmp_audio.parent().find("source").attr("src")){
+ tmp_audio.removeClass("play").addClass("stop");
+ var id = setInterval(function(){
+ if(audio.currentTime == audio.duration){
+ clearInterval(id);
+ tmp_audio.removeClass("stop").addClass("play");
+ }
+ }, 10);
+ tmp_audio.parent().find("input").val(id);
+ audio.play();
+ }
+ } else {
+ $(this).removeClass("stop").addClass("play");
+ clearInterval( tmp_audio.parent().find("input").val())
+ audio.pause();
+ }
+ });
+
+ $(".replay").live("click", function(){
+ var tmp_audio = $(this).prev();
+ var audio = $(this).parent().find("audio").get(0);
+ if(tmp_audio.parent().find("source").attr("src")){
+ $(this).prev().removeClass("play").addClass("stop");
+ clearInterval($(this).parent().find("input").val());
+ var id = setInterval(function(){
+ if(audio.currentTime == audio.duration){
+ clearInterval(id);
+ tmp_audio.removeClass("stop").addClass("play");
+ }
+ }, 10);
+ tmp_audio.parent().find("input").val(id);
+ audio.currentTime = 0;
+ audio.play();
+ }
+ });
+}
+
+//export
+function exportData(){
+ var array_to_export = [];
+ if($("#wgt_edit").hasClass("selected")){
+ $(".cont").each(function(){
+ var cont_obj = new Object();
+ cont_obj.text = $(this).find(".audio_desc").text();
+ cont_obj.audio = $(this).find("source").attr("src").replace("../../","");
+ cont_obj.mode = "edit";
+ cont_obj.imgs = [];
+ $(this).find(".img_block").each(function(){
+ var img_obj = new Object();
+ img_obj.value = $(this).find("input").val();
+ img_obj.link = $(this).find("img").attr("src").replace("../../","");
+ img_obj.ht = $(this).find("img").height();
+ img_obj.wd = $(this).find("img").width();
+ cont_obj.imgs.push(img_obj);
+ });
+ array_to_export.push(cont_obj);
+ });
+ } else {
+ $(".cont").each(function(){
+ var cont_obj = new Object();
+ cont_obj.text = $(this).find(".audio_desc").text();
+ cont_obj.audio = $(this).find("source").attr("src").replace("../../","");
+ cont_obj.mode = "display";
+ cont_obj.imgs = [];
+ if($(this).find(".imgs_answers").children()[0].tagName == "DIV"){
+ var tmp_cont = $(this).find(".imgs_answers").find(".img_block");
+ var img_obj = new Object();
+ img_obj.value = tmp_cont.find("input").val();
+ img_obj.link = tmp_cont.find("img").attr("src").replace("../../","");
+ img_obj.ht = tmp_cont.find("img").height();
+ img_obj.wd = tmp_cont.find("img").width();
+ img_obj.cont = "answers";
+ cont_obj.imgs.push(img_obj);
+ }
+ $(this).find(".imgs_cont .img_block").each(function(){
+ var img_obj = new Object();
+ img_obj.value = $(this).find("input").val();
+ img_obj.link = $(this).find("img").attr("src").replace("../../","");
+ img_obj.ht = $(this).find("img").height();
+ img_obj.wd = $(this).find("img").width();
+ img_obj.cont = "cont";
+ cont_obj.imgs.push(img_obj);
+ });
+ array_to_export.push(cont_obj);
+ });
+ }
+ sankore.setPreference("associer_sound", JSON.stringify(array_to_export));
+}
+
+//import
+function importData(data){
+
+ var tmp = 0;
+ for(var i in data){
+ if(data[i].mode == "edit"){
+ var tmp_array = [];
+ var container = $("
");
+ var sub_container = $("
").appendTo(container);
+ var imgs_answers = $("
").appendTo(container);
+ var imgs_container = $("
").appendTo(container);
+
+ var number = $("
"+ (++tmp) +"
").appendTo(sub_container);
+ var text = $("
").appendTo(sub_container);
+ var audio_block = $("
").appendTo(text);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ var source = $("
").attr("src","../../" + data[i].audio);
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $(" ").appendTo(audio_block);
+ $("" + data[i].text + "
").appendTo(text);
+
+ for(var j in data[i].imgs){
+ var img_block = $("");
+ var img = $("
");
+ img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd);
+ if((120 - data[i].imgs[j].ht) > 0)
+ img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0");
+ var hidden_input = $("
").val(data[i].imgs[j].value);
+ img_block.append(hidden_input).append(img);
+ tmp_array.push(img_block);
+ }
+ tmp_array = shuffle(tmp_array);
+ for(j in tmp_array){
+ tmp_array[j].draggable({
+ helper:'clone',
+ zIndex:100,
+ appendTo: '#data'
+ });
+ tmp_array[j].appendTo(imgs_container);
+ }
+ imgs_answers.droppable({
+ hoverClass: 'dropHere',
+ drop: function(event, ui) {
+ if($(ui.draggable).parent().parent().html() == $(this).parent().html()){
+ if($(this).children()[0].tagName == "IMG")
+ $(this).children().remove();
+ else
+ $(ui.draggable).parent().append($(this).children());
+ $(this).append($(ui.draggable));
+ if($(this).children().length == 1){
+ if($(this).children().find("input").val() == "1")
+ $(this).removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ $(this).removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ });
+ imgs_container.droppable({
+ hoverClass: 'dropBack',
+ drop: function(event, ui) {
+ if($(ui.draggable).parent().parent().html() == $(this).parent().html()){
+ if(this != $(ui.draggable).parent()[0]){
+ var tmp_cont = $(ui.draggable).parent();
+ $(this).append($(ui.draggable));
+ tmp_cont.append("
");
+ var answers = "";
+ $(this).parent().find(".imgs_answers .img_block").each(function(){
+ answers += $(this).find("input").val();
+ });
+ if(tmp_cont.children()[0].tagName == "IMG")
+ tmp_cont.removeClass("imgs_answers_green")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_gray");
+ else
+ if(tmp_cont.children().length == 1){
+ if(tmp_cont.children().find("input").val() == "1")
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ }
+ });
+ container.appendTo("#data");
+ } else {
+ container = $("
");
+ sub_container = $("
").appendTo(container);
+ imgs_answers = $("
").appendTo(container);
+ $("
").appendTo(imgs_answers);
+ imgs_container = $("
").appendTo(container);
+
+ number = $("
"+ (++tmp) +"
").appendTo(sub_container);
+ text = $("
").appendTo(sub_container);
+ audio_block = $("
").appendTo(text);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ source = $("
").attr("src","../../" + data[i].audio);
+ audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $(" ").appendTo(audio_block);
+ $("" + data[i].text + "
").appendTo(text);
+
+ for(j in data[i].imgs){
+ img_block = $("");
+ img = $("
");
+ img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd);
+ if((120 - data[i].imgs[j].ht) > 0)
+ img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0");
+ hidden_input = $("
").val(data[i].imgs[j].value);
+ img_block.append(hidden_input).append(img);
+ img_block.draggable({
+ helper:'clone',
+ zIndex:100,
+ appendTo: '#data'
+ });
+ if(data[i].imgs[j].cont == "cont")
+ img_block.appendTo(imgs_container);
+ else{
+ imgs_answers.empty();
+ img_block.appendTo(imgs_answers);
+ if(data[i].imgs[j].value == "1")
+ imgs_answers.addClass("imgs_answers_green");
+ else
+ imgs_answers.addClass("imgs_answers_red");
+ }
+ }
+
+ imgs_answers.droppable({
+ hoverClass: 'dropHere',
+ drop: function(event, ui) {
+ if($(ui.draggable).parent().parent().html() == $(this).parent().html()){
+ if($(this).children()[0].tagName == "IMG")
+ $(this).children().remove();
+ else
+ $(ui.draggable).parent().append($(this).children());
+ $(this).append($(ui.draggable));
+ if($(this).children().length == 1){
+ if($(this).children().find("input").val() == "1")
+ $(this).removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ $(this).removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ });
+ imgs_container.droppable({
+ hoverClass: 'dropBack',
+ drop: function(event, ui) {
+ if($(ui.draggable).parent().parent().html() == $(this).parent().html()){
+ if(this != $(ui.draggable).parent()[0]){
+ var tmp_cont = $(ui.draggable).parent();
+ $(this).append($(ui.draggable));
+ tmp_cont.append("
");
+ var answers = "";
+ $(this).parent().find(".imgs_answers .img_block").each(function(){
+ answers += $(this).find("input").val();
+ });
+ if(tmp_cont.children()[0].tagName == "IMG")
+ tmp_cont.removeClass("imgs_answers_green")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_gray");
+ else
+ if(tmp_cont.children().length == 1){
+ if(tmp_cont.children().find("input").val() == "1")
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ }
+ });
+ container.appendTo("#data");
+ }
+ }
+}
+
+//example
+function showExample(){
+
+ var tmp_array = [];
+
+ var container = $("
").appendTo("#data");
+ var sub_container = $("
").appendTo(container);
+ var imgs_answers = $("
").appendTo(container);
+ var imgs_container = $("
").appendTo(container);
+
+ var number = $("
1
").appendTo(sub_container);
+ var text = $("
").appendTo(sub_container);
+ var audio_block = $("
").appendTo(text);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ var source = $("
").attr("src", "../../objects/beep.wav");
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $(" ").appendTo(audio_block);
+ var audio_desc = $("" + sankoreLang.short_desc + "
").appendTo(text);
+
+ $(" ").appendTo(imgs_container);
+
+ var img1 = $("
");
+ $(" ").appendTo(img1);
+ $(" ").appendTo(img1);
+ var img2 = $("
");
+ $(" ").appendTo(img2);
+ $(" ").appendTo(img2);
+ var img3 = $("
");
+ $(" ").appendTo(img3);
+ $(" ").appendTo(img3);
+ var img4 = $("
");
+ $(" ").appendTo(img4);
+ $(" ").appendTo(img4);
+ var img5 = $("
");
+ $(" ").appendTo(img5);
+ $(" ").appendTo(img5);
+
+ tmp_array.push(img1, img2, img3, img4, img5);
+ tmp_array = shuffle(tmp_array);
+ for(var i = 0; i ");
+ var answers = "";
+ $(this).parent().find(".imgs_answers .img_block").each(function(){
+ answers += $(this).find("input").val();
+ });
+ if(tmp_cont.children()[0].tagName == "IMG")
+ tmp_cont.removeClass("imgs_answers_green")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_gray");
+ else
+ if(tmp_cont.children().length == 1){
+ if(tmp_cont.children().find("input").val() == "1")
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ }
+ });
+}
+
+//add new container
+function addContainer(){
+ var container = $("");
+ var sub_container = $("
").appendTo(container);
+ var imgs_container = $("
").appendTo(container);
+
+ var close = $("
").appendTo(container);
+ var number = $("
"+ ($(".cont").size() + 1) +"
").appendTo(sub_container);
+ var text = $("
").appendTo(sub_container);
+ text.attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).removeClass('gray'); return false;")
+ .attr("ondragover", "$(this).addClass('gray'); return false;")
+ .attr("ondrop", "$(this).removeClass('gray'); return onDropAudio(this,event);");
+ var audio_block = $("
").appendTo(text);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ var source = $("
").attr("src", "");
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $(" ").appendTo(audio_block);
+ var audio_desc = $("" + sankoreLang.enter + "
").appendTo(text);
+
+ $(" ").appendTo(imgs_container);
+ var add_img = $("").appendTo(imgs_container);
+ container.insertBefore($(".add_block"));
+}
+
+//add new img block
+function addImgBlock(dest){
+ var img_block = $("
").insertBefore(dest);
+ $("
").appendTo(img_block);
+ $("
").appendTo(img_block);
+ $("
").appendTo(img_block);
+ $("
").appendTo(img_block);
+}
+
+function refreshBlockNumbers(){
+ var i = 0;
+ $(".cont").each(function(){
+ $(this).find(".number_cont").text(++i);
+ })
+}
+
+//shuffles an array
+function shuffle( arr )
+{
+ var pos, tmp;
+
+ for( var i = 0; i < arr.length; i++ )
+ {
+ pos = Math.round( Math.random() * ( arr.length - 1 ) );
+ tmp = arr[pos];
+ arr[pos] = arr[i];
+ arr[i] = tmp;
+ }
+ return arr;
+}
+
+
+function stringToXML(text){
+ if (window.ActiveXObject){
+ var doc=new ActiveXObject('Microsoft.XMLDOM');
+ doc.async='false';
+ doc.loadXML(text);
+ } else {
+ var parser=new DOMParser();
+ doc=parser.parseFromString(text,'text/xml');
+ }
+ return doc;
+}
+
+//changing the style
+function changeStyle(val){
+ if(val == 1){
+ $(".b_top_left").removeClass("btl_pad");
+ $(".b_top_center").removeClass("btc_pad");
+ $(".b_top_right").removeClass("btr_pad");
+ $(".b_center_left").removeClass("bcl_pad");
+ $(".b_center_right").removeClass("bcr_pad");
+ $(".b_bottom_right").removeClass("bbr_pad");
+ $(".b_bottom_left").removeClass("bbl_pad");
+ $(".b_bottom_center").removeClass("bbc_pad");
+ $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
+ $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_name").removeClass("pad_color");
+ $(".style_select").removeClass("pad_select");
+ } else {
+ $(".b_top_left").addClass("btl_pad");
+ $(".b_top_center").addClass("btc_pad");
+ $(".b_top_right").addClass("btr_pad");
+ $(".b_center_left").addClass("bcl_pad");
+ $(".b_center_right").addClass("bcr_pad");
+ $(".b_bottom_right").addClass("bbr_pad");
+ $(".b_bottom_left").addClass("bbl_pad");
+ $(".b_bottom_center").addClass("bbc_pad");
+ $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
+ $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_display").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_name").addClass("pad_color");
+ $(".style_select").addClass("pad_select");
+ }
+}
+
+function onDropTarget(obj, event) {
+ $(obj).find("img").remove();
+ if (event.dataTransfer) {
+ var format = "text/plain";
+ var textData = event.dataTransfer.getData(format);
+ if (!textData) {
+ alert(":(");
+ }
+ textData = stringToXML(textData);
+ var tmp = textData.getElementsByTagName("path")[0].firstChild.textContent;
+ var tmp_img = $("
").attr("src","../../" + tmp);
+ $(obj).append(tmp_img);
+ setTimeout(function(){
+ if(tmp_img.height() >= tmp_img.width())
+ tmp_img.attr("height", "120");
+ else{
+ tmp_img.attr("width","120");
+ tmp_img.css("margin",(120 - tmp_img.height())/2 + "px 0");
+ }
+ }, 6)
+ }
+ else {
+ alert ("Your browser does not support the dataTransfer object.");
+ }
+
+ if (event.stopPropagation) {
+ event.stopPropagation ();
+ }
+ else {
+ event.cancelBubble = true;
+ }
+ return false;
+}
+
+function onDropAudio(obj, event) {
+ if (event.dataTransfer) {
+ var format = "text/plain";
+ var textData = event.dataTransfer.getData(format);
+ if (!textData) {
+ alert(":(");
+ }
+ textData = stringToXML(textData);
+ var tmp = textData.getElementsByTagName("path")[0].firstChild.textContent;
+ var tmp_type = textData.getElementsByTagName("type")[0].firstChild.textContent;
+ if(tmp_type.substr(0, 5) == "audio"){
+ var audio_block = $(obj).find(".audio_block");
+ $(obj).find("audio").remove();
+ audio_block.find(":first-child").removeClass("stop").addClass("play");
+ var source = $("
").attr("src", "../../" + tmp);
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ }
+ }
+ else {
+ alert ("Your browser does not support the dataTransfer object.");
+ }
+
+ if (event.stopPropagation) {
+ event.stopPropagation ();
+ }
+ else {
+ event.cancelBubble = true;
+ }
+ return false;
+}
+
+if (window.widget) {
+ window.widget.onremove = function(){
+ $("audio").each(function(){
+ this.pause();
+ $(this).parent().find(":first-child").removeClass("stop").addClass("play");
+ });
+ }
+}
diff --git a/resources/library/interactivities/Ass sons.wgt/locales/ru/img/drop_img.png b/resources/library/interactivities/Ass sons.wgt/locales/ru/img/drop_img.png
new file mode 100644
index 00000000..2796c020
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/locales/ru/img/drop_img.png differ
diff --git a/resources/library/interactivities/Ass sons.wgt/locales/ru/index.html b/resources/library/interactivities/Ass sons.wgt/locales/ru/index.html
new file mode 100644
index 00000000..261886d7
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/locales/ru/index.html
@@ -0,0 +1,53 @@
+
+
+
+ D'n'd
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js b/resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js
new file mode 100644
index 00000000..2c6f0eb2
--- /dev/null
+++ b/resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js
@@ -0,0 +1,834 @@
+var sankoreLang = {
+ display: "Показать",
+ edit: "Изменить",
+ short_desc: "Сколько сигналов вы слышите?",
+ add: "Новый блок",
+ enter: "Введите описание ...",
+ wgt_name: "Что звучит",
+ reload: "Обновить",
+ slate: "Узор",
+ pad: "Планшет"
+};
+//main function
+function start(){
+
+ $("#wgt_display").text(sankoreLang.display);
+ $("#wgt_edit").text(sankoreLang.edit);
+ $("#wgt_name").text(sankoreLang.wgt_name);
+ $("#wgt_reload").text(sankoreLang.reload);
+ $(".style_select option[value='1']").text(sankoreLang.slate);
+ $(".style_select option[value='2']").text(sankoreLang.pad);
+
+ if(window.sankore){
+ if(sankore.preference("associer_sound","")){
+ var data = jQuery.parseJSON(sankore.preference("associer_sound",""));
+ importData(data);
+ }
+ else
+ showExample();
+ if(sankore.preference("as_snd_style","")){
+ changeStyle(sankore.preference("as_snd_style",""));
+ $(".style_select").val(sankore.preference("as_snd_style",""));
+ } else
+ changeStyle(1)
+ }
+ else
+ showExample();
+
+ //events
+ if (window.widget) {
+ window.widget.onleave = function(){
+ exportData();
+ sankore.setPreference("as_snd_style", $(".style_select").find("option:selected").val());
+ }
+ }
+
+ $("#wgt_reload").click(function(){
+ if($("#wgt_display").hasClass("selected")){
+ $("#wgt_edit").trigger("click");
+ $("#wgt_display").trigger("click");
+ } else {
+ $("#wgt_display").trigger("click");
+ }
+ });
+
+ $("#wgt_reload, #wgt_display, #wgt_edit").mouseover(function(){
+ exportData();
+ });
+
+ $(".style_select").change(function (event){
+ changeStyle($(this).find("option:selected").val());
+ })
+
+ $("#wgt_display, #wgt_edit").click(function(event){
+ if(this.id == "wgt_display"){
+ if(!$(this).hasClass("selected")){
+ if(window.sankore)
+ sankore.enableDropOnWidget(false);
+ $(this).addClass("selected");
+ $("#wgt_edit").removeClass("selected");
+ $(".style_select").css("display","none");
+ $(".add_block").remove();
+ $(".cont").each(function(){
+ var container = $(this);
+ var tmp_i = 0;
+ var tmp_array = [];
+
+ container.find(".text_cont .audio_desc").removeAttr("contenteditable");
+ container.find(".audio_block").removeAttr("ondragenter")
+ .removeAttr("ondragleave")
+ .removeAttr("ondragover")
+ .removeAttr("ondrop")
+ container.find(".add_img").remove();
+ container.find(".close_cont").remove();
+ container.find(".img_block").each(function(){
+ if($(this).find("img").attr("src") != "img/drop_img.png"){
+ $(this).find(".close_img").remove();
+ $(this).find(".true_img").remove();
+ $(this).find(".false_img").remove();
+ $(this).removeAttr("ondragenter")
+ .removeAttr("ondragleave")
+ .removeAttr("ondragover")
+ .removeAttr("ondrop")
+ .addClass("img_gray");
+ } else
+ $(this).remove();
+ });
+ var img_answers = $(" ").insertAfter(container.find(".sub_cont"));
+ container.find(".img_block").each(function(){
+ $(this).css("float","");
+ tmp_array.push($(this));
+ });
+ tmp_array = shuffle(tmp_array);
+ for(var i = 0; i ");
+ var answers = "";
+ $(this).parent().find(".imgs_answers .img_block").each(function(){
+ answers += $(this).find("input").val();
+ });
+ if(tmp_cont.children()[0].tagName == "IMG")
+ tmp_cont.removeClass("imgs_answers_green")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_gray");
+ else
+ if(tmp_cont.children().length == 1){
+ if(tmp_cont.children().find("input").val() == "1")
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ }
+ });
+ });
+ $(this).css("display", "none");
+ $("#wgt_edit").css("display", "block");
+ }
+ } else {
+ if(!$(this).hasClass("selected")){
+ if(window.sankore)
+ sankore.enableDropOnWidget(true);
+ $(this).addClass("selected");
+ $("#wgt_display").removeClass("selected");
+ $(".style_select").css("display","block");
+
+ $(".cont").each(function(){
+ var container = $(this);
+ container.find(".imgs_answers").find(".img_block").each(function(){
+ $(this).appendTo(container.find(".imgs_cont"))
+ });
+ container.find(".imgs_answers").remove();
+ $("").appendTo(container);
+ container.find(".imgs_cont").css("background-color", "");
+ container.find(".text_cont .audio_desc").attr("contenteditable","true");
+ container.find(".audio_block").attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).removeClass('audio_gray'); return false;")
+ .attr("ondragover", "$(this).addClass('audio_gray'); return false;")
+ .attr("ondrop", "$(this).removeClass('audio_gray'); return onDropAudio(this,event);");
+ var add_img = $("
");
+ container.find(".img_block").each(function(){
+ $(this).draggable("destroy");
+ $(this).attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).css(\"background-color\",\"\"); return false;")
+ .attr("ondragover", "$(this).css(\"background-color\",\"#ccc\"); return false;")
+ .attr("ondrop", "$(this).css(\"background-color\",\"\"); return onDropTarget(this,event);")
+ .css("float","left");
+ $("
").appendTo($(this));
+ if($(this).find("input").val() == "1"){
+ $("
").appendTo($(this));
+ }
+ else{
+ $("
").appendTo($(this));
+ }
+ });
+ container.find(".imgs_cont").append(add_img)
+ });
+
+ $("
" + sankoreLang.add + "
").appendTo("#data");
+ $(this).css("display", "none");
+ $("#wgt_display").css("display", "block");
+ }
+ }
+
+ $("audio").each(function(){
+ this.pause();
+ $(this).parent().find(":first-child").removeClass("stop").addClass("play");
+ });
+
+ });
+
+ //add new block
+ $(".add_block").live("click", function(){
+ addContainer();
+ });
+
+ //adding new img
+ $(".add_img").live("click", function(){
+ addImgBlock($(this));
+ });
+
+ //deleting a block
+ $(".close_cont").live("click",function(){
+ $(this).parent().remove();
+ refreshBlockNumbers();
+ });
+
+ //deleting the img block
+ $(".close_img").live("click", function(){
+ $(this).parent().remove();
+ });
+
+ //correct image
+ $(".true_img").live("click",function(){
+ $(this).parent().parent().find(".img_block").each(function(){
+ $(this).find("input").val(0);
+ var tmp_div = $(this).find(".false_img");
+ if(tmp_div)
+ tmp_div.removeClass("false_img").addClass("true_img");
+ })
+ $(this).parent().find("input").val(1);
+ $(this).removeClass("true_img").addClass("false_img");
+ });
+
+ //wrong image
+ $(".false_img").live("click",function(){
+ $(this).parent().find("input").val(0);
+ $(this).removeClass("false_img").addClass("true_img");
+ });
+
+ //play/pause event
+ $(".play, .stop").live("click", function(){
+ var tmp_audio = $(this);
+ var audio = tmp_audio.parent().find("audio").get(0);
+ if($(this).hasClass("play")){
+ if(tmp_audio.parent().find("source").attr("src")){
+ tmp_audio.removeClass("play").addClass("stop");
+ var id = setInterval(function(){
+ if(audio.currentTime == audio.duration){
+ clearInterval(id);
+ tmp_audio.removeClass("stop").addClass("play");
+ }
+ }, 10);
+ tmp_audio.parent().find("input").val(id);
+ audio.play();
+ }
+ } else {
+ $(this).removeClass("stop").addClass("play");
+ clearInterval( tmp_audio.parent().find("input").val())
+ audio.pause();
+ }
+ });
+
+ $(".replay").live("click", function(){
+ var tmp_audio = $(this).prev();
+ var audio = $(this).parent().find("audio").get(0);
+ if(tmp_audio.parent().find("source").attr("src")){
+ $(this).prev().removeClass("play").addClass("stop");
+ clearInterval($(this).parent().find("input").val());
+ var id = setInterval(function(){
+ if(audio.currentTime == audio.duration){
+ clearInterval(id);
+ tmp_audio.removeClass("stop").addClass("play");
+ }
+ }, 10);
+ tmp_audio.parent().find("input").val(id);
+ audio.currentTime = 0;
+ audio.play();
+ }
+ });
+}
+
+//export
+function exportData(){
+ var array_to_export = [];
+ if($("#wgt_edit").hasClass("selected")){
+ $(".cont").each(function(){
+ var cont_obj = new Object();
+ cont_obj.text = $(this).find(".audio_desc").text();
+ cont_obj.audio = $(this).find("source").attr("src").replace("../../","");
+ cont_obj.mode = "edit";
+ cont_obj.imgs = [];
+ $(this).find(".img_block").each(function(){
+ var img_obj = new Object();
+ img_obj.value = $(this).find("input").val();
+ img_obj.link = $(this).find("img").attr("src").replace("../../","");
+ img_obj.ht = $(this).find("img").height();
+ img_obj.wd = $(this).find("img").width();
+ cont_obj.imgs.push(img_obj);
+ });
+ array_to_export.push(cont_obj);
+ });
+ } else {
+ $(".cont").each(function(){
+ var cont_obj = new Object();
+ cont_obj.text = $(this).find(".audio_desc").text();
+ cont_obj.audio = $(this).find("source").attr("src").replace("../../","");
+ cont_obj.mode = "display";
+ cont_obj.imgs = [];
+ if($(this).find(".imgs_answers").children()[0].tagName == "DIV"){
+ var tmp_cont = $(this).find(".imgs_answers").find(".img_block");
+ var img_obj = new Object();
+ img_obj.value = tmp_cont.find("input").val();
+ img_obj.link = tmp_cont.find("img").attr("src").replace("../../","");
+ img_obj.ht = tmp_cont.find("img").height();
+ img_obj.wd = tmp_cont.find("img").width();
+ img_obj.cont = "answers";
+ cont_obj.imgs.push(img_obj);
+ }
+ $(this).find(".imgs_cont .img_block").each(function(){
+ var img_obj = new Object();
+ img_obj.value = $(this).find("input").val();
+ img_obj.link = $(this).find("img").attr("src").replace("../../","");
+ img_obj.ht = $(this).find("img").height();
+ img_obj.wd = $(this).find("img").width();
+ img_obj.cont = "cont";
+ cont_obj.imgs.push(img_obj);
+ });
+ array_to_export.push(cont_obj);
+ });
+ }
+ sankore.setPreference("associer_sound", JSON.stringify(array_to_export));
+}
+
+//import
+function importData(data){
+
+ var tmp = 0;
+ for(var i in data){
+ if(data[i].mode == "edit"){
+ var tmp_array = [];
+ var container = $("
");
+ var sub_container = $("
").appendTo(container);
+ var imgs_answers = $("
").appendTo(container);
+ var imgs_container = $("
").appendTo(container);
+
+ var number = $("
"+ (++tmp) +"
").appendTo(sub_container);
+ var text = $("
").appendTo(sub_container);
+ var audio_block = $("
").appendTo(text);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ var source = $("
").attr("src","../../" + data[i].audio);
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $(" ").appendTo(audio_block);
+ $("" + data[i].text + "
").appendTo(text);
+
+ for(var j in data[i].imgs){
+ var img_block = $("");
+ var img = $("
");
+ img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd);
+ if((120 - data[i].imgs[j].ht) > 0)
+ img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0");
+ var hidden_input = $("
").val(data[i].imgs[j].value);
+ img_block.append(hidden_input).append(img);
+ tmp_array.push(img_block);
+ }
+ tmp_array = shuffle(tmp_array);
+ for(j in tmp_array){
+ tmp_array[j].draggable({
+ helper:'clone',
+ zIndex:100,
+ appendTo: '#data'
+ });
+ tmp_array[j].appendTo(imgs_container);
+ }
+ imgs_answers.droppable({
+ hoverClass: 'dropHere',
+ drop: function(event, ui) {
+ if($(ui.draggable).parent().parent().html() == $(this).parent().html()){
+ if($(this).children()[0].tagName == "IMG")
+ $(this).children().remove();
+ else
+ $(ui.draggable).parent().append($(this).children());
+ $(this).append($(ui.draggable));
+ if($(this).children().length == 1){
+ if($(this).children().find("input").val() == "1")
+ $(this).removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ $(this).removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ });
+ imgs_container.droppable({
+ hoverClass: 'dropBack',
+ drop: function(event, ui) {
+ if($(ui.draggable).parent().parent().html() == $(this).parent().html()){
+ if(this != $(ui.draggable).parent()[0]){
+ var tmp_cont = $(ui.draggable).parent();
+ $(this).append($(ui.draggable));
+ tmp_cont.append("
");
+ var answers = "";
+ $(this).parent().find(".imgs_answers .img_block").each(function(){
+ answers += $(this).find("input").val();
+ });
+ if(tmp_cont.children()[0].tagName == "IMG")
+ tmp_cont.removeClass("imgs_answers_green")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_gray");
+ else
+ if(tmp_cont.children().length == 1){
+ if(tmp_cont.children().find("input").val() == "1")
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ }
+ });
+ container.appendTo("#data");
+ } else {
+ container = $("
");
+ sub_container = $("
").appendTo(container);
+ imgs_answers = $("
").appendTo(container);
+ $("
").appendTo(imgs_answers);
+ imgs_container = $("
").appendTo(container);
+
+ number = $("
"+ (++tmp) +"
").appendTo(sub_container);
+ text = $("
").appendTo(sub_container);
+ audio_block = $("
").appendTo(text);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ source = $("
").attr("src","../../" + data[i].audio);
+ audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $(" ").appendTo(audio_block);
+ $("" + data[i].text + "
").appendTo(text);
+
+ for(j in data[i].imgs){
+ img_block = $("");
+ img = $("
");
+ img.height(data[i].imgs[j].ht).width(data[i].imgs[j].wd);
+ if((120 - data[i].imgs[j].ht) > 0)
+ img.css("margin",(120 - data[i].imgs[j].ht)/2 + "px 0");
+ hidden_input = $("
").val(data[i].imgs[j].value);
+ img_block.append(hidden_input).append(img);
+ img_block.draggable({
+ helper:'clone',
+ zIndex:100,
+ appendTo: '#data'
+ });
+ if(data[i].imgs[j].cont == "cont")
+ img_block.appendTo(imgs_container);
+ else{
+ imgs_answers.empty();
+ img_block.appendTo(imgs_answers);
+ if(data[i].imgs[j].value == "1")
+ imgs_answers.addClass("imgs_answers_green");
+ else
+ imgs_answers.addClass("imgs_answers_red");
+ }
+ }
+
+ imgs_answers.droppable({
+ hoverClass: 'dropHere',
+ drop: function(event, ui) {
+ if($(ui.draggable).parent().parent().html() == $(this).parent().html()){
+ if($(this).children()[0].tagName == "IMG")
+ $(this).children().remove();
+ else
+ $(ui.draggable).parent().append($(this).children());
+ $(this).append($(ui.draggable));
+ if($(this).children().length == 1){
+ if($(this).children().find("input").val() == "1")
+ $(this).removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ $(this).removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ });
+ imgs_container.droppable({
+ hoverClass: 'dropBack',
+ drop: function(event, ui) {
+ if($(ui.draggable).parent().parent().html() == $(this).parent().html()){
+ if(this != $(ui.draggable).parent()[0]){
+ var tmp_cont = $(ui.draggable).parent();
+ $(this).append($(ui.draggable));
+ tmp_cont.append("
");
+ var answers = "";
+ $(this).parent().find(".imgs_answers .img_block").each(function(){
+ answers += $(this).find("input").val();
+ });
+ if(tmp_cont.children()[0].tagName == "IMG")
+ tmp_cont.removeClass("imgs_answers_green")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_gray");
+ else
+ if(tmp_cont.children().length == 1){
+ if(tmp_cont.children().find("input").val() == "1")
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ }
+ });
+ container.appendTo("#data");
+ }
+ }
+}
+
+//example
+function showExample(){
+
+ var tmp_array = [];
+
+ var container = $("
").appendTo("#data");
+ var sub_container = $("
").appendTo(container);
+ var imgs_answers = $("
").appendTo(container);
+ var imgs_container = $("
").appendTo(container);
+
+ var number = $("
1
").appendTo(sub_container);
+ var text = $("
").appendTo(sub_container);
+ var audio_block = $("
").appendTo(text);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ var source = $("
").attr("src", "../../objects/beep.wav");
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $(" ").appendTo(audio_block);
+ var audio_desc = $("" + sankoreLang.short_desc + "
").appendTo(text);
+
+ $(" ").appendTo(imgs_container);
+
+ var img1 = $("
");
+ $(" ").appendTo(img1);
+ $(" ").appendTo(img1);
+ var img2 = $("
");
+ $(" ").appendTo(img2);
+ $(" ").appendTo(img2);
+ var img3 = $("
");
+ $(" ").appendTo(img3);
+ $(" ").appendTo(img3);
+ var img4 = $("
");
+ $(" ").appendTo(img4);
+ $(" ").appendTo(img4);
+ var img5 = $("
");
+ $(" ").appendTo(img5);
+ $(" ").appendTo(img5);
+
+ tmp_array.push(img1, img2, img3, img4, img5);
+ tmp_array = shuffle(tmp_array);
+ for(var i = 0; i ");
+ var answers = "";
+ $(this).parent().find(".imgs_answers .img_block").each(function(){
+ answers += $(this).find("input").val();
+ });
+ if(tmp_cont.children()[0].tagName == "IMG")
+ tmp_cont.removeClass("imgs_answers_green")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_gray");
+ else
+ if(tmp_cont.children().length == 1){
+ if(tmp_cont.children().find("input").val() == "1")
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_red")
+ .addClass("imgs_answers_green");
+ else
+ tmp_cont.removeClass("imgs_answers_gray")
+ .removeClass("imgs_answers_green")
+ .addClass("imgs_answers_red");
+ }
+ }
+ }
+ }
+ });
+}
+
+//add new container
+function addContainer(){
+ var container = $("");
+ var sub_container = $("
").appendTo(container);
+ var imgs_container = $("
").appendTo(container);
+
+ var close = $("
").appendTo(container);
+ var number = $("
"+ ($(".cont").size() + 1) +"
").appendTo(sub_container);
+ var text = $("
").appendTo(sub_container);
+ text.attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).removeClass('gray'); return false;")
+ .attr("ondragover", "$(this).addClass('gray'); return false;")
+ .attr("ondrop", "$(this).removeClass('gray'); return onDropAudio(this,event);");
+ var audio_block = $("
").appendTo(text);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ var source = $("
").attr("src", "");
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $(" ").appendTo(audio_block);
+ var audio_desc = $("" + sankoreLang.enter + "
").appendTo(text);
+
+ $(" ").appendTo(imgs_container);
+ var add_img = $("").appendTo(imgs_container);
+ container.insertBefore($(".add_block"));
+}
+
+//add new img block
+function addImgBlock(dest){
+ var img_block = $("
").insertBefore(dest);
+ $("
").appendTo(img_block);
+ $("
").appendTo(img_block);
+ $("
").appendTo(img_block);
+ $("
").appendTo(img_block);
+}
+
+function refreshBlockNumbers(){
+ var i = 0;
+ $(".cont").each(function(){
+ $(this).find(".number_cont").text(++i);
+ })
+}
+
+//shuffles an array
+function shuffle( arr )
+{
+ var pos, tmp;
+
+ for( var i = 0; i < arr.length; i++ )
+ {
+ pos = Math.round( Math.random() * ( arr.length - 1 ) );
+ tmp = arr[pos];
+ arr[pos] = arr[i];
+ arr[i] = tmp;
+ }
+ return arr;
+}
+
+
+function stringToXML(text){
+ if (window.ActiveXObject){
+ var doc=new ActiveXObject('Microsoft.XMLDOM');
+ doc.async='false';
+ doc.loadXML(text);
+ } else {
+ var parser=new DOMParser();
+ doc=parser.parseFromString(text,'text/xml');
+ }
+ return doc;
+}
+
+//changing the style
+function changeStyle(val){
+ if(val == 1){
+ $(".b_top_left").removeClass("btl_pad");
+ $(".b_top_center").removeClass("btc_pad");
+ $(".b_top_right").removeClass("btr_pad");
+ $(".b_center_left").removeClass("bcl_pad");
+ $(".b_center_right").removeClass("bcr_pad");
+ $(".b_bottom_right").removeClass("bbr_pad");
+ $(".b_bottom_left").removeClass("bbl_pad");
+ $(".b_bottom_center").removeClass("bbc_pad");
+ $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
+ $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_name").removeClass("pad_color");
+ $(".style_select").removeClass("pad_select");
+ } else {
+ $(".b_top_left").addClass("btl_pad");
+ $(".b_top_center").addClass("btc_pad");
+ $(".b_top_right").addClass("btr_pad");
+ $(".b_center_left").addClass("bcl_pad");
+ $(".b_center_right").addClass("bcr_pad");
+ $(".b_bottom_right").addClass("bbr_pad");
+ $(".b_bottom_left").addClass("bbl_pad");
+ $(".b_bottom_center").addClass("bbc_pad");
+ $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
+ $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_display").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_name").addClass("pad_color");
+ $(".style_select").addClass("pad_select");
+ }
+}
+
+function onDropTarget(obj, event) {
+ $(obj).find("img").remove();
+ if (event.dataTransfer) {
+ var format = "text/plain";
+ var textData = event.dataTransfer.getData(format);
+ if (!textData) {
+ alert(":(");
+ }
+ textData = stringToXML(textData);
+ var tmp = textData.getElementsByTagName("path")[0].firstChild.textContent;
+ var tmp_img = $("
").attr("src","../../" + tmp);
+ $(obj).append(tmp_img);
+ setTimeout(function(){
+ if(tmp_img.height() >= tmp_img.width())
+ tmp_img.attr("height", "120");
+ else{
+ tmp_img.attr("width","120");
+ tmp_img.css("margin",(120 - tmp_img.height())/2 + "px 0");
+ }
+ }, 6)
+ }
+ else {
+ alert ("Your browser does not support the dataTransfer object.");
+ }
+
+ if (event.stopPropagation) {
+ event.stopPropagation ();
+ }
+ else {
+ event.cancelBubble = true;
+ }
+ return false;
+}
+
+function onDropAudio(obj, event) {
+ if (event.dataTransfer) {
+ var format = "text/plain";
+ var textData = event.dataTransfer.getData(format);
+ if (!textData) {
+ alert(":(");
+ }
+ textData = stringToXML(textData);
+ var tmp = textData.getElementsByTagName("path")[0].firstChild.textContent;
+ var tmp_type = textData.getElementsByTagName("type")[0].firstChild.textContent;
+ if(tmp_type.substr(0, 5) == "audio"){
+ var audio_block = $(obj).find(".audio_block");
+ $(obj).find("audio").remove();
+ audio_block.find(":first-child").removeClass("stop").addClass("play");
+ var source = $("
").attr("src", "../../" + tmp);
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ }
+ }
+ else {
+ alert ("Your browser does not support the dataTransfer object.");
+ }
+
+ if (event.stopPropagation) {
+ event.stopPropagation ();
+ }
+ else {
+ event.cancelBubble = true;
+ }
+ return false;
+}
+
+if (window.widget) {
+ window.widget.onremove = function(){
+ $("audio").each(function(){
+ this.pause();
+ $(this).parent().find(":first-child").removeClass("stop").addClass("play");
+ });
+ }
+}
diff --git a/resources/library/interactivities/Ass sons.wgt/objects/0.gif b/resources/library/interactivities/Ass sons.wgt/objects/0.gif
new file mode 100644
index 00000000..0860a5fc
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/objects/0.gif differ
diff --git a/resources/library/interactivities/Ass sons.wgt/objects/1.gif b/resources/library/interactivities/Ass sons.wgt/objects/1.gif
new file mode 100644
index 00000000..c6d04fac
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/objects/1.gif differ
diff --git a/resources/library/interactivities/Ass sons.wgt/objects/2.gif b/resources/library/interactivities/Ass sons.wgt/objects/2.gif
new file mode 100644
index 00000000..f9d75b71
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/objects/2.gif differ
diff --git a/resources/library/interactivities/Ass sons.wgt/objects/3.gif b/resources/library/interactivities/Ass sons.wgt/objects/3.gif
new file mode 100644
index 00000000..189d1d37
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/objects/3.gif differ
diff --git a/resources/library/interactivities/Ass sons.wgt/objects/4.gif b/resources/library/interactivities/Ass sons.wgt/objects/4.gif
new file mode 100644
index 00000000..20f341c3
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/objects/4.gif differ
diff --git a/resources/library/interactivities/Ass sons.wgt/objects/beep.wav b/resources/library/interactivities/Ass sons.wgt/objects/beep.wav
new file mode 100644
index 00000000..2e77e104
Binary files /dev/null and b/resources/library/interactivities/Ass sons.wgt/objects/beep.wav differ
diff --git a/resources/library/interactivities/Etudier.wgt/config.xml b/resources/library/interactivities/Etudier.wgt/config.xml
new file mode 100644
index 00000000..95c9e84f
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/config.xml
@@ -0,0 +1,16 @@
+
+
+
+ Notes
+ Mnemis SA
+ Associer images
+
+
+
diff --git a/resources/library/interactivities/Etudier.wgt/css/basic.css b/resources/library/interactivities/Etudier.wgt/css/basic.css
new file mode 100644
index 00000000..da7d498b
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/basic.css
@@ -0,0 +1,463 @@
+html, body{
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ border-radius: 50px;
+}
+
+body{
+ background-image: url(../img/bg.png);
+}
+
+.toggle_mode{
+ width: 100%;
+ height: 25px;
+ border-bottom: 1px solid #999;
+ background-color: #ccc;
+ position: fixed;
+ top: 0;
+ left: 0;
+ z-index: 2;
+}
+
+#display_img, #edit_img{
+ width: 15px;
+ height: 15px;
+ margin: 5px 10px;
+}
+
+.green_point{
+ background-image: url(../img/green_point.png);
+}
+
+.red_point{
+ background-image: url(../img/red_point.png);
+}
+
+#display_text, #edit_text{
+ height: 19px;
+ padding: 3px 0 0 0;
+}
+
+.selected{
+
+}
+
+#display:hover, #edit:hover{
+ background-color: #999;
+}
+
+.img_block{
+ width: 120px;
+ height: 120px;
+ padding: 5px;
+ display: inline-block;
+ position: absolute;
+ top: 100px;
+ left: 350px;
+}
+
+.img_gray{
+ border: 1px solid #ccc;
+ -moz-box-shadow: #ccc -1px 0 4px;
+ -webkit-box-shadow: #ccc -1px 0 4px;
+ box-shadow: #ccc -1px 0 4px;
+}
+
+.close_img {
+ width: 30px;
+ height: 30px;
+ background-repeat: no-repeat;
+ position: absolute;
+ background-image: url(../img/close_img.png);
+ top: -15px;
+ right: -15px;
+ cursor: pointer;
+}
+
+.size_up{
+ width: 20px;
+ height: 20px;
+ background-repeat: no-repeat;
+ position: absolute;
+ background-image: url(../img/size_up.png);
+ top: -15px;
+ right: 20px;
+ cursor: pointer;
+}
+
+.size_down{
+ width: 20px;
+ height: 20px;
+ background-repeat: no-repeat;
+ position: absolute;
+ background-image: url(../img/size_down.png);
+ top: -15px;
+ right: 45px;
+ cursor: pointer;
+}
+
+.dropHere{
+ background-color: #ccc;
+}
+
+.dropBack{
+ background-color: #F4F2F2;
+}
+
+.audio_block{
+ width: 120px;
+ height: 30px;
+ padding: 10px 5px;
+ position: absolute;
+ top: 200px;
+ left: 50px;
+}
+
+.audio_desc{
+ min-height: 30px;
+ margin: 5px 0;
+ float: left;
+ margin-left: 20px;
+}
+
+.play, .stop{
+ height: 30px;
+ width: 70px;
+ float: left;
+ cursor: pointer;
+}
+
+.play{
+ background-image: url(../img/play.png);
+}
+
+.stop{
+ background-image: url(../img/stop.png);
+}
+
+.replay{
+ height: 30px;
+ width: 32px;
+ margin-left: 10px;
+ float: left;
+ background-image: url(../img/replay.png);
+ background-repeat: no-repeat;
+ cursor: pointer;
+}
+
+.gray{
+ background-color: #ccc;
+}
+
+#slider ul, #slider li{
+ margin:0;
+ padding:0;
+ list-style:none;
+}
+
+#slider{
+ height: 100%;
+ width: 100%;
+ overflow:hidden;
+}
+
+span#prevBtn a{
+ height: 100%;
+ width: 47px;
+ position: absolute;
+ left: 0;
+ top: 0;
+ opacity: 0.7;
+ background-image: url(../img/turn_left.png);
+ background-repeat: no-repeat;
+ background-position: 50% 50%;
+}
+
+span#nextBtn a{
+ height: 100%;
+ width: 47px;
+ position: absolute;
+ opacity: 0.7;
+ right: 0;
+ top: 0;
+ background-image: url(../img/turn_right.png);
+ background-repeat: no-repeat;
+ background-position: 50% 50%;
+}
+
+span#nextBtn a:hover, span#prevBtn a:hover{
+ opacity: 1;
+}
+
+li>div{
+ width: 100%;
+ height: 100%;
+
+ position: relative;
+}
+
+.text_block{
+ margin: 0;
+ padding: 5px;
+ width: 200px;
+ position: absolute;
+ top: 50px;
+ left: 100px;
+ background-color: white;
+ border-radius: 10px;
+}
+
+.block_border{
+ border: 1px solid #999;
+ border-radius: 5px;
+}
+
+.move_block{
+ width: 30px;
+ height: 30px;
+ background-image: url(../img/moving.png);
+ position: absolute;
+ top: -15px;
+ left: -15px;
+ cursor: pointer;
+}
+
+.resize_block{
+ width: 30px;
+ height: 30px;
+ background-image: url(../img/resize.png);
+ position: absolute;
+ bottom: -13px;
+ right: -13px;
+ cursor: pointer;
+}
+
+.add_left{
+ width: 41px;
+ height: 30px;
+ opacity: 0.5;
+ background-image: url(../img/add_left.png);
+ position: absolute;
+ bottom: 40px;
+ left: 40px;
+ cursor: pointer;
+}
+
+.add_right{
+ width: 41px;
+ height: 30px;
+ opacity: 0.5;
+ background-image: url(../img/add_right.png);
+ position: absolute;
+ bottom: 40px;
+ right: 80px;
+ cursor: pointer;
+}
+
+.close_slide{
+ width: 30px;
+ height: 30px;
+ opacity: 0.5;
+ background-image: url(../img/close_slide.png);
+ position: absolute;
+ top: 40px;
+ right: 80px;
+ cursor: pointer;
+}
+
+.add_text{
+ width: 30px;
+ height: 30px;
+ opacity: 0.5;
+ background-image: url(../img/add_text.png);
+ position: absolute;
+ top: 40px;
+ left: 40px;
+ cursor: pointer;
+}
+
+.add_left:hover, .add_right:hover, .close_slide:hover, .add_text:hover{
+ opacity: 0.8;
+}
+
+/*new design*/
+
+.body_table{
+ width: 100%;
+ height: 100%;
+ border-spacing: 0;
+}
+
+/*top*/
+
+.b_top_left{
+ width: 54px;
+ background-image: url(../img/top_left.png);
+ background-repeat: no-repeat;
+}
+
+.b_top_right{
+ width: 54px;
+ background-image: url(../img/top_right.png);
+ background-repeat: no-repeat;
+}
+
+.b_top_center{
+ height: 54px;
+ background-image: url(../img/top.png);
+ background-repeat: repeat-x;
+}
+
+/*bottom*/
+
+.b_bottom_left{
+ width: 54px;
+ background-image: url(../img/bottom_left.png);
+ background-repeat: no-repeat;
+}
+
+.b_bottom_right{
+ width: 54px;
+ background-image: url(../img/bottom_right.png);
+ background-repeat: no-repeat;
+}
+
+.b_bottom_center{
+ background-image: url(../img/bottom.png);
+ background-repeat: repeat-x;
+}
+
+/*center*/
+
+.b_center_left{
+ width: 54px;
+ background-image: url(../img/left.png);
+ background-repeat: repeat-y;
+}
+
+.b_center_right{
+ width: 54px;
+ background-image: url(../img/right.png);
+ background-repeat: repeat-y;
+}
+
+#data{
+ width: 100%;
+ height: 100%;
+ min-height: 250px;
+ overflow: auto;
+}
+
+#wgt_name{
+ height: 44px;
+ width: 200px;
+ margin: 10px 10px 0 10px;
+ padding: 0;
+ float: left;
+ /*font-family: "Lobster13Regular";*/
+ font-size: 24px;
+ color: #8c5730;
+}
+
+#wgt_reload, #wgt_edit, #wgt_display{
+ cursor: pointer;
+ width: 80px;
+ height: 44px;
+ margin: 10px 10px 0 0;
+ float: right;
+ /*font-family: "Lobster13Regular";*/
+ font-size: 24px;
+ color: #8c5730;
+}
+
+#wgt_display{
+ width: 100px;
+ padding-left: 40px;
+ background-image: url(../img/slate-edit.png);
+ background-repeat: no-repeat;
+ background-position: top 0;
+ display: none;
+}
+
+#wgt_edit{
+ width: 100px;
+ padding-left: 40px;
+ background-image: url(../img/slate-edit.png);
+ background-repeat: no-repeat;
+ background-position: top 0;
+}
+
+#wgt_reload{
+ padding-left: 40px;
+ background-image: url(../img/slate-toolbar-reload.png);
+ background-repeat: no-repeat;
+ background-position: top 0;
+}
+
+.style_select{
+ width: 120px;
+ /*font-family: "Lobster13Regular";*/
+ font-size: 24px;
+ float: right;
+ margin: 10px 20px 0 0;
+ border-radius: 10px;
+ background-image: url(../img/ar_down.png);
+ background-color: #d4aa79;
+ color: #8c5730;
+ background-position: 105px 11px;
+ background-repeat: no-repeat;
+ -webkit-appearance: menulist-text;
+ display: none;
+}
+
+.btl_pad{
+ background-image: url(../img/pad-top-left.png) !important;
+}
+
+.btc_pad{
+ background-image: url(../img/pad-top.png) !important;
+}
+
+.btr_pad{
+ background-image: url(../img/pad-top-right.png) !important;
+}
+
+.bcl_pad{
+ background-image: url(../img/pad-left.png) !important;
+}
+
+.bcr_pad{
+ background-image: url(../img/pad-right.png) !important;
+}
+
+.bbl_pad{
+ background-image: url(../img/pad-bottom-left.png) !important;
+}
+
+.bbc_pad{
+ background-image: url(../img/pad-bottom.png) !important;
+}
+
+.bbr_pad{
+ background-image: url(../img/pad-bottom-right.png) !important;
+}
+
+.pad_color{
+ color: white !important;
+}
+
+.pad_reload{
+ background-image: url(../img/slate-toolbar-reload-white.png) !important;
+}
+
+.pad_edit{
+ background-image: url(../img/slate-display.png) !important;
+}
+
+.pad_select{
+ background-color: black !important;
+ color: white !important;
+ background-image: url(../img/ar_down_white.png) !important;
+}
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot
new file mode 100644
index 00000000..b96b90c7
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg
new file mode 100644
index 00000000..93074c91
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg
@@ -0,0 +1,379 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c 2010 by Pablo Impallari wwwimpallaricom All rights reserved
+Designer : Pablo Impallari
+Foundry : Pablo Impallari wwwimpallaricom
+Foundry URL : wwwimpallaricom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf
new file mode 100644
index 00000000..47b34293
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff
new file mode 100644
index 00000000..0bd0b4dc
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt
new file mode 100644
index 00000000..e4b0c4ff
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt
@@ -0,0 +1,91 @@
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/demo.html b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/demo.html
new file mode 100644
index 00000000..1bc61965
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/demo.html
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+ Font Face Demo
+
+
+
+
+
+
+
Font-face Demo for the Lobster Font
+
+
+
+
Lobster Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/stylesheet.css b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/stylesheet.css
new file mode 100644
index 00000000..d19342e7
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/Lobster/stylesheet.css
@@ -0,0 +1,16 @@
+/* Generated by Font Squirrel (http://www.fontsquirrel.com) on March 26, 2012 06:03:05 AM America/New_York */
+
+
+
+@font-face {
+ font-family: 'Lobster13Regular';
+ src: url('Lobster_1.3-webfont.eot');
+ src: url('Lobster_1.3-webfont.eot?#iefix') format('embedded-opentype'),
+ url('Lobster_1.3-webfont.woff') format('woff'),
+ url('Lobster_1.3-webfont.ttf') format('truetype'),
+ url('Lobster_1.3-webfont.svg#Lobster13Regular') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot
new file mode 100644
index 00000000..3bff5391
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg
new file mode 100644
index 00000000..81933f60
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf
new file mode 100644
index 00000000..13307470
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff
new file mode 100644
index 00000000..aaab7cec
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot
new file mode 100644
index 00000000..ac1fd0d0
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg
new file mode 100644
index 00000000..ff631987
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf
new file mode 100644
index 00000000..47a8088a
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff
new file mode 100644
index 00000000..ddf074eb
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot
new file mode 100644
index 00000000..94d51427
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg
new file mode 100644
index 00000000..2ab9b626
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf
new file mode 100644
index 00000000..e1f76ba5
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff
new file mode 100644
index 00000000..07d9c7a5
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot
new file mode 100644
index 00000000..bfb2f7db
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg
new file mode 100644
index 00000000..c543b941
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf
new file mode 100644
index 00000000..21c24cfa
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff
new file mode 100644
index 00000000..f6ae9285
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot
new file mode 100644
index 00000000..1ca8442e
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg
new file mode 100644
index 00000000..666bcb77
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf
new file mode 100644
index 00000000..cc4da56c
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff
new file mode 100644
index 00000000..3c6df8de
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot
new file mode 100644
index 00000000..72f7912c
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg
new file mode 100644
index 00000000..45af0b93
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg
@@ -0,0 +1,237 @@
+
+
+
+
+This is a custom SVG webfont generated by Font Squirrel.
+Copyright : Copyright c ShyFonts Type Foundry 2000 All rights reserved
+Designer : ShyFonts Type Foundry
+Foundry URL : httpwwwshyfontscom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf
new file mode 100644
index 00000000..2edf7ae2
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff
new file mode 100644
index 00000000..d88bb523
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff differ
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt
new file mode 100644
index 00000000..2da263c4
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt
@@ -0,0 +1,32 @@
+By downloading this font package you agree to the following terms
+of use:
+
+ - This FONT PACKAGE is freeware.
+
+ - This FONT PACKAGE may be distributed ONLY via the Internet for
+ FREE. Under NO circumstances may this FONT PACKAGE be sold for
+ a profit nor be included as part of another product or CD-ROM
+ compilation. If you wish to include this FONT PACKAGE for FREE
+ distribution on your Web Site, please include all of the fonts
+ and original documentation supplied with this FONT PACKAGE.
+
+ - You may install and use this FONT PACKAGE on an unlimited
+ amount of machines.
+
+ - You may NOT rename, edit, or create any alternate variations of
+ the fonts included in this FONT PACKAGE.
+
+ - This FONT PACKAGE comes "as is" with NO warranty whatsoever.
+ SHYFONTS accepts NO responsibility for any damages or loss of
+ any kind due to the use of this FONT PACKAGE. The use of this
+ FONT PACKAGE is solely your responsibility -- you use this FONT
+ PACKAGE at your own risk.
+
+ - Enjoy the fonts!
+
+If you have any question regarding this document or the usage of
+this font package, feel free to contact us at info@shyfonts.com.
+Thank you for downloading this font package and enjoy!
+
+------------------------------------------------------------------------
+©2001 ShyFonts Type Foundry -- http://www.shyfonts.com
\ No newline at end of file
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/demo.html b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/demo.html
new file mode 100644
index 00000000..088d0105
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/demo.html
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+ Font Face Demo
+
+
+
+
+
+
+
FONT-FACE DEMO FOR THE TOONTIME FONT
+
+
+
+
SF Toontime Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Bold - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Bold Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Blotch Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
SF Toontime Blotch Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
diff --git a/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/stylesheet.css b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/stylesheet.css
new file mode 100644
index 00000000..cf4371ae
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/css/fonts/SF-Toontime/stylesheet.css
@@ -0,0 +1,76 @@
+/* Generated by Font Squirrel (http://www.fontsquirrel.com) on March 26, 2012 04:36:35 PM America/New_York */
+
+
+
+@font-face {
+ font-family: 'SFToontimeRegular';
+ src: url('SF_Toontime-webfont.eot');
+ src: url('SF_Toontime-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime-webfont.woff') format('woff'),
+ url('SF_Toontime-webfont.ttf') format('truetype'),
+ url('SF_Toontime-webfont.svg#SFToontimeRegular') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeItalic';
+ src: url('SF_Toontime_Italic-webfont.eot');
+ src: url('SF_Toontime_Italic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Italic-webfont.woff') format('woff'),
+ url('SF_Toontime_Italic-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Italic-webfont.svg#SFToontimeItalic') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeBold';
+ src: url('SF_Toontime_Bold-webfont.eot');
+ src: url('SF_Toontime_Bold-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Bold-webfont.woff') format('woff'),
+ url('SF_Toontime_Bold-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Bold-webfont.svg#SFToontimeBold') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeBoldItalic';
+ src: url('SF_Toontime_Bold_Italic-webfont.eot');
+ src: url('SF_Toontime_Bold_Italic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Bold_Italic-webfont.woff') format('woff'),
+ url('SF_Toontime_Bold_Italic-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Bold_Italic-webfont.svg#SFToontimeBoldItalic') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeBlotchRegular';
+ src: url('SF_Toontime_Blotch-webfont.eot');
+ src: url('SF_Toontime_Blotch-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Blotch-webfont.woff') format('woff'),
+ url('SF_Toontime_Blotch-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Blotch-webfont.svg#SFToontimeBlotchRegular') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
+@font-face {
+ font-family: 'SFToontimeBlotchItalic';
+ src: url('SF_Toontime_Blotch_Italic-webfont.eot');
+ src: url('SF_Toontime_Blotch_Italic-webfont.eot?#iefix') format('embedded-opentype'),
+ url('SF_Toontime_Blotch_Italic-webfont.woff') format('woff'),
+ url('SF_Toontime_Blotch_Italic-webfont.ttf') format('truetype'),
+ url('SF_Toontime_Blotch_Italic-webfont.svg#SFToontimeBlotchItalic') format('svg');
+ font-weight: normal;
+ font-style: normal;
+
+}
+
diff --git a/resources/library/interactivities/Etudier.wgt/icon.svg b/resources/library/interactivities/Etudier.wgt/icon.svg
new file mode 100644
index 00000000..4b29218f
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/icon.svg
@@ -0,0 +1,74 @@
+
+
+
+]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/library/interactivities/Etudier.wgt/img/add_left.png b/resources/library/interactivities/Etudier.wgt/img/add_left.png
new file mode 100644
index 00000000..c09e6ed7
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/add_left.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/add_right.png b/resources/library/interactivities/Etudier.wgt/img/add_right.png
new file mode 100644
index 00000000..23d7c008
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/add_right.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/add_text.png b/resources/library/interactivities/Etudier.wgt/img/add_text.png
new file mode 100644
index 00000000..56568e02
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/add_text.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/ar_down.png b/resources/library/interactivities/Etudier.wgt/img/ar_down.png
new file mode 100644
index 00000000..a20fab4f
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/ar_down.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/ar_down_white.png b/resources/library/interactivities/Etudier.wgt/img/ar_down_white.png
new file mode 100644
index 00000000..4a1d133b
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/ar_down_white.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/bg.png b/resources/library/interactivities/Etudier.wgt/img/bg.png
new file mode 100644
index 00000000..61c3c6f3
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/bg.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/bottom.png b/resources/library/interactivities/Etudier.wgt/img/bottom.png
new file mode 100644
index 00000000..31e6afdd
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/bottom.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/bottom_left.png b/resources/library/interactivities/Etudier.wgt/img/bottom_left.png
new file mode 100644
index 00000000..31d17418
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/bottom_left.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/bottom_right.png b/resources/library/interactivities/Etudier.wgt/img/bottom_right.png
new file mode 100644
index 00000000..ec6e1866
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/bottom_right.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/close_img.png b/resources/library/interactivities/Etudier.wgt/img/close_img.png
new file mode 100644
index 00000000..3f22728a
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/close_img.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/close_slide.png b/resources/library/interactivities/Etudier.wgt/img/close_slide.png
new file mode 100644
index 00000000..f02acd99
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/close_slide.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/green_point.png b/resources/library/interactivities/Etudier.wgt/img/green_point.png
new file mode 100644
index 00000000..a2a44680
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/green_point.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/left.png b/resources/library/interactivities/Etudier.wgt/img/left.png
new file mode 100644
index 00000000..270652a8
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/left.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/moving.png b/resources/library/interactivities/Etudier.wgt/img/moving.png
new file mode 100644
index 00000000..7fa84bdf
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/moving.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/pad-bottom-left.png b/resources/library/interactivities/Etudier.wgt/img/pad-bottom-left.png
new file mode 100644
index 00000000..9a2bb34d
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/pad-bottom-left.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/pad-bottom-right.png b/resources/library/interactivities/Etudier.wgt/img/pad-bottom-right.png
new file mode 100644
index 00000000..82d24c3b
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/pad-bottom-right.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/pad-bottom.png b/resources/library/interactivities/Etudier.wgt/img/pad-bottom.png
new file mode 100644
index 00000000..4560a69e
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/pad-bottom.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/pad-left.png b/resources/library/interactivities/Etudier.wgt/img/pad-left.png
new file mode 100644
index 00000000..60c9fa4a
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/pad-left.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/pad-right.png b/resources/library/interactivities/Etudier.wgt/img/pad-right.png
new file mode 100644
index 00000000..e31482c4
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/pad-right.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/pad-top-left.png b/resources/library/interactivities/Etudier.wgt/img/pad-top-left.png
new file mode 100644
index 00000000..ea0d7568
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/pad-top-left.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/pad-top-right.png b/resources/library/interactivities/Etudier.wgt/img/pad-top-right.png
new file mode 100644
index 00000000..5d22aa67
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/pad-top-right.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/pad-top.png b/resources/library/interactivities/Etudier.wgt/img/pad-top.png
new file mode 100644
index 00000000..8dae00d0
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/pad-top.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/play.png b/resources/library/interactivities/Etudier.wgt/img/play.png
new file mode 100644
index 00000000..cdd651ae
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/play.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/red_point.png b/resources/library/interactivities/Etudier.wgt/img/red_point.png
new file mode 100644
index 00000000..f6daa19a
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/red_point.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/replay.png b/resources/library/interactivities/Etudier.wgt/img/replay.png
new file mode 100644
index 00000000..8d6c192b
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/replay.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/resize.png b/resources/library/interactivities/Etudier.wgt/img/resize.png
new file mode 100644
index 00000000..ccef6828
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/resize.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/right.png b/resources/library/interactivities/Etudier.wgt/img/right.png
new file mode 100644
index 00000000..0dec63b7
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/right.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/size_down.png b/resources/library/interactivities/Etudier.wgt/img/size_down.png
new file mode 100644
index 00000000..7de2f90b
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/size_down.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/size_up.png b/resources/library/interactivities/Etudier.wgt/img/size_up.png
new file mode 100644
index 00000000..b8462642
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/size_up.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/slate-display.png b/resources/library/interactivities/Etudier.wgt/img/slate-display.png
new file mode 100644
index 00000000..96166143
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/slate-display.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/slate-edit.png b/resources/library/interactivities/Etudier.wgt/img/slate-edit.png
new file mode 100644
index 00000000..17f5fc5c
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/slate-edit.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-edit.png b/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-edit.png
new file mode 100644
index 00000000..f3896d0c
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-edit.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-reload-white.png b/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-reload-white.png
new file mode 100644
index 00000000..78d146ec
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-reload-white.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-reload.png b/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-reload.png
new file mode 100644
index 00000000..685a5cb2
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/slate-toolbar-reload.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/stop.png b/resources/library/interactivities/Etudier.wgt/img/stop.png
new file mode 100644
index 00000000..782c41cf
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/stop.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/top.png b/resources/library/interactivities/Etudier.wgt/img/top.png
new file mode 100644
index 00000000..78d6ac4f
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/top.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/top_left.png b/resources/library/interactivities/Etudier.wgt/img/top_left.png
new file mode 100644
index 00000000..8280ab4b
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/top_left.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/top_right.png b/resources/library/interactivities/Etudier.wgt/img/top_right.png
new file mode 100644
index 00000000..fe0286d0
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/top_right.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/turn_left.png b/resources/library/interactivities/Etudier.wgt/img/turn_left.png
new file mode 100644
index 00000000..dec05d2e
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/turn_left.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/turn_left2.png b/resources/library/interactivities/Etudier.wgt/img/turn_left2.png
new file mode 100644
index 00000000..2dc4648e
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/turn_left2.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/turn_right.png b/resources/library/interactivities/Etudier.wgt/img/turn_right.png
new file mode 100644
index 00000000..d3dec5a3
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/turn_right.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/img/turn_right11.png b/resources/library/interactivities/Etudier.wgt/img/turn_right11.png
new file mode 100644
index 00000000..227ae3b2
Binary files /dev/null and b/resources/library/interactivities/Etudier.wgt/img/turn_right11.png differ
diff --git a/resources/library/interactivities/Etudier.wgt/index.html b/resources/library/interactivities/Etudier.wgt/index.html
new file mode 100644
index 00000000..a2913915
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/index.html
@@ -0,0 +1,82 @@
+
+
+
+ D'n'd
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/library/interactivities/Etudier.wgt/js/easySlider1.5.js b/resources/library/interactivities/Etudier.wgt/js/easySlider1.5.js
new file mode 100644
index 00000000..c5d8b972
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/js/easySlider1.5.js
@@ -0,0 +1,197 @@
+(function($) {
+
+ var s = 0;
+ var w = 0;
+ var h = 0;
+ var t = 0;
+ var ts = 0;
+
+ $.fn.setSize = function(width, height){
+ w = width;
+ h = height;
+ $(this).find("ul").css('width',s*w);
+ $("ul", $(this)).animate(
+ {
+ marginLeft: (t*w*-1)
+ },
+ 0
+ );
+ }
+
+ $.fn.removeSlide = function(){
+ s = $("li", $(this)).length;
+ $(this).find("ul").css('width',s*w);
+ ts = s-1;
+ }
+
+ $.fn.addSlide = function(place){
+ s = $("li", $(this)).length;
+ ts = s-1;
+ $(this).find("ul").css('width',s*w);
+ if(place == "after")
+ $("a","#nextBtn").trigger("click");
+ }
+
+ $.fn.goToSlide = function(dest){
+ t = dest;
+ p = (t*w*-1);
+ $("ul",$(this)).animate(
+ {
+ marginLeft: p
+ },
+ 0
+ );
+ }
+
+ $.fn.getPage = function(){
+ return t;
+ }
+
+ $.fn.easySlider = function(options){
+
+ // default configuration properties
+ var defaults = {
+ prevId: 'prevBtn',
+ prevText: 'Previous',
+ nextId: 'nextBtn',
+ nextText: 'Next',
+ controlsShow: true,
+ controlsBefore: '',
+ controlsAfter: '',
+ controlsFade: true,
+ firstId: 'firstBtn',
+ firstText: 'First',
+ firstShow: false,
+ lastId: 'lastBtn',
+ lastText: 'Last',
+ lastShow: false,
+ vertical: false,
+ speed: 800,
+ auto: false,
+ pause: 2000,
+ continuous: false
+ };
+
+ options = $.extend(defaults, options);
+
+ this.each(function() {
+ var obj = $(this);
+ s = $("li", obj).length;
+ w = $("li", obj).width();
+ h = $("li", obj).height();
+ obj.width(w);
+ obj.height(h);
+ obj.css("overflow","hidden");
+ ts = s-1;
+ t = 0;
+ $("ul", obj).css('width',s*w);
+ if(!options.vertical) $("li", obj).css('float','left');
+
+ if(options.controlsShow){
+ var html = options.controlsBefore;
+ if(options.firstShow) html += ''+ options.firstText +' ';
+ html += ' '+ options.prevText +' ';
+ html += ' '+ options.nextText +' ';
+ if(options.lastShow) html += ' '+ options.lastText +' ';
+ html += options.controlsAfter;
+ $(obj).after(html);
+ };
+
+ $("a","#"+options.nextId).click(function(){
+ animate("next",true);
+ });
+ $("a","#"+options.prevId).click(function(){
+ animate("prev",true);
+ });
+ $("a","#"+options.firstId).click(function(){
+ animate("first",true);
+ });
+ $("a","#"+options.lastId).click(function(){
+ animate("last",true);
+ });
+
+ function animate(dir,clicked){
+ var ot = t;
+ switch(dir){
+ case "next":
+ t = (ot>=ts) ? (options.continuous ? 0 : ts) : ++t;
+ break;
+ case "prev":
+ t = (t<=0) ? (options.continuous ? ts : 0) : --t;
+ break;
+ case "first":
+ t = 0;
+ break;
+ case "last":
+ t = ts;
+ break;
+ default:
+ break;
+ };
+
+ var diff = Math.abs(ot-t);
+ var speed = diff*options.speed;
+ if(!options.vertical) {
+ p = (t*w*-1);
+ $("ul",obj).animate(
+ {
+ marginLeft: p
+ },
+ speed
+ );
+ } else {
+ p = (t*h*-1);
+ $("ul",obj).animate(
+ {
+ marginTop: p
+ },
+ speed
+ );
+ };
+
+ if(!options.continuous && options.controlsFade){
+ if(t==ts){
+ $("a","#"+options.nextId).hide();
+ $("a","#"+options.lastId).hide();
+ } else {
+ $("a","#"+options.nextId).show();
+ $("a","#"+options.lastId).show();
+ };
+ if(t==0){
+ $("a","#"+options.prevId).hide();
+ $("a","#"+options.firstId).hide();
+ } else {
+ $("a","#"+options.prevId).show();
+ $("a","#"+options.firstId).show();
+ };
+ };
+
+ if(clicked) clearTimeout(timeout);
+ if(options.auto && dir=="next" && !clicked){
+ timeout = setTimeout(function(){
+ animate("next",false);
+ },diff*options.speed+options.pause);
+ };
+
+ };
+ // init
+ var timeout;
+ if(options.auto){
+ timeout = setTimeout(function(){
+ animate("next",false);
+ },options.pause);
+ };
+
+ if(!options.continuous && options.controlsFade){
+ $("a","#"+options.prevId).hide();
+ $("a","#"+options.firstId).hide();
+ };
+
+ });
+
+ };
+
+})(jQuery);
+
+
+
diff --git a/resources/library/interactivities/Etudier.wgt/js/jquery-1.6.2.min.js b/resources/library/interactivities/Etudier.wgt/js/jquery-1.6.2.min.js
new file mode 100644
index 00000000..48590ecb
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/js/jquery-1.6.2.min.js
@@ -0,0 +1,18 @@
+/*!
+ * jQuery JavaScript Library v1.6.2
+ * http://jquery.com/
+ *
+ * Copyright 2011, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2011, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Thu Jun 30 14:16:56 2011 -0400
+ */
+(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;ca ",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j =0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.
+shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c ",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML=" ",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="
";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/",""],legend:[1,""," "],thead:[1,""],tr:[2,""],td:[3,""],col:[2,""],area:[1,""," "],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1>$2>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j
+)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1>$2>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/library/interactivities/Etudier.wgt/locales/fr/js/script.js b/resources/library/interactivities/Etudier.wgt/locales/fr/js/script.js
new file mode 100644
index 00000000..83a4a181
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/locales/fr/js/script.js
@@ -0,0 +1,612 @@
+var sankoreLang = {
+ display: "Afficher",
+ edit: "Modifier",
+ text_content: "Ceci est un exemple. Au lieu de ce texte, vous pouvez mettre votre propre texte ou glisser-déposer une image, un son.",
+ new_txt: "Nouveau bloc de texte",
+ new_slide: "Ceci est une nouvelle diapositive.",
+ wgt_name: "Etudier",
+ slate: "Bois",
+ pad: "Pad"
+};
+
+//some flags
+var mouse_state = false;
+
+//object for resize
+var resize_obj = {
+ object: null,
+ top: 0,
+ left: 0,
+ clicked: false
+}
+
+//main function
+function start(){
+
+ $("#wgt_display").text(sankoreLang.display);
+ $("#wgt_edit").text(sankoreLang.edit);
+ $("#wgt_name").text(sankoreLang.wgt_name);
+ $(".style_select option[value='1']").text(sankoreLang.slate);
+ $(".style_select option[value='2']").text(sankoreLang.pad);
+
+ if(window.sankore){
+ if(sankore.preference("etudier","")){
+ var data = jQuery.parseJSON(sankore.preference("etudier",""));
+ importData(data);
+ }
+ else
+ showExample();
+ if(sankore.preference("etudier_style","")){
+ changeStyle(sankore.preference("etudier_style",""));
+ $(".style_select").val(sankore.preference("etudier_style",""));
+ } else
+ changeStyle(1)
+ }
+ else
+ showExample();
+
+ //events
+ if (window.widget) {
+ window.widget.onleave = function(){
+ exportData();
+ sankore.setPreference("etudier_style", $(".style_select").find("option:selected").val());
+ sankore.setPreference("etudier_cur_page", $("#slider").getPage());
+ sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display"));
+ sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display"));
+ }
+ }
+
+ $(".style_select").change(function (event){
+ changeStyle($(this).find("option:selected").val());
+ })
+
+ $("#wgt_display, #wgt_edit").click(function(event){
+ if(this.id == "wgt_display"){
+ if(!$(this).hasClass("selected")){
+ if(window.sankore)
+ sankore.enableDropOnWidget(false);
+ $(this).addClass("selected");
+ $("#wgt_edit").removeClass("selected");
+ $(".style_select").css("display","none");
+
+ $("#slider li>div").each(function(){
+ var container = $(this);
+ container.removeAttr("ondragenter")
+ .removeAttr("ondragleave")
+ .removeAttr("ondragover")
+ .removeAttr("ondrop");
+
+ container.find(".text_block").each(function(){
+ $(this).draggable();
+ $(this).find(".move_block").remove();
+ $(this).find(".close_img").remove();
+ $(this).find(".size_up").remove();
+ $(this).find(".size_down").remove();
+ $(this).find(".resize_block").remove();
+ $(this).removeAttr("contenteditable").removeClass("block_border");
+ $(this).css("position","absolute");
+ });
+
+ container.find(".img_block").each(function(){
+ $(this).draggable();
+ $(this).find(".close_img").remove();
+ $(this).find(".move_block").remove();
+ $(this).find(".resize_block").remove();
+ $(this).removeClass("block_border");
+ $(this).css("position","absolute");
+ });
+
+ container.find(".audio_block").each(function(){
+ $(this).find(".close_img").remove();
+ $(this).removeClass("block_border");
+ $(this).css("position","absolute");
+ });
+
+ container.find(".add_left").remove();
+ container.find(".add_right").remove();
+ container.find(".close_slide").remove();
+ container.find(".add_text").remove();
+ });
+ $(this).css("display", "none");
+ $("#wgt_edit").css("display", "block");
+ }
+ } else {
+ if(!$(this).hasClass("selected")){
+ if(window.sankore)
+ sankore.enableDropOnWidget(true);
+ $(this).addClass("selected");
+ $("#wgt_display").removeClass("selected");
+ $(".style_select").css("display","block");
+
+ $("#slider li>div").each(function(){
+ var container = $(this);
+ container.attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).css(\"background-color\",\"white\"); return false;")
+ .attr("ondragover", "$(this).css(\"background-color\",\"#ccc\"); return false;")
+ .attr("ondrop", "$(this).css(\"background-color\",\"white\"); return onDropTarget(this,event);");
+
+ container.find(".text_block").each(function(){
+ $(this).draggable("destroy");
+ $("").appendTo($(this));
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $(this).attr("contenteditable", "true").addClass("block_border");
+ });
+
+ container.find(".img_block").each(function(){
+ $(this).draggable("destroy");
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $(this).addClass("block_border");
+ });
+
+ container.find(".audio_block").each(function(){
+ $("
").appendTo($(this));
+ $(this).addClass("block_border");
+ });
+
+ $("
").appendTo(container);
+ $("
").appendTo(container);
+ $("
").appendTo(container);
+ $("
").appendTo(container);
+ });
+ $(this).css("display", "none");
+ $("#wgt_display").css("display", "block");
+ }
+ }
+
+ $("audio").each(function(){
+ this.pause();
+ $(this).parent().find(":first-child").removeClass("stop").addClass("play");
+ });
+
+ });
+
+ //deleting the img block
+ $(".close_img").live("click", function(){
+ $(this).parent().remove();
+ });
+
+ //increase a size of text
+ $(".size_up").live("click", function(){
+ $(this).parent().height("");
+ var fz = parseInt($(this).parent().css("font-size").replace("px", ""));
+ $(this).parent().css("font-size", fz+1 + "px");
+ });
+
+ //decrease a size of text
+ $(".size_down").live("click", function(){
+ var fz = parseInt($(this).parent().css("font-size").replace("px", ""));
+ fz = ((fz - 1) < 8)?8:fz-1;
+ $(this).parent().css("font-size", fz + "px");
+ });
+
+ //play/pause event
+ $(".play, .stop").live("click", function(){
+ var tmp_audio = $(this);
+ var audio = tmp_audio.parent().find("audio").get(0);
+ if($(this).hasClass("play")){
+ if(tmp_audio.parent().find("source").attr("src")){
+ tmp_audio.removeClass("play").addClass("stop");
+ var id = setInterval(function(){
+ if(audio.currentTime == audio.duration){
+ clearInterval(id);
+ tmp_audio.removeClass("stop").addClass("play");
+ }
+ }, 10);
+ tmp_audio.parent().find("input").val(id);
+ audio.play();
+ }
+ } else {
+ $(this).removeClass("stop").addClass("play");
+ clearInterval( tmp_audio.parent().find("input").val())
+ audio.pause();
+ }
+ });
+
+ $(".replay").live("click", function(){
+ var tmp_audio = $(this).prev();
+ var audio = $(this).parent().find("audio").get(0);
+ if(tmp_audio.parent().find("source").attr("src")){
+ $(this).prev().removeClass("play").addClass("stop");
+ clearInterval($(this).parent().find("input").val());
+ var id = setInterval(function(){
+ if(audio.currentTime == audio.duration){
+ clearInterval(id);
+ tmp_audio.removeClass("stop").addClass("play");
+ }
+ }, 10);
+ tmp_audio.parent().find("input").val(id);
+ audio.currentTime = 0;
+ audio.play();
+ }
+ });
+
+ //moving objects
+ $(".move_block").live("mouseover",function(){
+ $(this).parent().draggable();
+ });
+
+ $(".move_block").live("mouseleave",function(){
+ if(!mouse_state)
+ $(this).parent().draggable("destroy");
+ });
+
+ $(".move_block").live("mousedown",function(){
+ mouse_state = true;
+ });
+
+ $(".move_block").live("mouseup",function(){
+ mouse_state = false;
+ });
+
+ //resize block
+ $(".resize_block").live("mousedown", function(){
+ resize_obj.object = $(this);
+ resize_obj.top = event.clientY;
+ resize_obj.left = event.clientX;
+ resize_obj.clicked = true;
+ })
+
+ $("li>div").live("mouseup", function(){
+ resize_obj.object = null;
+ resize_obj.top = 0;
+ resize_obj.left = 0;
+ resize_obj.clicked = false;
+ })
+
+ $("li>div").live("mousemove", function(){
+ if(resize_obj.clicked){
+ if(resize_obj.object.parent().hasClass("text_block")){
+ var width = resize_obj.object.parent().width() - resize_obj.left + event.clientX;
+ var height = resize_obj.object.parent().height() - resize_obj.top + event.clientY;
+ resize_obj.left = event.clientX;
+ resize_obj.top = event.clientY;
+ resize_obj.object.parent().width(width).height(height);
+ } else {
+ width = resize_obj.object.parent().width() - resize_obj.left + event.clientX;
+ height = resize_obj.object.parent().height() - resize_obj.top + event.clientY;
+ var img_width = resize_obj.object.parent().find("img").width() - resize_obj.left + event.clientX;
+ var img_height = resize_obj.object.parent().find("img").height() - resize_obj.top + event.clientY;
+ resize_obj.left = event.clientX;
+ resize_obj.top = event.clientY;
+ resize_obj.object.parent().width(width).height(height);
+ resize_obj.object.parent().find("img").width(img_width).height(img_height);
+ }
+ }
+ });
+
+ //closing a slide
+ $(".close_slide").live("click", function(){
+ $(this).parent().parent().remove();
+ $("#slider").removeSlide();
+ });
+
+ //adding new slides
+ $(".add_left").live("click", function(){
+ var cur_li = $(this).parent().parent();
+ var new_li = $("
");
+ new_li.width(cur_li.width()).height(cur_li.height()).css("float","left");
+ var new_div = $("").appendTo(new_li);
+ new_div.attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).css(\"background-color\",\"white\"); return false;")
+ .attr("ondragover", "$(this).css(\"background-color\",\"#ccc\"); return false;")
+ .attr("ondrop", "$(this).css(\"background-color\",\"white\"); return onDropTarget(this,event);");
+ var example = $("
" + sankoreLang.new_slide + "
").addClass("block_border");
+ $("
").appendTo(example);
+ $("
").appendTo(example);
+ $("
").appendTo(example);
+ example.css("top","40%").css("left","40%");
+ new_div.append(example);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ new_li.insertBefore(cur_li);
+ $("#slider").addSlide("before");
+ });
+
+ $(".add_right").live("click", function(){
+ var cur_li = $(this).parent().parent();
+ var new_li = $("
");
+ new_li.width(cur_li.width()).height(cur_li.height()).css("float","left");
+ var new_div = $("").appendTo(new_li);
+ new_div.attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).css(\"background-color\",\"white\"); return false;")
+ .attr("ondragover", "$(this).css(\"background-color\",\"#ccc\"); return false;")
+ .attr("ondrop", "$(this).css(\"background-color\",\"white\"); return onDropTarget(this,event);");
+ var example = $("
" + sankoreLang.new_slide + "
").addClass("block_border");
+ $("
").appendTo(example);
+ $("
").appendTo(example);
+ $("
").appendTo(example);
+ example.css("top","40%").css("left","40%");
+ new_div.append(example);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ new_li.insertAfter(cur_li);
+ $("#slider").addSlide("after");
+ });
+
+ $(".add_text").live("click", function(){
+ var container = $(this).parent();
+ var text_block = $("
" + sankoreLang.new_txt + "
").appendTo(container);
+ $("
").appendTo(text_block);
+ $("
").appendTo(text_block);
+ $("
").appendTo(text_block);
+ $("
").appendTo(text_block);
+ $("
").appendTo(text_block);
+ text_block.attr("contenteditable", "true").addClass("block_border");
+ });
+}
+
+//export
+function exportData(){
+ var array_to_export = [];
+ $("#slider li>div").each(function(){
+ var cont_obj = new Object();
+ cont_obj.w = $(this).parent().width();
+ cont_obj.h = $(this).parent().height();
+ cont_obj.text = [];
+ $(this).find(".text_block").each(function(){
+ var txt_block = new Object();
+ txt_block.top = $(this).position().top;
+ txt_block.left = $(this).position().left;
+ txt_block.h = $(this).height();
+ txt_block.w = $(this).width();
+ txt_block.fz = $(this).css("font-size");
+ txt_block.val = $(this).text();
+ cont_obj.text.push(txt_block);
+ });
+ cont_obj.imgs = [];
+ $(this).find(".img_block").each(function(){
+ var img_obj = new Object();
+ img_obj.link = $(this).find("img").attr("src").replace("../../","");
+ img_obj.h = $(this).find("img").height();
+ img_obj.w = $(this).find("img").width();
+ img_obj.block_h = $(this).height();
+ img_obj.block_w = $(this).width();
+ img_obj.top = $(this).position().top;
+ img_obj.left = $(this).position().left;
+ cont_obj.imgs.push(img_obj);
+ });
+ cont_obj.audio = [];
+ $(this).find(".audio_block").each(function(){
+ var audio_block = new Object();
+ audio_block.top = $(this).position().top;
+ audio_block.left = $(this).position().left;
+ audio_block.val = $(this).find("source").attr("src").replace("../../","");
+ cont_obj.audio.push(audio_block);
+ });
+ array_to_export.push(cont_obj);
+ });
+ sankore.setPreference("etudier", JSON.stringify(array_to_export));
+}
+
+//import
+function importData(data){
+
+ var width = 0;
+ var height = 0;
+
+ for(var i in data){
+
+ width = data[i].w;
+ height = data[i].h;
+ var li = $("
");
+ var div = $("").appendTo(li);
+
+ for(var j in data[i].text){
+ var text_div = $("
" + data[i].text[j].val + "
");
+ text_div.draggable().css("position","absolute")
+ .width(data[i].text[j].w)
+ .height(data[i].text[j].h)
+ .css("top", data[i].text[j].top)
+ .css("left", data[i].text[j].left)
+ .css("font-size", data[i].text[j].fz)
+ .appendTo(div);
+ }
+
+ for(j in data[i].imgs){
+ var img_div = $("
");
+ img_div.draggable().css("position","absolute")
+ .width(data[i].imgs[j].block_w)
+ .height(data[i].imgs[j].block_h)
+ .css("top", data[i].imgs[j].top)
+ .css("left", data[i].imgs[j].left)
+ .appendTo(div);
+ $("
").appendTo(img_div);
+ }
+
+ for(j in data[i].audio){
+ var audio_div = $("
");
+ $("
").appendTo(audio_div);
+ $("
").appendTo(audio_div);
+ var tmp_audio = $("
").appendTo(audio_div);
+ $(" ").appendTo(tmp_audio);
+ audio_div.draggable().css("position","absolute")
+ .css("top", data[i].audio[j].top)
+ .css("left", data[i].audio[j].left)
+ .appendTo(div);
+ }
+
+ $("#slider ul").append(li);
+
+ }
+
+ $(window).trigger("resize")
+
+ $("#slider").width(width).height(height).easySlider({
+ prevText: '',
+ nextText: '',
+ controlsShow: false
+ });
+ $("#slider").goToSlide(sankore.preference("etudier_cur_page",""));
+ $("#prevBtn a").css("display", sankore.preference("etudier_left_nav",""));
+ $("#nextBtn a").css("display", sankore.preference("etudier_right_nav",""));
+}
+
+//example
+function showExample(){
+
+ var li1 = $("");
+ var div1 = $("").appendTo(li1);
+ $("
" + sankoreLang.text_content + "
").draggable().appendTo(div1)
+ li1.width($("#slider").width()).height($("#slider").height());
+ $("#slider ul").append(li1);
+ var li2 = $("
");
+ var div2 = $("").appendTo(li2);
+ var img = $("
").draggable().appendTo(div2);
+ $("
").appendTo(img);
+ li2.width($("#slider").width()).height($("#slider").height());
+ $("#slider ul").append(li2);
+ var li3 = $("
");
+ var div3 = $("").appendTo(li3);
+ li3.width($("#slider").width()).height($("#slider").height());
+ var audio_block = $("
").draggable().appendTo(div3);
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ var source = $("
").attr("src", "../../objects/bateaux.mp3");
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ $("#slider ul").append(li3);
+ var li4 = $("");
+ var div4 = $("").appendTo(li4);
+ $("
" + sankoreLang.text_content + "
").draggable().appendTo(div4);
+ var img2 = $("
").draggable().appendTo(div4);
+ $("
").appendTo(img2);
+ var audio_block2 = $("
").draggable().appendTo(div4);
+ $("
").appendTo(audio_block2);
+ $("
").appendTo(audio_block2);
+ var source2 = $("
").attr("src", "../../objects/bateaux.mp3");
+ var audio2 = $("
").appendTo(audio_block2);
+ audio2.append(source2);
+ li4.width($("#slider").width()).height($("#slider").height());
+ $("#slider ul").append(li4);
+ $(".text_block, .audio_block, .img_block").each(function(){
+ $(this).css("position","absolute");
+ });
+ $("#slider").easySlider({
+ prevText: '',
+ nextText: '',
+ controlsShow: false
+ });
+}
+
+//string into xml-format
+function stringToXML(text){
+ if (window.ActiveXObject){
+ var doc=new ActiveXObject('Microsoft.XMLDOM');
+ doc.async='false';
+ doc.loadXML(text);
+ } else {
+ var parser=new DOMParser();
+ doc=parser.parseFromString(text,'text/xml');
+ }
+ return doc;
+}
+
+//changing the style
+function changeStyle(val){
+ if(val == 1){
+ $(".b_top_left").removeClass("btl_pad");
+ $(".b_top_center").removeClass("btc_pad");
+ $(".b_top_right").removeClass("btr_pad");
+ $(".b_center_left").removeClass("bcl_pad");
+ $(".b_center_right").removeClass("bcr_pad");
+ $(".b_bottom_right").removeClass("bbr_pad");
+ $(".b_bottom_left").removeClass("bbl_pad");
+ $(".b_bottom_center").removeClass("bbc_pad");
+ $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_name").removeClass("pad_color");
+ $(".style_select").removeClass("pad_select");
+ } else {
+ $(".b_top_left").addClass("btl_pad");
+ $(".b_top_center").addClass("btc_pad");
+ $(".b_top_right").addClass("btr_pad");
+ $(".b_center_left").addClass("bcl_pad");
+ $(".b_center_right").addClass("bcr_pad");
+ $(".b_bottom_right").addClass("bbr_pad");
+ $(".b_bottom_left").addClass("bbl_pad");
+ $(".b_bottom_center").addClass("bbc_pad");
+ $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_display").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_name").addClass("pad_color");
+ $(".style_select").addClass("pad_select");
+ }
+}
+
+//drop handler
+function onDropTarget(obj, event) {
+ if (event.dataTransfer) {
+ var format = "text/plain";
+ var textData = event.dataTransfer.getData(format);
+ if (!textData) {
+ alert(":(");
+ }
+ textData = stringToXML(textData);
+ var tmp = textData.getElementsByTagName("path")[0].firstChild.textContent;
+ var tmp_type = textData.getElementsByTagName("type")[0].firstChild.textContent;
+ if(tmp_type.substr(0, 5) == "audio"){
+ var audio_block = $("").draggable().appendTo($(obj));
+ audio_block.css("position","absolute").css("top",event.clientY).css("left",event.clientX);
+ $("
").appendTo(audio_block);
+ audio_block.addClass("block_border");
+ $("
").appendTo(audio_block);
+ $("
").appendTo(audio_block);
+ var source = $("
").attr("src", "../../" + tmp);
+ var audio = $("
").appendTo(audio_block);
+ audio.append(source);
+ } else {
+ var img_block = $("
").appendTo($(obj));
+ img_block.css("top",event.clientY).css("left",event.clientX);
+ $("").appendTo(img_block);
+ $("
").appendTo(img_block);
+ $("
").appendTo(img_block);
+ img_block.addClass("block_border");
+ var tmp_img = $("
").appendTo(img_block);
+ setTimeout(function(){
+ if(tmp_img.height() >= tmp_img.width())
+ tmp_img.attr("height", "120");
+ else{
+ tmp_img.attr("width","120");
+ tmp_img.css("margin",(120 - tmp_img.height())/2 + "px 0");
+ }
+ }, 6)
+ }
+ }
+ else {
+ alert ("Your browser does not support the dataTransfer object.");
+ }
+
+ if (event.stopPropagation) {
+ event.stopPropagation ();
+ }
+ else {
+ event.cancelBubble = true;
+ }
+ return false;
+}
+
+if (window.widget) {
+ window.widget.onremove = function(){
+ $("audio").each(function(){
+ this.pause();
+ $(this).parent().find(":first-child").removeClass("stop").addClass("play");
+ });
+ }
+}
+
+$(window).resize(function(){
+ var slider = $("#slider");
+ slider.width($(this).width() - 108).height($(this).height() - 108);
+ $("#slider li").each(function(){
+ $(this).width(slider.width()).height(slider.height());
+ });
+ slider.setSize(slider.width(), slider.height());
+})
diff --git a/resources/library/interactivities/Etudier.wgt/locales/ru/index.html b/resources/library/interactivities/Etudier.wgt/locales/ru/index.html
new file mode 100644
index 00000000..67244de2
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/locales/ru/index.html
@@ -0,0 +1,56 @@
+
+
+
+
D'n'd
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/library/interactivities/Etudier.wgt/locales/ru/js/script.js b/resources/library/interactivities/Etudier.wgt/locales/ru/js/script.js
new file mode 100644
index 00000000..bc12ccc4
--- /dev/null
+++ b/resources/library/interactivities/Etudier.wgt/locales/ru/js/script.js
@@ -0,0 +1,612 @@
+var sankoreLang = {
+ display: "Показать",
+ edit: "Изменить",
+ text_content: "Это - пример. Вместо этого текста вы можете ввести свой собственный контент.",
+ new_txt: "Новый текстовый блок.",
+ new_slide: "Это - новый слайд.",
+ wgt_name: "Слайдер",
+ slate: "Узор",
+ pad: "Планшет"
+};
+
+//some flags
+var mouse_state = false;
+
+//object for resize
+var resize_obj = {
+ object: null,
+ top: 0,
+ left: 0,
+ clicked: false
+}
+
+//main function
+function start(){
+
+ $("#wgt_display").text(sankoreLang.display);
+ $("#wgt_edit").text(sankoreLang.edit);
+ $("#wgt_name").text(sankoreLang.wgt_name);
+ $(".style_select option[value='1']").text(sankoreLang.slate);
+ $(".style_select option[value='2']").text(sankoreLang.pad);
+
+ if(window.sankore){
+ if(sankore.preference("etudier","")){
+ var data = jQuery.parseJSON(sankore.preference("etudier",""));
+ importData(data);
+ }
+ else
+ showExample();
+ if(sankore.preference("etudier_style","")){
+ changeStyle(sankore.preference("etudier_style",""));
+ $(".style_select").val(sankore.preference("etudier_style",""));
+ } else
+ changeStyle(1)
+ }
+ else
+ showExample();
+
+ //events
+ if (window.widget) {
+ window.widget.onleave = function(){
+ exportData();
+ sankore.setPreference("etudier_style", $(".style_select").find("option:selected").val());
+ sankore.setPreference("etudier_cur_page", $("#slider").getPage());
+ sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display"));
+ sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display"));
+ }
+ }
+
+ $(".style_select").change(function (event){
+ changeStyle($(this).find("option:selected").val());
+ })
+
+ $("#wgt_display, #wgt_edit").click(function(event){
+ if(this.id == "wgt_display"){
+ if(!$(this).hasClass("selected")){
+ if(window.sankore)
+ sankore.enableDropOnWidget(false);
+ $(this).addClass("selected");
+ $("#wgt_edit").removeClass("selected");
+ $(".style_select").css("display","none");
+
+ $("#slider li>div").each(function(){
+ var container = $(this);
+ container.removeAttr("ondragenter")
+ .removeAttr("ondragleave")
+ .removeAttr("ondragover")
+ .removeAttr("ondrop");
+
+ container.find(".text_block").each(function(){
+ $(this).draggable();
+ $(this).find(".move_block").remove();
+ $(this).find(".close_img").remove();
+ $(this).find(".size_up").remove();
+ $(this).find(".size_down").remove();
+ $(this).find(".resize_block").remove();
+ $(this).removeAttr("contenteditable").removeClass("block_border");
+ $(this).css("position","absolute");
+ });
+
+ container.find(".img_block").each(function(){
+ $(this).draggable();
+ $(this).find(".close_img").remove();
+ $(this).find(".move_block").remove();
+ $(this).find(".resize_block").remove();
+ $(this).removeClass("block_border");
+ $(this).css("position","absolute");
+ });
+
+ container.find(".audio_block").each(function(){
+ $(this).find(".close_img").remove();
+ $(this).removeClass("block_border");
+ $(this).css("position","absolute");
+ });
+
+ container.find(".add_left").remove();
+ container.find(".add_right").remove();
+ container.find(".close_slide").remove();
+ container.find(".add_text").remove();
+ });
+ $(this).css("display", "none");
+ $("#wgt_edit").css("display", "block");
+ }
+ } else {
+ if(!$(this).hasClass("selected")){
+ if(window.sankore)
+ sankore.enableDropOnWidget(true);
+ $(this).addClass("selected");
+ $("#wgt_display").removeClass("selected");
+ $(".style_select").css("display","block");
+
+ $("#slider li>div").each(function(){
+ var container = $(this);
+ container.attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).css(\"background-color\",\"white\"); return false;")
+ .attr("ondragover", "$(this).css(\"background-color\",\"#ccc\"); return false;")
+ .attr("ondrop", "$(this).css(\"background-color\",\"white\"); return onDropTarget(this,event);");
+
+ container.find(".text_block").each(function(){
+ $(this).draggable("destroy");
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $(this).attr("contenteditable", "true").addClass("block_border");
+ });
+
+ container.find(".img_block").each(function(){
+ $(this).draggable("destroy");
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $("
").appendTo($(this));
+ $(this).addClass("block_border");
+ });
+
+ container.find(".audio_block").each(function(){
+ $("
").appendTo($(this));
+ $(this).addClass("block_border");
+ });
+
+ $("
").appendTo(container);
+ $("
").appendTo(container);
+ $("
").appendTo(container);
+ $("
").appendTo(container);
+ });
+ $(this).css("display", "none");
+ $("#wgt_display").css("display", "block");
+ }
+ }
+
+ $("audio").each(function(){
+ this.pause();
+ $(this).parent().find(":first-child").removeClass("stop").addClass("play");
+ });
+
+ });
+
+ //deleting the img block
+ $(".close_img").live("click", function(){
+ $(this).parent().remove();
+ });
+
+ //increase a size of text
+ $(".size_up").live("click", function(){
+ $(this).parent().height("");
+ var fz = parseInt($(this).parent().css("font-size").replace("px", ""));
+ $(this).parent().css("font-size", fz+1 + "px");
+ });
+
+ //decrease a size of text
+ $(".size_down").live("click", function(){
+ var fz = parseInt($(this).parent().css("font-size").replace("px", ""));
+ fz = ((fz - 1) < 8)?8:fz-1;
+ $(this).parent().css("font-size", fz + "px");
+ });
+
+ //play/pause event
+ $(".play, .stop").live("click", function(){
+ var tmp_audio = $(this);
+ var audio = tmp_audio.parent().find("audio").get(0);
+ if($(this).hasClass("play")){
+ if(tmp_audio.parent().find("source").attr("src")){
+ tmp_audio.removeClass("play").addClass("stop");
+ var id = setInterval(function(){
+ if(audio.currentTime == audio.duration){
+ clearInterval(id);
+ tmp_audio.removeClass("stop").addClass("play");
+ }
+ }, 10);
+ tmp_audio.parent().find("input").val(id);
+ audio.play();
+ }
+ } else {
+ $(this).removeClass("stop").addClass("play");
+ clearInterval( tmp_audio.parent().find("input").val())
+ audio.pause();
+ }
+ });
+
+ $(".replay").live("click", function(){
+ var tmp_audio = $(this).prev();
+ var audio = $(this).parent().find("audio").get(0);
+ if(tmp_audio.parent().find("source").attr("src")){
+ $(this).prev().removeClass("play").addClass("stop");
+ clearInterval($(this).parent().find("input").val());
+ var id = setInterval(function(){
+ if(audio.currentTime == audio.duration){
+ clearInterval(id);
+ tmp_audio.removeClass("stop").addClass("play");
+ }
+ }, 10);
+ tmp_audio.parent().find("input").val(id);
+ audio.currentTime = 0;
+ audio.play();
+ }
+ });
+
+ //moving objects
+ $(".move_block").live("mouseover",function(){
+ $(this).parent().draggable();
+ });
+
+ $(".move_block").live("mouseleave",function(){
+ if(!mouse_state)
+ $(this).parent().draggable("destroy");
+ });
+
+ $(".move_block").live("mousedown",function(){
+ mouse_state = true;
+ });
+
+ $(".move_block").live("mouseup",function(){
+ mouse_state = false;
+ });
+
+ //resize block
+ $(".resize_block").live("mousedown", function(){
+ resize_obj.object = $(this);
+ resize_obj.top = event.clientY;
+ resize_obj.left = event.clientX;
+ resize_obj.clicked = true;
+ })
+
+ $("li>div").live("mouseup", function(){
+ resize_obj.object = null;
+ resize_obj.top = 0;
+ resize_obj.left = 0;
+ resize_obj.clicked = false;
+ })
+
+ $("li>div").live("mousemove", function(){
+ if(resize_obj.clicked){
+ if(resize_obj.object.parent().hasClass("text_block")){
+ var width = resize_obj.object.parent().width() - resize_obj.left + event.clientX;
+ var height = resize_obj.object.parent().height() - resize_obj.top + event.clientY;
+ resize_obj.left = event.clientX;
+ resize_obj.top = event.clientY;
+ resize_obj.object.parent().width(width).height(height);
+ } else {
+ width = resize_obj.object.parent().width() - resize_obj.left + event.clientX;
+ height = resize_obj.object.parent().height() - resize_obj.top + event.clientY;
+ var img_width = resize_obj.object.parent().find("img").width() - resize_obj.left + event.clientX;
+ var img_height = resize_obj.object.parent().find("img").height() - resize_obj.top + event.clientY;
+ resize_obj.left = event.clientX;
+ resize_obj.top = event.clientY;
+ resize_obj.object.parent().width(width).height(height);
+ resize_obj.object.parent().find("img").width(img_width).height(img_height);
+ }
+ }
+ });
+
+ //closing a slide
+ $(".close_slide").live("click", function(){
+ $(this).parent().parent().remove();
+ $("#slider").removeSlide();
+ });
+
+ //adding new slides
+ $(".add_left").live("click", function(){
+ var cur_li = $(this).parent().parent();
+ var new_li = $("
");
+ new_li.width(cur_li.width()).height(cur_li.height()).css("float","left");
+ var new_div = $("").appendTo(new_li);
+ new_div.attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).css(\"background-color\",\"white\"); return false;")
+ .attr("ondragover", "$(this).css(\"background-color\",\"#ccc\"); return false;")
+ .attr("ondrop", "$(this).css(\"background-color\",\"white\"); return onDropTarget(this,event);");
+ var example = $("
" + sankoreLang.new_slide + "
").addClass("block_border");
+ $("
").appendTo(example);
+ $("
").appendTo(example);
+ $("
").appendTo(example);
+ example.css("top","40%").css("left","40%");
+ new_div.append(example);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ new_li.insertBefore(cur_li);
+ $("#slider").addSlide("before");
+ });
+
+ $(".add_right").live("click", function(){
+ var cur_li = $(this).parent().parent();
+ var new_li = $("
");
+ new_li.width(cur_li.width()).height(cur_li.height()).css("float","left");
+ var new_div = $("").appendTo(new_li);
+ new_div.attr("ondragenter", "return false;")
+ .attr("ondragleave", "$(this).css(\"background-color\",\"white\"); return false;")
+ .attr("ondragover", "$(this).css(\"background-color\",\"#ccc\"); return false;")
+ .attr("ondrop", "$(this).css(\"background-color\",\"white\"); return onDropTarget(this,event);");
+ var example = $("
" + sankoreLang.new_slide + "
").addClass("block_border");
+ $("
").appendTo(example);
+ $("
").appendTo(example);
+ $("
").appendTo(example);
+ example.css("top","40%").css("left","40%");
+ new_div.append(example);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ $("
").appendTo(new_div);
+ new_li.insertAfter(cur_li);
+ $("#slider").addSlide("after");
+ });
+
+ $(".add_text").live("click", function(){
+ var container = $(this).parent();
+ var text_block = $("
" + sankoreLang.new_txt + "
").appendTo(container);
+ $("
").appendTo(text_block);
+ $("
").appendTo(text_block);
+ $("
").appendTo(text_block);
+ $("
").appendTo(text_block);
+ $("
").appendTo(text_block);
+ text_block.attr("contenteditable", "true").addClass("block_border");
+ });
+}
+
+//export
+function exportData(){
+ var array_to_export = [];
+ $("#slider li>div").each(function(){
+ var cont_obj = new Object();
+ cont_obj.w = $(this).parent().width();
+ cont_obj.h = $(this).parent().height();
+ cont_obj.text = [];
+ $(this).find(".text_block").each(function(){
+ var txt_block = new Object();
+ txt_block.top = $(this).position().top;
+ txt_block.left = $(this).position().left;
+ txt_block.h = $(this).height();
+ txt_block.w = $(this).width();
+ txt_block.fz = $(this).css("font-size");
+ txt_block.val = $(this).text();
+ cont_obj.text.push(txt_block);
+ });
+ cont_obj.imgs = [];
+ $(this).find(".img_block").each(function(){
+ var img_obj = new Object();
+ img_obj.link = $(this).find("img").attr("src").replace("../../","");
+ img_obj.h = $(this).find("img").height();
+ img_obj.w = $(this).find("img").width();
+ img_obj.block_h = $(this).height();
+ img_obj.block_w = $(this).width();
+ img_obj.top = $(this).position().top;
+ img_obj.left = $(this).position().left;
+ cont_obj.imgs.push(img_obj);
+ });
+ cont_obj.audio = [];
+ $(this).find(".audio_block").each(function(){
+ var audio_block = new Object();
+ audio_block.top = $(this).position().top;
+ audio_block.left = $(this).position().left;
+ audio_block.val = $(this).find("source").attr("src").replace("../../","");
+ cont_obj.audio.push(audio_block);
+ });
+ array_to_export.push(cont_obj);
+ });
+ sankore.setPreference("etudier", JSON.stringify(array_to_export));
+}
+
+//import
+function importData(data){
+
+ var width = 0;
+ var height = 0;
+
+ for(var i in data){
+
+ width = data[i].w;
+ height = data[i].h;
+ var li = $("
");
+ var div = $("").appendTo(li);
+
+ for(var j in data[i].text){
+ var text_div = $("
" + data[i].text[j].val + "
");
+ text_div.draggable().css("position","absolute")
+ .width(data[i].text[j].w)
+ .height(data[i].text[j].h)
+ .css("top", data[i].text[j].top)
+ .css("left", data[i].text[j].left)
+ .css("font-size", data[i].text[j].fz)
+ .appendTo(div);
+ }
+
+ for(j in data[i].imgs){
+ var img_div = $("
");
+ img_div.draggable().css("position","absolute")
+ .width(data[i].imgs[j].block_w)
+ .height(data[i].imgs[j].block_h)
+ .css("top", data[i].imgs[j].top)
+ .css("left", data[i].imgs[j].left)
+ .appendTo(div);
+ $("
").appendTo(img_div);
+ }
+
+ for(j in data[i].audio){
+ var audio_div = $("
");
+ $("
").appendTo(audio_div);
+ $("
").appendTo(audio_div);
+ var tmp_audio = $("
").appendTo(audio_div);
+ $(" ").appendTo(tmp_audio);
+ audio_div.draggable().css("position","absolute")
+ .css("top", data[i].audio[j].top)
+ .css("left", data[i].audio[j].left)
+ .appendTo(div);
+ }
+
+ $("#slider ul").append(li);
+
+ }
+
+ $(window).trigger("resize")
+
+ $("#slider").width(width).height(height).easySlider({
+ prevText: '',
+ nextText: '',
+ controlsShow: false
+ });
+ $("#slider").goToSlide(sankore.preference("etudier_cur_page",""));
+ $("#prevBtn a").css("display", sankore.preference("etudier_left_nav",""));
+ $("#nextBtn a").css("display", sankore.preference("etudier_right_nav",""));
+}
+
+//example
+function showExample(){
+
+ var li1 = $("");
+ var div1 = $("").appendTo(li1);
+ $("
" + sankoreLang.text_content + "
").draggable().appendTo(div1)
+ li1.width($("#slider").width()).height($("#slider").height());
+ $("#slider ul").append(li1);
+ var li2 = $("
");
+ var div2 = $("").appendTo(li2);
+ var img = $("
").draggable().appendTo(div2);
+ $("
").appendTo(img);
+ li2.width($("#slider").width()).height($("#slider").height());
+ $("#slider ul").append(li2);
+ var li3 = $("
");
+ var div3 = $("").appendTo(li3);
+ li3.width($("#slider").width()).height($("#slider").height());
+ var audio_block = $("