erp_app 4.0.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1264) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/art/desktop-logo.jpg +0 -0
  3. data/app/assets/images/art/desktop-logo.png +0 -0
  4. data/{public → app/assets}/images/btn/left_panel/left_panel_16x16.png +0 -0
  5. data/{public → app/assets}/images/btn/left_right_panel/left_right_panel_16x16.png +0 -0
  6. data/{public → app/assets}/images/btn/right_panel/right_panel_16x16.png +0 -0
  7. data/{public → app/assets}/images/btn/save/save_16x16.png +0 -0
  8. data/{public → app/assets}/images/btn/save_all/save_all_16x16.png +0 -0
  9. data/{public → app/assets}/images/btn_light/add/add_16x16.png +0 -0
  10. data/{public → app/assets}/images/btn_light/left_panel/left_panel_16x16.png +0 -0
  11. data/{public → app/assets}/images/btn_light/left_right_panel/left_right_panel_16x16.png +0 -0
  12. data/{public → app/assets}/images/btn_light/right_panel/right_panel_16x16.png +0 -0
  13. data/{public → app/assets}/images/btn_light/save/save_16x16.png +0 -0
  14. data/{public → app/assets}/images/btn_light/save_all/save_all_16x16.png +0 -0
  15. data/{public → app/assets}/images/checked.gif +0 -0
  16. data/{public → app/assets}/images/erp_app/ajax-loader.gif +0 -0
  17. data/{public → app/assets}/images/erp_app/desktop/applications/file_manager/cancel.png +0 -0
  18. data/{public → app/assets}/images/erp_app/desktop/applications/file_manager/cross.png +0 -0
  19. data/{public → app/assets}/images/erp_app/desktop/applications/file_manager/hourglass.png +0 -0
  20. data/{public → app/assets}/images/erp_app/desktop/applications/file_manager/loading.gif +0 -0
  21. data/{public → app/assets}/images/erp_app/desktop/applications/file_manager/tick.png +0 -0
  22. data/app/assets/images/erp_app/desktop/applications/security_management/manage_capabilities.png +0 -0
  23. data/app/assets/images/erp_app/desktop/applications/security_management/manage_groups.png +0 -0
  24. data/app/assets/images/erp_app/desktop/applications/security_management/manage_roles.png +0 -0
  25. data/app/assets/images/erp_app/desktop/applications/security_management/manage_users.png +0 -0
  26. data/{public → app/assets}/images/erp_app/desktop/compass_logo_start_icon.png +0 -0
  27. data/{public → app/assets}/images/erp_app/desktop/image_add.png +0 -0
  28. data/{public → app/assets}/images/erp_app/desktop/themes.png +0 -0
  29. data/{public → app/assets}/images/erp_app/ext_loading_image.gif +0 -0
  30. data/{public → app/assets}/images/erp_app/mobile/green_light.png +0 -0
  31. data/{public → app/assets}/images/erp_app/mobile/red_light.png +0 -0
  32. data/{public → app/assets}/images/erp_app/mobile/yellow_light.png +0 -0
  33. data/{public → app/assets}/images/erp_app/organizer/applications/crm/business.png +0 -0
  34. data/{public → app/assets}/images/erp_app/organizer/applications/crm/business_64x64.png +0 -0
  35. data/{public → app/assets}/images/erp_app/organizer/applications/crm/customer-contact.png +0 -0
  36. data/{public → app/assets}/images/erp_app/organizer/applications/crm/customer_360_64x64.png +0 -0
  37. data/{public → app/assets}/images/erp_app/organizer/applications/crm/people.png +0 -0
  38. data/{public → app/assets}/images/erp_app/organizer/applications/crm/person.png +0 -0
  39. data/{public → app/assets}/images/erp_app/organizer/applications/crm/toolbar_find.png +0 -0
  40. data/{public → app/assets}/images/erp_app/organizer/applications/crm/vcard.png +0 -0
  41. data/{public → app/assets}/images/help.jpg +0 -0
  42. data/{public → app/assets}/images/icons/accept/accept_16x16.png +0 -0
  43. data/{public → app/assets}/images/icons/accept/accept_24x24.png +0 -0
  44. data/{public → app/assets}/images/icons/accept/accept_32x32.png +0 -0
  45. data/{public → app/assets}/images/icons/add/add_16x16.png +0 -0
  46. data/{public → app/assets}/images/icons/add/add_light_16x16.png +0 -0
  47. data/{public → app/assets}/images/icons/arrow_down_blue/arrow_down_blue_16x16.png +0 -0
  48. data/{public → app/assets}/images/icons/arrow_down_blue/arrow_down_blue_24x24.png +0 -0
  49. data/{public → app/assets}/images/icons/arrow_down_blue/arrow_down_blue_32x32.png +0 -0
  50. data/{public → app/assets}/images/icons/arrow_down_blue/arrow_down_blue_48x48.png +0 -0
  51. data/{public → app/assets}/images/icons/arrow_left_blue/arrow_left_blue_16x16.png +0 -0
  52. data/{public → app/assets}/images/icons/arrow_left_blue/arrow_left_blue_32x32.png +0 -0
  53. data/{public → app/assets}/images/icons/arrow_left_blue/arrow_left_blue_48x48.png +0 -0
  54. data/{public → app/assets}/images/icons/arrow_right_blue/arrow_right_blue_16x16.png +0 -0
  55. data/{public → app/assets}/images/icons/arrow_right_blue/arrow_right_blue_32x32.png +0 -0
  56. data/{public → app/assets}/images/icons/arrow_right_blue/arrow_right_blue_48x48.png +0 -0
  57. data/{public → app/assets}/images/icons/arrow_up_blue/arrow_up_blue_16x16.png +0 -0
  58. data/{public → app/assets}/images/icons/arrow_up_blue/arrow_up_blue_24x24.png +0 -0
  59. data/{public → app/assets}/images/icons/arrow_up_blue/arrow_up_blue_32x32.png +0 -0
  60. data/{public → app/assets}/images/icons/arrow_up_blue/arrow_up_blue_48x48.png +0 -0
  61. data/{public → app/assets}/images/icons/article/article_16x16.png +0 -0
  62. data/app/assets/images/icons/audio/audio_16x16.png +0 -0
  63. data/{public → app/assets}/images/icons/blog/blog_16x16.png +0 -0
  64. data/{public → app/assets}/images/icons/blog/blog_24x24.png +0 -0
  65. data/{public → app/assets}/images/icons/blog/blog_32x32.png +0 -0
  66. data/{public → app/assets}/images/icons/blog/blog_48x48.png +0 -0
  67. data/{public → app/assets}/images/icons/book/book_16x16.png +0 -0
  68. data/{public → app/assets}/images/icons/calendar/calendar_16x16.png +0 -0
  69. data/app/assets/images/icons/calendar/calendar_48x48.png +0 -0
  70. data/{public → app/assets}/images/icons/calendar/calendar_64x64.png +0 -0
  71. data/{public → app/assets}/images/icons/calendar/calendar_light_16x16.png +0 -0
  72. data/{public → app/assets}/images/icons/code/code_16x16.png +0 -0
  73. data/{public → app/assets}/images/icons/console/console_16x16.png +0 -0
  74. data/{public → app/assets}/images/icons/console/console_64x64.png +0 -0
  75. data/{public → app/assets}/images/icons/contact-us/contact-us_48x48.png +0 -0
  76. data/{public → app/assets}/images/icons/content/content_16x16.png +0 -0
  77. data/app/assets/images/icons/control_panel/control_panel_105x105.png +0 -0
  78. data/app/assets/images/icons/control_panel/control_panel_105x105_active.png +0 -0
  79. data/{public → app/assets}/images/icons/control_panel/control_panel_16x16.png +0 -0
  80. data/{public → app/assets}/images/icons/control_panel/control_panel_48x48.png +0 -0
  81. data/{public → app/assets}/images/icons/control_panel/control_panel_64x64.png +0 -0
  82. data/{public → app/assets}/images/icons/copy/copy_16x16.png +0 -0
  83. data/{public → app/assets}/images/icons/creditcards/creditcards_16x16.png +0 -0
  84. data/{public → app/assets}/images/icons/creditcards/creditcards_24x24.png +0 -0
  85. data/{public → app/assets}/images/icons/creditcards/creditcards_32x32.png +0 -0
  86. data/{public → app/assets}/images/icons/creditcards/creditcards_48x48.png +0 -0
  87. data/{public → app/assets}/images/icons/creditcards/creditcards_64x64.png +0 -0
  88. data/{public → app/assets}/images/icons/crm/crm_16x16.png +0 -0
  89. data/{public → app/assets}/images/icons/crm/crm_light_16x16.png +0 -0
  90. data/{public → app/assets}/images/icons/csr/csr_16x16.png +0 -0
  91. data/{public → app/assets}/images/icons/csr/csr_256x256.png +0 -0
  92. data/{public → app/assets}/images/icons/csr/csr_500x500.png +0 -0
  93. data/{public → app/assets}/images/icons/data/data_16x16.png +0 -0
  94. data/{public → app/assets}/images/icons/data/data_32x32.png +0 -0
  95. data/{public → app/assets}/images/icons/data/data_64x64.png +0 -0
  96. data/app/assets/images/icons/database/database_105x105.png +0 -0
  97. data/app/assets/images/icons/database/database_105x105_active.png +0 -0
  98. data/{public → app/assets}/images/icons/database/database_16x16.png +0 -0
  99. data/{public → app/assets}/images/icons/database_column/database_column_16x16.png +0 -0
  100. data/{public → app/assets}/images/icons/db_edit_data/db_edit_data_16x16.png +0 -0
  101. data/{public → app/assets}/images/icons/db_table/db_table_16x16.png +0 -0
  102. data/{public → app/assets}/images/icons/delete/delete_16x16.png +0 -0
  103. data/{public → app/assets}/images/icons/delete/delete_24x24.png +0 -0
  104. data/{public → app/assets}/images/icons/delete/delete_32x32.png +0 -0
  105. data/{public → app/assets}/images/icons/delete/delete_48x48.png +0 -0
  106. data/{public → app/assets}/images/icons/doc_settings/doc_settings_16x16.png +0 -0
  107. data/{public → app/assets}/images/icons/document/document_16x16.png +0 -0
  108. data/{public → app/assets}/images/icons/document/document_24x24.png +0 -0
  109. data/{public → app/assets}/images/icons/document/document_32x32.png +0 -0
  110. data/{public → app/assets}/images/icons/document/document_48x48.png +0 -0
  111. data/{public → app/assets}/images/icons/document_check/document_check_16x16.png +0 -0
  112. data/{public → app/assets}/images/icons/document_check/document_check_24x24.png +0 -0
  113. data/{public → app/assets}/images/icons/document_check/document_check_32x32.png +0 -0
  114. data/{public → app/assets}/images/icons/document_check/document_check_48x48.png +0 -0
  115. data/{public → app/assets}/images/icons/document_down/document_down_16x16.png +0 -0
  116. data/{public → app/assets}/images/icons/document_down/document_down_24x24.png +0 -0
  117. data/{public → app/assets}/images/icons/document_down/document_down_32x32.png +0 -0
  118. data/{public → app/assets}/images/icons/document_down/document_down_48x48.png +0 -0
  119. data/{public → app/assets}/images/icons/document_edit/document_edit_16x16.png +0 -0
  120. data/{public → app/assets}/images/icons/document_edit/document_edit_24x24.png +0 -0
  121. data/{public → app/assets}/images/icons/document_edit/document_edit_32x32.png +0 -0
  122. data/{public → app/assets}/images/icons/document_edit/document_edit_48x48.png +0 -0
  123. data/{public → app/assets}/images/icons/document_info/document_info_16x16.png +0 -0
  124. data/{public → app/assets}/images/icons/document_info/document_info_24x24.png +0 -0
  125. data/{public → app/assets}/images/icons/document_info/document_info_32x32.png +0 -0
  126. data/{public → app/assets}/images/icons/document_info/document_info_48x48.png +0 -0
  127. data/{public → app/assets}/images/icons/document_lock/document_lock_16x16.png +0 -0
  128. data/{public → app/assets}/images/icons/document_lock/document_lock_24x24.png +0 -0
  129. data/{public → app/assets}/images/icons/document_lock/document_lock_32x32.png +0 -0
  130. data/{public → app/assets}/images/icons/document_lock/document_lock_48x48.png +0 -0
  131. data/{public → app/assets}/images/icons/document_ok/document_ok_16x16.png +0 -0
  132. data/{public → app/assets}/images/icons/document_ok/document_ok_24x24.png +0 -0
  133. data/{public → app/assets}/images/icons/document_ok/document_ok_32x32.png +0 -0
  134. data/{public → app/assets}/images/icons/document_ok/document_ok_48x48.png +0 -0
  135. data/{public → app/assets}/images/icons/document_out/document_out_16x16.png +0 -0
  136. data/{public → app/assets}/images/icons/document_out/document_out_24x24.png +0 -0
  137. data/{public → app/assets}/images/icons/document_out/document_out_32x32.png +0 -0
  138. data/{public → app/assets}/images/icons/document_out/document_out_48x48.png +0 -0
  139. data/{public → app/assets}/images/icons/document_pulse/document_pulse_16x16.png +0 -0
  140. data/{public → app/assets}/images/icons/document_pulse/document_pulse_24x24.png +0 -0
  141. data/{public → app/assets}/images/icons/document_pulse/document_pulse_32x32.png +0 -0
  142. data/{public → app/assets}/images/icons/document_pulse/document_pulse_48x48.png +0 -0
  143. data/{public → app/assets}/images/icons/document_pulse/document_pulse_64x64.png +0 -0
  144. data/{public → app/assets}/images/icons/document_up/document_up_16x16.png +0 -0
  145. data/{public → app/assets}/images/icons/document_up/document_up_24x24.png +0 -0
  146. data/{public → app/assets}/images/icons/document_up/document_up_32x32.png +0 -0
  147. data/{public → app/assets}/images/icons/document_up/document_up_48x48.png +0 -0
  148. data/{public → app/assets}/images/icons/documents/documents_16x16.png +0 -0
  149. data/{public → app/assets}/images/icons/documents/documents_24x24.png +0 -0
  150. data/{public → app/assets}/images/icons/documents/documents_32x32.png +0 -0
  151. data/{public → app/assets}/images/icons/documents/documents_48x48.png +0 -0
  152. data/{public → app/assets}/images/icons/edit/edit_16x16.png +0 -0
  153. data/{public → app/assets}/images/icons/edit/edit_24x24.png +0 -0
  154. data/{public → app/assets}/images/icons/edit/edit_32x32.png +0 -0
  155. data/{public → app/assets}/images/icons/edit/edit_48x48.png +0 -0
  156. data/{public → app/assets}/images/icons/exit/exit_16x16.png +0 -0
  157. data/{public → app/assets}/images/icons/exit/exit_24x24.png +0 -0
  158. data/{public → app/assets}/images/icons/exit/exit_32x32.png +0 -0
  159. data/{public → app/assets}/images/icons/exit/exit_48x48.png +0 -0
  160. data/{public → app/assets}/images/icons/eye/eye_16x16.png +0 -0
  161. data/{public → app/assets}/images/icons/eye/eye_24x24.png +0 -0
  162. data/{public → app/assets}/images/icons/eye/eye_32x32.png +0 -0
  163. data/{public → app/assets}/images/icons/eye/eye_48x48.png +0 -0
  164. data/app/assets/images/icons/file-upload/file_upload-light.png +0 -0
  165. data/app/assets/images/icons/file-upload/file_upload_16x16-light.png +0 -0
  166. data/app/assets/images/icons/file-upload/file_upload_16x16.png +0 -0
  167. data/{public → app/assets}/images/icons/file_manager/file_manager_16x16.png +0 -0
  168. data/{public → app/assets}/images/icons/file_manager/file_manager_light_16x16.png +0 -0
  169. data/{public → app/assets}/images/icons/folder/folder_16x16.png +0 -0
  170. data/{public → app/assets}/images/icons/folder/folder_24x24.png +0 -0
  171. data/{public → app/assets}/images/icons/folder/folder_32x32.png +0 -0
  172. data/{public → app/assets}/images/icons/folder/folder_48x48.png +0 -0
  173. data/{public → app/assets}/images/icons/folders/folders_64x64.png +0 -0
  174. data/{public → app/assets}/images/icons/footprints/footprints_16x16.png +0 -0
  175. data/{public → app/assets}/images/icons/footprints/footprints_light_16x16.png +0 -0
  176. data/{public → app/assets}/images/icons/form/form_16x16.png +0 -0
  177. data/{public → app/assets}/images/icons/form/form_light_16x16.png +0 -0
  178. data/{public → app/assets}/images/icons/gantt/gantt_24x24.png +0 -0
  179. data/{public → app/assets}/images/icons/gear/gear_16x16.png +0 -0
  180. data/{public → app/assets}/images/icons/gear/gear_24x24.png +0 -0
  181. data/{public → app/assets}/images/icons/gear/gear_32x32.png +0 -0
  182. data/{public → app/assets}/images/icons/gear/gear_48x48.png +0 -0
  183. data/{public → app/assets}/images/icons/gear/gear_light_16x16.png +0 -0
  184. data/app/assets/images/icons/globe/globe_105x105.png +0 -0
  185. data/app/assets/images/icons/globe/globe_105x105_active.png +0 -0
  186. data/{public → app/assets}/images/icons/globe/globe_16x16.png +0 -0
  187. data/{public → app/assets}/images/icons/globe/globe_64x64.png +0 -0
  188. data/{public → app/assets}/images/icons/globe/globe_light_16x16.png +0 -0
  189. data/{public → app/assets}/images/icons/globe_disconnected/globe_disconnected_16x16.png +0 -0
  190. data/{public → app/assets}/images/icons/globe_disconnected/globe_disconnected_24x24.png +0 -0
  191. data/{public → app/assets}/images/icons/globe_disconnected/globe_disconnected_32x32.png +0 -0
  192. data/{public → app/assets}/images/icons/globe_disconnected/globe_disconnected_48x48.png +0 -0
  193. data/{public → app/assets}/images/icons/google-map/google-map_48x48.png +0 -0
  194. data/{public → app/assets}/images/icons/grid/grid_16x16.png +0 -0
  195. data/{public → app/assets}/images/icons/grid/grid_64x64.png +0 -0
  196. data/app/assets/images/icons/hide/hide_16x16.png +0 -0
  197. data/app/assets/images/icons/hide/hide_32x32.png +0 -0
  198. data/app/assets/images/icons/hide/hide_48x48.png +0 -0
  199. data/{public → app/assets}/images/icons/hierarchy/hierarchy_16x16.png +0 -0
  200. data/{public → app/assets}/images/icons/history/history_16x16.png +0 -0
  201. data/{public → app/assets}/images/icons/history/history_64x64.png +0 -0
  202. data/{public → app/assets}/images/icons/history/history_light_16x16.png +0 -0
  203. data/{public → app/assets}/images/icons/home/home_16x16.png +0 -0
  204. data/{public → app/assets}/images/icons/home/home_48x48.png +0 -0
  205. data/{public → app/assets}/images/icons/ia/ia_16x16.png +0 -0
  206. data/{public → app/assets}/images/icons/index/index_16x16.png +0 -0
  207. data/{public → app/assets}/images/icons/index/index_24x24.png +0 -0
  208. data/{public → app/assets}/images/icons/index/index_32x32.png +0 -0
  209. data/{public → app/assets}/images/icons/index/index_48x48.png +0 -0
  210. data/{public → app/assets}/images/icons/information/information_16x16.png +0 -0
  211. data/app/assets/images/icons/information/information_light_16x16.png +0 -0
  212. data/{public → app/assets}/images/icons/invoicing/invoicing_48x48.png +0 -0
  213. data/{public → app/assets}/images/icons/invoicing/invoicing_64x64.png +0 -0
  214. data/app/assets/images/icons/key/key_105x105.png +0 -0
  215. data/app/assets/images/icons/key/key_105x105_active.png +0 -0
  216. data/app/assets/images/icons/key/key_16x16-light.png +0 -0
  217. data/{public → app/assets}/images/icons/key/key_16x16.png +0 -0
  218. data/{public → app/assets}/images/icons/key/key_64x64.png +0 -0
  219. data/{public → app/assets}/images/icons/knitkit/knitkit_16x16.png +0 -0
  220. data/{public → app/assets}/images/icons/knitkit/knitkit_48x48.png +0 -0
  221. data/{public → app/assets}/images/icons/knitkit/knitkit_light_16x16.png +0 -0
  222. data/app/assets/images/icons/link/link_16x16.png +0 -0
  223. data/app/assets/images/icons/login/login_48x48.png +0 -0
  224. data/{public → app/assets}/images/icons/magnifying-glass/magnifying-glass_48x48.png +0 -0
  225. data/{public → app/assets}/images/icons/mail/mail_16x16.png +0 -0
  226. data/{public → app/assets}/images/icons/mail/mail_24x24.png +0 -0
  227. data/{public → app/assets}/images/icons/mail/mail_32x32.png +0 -0
  228. data/app/assets/images/icons/mail/mail_48x48.png +0 -0
  229. data/app/assets/images/icons/manage_profile/manage_profile_48x48.png +0 -0
  230. data/{public → app/assets}/images/icons/map/map_16x16.png +0 -0
  231. data/{public → app/assets}/images/icons/map/map_24x24.png +0 -0
  232. data/{public → app/assets}/images/icons/map/map_32x32.png +0 -0
  233. data/app/assets/images/icons/map/map_48x48.png +0 -0
  234. data/{public → app/assets}/images/icons/menu/menu_16x16.png +0 -0
  235. data/{public → app/assets}/images/icons/next/next_16x16.png +0 -0
  236. data/{public → app/assets}/images/icons/next/next_24x24.png +0 -0
  237. data/{public → app/assets}/images/icons/next/next_32x32.png +0 -0
  238. data/{public → app/assets}/images/icons/next/next_48x48.png +0 -0
  239. data/{public → app/assets}/images/icons/note/note_16x16.png +0 -0
  240. data/{public → app/assets}/images/icons/note/note_24x24.png +0 -0
  241. data/{public → app/assets}/images/icons/note/note_32x32.png +0 -0
  242. data/{public → app/assets}/images/icons/note/note_48x48.png +0 -0
  243. data/{public → app/assets}/images/icons/ordered_list/ordered_list_16x16.png +0 -0
  244. data/app/assets/images/icons/package/logo.png +0 -0
  245. data/{public → app/assets}/images/icons/package/package_16x16.png +0 -0
  246. data/{public → app/assets}/images/icons/package/package_24x24.png +0 -0
  247. data/{public → app/assets}/images/icons/package/package_32x32.png +0 -0
  248. data/app/assets/images/icons/package/package_48x48.png +0 -0
  249. data/{public → app/assets}/images/icons/package/package_64x64.png +0 -0
  250. data/{public → app/assets}/images/icons/package/package_light_16x16.png +0 -0
  251. data/{public → app/assets}/images/icons/palette/palette_64x64.png +0 -0
  252. data/{public → app/assets}/images/icons/person/person_16x16.png +0 -0
  253. data/{public → app/assets}/images/icons/phone/phone_16x16.png +0 -0
  254. data/{public → app/assets}/images/icons/phone/phone_64x64.png +0 -0
  255. data/{public → app/assets}/images/icons/picture/picture_16x16.png +0 -0
  256. data/{public → app/assets}/images/icons/play/play_16x16.png +0 -0
  257. data/{public → app/assets}/images/icons/preferences/preferences_16x16.png +0 -0
  258. data/{public → app/assets}/images/icons/preferences/preferences_24x24.png +0 -0
  259. data/{public → app/assets}/images/icons/preferences/preferences_32x32.png +0 -0
  260. data/{public → app/assets}/images/icons/preferences/preferences_48x48.png +0 -0
  261. data/{public → app/assets}/images/icons/preview/preview_16x16.png +0 -0
  262. data/{public → app/assets}/images/icons/preview/preview_24x24.png +0 -0
  263. data/{public → app/assets}/images/icons/preview/preview_32x32.png +0 -0
  264. data/{public → app/assets}/images/icons/preview/preview_48x48.png +0 -0
  265. data/{public → app/assets}/images/icons/product/product_16x16.png +0 -0
  266. data/{public → app/assets}/images/icons/product/product_24x24.png +0 -0
  267. data/{public → app/assets}/images/icons/product/product_32x32.png +0 -0
  268. data/app/assets/images/icons/product/product_48x48.png +0 -0
  269. data/{public → app/assets}/images/icons/product/product_64x64.png +0 -0
  270. data/{public → app/assets}/images/icons/product/product_light_16x16.png +0 -0
  271. data/{public → app/assets}/images/icons/properties/properties_16x16.png +0 -0
  272. data/{public → app/assets}/images/icons/properties/properties_24x24.png +0 -0
  273. data/{public → app/assets}/images/icons/properties/properties_32x32.png +0 -0
  274. data/{public → app/assets}/images/icons/properties/properties_48x48.png +0 -0
  275. data/{public → app/assets}/images/icons/query/query_16x16.png +0 -0
  276. data/app/assets/images/icons/recycle/recycle_16x16.png +0 -0
  277. data/{public → app/assets}/images/icons/recycle/recycle_24x24.png +0 -0
  278. data/{public → app/assets}/images/icons/recycle/recycle_32x32.png +0 -0
  279. data/{public → app/assets}/images/icons/recycle/recycle_48x48.png +0 -0
  280. data/{public → app/assets}/images/icons/redo/redo_16x16.png +0 -0
  281. data/{public → app/assets}/images/icons/redo/redo_24x24.png +0 -0
  282. data/{public → app/assets}/images/icons/redo/redo_32x32.png +0 -0
  283. data/{public → app/assets}/images/icons/redo/redo_48x48.png +0 -0
  284. data/{public → app/assets}/images/icons/refresh/refresh_16x16.png +0 -0
  285. data/{public → app/assets}/images/icons/refresh/refresh_24x24.png +0 -0
  286. data/{public → app/assets}/images/icons/refresh/refresh_32x32.png +0 -0
  287. data/{public → app/assets}/images/icons/refresh/refresh_48x48.png +0 -0
  288. data/{public → app/assets}/images/icons/remove/remove_16x16.png +0 -0
  289. data/{public → app/assets}/images/icons/remove/remove_24x24.png +0 -0
  290. data/{public → app/assets}/images/icons/remove/remove_32x32.png +0 -0
  291. data/{public → app/assets}/images/icons/remove/remove_48x48.png +0 -0
  292. data/{public → app/assets}/images/icons/rename/rename_16x16.png +0 -0
  293. data/{public → app/assets}/images/icons/rename/rename_24x24.png +0 -0
  294. data/{public → app/assets}/images/icons/rename/rename_32xr2.png +0 -0
  295. data/{public → app/assets}/images/icons/rename/rename_48x48.png +0 -0
  296. data/{public → app/assets}/images/icons/report/report_16x16.png +0 -0
  297. data/app/assets/images/icons/reset_password/reset_password_48x48.png +0 -0
  298. data/{public → app/assets}/images/icons/rowselect/rowselect_16x16.png +0 -0
  299. data/{public → app/assets}/images/icons/save/save_16x16.png +0 -0
  300. data/{public → app/assets}/images/icons/save/save_24x24.png +0 -0
  301. data/{public → app/assets}/images/icons/save/save_32x32.png +0 -0
  302. data/{public → app/assets}/images/icons/save/save_48x48.png +0 -0
  303. data/{public → app/assets}/images/icons/save_as/save_as_16x16.png +0 -0
  304. data/{public → app/assets}/images/icons/save_as/save_as_24x24.png +0 -0
  305. data/{public → app/assets}/images/icons/save_as/save_as_32x32.png +0 -0
  306. data/{public → app/assets}/images/icons/save_as/save_as_48x48.png +0 -0
  307. data/{public → app/assets}/images/icons/scaffold/scaffold_16x16.png +0 -0
  308. data/{public → app/assets}/images/icons/scaffold/scaffold_light_16x16.png +0 -0
  309. data/{public → app/assets}/images/icons/search/search_16x16.png +0 -0
  310. data/{public → app/assets}/images/icons/search/search_24x24.png +0 -0
  311. data/{public → app/assets}/images/icons/search/search_32x32.png +0 -0
  312. data/app/assets/images/icons/search/search_48x48.png +0 -0
  313. data/{public → app/assets}/images/icons/search/search_light_16x16.png +0 -0
  314. data/{public → app/assets}/images/icons/section/section_16x16.png +0 -0
  315. data/{public → app/assets}/images/icons/section/section_24x24.png +0 -0
  316. data/{public → app/assets}/images/icons/section/section_32x32.png +0 -0
  317. data/{public → app/assets}/images/icons/section/section_48x48.png +0 -0
  318. data/{public → app/assets}/images/icons/section_lock/section_lock_16x16.png +0 -0
  319. data/{public → app/assets}/images/icons/section_lock/section_lock_24x24.png +0 -0
  320. data/{public → app/assets}/images/icons/section_lock/section_lock_32x32.png +0 -0
  321. data/{public → app/assets}/images/icons/section_lock/section_lock_48x48.png +0 -0
  322. data/{public → app/assets}/images/icons/secure/secure_16x16.png +0 -0
  323. data/{public → app/assets}/images/icons/settings/settings_16x16.png +0 -0
  324. data/{public → app/assets}/images/icons/settings/settings_light_16x16.png +0 -0
  325. data/{public → app/assets}/images/icons/shopping_cart/shopping_card_64x64.png +0 -0
  326. data/{public → app/assets}/images/icons/shopping_cart/shopping_cart_32x32.png +0 -0
  327. data/app/assets/images/icons/shopping_cart/shopping_cart_48x48.png +0 -0
  328. data/{public → app/assets}/images/icons/sign_up/sign_up_32x32.png +0 -0
  329. data/app/assets/images/icons/sign_up/sign_up_48x48.png +0 -0
  330. data/{public → app/assets}/images/icons/sign_up/sign_up_64x64.png +0 -0
  331. data/{public → app/assets}/images/icons/simple_arrow/simple_arrow_16x16.png +0 -0
  332. data/{public → app/assets}/images/icons/small_gear/small_gear_16x16.png +0 -0
  333. data/{public → app/assets}/images/icons/sql/sql_16x16.png +0 -0
  334. data/{public → app/assets}/images/icons/tables/tables_16x16.png +0 -0
  335. data/app/assets/images/icons/template/template_16x16.png +0 -0
  336. data/{public → app/assets}/images/icons/theme/theme_16x16.png +0 -0
  337. data/{public → app/assets}/images/icons/theme_upload/theme_upload_16x16.png +0 -0
  338. data/{public → app/assets}/images/icons/ticket/tag_16x16.png +0 -0
  339. data/{public → app/assets}/images/icons/undo/undo_16x16.png +0 -0
  340. data/app/assets/images/icons/unhide/unhide_16x16.png +0 -0
  341. data/app/assets/images/icons/user/user_105x105.png +0 -0
  342. data/app/assets/images/icons/user/user_105x105_active.png +0 -0
  343. data/{public → app/assets}/images/icons/user/user_128x128.png +0 -0
  344. data/{public → app/assets}/images/icons/user/user_16x16.png +0 -0
  345. data/app/assets/images/icons/user/user_48x48.png +0 -0
  346. data/{public → app/assets}/images/icons/user/user_64x64.png +0 -0
  347. data/{public → app/assets}/images/icons/user/user_light_16x16.png +0 -0
  348. data/{public → app/assets}/images/icons/user_mgt/user_mgt_16x16.png +0 -0
  349. data/{public → app/assets}/images/icons/user_mgt/user_mgt_light_16x16.png +0 -0
  350. data/{public → app/assets}/images/icons/vcard/vcard_16x16.png +0 -0
  351. data/{public → app/assets}/images/icons/view/view_16x16.png +0 -0
  352. data/{public → app/assets}/images/icons/view/view_24x24.png +0 -0
  353. data/{public → app/assets}/images/icons/view/view_32x32.png +0 -0
  354. data/{public → app/assets}/images/icons/view/view_48x48.png +0 -0
  355. data/{public → app/assets}/images/icons/warning/waring_16x16.png +0 -0
  356. data/app/assets/images/icons/website/website_105x105.png +0 -0
  357. data/app/assets/images/icons/website/website_105x105_active.png +0 -0
  358. data/{public → app/assets}/images/icons/website/website_16x16.png +0 -0
  359. data/{public → app/assets}/images/icons/website_download/website_download_16x16.png +0 -0
  360. data/{public → app/assets}/images/icons/website_publications/website_publications_16x16.png +0 -0
  361. data/{public → app/assets}/images/icons/website_upload/website_upload_16x16.png +0 -0
  362. data/{public → app/assets}/images/img_blank.png +0 -0
  363. data/{public → app/assets}/images/loading_icon.gif +0 -0
  364. data/app/assets/images/splash/icons/console_icon.png +0 -0
  365. data/app/assets/images/splash/icons/console_icon_active.png +0 -0
  366. data/app/assets/images/splash/icons/db_icon.png +0 -0
  367. data/app/assets/images/splash/icons/db_icon_active.png +0 -0
  368. data/app/assets/images/splash/icons/help_icon.png +0 -0
  369. data/app/assets/images/splash/icons/help_icon_active.png +0 -0
  370. data/{public → app/assets}/images/splash_screen/browse_docs_icon.png +0 -0
  371. data/{public → app/assets}/images/splash_screen/contact_mgt_icon.png +0 -0
  372. data/{public → app/assets}/images/splash_screen/desktop_icon.png +0 -0
  373. data/{public → app/assets}/images/tab/tab-default-close.png +0 -0
  374. data/{public → app/assets}/images/unchecked.gif +0 -0
  375. data/{public → app/assets}/images/wallpaper/truenorth_tech.png +0 -0
  376. data/app/assets/javascripts/codemirror_compassae.js +31 -0
  377. data/app/assets/javascripts/erp_app/authentication/compass_user.js +97 -0
  378. data/app/assets/javascripts/erp_app/desktop/app.js +15 -0
  379. data/app/assets/javascripts/erp_app/desktop/applications/audit_log_viewer/app.js +13 -0
  380. data/app/assets/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js +38 -0
  381. data/app/assets/javascripts/erp_app/desktop/applications/configuration_management/app.js +17 -0
  382. data/{public → app/assets}/javascripts/erp_app/desktop/applications/configuration_management/configuration_options_panel.js +0 -0
  383. data/{public → app/assets}/javascripts/erp_app/desktop/applications/configuration_management/configuration_tree_panel.js +0 -0
  384. data/{public → app/assets}/javascripts/erp_app/desktop/applications/configuration_management/configuration_types_panel.js +0 -0
  385. data/app/assets/javascripts/erp_app/desktop/applications/configuration_management/module.js +96 -0
  386. data/{public/javascripts/erp_app/desktop/applications/configuration_management/stores.0.js → app/assets/javascripts/erp_app/desktop/applications/configuration_management/stores.js} +0 -0
  387. data/app/assets/javascripts/erp_app/desktop/applications/file_manager/app.js +13 -0
  388. data/app/assets/javascripts/erp_app/desktop/applications/file_manager/module.js +134 -0
  389. data/app/assets/javascripts/erp_app/desktop/applications/job_tracker/app.js +14 -0
  390. data/{public → app/assets}/javascripts/erp_app/desktop/applications/job_tracker/jobs_grid.js +0 -0
  391. data/app/assets/javascripts/erp_app/desktop/applications/job_tracker/module.js +44 -0
  392. data/app/assets/javascripts/erp_app/desktop/applications/security_management/app.js +24 -0
  393. data/app/assets/javascripts/erp_app/desktop/applications/security_management/capabilities_panel.js +54 -0
  394. data/app/assets/javascripts/erp_app/desktop/applications/security_management/capabilities_widget.js +245 -0
  395. data/{public → app/assets}/javascripts/erp_app/desktop/applications/security_management/common_widget.js +0 -0
  396. data/app/assets/javascripts/erp_app/desktop/applications/security_management/groups_effective_security.js +80 -0
  397. data/app/assets/javascripts/erp_app/desktop/applications/security_management/groups_panel.js +271 -0
  398. data/app/assets/javascripts/erp_app/desktop/applications/security_management/groups_widget.js +245 -0
  399. data/app/assets/javascripts/erp_app/desktop/applications/security_management/mixins/widget.js +39 -0
  400. data/app/assets/javascripts/erp_app/desktop/applications/security_management/module.js +155 -0
  401. data/app/assets/javascripts/erp_app/desktop/applications/security_management/north_panel.js +23 -0
  402. data/app/assets/javascripts/erp_app/desktop/applications/security_management/roles_panel.js +334 -0
  403. data/app/assets/javascripts/erp_app/desktop/applications/security_management/roles_widget.js +258 -0
  404. data/app/assets/javascripts/erp_app/desktop/applications/security_management/south_panel.js +70 -0
  405. data/app/assets/javascripts/erp_app/desktop/applications/system_management/app.js +15 -0
  406. data/app/assets/javascripts/erp_app/desktop/applications/system_management/form.js +100 -0
  407. data/app/assets/javascripts/erp_app/desktop/applications/system_management/module.js +227 -0
  408. data/app/assets/javascripts/erp_app/desktop/applications/system_management/stores.js +48 -0
  409. data/app/assets/javascripts/erp_app/desktop/applications/tail/app.js +14 -0
  410. data/{public → app/assets}/javascripts/erp_app/desktop/applications/tail/module.js +0 -0
  411. data/{public → app/assets}/javascripts/erp_app/desktop/applications/tail/tail_panel.js +0 -0
  412. data/app/assets/javascripts/erp_app/desktop/applications/user_management/app.js +13 -0
  413. data/app/assets/javascripts/erp_app/desktop/applications/user_management/module.js +454 -0
  414. data/app/assets/javascripts/erp_app/desktop/applications/web_navigator/app.js +13 -0
  415. data/{public → app/assets}/javascripts/erp_app/desktop/applications/web_navigator/module.js +0 -0
  416. data/app/assets/javascripts/erp_app/desktop/ext_ux_desktop_module.js +1016 -0
  417. data/app/assets/javascripts/erp_app/desktop/select_roles_window.js +267 -0
  418. data/app/assets/javascripts/erp_app/ecommerce/credit_card_window.js +343 -0
  419. data/app/assets/javascripts/erp_app/jquery_support.js +45 -0
  420. data/app/assets/javascripts/erp_app/login/ResetPassword.js +128 -0
  421. data/app/assets/javascripts/erp_app/login/mobile.js +77 -0
  422. data/app/assets/javascripts/erp_app/login/window.js +238 -0
  423. data/app/assets/javascripts/erp_app/organizer/app.js +15 -0
  424. data/app/assets/javascripts/erp_app/organizer/applications/crm/app.js +14 -0
  425. data/app/assets/javascripts/erp_app/organizer/applications/crm/base.js +64 -0
  426. data/{public → app/assets}/javascripts/erp_app/organizer/applications/crm/relationship_grid.js +0 -0
  427. data/app/assets/javascripts/erp_app/organizer/layout.js +258 -0
  428. data/{public → app/assets}/javascripts/erp_app/organizer/preference_window.js +0 -0
  429. data/app/assets/javascripts/erp_app/shared/DateTimeField.js +77 -0
  430. data/app/assets/javascripts/erp_app/shared/MoneyField.js +120 -0
  431. data/app/assets/javascripts/erp_app/shared/MultiOptions.js +182 -0
  432. data/app/assets/javascripts/erp_app/shared/Party/AppsInstalledPanel.js +302 -0
  433. data/app/assets/javascripts/erp_app/shared/Party/LoginInfoPanel.js +291 -0
  434. data/app/assets/javascripts/erp_app/shared/Party/SecurityPanel.js +448 -0
  435. data/app/assets/javascripts/erp_app/shared/Party/UserTypePanel.js +198 -0
  436. data/{public → app/assets}/javascripts/erp_app/shared/PartySearchField.js +0 -0
  437. data/app/assets/javascripts/erp_app/shared/TimePickerField.js +189 -0
  438. data/{public → app/assets}/javascripts/erp_app/shared/TransitionCardLayout.js +0 -0
  439. data/app/assets/javascripts/erp_app/shared/TypeSelectionTree.js +510 -0
  440. data/app/assets/javascripts/erp_app/shared/active_ext/active_ext_grid.js +351 -0
  441. data/{public → app/assets}/javascripts/erp_app/shared/active_ext/active_ext_grid_panel.js +0 -0
  442. data/app/assets/javascripts/erp_app/shared/audit_log/GridPanel.js +214 -0
  443. data/{public → app/assets}/javascripts/erp_app/shared/audit_log/ItemGridPanel.js +0 -0
  444. data/app/assets/javascripts/erp_app/shared/audit_log/TabPanel.js +116 -0
  445. data/app/assets/javascripts/erp_app/shared/compass_ckeditor.js +267 -0
  446. data/app/assets/javascripts/erp_app/shared/compass_codemirror.js +464 -0
  447. data/{public → app/assets}/javascripts/erp_app/shared/configuration/configuration_form.js +0 -0
  448. data/app/assets/javascripts/erp_app/shared/configuration/configuration_panel.js +141 -0
  449. data/{public → app/assets}/javascripts/erp_app/shared/coolclock/tray_clock2.js +0 -0
  450. data/app/assets/javascripts/erp_app/shared/crm/ContactMechanismGrid.js +754 -0
  451. data/app/assets/javascripts/erp_app/shared/crm/PartyDetailsPanel.js +344 -0
  452. data/app/assets/javascripts/erp_app/shared/crm/PartyForm.js +321 -0
  453. data/{public → app/assets}/javascripts/erp_app/shared/crm/PartyFormPanel.js +0 -0
  454. data/app/assets/javascripts/erp_app/shared/crm/PartyGrid.js +595 -0
  455. data/app/assets/javascripts/erp_app/shared/crm/UserForm.js +302 -0
  456. data/app/assets/javascripts/erp_app/shared/crm/UsersGrid.js +535 -0
  457. data/app/assets/javascripts/erp_app/shared/dynamic_editable_grid.js +181 -0
  458. data/app/assets/javascripts/erp_app/shared/dynamic_editable_grid_loader_panel.js +65 -0
  459. data/app/assets/javascripts/erp_app/shared/dynamic_form_fields.js +104 -0
  460. data/{public → app/assets}/javascripts/erp_app/shared/encryption/encryption.js +0 -0
  461. data/app/assets/javascripts/erp_app/shared/erp_app_shared.js +13 -0
  462. data/app/assets/javascripts/erp_app/shared/file_manager_tree.js +750 -0
  463. data/app/assets/javascripts/erp_app/shared/file_upload/Ext.ux.panel.UploadPanel.js +581 -0
  464. data/{public → app/assets}/javascripts/erp_app/shared/file_upload/plupload.flash.swf +0 -0
  465. data/{public → app/assets}/javascripts/erp_app/shared/file_upload/plupload.full.js +0 -0
  466. data/{public → app/assets}/javascripts/erp_app/shared/file_upload/plupload.silverlight.xap +0 -0
  467. data/app/assets/javascripts/erp_app/shared/file_upload/upload_window.js +65 -0
  468. data/{public → app/assets}/javascripts/erp_app/shared/google_map_panel.js +0 -0
  469. data/app/assets/javascripts/erp_app/shared/notes_grid.js +338 -0
  470. data/{public → app/assets}/javascripts/erp_app/shared/preferences/application_management_panel.js +0 -0
  471. data/{public → app/assets}/javascripts/erp_app/shared/preferences/form.js +0 -0
  472. data/app/assets/javascripts/erp_app/shared/profile_management_panel.js +140 -0
  473. data/{public → app/assets}/javascripts/erp_app/shared/status_window.js +0 -0
  474. data/app/assets/javascripts/erp_app/utility.js +809 -0
  475. data/app/assets/javascripts/erp_app/widgets.js +122 -0
  476. data/{public → app/assets}/javascripts/jquery_plugins/jquery.address.min.js +0 -0
  477. data/{public → app/assets}/javascripts/jquery_plugins/jquery.loadmask.min.js +0 -0
  478. data/app/assets/stylesheets/codemirror_compassae.css +14 -0
  479. data/app/assets/stylesheets/erp_app/desktop/applications/audit_log_viewer/app.css +11 -0
  480. data/app/assets/stylesheets/erp_app/desktop/applications/configuration_management/app.css +11 -0
  481. data/app/assets/stylesheets/erp_app/desktop/applications/file_manager/app.css +11 -0
  482. data/app/assets/stylesheets/erp_app/desktop/applications/job_tracker/app.css +11 -0
  483. data/app/assets/stylesheets/erp_app/desktop/applications/scaffold/app.css +11 -0
  484. data/app/assets/stylesheets/erp_app/desktop/applications/security_management/app.css +12 -0
  485. data/{public → app/assets}/stylesheets/erp_app/desktop/applications/security_management/styles.css +0 -0
  486. data/app/assets/stylesheets/erp_app/desktop/applications/tail/app.css +11 -0
  487. data/app/assets/stylesheets/erp_app/desktop/applications/user_management/app.css +11 -0
  488. data/app/assets/stylesheets/erp_app/desktop/base.css +262 -0
  489. data/app/assets/stylesheets/erp_app/login/main.css +17 -0
  490. data/app/assets/stylesheets/erp_app/organizer/applications/crm/app.css +12 -0
  491. data/app/assets/stylesheets/erp_app/organizer/base.css +19 -0
  492. data/app/assets/stylesheets/erp_app/shared/compass-ext-all.css +599 -0
  493. data/app/assets/stylesheets/erp_app/shared/crm.css +45 -0
  494. data/app/assets/stylesheets/erp_app/shared/erp_app_shared.css +12 -0
  495. data/{public → app/assets}/stylesheets/erp_app/shared/grid_cell.css +0 -0
  496. data/{public → app/assets}/stylesheets/erp_app/shared/hover_finger.css +0 -0
  497. data/app/assets/stylesheets/jquery_plugins/jquery.loadmask.css +53 -0
  498. data/app/controllers/api/v1/applications_controller.rb +179 -0
  499. data/app/controllers/erp_app/application_controller.rb +7 -1
  500. data/app/controllers/erp_app/desktop/base_controller.rb +0 -1
  501. data/app/controllers/erp_app/desktop/file_manager/base_controller.rb +5 -3
  502. data/app/controllers/erp_app/desktop/system_management/types_controller.rb +126 -0
  503. data/app/controllers/erp_app/desktop/user_management/application_management_controller.rb +68 -36
  504. data/app/controllers/erp_app/desktop/user_management/base_controller.rb +0 -0
  505. data/app/controllers/erp_app/desktop/user_management/role_management_controller.rb +0 -0
  506. data/app/controllers/erp_app/login_controller.rb +30 -2
  507. data/app/controllers/erp_app/organizer/base_controller.rb +3 -30
  508. data/app/controllers/erp_app/organizer/crm/contact_mechanisms_controller.rb +4 -2
  509. data/app/controllers/erp_app/organizer/crm/parties_controller.rb +26 -2
  510. data/app/controllers/erp_app/organizer/crm/users_controller.rb +22 -0
  511. data/app/controllers/erp_app/public_controller.rb +3 -0
  512. data/app/controllers/erp_app/shared/audit_log_controller.rb +1 -1
  513. data/app/controllers/erp_app/shared/configuration_controller.rb +1 -1
  514. data/app/controllers/erp_app/shared/notes_controller.rb +0 -6
  515. data/app/controllers/erp_app/widget_proxy_controller.rb +19 -5
  516. data/app/mailers/crm_mailer.rb +2 -1
  517. data/app/models/application.rb +88 -6
  518. data/app/models/configuration.rb +7 -0
  519. data/app/models/configuration_item.rb +6 -0
  520. data/app/models/extensions/party.rb +9 -0
  521. data/app/models/extensions/user.rb +42 -15
  522. data/app/models/preference_type.rb +1 -1
  523. data/app/views/erp_app/desktop/base/index.erb +253 -203
  524. data/app/views/erp_app/login/index.erb +28 -20
  525. data/app/views/erp_app/login/reset_password.erb +30 -0
  526. data/app/views/erp_app/organizer/base/index.erb +28 -23
  527. data/app/views/erp_app/organizer/crm/parties/details.erb +1 -1
  528. data/config/routes.rb +29 -17
  529. data/db/data_migrations/20110728201729_erp_app_setup.rb +168 -240
  530. data/db/data_migrations/20110728201730_add_system_management_tool.rb +27 -0
  531. data/db/data_migrations/20150929185612_add_applications_to_dba_org.rb +31 -0
  532. data/db/migrate/20080805000096_base_app_framework.rb +36 -44
  533. data/lib/erp_app.rb +2 -2
  534. data/lib/erp_app/config.rb +9 -3
  535. data/lib/erp_app/engine.rb +114 -12
  536. data/lib/erp_app/extensions/compass_ae/erp_tech_svcs/session_controller.rb +27 -0
  537. data/lib/erp_app/extensions/railties/action_view/base.rb +32 -6
  538. data/lib/erp_app/extensions/railties/action_view/helpers/include_helper.rb +37 -30
  539. data/lib/erp_app/version.rb +1 -1
  540. data/lib/erp_app/widgets/base.rb +6 -4
  541. data/lib/erp_app/widgets/loader.rb +1 -1
  542. data/lib/erp_app/widgets/railties/action_view/helpers/widget_helper.rb +12 -12
  543. data/lib/generators/admin_tool/USAGE +23 -0
  544. data/lib/generators/admin_tool/admin_tool_generator.rb +28 -0
  545. data/lib/generators/admin_tool/templates/INSTALL +23 -0
  546. data/lib/generators/{desktop_application/templates/public/module.js.erb → admin_tool/templates/assets/javascripts/Module.js.erb} +0 -0
  547. data/lib/generators/admin_tool/templates/assets/javascripts/app.js.erb +17 -0
  548. data/lib/generators/admin_tool/templates/assets/stylesheets/app.css.erb +11 -0
  549. data/lib/generators/{desktop_application → admin_tool}/templates/controllers/controller_template.erb +0 -0
  550. data/lib/generators/{desktop_application → admin_tool}/templates/migrate/migration_template.erb +0 -0
  551. data/lib/generators/application/USAGE +23 -0
  552. data/lib/generators/application/application_generator.rb +28 -0
  553. data/lib/generators/application/templates/INSTALL +23 -0
  554. data/lib/generators/application/templates/assets/javascripts/Application.js.erb +20 -0
  555. data/lib/generators/application/templates/assets/javascripts/app.js.erb +17 -0
  556. data/lib/generators/application/templates/assets/stylesheets/app.css.erb +11 -0
  557. data/lib/generators/application/templates/controllers/controller_template.erb +9 -0
  558. data/lib/generators/application/templates/migrate/migration_template.erb +21 -0
  559. data/lib/generators/cms_widget/templates/engine/engine_template.erb +2 -2
  560. data/lib/generators/cms_widget/templates/helpers/controller/controller_helper_template.erb +1 -1
  561. data/lib/generators/cms_widget/templates/helpers/view/view_helper_template.erb +1 -1
  562. data/lib/generators/cms_widget/templates/javascript/base.js.erb +1 -1
  563. data/public/javascripts/{erp_app/ckeditor → ckeditor}/ckeditor.js +0 -0
  564. data/public/javascripts/ckeditor/config.js +14 -0
  565. data/public/javascripts/{erp_app/ckeditor → ckeditor}/contents.css +0 -0
  566. data/public/javascripts/{erp_app/ckeditor → ckeditor}/lang/en.js +0 -0
  567. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
  568. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -0
  569. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ar.js +0 -0
  570. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/bg.js +0 -0
  571. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ca.js +0 -0
  572. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/cs.js +0 -0
  573. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/cy.js +0 -0
  574. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/da.js +0 -0
  575. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/de.js +0 -0
  576. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/el.js +0 -0
  577. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/en.js +0 -0
  578. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/eo.js +0 -0
  579. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/es.js +0 -0
  580. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/et.js +0 -0
  581. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/fa.js +0 -0
  582. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/fi.js +0 -0
  583. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -0
  584. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/fr.js +0 -0
  585. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/gl.js +0 -0
  586. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/gu.js +0 -0
  587. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/he.js +0 -0
  588. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/hi.js +0 -0
  589. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/hr.js +0 -0
  590. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/hu.js +0 -0
  591. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/id.js +0 -0
  592. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/it.js +0 -0
  593. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ja.js +0 -0
  594. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/km.js +0 -0
  595. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ku.js +0 -0
  596. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/lt.js +0 -0
  597. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/lv.js +0 -0
  598. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/mk.js +0 -0
  599. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/mn.js +0 -0
  600. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/nb.js +0 -0
  601. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/nl.js +0 -0
  602. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/no.js +0 -0
  603. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/pl.js +0 -0
  604. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -0
  605. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/pt.js +0 -0
  606. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ro.js +0 -0
  607. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ru.js +0 -0
  608. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/si.js +0 -0
  609. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sk.js +0 -0
  610. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sl.js +0 -0
  611. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sq.js +0 -0
  612. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -0
  613. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sr.js +0 -0
  614. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sv.js +0 -0
  615. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/th.js +0 -0
  616. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/tr.js +0 -0
  617. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ug.js +0 -0
  618. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/uk.js +0 -0
  619. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/vi.js +0 -0
  620. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -0
  621. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/about/dialogs/about.js +0 -0
  622. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  623. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/about/dialogs/logo_ckeditor.png +0 -0
  624. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/clipboard/dialogs/paste.js +0 -0
  625. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/codemirror/lang/en.js +0 -0
  626. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/codemirror/plugin.js +0 -0
  627. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/colordialog/dialogs/colordialog.js +0 -0
  628. data/public/javascripts/ckeditor/plugins/compasssave/plugin.js +22 -0
  629. data/public/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +1006 -0
  630. data/public/javascripts/ckeditor/plugins/dialog/plugin.js +3232 -0
  631. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/div/dialogs/div.js +0 -0
  632. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/fakeobjects/images/spacer.gif +0 -0
  633. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/find/dialogs/find.js +0 -0
  634. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/flash/dialogs/flash.js +0 -0
  635. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/flash/images/placeholder.png +0 -0
  636. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/dialogs/button.js +0 -0
  637. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/dialogs/checkbox.js +0 -0
  638. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/dialogs/form.js +0 -0
  639. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/dialogs/hiddenfield.js +0 -0
  640. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/dialogs/radio.js +0 -0
  641. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/dialogs/select.js +0 -0
  642. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/dialogs/textarea.js +0 -0
  643. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/dialogs/textfield.js +0 -0
  644. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/forms/images/hiddenfield.gif +0 -0
  645. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/icons.png +0 -0
  646. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/icons_hidpi.png +0 -0
  647. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/iframe/dialogs/iframe.js +0 -0
  648. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/iframe/images/placeholder.png +0 -0
  649. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/image/dialogs/image.js +0 -0
  650. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/image/images/noimage.png +0 -0
  651. data/public/javascripts/ckeditor/plugins/inlineeditsave/plugin.js +42 -0
  652. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/config.js +0 -0
  653. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/dialogs/jwplayer.js +0 -0
  654. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/help.txt +0 -0
  655. data/public/javascripts/erp_app/ckeditor/plugins/jwplayer/jwplayer/JW Player Quick Start Guide.pdf b/data/public/javascripts/ckeditor/plugins/jwplayer/jwplayer/JW Player Quick Start → Guide.pdf +0 -0
  656. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/jwPlayer.gif +0 -0
  657. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/jwplayer.js +0 -0
  658. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/license.txt +0 -0
  659. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/player.swf +0 -0
  660. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/preview.jpg +0 -0
  661. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/readme.html +0 -0
  662. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/skin/beelden.zip +0 -0
  663. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/skin/glow.zip +0 -0
  664. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/skin/modieus.zip +0 -0
  665. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/skin/simple.zip +0 -0
  666. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/skin/snel.zip +0 -0
  667. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/skin/stijl.zip +0 -0
  668. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/skin/stormtrooper.zip +0 -0
  669. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/swfobject.js +0 -0
  670. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/video.mp4 +0 -0
  671. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/jwplayer/yt.swf +0 -0
  672. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/jwplayer/plugin.js +0 -0
  673. data/public/javascripts/ckeditor/plugins/knitkitthemes/plugin.js +116 -0
  674. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/link/dialogs/anchor.js +0 -0
  675. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/link/dialogs/link.js +0 -0
  676. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/link/images/anchor.png +0 -0
  677. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/link/images/hidpi/anchor.png +0 -0
  678. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/liststyle/dialogs/liststyle.js +0 -0
  679. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/magicline/images/hidpi/icon.png +0 -0
  680. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/magicline/images/icon.png +0 -0
  681. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/pagebreak/images/pagebreak.gif +0 -0
  682. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/pastefromword/filter/default.js +0 -0
  683. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/preview/preview.html +0 -0
  684. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/scayt/LICENSE.md +0 -0
  685. data/public/javascripts/ckeditor/plugins/scayt/README.md +25 -0
  686. data/public/javascripts/ckeditor/plugins/scayt/dialogs/options.js +473 -0
  687. data/public/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
  688. data/public/javascripts/ckeditor/plugins/scayt/icons/hidpi/scayt.png +0 -0
  689. data/public/javascripts/ckeditor/plugins/scayt/icons/scayt.png +0 -0
  690. data/public/javascripts/ckeditor/plugins/scayt/lang/af.js +34 -0
  691. data/public/javascripts/ckeditor/plugins/scayt/lang/ar.js +34 -0
  692. data/public/javascripts/ckeditor/plugins/scayt/lang/bg.js +34 -0
  693. data/public/javascripts/ckeditor/plugins/scayt/lang/bn.js +34 -0
  694. data/public/javascripts/ckeditor/plugins/scayt/lang/bs.js +34 -0
  695. data/public/javascripts/ckeditor/plugins/scayt/lang/ca.js +34 -0
  696. data/public/javascripts/ckeditor/plugins/scayt/lang/cs.js +34 -0
  697. data/public/javascripts/ckeditor/plugins/scayt/lang/cy.js +34 -0
  698. data/public/javascripts/ckeditor/plugins/scayt/lang/da.js +34 -0
  699. data/public/javascripts/ckeditor/plugins/scayt/lang/de.js +34 -0
  700. data/public/javascripts/ckeditor/plugins/scayt/lang/el.js +34 -0
  701. data/public/javascripts/ckeditor/plugins/scayt/lang/en-au.js +34 -0
  702. data/public/javascripts/ckeditor/plugins/scayt/lang/en-ca.js +34 -0
  703. data/public/javascripts/ckeditor/plugins/scayt/lang/en-gb.js +34 -0
  704. data/public/javascripts/ckeditor/plugins/scayt/lang/en.js +34 -0
  705. data/public/javascripts/ckeditor/plugins/scayt/lang/eo.js +34 -0
  706. data/public/javascripts/ckeditor/plugins/scayt/lang/es.js +34 -0
  707. data/public/javascripts/ckeditor/plugins/scayt/lang/et.js +34 -0
  708. data/public/javascripts/ckeditor/plugins/scayt/lang/eu.js +34 -0
  709. data/public/javascripts/ckeditor/plugins/scayt/lang/fa.js +34 -0
  710. data/public/javascripts/ckeditor/plugins/scayt/lang/fi.js +34 -0
  711. data/public/javascripts/ckeditor/plugins/scayt/lang/fo.js +34 -0
  712. data/public/javascripts/ckeditor/plugins/scayt/lang/fr-ca.js +34 -0
  713. data/public/javascripts/ckeditor/plugins/scayt/lang/fr.js +34 -0
  714. data/public/javascripts/ckeditor/plugins/scayt/lang/gl.js +34 -0
  715. data/public/javascripts/ckeditor/plugins/scayt/lang/gu.js +34 -0
  716. data/public/javascripts/ckeditor/plugins/scayt/lang/he.js +34 -0
  717. data/public/javascripts/ckeditor/plugins/scayt/lang/hi.js +34 -0
  718. data/public/javascripts/ckeditor/plugins/scayt/lang/hr.js +34 -0
  719. data/public/javascripts/ckeditor/plugins/scayt/lang/hu.js +34 -0
  720. data/public/javascripts/ckeditor/plugins/scayt/lang/is.js +34 -0
  721. data/public/javascripts/ckeditor/plugins/scayt/lang/it.js +34 -0
  722. data/public/javascripts/ckeditor/plugins/scayt/lang/ja.js +34 -0
  723. data/public/javascripts/ckeditor/plugins/scayt/lang/ka.js +34 -0
  724. data/public/javascripts/ckeditor/plugins/scayt/lang/km.js +34 -0
  725. data/public/javascripts/ckeditor/plugins/scayt/lang/ko.js +34 -0
  726. data/public/javascripts/ckeditor/plugins/scayt/lang/ku.js +34 -0
  727. data/public/javascripts/ckeditor/plugins/scayt/lang/lt.js +34 -0
  728. data/public/javascripts/ckeditor/plugins/scayt/lang/lv.js +34 -0
  729. data/public/javascripts/ckeditor/plugins/scayt/lang/mk.js +34 -0
  730. data/public/javascripts/ckeditor/plugins/scayt/lang/mn.js +34 -0
  731. data/public/javascripts/ckeditor/plugins/scayt/lang/ms.js +34 -0
  732. data/public/javascripts/ckeditor/plugins/scayt/lang/nb.js +34 -0
  733. data/public/javascripts/ckeditor/plugins/scayt/lang/nl.js +34 -0
  734. data/public/javascripts/ckeditor/plugins/scayt/lang/no.js +34 -0
  735. data/public/javascripts/ckeditor/plugins/scayt/lang/pl.js +34 -0
  736. data/public/javascripts/ckeditor/plugins/scayt/lang/pt-br.js +34 -0
  737. data/public/javascripts/ckeditor/plugins/scayt/lang/pt.js +34 -0
  738. data/public/javascripts/ckeditor/plugins/scayt/lang/ro.js +34 -0
  739. data/public/javascripts/ckeditor/plugins/scayt/lang/ru.js +34 -0
  740. data/public/javascripts/ckeditor/plugins/scayt/lang/sk.js +34 -0
  741. data/public/javascripts/ckeditor/plugins/scayt/lang/sl.js +34 -0
  742. data/public/javascripts/ckeditor/plugins/scayt/lang/sr-latn.js +34 -0
  743. data/public/javascripts/ckeditor/plugins/scayt/lang/sr.js +34 -0
  744. data/public/javascripts/ckeditor/plugins/scayt/lang/sv.js +34 -0
  745. data/public/javascripts/ckeditor/plugins/scayt/lang/th.js +34 -0
  746. data/public/javascripts/ckeditor/plugins/scayt/lang/tr.js +34 -0
  747. data/public/javascripts/ckeditor/plugins/scayt/lang/ug.js +34 -0
  748. data/public/javascripts/ckeditor/plugins/scayt/lang/uk.js +34 -0
  749. data/public/javascripts/ckeditor/plugins/scayt/lang/vi.js +34 -0
  750. data/public/javascripts/ckeditor/plugins/scayt/lang/zh-cn.js +34 -0
  751. data/public/javascripts/ckeditor/plugins/scayt/lang/zh.js +34 -0
  752. data/public/javascripts/ckeditor/plugins/scayt/plugin.js +894 -0
  753. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_address.png +0 -0
  754. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_blockquote.png +0 -0
  755. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_div.png +0 -0
  756. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_h1.png +0 -0
  757. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_h2.png +0 -0
  758. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_h3.png +0 -0
  759. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_h4.png +0 -0
  760. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_h5.png +0 -0
  761. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_h6.png +0 -0
  762. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_p.png +0 -0
  763. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/showblocks/images/block_pre.png +0 -0
  764. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/dialogs/smiley.js +0 -0
  765. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/angel_smile.gif +0 -0
  766. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/angry_smile.gif +0 -0
  767. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/broken_heart.gif +0 -0
  768. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/confused_smile.gif +0 -0
  769. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/cry_smile.gif +0 -0
  770. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/devil_smile.gif +0 -0
  771. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/embaressed_smile.gif +0 -0
  772. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/embarrassed_smile.gif +0 -0
  773. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/envelope.gif +0 -0
  774. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/heart.gif +0 -0
  775. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/kiss.gif +0 -0
  776. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/lightbulb.gif +0 -0
  777. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/omg_smile.gif +0 -0
  778. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/regular_smile.gif +0 -0
  779. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/sad_smile.gif +0 -0
  780. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/shades_smile.gif +0 -0
  781. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/teeth_smile.gif +0 -0
  782. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/thumbs_down.gif +0 -0
  783. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/thumbs_up.gif +0 -0
  784. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/tongue_smile.gif +0 -0
  785. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/tounge_smile.gif +0 -0
  786. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  787. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/smiley/images/wink_smile.gif +0 -0
  788. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -0
  789. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ar.js +0 -0
  790. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/bg.js +0 -0
  791. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ca.js +0 -0
  792. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/cs.js +0 -0
  793. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/cy.js +0 -0
  794. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/de.js +0 -0
  795. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/el.js +0 -0
  796. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/en.js +0 -0
  797. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/eo.js +0 -0
  798. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/es.js +0 -0
  799. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/et.js +0 -0
  800. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/fa.js +0 -0
  801. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/fi.js +0 -0
  802. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/fr-ca.js +0 -0
  803. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/fr.js +0 -0
  804. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/gl.js +0 -0
  805. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/he.js +0 -0
  806. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/hr.js +0 -0
  807. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/hu.js +0 -0
  808. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/id.js +0 -0
  809. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/it.js +0 -0
  810. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ja.js +0 -0
  811. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ku.js +0 -0
  812. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/lv.js +0 -0
  813. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/nb.js +0 -0
  814. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/nl.js +0 -0
  815. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/no.js +0 -0
  816. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/pl.js +0 -0
  817. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/pt-br.js +0 -0
  818. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/pt.js +0 -0
  819. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ru.js +0 -0
  820. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/si.js +0 -0
  821. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/sk.js +0 -0
  822. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/sl.js +0 -0
  823. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/sq.js +0 -0
  824. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/sv.js +0 -0
  825. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/th.js +0 -0
  826. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/tr.js +0 -0
  827. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ug.js +0 -0
  828. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/uk.js +0 -0
  829. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/vi.js +0 -0
  830. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/zh-cn.js +0 -0
  831. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/specialchar/dialogs/specialchar.js +0 -0
  832. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/syntaxhighlight/dialogs/syntaxhighlight.js +0 -0
  833. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/syntaxhighlight/icons/syntaxhighlight.png +0 -0
  834. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/syntaxhighlight/lang/de.js +0 -0
  835. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/syntaxhighlight/lang/en.js +0 -0
  836. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/syntaxhighlight/lang/fr.js +0 -0
  837. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/syntaxhighlight/lang/zh-cn.js +0 -0
  838. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/syntaxhighlight/plugin.js +0 -0
  839. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/table/dialogs/table.js +0 -0
  840. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/tabletools/dialogs/tableCell.js +0 -0
  841. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/templates/dialogs/templates.css +0 -0
  842. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/templates/dialogs/templates.js +0 -0
  843. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/templates/templates/default.js +0 -0
  844. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/templates/templates/images/template1.gif +0 -0
  845. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/templates/templates/images/template2.gif +0 -0
  846. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/templates/templates/images/template3.gif +0 -0
  847. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/wsc/LICENSE.md +0 -0
  848. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/wsc/README.md +0 -0
  849. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/wsc/dialogs/ciframe.html +0 -0
  850. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/wsc/dialogs/tmp.html +0 -0
  851. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/wsc/dialogs/tmpFrameset.html +0 -0
  852. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/wsc/dialogs/wsc.css +0 -0
  853. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/wsc/dialogs/wsc.js +0 -0
  854. data/public/javascripts/{erp_app/ckeditor → ckeditor}/plugins/wsc/dialogs/wsc_ie.js +0 -0
  855. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/dialog.css +0 -0
  856. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/dialog_ie.css +0 -0
  857. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/dialog_ie7.css +0 -0
  858. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/dialog_ie8.css +0 -0
  859. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/dialog_iequirks.css +0 -0
  860. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/dialog_opera.css +0 -0
  861. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/editor.css +0 -0
  862. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/editor_gecko.css +0 -0
  863. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/editor_ie.css +0 -0
  864. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/editor_ie7.css +0 -0
  865. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/editor_ie8.css +0 -0
  866. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/editor_iequirks.css +0 -0
  867. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/icons.png +0 -0
  868. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/icons_hidpi.png +0 -0
  869. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/arrow.png +0 -0
  870. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/close.png +0 -0
  871. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/hidpi/close.png +0 -0
  872. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/hidpi/lock-open.png +0 -0
  873. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/hidpi/lock.png +0 -0
  874. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/hidpi/refresh.png +0 -0
  875. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/lock-open.png +0 -0
  876. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/lock.png +0 -0
  877. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/images/refresh.png +0 -0
  878. data/public/javascripts/{erp_app/ckeditor → ckeditor}/skins/moono/readme.md +0 -0
  879. data/public/javascripts/{erp_app/ckeditor → ckeditor}/styles.js +0 -0
  880. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/close.png +0 -0
  881. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/closeX.png +0 -0
  882. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/controlbar-black-border.gif +0 -0
  883. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/controlbar-text-buttons.png +0 -0
  884. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/controlbar-white-small.gif +0 -0
  885. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/controlbar-white.gif +0 -0
  886. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/controlbar2.gif +0 -0
  887. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/controlbar3.gif +0 -0
  888. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/controlbar4-hover.gif +0 -0
  889. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/controlbar4.gif +0 -0
  890. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/fullexpand.gif +0 -0
  891. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/geckodimmer.png +0 -0
  892. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/icon.gif +0 -0
  893. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/loader.gif +0 -0
  894. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/loader.white.gif +0 -0
  895. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/outlines/Outlines.psd +0 -0
  896. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/outlines/beveled.png +0 -0
  897. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/outlines/drop-shadow.png +0 -0
  898. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/outlines/glossy-dark.png +0 -0
  899. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/outlines/outer-glow.png +0 -0
  900. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/outlines/rounded-black.png +0 -0
  901. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/outlines/rounded-white.png +0 -0
  902. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/resize.gif +0 -0
  903. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/scrollarrows.png +0 -0
  904. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/zoomin.cur +0 -0
  905. data/public/javascripts/{erp_app/highslide/highslide → highslide}/graphics/zoomout.cur +0 -0
  906. data/public/javascripts/highslide/highslide-full.js +3320 -0
  907. data/public/javascripts/highslide/highslide-full.min.js +9 -0
  908. data/public/javascripts/highslide/highslide-full.packed.js +9 -0
  909. data/public/javascripts/{erp_app/highslide/highslide → highslide}/highslide-ie6.css +0 -0
  910. data/public/javascripts/highslide/highslide-with-gallery.js +2657 -0
  911. data/public/javascripts/highslide/highslide-with-gallery.min.js +9 -0
  912. data/public/javascripts/highslide/highslide-with-gallery.packed.js +9 -0
  913. data/public/javascripts/highslide/highslide-with-html.js +2481 -0
  914. data/public/javascripts/highslide/highslide-with-html.min.js +9 -0
  915. data/public/javascripts/highslide/highslide-with-html.packed.js +9 -0
  916. data/public/javascripts/highslide/highslide.cfg.js +27 -0
  917. data/public/javascripts/highslide/highslide.css +889 -0
  918. data/public/javascripts/highslide/highslide.js +1891 -0
  919. data/public/javascripts/highslide/highslide.min.js +9 -0
  920. data/public/javascripts/highslide/highslide.packed.js +9 -0
  921. data/spec/models/organizer_application_spec.rb +3 -3
  922. metadata +914 -980
  923. data/app/assets/stylesheets/erp_app/application.css +0 -7
  924. data/app/controllers/erp_app/desktop/scaffold/base_controller.rb +0 -90
  925. data/app/controllers/erp_app/desktop/security_management/base_controller.rb +0 -47
  926. data/app/controllers/erp_app/desktop/security_management/capabilities_controller.rb +0 -125
  927. data/app/controllers/erp_app/desktop/security_management/groups_controller.rb +0 -198
  928. data/app/controllers/erp_app/desktop/security_management/roles_controller.rb +0 -183
  929. data/app/controllers/erp_app/desktop/security_management/users_controller.rb +0 -140
  930. data/app/controllers/erp_app/mobile/base_controller.rb +0 -21
  931. data/app/controllers/erp_app/mobile/login_controller.rb +0 -11
  932. data/app/controllers/erp_app/mobile/user_management/base_controller.rb +0 -20
  933. data/app/models/app_container.rb +0 -31
  934. data/app/models/desktop.rb +0 -72
  935. data/app/models/mobile.rb +0 -9
  936. data/app/models/mobile_application.rb +0 -6
  937. data/app/models/organizer.rb +0 -11
  938. data/app/models/organizer_application.rb +0 -2
  939. data/app/observers/user_app_container_observer.rb +0 -20
  940. data/app/views/erp_app/mobile/base/index.erb +0 -44
  941. data/app/views/erp_app/mobile/login/index.erb +0 -21
  942. data/config/initializers/erp_app.rb +0 -5
  943. data/db/data_migrations/20110728201733_update_preferences.rb +0 -52
  944. data/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.rb +0 -23
  945. data/db/data_migrations/20110817160743_add_file_manager_application.rb +0 -31
  946. data/db/data_migrations/20111108183739_add_default_capabilities.rb +0 -22
  947. data/db/data_migrations/20111108183740_add_new_contact_widgets.rb +0 -41
  948. data/db/data_migrations/20120229160222_add_userinfo_widget.rb +0 -28
  949. data/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.rb +0 -10
  950. data/db/data_migrations/20120411180756_create_user_management_mobile_application.rb +0 -16
  951. data/db/data_migrations/20120418164215_create_configuration_management_desktop_application.rb +0 -26
  952. data/db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb +0 -22
  953. data/db/data_migrations/20121018172347_created_tracked_jobs.rb +0 -14
  954. data/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.rb +0 -15
  955. data/db/data_migrations/20121218175028_create_security_management_desktop_application.rb +0 -28
  956. data/db/data_migrations/20130411200351_add_job_tracker_mobile_app.rb +0 -16
  957. data/db/data_migrations/20130703181549_create_tail_desktop_application.rb +0 -19
  958. data/db/data_migrations/20131102171801_add_customer_role_type.rb +0 -11
  959. data/db/data_migrations/20131108191057_add_customer_employee_reln.rb +0 -26
  960. data/db/data_migrations/20140122205941_remove_theme_preference.rb +0 -21
  961. data/db/migrate/20120920145259_add_job_tracker.rb +0 -19
  962. data/db/migrate/20130410182333_update_mobile_application.rb +0 -27
  963. data/db/migrate/20131112013049_add_erp_app_missing_indexes.rb +0 -31
  964. data/db/migrate/20131129205550_add_precedence_to_configuration_item_types.rb +0 -7
  965. data/lib/active_ext/active_ext.rb +0 -587
  966. data/lib/active_ext/core.rb +0 -105
  967. data/lib/active_ext/data_structures/column.rb +0 -21
  968. data/lib/active_ext/data_structures/columns.rb +0 -69
  969. data/lib/active_ext/data_structures/data_structures.rb +0 -2
  970. data/lib/active_ext/ext_helpers/column_builder.rb +0 -136
  971. data/lib/active_ext/ext_helpers/data_helper.rb +0 -67
  972. data/lib/active_ext/ext_helpers/ext_helpers.rb +0 -5
  973. data/lib/active_ext/ext_helpers/field_builder.rb +0 -146
  974. data/lib/active_ext/ext_helpers/form_builder.rb +0 -49
  975. data/lib/active_ext/ext_helpers/table_builder.rb +0 -77
  976. data/lib/erp_app/application_resource_loader.rb +0 -4
  977. data/lib/erp_app/application_resource_loader/base_loader.rb +0 -17
  978. data/lib/erp_app/application_resource_loader/desktop_organizer_loader.rb +0 -71
  979. data/lib/erp_app/application_resource_loader/mobile_loader.rb +0 -46
  980. data/lib/erp_app/application_resource_loader/shared_loader.rb +0 -26
  981. data/lib/erp_app/extensions/railties/action_view/helpers/active_ext_helper.rb +0 -17
  982. data/lib/erp_app/extensions/railties/action_view/helpers/tag_helper.rb +0 -38
  983. data/lib/generators/active_ext/USAGE +0 -16
  984. data/lib/generators/active_ext/active_ext_generator.rb +0 -43
  985. data/lib/generators/active_ext/templates/INSTALL +0 -11
  986. data/lib/generators/active_ext/templates/controllers/controller_template.erb +0 -23
  987. data/lib/generators/active_ext/templates/public/module.js.erb +0 -16
  988. data/lib/generators/active_ext/templates/views/create.html.erb +0 -19
  989. data/lib/generators/active_ext/templates/views/edit.html.erb +0 -65
  990. data/lib/generators/active_ext/templates/views/new.html.erb +0 -41
  991. data/lib/generators/active_ext/templates/views/show.html.erb +0 -58
  992. data/lib/generators/active_ext/templates/views/update.html.erb +0 -1
  993. data/lib/generators/compass_ae_mobile/USAGE +0 -9
  994. data/lib/generators/compass_ae_mobile/compass_ae_mobile_generator.rb +0 -38
  995. data/lib/generators/compass_ae_mobile/templates/controllers/controller_template.erb +0 -4
  996. data/lib/generators/compass_ae_mobile/templates/javascripts/main_template.erb +0 -29
  997. data/lib/generators/compass_ae_mobile/templates/views/view_template.erb +0 -25
  998. data/lib/generators/desktop_application/USAGE +0 -24
  999. data/lib/generators/desktop_application/desktop_application_generator.rb +0 -25
  1000. data/lib/generators/desktop_application/templates/INSTALL +0 -25
  1001. data/lib/generators/mobile_application/USAGE +0 -24
  1002. data/lib/generators/mobile_application/mobile_application_generator.rb +0 -25
  1003. data/lib/generators/mobile_application/templates/controllers/controller_template.erb +0 -13
  1004. data/lib/generators/mobile_application/templates/migrate/migration_template.erb +0 -14
  1005. data/lib/generators/mobile_application/templates/public/app.js.erb +0 -24
  1006. data/lib/generators/organizer_application/USAGE +0 -27
  1007. data/lib/generators/organizer_application/organizer_application_generator.rb +0 -25
  1008. data/lib/generators/organizer_application/templates/INSTALL +0 -28
  1009. data/lib/generators/organizer_application/templates/controllers/controller_template.erb +0 -12
  1010. data/lib/generators/organizer_application/templates/migrate/migration_template.erb +0 -14
  1011. data/lib/generators/organizer_application/templates/public/base.js.erb +0 -28
  1012. data/public/images/art/compass-ae-logo-reverse-1.png +0 -0
  1013. data/public/images/erp_app/desktop/applications/security_management/manage_capabilities.png +0 -0
  1014. data/public/images/erp_app/desktop/applications/security_management/manage_groups.png +0 -0
  1015. data/public/images/erp_app/desktop/applications/security_management/manage_roles.png +0 -0
  1016. data/public/images/erp_app/desktop/applications/security_management/manage_users.png +0 -0
  1017. data/public/images/icons/fieldtypes/business_party.png +0 -0
  1018. data/public/images/icons/fieldtypes/check.png +0 -0
  1019. data/public/images/icons/fieldtypes/date.png +0 -0
  1020. data/public/images/icons/fieldtypes/display.png +0 -0
  1021. data/public/images/icons/fieldtypes/email.png +0 -0
  1022. data/public/images/icons/fieldtypes/file.png +0 -0
  1023. data/public/images/icons/fieldtypes/file_assets.png +0 -0
  1024. data/public/images/icons/fieldtypes/image.png +0 -0
  1025. data/public/images/icons/fieldtypes/money.png +0 -0
  1026. data/public/images/icons/fieldtypes/number.png +0 -0
  1027. data/public/images/icons/fieldtypes/password.png +0 -0
  1028. data/public/images/icons/fieldtypes/question.png +0 -0
  1029. data/public/images/icons/fieldtypes/radio.png +0 -0
  1030. data/public/images/icons/fieldtypes/select.png +0 -0
  1031. data/public/images/icons/fieldtypes/text.png +0 -0
  1032. data/public/images/icons/fieldtypes/text.psd +0 -0
  1033. data/public/images/icons/fieldtypes/text_area.png +0 -0
  1034. data/public/images/icons/fieldtypes/time.png +0 -0
  1035. data/public/images/icons/fieldtypes/yes_no.png +0 -0
  1036. data/public/images/icons/login/login_48x48.png +0 -0
  1037. data/public/images/icons/mail/mail_48x48.png +0 -0
  1038. data/public/images/icons/manage-profile/manage-profile_48x48.png +0 -0
  1039. data/public/images/icons/map/map_48x48.png +0 -0
  1040. data/public/images/icons/package/package_48x48.png +0 -0
  1041. data/public/images/icons/product/product_48x48.png +0 -0
  1042. data/public/images/icons/recycle/recycle_16x16.png +0 -0
  1043. data/public/images/icons/reset-password/reset-password_48x48.png +0 -0
  1044. data/public/images/icons/search/search_48x48.png +0 -0
  1045. data/public/images/icons/shopping_cart/shopping_cart_48x48.png +0 -0
  1046. data/public/images/icons/sign_up/sign_up_48x48.png +0 -0
  1047. data/public/images/icons/signup/signup_48x48.png +0 -0
  1048. data/public/javascripts/erp_app/authentication/compass_user.js +0 -94
  1049. data/public/javascripts/erp_app/ckeditor/config.js +0 -12
  1050. data/public/javascripts/erp_app/ckeditor/plugins/compasssave/plugin.js +0 -22
  1051. data/public/javascripts/erp_app/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
  1052. data/public/javascripts/erp_app/ckeditor/plugins/inlineeditsave/plugin.js +0 -42
  1053. data/public/javascripts/erp_app/ckeditor/plugins/knitkitthemes/plugin.js +0 -116
  1054. data/public/javascripts/erp_app/ckeditor/plugins/scayt/README.md +0 -25
  1055. data/public/javascripts/erp_app/ckeditor/plugins/scayt/dialogs/options.js +0 -20
  1056. data/public/javascripts/erp_app/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -71
  1057. data/public/javascripts/erp_app/ckeditor_example_config_override.js +0 -45
  1058. data/public/javascripts/erp_app/codemirror/lib/codemirror.css +0 -272
  1059. data/public/javascripts/erp_app/codemirror/lib/codemirror.js +0 -55
  1060. data/public/javascripts/erp_app/codemirror/theme/3024-day.css +0 -34
  1061. data/public/javascripts/erp_app/codemirror/theme/3024-night.css +0 -34
  1062. data/public/javascripts/erp_app/codemirror/theme/ambiance-mobile.css +0 -5
  1063. data/public/javascripts/erp_app/codemirror/theme/ambiance.css +0 -74
  1064. data/public/javascripts/erp_app/codemirror/theme/base16-dark.css +0 -34
  1065. data/public/javascripts/erp_app/codemirror/theme/base16-light.css +0 -34
  1066. data/public/javascripts/erp_app/codemirror/theme/blackboard.css +0 -28
  1067. data/public/javascripts/erp_app/codemirror/theme/cobalt.css +0 -21
  1068. data/public/javascripts/erp_app/codemirror/theme/eclipse.css +0 -23
  1069. data/public/javascripts/erp_app/codemirror/theme/elegant.css +0 -13
  1070. data/public/javascripts/erp_app/codemirror/theme/erlang-dark.css +0 -30
  1071. data/public/javascripts/erp_app/codemirror/theme/lesser-dark.css +0 -43
  1072. data/public/javascripts/erp_app/codemirror/theme/mbo.css +0 -37
  1073. data/public/javascripts/erp_app/codemirror/theme/mdn-like.css +0 -44
  1074. data/public/javascripts/erp_app/codemirror/theme/midnight.css +0 -43
  1075. data/public/javascripts/erp_app/codemirror/theme/monokai.css +0 -29
  1076. data/public/javascripts/erp_app/codemirror/theme/neat.css +0 -12
  1077. data/public/javascripts/erp_app/codemirror/theme/neo.css +0 -40
  1078. data/public/javascripts/erp_app/codemirror/theme/night.css +0 -24
  1079. data/public/javascripts/erp_app/codemirror/theme/paraiso-dark.css +0 -34
  1080. data/public/javascripts/erp_app/codemirror/theme/paraiso-light.css +0 -34
  1081. data/public/javascripts/erp_app/codemirror/theme/pastel-on-dark.css +0 -48
  1082. data/public/javascripts/erp_app/codemirror/theme/rubyblue.css +0 -21
  1083. data/public/javascripts/erp_app/codemirror/theme/solarized.css +0 -167
  1084. data/public/javascripts/erp_app/codemirror/theme/the-matrix.css +0 -26
  1085. data/public/javascripts/erp_app/codemirror/theme/tomorrow-night-eighties.css +0 -34
  1086. data/public/javascripts/erp_app/codemirror/theme/twilight.css +0 -28
  1087. data/public/javascripts/erp_app/codemirror/theme/vibrant-ink.css +0 -30
  1088. data/public/javascripts/erp_app/codemirror/theme/xq-dark.css +0 -49
  1089. data/public/javascripts/erp_app/codemirror/theme/xq-light.css +0 -43
  1090. data/public/javascripts/erp_app/codemirror_highlight.js +0 -17
  1091. data/public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js +0 -38
  1092. data/public/javascripts/erp_app/desktop/applications/configuration_management/module.js +0 -95
  1093. data/public/javascripts/erp_app/desktop/applications/control_panel/module.js +0 -73
  1094. data/public/javascripts/erp_app/desktop/applications/file_manager/module.js +0 -120
  1095. data/public/javascripts/erp_app/desktop/applications/job_tracker/module.js +0 -44
  1096. data/public/javascripts/erp_app/desktop/applications/scaffold/models_tree_panel.js +0 -86
  1097. data/public/javascripts/erp_app/desktop/applications/scaffold/module.js +0 -62
  1098. data/public/javascripts/erp_app/desktop/applications/security_management/capabilities_panel.js +0 -62
  1099. data/public/javascripts/erp_app/desktop/applications/security_management/capabilities_widget.js +0 -241
  1100. data/public/javascripts/erp_app/desktop/applications/security_management/groups_effective_security.js +0 -94
  1101. data/public/javascripts/erp_app/desktop/applications/security_management/groups_panel.js +0 -298
  1102. data/public/javascripts/erp_app/desktop/applications/security_management/groups_widget.js +0 -241
  1103. data/public/javascripts/erp_app/desktop/applications/security_management/module.js +0 -173
  1104. data/public/javascripts/erp_app/desktop/applications/security_management/north_panel.js +0 -31
  1105. data/public/javascripts/erp_app/desktop/applications/security_management/roles_panel.js +0 -309
  1106. data/public/javascripts/erp_app/desktop/applications/security_management/roles_widget.js +0 -241
  1107. data/public/javascripts/erp_app/desktop/applications/security_management/south_panel.js +0 -126
  1108. data/public/javascripts/erp_app/desktop/applications/security_management/users_effective_security.js +0 -128
  1109. data/public/javascripts/erp_app/desktop/applications/security_management/users_panel.js +0 -59
  1110. data/public/javascripts/erp_app/desktop/applications/security_management/users_widget.js +0 -245
  1111. data/public/javascripts/erp_app/desktop/applications/user_management/module.js +0 -469
  1112. data/public/javascripts/erp_app/desktop/applications/user_management/personal_info_panel.js +0 -117
  1113. data/public/javascripts/erp_app/desktop/applications/user_management/role_management_panel.js +0 -208
  1114. data/public/javascripts/erp_app/desktop/applications/user_management/user_application_mgt_panel.js +0 -206
  1115. data/public/javascripts/erp_app/desktop/ext_ux_desktop_module.js +0 -1014
  1116. data/public/javascripts/erp_app/ecommerce/credit_card_window.js +0 -329
  1117. data/public/javascripts/erp_app/highslide/examples/ajax.html +0 -51
  1118. data/public/javascripts/erp_app/highslide/examples/flash.html +0 -61
  1119. data/public/javascripts/erp_app/highslide/examples/gallery-controls-in-heading.html +0 -89
  1120. data/public/javascripts/erp_app/highslide/examples/gallery-dark.html +0 -93
  1121. data/public/javascripts/erp_app/highslide/examples/gallery-floating-caption.html +0 -91
  1122. data/public/javascripts/erp_app/highslide/examples/gallery-floating-thumbs.html +0 -144
  1123. data/public/javascripts/erp_app/highslide/examples/gallery-horizontal-strip.html +0 -147
  1124. data/public/javascripts/erp_app/highslide/examples/gallery-in-box.html +0 -95
  1125. data/public/javascripts/erp_app/highslide/examples/gallery-in-page.html +0 -221
  1126. data/public/javascripts/erp_app/highslide/examples/gallery-thumbstrip-above.html +0 -142
  1127. data/public/javascripts/erp_app/highslide/examples/gallery-vertical-strip.html +0 -178
  1128. data/public/javascripts/erp_app/highslide/examples/gallery-white.html +0 -90
  1129. data/public/javascripts/erp_app/highslide/examples/headline.html +0 -49
  1130. data/public/javascripts/erp_app/highslide/examples/html.html +0 -67
  1131. data/public/javascripts/erp_app/highslide/examples/iframe.html +0 -44
  1132. data/public/javascripts/erp_app/highslide/examples/image-map.html +0 -49
  1133. data/public/javascripts/erp_app/highslide/examples/includes/Flash.swf +0 -0
  1134. data/public/javascripts/erp_app/highslide/examples/includes/ajax.htm +0 -45
  1135. data/public/javascripts/erp_app/highslide/examples/includes/include-short.htm +0 -40
  1136. data/public/javascripts/erp_app/highslide/examples/inline.html +0 -50
  1137. data/public/javascripts/erp_app/highslide/examples/mini-galleries.html +0 -135
  1138. data/public/javascripts/erp_app/highslide/examples/mini-gallery.html +0 -89
  1139. data/public/javascripts/erp_app/highslide/examples/no-border.html +0 -62
  1140. data/public/javascripts/erp_app/highslide/examples/no-outline.html +0 -52
  1141. data/public/javascripts/erp_app/highslide/examples/outer-glow.html +0 -53
  1142. data/public/javascripts/erp_app/highslide/examples/white-10px.html +0 -51
  1143. data/public/javascripts/erp_app/highslide/examples/white-rounded-outline.html +0 -51
  1144. data/public/javascripts/erp_app/highslide/examples/youtube.html +0 -62
  1145. data/public/javascripts/erp_app/highslide/highslide/highslide-full.js +0 -3302
  1146. data/public/javascripts/erp_app/highslide/highslide/highslide-full.min.js +0 -9
  1147. data/public/javascripts/erp_app/highslide/highslide/highslide-full.packed.js +0 -9
  1148. data/public/javascripts/erp_app/highslide/highslide/highslide-with-gallery.js +0 -2639
  1149. data/public/javascripts/erp_app/highslide/highslide/highslide-with-gallery.min.js +0 -9
  1150. data/public/javascripts/erp_app/highslide/highslide/highslide-with-gallery.packed.js +0 -9
  1151. data/public/javascripts/erp_app/highslide/highslide/highslide-with-html.js +0 -2476
  1152. data/public/javascripts/erp_app/highslide/highslide/highslide-with-html.min.js +0 -9
  1153. data/public/javascripts/erp_app/highslide/highslide/highslide-with-html.packed.js +0 -9
  1154. data/public/javascripts/erp_app/highslide/highslide/highslide.css +0 -886
  1155. data/public/javascripts/erp_app/highslide/highslide/highslide.js +0 -1886
  1156. data/public/javascripts/erp_app/highslide/highslide/highslide.min.js +0 -9
  1157. data/public/javascripts/erp_app/highslide/highslide/highslide.packed.js +0 -9
  1158. data/public/javascripts/erp_app/highslide/images/full-image.jpg +0 -0
  1159. data/public/javascripts/erp_app/highslide/images/full6.jpg +0 -0
  1160. data/public/javascripts/erp_app/highslide/images/gallery1.jpg +0 -0
  1161. data/public/javascripts/erp_app/highslide/images/gallery1.thumb.jpg +0 -0
  1162. data/public/javascripts/erp_app/highslide/images/gallery2.jpg +0 -0
  1163. data/public/javascripts/erp_app/highslide/images/gallery2.thumb.jpg +0 -0
  1164. data/public/javascripts/erp_app/highslide/images/gallery3.jpg +0 -0
  1165. data/public/javascripts/erp_app/highslide/images/gallery3.thumb.jpg +0 -0
  1166. data/public/javascripts/erp_app/highslide/images/nordic.gif +0 -0
  1167. data/public/javascripts/erp_app/highslide/images/thumb6.jpg +0 -0
  1168. data/public/javascripts/erp_app/highslide/images/thumbnail.jpg +0 -0
  1169. data/public/javascripts/erp_app/highslide/images/thumbstrip01.jpg +0 -0
  1170. data/public/javascripts/erp_app/highslide/images/thumbstrip01.thumb.png +0 -0
  1171. data/public/javascripts/erp_app/highslide/images/thumbstrip02.jpg +0 -0
  1172. data/public/javascripts/erp_app/highslide/images/thumbstrip02.thumb.png +0 -0
  1173. data/public/javascripts/erp_app/highslide/images/thumbstrip03.jpg +0 -0
  1174. data/public/javascripts/erp_app/highslide/images/thumbstrip03.thumb.png +0 -0
  1175. data/public/javascripts/erp_app/highslide/images/thumbstrip04.jpg +0 -0
  1176. data/public/javascripts/erp_app/highslide/images/thumbstrip04.thumb.png +0 -0
  1177. data/public/javascripts/erp_app/highslide/images/thumbstrip05.jpg +0 -0
  1178. data/public/javascripts/erp_app/highslide/images/thumbstrip05.thumb.png +0 -0
  1179. data/public/javascripts/erp_app/highslide/images/thumbstrip06.jpg +0 -0
  1180. data/public/javascripts/erp_app/highslide/images/thumbstrip06.thumb.png +0 -0
  1181. data/public/javascripts/erp_app/highslide/images/thumbstrip07.jpg +0 -0
  1182. data/public/javascripts/erp_app/highslide/images/thumbstrip07.thumb.png +0 -0
  1183. data/public/javascripts/erp_app/highslide/images/thumbstrip08.jpg +0 -0
  1184. data/public/javascripts/erp_app/highslide/images/thumbstrip08.thumb.png +0 -0
  1185. data/public/javascripts/erp_app/highslide/images/thumbstrip09.jpg +0 -0
  1186. data/public/javascripts/erp_app/highslide/images/thumbstrip09.thumb.png +0 -0
  1187. data/public/javascripts/erp_app/highslide/images/thumbstrip10.jpg +0 -0
  1188. data/public/javascripts/erp_app/highslide/images/thumbstrip10.thumb.png +0 -0
  1189. data/public/javascripts/erp_app/highslide/images/thumbstrip11.jpg +0 -0
  1190. data/public/javascripts/erp_app/highslide/images/thumbstrip11.thumb.png +0 -0
  1191. data/public/javascripts/erp_app/highslide/images/thumbstrip12.jpg +0 -0
  1192. data/public/javascripts/erp_app/highslide/images/thumbstrip12.thumb.png +0 -0
  1193. data/public/javascripts/erp_app/highslide/images/thumbstrip13.jpg +0 -0
  1194. data/public/javascripts/erp_app/highslide/images/thumbstrip13.thumb.png +0 -0
  1195. data/public/javascripts/erp_app/highslide/images/thumbstrip14.jpg +0 -0
  1196. data/public/javascripts/erp_app/highslide/images/thumbstrip14.thumb.png +0 -0
  1197. data/public/javascripts/erp_app/highslide/images/thumbstrip15.jpg +0 -0
  1198. data/public/javascripts/erp_app/highslide/images/thumbstrip15.thumb.png +0 -0
  1199. data/public/javascripts/erp_app/highslide/images/thumbstrip16.jpg +0 -0
  1200. data/public/javascripts/erp_app/highslide/images/thumbstrip16.thumb.png +0 -0
  1201. data/public/javascripts/erp_app/highslide/images/thumbstrip17.jpg +0 -0
  1202. data/public/javascripts/erp_app/highslide/images/thumbstrip17.thumb.png +0 -0
  1203. data/public/javascripts/erp_app/highslide/images/thumbstrip18.jpg +0 -0
  1204. data/public/javascripts/erp_app/highslide/images/thumbstrip18.thumb.png +0 -0
  1205. data/public/javascripts/erp_app/highslide/images/thumbstrip19.jpg +0 -0
  1206. data/public/javascripts/erp_app/highslide/images/thumbstrip19.thumb.png +0 -0
  1207. data/public/javascripts/erp_app/highslide/images/thumbstrip20.jpg +0 -0
  1208. data/public/javascripts/erp_app/highslide/images/thumbstrip20.thumb.png +0 -0
  1209. data/public/javascripts/erp_app/highslide/images/thumbstrip21.jpg +0 -0
  1210. data/public/javascripts/erp_app/highslide/images/thumbstrip21.thumb.png +0 -0
  1211. data/public/javascripts/erp_app/highslide/images/thumbstrip22.jpg +0 -0
  1212. data/public/javascripts/erp_app/highslide/images/thumbstrip22.thumb.png +0 -0
  1213. data/public/javascripts/erp_app/highslide/images/thumbstrip23.jpg +0 -0
  1214. data/public/javascripts/erp_app/highslide/images/thumbstrip23.thumb.png +0 -0
  1215. data/public/javascripts/erp_app/highslide/images/thumbstrip24.jpg +0 -0
  1216. data/public/javascripts/erp_app/highslide/images/thumbstrip24.thumb.png +0 -0
  1217. data/public/javascripts/erp_app/highslide/index.htm +0 -68
  1218. data/public/javascripts/erp_app/jquery_support.js +0 -31
  1219. data/public/javascripts/erp_app/login/mobile.js +0 -58
  1220. data/public/javascripts/erp_app/login/window.js +0 -124
  1221. data/public/javascripts/erp_app/mobile/app.js +0 -74
  1222. data/public/javascripts/erp_app/mobile/applications/job_tracker/app.js +0 -177
  1223. data/public/javascripts/erp_app/mobile/applications/job_tracker/model/job.js +0 -15
  1224. data/public/javascripts/erp_app/mobile/applications/job_tracker/store/jobs.js +0 -16
  1225. data/public/javascripts/erp_app/mobile/applications/job_tracker/view/templates.js +0 -22
  1226. data/public/javascripts/erp_app/mobile/applications/user_management/app.js +0 -112
  1227. data/public/javascripts/erp_app/mobile/applications/user_management/app/model/user.js +0 -14
  1228. data/public/javascripts/erp_app/mobile/applications/user_management/app/store/users.js +0 -19
  1229. data/public/javascripts/erp_app/mobile/applications/user_management/app/view/templates.js +0 -34
  1230. data/public/javascripts/erp_app/mobile/mobile_base.js +0 -10
  1231. data/public/javascripts/erp_app/organizer/applications/crm/base.js +0 -64
  1232. data/public/javascripts/erp_app/organizer/default_menu_tree_panel.js +0 -69
  1233. data/public/javascripts/erp_app/organizer/layout.js +0 -267
  1234. data/public/javascripts/erp_app/shared/MoneyField.js +0 -119
  1235. data/public/javascripts/erp_app/shared/active_ext/active_ext_grid.js +0 -351
  1236. data/public/javascripts/erp_app/shared/audit_log/GridPanel.js +0 -214
  1237. data/public/javascripts/erp_app/shared/audit_log/TabPanel.js +0 -103
  1238. data/public/javascripts/erp_app/shared/compass_ckeditor.js +0 -264
  1239. data/public/javascripts/erp_app/shared/compass_codemirror.js +0 -466
  1240. data/public/javascripts/erp_app/shared/configuration/configuration_panel.js +0 -128
  1241. data/public/javascripts/erp_app/shared/crm/ContactMechanismGrid.js +0 -812
  1242. data/public/javascripts/erp_app/shared/crm/PartyDetailsPanel.js +0 -344
  1243. data/public/javascripts/erp_app/shared/crm/PartyForm.js +0 -321
  1244. data/public/javascripts/erp_app/shared/crm/PartyGrid.js +0 -591
  1245. data/public/javascripts/erp_app/shared/crm/UserForm.js +0 -307
  1246. data/public/javascripts/erp_app/shared/crm/UsersGrid.js +0 -492
  1247. data/public/javascripts/erp_app/shared/dynamic_editable_grid.js +0 -140
  1248. data/public/javascripts/erp_app/shared/dynamic_editable_grid_loader_panel.js +0 -64
  1249. data/public/javascripts/erp_app/shared/dynamic_form_fields.js +0 -99
  1250. data/public/javascripts/erp_app/shared/file_manager_tree.js +0 -722
  1251. data/public/javascripts/erp_app/shared/file_upload/Ext.ux.panel.UploadPanel.js +0 -580
  1252. data/public/javascripts/erp_app/shared/file_upload/upload_window.js +0 -63
  1253. data/public/javascripts/erp_app/shared/notes_grid.js +0 -338
  1254. data/public/javascripts/erp_app/shared/profile_management_panel.js +0 -137
  1255. data/public/javascripts/erp_app/utility.js +0 -654
  1256. data/public/javascripts/erp_app/widgets.js +0 -82
  1257. data/public/stylesheets/erp_app/desktop/base.css +0 -254
  1258. data/public/stylesheets/erp_app/login/main.css +0 -4
  1259. data/public/stylesheets/erp_app/mobile/applications/user_management/main.css +0 -21
  1260. data/public/stylesheets/erp_app/mobile/mobile.css +0 -47
  1261. data/public/stylesheets/erp_app/organizer/base.css +0 -6
  1262. data/public/stylesheets/erp_app/shared/compass-ext-all.css +0 -547
  1263. data/public/stylesheets/erp_app/shared/crm.css +0 -45
  1264. data/public/stylesheets/jquery_plugins/jquery.loadmask.css +0 -40
@@ -1,53 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
-
6
- <title>Highslide JS</title>
7
-
8
- <!--
9
- 1 ) Reference to the files containing the JavaScript and CSS.
10
- These files must be located on your server.
11
- -->
12
-
13
- <script type="text/javascript" src="../highslide/highslide.js"></script>
14
- <link rel="stylesheet" type="text/css" href="../highslide/highslide.css" />
15
-
16
-
17
- <!--
18
- 2) Optionally override the settings defined at the top
19
- of the highslide.js file. The parameter hs.graphicsDir is important!
20
- -->
21
-
22
- <script type="text/javascript">
23
- hs.graphicsDir = '../highslide/graphics/';
24
- hs.outlineType = 'outer-glow';
25
- hs.wrapperClassName = 'outer-glow';
26
- </script>
27
-
28
-
29
- </head>
30
-
31
- <body style="background-color: black">
32
- <div>
33
- <!--
34
- 3) This is how you mark up the thumbnail image with an anchor tag around it.
35
- The anchor's href attribute defines the URL of the full-size image.
36
- -->
37
- <a id="thumb1" href="../images/full-image.jpg" class="highslide" onclick="return hs.expand(this)">
38
- <img src="../images/thumbnail.jpg" alt="Highslide JS"
39
- title="Click to enlarge" height="120" width="107" /></a>
40
-
41
- <!--
42
- 4 (optional). This is how you mark up the caption. The caption must be directly
43
- after the anchor above.
44
- -->
45
-
46
- <div class="highslide-caption">
47
- This caption can be styled using CSS.
48
- </div>
49
-
50
-
51
- </div>
52
- </body>
53
- </html>
@@ -1,51 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
2
-
3
- <html>
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
-
7
- <title>Highslide JS</title>
8
-
9
- <!--
10
- 1 ) Reference to the files containing the JavaScript and CSS.
11
- These files must be located on your server.
12
- -->
13
-
14
- <script type="text/javascript" src="../highslide/highslide.js"></script>
15
- <link rel="stylesheet" type="text/css" href="../highslide/highslide.css" />
16
-
17
-
18
- <!--
19
- 2) Optionally override the settings defined at the top
20
- of the highslide.js file. The parameter hs.graphicsDir is important!
21
- -->
22
-
23
- <script type="text/javascript">
24
- hs.graphicsDir = '../highslide/graphics/';
25
- hs.wrapperClassName = 'wide-border';
26
- </script>
27
-
28
- </head>
29
-
30
- <body>
31
-
32
- <div>
33
- <!--
34
- 3) This is how you mark up the thumbnail image with an anchor tag around it.
35
- The anchor's href attribute defines the URL of the full-size image.
36
- -->
37
- <a href="../images/full-image.jpg" class="highslide" onclick="return hs.expand(this)">
38
- <img src="../images/thumbnail.jpg" alt="Highslide JS"
39
- title="Click to enlarge" height="120" width="107" /></a>
40
-
41
- <!--
42
- 4 (optional). This is how you mark up the caption. The caption must be directly after the anchor above..
43
- -->
44
-
45
- <div class="highslide-caption">
46
- This caption can be styled using CSS.
47
- </div>
48
-
49
- </div>
50
- </body>
51
- </html>
@@ -1,51 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
-
6
- <title>Highslide JS</title>
7
-
8
- <!--
9
- 1 ) Reference to the files containing the JavaScript and CSS.
10
- These files must be located on your server.
11
- -->
12
-
13
- <script type="text/javascript" src="../highslide/highslide.js"></script>
14
- <link rel="stylesheet" type="text/css" href="../highslide/highslide.css" />
15
-
16
-
17
- <!--
18
- 2) Optionally override the settings defined at the top
19
- of the highslide.js file. The parameter hs.graphicsDir is important!
20
- -->
21
-
22
- <script type="text/javascript">
23
- hs.graphicsDir = '../highslide/graphics/';
24
- hs.outlineType = 'rounded-white';
25
- </script>
26
-
27
-
28
- </head>
29
-
30
- <body>
31
- <div>
32
- <!--
33
- 3) This is how you mark up the thumbnail image with an anchor tag around it.
34
- The anchor's href attribute defines the URL of the full-size image.
35
- -->
36
- <a id="thumb1" href="../images/full-image.jpg" class="highslide" onclick="return hs.expand(this)">
37
- <img src="../images/thumbnail.jpg" alt="Highslide JS"
38
- title="Click to enlarge" height="120" width="107" /></a>
39
-
40
- <!--
41
- 4 (optional). This is how you mark up the caption. The caption must be directly
42
- after the anchor above.
43
- -->
44
-
45
- <div class="highslide-caption">
46
- This caption can be styled using CSS.
47
- </div>
48
-
49
- </div>
50
- </body>
51
- </html>
@@ -1,62 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
-
6
- <title>Highslide JS</title>
7
-
8
- <!--
9
- 1 ) Reference to the files containing the javascript.
10
- These files must be located on your server.
11
- -->
12
-
13
- <script type="text/javascript" src="../highslide/highslide-with-html.js"></script>
14
- <link rel="stylesheet" type="text/css" href="../highslide/highslide.css" />
15
-
16
- <!--
17
- 2) Optionally override the settings defined at the top
18
- of the highslide.js file. The parameter hs.graphicsDir is important!
19
- -->
20
-
21
- <script type="text/javascript">
22
- // Apply the Highslide settings
23
- hs.graphicsDir = '../highslide/graphics/';
24
- hs.outlineType = 'rounded-white';
25
- hs.outlineWhileAnimating = true;
26
- </script>
27
-
28
- </head>
29
-
30
- <body>
31
- <div>
32
-
33
- <!--
34
- 5) This is how you mark up the thumbnail or text link.
35
-
36
- The href is a two component string where the first part, left of the question mark, is extracted
37
- from the "Embed" code snippet found at the YouTube page for this video:
38
-
39
- "http://www.youtube.com/embed/a0qMe7Z3EYg"
40
-
41
- The second component, to the right of the question mark, are the parameters. See
42
- http://code.google.com/intl/no-NO/apis/youtube/player_parameters.html for a full reference.
43
- In the example below, we set rel to 0 to disable loading related videos once the playback
44
- of the initial video starts. Then, more importantly, we set wmode to transparent to allow
45
- Highslide to add overlays (close buttons, navigation etc.) to the popup:
46
-
47
- "?rel=0&amp;wmode=transparent"
48
-
49
- -->
50
- <a href="http://www.youtube.com/embed/a0qMe7Z3EYg?rel=0&amp;wmode=transparent"
51
- onclick="return hs.htmlExpand(this, {objectType: 'iframe', width: 480, height: 385,
52
- allowSizeReduction: false, wrapperClassName: 'draggable-header no-footer',
53
- preserveContent: false, objectLoadTime: 'after'})"
54
- class="highslide">
55
- Display YouTube movie
56
- </a>
57
-
58
- </div>
59
-
60
- </body>
61
-
62
- </html>
@@ -1,3302 +0,0 @@
1
- /**
2
- * Name: Highslide JS
3
- * Version: 4.1.12 (2011-03-28)
4
- * Config: default +events +unobtrusive +imagemap +slideshow +positioning +transitions +viewport +thumbstrip +inline +ajax +iframe +flash
5
- * Author: Torstein Hønsi
6
- * Support: www.highslide.com/support
7
- * License: www.highslide.com/#license
8
- */
9
- if (!hs) { var hs = {
10
- // Language strings
11
- lang : {
12
- cssDirection: 'ltr',
13
- loadingText : 'Loading...',
14
- loadingTitle : 'Click to cancel',
15
- focusTitle : 'Click to bring to front',
16
- fullExpandTitle : 'Expand to actual size (f)',
17
- creditsText : 'Powered by <i>Highslide JS</i>',
18
- creditsTitle : 'Go to the Highslide JS homepage',
19
- previousText : 'Previous',
20
- nextText : 'Next',
21
- moveText : 'Move',
22
- closeText : 'Close',
23
- closeTitle : 'Close (esc)',
24
- resizeTitle : 'Resize',
25
- playText : 'Play',
26
- playTitle : 'Play slideshow (spacebar)',
27
- pauseText : 'Pause',
28
- pauseTitle : 'Pause slideshow (spacebar)',
29
- previousTitle : 'Previous (arrow left)',
30
- nextTitle : 'Next (arrow right)',
31
- moveTitle : 'Move',
32
- fullExpandText : '1:1',
33
- number: 'Image %1 of %2',
34
- restoreTitle : 'Click to close image, click and drag to move. Use arrow keys for next and previous.'
35
- },
36
- // See http://highslide.com/ref for examples of settings
37
- graphicsDir : '/javascripts/erp_app/highslide/highslide/graphics/',
38
- expandCursor : 'zoomin.cur', // null disables
39
- restoreCursor : 'zoomout.cur', // null disables
40
- expandDuration : 250, // milliseconds
41
- restoreDuration : 250,
42
- marginLeft : 15,
43
- marginRight : 15,
44
- marginTop : 15,
45
- marginBottom : 15,
46
- zIndexCounter : 1001, // adjust to other absolutely positioned elements
47
- loadingOpacity : 0.75,
48
- allowMultipleInstances: true,
49
- numberOfImagesToPreload : 5,
50
- outlineWhileAnimating : 2, // 0 = never, 1 = always, 2 = HTML only
51
- outlineStartOffset : 3, // ends at 10
52
- padToMinWidth : false, // pad the popup width to make room for wide caption
53
- fullExpandPosition : 'bottom right',
54
- fullExpandOpacity : 1,
55
- showCredits : true, // you can set this to false if you want
56
- creditsHref : 'http://highslide.com/',
57
- creditsTarget : '_self',
58
- enableKeyListener : true,
59
- openerTagNames : ['a', 'area'], // Add more to allow slideshow indexing
60
- transitions : [],
61
- transitionDuration: 250,
62
- dimmingOpacity: 0, // Lightbox style dimming background
63
- dimmingDuration: 50, // 0 for instant dimming
64
-
65
- allowWidthReduction : false,
66
- allowHeightReduction : true,
67
- preserveContent : true, // Preserve changes made to the content and position of HTML popups.
68
- objectLoadTime : 'before', // Load iframes 'before' or 'after' expansion.
69
- cacheAjax : true, // Cache ajax popups for instant display. Can be overridden for each popup.
70
- anchor : 'auto', // where the image expands from
71
- align : 'auto', // position in the client (overrides anchor)
72
- targetX: null, // the id of a target element
73
- targetY: null,
74
- dragByHeading: true,
75
- minWidth: 200,
76
- minHeight: 200,
77
- allowSizeReduction: true, // allow the image to reduce to fit client size. If false, this overrides minWidth and minHeight
78
- outlineType : 'drop-shadow', // set null to disable outlines
79
- skin : {
80
- controls:
81
- '<div class="highslide-controls"><ul>'+
82
- '<li class="highslide-previous">'+
83
- '<a href="#" title="{hs.lang.previousTitle}">'+
84
- '<span>{hs.lang.previousText}</span></a>'+
85
- '</li>'+
86
- '<li class="highslide-play">'+
87
- '<a href="#" title="{hs.lang.playTitle}">'+
88
- '<span>{hs.lang.playText}</span></a>'+
89
- '</li>'+
90
- '<li class="highslide-pause">'+
91
- '<a href="#" title="{hs.lang.pauseTitle}">'+
92
- '<span>{hs.lang.pauseText}</span></a>'+
93
- '</li>'+
94
- '<li class="highslide-next">'+
95
- '<a href="#" title="{hs.lang.nextTitle}">'+
96
- '<span>{hs.lang.nextText}</span></a>'+
97
- '</li>'+
98
- '<li class="highslide-move">'+
99
- '<a href="#" title="{hs.lang.moveTitle}">'+
100
- '<span>{hs.lang.moveText}</span></a>'+
101
- '</li>'+
102
- '<li class="highslide-full-expand">'+
103
- '<a href="#" title="{hs.lang.fullExpandTitle}">'+
104
- '<span>{hs.lang.fullExpandText}</span></a>'+
105
- '</li>'+
106
- '<li class="highslide-close">'+
107
- '<a href="#" title="{hs.lang.closeTitle}" >'+
108
- '<span>{hs.lang.closeText}</span></a>'+
109
- '</li>'+
110
- '</ul></div>'
111
- ,
112
- contentWrapper:
113
- '<div class="highslide-header"><ul>'+
114
- '<li class="highslide-previous">'+
115
- '<a href="#" title="{hs.lang.previousTitle}" onclick="return hs.previous(this)">'+
116
- '<span>{hs.lang.previousText}</span></a>'+
117
- '</li>'+
118
- '<li class="highslide-next">'+
119
- '<a href="#" title="{hs.lang.nextTitle}" onclick="return hs.next(this)">'+
120
- '<span>{hs.lang.nextText}</span></a>'+
121
- '</li>'+
122
- '<li class="highslide-move">'+
123
- '<a href="#" title="{hs.lang.moveTitle}" onclick="return false">'+
124
- '<span>{hs.lang.moveText}</span></a>'+
125
- '</li>'+
126
- '<li class="highslide-close">'+
127
- '<a href="#" title="{hs.lang.closeTitle}" onclick="return hs.close(this)">'+
128
- '<span>{hs.lang.closeText}</span></a>'+
129
- '</li>'+
130
- '</ul></div>'+
131
- '<div class="highslide-body"></div>'+
132
- '<div class="highslide-footer"><div>'+
133
- '<span class="highslide-resize" title="{hs.lang.resizeTitle}"><span></span></span>'+
134
- '</div></div>'
135
- },
136
- // END OF YOUR SETTINGS
137
-
138
-
139
- // declare internal properties
140
- preloadTheseImages : [],
141
- continuePreloading: true,
142
- expanders : [],
143
- overrides : [
144
- 'allowSizeReduction',
145
- 'useBox',
146
- 'anchor',
147
- 'align',
148
- 'targetX',
149
- 'targetY',
150
- 'outlineType',
151
- 'outlineWhileAnimating',
152
- 'captionId',
153
- 'captionText',
154
- 'captionEval',
155
- 'captionOverlay',
156
- 'headingId',
157
- 'headingText',
158
- 'headingEval',
159
- 'headingOverlay',
160
- 'creditsPosition',
161
- 'dragByHeading',
162
- 'autoplay',
163
- 'numberPosition',
164
- 'transitions',
165
- 'dimmingOpacity',
166
-
167
- 'width',
168
- 'height',
169
-
170
- 'contentId',
171
- 'allowWidthReduction',
172
- 'allowHeightReduction',
173
- 'preserveContent',
174
- 'maincontentId',
175
- 'maincontentText',
176
- 'maincontentEval',
177
- 'objectType',
178
- 'cacheAjax',
179
- 'objectWidth',
180
- 'objectHeight',
181
- 'objectLoadTime',
182
- 'swfOptions',
183
- 'wrapperClassName',
184
- 'minWidth',
185
- 'minHeight',
186
- 'maxWidth',
187
- 'maxHeight',
188
- 'pageOrigin',
189
- 'slideshowGroup',
190
- 'easing',
191
- 'easingClose',
192
- 'fadeInOut',
193
- 'src'
194
- ],
195
- overlays : [],
196
- idCounter : 0,
197
- oPos : {
198
- x: ['leftpanel', 'left', 'center', 'right', 'rightpanel'],
199
- y: ['above', 'top', 'middle', 'bottom', 'below']
200
- },
201
- mouse: {},
202
- headingOverlay: {},
203
- captionOverlay: {},
204
- swfOptions: { flashvars: {}, params: {}, attributes: {} },
205
- timers : [],
206
-
207
- slideshows : [],
208
-
209
- pendingOutlines : {},
210
- sleeping : [],
211
- preloadTheseAjax : [],
212
- cacheBindings : [],
213
- cachedGets : {},
214
- clones : {},
215
- onReady: [],
216
- uaVersion: /Trident\/4\.0/.test(navigator.userAgent) ? 8 :
217
- parseFloat((navigator.userAgent.toLowerCase().match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1]),
218
- ie : (document.all && !window.opera),
219
- //ie : navigator && /MSIE [678]/.test(navigator.userAgent), // ie9 compliant?
220
- safari : /Safari/.test(navigator.userAgent),
221
- geckoMac : /Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),
222
-
223
- $ : function (id) {
224
- if (id) return document.getElementById(id);
225
- },
226
-
227
- push : function (arr, val) {
228
- arr[arr.length] = val;
229
- },
230
-
231
- createElement : function (tag, attribs, styles, parent, nopad) {
232
- var el = document.createElement(tag);
233
- if (attribs) hs.extend(el, attribs);
234
- if (nopad) hs.setStyles(el, {padding: 0, border: 'none', margin: 0});
235
- if (styles) hs.setStyles(el, styles);
236
- if (parent) parent.appendChild(el);
237
- return el;
238
- },
239
-
240
- extend : function (el, attribs) {
241
- for (var x in attribs) el[x] = attribs[x];
242
- return el;
243
- },
244
-
245
- setStyles : function (el, styles) {
246
- for (var x in styles) {
247
- if (hs.ieLt9 && x == 'opacity') {
248
- if (styles[x] > 0.99) el.style.removeAttribute('filter');
249
- else el.style.filter = 'alpha(opacity='+ (styles[x] * 100) +')';
250
- }
251
- else el.style[x] = styles[x];
252
- }
253
- },
254
- animate: function(el, prop, opt) {
255
- var start,
256
- end,
257
- unit;
258
- if (typeof opt != 'object' || opt === null) {
259
- var args = arguments;
260
- opt = {
261
- duration: args[2],
262
- easing: args[3],
263
- complete: args[4]
264
- };
265
- }
266
- if (typeof opt.duration != 'number') opt.duration = 250;
267
- opt.easing = Math[opt.easing] || Math.easeInQuad;
268
- opt.curAnim = hs.extend({}, prop);
269
- for (var name in prop) {
270
- var e = new hs.fx(el, opt , name );
271
-
272
- start = parseFloat(hs.css(el, name)) || 0;
273
- end = parseFloat(prop[name]);
274
- unit = name != 'opacity' ? 'px' : '';
275
-
276
- e.custom( start, end, unit );
277
- }
278
- },
279
- css: function(el, prop) {
280
- if (el.style[prop]) {
281
- return el.style[prop];
282
- } else if (document.defaultView) {
283
- return document.defaultView.getComputedStyle(el, null).getPropertyValue(prop);
284
-
285
- } else {
286
- if (prop == 'opacity') prop = 'filter';
287
- var val = el.currentStyle[prop.replace(/\-(\w)/g, function (a, b){ return b.toUpperCase(); })];
288
- if (prop == 'filter')
289
- val = val.replace(/alpha\(opacity=([0-9]+)\)/,
290
- function (a, b) { return b / 100 });
291
- return val === '' ? 1 : val;
292
- }
293
- },
294
-
295
- getPageSize : function () {
296
- var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat'
297
- ? d.documentElement : d.body;
298
-
299
- var width = hs.ieLt9 ? iebody.clientWidth :
300
- (d.documentElement.clientWidth || self.innerWidth),
301
- height = hs.ieLt9 ? iebody.clientHeight : self.innerHeight;
302
-
303
- hs.page = {
304
- width: width,
305
- height: height,
306
- scrollLeft: hs.ieLt9 ? iebody.scrollLeft : pageXOffset,
307
- scrollTop: hs.ieLt9 ? iebody.scrollTop : pageYOffset
308
- };
309
- return hs.page;
310
- },
311
-
312
- getPosition : function(el) {
313
- if (/area/i.test(el.tagName)) {
314
- var imgs = document.getElementsByTagName('img');
315
- for (var i = 0; i < imgs.length; i++) {
316
- var u = imgs[i].useMap;
317
- if (u && u.replace(/^.*?#/, '') == el.parentNode.name) {
318
- el = imgs[i];
319
- break;
320
- }
321
- }
322
- }
323
- var p = { x: el.offsetLeft, y: el.offsetTop };
324
- while (el.offsetParent) {
325
- el = el.offsetParent;
326
- p.x += el.offsetLeft;
327
- p.y += el.offsetTop;
328
- if (el != document.body && el != document.documentElement) {
329
- p.x -= el.scrollLeft;
330
- p.y -= el.scrollTop;
331
- }
332
- }
333
- return p;
334
- },
335
-
336
- expand : function(a, params, custom, type) {
337
- if (!a) a = hs.createElement('a', null, { display: 'none' }, hs.container);
338
- if (typeof a.getParams == 'function') return params;
339
- if (type == 'html') {
340
- for (var i = 0; i < hs.sleeping.length; i++) {
341
- if (hs.sleeping[i] && hs.sleeping[i].a == a) {
342
- hs.sleeping[i].awake();
343
- hs.sleeping[i] = null;
344
- return false;
345
- }
346
- }
347
- hs.hasHtmlExpanders = true;
348
- }
349
- try {
350
- new hs.Expander(a, params, custom, type);
351
- return false;
352
- } catch (e) { return true; }
353
- },
354
-
355
- htmlExpand : function(a, params, custom) {
356
- return hs.expand(a, params, custom, 'html');
357
- },
358
-
359
- getSelfRendered : function() {
360
- return hs.createElement('div', {
361
- className: 'highslide-html-content',
362
- innerHTML: hs.replaceLang(hs.skin.contentWrapper)
363
- });
364
- },
365
- getElementByClass : function (el, tagName, className) {
366
- var els = el.getElementsByTagName(tagName);
367
- for (var i = 0; i < els.length; i++) {
368
- if ((new RegExp(className)).test(els[i].className)) {
369
- return els[i];
370
- }
371
- }
372
- return null;
373
- },
374
- replaceLang : function(s) {
375
- s = s.replace(/\s/g, ' ');
376
- var re = /{hs\.lang\.([^}]+)\}/g,
377
- matches = s.match(re),
378
- lang;
379
- if (matches) for (var i = 0; i < matches.length; i++) {
380
- lang = matches[i].replace(re, "$1");
381
- if (typeof hs.lang[lang] != 'undefined') s = s.replace(matches[i], hs.lang[lang]);
382
- }
383
- return s;
384
- },
385
-
386
-
387
- setClickEvents : function () {
388
- var els = document.getElementsByTagName('a');
389
- for (var i = 0; i < els.length; i++) {
390
- var type = hs.isUnobtrusiveAnchor(els[i]);
391
- if (type && !els[i].hsHasSetClick) {
392
- (function(){
393
- var t = type;
394
- if (hs.fireEvent(hs, 'onSetClickEvent', { element: els[i], type: t })) {
395
- els[i].onclick =(type == 'image') ?function() { return hs.expand(this) }:
396
- function() { return hs.htmlExpand(this, { objectType: t } );};
397
- }
398
- })();
399
- els[i].hsHasSetClick = true;
400
- }
401
- }
402
- hs.getAnchors();
403
- },
404
- isUnobtrusiveAnchor: function(el) {
405
- if (el.rel == 'highslide') return 'image';
406
- else if (el.rel == 'highslide-ajax') return 'ajax';
407
- else if (el.rel == 'highslide-iframe') return 'iframe';
408
- else if (el.rel == 'highslide-swf') return 'swf';
409
- },
410
-
411
- getCacheBinding : function (a) {
412
- for (var i = 0; i < hs.cacheBindings.length; i++) {
413
- if (hs.cacheBindings[i][0] == a) {
414
- var c = hs.cacheBindings[i][1];
415
- hs.cacheBindings[i][1] = c.cloneNode(1);
416
- return c;
417
- }
418
- }
419
- return null;
420
- },
421
-
422
- preloadAjax : function (e) {
423
- var arr = hs.getAnchors();
424
- for (var i = 0; i < arr.htmls.length; i++) {
425
- var a = arr.htmls[i];
426
- if (hs.getParam(a, 'objectType') == 'ajax' && hs.getParam(a, 'cacheAjax'))
427
- hs.push(hs.preloadTheseAjax, a);
428
- }
429
-
430
- hs.preloadAjaxElement(0);
431
- },
432
-
433
- preloadAjaxElement : function (i) {
434
- if (!hs.preloadTheseAjax[i]) return;
435
- var a = hs.preloadTheseAjax[i];
436
- var cache = hs.getNode(hs.getParam(a, 'contentId'));
437
- if (!cache) cache = hs.getSelfRendered();
438
- var ajax = new hs.Ajax(a, cache, 1);
439
- ajax.onError = function () { };
440
- ajax.onLoad = function () {
441
- hs.push(hs.cacheBindings, [a, cache]);
442
- hs.preloadAjaxElement(i + 1);
443
- };
444
- ajax.run();
445
- },
446
-
447
- focusTopmost : function() {
448
- var topZ = 0,
449
- topmostKey = -1,
450
- expanders = hs.expanders,
451
- exp,
452
- zIndex;
453
- for (var i = 0; i < expanders.length; i++) {
454
- exp = expanders[i];
455
- if (exp) {
456
- zIndex = exp.wrapper.style.zIndex;
457
- if (zIndex && zIndex > topZ) {
458
- topZ = zIndex;
459
- topmostKey = i;
460
- }
461
- }
462
- }
463
- if (topmostKey == -1) hs.focusKey = -1;
464
- else expanders[topmostKey].focus();
465
- },
466
-
467
- getParam : function (a, param) {
468
- a.getParams = a.onclick;
469
- var p = a.getParams ? a.getParams() : null;
470
- a.getParams = null;
471
-
472
- return (p && typeof p[param] != 'undefined') ? p[param] :
473
- (typeof hs[param] != 'undefined' ? hs[param] : null);
474
- },
475
-
476
- getSrc : function (a) {
477
- var src = hs.getParam(a, 'src');
478
- if (src) return src;
479
- return a.href;
480
- },
481
-
482
- getNode : function (id) {
483
- var node = hs.$(id), clone = hs.clones[id], a = {};
484
- if (!node && !clone) return null;
485
- if (!clone) {
486
- clone = node.cloneNode(true);
487
- clone.id = '';
488
- hs.clones[id] = clone;
489
- return node;
490
- } else {
491
- return clone.cloneNode(true);
492
- }
493
- },
494
-
495
- discardElement : function(d) {
496
- if (d) hs.garbageBin.appendChild(d);
497
- hs.garbageBin.innerHTML = '';
498
- },
499
- dim : function(exp) {
500
- if (!hs.dimmer) {
501
- isNew = true;
502
- hs.dimmer = hs.createElement ('div', {
503
- className: 'highslide-dimming highslide-viewport-size',
504
- owner: '',
505
- onclick: function() {
506
- if (hs.fireEvent(hs, 'onDimmerClick'))
507
-
508
- hs.close();
509
- }
510
- }, {
511
- visibility: 'visible',
512
- opacity: 0
513
- }, hs.container, true);
514
- }
515
- hs.dimmer.style.display = '';
516
-
517
- var isNew = hs.dimmer.owner == '';
518
- hs.dimmer.owner += '|'+ exp.key;
519
-
520
- if (isNew) {
521
- if (hs.geckoMac && hs.dimmingGeckoFix)
522
- hs.setStyles(hs.dimmer, {
523
- background: 'url('+ hs.graphicsDir + 'geckodimmer.png)',
524
- opacity: 1
525
- });
526
- else
527
- hs.animate(hs.dimmer, { opacity: exp.dimmingOpacity }, hs.dimmingDuration);
528
- }
529
- },
530
- undim : function(key) {
531
- if (!hs.dimmer) return;
532
- if (typeof key != 'undefined') hs.dimmer.owner = hs.dimmer.owner.replace('|'+ key, '');
533
-
534
- if (
535
- (typeof key != 'undefined' && hs.dimmer.owner != '')
536
- || (hs.upcoming && hs.getParam(hs.upcoming, 'dimmingOpacity'))
537
- ) return;
538
-
539
- if (hs.geckoMac && hs.dimmingGeckoFix) hs.dimmer.style.display = 'none';
540
- else hs.animate(hs.dimmer, { opacity: 0 }, hs.dimmingDuration, null, function() {
541
- hs.dimmer.style.display = 'none';
542
- });
543
- },
544
- transit : function (adj, exp) {
545
- var last = exp || hs.getExpander();
546
- exp = last;
547
- if (hs.upcoming) return false;
548
- else hs.last = last;
549
- hs.removeEventListener(document, window.opera ? 'keypress' : 'keydown', hs.keyHandler);
550
- try {
551
- hs.upcoming = adj;
552
- adj.onclick();
553
- } catch (e){
554
- hs.last = hs.upcoming = null;
555
- }
556
- try {
557
- if (!adj || exp.transitions[1] != 'crossfade')
558
- exp.close();
559
- } catch (e) {}
560
- return false;
561
- },
562
-
563
- previousOrNext : function (el, op) {
564
- var exp = hs.getExpander(el);
565
- if (exp) return hs.transit(exp.getAdjacentAnchor(op), exp);
566
- else return false;
567
- },
568
-
569
- previous : function (el) {
570
- return hs.previousOrNext(el, -1);
571
- },
572
-
573
- next : function (el) {
574
- return hs.previousOrNext(el, 1);
575
- },
576
-
577
- keyHandler : function(e) {
578
- if (!e) e = window.event;
579
- if (!e.target) e.target = e.srcElement; // ie
580
- if (typeof e.target.form != 'undefined') return true; // form element has focus
581
- if (!hs.fireEvent(hs, 'onKeyDown', e)) return true;
582
- var exp = hs.getExpander();
583
-
584
- var op = null;
585
- switch (e.keyCode) {
586
- case 70: // f
587
- if (exp) exp.doFullExpand();
588
- return true;
589
- case 32: // Space
590
- op = 2;
591
- break;
592
- case 34: // Page Down
593
- case 39: // Arrow right
594
- case 40: // Arrow down
595
- op = 1;
596
- break;
597
- case 8: // Backspace
598
- case 33: // Page Up
599
- case 37: // Arrow left
600
- case 38: // Arrow up
601
- op = -1;
602
- break;
603
- case 27: // Escape
604
- case 13: // Enter
605
- op = 0;
606
- }
607
- if (op !== null) {
608
- hs.removeEventListener(document, window.opera ? 'keypress' : 'keydown', hs.keyHandler);
609
- if (!hs.enableKeyListener) return true;
610
-
611
- if (e.preventDefault) e.preventDefault();
612
- else e.returnValue = false;
613
- if (exp) {
614
- if (op == 0) {
615
- exp.close();
616
- } else if (op == 2) {
617
- if (exp.slideshow) exp.slideshow.hitSpace();
618
- } else {
619
- if (exp.slideshow) exp.slideshow.pause();
620
- hs.previousOrNext(exp.key, op);
621
- }
622
- return false;
623
- }
624
- }
625
- return true;
626
- },
627
-
628
-
629
- registerOverlay : function (overlay) {
630
- hs.push(hs.overlays, hs.extend(overlay, { hsId: 'hsId'+ hs.idCounter++ } ));
631
- },
632
-
633
-
634
- addSlideshow : function (options) {
635
- var sg = options.slideshowGroup;
636
- if (typeof sg == 'object') {
637
- for (var i = 0; i < sg.length; i++) {
638
- var o = {};
639
- for (var x in options) o[x] = options[x];
640
- o.slideshowGroup = sg[i];
641
- hs.push(hs.slideshows, o);
642
- }
643
- } else {
644
- hs.push(hs.slideshows, options);
645
- }
646
- },
647
-
648
- getWrapperKey : function (element, expOnly) {
649
- var el, re = /^highslide-wrapper-([0-9]+)$/;
650
- // 1. look in open expanders
651
- el = element;
652
- while (el.parentNode) {
653
- if (el.hsKey !== undefined) return el.hsKey;
654
- if (el.id && re.test(el.id)) return el.id.replace(re, "$1");
655
- el = el.parentNode;
656
- }
657
- // 2. look in thumbnail
658
- if (!expOnly) {
659
- el = element;
660
- while (el.parentNode) {
661
- if (el.tagName && hs.isHsAnchor(el)) {
662
- for (var key = 0; key < hs.expanders.length; key++) {
663
- var exp = hs.expanders[key];
664
- if (exp && exp.a == el) return key;
665
- }
666
- }
667
- el = el.parentNode;
668
- }
669
- }
670
- return null;
671
- },
672
-
673
- getExpander : function (el, expOnly) {
674
- if (typeof el == 'undefined') return hs.expanders[hs.focusKey] || null;
675
- if (typeof el == 'number') return hs.expanders[el] || null;
676
- if (typeof el == 'string') el = hs.$(el);
677
- return hs.expanders[hs.getWrapperKey(el, expOnly)] || null;
678
- },
679
-
680
- isHsAnchor : function (a) {
681
- return (a.onclick && a.onclick.toString().replace(/\s/g, ' ').match(/hs.(htmlE|e)xpand/));
682
- },
683
-
684
- reOrder : function () {
685
- for (var i = 0; i < hs.expanders.length; i++)
686
- if (hs.expanders[i] && hs.expanders[i].isExpanded) hs.focusTopmost();
687
- },
688
- fireEvent : function (obj, evt, args) {
689
- return obj && obj[evt] ? (obj[evt](obj, args) !== false) : true;
690
- },
691
-
692
- mouseClickHandler : function(e)
693
- {
694
- if (!e) e = window.event;
695
- if (e.button > 1) return true;
696
- if (!e.target) e.target = e.srcElement;
697
-
698
- var el = e.target;
699
- while (el.parentNode
700
- && !(/highslide-(image|move|html|resize)/.test(el.className)))
701
- {
702
- el = el.parentNode;
703
- }
704
- var exp = hs.getExpander(el);
705
- if (exp && (exp.isClosing || !exp.isExpanded)) return true;
706
-
707
- if (exp && e.type == 'mousedown') {
708
- if (e.target.form) return true;
709
- var match = el.className.match(/highslide-(image|move|resize)/);
710
- if (match) {
711
- hs.dragArgs = {
712
- exp: exp ,
713
- type: match[1],
714
- left: exp.x.pos,
715
- width: exp.x.size,
716
- top: exp.y.pos,
717
- height: exp.y.size,
718
- clickX: e.clientX,
719
- clickY: e.clientY
720
- };
721
-
722
-
723
- hs.addEventListener(document, 'mousemove', hs.dragHandler);
724
- if (e.preventDefault) e.preventDefault(); // FF
725
-
726
- if (/highslide-(image|html)-blur/.test(exp.content.className)) {
727
- exp.focus();
728
- hs.hasFocused = true;
729
- }
730
- return false;
731
- }
732
- else if (/highslide-html/.test(el.className) && hs.focusKey != exp.key) {
733
- exp.focus();
734
- exp.doShowHide('hidden');
735
- }
736
- } else if (e.type == 'mouseup') {
737
-
738
- hs.removeEventListener(document, 'mousemove', hs.dragHandler);
739
-
740
- if (hs.dragArgs) {
741
- if (hs.styleRestoreCursor && hs.dragArgs.type == 'image')
742
- hs.dragArgs.exp.content.style.cursor = hs.styleRestoreCursor;
743
- var hasDragged = hs.dragArgs.hasDragged;
744
-
745
- if (!hasDragged &&!hs.hasFocused && !/(move|resize)/.test(hs.dragArgs.type)) {
746
- if (hs.fireEvent(exp, 'onImageClick'))
747
- exp.close();
748
- }
749
- else if (hasDragged || (!hasDragged && hs.hasHtmlExpanders)) {
750
- hs.dragArgs.exp.doShowHide('hidden');
751
- }
752
-
753
- if (hs.dragArgs.exp.releaseMask)
754
- hs.dragArgs.exp.releaseMask.style.display = 'none';
755
-
756
- if (hasDragged) hs.fireEvent(hs.dragArgs.exp, 'onDrop', hs.dragArgs);
757
- hs.hasFocused = false;
758
- hs.dragArgs = null;
759
-
760
- } else if (/highslide-image-blur/.test(el.className)) {
761
- el.style.cursor = hs.styleRestoreCursor;
762
- }
763
- }
764
- return false;
765
- },
766
-
767
- dragHandler : function(e)
768
- {
769
- if (!hs.dragArgs) return true;
770
- if (!e) e = window.event;
771
- var a = hs.dragArgs, exp = a.exp;
772
- if (exp.iframe) {
773
- if (!exp.releaseMask) exp.releaseMask = hs.createElement('div', null,
774
- { position: 'absolute', width: exp.x.size+'px', height: exp.y.size+'px',
775
- left: exp.x.cb+'px', top: exp.y.cb+'px', zIndex: 4, background: (hs.ieLt9 ? 'white' : 'none'),
776
- opacity: 0.01 },
777
- exp.wrapper, true);
778
- if (exp.releaseMask.style.display == 'none')
779
- exp.releaseMask.style.display = '';
780
- }
781
-
782
- a.dX = e.clientX - a.clickX;
783
- a.dY = e.clientY - a.clickY;
784
-
785
- var distance = Math.sqrt(Math.pow(a.dX, 2) + Math.pow(a.dY, 2));
786
- if (!a.hasDragged) a.hasDragged = (a.type != 'image' && distance > 0)
787
- || (distance > (hs.dragSensitivity || 5));
788
-
789
- if (a.hasDragged && e.clientX > 5 && e.clientY > 5) {
790
- if (!hs.fireEvent(exp, 'onDrag', a)) return false;
791
-
792
- if (a.type == 'resize') exp.resize(a);
793
- else {
794
- exp.moveTo(a.left + a.dX, a.top + a.dY);
795
- if (a.type == 'image') exp.content.style.cursor = 'move';
796
- }
797
- }
798
- return false;
799
- },
800
-
801
- wrapperMouseHandler : function (e) {
802
- try {
803
- if (!e) e = window.event;
804
- var over = /mouseover/i.test(e.type);
805
- if (!e.target) e.target = e.srcElement; // ie
806
- if (!e.relatedTarget) e.relatedTarget =
807
- over ? e.fromElement : e.toElement; // ie
808
- var exp = hs.getExpander(e.target);
809
- if (!exp.isExpanded) return;
810
- if (!exp || !e.relatedTarget || hs.getExpander(e.relatedTarget, true) == exp
811
- || hs.dragArgs) return;
812
- hs.fireEvent(exp, over ? 'onMouseOver' : 'onMouseOut', e);
813
- for (var i = 0; i < exp.overlays.length; i++) (function() {
814
- var o = hs.$('hsId'+ exp.overlays[i]);
815
- if (o && o.hideOnMouseOut) {
816
- if (over) hs.setStyles(o, { visibility: 'visible', display: '' });
817
- hs.animate(o, { opacity: over ? o.opacity : 0 }, o.dur);
818
- }
819
- })();
820
- } catch (e) {}
821
- },
822
- addEventListener : function (el, event, func) {
823
- if (el == document && event == 'ready') {
824
- hs.push(hs.onReady, func);
825
- }
826
- try {
827
- el.addEventListener(event, func, false);
828
- } catch (e) {
829
- try {
830
- el.detachEvent('on'+ event, func);
831
- el.attachEvent('on'+ event, func);
832
- } catch (e) {
833
- el['on'+ event] = func;
834
- }
835
- }
836
- },
837
-
838
- removeEventListener : function (el, event, func) {
839
- try {
840
- el.removeEventListener(event, func, false);
841
- } catch (e) {
842
- try {
843
- el.detachEvent('on'+ event, func);
844
- } catch (e) {
845
- el['on'+ event] = null;
846
- }
847
- }
848
- },
849
-
850
- preloadFullImage : function (i) {
851
- if (hs.continuePreloading && hs.preloadTheseImages[i] && hs.preloadTheseImages[i] != 'undefined') {
852
- var img = document.createElement('img');
853
- img.onload = function() {
854
- img = null;
855
- hs.preloadFullImage(i + 1);
856
- };
857
- img.src = hs.preloadTheseImages[i];
858
- }
859
- },
860
- preloadImages : function (number) {
861
- if (number && typeof number != 'object') hs.numberOfImagesToPreload = number;
862
-
863
- var arr = hs.getAnchors();
864
- for (var i = 0; i < arr.images.length && i < hs.numberOfImagesToPreload; i++) {
865
- hs.push(hs.preloadTheseImages, hs.getSrc(arr.images[i]));
866
- }
867
-
868
- // preload outlines
869
- if (hs.outlineType) new hs.Outline(hs.outlineType, function () { hs.preloadFullImage(0)} );
870
- else
871
-
872
- hs.preloadFullImage(0);
873
-
874
- // preload cursor
875
- if (hs.restoreCursor) var cur = hs.createElement('img', { src: hs.graphicsDir + hs.restoreCursor });
876
- },
877
-
878
-
879
- init : function () {
880
- if (!hs.container) {
881
-
882
- hs.ieLt7 = hs.ie && hs.uaVersion < 7;
883
- hs.ieLt9 = hs.ie && hs.uaVersion < 9;
884
-
885
- hs.getPageSize();
886
- hs.ie6SSL = hs.ieLt7 && location.protocol == 'https:';
887
- for (var x in hs.langDefaults) {
888
- if (typeof hs[x] != 'undefined') hs.lang[x] = hs[x];
889
- else if (typeof hs.lang[x] == 'undefined' && typeof hs.langDefaults[x] != 'undefined')
890
- hs.lang[x] = hs.langDefaults[x];
891
- }
892
-
893
- hs.container = hs.createElement('div', {
894
- className: 'highslide-container'
895
- }, {
896
- position: 'absolute',
897
- left: 0,
898
- top: 0,
899
- width: '100%',
900
- zIndex: hs.zIndexCounter,
901
- direction: 'ltr'
902
- },
903
- document.body,
904
- true
905
- );
906
- hs.loading = hs.createElement('a', {
907
- className: 'highslide-loading',
908
- title: hs.lang.loadingTitle,
909
- innerHTML: hs.lang.loadingText,
910
- href: 'javascript:;'
911
- }, {
912
- position: 'absolute',
913
- top: '-9999px',
914
- opacity: hs.loadingOpacity,
915
- zIndex: 1
916
- }, hs.container
917
- );
918
- hs.garbageBin = hs.createElement('div', null, { display: 'none' }, hs.container);
919
- hs.viewport = hs.createElement('div', {
920
- className: 'highslide-viewport highslide-viewport-size'
921
- }, {
922
- visibility: (hs.safari && hs.uaVersion < 525) ? 'visible' : 'hidden'
923
- }, hs.container, 1
924
- );
925
- hs.clearing = hs.createElement('div', null,
926
- { clear: 'both', paddingTop: '1px' }, null, true);
927
-
928
- // http://www.robertpenner.com/easing/
929
- Math.linearTween = function (t, b, c, d) {
930
- return c*t/d + b;
931
- };
932
- Math.easeInQuad = function (t, b, c, d) {
933
- return c*(t/=d)*t + b;
934
- };
935
- Math.easeOutQuad = function (t, b, c, d) {
936
- return -c *(t/=d)*(t-2) + b;
937
- };
938
-
939
- hs.hideSelects = hs.ieLt7;
940
- hs.hideIframes = ((window.opera && hs.uaVersion < 9) || navigator.vendor == 'KDE'
941
- || (hs.ieLt7 && hs.uaVersion < 5.5));
942
- hs.fireEvent(this, 'onActivate');
943
- }
944
- },
945
- ready : function() {
946
- if (hs.isReady) return;
947
- hs.isReady = true;
948
- for (var i = 0; i < hs.onReady.length; i++) hs.onReady[i]();
949
- },
950
-
951
- updateAnchors : function() {
952
- var el, els, all = [], images = [], htmls = [],groups = {}, re;
953
-
954
- for (var i = 0; i < hs.openerTagNames.length; i++) {
955
- els = document.getElementsByTagName(hs.openerTagNames[i]);
956
- for (var j = 0; j < els.length; j++) {
957
- el = els[j];
958
- re = hs.isHsAnchor(el);
959
- if (re) {
960
- hs.push(all, el);
961
- if (re[0] == 'hs.expand') hs.push(images, el);
962
- else if (re[0] == 'hs.htmlExpand') hs.push(htmls, el);
963
- var g = hs.getParam(el, 'slideshowGroup') || 'none';
964
- if (!groups[g]) groups[g] = [];
965
- hs.push(groups[g], el);
966
- }
967
- }
968
- }
969
- hs.anchors = { all: all, groups: groups, images: images, htmls: htmls };
970
- return hs.anchors;
971
-
972
- },
973
-
974
- getAnchors : function() {
975
- return hs.anchors || hs.updateAnchors();
976
- },
977
-
978
-
979
- close : function(el) {
980
- var exp = hs.getExpander(el);
981
- if (exp) exp.close();
982
- return false;
983
- }
984
- }; // end hs object
985
- hs.fx = function( elem, options, prop ){
986
- this.options = options;
987
- this.elem = elem;
988
- this.prop = prop;
989
-
990
- if (!options.orig) options.orig = {};
991
- };
992
- hs.fx.prototype = {
993
- update: function(){
994
- (hs.fx.step[this.prop] || hs.fx.step._default)(this);
995
-
996
- if (this.options.step)
997
- this.options.step.call(this.elem, this.now, this);
998
-
999
- },
1000
- custom: function(from, to, unit){
1001
- this.startTime = (new Date()).getTime();
1002
- this.start = from;
1003
- this.end = to;
1004
- this.unit = unit;// || this.unit || "px";
1005
- this.now = this.start;
1006
- this.pos = this.state = 0;
1007
-
1008
- var self = this;
1009
- function t(gotoEnd){
1010
- return self.step(gotoEnd);
1011
- }
1012
-
1013
- t.elem = this.elem;
1014
-
1015
- if ( t() && hs.timers.push(t) == 1 ) {
1016
- hs.timerId = setInterval(function(){
1017
- var timers = hs.timers;
1018
-
1019
- for ( var i = 0; i < timers.length; i++ )
1020
- if ( !timers[i]() )
1021
- timers.splice(i--, 1);
1022
-
1023
- if ( !timers.length ) {
1024
- clearInterval(hs.timerId);
1025
- }
1026
- }, 13);
1027
- }
1028
- },
1029
- step: function(gotoEnd){
1030
- var t = (new Date()).getTime();
1031
- if ( gotoEnd || t >= this.options.duration + this.startTime ) {
1032
- this.now = this.end;
1033
- this.pos = this.state = 1;
1034
- this.update();
1035
-
1036
- this.options.curAnim[ this.prop ] = true;
1037
-
1038
- var done = true;
1039
- for ( var i in this.options.curAnim )
1040
- if ( this.options.curAnim[i] !== true )
1041
- done = false;
1042
-
1043
- if ( done ) {
1044
- if (this.options.complete) this.options.complete.call(this.elem);
1045
- }
1046
- return false;
1047
- } else {
1048
- var n = t - this.startTime;
1049
- this.state = n / this.options.duration;
1050
- this.pos = this.options.easing(n, 0, 1, this.options.duration);
1051
- this.now = this.start + ((this.end - this.start) * this.pos);
1052
- this.update();
1053
- }
1054
- return true;
1055
- }
1056
-
1057
- };
1058
-
1059
- hs.extend( hs.fx, {
1060
- step: {
1061
-
1062
- opacity: function(fx){
1063
- hs.setStyles(fx.elem, { opacity: fx.now });
1064
- },
1065
-
1066
- _default: function(fx){
1067
- try {
1068
- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
1069
- fx.elem.style[ fx.prop ] = fx.now + fx.unit;
1070
- else
1071
- fx.elem[ fx.prop ] = fx.now;
1072
- } catch (e) {}
1073
- }
1074
- }
1075
- });
1076
-
1077
- hs.Outline = function (outlineType, onLoad) {
1078
- this.onLoad = onLoad;
1079
- this.outlineType = outlineType;
1080
- var v = hs.uaVersion, tr;
1081
-
1082
- this.hasAlphaImageLoader = hs.ie && hs.uaVersion < 7;
1083
- if (!outlineType) {
1084
- if (onLoad) onLoad();
1085
- return;
1086
- }
1087
-
1088
- hs.init();
1089
- this.table = hs.createElement(
1090
- 'table', {
1091
- cellSpacing: 0
1092
- }, {
1093
- visibility: 'hidden',
1094
- position: 'absolute',
1095
- borderCollapse: 'collapse',
1096
- width: 0
1097
- },
1098
- hs.container,
1099
- true
1100
- );
1101
- var tbody = hs.createElement('tbody', null, null, this.table, 1);
1102
-
1103
- this.td = [];
1104
- for (var i = 0; i <= 8; i++) {
1105
- if (i % 3 == 0) tr = hs.createElement('tr', null, { height: 'auto' }, tbody, true);
1106
- this.td[i] = hs.createElement('td', null, null, tr, true);
1107
- var style = i != 4 ? { lineHeight: 0, fontSize: 0} : { position : 'relative' };
1108
- hs.setStyles(this.td[i], style);
1109
- }
1110
- this.td[4].className = outlineType +' highslide-outline';
1111
-
1112
- this.preloadGraphic();
1113
- };
1114
-
1115
- hs.Outline.prototype = {
1116
- preloadGraphic : function () {
1117
- var src = hs.graphicsDir + (hs.outlinesDir || "outlines/")+ this.outlineType +".png";
1118
-
1119
- var appendTo = hs.safari && hs.uaVersion < 525 ? hs.container : null;
1120
- this.graphic = hs.createElement('img', null, { position: 'absolute',
1121
- top: '-9999px' }, appendTo, true); // for onload trigger
1122
-
1123
- var pThis = this;
1124
- this.graphic.onload = function() { pThis.onGraphicLoad(); };
1125
-
1126
- this.graphic.src = src;
1127
- },
1128
-
1129
- onGraphicLoad : function () {
1130
- var o = this.offset = this.graphic.width / 4,
1131
- pos = [[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],
1132
- dim = { height: (2*o) +'px', width: (2*o) +'px' };
1133
- for (var i = 0; i <= 8; i++) {
1134
- if (pos[i]) {
1135
- if (this.hasAlphaImageLoader) {
1136
- var w = (i == 1 || i == 7) ? '100%' : this.graphic.width +'px';
1137
- var div = hs.createElement('div', null, { width: '100%', height: '100%', position: 'relative', overflow: 'hidden'}, this.td[i], true);
1138
- hs.createElement ('div', null, {
1139
- filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+ this.graphic.src + "')",
1140
- position: 'absolute',
1141
- width: w,
1142
- height: this.graphic.height +'px',
1143
- left: (pos[i][0]*o)+'px',
1144
- top: (pos[i][1]*o)+'px'
1145
- },
1146
- div,
1147
- true);
1148
- } else {
1149
- hs.setStyles(this.td[i], { background: 'url('+ this.graphic.src +') '+ (pos[i][0]*o)+'px '+(pos[i][1]*o)+'px'});
1150
- }
1151
-
1152
- if (window.opera && (i == 3 || i ==5))
1153
- hs.createElement('div', null, dim, this.td[i], true);
1154
-
1155
- hs.setStyles (this.td[i], dim);
1156
- }
1157
- }
1158
- this.graphic = null;
1159
- if (hs.pendingOutlines[this.outlineType]) hs.pendingOutlines[this.outlineType].destroy();
1160
- hs.pendingOutlines[this.outlineType] = this;
1161
- if (this.onLoad) this.onLoad();
1162
- },
1163
-
1164
- setPosition : function (pos, offset, vis, dur, easing) {
1165
- var exp = this.exp,
1166
- stl = exp.wrapper.style,
1167
- offset = offset || 0,
1168
- pos = pos || {
1169
- x: exp.x.pos + offset,
1170
- y: exp.y.pos + offset,
1171
- w: exp.x.get('wsize') - 2 * offset,
1172
- h: exp.y.get('wsize') - 2 * offset
1173
- };
1174
- if (vis) this.table.style.visibility = (pos.h >= 4 * this.offset)
1175
- ? 'visible' : 'hidden';
1176
- hs.setStyles(this.table, {
1177
- left: (pos.x - this.offset) +'px',
1178
- top: (pos.y - this.offset) +'px',
1179
- width: (pos.w + 2 * this.offset) +'px'
1180
- });
1181
-
1182
- pos.w -= 2 * this.offset;
1183
- pos.h -= 2 * this.offset;
1184
- hs.setStyles (this.td[4], {
1185
- width: pos.w >= 0 ? pos.w +'px' : 0,
1186
- height: pos.h >= 0 ? pos.h +'px' : 0
1187
- });
1188
- if (this.hasAlphaImageLoader) this.td[3].style.height
1189
- = this.td[5].style.height = this.td[4].style.height;
1190
-
1191
- },
1192
-
1193
- destroy : function(hide) {
1194
- if (hide) this.table.style.visibility = 'hidden';
1195
- else hs.discardElement(this.table);
1196
- }
1197
- };
1198
-
1199
- hs.Dimension = function(exp, dim) {
1200
- this.exp = exp;
1201
- this.dim = dim;
1202
- this.ucwh = dim == 'x' ? 'Width' : 'Height';
1203
- this.wh = this.ucwh.toLowerCase();
1204
- this.uclt = dim == 'x' ? 'Left' : 'Top';
1205
- this.lt = this.uclt.toLowerCase();
1206
- this.ucrb = dim == 'x' ? 'Right' : 'Bottom';
1207
- this.rb = this.ucrb.toLowerCase();
1208
- this.p1 = this.p2 = 0;
1209
- };
1210
- hs.Dimension.prototype = {
1211
- get : function(key) {
1212
- switch (key) {
1213
- case 'loadingPos':
1214
- return this.tpos + this.tb + (this.t - hs.loading['offset'+ this.ucwh]) / 2;
1215
- case 'loadingPosXfade':
1216
- return this.pos + this.cb+ this.p1 + (this.size - hs.loading['offset'+ this.ucwh]) / 2;
1217
- case 'wsize':
1218
- return this.size + 2 * this.cb + this.p1 + this.p2;
1219
- case 'fitsize':
1220
- return this.clientSize - this.marginMin - this.marginMax;
1221
- case 'maxsize':
1222
- return this.get('fitsize') - 2 * this.cb - this.p1 - this.p2 ;
1223
- case 'opos':
1224
- return this.pos - (this.exp.outline ? this.exp.outline.offset : 0);
1225
- case 'osize':
1226
- return this.get('wsize') + (this.exp.outline ? 2*this.exp.outline.offset : 0);
1227
- case 'imgPad':
1228
- return this.imgSize ? Math.round((this.size - this.imgSize) / 2) : 0;
1229
-
1230
- }
1231
- },
1232
- calcBorders: function() {
1233
- // correct for borders
1234
- this.cb = (this.exp.content['offset'+ this.ucwh] - this.t) / 2;
1235
-
1236
- this.marginMax = hs['margin'+ this.ucrb];
1237
- },
1238
- calcThumb: function() {
1239
- this.t = this.exp.el[this.wh] ? parseInt(this.exp.el[this.wh]) :
1240
- this.exp.el['offset'+ this.ucwh];
1241
- this.tpos = this.exp.tpos[this.dim];
1242
- this.tb = (this.exp.el['offset'+ this.ucwh] - this.t) / 2;
1243
- if (this.tpos == 0 || this.tpos == -1) {
1244
- this.tpos = (hs.page[this.wh] / 2) + hs.page['scroll'+ this.uclt];
1245
- };
1246
- },
1247
- calcExpanded: function() {
1248
- var exp = this.exp;
1249
- this.justify = 'auto';
1250
-
1251
- // get alignment
1252
- if (exp.align == 'center') this.justify = 'center';
1253
- else if (new RegExp(this.lt).test(exp.anchor)) this.justify = null;
1254
- else if (new RegExp(this.rb).test(exp.anchor)) this.justify = 'max';
1255
-
1256
-
1257
- // size and position
1258
- this.pos = this.tpos - this.cb + this.tb;
1259
-
1260
- if (this.maxHeight && this.dim == 'x')
1261
- exp.maxWidth = Math.min(exp.maxWidth || this.full, exp.maxHeight * this.full / exp.y.full);
1262
-
1263
- this.size = Math.min(this.full, exp['max'+ this.ucwh] || this.full);
1264
- this.minSize = exp.allowSizeReduction ?
1265
- Math.min(exp['min'+ this.ucwh], this.full) :this.full;
1266
- if (exp.isImage && exp.useBox) {
1267
- this.size = exp[this.wh];
1268
- this.imgSize = this.full;
1269
- }
1270
- if (this.dim == 'x' && hs.padToMinWidth) this.minSize = exp.minWidth;
1271
- this.target = exp['target'+ this.dim.toUpperCase()];
1272
- this.marginMin = hs['margin'+ this.uclt];
1273
- this.scroll = hs.page['scroll'+ this.uclt];
1274
- this.clientSize = hs.page[this.wh];
1275
- },
1276
- setSize: function(i) {
1277
- var exp = this.exp;
1278
- if (exp.isImage && (exp.useBox || hs.padToMinWidth)) {
1279
- this.imgSize = i;
1280
- this.size = Math.max(this.size, this.imgSize);
1281
- exp.content.style[this.lt] = this.get('imgPad')+'px';
1282
- } else
1283
- this.size = i;
1284
-
1285
- exp.content.style[this.wh] = i +'px';
1286
- exp.wrapper.style[this.wh] = this.get('wsize') +'px';
1287
- if (exp.outline) exp.outline.setPosition();
1288
- if (exp.releaseMask) exp.releaseMask.style[this.wh] = i +'px';
1289
- if (this.dim == 'y' && exp.iDoc && exp.body.style.height != 'auto') try {
1290
- exp.iDoc.body.style.overflow = 'auto';
1291
- } catch (e) {}
1292
- if (exp.isHtml) {
1293
- var d = exp.scrollerDiv;
1294
- if (this.sizeDiff === undefined)
1295
- this.sizeDiff = exp.innerContent['offset'+ this.ucwh] - d['offset'+ this.ucwh];
1296
- d.style[this.wh] = (this.size - this.sizeDiff) +'px';
1297
-
1298
- if (this.dim == 'x') exp.mediumContent.style.width = 'auto';
1299
- if (exp.body) exp.body.style[this.wh] = 'auto';
1300
- }
1301
- if (this.dim == 'x' && exp.overlayBox) exp.sizeOverlayBox(true);
1302
- if (this.dim == 'x' && exp.slideshow && exp.isImage) {
1303
- if (i == this.full) exp.slideshow.disable('full-expand');
1304
- else exp.slideshow.enable('full-expand');
1305
- }
1306
- },
1307
- setPos: function(i) {
1308
- this.pos = i;
1309
- this.exp.wrapper.style[this.lt] = i +'px';
1310
-
1311
- if (this.exp.outline) this.exp.outline.setPosition();
1312
-
1313
- }
1314
- };
1315
-
1316
- hs.Expander = function(a, params, custom, contentType) {
1317
- if (document.readyState && hs.ie && !hs.isReady) {
1318
- hs.addEventListener(document, 'ready', function() {
1319
- new hs.Expander(a, params, custom, contentType);
1320
- });
1321
- return;
1322
- }
1323
- this.a = a;
1324
- this.custom = custom;
1325
- this.contentType = contentType || 'image';
1326
- this.isHtml = (contentType == 'html');
1327
- this.isImage = !this.isHtml;
1328
-
1329
- hs.continuePreloading = false;
1330
- this.overlays = [];
1331
- this.last = hs.last;
1332
- hs.last = null;
1333
- hs.init();
1334
- var key = this.key = hs.expanders.length;
1335
- // override inline parameters
1336
- for (var i = 0; i < hs.overrides.length; i++) {
1337
- var name = hs.overrides[i];
1338
- this[name] = params && typeof params[name] != 'undefined' ?
1339
- params[name] : hs[name];
1340
- }
1341
- if (!this.src) this.src = a.href;
1342
-
1343
- // get thumb
1344
- var el = (params && params.thumbnailId) ? hs.$(params.thumbnailId) : a;
1345
- el = this.thumb = el.getElementsByTagName('img')[0] || el;
1346
- this.thumbsUserSetId = el.id || a.id;
1347
- if (!hs.fireEvent(this, 'onInit')) return true;
1348
-
1349
- // check if already open
1350
- for (var i = 0; i < hs.expanders.length; i++) {
1351
- if (hs.expanders[i] && hs.expanders[i].a == a
1352
- && !(this.last && this.transitions[1] == 'crossfade')) {
1353
- hs.expanders[i].focus();
1354
- return false;
1355
- }
1356
- }
1357
-
1358
- // cancel other
1359
- if (!hs.allowSimultaneousLoading) for (var i = 0; i < hs.expanders.length; i++) {
1360
- if (hs.expanders[i] && hs.expanders[i].thumb != el && !hs.expanders[i].onLoadStarted) {
1361
- hs.expanders[i].cancelLoading();
1362
- }
1363
- }
1364
- hs.expanders[key] = this;
1365
- if (!hs.allowMultipleInstances && !hs.upcoming) {
1366
- if (hs.expanders[key-1]) hs.expanders[key-1].close();
1367
- if (typeof hs.focusKey != 'undefined' && hs.expanders[hs.focusKey])
1368
- hs.expanders[hs.focusKey].close();
1369
- }
1370
-
1371
- // initiate metrics
1372
- this.el = el;
1373
- this.tpos = this.pageOrigin || hs.getPosition(el);
1374
- hs.getPageSize();
1375
- var x = this.x = new hs.Dimension(this, 'x');
1376
- x.calcThumb();
1377
- var y = this.y = new hs.Dimension(this, 'y');
1378
- y.calcThumb();
1379
- if (/area/i.test(el.tagName)) this.getImageMapAreaCorrection(el);
1380
- this.wrapper = hs.createElement(
1381
- 'div', {
1382
- id: 'highslide-wrapper-'+ this.key,
1383
- className: 'highslide-wrapper '+ this.wrapperClassName
1384
- }, {
1385
- visibility: 'hidden',
1386
- position: 'absolute',
1387
- zIndex: hs.zIndexCounter += 2
1388
- }, null, true );
1389
-
1390
- this.wrapper.onmouseover = this.wrapper.onmouseout = hs.wrapperMouseHandler;
1391
- if (this.contentType == 'image' && this.outlineWhileAnimating == 2)
1392
- this.outlineWhileAnimating = 0;
1393
-
1394
- // get the outline
1395
- if (!this.outlineType
1396
- || (this.last && this.isImage && this.transitions[1] == 'crossfade')) {
1397
- this[this.contentType +'Create']();
1398
-
1399
- } else if (hs.pendingOutlines[this.outlineType]) {
1400
- this.connectOutline();
1401
- this[this.contentType +'Create']();
1402
-
1403
- } else {
1404
- this.showLoading();
1405
- var exp = this;
1406
- new hs.Outline(this.outlineType,
1407
- function () {
1408
- exp.connectOutline();
1409
- exp[exp.contentType +'Create']();
1410
- }
1411
- );
1412
- }
1413
- return true;
1414
- };
1415
-
1416
- hs.Expander.prototype = {
1417
- error : function(e) {
1418
- if (hs.debug) alert ('Line '+ e.lineNumber +': '+ e.message);
1419
- else window.location.href = this.src;
1420
- },
1421
-
1422
- connectOutline : function() {
1423
- var outline = this.outline = hs.pendingOutlines[this.outlineType];
1424
- outline.exp = this;
1425
- outline.table.style.zIndex = this.wrapper.style.zIndex - 1;
1426
- hs.pendingOutlines[this.outlineType] = null;
1427
- },
1428
-
1429
- showLoading : function() {
1430
- if (this.onLoadStarted || this.loading) return;
1431
-
1432
- this.loading = hs.loading;
1433
- var exp = this;
1434
- this.loading.onclick = function() {
1435
- exp.cancelLoading();
1436
- };
1437
-
1438
-
1439
- if (!hs.fireEvent(this, 'onShowLoading')) return;
1440
- var exp = this,
1441
- l = this.x.get('loadingPos') +'px',
1442
- t = this.y.get('loadingPos') +'px';
1443
- if (!tgt && this.last && this.transitions[1] == 'crossfade')
1444
- var tgt = this.last;
1445
- if (tgt) {
1446
- l = tgt.x.get('loadingPosXfade') +'px';
1447
- t = tgt.y.get('loadingPosXfade') +'px';
1448
- this.loading.style.zIndex = hs.zIndexCounter++;
1449
- }
1450
- setTimeout(function () {
1451
- if (exp.loading) hs.setStyles(exp.loading, { left: l, top: t, zIndex: hs.zIndexCounter++ })}
1452
- , 100);
1453
- },
1454
-
1455
- imageCreate : function() {
1456
- var exp = this;
1457
-
1458
- var img = document.createElement('img');
1459
- this.content = img;
1460
- img.onload = function () {
1461
- if (hs.expanders[exp.key]) exp.contentLoaded();
1462
- };
1463
- if (hs.blockRightClick) img.oncontextmenu = function() { return false; };
1464
- img.className = 'highslide-image';
1465
- hs.setStyles(img, {
1466
- visibility: 'hidden',
1467
- display: 'block',
1468
- position: 'absolute',
1469
- maxWidth: '9999px',
1470
- zIndex: 3
1471
- });
1472
- img.title = hs.lang.restoreTitle;
1473
- if (hs.safari && hs.uaVersion < 525) hs.container.appendChild(img);
1474
- if (hs.ie && hs.flushImgSize) img.src = null;
1475
- img.src = this.src;
1476
-
1477
- this.showLoading();
1478
- },
1479
-
1480
- htmlCreate : function () {
1481
- if (!hs.fireEvent(this, 'onBeforeGetContent')) return;
1482
-
1483
- this.content = hs.getCacheBinding(this.a);
1484
- if (!this.content)
1485
- this.content = hs.getNode(this.contentId);
1486
- if (!this.content)
1487
- this.content = hs.getSelfRendered();
1488
- this.getInline(['maincontent']);
1489
- if (this.maincontent) {
1490
- var body = hs.getElementByClass(this.content, 'div', 'highslide-body');
1491
- if (body) body.appendChild(this.maincontent);
1492
- this.maincontent.style.display = 'block';
1493
- }
1494
- hs.fireEvent(this, 'onAfterGetContent');
1495
-
1496
- var innerContent = this.innerContent = this.content;
1497
-
1498
- if (/(swf|iframe)/.test(this.objectType)) this.setObjContainerSize(innerContent);
1499
-
1500
- // the content tree
1501
- hs.container.appendChild(this.wrapper);
1502
- hs.setStyles( this.wrapper, {
1503
- position: 'static',
1504
- padding: '0 '+ hs.marginRight +'px 0 '+ hs.marginLeft +'px'
1505
- });
1506
- this.content = hs.createElement(
1507
- 'div', {
1508
- className: 'highslide-html'
1509
- }, {
1510
- position: 'relative',
1511
- zIndex: 3,
1512
- height: 0,
1513
- overflow: 'hidden'
1514
- },
1515
- this.wrapper
1516
- );
1517
- this.mediumContent = hs.createElement('div', null, null, this.content, 1);
1518
- this.mediumContent.appendChild(innerContent);
1519
-
1520
- hs.setStyles (innerContent, {
1521
- position: 'relative',
1522
- display: 'block',
1523
- direction: hs.lang.cssDirection || ''
1524
- });
1525
- if (this.width) innerContent.style.width = this.width +'px';
1526
- if (this.height) hs.setStyles(innerContent, {
1527
- height: this.height +'px',
1528
- overflow: 'hidden'
1529
- });
1530
- if (innerContent.offsetWidth < this.minWidth)
1531
- innerContent.style.width = this.minWidth +'px';
1532
-
1533
-
1534
-
1535
- if (this.objectType == 'ajax' && !hs.getCacheBinding(this.a)) {
1536
- this.showLoading();
1537
- var exp = this;
1538
- var ajax = new hs.Ajax(this.a, innerContent);
1539
- ajax.src = this.src;
1540
- ajax.onLoad = function () { if (hs.expanders[exp.key]) exp.contentLoaded(); };
1541
- ajax.onError = function () { location.href = exp.src; };
1542
- ajax.run();
1543
- }
1544
- else
1545
-
1546
- if (this.objectType == 'iframe' && this.objectLoadTime == 'before') {
1547
- this.writeExtendedContent();
1548
- }
1549
- else
1550
- this.contentLoaded();
1551
- },
1552
-
1553
- contentLoaded : function() {
1554
- try {
1555
- if (!this.content) return;
1556
- this.content.onload = null;
1557
- if (this.onLoadStarted) return;
1558
- else this.onLoadStarted = true;
1559
-
1560
- var x = this.x, y = this.y;
1561
-
1562
- if (this.loading) {
1563
- hs.setStyles(this.loading, { top: '-9999px' });
1564
- this.loading = null;
1565
- hs.fireEvent(this, 'onHideLoading');
1566
- }
1567
- if (this.isImage) {
1568
- x.full = this.content.width;
1569
- y.full = this.content.height;
1570
-
1571
- hs.setStyles(this.content, {
1572
- width: x.t +'px',
1573
- height: y.t +'px'
1574
- });
1575
- this.wrapper.appendChild(this.content);
1576
- hs.container.appendChild(this.wrapper);
1577
- } else if (this.htmlGetSize) this.htmlGetSize();
1578
-
1579
- x.calcBorders();
1580
- y.calcBorders();
1581
-
1582
- hs.setStyles (this.wrapper, {
1583
- left: (x.tpos + x.tb - x.cb) +'px',
1584
- top: (y.tpos + x.tb - y.cb) +'px'
1585
- });
1586
-
1587
-
1588
- this.initSlideshow();
1589
- this.getOverlays();
1590
-
1591
- var ratio = x.full / y.full;
1592
- x.calcExpanded();
1593
- this.justify(x);
1594
-
1595
- y.calcExpanded();
1596
- this.justify(y);
1597
- if (this.isHtml) this.htmlSizeOperations();
1598
- if (this.overlayBox) this.sizeOverlayBox(0, 1);
1599
-
1600
-
1601
- if (this.allowSizeReduction) {
1602
- if (this.isImage)
1603
- this.correctRatio(ratio);
1604
- else this.fitOverlayBox();
1605
- var ss = this.slideshow;
1606
- if (ss && this.last && ss.controls && ss.fixedControls) {
1607
- var pos = ss.overlayOptions.position || '', p;
1608
- for (var dim in hs.oPos) for (var i = 0; i < 5; i++) {
1609
- p = this[dim];
1610
- if (pos.match(hs.oPos[dim][i])) {
1611
- p.pos = this.last[dim].pos
1612
- + (this.last[dim].p1 - p.p1)
1613
- + (this.last[dim].size - p.size) * [0, 0, .5, 1, 1][i];
1614
- if (ss.fixedControls == 'fit') {
1615
- if (p.pos + p.size + p.p1 + p.p2 > p.scroll + p.clientSize - p.marginMax)
1616
- p.pos = p.scroll + p.clientSize - p.size - p.marginMin - p.marginMax - p.p1 - p.p2;
1617
- if (p.pos < p.scroll + p.marginMin) p.pos = p.scroll + p.marginMin;
1618
- }
1619
- }
1620
- }
1621
- }
1622
- if (this.isImage && this.x.full > (this.x.imgSize || this.x.size)) {
1623
- this.createFullExpand();
1624
- if (this.overlays.length == 1) this.sizeOverlayBox();
1625
- }
1626
- }
1627
- this.show();
1628
-
1629
- } catch (e) {
1630
- this.error(e);
1631
- }
1632
- },
1633
-
1634
-
1635
- setObjContainerSize : function(parent, auto) {
1636
- var c = hs.getElementByClass(parent, 'DIV', 'highslide-body');
1637
- if (/(iframe|swf)/.test(this.objectType)) {
1638
- if (this.objectWidth) c.style.width = this.objectWidth +'px';
1639
- if (this.objectHeight) c.style.height = this.objectHeight +'px';
1640
- }
1641
- },
1642
-
1643
- writeExtendedContent : function () {
1644
- if (this.hasExtendedContent) return;
1645
- var exp = this;
1646
- this.body = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body');
1647
- if (this.objectType == 'iframe') {
1648
- this.showLoading();
1649
- var ruler = hs.clearing.cloneNode(1);
1650
- this.body.appendChild(ruler);
1651
- this.newWidth = this.innerContent.offsetWidth;
1652
- if (!this.objectWidth) this.objectWidth = ruler.offsetWidth;
1653
- var hDiff = this.innerContent.offsetHeight - this.body.offsetHeight,
1654
- h = this.objectHeight || hs.page.height - hDiff - hs.marginTop - hs.marginBottom,
1655
- onload = this.objectLoadTime == 'before' ?
1656
- ' onload="if (hs.expanders['+ this.key +']) hs.expanders['+ this.key +'].contentLoaded()" ' : '';
1657
- this.body.innerHTML += '<iframe name="hs'+ (new Date()).getTime() +'" frameborder="0" key="'+ this.key +'" '
1658
- +' style="width:'+ this.objectWidth +'px; height:'+ h +'px" '
1659
- + onload +' src="'+ this.src +'" ></iframe>';
1660
- this.ruler = this.body.getElementsByTagName('div')[0];
1661
- this.iframe = this.body.getElementsByTagName('iframe')[0];
1662
-
1663
- if (this.objectLoadTime == 'after') this.correctIframeSize();
1664
-
1665
- }
1666
- if (this.objectType == 'swf') {
1667
- this.body.id = this.body.id || 'hs-flash-id-' + this.key;
1668
- var a = this.swfOptions;
1669
- if (!a.params) a.params = {};
1670
- if (typeof a.params.wmode == 'undefined') a.params.wmode = 'transparent';
1671
- if (swfobject) swfobject.embedSWF(this.src, this.body.id, this.objectWidth, this.objectHeight,
1672
- a.version || '7', a.expressInstallSwfurl, a.flashvars, a.params, a.attributes);
1673
- }
1674
- this.hasExtendedContent = true;
1675
- },
1676
- htmlGetSize : function() {
1677
- if (this.iframe && !this.objectHeight) { // loadtime before
1678
- this.iframe.style.height = this.body.style.height = this.getIframePageHeight() +'px';
1679
- }
1680
- this.innerContent.appendChild(hs.clearing);
1681
- if (!this.x.full) this.x.full = this.innerContent.offsetWidth;
1682
- this.y.full = this.innerContent.offsetHeight;
1683
- this.innerContent.removeChild(hs.clearing);
1684
- if (hs.ie && this.newHeight > parseInt(this.innerContent.currentStyle.height)) { // ie css bug
1685
- this.newHeight = parseInt(this.innerContent.currentStyle.height);
1686
- }
1687
- hs.setStyles( this.wrapper, { position: 'absolute', padding: '0'});
1688
- hs.setStyles( this.content, { width: this.x.t +'px', height: this.y.t +'px'});
1689
-
1690
- },
1691
-
1692
- getIframePageHeight : function() {
1693
- var h;
1694
- try {
1695
- var doc = this.iDoc = this.iframe.contentDocument || this.iframe.contentWindow.document;
1696
- var clearing = doc.createElement('div');
1697
- clearing.style.clear = 'both';
1698
- doc.body.appendChild(clearing);
1699
- h = clearing.offsetTop;
1700
- if (hs.ie) h += parseInt(doc.body.currentStyle.marginTop)
1701
- + parseInt(doc.body.currentStyle.marginBottom) - 1;
1702
- } catch (e) { // other domain
1703
- h = 300;
1704
- }
1705
- return h;
1706
- },
1707
- correctIframeSize : function () {
1708
- var wDiff = this.innerContent.offsetWidth - this.ruler.offsetWidth;
1709
- hs.discardElement(this.ruler);
1710
- if (wDiff < 0) wDiff = 0;
1711
-
1712
- var hDiff = this.innerContent.offsetHeight - this.iframe.offsetHeight;
1713
- if (this.iDoc && !this.objectHeight && !this.height && this.y.size == this.y.full) try {
1714
- this.iDoc.body.style.overflow = 'hidden';
1715
- } catch (e) {}
1716
- hs.setStyles(this.iframe, {
1717
- width: Math.abs(this.x.size - wDiff) +'px',
1718
- height: Math.abs(this.y.size - hDiff) +'px'
1719
- });
1720
- hs.setStyles(this.body, {
1721
- width: this.iframe.style.width,
1722
- height: this.iframe.style.height
1723
- });
1724
-
1725
- this.scrollingContent = this.iframe;
1726
- this.scrollerDiv = this.scrollingContent;
1727
-
1728
- },
1729
- htmlSizeOperations : function () {
1730
-
1731
- this.setObjContainerSize(this.innerContent);
1732
-
1733
-
1734
- if (this.objectType == 'swf' && this.objectLoadTime == 'before') this.writeExtendedContent();
1735
-
1736
- // handle minimum size
1737
- if (this.x.size < this.x.full && !this.allowWidthReduction) this.x.size = this.x.full;
1738
- if (this.y.size < this.y.full && !this.allowHeightReduction) this.y.size = this.y.full;
1739
- this.scrollerDiv = this.innerContent;
1740
- hs.setStyles(this.mediumContent, {
1741
- position: 'relative',
1742
- width: this.x.size +'px'
1743
- });
1744
- hs.setStyles(this.innerContent, {
1745
- border: 'none',
1746
- width: 'auto',
1747
- height: 'auto'
1748
- });
1749
- var node = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body');
1750
- if (node && !/(iframe|swf)/.test(this.objectType)) {
1751
- var cNode = node; // wrap to get true size
1752
- node = hs.createElement(cNode.nodeName, null, {overflow: 'hidden'}, null, true);
1753
- cNode.parentNode.insertBefore(node, cNode);
1754
- node.appendChild(hs.clearing); // IE6
1755
- node.appendChild(cNode);
1756
-
1757
- var wDiff = this.innerContent.offsetWidth - node.offsetWidth;
1758
- var hDiff = this.innerContent.offsetHeight - node.offsetHeight;
1759
- node.removeChild(hs.clearing);
1760
-
1761
- var kdeBugCorr = hs.safari || navigator.vendor == 'KDE' ? 1 : 0; // KDE repainting bug
1762
- hs.setStyles(node, {
1763
- width: (this.x.size - wDiff - kdeBugCorr) +'px',
1764
- height: (this.y.size - hDiff) +'px',
1765
- overflow: 'auto',
1766
- position: 'relative'
1767
- }
1768
- );
1769
- if (kdeBugCorr && cNode.offsetHeight > node.offsetHeight) {
1770
- node.style.width = (parseInt(node.style.width) + kdeBugCorr) + 'px';
1771
- }
1772
- this.scrollingContent = node;
1773
- this.scrollerDiv = this.scrollingContent;
1774
- }
1775
- if (this.iframe && this.objectLoadTime == 'before') this.correctIframeSize();
1776
- if (!this.scrollingContent && this.y.size < this.mediumContent.offsetHeight) this.scrollerDiv = this.content;
1777
-
1778
- if (this.scrollerDiv == this.content && !this.allowWidthReduction && !/(iframe|swf)/.test(this.objectType)) {
1779
- this.x.size += 17; // room for scrollbars
1780
- }
1781
- if (this.scrollerDiv && this.scrollerDiv.offsetHeight > this.scrollerDiv.parentNode.offsetHeight) {
1782
- setTimeout("try { hs.expanders["+ this.key +"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",
1783
- hs.expandDuration);
1784
- }
1785
- },
1786
-
1787
- getImageMapAreaCorrection : function(area) {
1788
- var c = area.coords.split(',');
1789
- for (var i = 0; i < c.length; i++) c[i] = parseInt(c[i]);
1790
-
1791
- if (area.shape.toLowerCase() == 'circle') {
1792
- this.x.tpos += c[0] - c[2];
1793
- this.y.tpos += c[1] - c[2];
1794
- this.x.t = this.y.t = 2 * c[2];
1795
- } else {
1796
- var maxX, maxY, minX = maxX = c[0], minY = maxY = c[1];
1797
- for (var i = 0; i < c.length; i++) {
1798
- if (i % 2 == 0) {
1799
- minX = Math.min(minX, c[i]);
1800
- maxX = Math.max(maxX, c[i]);
1801
- } else {
1802
- minY = Math.min(minY, c[i]);
1803
- maxY = Math.max(maxY, c[i]);
1804
- }
1805
- }
1806
- this.x.tpos += minX;
1807
- this.x.t = maxX - minX;
1808
- this.y.tpos += minY;
1809
- this.y.t = maxY - minY;
1810
- }
1811
- },
1812
- justify : function (p, moveOnly) {
1813
- var tgtArr, tgt = p.target, dim = p == this.x ? 'x' : 'y';
1814
-
1815
- if (tgt && tgt.match(/ /)) {
1816
- tgtArr = tgt.split(' ');
1817
- tgt = tgtArr[0];
1818
- }
1819
- if (tgt && hs.$(tgt)) {
1820
- p.pos = hs.getPosition(hs.$(tgt))[dim];
1821
- if (tgtArr && tgtArr[1] && tgtArr[1].match(/^[-]?[0-9]+px$/))
1822
- p.pos += parseInt(tgtArr[1]);
1823
- if (p.size < p.minSize) p.size = p.minSize;
1824
-
1825
- } else if (p.justify == 'auto' || p.justify == 'center') {
1826
-
1827
- var hasMovedMin = false;
1828
-
1829
- var allowReduce = p.exp.allowSizeReduction;
1830
- if (p.justify == 'center')
1831
- p.pos = Math.round(p.scroll + (p.clientSize + p.marginMin - p.marginMax - p.get('wsize')) / 2);
1832
- else
1833
- p.pos = Math.round(p.pos - ((p.get('wsize') - p.t) / 2));
1834
- if (p.pos < p.scroll + p.marginMin) {
1835
- p.pos = p.scroll + p.marginMin;
1836
- hasMovedMin = true;
1837
- }
1838
- if (!moveOnly && p.size < p.minSize) {
1839
- p.size = p.minSize;
1840
- allowReduce = false;
1841
- }
1842
- if (p.pos + p.get('wsize') > p.scroll + p.clientSize - p.marginMax) {
1843
- if (!moveOnly && hasMovedMin && allowReduce) {
1844
- p.size = Math.min(p.size, p.get(dim == 'y' ? 'fitsize' : 'maxsize'));
1845
- } else if (p.get('wsize') < p.get('fitsize')) {
1846
- p.pos = p.scroll + p.clientSize - p.marginMax - p.get('wsize');
1847
- } else { // image larger than viewport
1848
- p.pos = p.scroll + p.marginMin;
1849
- if (!moveOnly && allowReduce) p.size = p.get(dim == 'y' ? 'fitsize' : 'maxsize');
1850
- }
1851
- }
1852
-
1853
- if (!moveOnly && p.size < p.minSize) {
1854
- p.size = p.minSize;
1855
- allowReduce = false;
1856
- }
1857
-
1858
-
1859
- } else if (p.justify == 'max') {
1860
- p.pos = Math.floor(p.pos - p.size + p.t);
1861
- }
1862
-
1863
-
1864
- if (p.pos < p.marginMin) {
1865
- var tmpMin = p.pos;
1866
- p.pos = p.marginMin;
1867
-
1868
- if (allowReduce && !moveOnly) p.size = p.size - (p.pos - tmpMin);
1869
-
1870
- }
1871
- },
1872
-
1873
- correctRatio : function(ratio) {
1874
- var x = this.x,
1875
- y = this.y,
1876
- changed = false,
1877
- xSize = Math.min(x.full, x.size),
1878
- ySize = Math.min(y.full, y.size),
1879
- useBox = (this.useBox || hs.padToMinWidth);
1880
-
1881
- if (xSize / ySize > ratio) { // width greater
1882
- xSize = ySize * ratio;
1883
- if (xSize < x.minSize) { // below minWidth
1884
- xSize = x.minSize;
1885
- ySize = xSize / ratio;
1886
- }
1887
- changed = true;
1888
-
1889
- } else if (xSize / ySize < ratio) { // height greater
1890
- ySize = xSize / ratio;
1891
- changed = true;
1892
- }
1893
-
1894
- if (hs.padToMinWidth && x.full < x.minSize) {
1895
- x.imgSize = x.full;
1896
- y.size = y.imgSize = y.full;
1897
- } else if (this.useBox) {
1898
- x.imgSize = xSize;
1899
- y.imgSize = ySize;
1900
- } else {
1901
- x.size = xSize;
1902
- y.size = ySize;
1903
- }
1904
- changed = this.fitOverlayBox(this.useBox ? null : ratio, changed);
1905
- if (useBox && y.size < y.imgSize) {
1906
- y.imgSize = y.size;
1907
- x.imgSize = y.size * ratio;
1908
- }
1909
- if (changed || useBox) {
1910
- x.pos = x.tpos - x.cb + x.tb;
1911
- x.minSize = x.size;
1912
- this.justify(x, true);
1913
-
1914
- y.pos = y.tpos - y.cb + y.tb;
1915
- y.minSize = y.size;
1916
- this.justify(y, true);
1917
- if (this.overlayBox) this.sizeOverlayBox();
1918
- }
1919
-
1920
-
1921
- },
1922
- fitOverlayBox : function(ratio, changed) {
1923
- var x = this.x, y = this.y;
1924
- if (this.overlayBox && (this.isImage || this.allowHeightReduction)) {
1925
- while (y.size > this.minHeight && x.size > this.minWidth
1926
- && y.get('wsize') > y.get('fitsize')) {
1927
- y.size -= 10;
1928
- if (ratio) x.size = y.size * ratio;
1929
- this.sizeOverlayBox(0, 1);
1930
- changed = true;
1931
- }
1932
- }
1933
- return changed;
1934
- },
1935
-
1936
- reflow : function () {
1937
- if (this.scrollerDiv) {
1938
- var h = /iframe/i.test(this.scrollerDiv.tagName) ? (this.getIframePageHeight() + 1) +'px' : 'auto';
1939
- if (this.body) this.body.style.height = h;
1940
- this.scrollerDiv.style.height = h;
1941
- this.y.setSize(this.innerContent.offsetHeight);
1942
- }
1943
- },
1944
-
1945
- show : function () {
1946
- var x = this.x, y = this.y;
1947
- this.doShowHide('hidden');
1948
- hs.fireEvent(this, 'onBeforeExpand');
1949
- if (this.slideshow && this.slideshow.thumbstrip) this.slideshow.thumbstrip.selectThumb();
1950
-
1951
- // Apply size change
1952
- this.changeSize(
1953
- 1, {
1954
- wrapper: {
1955
- width : x.get('wsize'),
1956
- height : y.get('wsize'),
1957
- left: x.pos,
1958
- top: y.pos
1959
- },
1960
- content: {
1961
- left: x.p1 + x.get('imgPad'),
1962
- top: y.p1 + y.get('imgPad'),
1963
- width:x.imgSize ||x.size,
1964
- height:y.imgSize ||y.size
1965
- }
1966
- },
1967
- hs.expandDuration
1968
- );
1969
- },
1970
-
1971
- changeSize : function(up, to, dur) {
1972
- // transition
1973
- var trans = this.transitions,
1974
- other = up ? (this.last ? this.last.a : null) : hs.upcoming,
1975
- t = (trans[1] && other
1976
- && hs.getParam(other, 'transitions')[1] == trans[1]) ?
1977
- trans[1] : trans[0];
1978
-
1979
- if (this[t] && t != 'expand') {
1980
- this[t](up, to);
1981
- return;
1982
- }
1983
-
1984
- if (this.outline && !this.outlineWhileAnimating) {
1985
- if (up) this.outline.setPosition();
1986
- else this.outline.destroy(
1987
- (this.isHtml && this.preserveContent));
1988
- }
1989
-
1990
-
1991
- if (!up) this.destroyOverlays();
1992
-
1993
- var exp = this,
1994
- x = exp.x,
1995
- y = exp.y,
1996
- easing = this.easing;
1997
- if (!up) easing = this.easingClose || easing;
1998
- var after = up ?
1999
- function() {
2000
-
2001
- if (exp.outline) exp.outline.table.style.visibility = "visible";
2002
- setTimeout(function() {
2003
- exp.afterExpand();
2004
- }, 50);
2005
- } :
2006
- function() {
2007
- exp.afterClose();
2008
- };
2009
- if (up) hs.setStyles( this.wrapper, {
2010
- width: x.t +'px',
2011
- height: y.t +'px'
2012
- });
2013
- if (up && this.isHtml) {
2014
- hs.setStyles(this.wrapper, {
2015
- left: (x.tpos - x.cb + x.tb) +'px',
2016
- top: (y.tpos - y.cb + y.tb) +'px'
2017
- });
2018
- }
2019
- if (this.fadeInOut) {
2020
- hs.setStyles(this.wrapper, { opacity: up ? 0 : 1 });
2021
- hs.extend(to.wrapper, { opacity: up });
2022
- }
2023
- hs.animate( this.wrapper, to.wrapper, {
2024
- duration: dur,
2025
- easing: easing,
2026
- step: function(val, args) {
2027
- if (exp.outline && exp.outlineWhileAnimating && args.prop == 'top') {
2028
- var fac = up ? args.pos : 1 - args.pos;
2029
- var pos = {
2030
- w: x.t + (x.get('wsize') - x.t) * fac,
2031
- h: y.t + (y.get('wsize') - y.t) * fac,
2032
- x: x.tpos + (x.pos - x.tpos) * fac,
2033
- y: y.tpos + (y.pos - y.tpos) * fac
2034
- };
2035
- exp.outline.setPosition(pos, 0, 1);
2036
- }
2037
- if (exp.isHtml) {
2038
- if (args.prop == 'left')
2039
- exp.mediumContent.style.left = (x.pos - val) +'px';
2040
- if (args.prop == 'top')
2041
- exp.mediumContent.style.top = (y.pos - val) +'px';
2042
- }
2043
- }
2044
- });
2045
- hs.animate( this.content, to.content, dur, easing, after);
2046
- if (up) {
2047
- this.wrapper.style.visibility = 'visible';
2048
- this.content.style.visibility = 'visible';
2049
- if (this.isHtml) this.innerContent.style.visibility = 'visible';
2050
- this.a.className += ' highslide-active-anchor';
2051
- }
2052
- },
2053
-
2054
-
2055
-
2056
- fade : function(up, to) {
2057
- this.outlineWhileAnimating = false;
2058
- var exp = this, t = up ? hs.expandDuration : 0;
2059
-
2060
- if (up) {
2061
- hs.animate(this.wrapper, to.wrapper, 0);
2062
- hs.setStyles(this.wrapper, { opacity: 0, visibility: 'visible' });
2063
- hs.animate(this.content, to.content, 0);
2064
- this.content.style.visibility = 'visible';
2065
-
2066
- hs.animate(this.wrapper, { opacity: 1 }, t, null,
2067
- function() { exp.afterExpand(); });
2068
- }
2069
-
2070
- if (this.outline) {
2071
- this.outline.table.style.zIndex = this.wrapper.style.zIndex;
2072
- var dir = up || -1,
2073
- offset = this.outline.offset,
2074
- startOff = up ? 3 : offset,
2075
- endOff = up? offset : 3;
2076
- for (var i = startOff; dir * i <= dir * endOff; i += dir, t += 25) {
2077
- (function() {
2078
- var o = up ? endOff - i : startOff - i;
2079
- setTimeout(function() {
2080
- exp.outline.setPosition(0, o, 1);
2081
- }, t);
2082
- })();
2083
- }
2084
- }
2085
-
2086
-
2087
- if (up) {}//setTimeout(function() { exp.afterExpand(); }, t+50);
2088
- else {
2089
- setTimeout( function() {
2090
- if (exp.outline) exp.outline.destroy(exp.preserveContent);
2091
-
2092
- exp.destroyOverlays();
2093
-
2094
- hs.animate( exp.wrapper, { opacity: 0 }, hs.restoreDuration, null, function(){
2095
- exp.afterClose();
2096
- });
2097
- }, t);
2098
- }
2099
- },
2100
- crossfade : function (up, to, from) {
2101
- if (!up) return;
2102
- var exp = this,
2103
- last = this.last,
2104
- x = this.x,
2105
- y = this.y,
2106
- lastX = last.x,
2107
- lastY = last.y,
2108
- wrapper = this.wrapper,
2109
- content = this.content,
2110
- overlayBox = this.overlayBox;
2111
- hs.removeEventListener(document, 'mousemove', hs.dragHandler);
2112
-
2113
- hs.setStyles(content, {
2114
- width: (x.imgSize || x.size) +'px',
2115
- height: (y.imgSize || y.size) +'px'
2116
- });
2117
- if (overlayBox) overlayBox.style.overflow = 'visible';
2118
- this.outline = last.outline;
2119
- if (this.outline) this.outline.exp = exp;
2120
- last.outline = null;
2121
- var fadeBox = hs.createElement('div', {
2122
- className: 'highslide-'+ this.contentType
2123
- }, {
2124
- position: 'absolute',
2125
- zIndex: 4,
2126
- overflow: 'hidden',
2127
- display: 'none'
2128
- }
2129
- );
2130
- var names = { oldImg: last, newImg: this };
2131
- for (var n in names) {
2132
- this[n] = names[n].content.cloneNode(1);
2133
- hs.setStyles(this[n], {
2134
- position: 'absolute',
2135
- border: 0,
2136
- visibility: 'visible'
2137
- });
2138
- fadeBox.appendChild(this[n]);
2139
- }
2140
- wrapper.appendChild(fadeBox);
2141
- if (this.isHtml) hs.setStyles(this.mediumContent, {
2142
- left: 0,
2143
- top: 0
2144
- });
2145
- if (overlayBox) {
2146
- overlayBox.className = '';
2147
- wrapper.appendChild(overlayBox);
2148
- }
2149
- fadeBox.style.display = '';
2150
- last.content.style.display = 'none';
2151
-
2152
-
2153
- if (hs.safari && hs.uaVersion < 525) {
2154
- this.wrapper.style.visibility = 'visible';
2155
- }
2156
- hs.animate(wrapper, {
2157
- width: x.size
2158
- }, {
2159
- duration: hs.transitionDuration,
2160
- step: function(val, args) {
2161
- var pos = args.pos,
2162
- invPos = 1 - pos;
2163
- var prop,
2164
- size = {},
2165
- props = ['pos', 'size', 'p1', 'p2'];
2166
- for (var n in props) {
2167
- prop = props[n];
2168
- size['x'+ prop] = Math.round(invPos * lastX[prop] + pos * x[prop]);
2169
- size['y'+ prop] = Math.round(invPos * lastY[prop] + pos * y[prop]);
2170
- size.ximgSize = Math.round(
2171
- invPos * (lastX.imgSize || lastX.size) + pos * (x.imgSize || x.size));
2172
- size.ximgPad = Math.round(invPos * lastX.get('imgPad') + pos * x.get('imgPad'));
2173
- size.yimgSize = Math.round(
2174
- invPos * (lastY.imgSize || lastY.size) + pos * (y.imgSize || y.size));
2175
- size.yimgPad = Math.round(invPos * lastY.get('imgPad') + pos * y.get('imgPad'));
2176
- }
2177
- if (exp.outline) exp.outline.setPosition({
2178
- x: size.xpos,
2179
- y: size.ypos,
2180
- w: size.xsize + size.xp1 + size.xp2 + 2 * x.cb,
2181
- h: size.ysize + size.yp1 + size.yp2 + 2 * y.cb
2182
- });
2183
- last.wrapper.style.clip = 'rect('
2184
- + (size.ypos - lastY.pos)+'px, '
2185
- + (size.xsize + size.xp1 + size.xp2 + size.xpos + 2 * lastX.cb - lastX.pos) +'px, '
2186
- + (size.ysize + size.yp1 + size.yp2 + size.ypos + 2 * lastY.cb - lastY.pos) +'px, '
2187
- + (size.xpos - lastX.pos)+'px)';
2188
-
2189
- hs.setStyles(content, {
2190
- top: (size.yp1 + y.get('imgPad')) +'px',
2191
- left: (size.xp1 + x.get('imgPad')) +'px',
2192
- marginTop: (y.pos - size.ypos) +'px',
2193
- marginLeft: (x.pos - size.xpos) +'px'
2194
- });
2195
- hs.setStyles(wrapper, {
2196
- top: size.ypos +'px',
2197
- left: size.xpos +'px',
2198
- width: (size.xp1 + size.xp2 + size.xsize + 2 * x.cb)+ 'px',
2199
- height: (size.yp1 + size.yp2 + size.ysize + 2 * y.cb) + 'px'
2200
- });
2201
- hs.setStyles(fadeBox, {
2202
- width: (size.ximgSize || size.xsize) + 'px',
2203
- height: (size.yimgSize || size.ysize) +'px',
2204
- left: (size.xp1 + size.ximgPad) +'px',
2205
- top: (size.yp1 + size.yimgPad) +'px',
2206
- visibility: 'visible'
2207
- });
2208
-
2209
- hs.setStyles(exp.oldImg, {
2210
- top: (lastY.pos - size.ypos + lastY.p1 - size.yp1 + lastY.get('imgPad') - size.yimgPad)+'px',
2211
- left: (lastX.pos - size.xpos + lastX.p1 - size.xp1 + lastX.get('imgPad') - size.ximgPad)+'px'
2212
- });
2213
-
2214
- hs.setStyles(exp.newImg, {
2215
- opacity: pos,
2216
- top: (y.pos - size.ypos + y.p1 - size.yp1 + y.get('imgPad') - size.yimgPad) +'px',
2217
- left: (x.pos - size.xpos + x.p1 - size.xp1 + x.get('imgPad') - size.ximgPad) +'px'
2218
- });
2219
- if (overlayBox) hs.setStyles(overlayBox, {
2220
- width: size.xsize + 'px',
2221
- height: size.ysize +'px',
2222
- left: (size.xp1 + x.cb) +'px',
2223
- top: (size.yp1 + y.cb) +'px'
2224
- });
2225
- },
2226
- complete: function () {
2227
- wrapper.style.visibility = content.style.visibility = 'visible';
2228
- content.style.display = 'block';
2229
- hs.discardElement(fadeBox);
2230
- exp.afterExpand();
2231
- last.afterClose();
2232
- exp.last = null;
2233
- }
2234
-
2235
- });
2236
- },
2237
- reuseOverlay : function(o, el) {
2238
- if (!this.last) return false;
2239
- for (var i = 0; i < this.last.overlays.length; i++) {
2240
- var oDiv = hs.$('hsId'+ this.last.overlays[i]);
2241
- if (oDiv && oDiv.hsId == o.hsId) {
2242
- this.genOverlayBox();
2243
- oDiv.reuse = this.key;
2244
- hs.push(this.overlays, this.last.overlays[i]);
2245
- return true;
2246
- }
2247
- }
2248
- return false;
2249
- },
2250
-
2251
-
2252
- afterExpand : function() {
2253
- this.isExpanded = true;
2254
- this.focus();
2255
-
2256
- if (this.isHtml && this.objectLoadTime == 'after') this.writeExtendedContent();
2257
- if (this.iframe) {
2258
- try {
2259
- var exp = this,
2260
- doc = this.iframe.contentDocument || this.iframe.contentWindow.document;
2261
- hs.addEventListener(doc, 'mousedown', function () {
2262
- if (hs.focusKey != exp.key) exp.focus();
2263
- });
2264
- } catch(e) {}
2265
- if (hs.ie && typeof this.isClosing != 'boolean') // first open
2266
- this.iframe.style.width = (this.objectWidth - 1) +'px'; // hasLayout
2267
- }
2268
- if (this.dimmingOpacity) hs.dim(this);
2269
- if (hs.upcoming && hs.upcoming == this.a) hs.upcoming = null;
2270
- this.prepareNextOutline();
2271
- var p = hs.page, mX = hs.mouse.x + p.scrollLeft, mY = hs.mouse.y + p.scrollTop;
2272
- this.mouseIsOver = this.x.pos < mX && mX < this.x.pos + this.x.get('wsize')
2273
- && this.y.pos < mY && mY < this.y.pos + this.y.get('wsize');
2274
- if (this.overlayBox) this.showOverlays();
2275
- hs.fireEvent(this, 'onAfterExpand');
2276
-
2277
- },
2278
-
2279
-
2280
- prepareNextOutline : function() {
2281
- var key = this.key;
2282
- var outlineType = this.outlineType;
2283
- new hs.Outline(outlineType,
2284
- function () { try { hs.expanders[key].preloadNext(); } catch (e) {} });
2285
- },
2286
-
2287
-
2288
- preloadNext : function() {
2289
- var next = this.getAdjacentAnchor(1);
2290
- if (next && next.onclick.toString().match(/hs\.expand/))
2291
- var img = hs.createElement('img', { src: hs.getSrc(next) });
2292
- },
2293
-
2294
-
2295
- getAdjacentAnchor : function(op) {
2296
- var current = this.getAnchorIndex(), as = hs.anchors.groups[this.slideshowGroup || 'none'];
2297
- if (as && !as[current + op] && this.slideshow && this.slideshow.repeat) {
2298
- if (op == 1) return as[0];
2299
- else if (op == -1) return as[as.length-1];
2300
- }
2301
- return (as && as[current + op]) || null;
2302
- },
2303
-
2304
- getAnchorIndex : function() {
2305
- var arr = hs.getAnchors().groups[this.slideshowGroup || 'none'];
2306
- if (arr) for (var i = 0; i < arr.length; i++) {
2307
- if (arr[i] == this.a) return i;
2308
- }
2309
- return null;
2310
- },
2311
-
2312
-
2313
- getNumber : function() {
2314
- if (this[this.numberPosition]) {
2315
- var arr = hs.anchors.groups[this.slideshowGroup || 'none'];
2316
- if (arr) {
2317
- var s = hs.lang.number.replace('%1', this.getAnchorIndex() + 1).replace('%2', arr.length);
2318
- this[this.numberPosition].innerHTML =
2319
- '<div class="highslide-number">'+ s +'</div>'+ this[this.numberPosition].innerHTML;
2320
- }
2321
- }
2322
- },
2323
- initSlideshow : function() {
2324
- if (!this.last) {
2325
- for (var i = 0; i < hs.slideshows.length; i++) {
2326
- var ss = hs.slideshows[i], sg = ss.slideshowGroup;
2327
- if (typeof sg == 'undefined' || sg === null || sg === this.slideshowGroup)
2328
- this.slideshow = new hs.Slideshow(this.key, ss);
2329
- }
2330
- } else {
2331
- this.slideshow = this.last.slideshow;
2332
- }
2333
- var ss = this.slideshow;
2334
- if (!ss) return;
2335
- var key = ss.expKey = this.key;
2336
-
2337
- ss.checkFirstAndLast();
2338
- ss.disable('full-expand');
2339
- if (ss.controls) {
2340
- this.createOverlay(hs.extend(ss.overlayOptions || {}, {
2341
- overlayId: ss.controls,
2342
- hsId: 'controls',
2343
- zIndex: 5
2344
- }));
2345
- }
2346
- if (ss.thumbstrip) ss.thumbstrip.add(this);
2347
- if (!this.last && this.autoplay) ss.play(true);
2348
- if (ss.autoplay) {
2349
- ss.autoplay = setTimeout(function() {
2350
- hs.next(key);
2351
- }, (ss.interval || 500));
2352
- }
2353
- },
2354
-
2355
- cancelLoading : function() {
2356
- hs.discardElement (this.wrapper);
2357
- hs.expanders[this.key] = null;
2358
- if (hs.upcoming == this.a) hs.upcoming = null;
2359
- hs.undim(this.key);
2360
- if (this.loading) hs.loading.style.left = '-9999px';
2361
- hs.fireEvent(this, 'onHideLoading');
2362
- },
2363
-
2364
- writeCredits : function () {
2365
- if (this.credits) return;
2366
- this.credits = hs.createElement('a', {
2367
- href: hs.creditsHref,
2368
- target: hs.creditsTarget,
2369
- className: 'highslide-credits',
2370
- innerHTML: hs.lang.creditsText,
2371
- title: hs.lang.creditsTitle
2372
- });
2373
- this.createOverlay({
2374
- overlayId: this.credits,
2375
- position: this.creditsPosition || 'top left',
2376
- hsId: 'credits'
2377
- });
2378
- },
2379
-
2380
- getInline : function(types, addOverlay) {
2381
- for (var i = 0; i < types.length; i++) {
2382
- var type = types[i], s = null;
2383
- if (type == 'caption' && !hs.fireEvent(this, 'onBeforeGetCaption')) return;
2384
- else if (type == 'heading' && !hs.fireEvent(this, 'onBeforeGetHeading')) return;
2385
- if (!this[type +'Id'] && this.thumbsUserSetId)
2386
- this[type +'Id'] = type +'-for-'+ this.thumbsUserSetId;
2387
- if (this[type +'Id']) this[type] = hs.getNode(this[type +'Id']);
2388
- if (!this[type] && !this[type +'Text'] && this[type +'Eval']) try {
2389
- s = eval(this[type +'Eval']);
2390
- } catch (e) {}
2391
- if (!this[type] && this[type +'Text']) {
2392
- s = this[type +'Text'];
2393
- }
2394
- if (!this[type] && !s) {
2395
- this[type] = hs.getNode(this.a['_'+ type + 'Id']);
2396
- if (!this[type]) {
2397
- var next = this.a.nextSibling;
2398
- while (next && !hs.isHsAnchor(next)) {
2399
- if ((new RegExp('highslide-'+ type)).test(next.className || null)) {
2400
- if (!next.id) this.a['_'+ type + 'Id'] = next.id = 'hsId'+ hs.idCounter++;
2401
- this[type] = hs.getNode(next.id);
2402
- break;
2403
- }
2404
- next = next.nextSibling;
2405
- }
2406
- }
2407
- }
2408
- if (!this[type] && !s && this.numberPosition == type) s = '\n';
2409
-
2410
- if (!this[type] && s) this[type] = hs.createElement('div',
2411
- { className: 'highslide-'+ type, innerHTML: s } );
2412
-
2413
- if (addOverlay && this[type]) {
2414
- var o = { position: (type == 'heading') ? 'above' : 'below' };
2415
- for (var x in this[type+'Overlay']) o[x] = this[type+'Overlay'][x];
2416
- o.overlayId = this[type];
2417
- this.createOverlay(o);
2418
- }
2419
- }
2420
- },
2421
-
2422
-
2423
- // on end move and resize
2424
- doShowHide : function(visibility) {
2425
- if (hs.hideSelects) this.showHideElements('SELECT', visibility);
2426
- if (hs.hideIframes) this.showHideElements('IFRAME', visibility);
2427
- if (hs.geckoMac) this.showHideElements('*', visibility);
2428
- },
2429
- showHideElements : function (tagName, visibility) {
2430
- var els = document.getElementsByTagName(tagName);
2431
- var prop = tagName == '*' ? 'overflow' : 'visibility';
2432
- for (var i = 0; i < els.length; i++) {
2433
- if (prop == 'visibility' || (document.defaultView.getComputedStyle(
2434
- els[i], "").getPropertyValue('overflow') == 'auto'
2435
- || els[i].getAttribute('hidden-by') != null)) {
2436
- var hiddenBy = els[i].getAttribute('hidden-by');
2437
- if (visibility == 'visible' && hiddenBy) {
2438
- hiddenBy = hiddenBy.replace('['+ this.key +']', '');
2439
- els[i].setAttribute('hidden-by', hiddenBy);
2440
- if (!hiddenBy) els[i].style[prop] = els[i].origProp;
2441
- } else if (visibility == 'hidden') { // hide if behind
2442
- var elPos = hs.getPosition(els[i]);
2443
- elPos.w = els[i].offsetWidth;
2444
- elPos.h = els[i].offsetHeight;
2445
- if (!this.dimmingOpacity) { // hide all if dimming
2446
-
2447
- var clearsX = (elPos.x + elPos.w < this.x.get('opos')
2448
- || elPos.x > this.x.get('opos') + this.x.get('osize'));
2449
- var clearsY = (elPos.y + elPos.h < this.y.get('opos')
2450
- || elPos.y > this.y.get('opos') + this.y.get('osize'));
2451
- }
2452
- var wrapperKey = hs.getWrapperKey(els[i]);
2453
- if (!clearsX && !clearsY && wrapperKey != this.key) { // element falls behind image
2454
- if (!hiddenBy) {
2455
- els[i].setAttribute('hidden-by', '['+ this.key +']');
2456
- els[i].origProp = els[i].style[prop];
2457
- els[i].style[prop] = 'hidden';
2458
-
2459
- } else if (hiddenBy.indexOf('['+ this.key +']') == -1) {
2460
- els[i].setAttribute('hidden-by', hiddenBy + '['+ this.key +']');
2461
- }
2462
- } else if ((hiddenBy == '['+ this.key +']' || hs.focusKey == wrapperKey)
2463
- && wrapperKey != this.key) { // on move
2464
- els[i].setAttribute('hidden-by', '');
2465
- els[i].style[prop] = els[i].origProp || '';
2466
- } else if (hiddenBy && hiddenBy.indexOf('['+ this.key +']') > -1) {
2467
- els[i].setAttribute('hidden-by', hiddenBy.replace('['+ this.key +']', ''));
2468
- }
2469
-
2470
- }
2471
- }
2472
- }
2473
- },
2474
-
2475
- focus : function() {
2476
- this.wrapper.style.zIndex = hs.zIndexCounter += 2;
2477
- // blur others
2478
- for (var i = 0; i < hs.expanders.length; i++) {
2479
- if (hs.expanders[i] && i == hs.focusKey) {
2480
- var blurExp = hs.expanders[i];
2481
- blurExp.content.className += ' highslide-'+ blurExp.contentType +'-blur';
2482
- if (blurExp.isImage) {
2483
- blurExp.content.style.cursor = hs.ieLt7 ? 'hand' : 'pointer';
2484
- blurExp.content.title = hs.lang.focusTitle;
2485
- }
2486
- hs.fireEvent(blurExp, 'onBlur');
2487
- }
2488
- }
2489
-
2490
- // focus this
2491
- if (this.outline) this.outline.table.style.zIndex
2492
- = this.wrapper.style.zIndex - 1;
2493
- this.content.className = 'highslide-'+ this.contentType;
2494
- if (this.isImage) {
2495
- this.content.title = hs.lang.restoreTitle;
2496
-
2497
- if (hs.restoreCursor) {
2498
- hs.styleRestoreCursor = window.opera ? 'pointer' : 'url('+ hs.graphicsDir + hs.restoreCursor +'), pointer';
2499
- if (hs.ieLt7 && hs.uaVersion < 6) hs.styleRestoreCursor = 'hand';
2500
- this.content.style.cursor = hs.styleRestoreCursor;
2501
- }
2502
- }
2503
- hs.focusKey = this.key;
2504
- hs.addEventListener(document, window.opera ? 'keypress' : 'keydown', hs.keyHandler);
2505
- hs.fireEvent(this, 'onFocus');
2506
- },
2507
- moveTo: function(x, y) {
2508
- this.x.setPos(x);
2509
- this.y.setPos(y);
2510
- },
2511
- resize : function (e) {
2512
- var w, h, r = e.width / e.height;
2513
- w = Math.max(e.width + e.dX, Math.min(this.minWidth, this.x.full));
2514
- if (this.isImage && Math.abs(w - this.x.full) < 12) w = this.x.full;
2515
- h = this.isHtml ? e.height + e.dY : w / r;
2516
- if (h < Math.min(this.minHeight, this.y.full)) {
2517
- h = Math.min(this.minHeight, this.y.full);
2518
- if (this.isImage) w = h * r;
2519
- }
2520
- this.resizeTo(w, h);
2521
- },
2522
- resizeTo: function(w, h) {
2523
- this.y.setSize(h);
2524
- this.x.setSize(w);
2525
- this.wrapper.style.height = this.y.get('wsize') +'px';
2526
- },
2527
-
2528
- close : function() {
2529
- if (this.isClosing || !this.isExpanded) return;
2530
- if (this.transitions[1] == 'crossfade' && hs.upcoming) {
2531
- hs.getExpander(hs.upcoming).cancelLoading();
2532
- hs.upcoming = null;
2533
- }
2534
- if (!hs.fireEvent(this, 'onBeforeClose')) return;
2535
- this.isClosing = true;
2536
- if (this.slideshow && !hs.upcoming) this.slideshow.pause();
2537
-
2538
- hs.removeEventListener(document, window.opera ? 'keypress' : 'keydown', hs.keyHandler);
2539
-
2540
- try {
2541
- if (this.isHtml) this.htmlPrepareClose();
2542
- this.content.style.cursor = 'default';
2543
- this.changeSize(
2544
- 0, {
2545
- wrapper: {
2546
- width : this.x.t,
2547
- height : this.y.t,
2548
- left: this.x.tpos - this.x.cb + this.x.tb,
2549
- top: this.y.tpos - this.y.cb + this.y.tb
2550
- },
2551
- content: {
2552
- left: 0,
2553
- top: 0,
2554
- width: this.x.t,
2555
- height: this.y.t
2556
- }
2557
- }, hs.restoreDuration
2558
- );
2559
- } catch (e) { this.afterClose(); }
2560
- },
2561
-
2562
- htmlPrepareClose : function() {
2563
- if (hs.geckoMac) { // bad redraws
2564
- if (!hs.mask) hs.mask = hs.createElement('div', null,
2565
- { position: 'absolute' }, hs.container);
2566
- hs.setStyles(hs.mask, { width: this.x.size +'px', height: this.y.size +'px',
2567
- left: this.x.pos +'px', top: this.y.pos +'px', display: 'block' });
2568
- }
2569
- if (this.objectType == 'swf') try { hs.$(this.body.id).StopPlay(); } catch (e) {}
2570
-
2571
- if (this.objectLoadTime == 'after' && !this.preserveContent) this.destroyObject();
2572
- if (this.scrollerDiv && this.scrollerDiv != this.scrollingContent)
2573
- this.scrollerDiv.style.overflow = 'hidden';
2574
- },
2575
-
2576
- destroyObject : function () {
2577
- if (hs.ie && this.iframe)
2578
- try { this.iframe.contentWindow.document.body.innerHTML = ''; } catch (e) {}
2579
- if (this.objectType == 'swf') swfobject.removeSWF(this.body.id);
2580
- this.body.innerHTML = '';
2581
- },
2582
-
2583
- sleep : function() {
2584
- if (this.outline) this.outline.table.style.display = 'none';
2585
- this.releaseMask = null;
2586
- this.wrapper.style.display = 'none';
2587
- this.isExpanded = false;
2588
- hs.push(hs.sleeping, this);
2589
- },
2590
-
2591
- awake : function() {try {
2592
-
2593
- hs.expanders[this.key] = this;
2594
-
2595
- if (!hs.allowMultipleInstances &&hs.focusKey != this.key) {
2596
- try { hs.expanders[hs.focusKey].close(); } catch (e){}
2597
- }
2598
-
2599
- var z = hs.zIndexCounter++, stl = { display: '', zIndex: z };
2600
- hs.setStyles (this.wrapper, stl);
2601
- this.isClosing = false;
2602
-
2603
- var o = this.outline || 0;
2604
- if (o) {
2605
- if (!this.outlineWhileAnimating) stl.visibility = 'hidden';
2606
- hs.setStyles (o.table, stl);
2607
- }
2608
- if (this.slideshow) {
2609
- this.initSlideshow();
2610
- }
2611
-
2612
- this.show();
2613
- } catch (e) {}
2614
-
2615
-
2616
- },
2617
-
2618
- createOverlay : function (o) {
2619
- var el = o.overlayId,
2620
- relToVP = (o.relativeTo == 'viewport' && !/panel$/.test(o.position));
2621
- if (typeof el == 'string') el = hs.getNode(el);
2622
- if (o.html) el = hs.createElement('div', { innerHTML: o.html });
2623
- if (!el || typeof el == 'string') return;
2624
- if (!hs.fireEvent(this, 'onCreateOverlay', { overlay: el })) return;
2625
- el.style.display = 'block';
2626
- o.hsId = o.hsId || o.overlayId;
2627
- if (this.transitions[1] == 'crossfade' && this.reuseOverlay(o, el)) return;
2628
- this.genOverlayBox();
2629
- var width = o.width && /^[0-9]+(px|%)$/.test(o.width) ? o.width : 'auto';
2630
- if (/^(left|right)panel$/.test(o.position) && !/^[0-9]+px$/.test(o.width)) width = '200px';
2631
- var overlay = hs.createElement(
2632
- 'div', {
2633
- id: 'hsId'+ hs.idCounter++,
2634
- hsId: o.hsId
2635
- }, {
2636
- position: 'absolute',
2637
- visibility: 'hidden',
2638
- width: width,
2639
- direction: hs.lang.cssDirection || '',
2640
- opacity: 0
2641
- },
2642
- relToVP ? hs.viewport :this.overlayBox,
2643
- true
2644
- );
2645
- if (relToVP) overlay.hsKey = this.key;
2646
-
2647
- overlay.appendChild(el);
2648
- hs.extend(overlay, {
2649
- opacity: 1,
2650
- offsetX: 0,
2651
- offsetY: 0,
2652
- dur: (o.fade === 0 || o.fade === false || (o.fade == 2 && hs.ie)) ? 0 : 250
2653
- });
2654
- hs.extend(overlay, o);
2655
-
2656
-
2657
- if (this.gotOverlays) {
2658
- this.positionOverlay(overlay);
2659
- if (!overlay.hideOnMouseOut || this.mouseIsOver)
2660
- hs.animate(overlay, { opacity: overlay.opacity }, overlay.dur);
2661
- }
2662
- hs.push(this.overlays, hs.idCounter - 1);
2663
- },
2664
- positionOverlay : function(overlay) {
2665
- var p = overlay.position || 'middle center',
2666
- relToVP = (overlay.relativeTo == 'viewport'),
2667
- offX = overlay.offsetX,
2668
- offY = overlay.offsetY;
2669
- if (relToVP) {
2670
- hs.viewport.style.display = 'block';
2671
- overlay.hsKey = this.key;
2672
- if (overlay.offsetWidth > overlay.parentNode.offsetWidth)
2673
- overlay.style.width = '100%';
2674
- } else
2675
- if (overlay.parentNode != this.overlayBox) this.overlayBox.appendChild(overlay);
2676
- if (/left$/.test(p)) overlay.style.left = offX +'px';
2677
-
2678
- if (/center$/.test(p)) hs.setStyles (overlay, {
2679
- left: '50%',
2680
- marginLeft: (offX - Math.round(overlay.offsetWidth / 2)) +'px'
2681
- });
2682
-
2683
- if (/right$/.test(p)) overlay.style.right = - offX +'px';
2684
-
2685
- if (/^leftpanel$/.test(p)) {
2686
- hs.setStyles(overlay, {
2687
- right: '100%',
2688
- marginRight: this.x.cb +'px',
2689
- top: - this.y.cb +'px',
2690
- bottom: - this.y.cb +'px',
2691
- overflow: 'auto'
2692
- });
2693
- this.x.p1 = overlay.offsetWidth;
2694
-
2695
- } else if (/^rightpanel$/.test(p)) {
2696
- hs.setStyles(overlay, {
2697
- left: '100%',
2698
- marginLeft: this.x.cb +'px',
2699
- top: - this.y.cb +'px',
2700
- bottom: - this.y.cb +'px',
2701
- overflow: 'auto'
2702
- });
2703
- this.x.p2 = overlay.offsetWidth;
2704
- }
2705
- var parOff = overlay.parentNode.offsetHeight;
2706
- overlay.style.height = 'auto';
2707
- if (relToVP && overlay.offsetHeight > parOff)
2708
- overlay.style.height = hs.ieLt7 ? parOff +'px' : '100%';
2709
-
2710
- if (/^top/.test(p)) overlay.style.top = offY +'px';
2711
- if (/^middle/.test(p)) hs.setStyles (overlay, {
2712
- top: '50%',
2713
- marginTop: (offY - Math.round(overlay.offsetHeight / 2)) +'px'
2714
- });
2715
- if (/^bottom/.test(p)) overlay.style.bottom = - offY +'px';
2716
- if (/^above$/.test(p)) {
2717
- hs.setStyles(overlay, {
2718
- left: (- this.x.p1 - this.x.cb) +'px',
2719
- right: (- this.x.p2 - this.x.cb) +'px',
2720
- bottom: '100%',
2721
- marginBottom: this.y.cb +'px',
2722
- width: 'auto'
2723
- });
2724
- this.y.p1 = overlay.offsetHeight;
2725
-
2726
- } else if (/^below$/.test(p)) {
2727
- hs.setStyles(overlay, {
2728
- position: 'relative',
2729
- left: (- this.x.p1 - this.x.cb) +'px',
2730
- right: (- this.x.p2 - this.x.cb) +'px',
2731
- top: '100%',
2732
- marginTop: this.y.cb +'px',
2733
- width: 'auto'
2734
- });
2735
- this.y.p2 = overlay.offsetHeight;
2736
- overlay.style.position = 'absolute';
2737
- }
2738
- },
2739
-
2740
- getOverlays : function() {
2741
- this.getInline(['heading', 'caption'], true);
2742
- this.getNumber();
2743
- if (this.caption) hs.fireEvent(this, 'onAfterGetCaption');
2744
- if (this.heading) hs.fireEvent(this, 'onAfterGetHeading');
2745
- if (this.heading && this.dragByHeading) this.heading.className += ' highslide-move';
2746
- if (hs.showCredits) this.writeCredits();
2747
- for (var i = 0; i < hs.overlays.length; i++) {
2748
- var o = hs.overlays[i], tId = o.thumbnailId, sg = o.slideshowGroup;
2749
- if ((!tId && !sg) || (tId && tId == this.thumbsUserSetId)
2750
- || (sg && sg === this.slideshowGroup)) {
2751
- if (this.isImage || (this.isHtml && o.useOnHtml))
2752
- this.createOverlay(o);
2753
- }
2754
- }
2755
- var os = [];
2756
- for (var i = 0; i < this.overlays.length; i++) {
2757
- var o = hs.$('hsId'+ this.overlays[i]);
2758
- if (/panel$/.test(o.position)) this.positionOverlay(o);
2759
- else hs.push(os, o);
2760
- }
2761
- for (var i = 0; i < os.length; i++) this.positionOverlay(os[i]);
2762
- this.gotOverlays = true;
2763
- },
2764
- genOverlayBox : function() {
2765
- if (!this.overlayBox) this.overlayBox = hs.createElement (
2766
- 'div', {
2767
- className: this.wrapperClassName
2768
- }, {
2769
- position : 'absolute',
2770
- width: (this.x.size || (this.useBox ? this.width : null)
2771
- || this.x.full) +'px',
2772
- height: (this.y.size || this.y.full) +'px',
2773
- visibility : 'hidden',
2774
- overflow : 'hidden',
2775
- zIndex : hs.ie ? 4 : 'auto'
2776
- },
2777
- hs.container,
2778
- true
2779
- );
2780
- },
2781
- sizeOverlayBox : function(doWrapper, doPanels) {
2782
- var overlayBox = this.overlayBox,
2783
- x = this.x,
2784
- y = this.y;
2785
- hs.setStyles( overlayBox, {
2786
- width: x.size +'px',
2787
- height: y.size +'px'
2788
- });
2789
- if (doWrapper || doPanels) {
2790
- for (var i = 0; i < this.overlays.length; i++) {
2791
- var o = hs.$('hsId'+ this.overlays[i]);
2792
- var ie6 = (hs.ieLt7 || document.compatMode == 'BackCompat');
2793
- if (o && /^(above|below)$/.test(o.position)) {
2794
- if (ie6) {
2795
- o.style.width = (overlayBox.offsetWidth + 2 * x.cb
2796
- + x.p1 + x.p2) +'px';
2797
- }
2798
- y[o.position == 'above' ? 'p1' : 'p2'] = o.offsetHeight;
2799
- }
2800
- if (o && ie6 && /^(left|right)panel$/.test(o.position)) {
2801
- o.style.height = (overlayBox.offsetHeight + 2* y.cb) +'px';
2802
- }
2803
- }
2804
- }
2805
- if (doWrapper) {
2806
- hs.setStyles(this.content, {
2807
- top: y.p1 +'px'
2808
- });
2809
- hs.setStyles(overlayBox, {
2810
- top: (y.p1 + y.cb) +'px'
2811
- });
2812
- }
2813
- },
2814
-
2815
- showOverlays : function() {
2816
- var b = this.overlayBox;
2817
- b.className = '';
2818
- hs.setStyles(b, {
2819
- top: (this.y.p1 + this.y.cb) +'px',
2820
- left: (this.x.p1 + this.x.cb) +'px',
2821
- overflow : 'visible'
2822
- });
2823
- if (hs.safari) b.style.visibility = 'visible';
2824
- this.wrapper.appendChild (b);
2825
- for (var i = 0; i < this.overlays.length; i++) {
2826
- var o = hs.$('hsId'+ this.overlays[i]);
2827
- o.style.zIndex = o.zIndex || 4;
2828
- if (!o.hideOnMouseOut || this.mouseIsOver) {
2829
- o.style.visibility = 'visible';
2830
- hs.setStyles(o, { visibility: 'visible', display: '' });
2831
- hs.animate(o, { opacity: o.opacity }, o.dur);
2832
- }
2833
- }
2834
- },
2835
-
2836
- destroyOverlays : function() {
2837
- if (!this.overlays.length) return;
2838
- if (this.slideshow) {
2839
- var c = this.slideshow.controls;
2840
- if (c && hs.getExpander(c) == this) c.parentNode.removeChild(c);
2841
- }
2842
- for (var i = 0; i < this.overlays.length; i++) {
2843
- var o = hs.$('hsId'+ this.overlays[i]);
2844
- if (o && o.parentNode == hs.viewport && hs.getExpander(o) == this) hs.discardElement(o);
2845
- }
2846
- if (this.isHtml && this.preserveContent) {
2847
- this.overlayBox.style.top = '-9999px';
2848
- hs.container.appendChild(this.overlayBox);
2849
- } else
2850
- hs.discardElement(this.overlayBox);
2851
- },
2852
-
2853
-
2854
-
2855
- createFullExpand : function () {
2856
- if (this.slideshow && this.slideshow.controls) {
2857
- this.slideshow.enable('full-expand');
2858
- return;
2859
- }
2860
- this.fullExpandLabel = hs.createElement(
2861
- 'a', {
2862
- href: 'javascript:hs.expanders['+ this.key +'].doFullExpand();',
2863
- title: hs.lang.fullExpandTitle,
2864
- className: 'highslide-full-expand'
2865
- }
2866
- );
2867
- if (!hs.fireEvent(this, 'onCreateFullExpand')) return;
2868
-
2869
- this.createOverlay({
2870
- overlayId: this.fullExpandLabel,
2871
- position: hs.fullExpandPosition,
2872
- hideOnMouseOut: true,
2873
- opacity: hs.fullExpandOpacity
2874
- });
2875
- },
2876
-
2877
- doFullExpand : function () {
2878
- try {
2879
- if (!hs.fireEvent(this, 'onDoFullExpand')) return;
2880
- if (this.fullExpandLabel) hs.discardElement(this.fullExpandLabel);
2881
-
2882
- this.focus();
2883
- var xSize = this.x.size;
2884
- this.resizeTo(this.x.full, this.y.full);
2885
-
2886
- var xpos = this.x.pos - (this.x.size - xSize) / 2;
2887
- if (xpos < hs.marginLeft) xpos = hs.marginLeft;
2888
-
2889
- this.moveTo(xpos, this.y.pos);
2890
- this.doShowHide('hidden');
2891
-
2892
- } catch (e) {
2893
- this.error(e);
2894
- }
2895
- },
2896
-
2897
-
2898
- afterClose : function () {
2899
- this.a.className = this.a.className.replace('highslide-active-anchor', '');
2900
-
2901
- this.doShowHide('visible');
2902
-
2903
- if (this.isHtml && this.preserveContent
2904
- && this.transitions[1] != 'crossfade') {
2905
- this.sleep();
2906
- } else {
2907
- if (this.outline && this.outlineWhileAnimating) this.outline.destroy();
2908
-
2909
- hs.discardElement(this.wrapper);
2910
- }
2911
- if (hs.mask) hs.mask.style.display = 'none';
2912
- this.destroyOverlays();
2913
- if (!hs.viewport.childNodes.length) hs.viewport.style.display = 'none';
2914
-
2915
- if (this.dimmingOpacity) hs.undim(this.key);
2916
- hs.fireEvent(this, 'onAfterClose');
2917
- hs.expanders[this.key] = null;
2918
- hs.reOrder();
2919
- }
2920
-
2921
- };
2922
-
2923
-
2924
- // hs.Ajax object prototype
2925
- hs.Ajax = function (a, content, pre) {
2926
- this.a = a;
2927
- this.content = content;
2928
- this.pre = pre;
2929
- };
2930
-
2931
- hs.Ajax.prototype = {
2932
- run : function () {
2933
- var xhr;
2934
- if (!this.src) this.src = hs.getSrc(this.a);
2935
- if (this.src.match('#')) {
2936
- var arr = this.src.split('#');
2937
- this.src = arr[0];
2938
- this.id = arr[1];
2939
- }
2940
- if (hs.cachedGets[this.src]) {
2941
- this.cachedGet = hs.cachedGets[this.src];
2942
- if (this.id) this.getElementContent();
2943
- else this.loadHTML();
2944
- return;
2945
- }
2946
- try { xhr = new XMLHttpRequest(); }
2947
- catch (e) {
2948
- try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); }
2949
- catch (e) {
2950
- try { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
2951
- catch (e) { this.onError(); }
2952
- }
2953
- }
2954
- var pThis = this;
2955
- xhr.onreadystatechange = function() {
2956
- if(pThis.xhr.readyState == 4) {
2957
- if (pThis.id) pThis.getElementContent();
2958
- else pThis.loadHTML();
2959
- }
2960
- };
2961
- var src = this.src;
2962
- this.xhr = xhr;
2963
- if (hs.forceAjaxReload)
2964
- src = src.replace(/$/, (/\?/.test(src) ? '&' : '?') +'dummy='+ (new Date()).getTime());
2965
- xhr.open('GET', src, true);
2966
- xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
2967
- xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
2968
- xhr.send(null);
2969
- },
2970
-
2971
- getElementContent : function() {
2972
- hs.init();
2973
- var attribs = window.opera || hs.ie6SSL ? { src: 'about:blank' } : null;
2974
-
2975
- this.iframe = hs.createElement('iframe', attribs,
2976
- { position: 'absolute', top: '-9999px' }, hs.container);
2977
-
2978
- this.loadHTML();
2979
- },
2980
-
2981
- loadHTML : function() {
2982
- var s = this.cachedGet || this.xhr.responseText,
2983
- regBody;
2984
- if (this.pre) hs.cachedGets[this.src] = s;
2985
- if (!hs.ie || hs.uaVersion >= 5.5) {
2986
- s = s.replace(new RegExp('<link[^>]*>', 'gi'), '')
2987
- .replace(new RegExp('<script[^>]*>.*?</script>', 'gi'), '');
2988
- if (this.iframe) {
2989
- var doc = this.iframe.contentDocument;
2990
- if (!doc && this.iframe.contentWindow) doc = this.iframe.contentWindow.document;
2991
- if (!doc) { // Opera
2992
- var pThis = this;
2993
- setTimeout(function() { pThis.loadHTML(); }, 25);
2994
- return;
2995
- }
2996
- doc.open();
2997
- doc.write(s);
2998
- doc.close();
2999
- try { s = doc.getElementById(this.id).innerHTML; } catch (e) {
3000
- try { s = this.iframe.document.getElementById(this.id).innerHTML; } catch (e) {} // opera
3001
- }
3002
- hs.discardElement(this.iframe);
3003
- } else {
3004
- regBody = /(<body[^>]*>|<\/body>)/ig;
3005
- if (regBody.test(s)) s = s.split(regBody)[hs.ieLt9 ? 1 : 2];
3006
-
3007
- }
3008
- }
3009
- hs.getElementByClass(this.content, 'DIV', 'highslide-body').innerHTML = s;
3010
- this.onLoad();
3011
- for (var x in this) this[x] = null;
3012
- }
3013
- };
3014
-
3015
-
3016
- hs.Slideshow = function (expKey, options) {
3017
- if (hs.dynamicallyUpdateAnchors !== false) hs.updateAnchors();
3018
- this.expKey = expKey;
3019
- for (var x in options) this[x] = options[x];
3020
- if (this.useControls) this.getControls();
3021
- if (this.thumbstrip) this.thumbstrip = hs.Thumbstrip(this);
3022
- };
3023
- hs.Slideshow.prototype = {
3024
- getControls: function() {
3025
- this.controls = hs.createElement('div', { innerHTML: hs.replaceLang(hs.skin.controls) },
3026
- null, hs.container);
3027
-
3028
- var buttons = ['play', 'pause', 'previous', 'next', 'move', 'full-expand', 'close'];
3029
- this.btn = {};
3030
- var pThis = this;
3031
- for (var i = 0; i < buttons.length; i++) {
3032
- this.btn[buttons[i]] = hs.getElementByClass(this.controls, 'li', 'highslide-'+ buttons[i]);
3033
- this.enable(buttons[i]);
3034
- }
3035
- this.btn.pause.style.display = 'none';
3036
- //this.disable('full-expand');
3037
- },
3038
- checkFirstAndLast: function() {
3039
- if (this.repeat || !this.controls) return;
3040
- var exp = hs.expanders[this.expKey],
3041
- cur = exp.getAnchorIndex(),
3042
- re = /disabled$/;
3043
- if (cur == 0)
3044
- this.disable('previous');
3045
- else if (re.test(this.btn.previous.getElementsByTagName('a')[0].className))
3046
- this.enable('previous');
3047
- if (cur + 1 == hs.anchors.groups[exp.slideshowGroup || 'none'].length) {
3048
- this.disable('next');
3049
- this.disable('play');
3050
- } else if (re.test(this.btn.next.getElementsByTagName('a')[0].className)) {
3051
- this.enable('next');
3052
- this.enable('play');
3053
- }
3054
- },
3055
- enable: function(btn) {
3056
- if (!this.btn) return;
3057
- var sls = this, a = this.btn[btn].getElementsByTagName('a')[0], re = /disabled$/;
3058
- a.onclick = function() {
3059
- sls[btn]();
3060
- return false;
3061
- };
3062
- if (re.test(a.className)) a.className = a.className.replace(re, '');
3063
- },
3064
- disable: function(btn) {
3065
- if (!this.btn) return;
3066
- var a = this.btn[btn].getElementsByTagName('a')[0];
3067
- a.onclick = function() { return false; };
3068
- if (!/disabled$/.test(a.className)) a.className += ' disabled';
3069
- },
3070
- hitSpace: function() {
3071
- if (this.autoplay) this.pause();
3072
- else this.play();
3073
- },
3074
- play: function(wait) {
3075
- if (this.btn) {
3076
- this.btn.play.style.display = 'none';
3077
- this.btn.pause.style.display = '';
3078
- }
3079
-
3080
- this.autoplay = true;
3081
- if (!wait) hs.next(this.expKey);
3082
- },
3083
- pause: function() {
3084
- if (this.btn) {
3085
- this.btn.pause.style.display = 'none';
3086
- this.btn.play.style.display = '';
3087
- }
3088
-
3089
- clearTimeout(this.autoplay);
3090
- this.autoplay = null;
3091
- },
3092
- previous: function() {
3093
- this.pause();
3094
- hs.previous(this.btn.previous);
3095
- },
3096
- next: function() {
3097
- this.pause();
3098
- hs.next(this.btn.next);
3099
- },
3100
- move: function() {},
3101
- 'full-expand': function() {
3102
- hs.getExpander().doFullExpand();
3103
- },
3104
- close: function() {
3105
- hs.close(this.btn.close);
3106
- }
3107
- };
3108
- hs.Thumbstrip = function(slideshow) {
3109
- function add (exp) {
3110
- hs.extend(options || {}, {
3111
- overlayId: dom,
3112
- hsId: 'thumbstrip',
3113
- className: 'highslide-thumbstrip-'+ mode +'-overlay ' + (options.className || '')
3114
- });
3115
- if (hs.ieLt7) options.fade = 0;
3116
- exp.createOverlay(options);
3117
- hs.setStyles(dom.parentNode, { overflow: 'hidden' });
3118
- };
3119
-
3120
- function scroll (delta) {
3121
- selectThumb(undefined, Math.round(delta * dom[isX ? 'offsetWidth' : 'offsetHeight'] * 0.7));
3122
- };
3123
-
3124
- function selectThumb (i, scrollBy) {
3125
- if (i === undefined) for (var j = 0; j < group.length; j++) {
3126
- if (group[j] == hs.expanders[slideshow.expKey].a) {
3127
- i = j;
3128
- break;
3129
- }
3130
- }
3131
- if (i === undefined) return;
3132
- var as = dom.getElementsByTagName('a'),
3133
- active = as[i],
3134
- cell = active.parentNode,
3135
- left = isX ? 'Left' : 'Top',
3136
- right = isX ? 'Right' : 'Bottom',
3137
- width = isX ? 'Width' : 'Height',
3138
- offsetLeft = 'offset' + left,
3139
- offsetWidth = 'offset' + width,
3140
- overlayWidth = div.parentNode.parentNode[offsetWidth],
3141
- minTblPos = overlayWidth - table[offsetWidth],
3142
- curTblPos = parseInt(table.style[isX ? 'left' : 'top']) || 0,
3143
- tblPos = curTblPos,
3144
- mgnRight = 20;
3145
- if (scrollBy !== undefined) {
3146
- tblPos = curTblPos - scrollBy;
3147
-
3148
- if (minTblPos > 0) minTblPos = 0;
3149
- if (tblPos > 0) tblPos = 0;
3150
- if (tblPos < minTblPos) tblPos = minTblPos;
3151
-
3152
-
3153
- } else {
3154
- for (var j = 0; j < as.length; j++) as[j].className = '';
3155
- active.className = 'highslide-active-anchor';
3156
- var activeLeft = i > 0 ? as[i - 1].parentNode[offsetLeft] : cell[offsetLeft],
3157
- activeRight = cell[offsetLeft] + cell[offsetWidth] +
3158
- (as[i + 1] ? as[i + 1].parentNode[offsetWidth] : 0);
3159
- if (activeRight > overlayWidth - curTblPos) tblPos = overlayWidth - activeRight;
3160
- else if (activeLeft < -curTblPos) tblPos = -activeLeft;
3161
- }
3162
- var markerPos = cell[offsetLeft] + (cell[offsetWidth] - marker[offsetWidth]) / 2 + tblPos;
3163
- hs.animate(table, isX ? { left: tblPos } : { top: tblPos }, null, 'easeOutQuad');
3164
- hs.animate(marker, isX ? { left: markerPos } : { top: markerPos }, null, 'easeOutQuad');
3165
- scrollUp.style.display = tblPos < 0 ? 'block' : 'none';
3166
- scrollDown.style.display = (tblPos > minTblPos) ? 'block' : 'none';
3167
-
3168
- };
3169
-
3170
-
3171
- // initialize
3172
- var group = hs.anchors.groups[hs.expanders[slideshow.expKey].slideshowGroup || 'none'],
3173
- options = slideshow.thumbstrip,
3174
- mode = options.mode || 'horizontal',
3175
- floatMode = (mode == 'float'),
3176
- tree = floatMode ? ['div', 'ul', 'li', 'span'] : ['table', 'tbody', 'tr', 'td'],
3177
- isX = (mode == 'horizontal'),
3178
- dom = hs.createElement('div', {
3179
- className: 'highslide-thumbstrip highslide-thumbstrip-'+ mode,
3180
- innerHTML:
3181
- '<div class="highslide-thumbstrip-inner">'+
3182
- '<'+ tree[0] +'><'+ tree[1] +'></'+ tree[1] +'></'+ tree[0] +'></div>'+
3183
- '<div class="highslide-scroll-up"><div></div></div>'+
3184
- '<div class="highslide-scroll-down"><div></div></div>'+
3185
- '<div class="highslide-marker"><div></div></div>'
3186
- }, {
3187
- display: 'none'
3188
- }, hs.container),
3189
- domCh = dom.childNodes,
3190
- div = domCh[0],
3191
- scrollUp = domCh[1],
3192
- scrollDown = domCh[2],
3193
- marker = domCh[3],
3194
- table = div.firstChild,
3195
- tbody = dom.getElementsByTagName(tree[1])[0],
3196
- tr;
3197
- for (var i = 0; i < group.length; i++) {
3198
- if (i == 0 || !isX) tr = hs.createElement(tree[2], null, null, tbody);
3199
- (function(){
3200
- var a = group[i],
3201
- cell = hs.createElement(tree[3], null, null, tr),
3202
- pI = i;
3203
- hs.createElement('a', {
3204
- href: a.href,
3205
- onclick: function() {
3206
- if (/highslide-active-anchor/.test(this.className)) return false;
3207
- hs.getExpander(this).focus();
3208
- return hs.transit(a);
3209
- },
3210
- innerHTML: hs.stripItemFormatter ? hs.stripItemFormatter(a) : a.innerHTML
3211
- }, null, cell);
3212
- })();
3213
- }
3214
- if (!floatMode) {
3215
- scrollUp.onclick = function () { scroll(-1); };
3216
- scrollDown.onclick = function() { scroll(1); };
3217
- hs.addEventListener(tbody, document.onmousewheel !== undefined ?
3218
- 'mousewheel' : 'DOMMouseScroll', function(e) {
3219
- var delta = 0;
3220
- e = e || window.event;
3221
- if (e.wheelDelta) {
3222
- delta = e.wheelDelta/120;
3223
- if (hs.opera) delta = -delta;
3224
- } else if (e.detail) {
3225
- delta = -e.detail/3;
3226
- }
3227
- if (delta) scroll(-delta * 0.2);
3228
- if (e.preventDefault) e.preventDefault();
3229
- e.returnValue = false;
3230
- });
3231
- }
3232
-
3233
- return {
3234
- add: add,
3235
- selectThumb: selectThumb
3236
- }
3237
- };
3238
- hs.langDefaults = hs.lang;
3239
- // history
3240
- var HsExpander = hs.Expander;
3241
- if (hs.ie && window == window.top) {
3242
- (function () {
3243
- try {
3244
- document.documentElement.doScroll('left');
3245
- } catch (e) {
3246
- setTimeout(arguments.callee, 50);
3247
- return;
3248
- }
3249
- hs.ready();
3250
- })();
3251
- }
3252
- hs.addEventListener(document, 'DOMContentLoaded', hs.ready);
3253
- hs.addEventListener(window, 'load', hs.ready);
3254
-
3255
- // set handlers
3256
- hs.addEventListener(document, 'ready', function() {
3257
- if (hs.expandCursor || hs.dimmingOpacity) {
3258
- var style = hs.createElement('style', { type: 'text/css' }, null,
3259
- document.getElementsByTagName('HEAD')[0]);
3260
-
3261
- function addRule(sel, dec) {
3262
- if (hs.ie && hs.uaVersion < 9) {
3263
- var last = document.styleSheets[document.styleSheets.length - 1];
3264
- if (typeof(last.addRule) == "object") last.addRule(sel, dec);
3265
- } else {
3266
- style.appendChild(document.createTextNode(sel + " {" + dec + "}"));
3267
- }
3268
- }
3269
- function fix(prop) {
3270
- return 'expression( ( ( ignoreMe = document.documentElement.'+ prop +
3271
- ' ? document.documentElement.'+ prop +' : document.body.'+ prop +' ) ) + \'px\' );';
3272
- }
3273
- if (hs.expandCursor) addRule ('.highslide img',
3274
- 'cursor: url('+ hs.graphicsDir + hs.expandCursor +'), pointer !important;');
3275
- addRule ('.highslide-viewport-size',
3276
- hs.ie && (hs.uaVersion < 7 || document.compatMode == 'BackCompat') ?
3277
- 'position: absolute; '+
3278
- 'left:'+ fix('scrollLeft') +
3279
- 'top:'+ fix('scrollTop') +
3280
- 'width:'+ fix('clientWidth') +
3281
- 'height:'+ fix('clientHeight') :
3282
- 'position: fixed; width: 100%; height: 100%; left: 0; top: 0');
3283
- }
3284
- });
3285
- hs.addEventListener(window, 'resize', function() {
3286
- hs.getPageSize();
3287
- if (hs.viewport) for (var i = 0; i < hs.viewport.childNodes.length; i++) {
3288
- var node = hs.viewport.childNodes[i],
3289
- exp = hs.getExpander(node);
3290
- exp.positionOverlay(node);
3291
- if (node.hsId == 'thumbstrip') exp.slideshow.thumbstrip.selectThumb();
3292
- }
3293
- });
3294
- hs.addEventListener(document, 'mousemove', function(e) {
3295
- hs.mouse = { x: e.clientX, y: e.clientY };
3296
- });
3297
- hs.addEventListener(document, 'mousedown', hs.mouseClickHandler);
3298
- hs.addEventListener(document, 'mouseup', hs.mouseClickHandler);
3299
- hs.addEventListener(document, 'ready', hs.setClickEvents);
3300
- hs.addEventListener(window, 'load', hs.preloadImages);
3301
- hs.addEventListener(window, 'load', hs.preloadAjax);
3302
- }