Merge lp:~linuxjedi/drizzle.org/trunk-seo-fixes into lp:drizzle.org
- trunk-seo-fixes
- Merge into trunk
Proposed by
Andrew Hutchings
Status: | Merged |
---|---|
Merged at revision: | 14 |
Proposed branch: | lp:~linuxjedi/drizzle.org/trunk-seo-fixes |
Merge into: | lp:drizzle.org |
Diff against target: |
3559 lines (+67/-3162) 37 files modified
Development.html (+0/-79) Development_files/Development.css (+0/-98) Development_files/Development.js (+0/-9) Development_files/DevelopmentIE.css (+0/-28) Development_files/DevelopmentMoz.css (+0/-6) FAQ.html (+0/-79) FAQ_files/FAQ.css (+0/-98) FAQ_files/FAQ.js (+0/-9) FAQ_files/FAQIE.css (+0/-28) FAQ_files/FAQMoz.css (+0/-6) Home.html (+32/-28) Home_files/Home.js (+0/-11) Home_files/HomeIE.css (+0/-46) Home_files/HomeMoz.css (+0/-6) Home_files/Home_1.1.css (+35/-38) License.html (+0/-79) License_files/License.css (+0/-98) License_files/License.js (+0/-9) License_files/LicenseIE.css (+0/-28) License_files/LicenseMoz.css (+0/-6) Media/IE8.css (+0/-13) Planet_Drizzle.html (+0/-79) Planet_Drizzle_files/Planet_Drizzle.css (+0/-98) Planet_Drizzle_files/Planet_Drizzle.js (+0/-9) Planet_Drizzle_files/Planet_DrizzleIE.css (+0/-28) Planet_Drizzle_files/Planet_DrizzleMoz.css (+0/-6) Scripts/Widgets/Navbar/navbar.js (+0/-67) Scripts/Widgets/SharedResources/WidgetCommon.js (+0/-423) Scripts/iWebImage.js (+0/-339) Scripts/iWebSite.js (+0/-1025) Wiki.html (+0/-79) Wiki_files/Wiki.css (+0/-98) Wiki_files/Wiki.js (+0/-9) Wiki_files/WikiIE.css (+0/-28) Wiki_files/WikiMoz.css (+0/-6) feed.xml (+0/-65) index.html (+0/-1) |
To merge this branch: | bzr merge lp:~linuxjedi/drizzle.org/trunk-seo-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lee Bieber | Pending | ||
Review via email: mp+49540@code.launchpad.net |
Commit message
Description of the change
Strip out hundreds of KBs of javascript breaking SEO and causing longer load times, replaced with about 20 lines of CSS
Strip out dead files
Add h1,h2 and h3 tags
Add title to the important hyperlinks
Change title tag
Justify body text
Kill horrid SEO killing index.html redirect and use symlink instead (alternative is to use a script that does a 301 instead)
Version css file to eliminate browser cache issues
Add Brian's Google Analytics script
To post a comment you must log in.
Revision history for this message
Andrew Hutchings (linuxjedi) wrote : | # |
- 15. By Andrew Hutchings
-
Shave over 100K from our favicon (ouch, my bad!)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === removed file 'Development.html' |
2 | --- Development.html 2010-08-15 17:48:28 +0000 |
3 | +++ Development.html 1970-01-01 00:00:00 +0000 |
4 | @@ -1,79 +0,0 @@ |
5 | -<?xml version="1.0" encoding="UTF-8"?> |
6 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
7 | - |
8 | - |
9 | -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
10 | - <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
11 | - |
12 | - <meta name="Generator" content="iWeb 3.0.1" /> |
13 | - <meta name="iWeb-Build" content="local-build-20100815" /> |
14 | - <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> |
15 | - <meta name="viewport" content="width=700" /> |
16 | - <title>Coming Soon......</title> |
17 | - <link rel="stylesheet" type="text/css" media="screen,print" href="Development_files/Development.css" /> |
18 | - <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Development_files/DevelopmentIE.css'/><![endif]--> |
19 | - <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]--> |
20 | - <script type="text/javascript" src="Scripts/iWebSite.js"></script> |
21 | - <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script> |
22 | - <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script> |
23 | - <script type="text/javascript" src="Development_files/Development.js"></script> |
24 | - </head> |
25 | - <body style="background: rgb(255, 255, 255); margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();"> |
26 | - <div style="text-align: center; "> |
27 | - <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; background: rgb(255, 255, 255); text-align: left; width: 700px; " id="body_content"> |
28 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer"> |
29 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
30 | - <div class="com-apple-iweb-widget-navbar flowDefining" id="widget0" style="margin-left: 35px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; "> |
31 | - |
32 | - <div id="widget0-navbar" class="navbar"> |
33 | - |
34 | - |
35 | - <div id="widget0-bg" class="navbar-bg"> |
36 | - |
37 | - |
38 | - <ul id="widget0-navbar-list" class="navbar-list"> |
39 | - <li></li> |
40 | -</ul> |
41 | - |
42 | - |
43 | -</div> |
44 | - |
45 | - |
46 | -</div> |
47 | - </div> |
48 | - <script type="text/javascript"><!--//--><![CDATA[//><!-- |
49 | -new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {"path-to-root": "", "navbar-css": ".navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #666;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:hover\r{\r\n \tcolor: #463C3C;\n\ttext-decoration: none;\r}\n\n\nli.current-page a\r{\r\t color: #463C3C;\n\ttext-decoration: none;\n\tfont-weight: bold;\r\r}\n", "current-page-GUID": "18F84135-89A2-4C9A-AF4C-AAF77590623D", "isCollectionPage": "NO"}); |
50 | -//--><!]]></script> |
51 | - <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div> |
52 | - </div> |
53 | - <div style="height: 73px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer"> |
54 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
55 | - <div style="height: 1px; width: 630px; height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; " class="tinyText"> |
56 | - <div style="position: relative; width: 630px; "> |
57 | - <img src="Development_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; " /> |
58 | - </div> |
59 | - </div> |
60 | - |
61 | - |
62 | - |
63 | - <div id="id1" style="height: 50px; left: 35px; position: absolute; top: 23px; width: 630px; z-index: 1; " class="style_SkipStroke shape-with-text"> |
64 | - <div class="text-content style_External_630_50" style="padding: 0px; "> |
65 | - <div class="style"> |
66 | - <p style="padding-bottom: 0pt; padding-top: 0pt; " class="Header">Coming Soon......</p> |
67 | - </div> |
68 | - </div> |
69 | - </div> |
70 | - </div> |
71 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer"> |
72 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
73 | - <div style="height: 480px; line-height: 480px; " class="spacer"> </div> |
74 | - </div> |
75 | - <div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer"> |
76 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
77 | - </div> |
78 | - </div> |
79 | - </div> |
80 | - </body> |
81 | -</html> |
82 | - |
83 | - |
84 | |
85 | === removed directory 'Development_files' |
86 | === removed file 'Development_files/Development.css' |
87 | --- Development_files/Development.css 2010-08-15 17:48:28 +0000 |
88 | +++ Development_files/Development.css 1970-01-01 00:00:00 +0000 |
89 | @@ -1,98 +0,0 @@ |
90 | -.style { |
91 | - padding: 4px; |
92 | -} |
93 | -.style_SkipStroke { |
94 | - background: transparent; |
95 | - opacity: 1.00; |
96 | -} |
97 | -.style_External_630_50 { |
98 | - position: relative; |
99 | -} |
100 | -.Header { |
101 | - color: rgb(167, 167, 167); |
102 | - font-family: 'Arial-BoldMT', 'Arial', sans-serif; |
103 | - font-size: 36px; |
104 | - font-stretch: normal; |
105 | - font-style: normal; |
106 | - font-variant: normal; |
107 | - font-weight: 700; |
108 | - letter-spacing: 0; |
109 | - line-height: 42px; |
110 | - margin-bottom: 0px; |
111 | - margin-left: 0px; |
112 | - margin-right: 0px; |
113 | - margin-top: 0px; |
114 | - opacity: 1.00; |
115 | - padding-bottom: 0px; |
116 | - padding-top: 0px; |
117 | - text-align: center; |
118 | - text-decoration: none; |
119 | - text-indent: 0px; |
120 | - text-transform: none; |
121 | -} |
122 | -.Normal_External_630_50 { |
123 | - position: relative; |
124 | -} |
125 | -.Normal { |
126 | - padding: 4px; |
127 | -} |
128 | -.graphic_generic_header_textbox_style_default_SkipStroke { |
129 | - background: transparent; |
130 | - opacity: 1.00; |
131 | -} |
132 | -.bumper { |
133 | - font-size: 1px; |
134 | - line-height: 1px; |
135 | -} |
136 | -#widget0 a:hover { |
137 | - color: rgb(0, 0, 0); |
138 | - text-decoration: underline; |
139 | -} |
140 | -#widget0 a:visited { |
141 | - color: rgb(121, 121, 121); |
142 | - text-decoration: underline; |
143 | -} |
144 | -#widget0 a { |
145 | - color: rgb(88, 77, 77); |
146 | - text-decoration: underline; |
147 | -} |
148 | -.spacer { |
149 | - font-size: 1px; |
150 | - line-height: 1px; |
151 | -} |
152 | -body { |
153 | - -webkit-text-size-adjust: none; |
154 | -} |
155 | -div { |
156 | - overflow: visible; |
157 | -} |
158 | -img { |
159 | - border: none; |
160 | -} |
161 | -.InlineBlock { |
162 | - display: inline; |
163 | -} |
164 | -.InlineBlock { |
165 | - display: inline-block; |
166 | -} |
167 | -.inline-block { |
168 | - display: inline-block; |
169 | - vertical-align: baseline; |
170 | - margin-bottom:0.3em; |
171 | -} |
172 | -.inline-block.shape-with-text { |
173 | - vertical-align: bottom; |
174 | -} |
175 | -.vertical-align-middle-middlebox { |
176 | - display: table; |
177 | -} |
178 | -.vertical-align-middle-innerbox { |
179 | - display: table-cell; |
180 | - vertical-align: middle; |
181 | -} |
182 | -div.paragraph { |
183 | - position: relative; |
184 | -} |
185 | -li.full-width { |
186 | - width: 100; |
187 | -} |
188 | |
189 | === removed file 'Development_files/Development.js' |
190 | --- Development_files/Development.js 2010-08-15 17:48:28 +0000 |
191 | +++ Development_files/Development.js 1970-01-01 00:00:00 +0000 |
192 | @@ -1,9 +0,0 @@ |
193 | -// Created by iWeb 3.0.1 local-build-20100815 |
194 | - |
195 | -setTransparentGifURL('Media/transparent.gif');function hostedOnDM() |
196 | -{return false;} |
197 | -function onPageLoad() |
198 | -{loadMozillaCSS('Development_files/DevelopmentMoz.css') |
199 | -adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');Widget.onload();fixAllIEPNGs('Media/transparent.gif');performPostEffectsFixups()} |
200 | -function onPageUnload() |
201 | -{Widget.onunload();} |
202 | |
203 | === removed file 'Development_files/DevelopmentIE.css' |
204 | --- Development_files/DevelopmentIE.css 2010-08-15 17:48:28 +0000 |
205 | +++ Development_files/DevelopmentIE.css 1970-01-01 00:00:00 +0000 |
206 | @@ -1,28 +0,0 @@ |
207 | -.inline-block { |
208 | - display: inline; |
209 | - vertical-align: baseline; |
210 | - margin-bottom:-2em; |
211 | - margin-top:2em; |
212 | - position:relative; |
213 | - top:-2em; |
214 | -} |
215 | -.vertical-align-middle-middlebox { |
216 | - display: block; |
217 | - height: auto; |
218 | - position: absolute; |
219 | - top: 50%; |
220 | -} |
221 | -.vertical-align-middle-innerbox { |
222 | - display: block; |
223 | - position: relative; |
224 | - top: -50%; |
225 | -} |
226 | -li.full-width { |
227 | - width: auto; |
228 | -} |
229 | -li div div.inline-block a img { |
230 | - text-indent: 0; |
231 | -} |
232 | -img { |
233 | - -ms-interpolation-mode: bicubic; |
234 | -} |
235 | |
236 | === removed file 'Development_files/DevelopmentMoz.css' |
237 | --- Development_files/DevelopmentMoz.css 2010-08-15 17:48:28 +0000 |
238 | +++ Development_files/DevelopmentMoz.css 1970-01-01 00:00:00 +0000 |
239 | @@ -1,6 +0,0 @@ |
240 | -.inline-block { |
241 | - display: -moz-inline-box; |
242 | - display: inline-block; |
243 | - vertical-align: baseline; |
244 | - margin-bottom:3px; |
245 | -} |
246 | |
247 | === removed file 'Development_files/shapeimage_1.jpg' |
248 | Binary files Development_files/shapeimage_1.jpg 2010-08-15 17:48:28 +0000 and Development_files/shapeimage_1.jpg 1970-01-01 00:00:00 +0000 differ |
249 | === removed file 'FAQ.html' |
250 | --- FAQ.html 2010-08-15 17:48:28 +0000 |
251 | +++ FAQ.html 1970-01-01 00:00:00 +0000 |
252 | @@ -1,79 +0,0 @@ |
253 | -<?xml version="1.0" encoding="UTF-8"?> |
254 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
255 | - |
256 | - |
257 | -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
258 | - <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
259 | - |
260 | - <meta name="Generator" content="iWeb 3.0.1" /> |
261 | - <meta name="iWeb-Build" content="local-build-20100815" /> |
262 | - <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> |
263 | - <meta name="viewport" content="width=700" /> |
264 | - <title>Text</title> |
265 | - <link rel="stylesheet" type="text/css" media="screen,print" href="FAQ_files/FAQ.css" /> |
266 | - <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='FAQ_files/FAQIE.css'/><![endif]--> |
267 | - <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]--> |
268 | - <script type="text/javascript" src="Scripts/iWebSite.js"></script> |
269 | - <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script> |
270 | - <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script> |
271 | - <script type="text/javascript" src="FAQ_files/FAQ.js"></script> |
272 | - </head> |
273 | - <body style="background: rgb(255, 255, 255); margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();"> |
274 | - <div style="text-align: center; "> |
275 | - <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; background: rgb(255, 255, 255); text-align: left; width: 700px; " id="body_content"> |
276 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer"> |
277 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
278 | - <div class="com-apple-iweb-widget-navbar flowDefining" id="widget0" style="margin-left: 35px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; "> |
279 | - |
280 | - <div id="widget0-navbar" class="navbar"> |
281 | - |
282 | - |
283 | - <div id="widget0-bg" class="navbar-bg"> |
284 | - |
285 | - |
286 | - <ul id="widget0-navbar-list" class="navbar-list"> |
287 | - <li></li> |
288 | -</ul> |
289 | - |
290 | - |
291 | -</div> |
292 | - |
293 | - |
294 | -</div> |
295 | - </div> |
296 | - <script type="text/javascript"><!--//--><![CDATA[//><!-- |
297 | -new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {"path-to-root": "", "navbar-css": ".navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #666;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:hover\r{\r\n \tcolor: #463C3C;\n\ttext-decoration: none;\r}\n\n\nli.current-page a\r{\r\t color: #463C3C;\n\ttext-decoration: none;\n\tfont-weight: bold;\r\r}\n", "current-page-GUID": "DC422DAE-6D36-4025-BBF7-E410FB2B8960", "isCollectionPage": "NO"}); |
298 | -//--><!]]></script> |
299 | - <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div> |
300 | - </div> |
301 | - <div style="height: 73px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer"> |
302 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
303 | - <div style="height: 1px; width: 630px; height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; " class="tinyText"> |
304 | - <div style="position: relative; width: 630px; "> |
305 | - <img src="FAQ_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; " /> |
306 | - </div> |
307 | - </div> |
308 | - |
309 | - |
310 | - |
311 | - <div id="id1" style="height: 50px; left: 35px; position: absolute; top: 23px; width: 630px; z-index: 1; " class="style_SkipStroke shape-with-text"> |
312 | - <div class="text-content style_External_630_50" style="padding: 0px; "> |
313 | - <div class="style"> |
314 | - <p style="padding-bottom: 0pt; padding-top: 0pt; " class="Header">Text</p> |
315 | - </div> |
316 | - </div> |
317 | - </div> |
318 | - </div> |
319 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer"> |
320 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
321 | - <div style="height: 480px; line-height: 480px; " class="spacer"> </div> |
322 | - </div> |
323 | - <div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer"> |
324 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
325 | - </div> |
326 | - </div> |
327 | - </div> |
328 | - </body> |
329 | -</html> |
330 | - |
331 | - |
332 | |
333 | === removed directory 'FAQ_files' |
334 | === removed file 'FAQ_files/FAQ.css' |
335 | --- FAQ_files/FAQ.css 2010-08-15 17:48:28 +0000 |
336 | +++ FAQ_files/FAQ.css 1970-01-01 00:00:00 +0000 |
337 | @@ -1,98 +0,0 @@ |
338 | -.style { |
339 | - padding: 4px; |
340 | -} |
341 | -.style_SkipStroke { |
342 | - background: transparent; |
343 | - opacity: 1.00; |
344 | -} |
345 | -.style_External_630_50 { |
346 | - position: relative; |
347 | -} |
348 | -.Header { |
349 | - color: rgb(167, 167, 167); |
350 | - font-family: 'Arial-BoldMT', 'Arial', sans-serif; |
351 | - font-size: 36px; |
352 | - font-stretch: normal; |
353 | - font-style: normal; |
354 | - font-variant: normal; |
355 | - font-weight: 700; |
356 | - letter-spacing: 0; |
357 | - line-height: 42px; |
358 | - margin-bottom: 0px; |
359 | - margin-left: 0px; |
360 | - margin-right: 0px; |
361 | - margin-top: 0px; |
362 | - opacity: 1.00; |
363 | - padding-bottom: 0px; |
364 | - padding-top: 0px; |
365 | - text-align: center; |
366 | - text-decoration: none; |
367 | - text-indent: 0px; |
368 | - text-transform: none; |
369 | -} |
370 | -.Normal_External_630_50 { |
371 | - position: relative; |
372 | -} |
373 | -.Normal { |
374 | - padding: 4px; |
375 | -} |
376 | -.graphic_generic_header_textbox_style_default_SkipStroke { |
377 | - background: transparent; |
378 | - opacity: 1.00; |
379 | -} |
380 | -.bumper { |
381 | - font-size: 1px; |
382 | - line-height: 1px; |
383 | -} |
384 | -#widget0 a:hover { |
385 | - color: rgb(0, 0, 0); |
386 | - text-decoration: underline; |
387 | -} |
388 | -#widget0 a:visited { |
389 | - color: rgb(121, 121, 121); |
390 | - text-decoration: underline; |
391 | -} |
392 | -#widget0 a { |
393 | - color: rgb(88, 77, 77); |
394 | - text-decoration: underline; |
395 | -} |
396 | -.spacer { |
397 | - font-size: 1px; |
398 | - line-height: 1px; |
399 | -} |
400 | -body { |
401 | - -webkit-text-size-adjust: none; |
402 | -} |
403 | -div { |
404 | - overflow: visible; |
405 | -} |
406 | -img { |
407 | - border: none; |
408 | -} |
409 | -.InlineBlock { |
410 | - display: inline; |
411 | -} |
412 | -.InlineBlock { |
413 | - display: inline-block; |
414 | -} |
415 | -.inline-block { |
416 | - display: inline-block; |
417 | - vertical-align: baseline; |
418 | - margin-bottom:0.3em; |
419 | -} |
420 | -.inline-block.shape-with-text { |
421 | - vertical-align: bottom; |
422 | -} |
423 | -.vertical-align-middle-middlebox { |
424 | - display: table; |
425 | -} |
426 | -.vertical-align-middle-innerbox { |
427 | - display: table-cell; |
428 | - vertical-align: middle; |
429 | -} |
430 | -div.paragraph { |
431 | - position: relative; |
432 | -} |
433 | -li.full-width { |
434 | - width: 100; |
435 | -} |
436 | |
437 | === removed file 'FAQ_files/FAQ.js' |
438 | --- FAQ_files/FAQ.js 2010-08-15 17:48:28 +0000 |
439 | +++ FAQ_files/FAQ.js 1970-01-01 00:00:00 +0000 |
440 | @@ -1,9 +0,0 @@ |
441 | -// Created by iWeb 3.0.1 local-build-20100815 |
442 | - |
443 | -setTransparentGifURL('Media/transparent.gif');function hostedOnDM() |
444 | -{return false;} |
445 | -function onPageLoad() |
446 | -{loadMozillaCSS('FAQ_files/FAQMoz.css') |
447 | -adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');Widget.onload();fixAllIEPNGs('Media/transparent.gif');performPostEffectsFixups()} |
448 | -function onPageUnload() |
449 | -{Widget.onunload();} |
450 | |
451 | === removed file 'FAQ_files/FAQIE.css' |
452 | --- FAQ_files/FAQIE.css 2010-08-15 17:48:28 +0000 |
453 | +++ FAQ_files/FAQIE.css 1970-01-01 00:00:00 +0000 |
454 | @@ -1,28 +0,0 @@ |
455 | -.inline-block { |
456 | - display: inline; |
457 | - vertical-align: baseline; |
458 | - margin-bottom:-2em; |
459 | - margin-top:2em; |
460 | - position:relative; |
461 | - top:-2em; |
462 | -} |
463 | -.vertical-align-middle-middlebox { |
464 | - display: block; |
465 | - height: auto; |
466 | - position: absolute; |
467 | - top: 50%; |
468 | -} |
469 | -.vertical-align-middle-innerbox { |
470 | - display: block; |
471 | - position: relative; |
472 | - top: -50%; |
473 | -} |
474 | -li.full-width { |
475 | - width: auto; |
476 | -} |
477 | -li div div.inline-block a img { |
478 | - text-indent: 0; |
479 | -} |
480 | -img { |
481 | - -ms-interpolation-mode: bicubic; |
482 | -} |
483 | |
484 | === removed file 'FAQ_files/FAQMoz.css' |
485 | --- FAQ_files/FAQMoz.css 2010-08-15 17:48:28 +0000 |
486 | +++ FAQ_files/FAQMoz.css 1970-01-01 00:00:00 +0000 |
487 | @@ -1,6 +0,0 @@ |
488 | -.inline-block { |
489 | - display: -moz-inline-box; |
490 | - display: inline-block; |
491 | - vertical-align: baseline; |
492 | - margin-bottom:3px; |
493 | -} |
494 | |
495 | === removed file 'FAQ_files/shapeimage_1.jpg' |
496 | Binary files FAQ_files/shapeimage_1.jpg 2010-08-15 17:48:28 +0000 and FAQ_files/shapeimage_1.jpg 1970-01-01 00:00:00 +0000 differ |
497 | === modified file 'Home.html' |
498 | --- Home.html 2011-02-09 02:21:52 +0000 |
499 | +++ Home.html 2011-02-13 12:17:04 +0000 |
500 | @@ -1,7 +1,6 @@ |
501 | <?xml version="1.0" encoding="UTF-8"?> |
502 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
503 | |
504 | - |
505 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
506 | <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
507 | <link rel="shortcut icon" href="Home_files/drizzle.ico" /> |
508 | @@ -11,24 +10,27 @@ |
509 | <meta name="viewport" content="width=800" /> |
510 | <meta name="description" content="Drizzle - Lightweight database for Web applications and Cloud infrastructure" /> |
511 | <meta name="keywords" content="drizzle, database, sql, opensource, cloud, web applications" /> |
512 | - |
513 | - |
514 | - <title>Drizzle</title> |
515 | - <link rel="stylesheet" type="text/css" media="screen,print" href="Home_files/Home.css" /> |
516 | - <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Home_files/HomeIE.css'/><![endif]--> |
517 | - <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]--> |
518 | - <script type="text/javascript" src="Scripts/iWebSite.js"></script> |
519 | - <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script> |
520 | - <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script> |
521 | - <script type="text/javascript" src="Scripts/iWebImage.js"></script> |
522 | - <script type="text/javascript" src="Home_files/Home.js"></script> |
523 | + <title>Drizzle - A database for the cloud</title> |
524 | + <link rel="stylesheet" type="text/css" media="screen,print" href="Home_files/Home_1.1.css" /> |
525 | +<script type="text/javascript"> |
526 | + var _gaq = _gaq || []; |
527 | + _gaq.push(['_setAccount', 'UA-5311589-4']); |
528 | + _gaq.push(['_setDomainName', '.drizzle.org']); |
529 | + _gaq.push(['_trackPageview']); |
530 | + |
531 | + (function() { |
532 | + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
533 | + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
534 | + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
535 | + })(); |
536 | +</script> |
537 | </head> |
538 | - <body style="background: rgb(255, 255, 255); margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();"> |
539 | + <body style="background: rgb(255, 255, 255); margin: 0pt; "> |
540 | <div style="text-align: center; "> |
541 | <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; background: rgb(255, 255, 255); text-align: left; width: 800px; " id="body_content"> |
542 | <div style="margin-left: 0px; position: relative; width: 800px; z-index: 0; " id="nav_layer"> |
543 | <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
544 | - <div class="com-apple-iweb-widget-navbar flowDefining" id="widget0" style="margin-left: 85px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; "> |
545 | + <div class="flowDefining" id="widget0" style="margin-left: 85px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; "> |
546 | |
547 | <div id="widget0-navbar" class="navbar"> |
548 | |
549 | @@ -37,7 +39,12 @@ |
550 | |
551 | |
552 | <ul id="widget0-navbar-list" class="navbar-list"> |
553 | - <li></li> |
554 | + <li><a href="http://docs.drizzle.org/" title="Documentation">Documentation</a></li> |
555 | + <li><a href="http://launchpad.net/drizzle" title="Development">Development</a></li> |
556 | + <li><a href="http://planetdrizzle.org" title="Blogs">Blogs</a></li> |
557 | + <li><a href="http://wiki.drizzle.org" title="Wiki">Wiki</a></li> |
558 | + <li><a href="http://wiki.drizzle.org/FAQ/" title="FAQ">FAQ</a></li> |
559 | + <li><a href="http://twitter.com/DrizzleDB" title="Twitter">Twitter</a></li> |
560 | </ul> |
561 | |
562 | |
563 | @@ -46,9 +53,6 @@ |
564 | |
565 | </div> |
566 | </div> |
567 | - <script type="text/javascript"><!--//--><![CDATA[//><!-- |
568 | -new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {"path-to-root": "", "navbar-css": ".navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #666;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:hover\r{\r\n \tcolor: #463C3C;\n\ttext-decoration: none;\r}\n\n\nli.current-page a\r{\r\t color: #463C3C;\n\ttext-decoration: none;\n\tfont-weight: bold;\r\r}\n\n", "current-page-GUID": "52CF7D80-C54B-4DCF-A2E0-ED1AD4743119", "isCollectionPage": "NO"}); |
569 | -//--><!]]></script> |
570 | <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div> |
571 | </div> |
572 | <div style="height: 140px; margin-left: 0px; position: relative; width: 800px; z-index: 10; " id="header_layer"> |
573 | @@ -77,7 +81,7 @@ |
574 | |
575 | |
576 | <div style="height: 107px; width: 296px; height: 107px; left: 62px; position: absolute; top: 26px; width: 124px; z-index: 1; " class="tinyText style_SkipStroke_1 stroke_0"> |
577 | - <a href="http://www.drizzle.org/"><img src="Home_files/drizzle.png" alt="Drizzle" style="border: none; height: 107px; width: 296px; " /></a> |
578 | + <h1 style="margin: 0px; padding: 0px;"><a href="http://www.drizzle.org/" title="Drizzle"><img src="Home_files/drizzle.png" alt="Drizzle" style="border: none; height: 107px; width: 296px; " /></a></h1> |
579 | </div> |
580 | </div> |
581 | |
582 | @@ -86,7 +90,7 @@ |
583 | <div id="id3" style="height: 44px; margin-left: auto; margin-right: auto; margin-top: 11px; margin-bottom: 11px; width: 702px; z-index: 1; -moz-border-radius: 15px; border-radius: 15px; " class="style_SkipStroke_3 shape-with-text"> |
584 | <div class="text-content style_External_702_44 vertical-align-middle-middlebox" style="padding: 0px; "> |
585 | <div class="style vertical-align-middle-innerbox"> |
586 | - <p style="padding-bottom: 0pt; padding-top: 0pt; " class="paragraph_style_6">Overview</p> |
587 | + <h2 style="padding-bottom: 0pt; padding-top: 0pt; " class="paragraph_style_6">Overview</h2> |
588 | </div> |
589 | </div> |
590 | </div> |
591 | @@ -99,10 +103,10 @@ |
592 | <p style="padding-top: 0pt; " class="paragraph_style_1">Drizzle is a community-driven open source project that is forked from the popular MySQL database. <br /></p> |
593 | <p class="paragraph_style_1"><br /></p> |
594 | <p class="paragraph_style_1">The Drizzle team has removed non-essential code, re-factored the remaining code and modernized the code base moving to C++.<br /></p><br /> |
595 | - <p class="paragraph_style_2">Drizzle Developer Day 2011 - April 15th - <a href="https://spreadsheets.google.com/viewform?formkey=dEcwZnNlQ2dqRTB2bWJkVWxJUlRiWlE6MQ">Sign up here</a><br /></p> |
596 | - <p class="paragraph_style_2"><a href="https://spreadsheets.google.com/ccc?key=0AvgIZQGYvj2GdEcwZnNlQ2dqRTB2bWJkVWxJUlRiWlE&hl=en&authkey=CPjcl4kD">See who is attending</a><br /></p> |
597 | + <p class="paragraph_style_2">Drizzle Developer Day 2011 - April 15th - <a href="https://spreadsheets.google.com/viewform?formkey=dEcwZnNlQ2dqRTB2bWJkVWxJUlRiWlE6MQ" title="Drizzle developer day signup">Sign up here</a><br /></p> |
598 | + <p class="paragraph_style_2"><a href="https://spreadsheets.google.com/ccc?key=0AvgIZQGYvj2GdEcwZnNlQ2dqRTB2bWJkVWxJUlRiWlE&hl=en&authkey=CPjcl4kD" title="Drizzle developer day attendee list">See who is attending</a><br /></p> |
599 | <p class="paragraph_style_1"><br /></p> |
600 | - <p class="paragraph_style_2">Charter<br /></p> |
601 | + <h3 class="paragraph_style_2">Charter<br /></h3> |
602 | <ol> |
603 | <li style="line-height: 22px; margin-top: -1px; padding-left: 0px; text-indent: 0px; " class="full-width"> |
604 | <p style="text-indent: 0px; " class="paragraph_style_3"><span style="position: relative; top: 2px; " class="Bullet"><img src="Home_files/rain-drop.gif" alt="Bullet" style="height: 16px; width: 16px; " /></span> A database optimized for Cloud infrastructure and Web applications<br /></p> |
605 | @@ -118,7 +122,7 @@ |
606 | </li> |
607 | </ol> |
608 | <p class="paragraph_style_4"><br /></p> |
609 | - <p class="paragraph_style_5">Scope<br /></p> |
610 | + <h3 class="paragraph_style_5">Scope<br /></h3> |
611 | <ol> |
612 | <li style="line-height: 22px; margin-top: -1px; padding-left: 0px; text-indent: 0px; " class="full-width"> |
613 | <p style="text-indent: 0px; " class="paragraph_style_3"><span style="position: relative; top: 2px; " class="Bullet"><img src="Home_files/rain-drop.gif" alt="Bullet" style="height: 16px; width: 16px; " /></span> Re-designed modular architecture providing plugins with defined APIs<br /></p> |
614 | @@ -183,7 +187,7 @@ |
615 | <div id="id4" style="height: 44px; margin-left: auto; margin-right: auto; margin-top: 11px; margin-bottom: 11px; clear: both; width: 703px; z-index: 1; -moz-border-radius: 15px; border-radius: 15px; " class="style_SkipStroke_3 shape-with-text"> |
616 | <div class="text-content style_External_703_44 vertical-align-middle-middlebox" style="padding: 0px; "> |
617 | <div class="style vertical-align-middle-innerbox"> |
618 | - <p style="padding-bottom: 0pt; padding-top: 0pt; " class="paragraph_style_6">Learn More</p> |
619 | + <h2 style="padding-bottom: 0pt; padding-top: 0pt; " class="paragraph_style_6">Learn More</h2> |
620 | </div> |
621 | </div> |
622 | </div> |
623 | @@ -193,7 +197,7 @@ |
624 | <div id="id5" style="height: 156px; float:left; width: 266px; z-index: 1; " class="style_SkipStroke_2 shape-with-text"> |
625 | <div class="text-content graphic_textbox_layout_style_default_External_215_156" style="padding: 0px; "> |
626 | <div class="graphic_textbox_layout_style_default"> |
627 | - <p style="padding-top: 0pt; " class="paragraph_style_7">Mailing Lists<br /></p> |
628 | + <h3 style="padding-top: 0pt; " class="paragraph_style_7">Mailing Lists<br /></h3> |
629 | <ol> |
630 | <li style="line-height: 21px; padding-left: 9px; text-indent: -9px; " class="full-width"> |
631 | <p style="text-indent: -9px; " class="paragraph_style_8"><span style="color: rgb(0, 0, 0); font-size: 14px; opacity: 1.00; " class="Bullet">•</span><span style="width: 4px; " class="inline-block"></span>Discussion: <a onclick="window.open(this.href); return false;" title="https://launchpad.net/~drizzle-discuss/" href="https://launchpad.net/~drizzle-discuss/" onkeypress="window.open(this.href); return false;" style="line-height: 18px; " class="style_1">Subscribe</a><span style="line-height: 18px; " class="style_1"> - </span><a onclick="window.open(this.href); return false;" title="https://lists.launchpad.net/drizzle-discuss/" href="https://lists.launchpad.net/drizzle-discuss/" onkeypress="window.open(this.href); return false;" style="line-height: 18px; " class="style_1">Archive</a></p> |
632 | @@ -218,7 +222,7 @@ |
633 | <div id="id6" style="height: 159px; float: left; width: 266px; z-index: 1; " class="style_SkipStroke_2 shape-with-text"> |
634 | <div class="text-content graphic_textbox_layout_style_default_External_215_159" style="padding: 0px; "> |
635 | <div class="graphic_textbox_layout_style_default"> |
636 | - <p style="padding-top: 0pt; " class="paragraph_style_7">On the Web<br /></p> |
637 | + <h3 style="padding-top: 0pt; " class="paragraph_style_7">On the Web<br /></h3> |
638 | <ol> |
639 | <li style="line-height: 21px; padding-left: 9px; text-indent: -9px; " class="full-width"> |
640 | <p style="text-indent: -9px; " class="paragraph_style_8"><span style="color: rgb(0, 0, 0); font-size: 14px; opacity: 1.00; " class="Bullet">•</span><span style="width: 4px; " class="inline-block"></span><a onclick="window.open(this.href); return false;" title="http://wiki.drizzle.org/Compiling" href="http://wiki.drizzle.org/Compiling" onkeypress="window.open(this.href); return false;">Getting Started</a><br /></p> |
641 | @@ -245,7 +249,7 @@ |
642 | <div id="id7" style="height: 185px; float: left; width: 266px; z-index: 1; " class="style_SkipStroke_2 shape-with-text"> |
643 | <div class="text-content graphic_textbox_layout_style_default_External_215_185" style="padding: 0px; "> |
644 | <div class="graphic_textbox_layout_style_default"> |
645 | - <p style="padding-top: 0pt; " class="paragraph_style_7">Chat<br /></p> |
646 | + <h3 style="padding-top: 0pt; " class="paragraph_style_7">Chat<br /></h3> |
647 | <p class="paragraph_style_10" style="text-align: justify;">Many of the Drizzle developers and community members hang out in the <a href="irc://irc.freenode.net/drizzle">#drizzle channel</a> on <a onclick="window.open(this.href); return false;" title="http://freenode.net" href="http://freenode.net" onkeypress="window.open(this.href); return false;">irc.freenode.net</a><br /></p> |
648 | <p class="paragraph_style_10"><br /></p> |
649 | <p style="padding-bottom: 0pt; text-align: justify;" class="paragraph_style_10">If you are new to IRC and don’t have a client, you can use a <a onclick="window.open(this.href); return false;" title="http://webchat.freenode.net/?channels=#drizzle" href="http://webchat.freenode.net/?channels=#drizzle" onkeypress="window.open(this.href); return false;">web-based client </a></p> |
650 | |
651 | === removed file 'Home_files/Home.js' |
652 | --- Home_files/Home.js 2010-08-16 03:32:24 +0000 |
653 | +++ Home_files/Home.js 1970-01-01 00:00:00 +0000 |
654 | @@ -1,11 +0,0 @@ |
655 | -// Created by iWeb 3.0.1 local-build-20100815 |
656 | - |
657 | -setTransparentGifURL('Media/transparent.gif');function applyEffects() |
658 | -{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWEmptyStroke(),stroke_1:new IWStrokeParts([{rect:new IWRect(-2,2,4,195),url:'Home_files/stroke.png'},{rect:new IWRect(-2,-2,4,4),url:'Home_files/stroke_1.png'},{rect:new IWRect(2,-2,158,4),url:'Home_files/stroke_2.png'},{rect:new IWRect(160,-2,4,4),url:'Home_files/stroke_3.png'},{rect:new IWRect(160,2,4,195),url:'Home_files/stroke_4.png'},{rect:new IWRect(160,197,4,4),url:'Home_files/stroke_5.png'},{rect:new IWRect(2,197,158,4),url:'Home_files/stroke_6.png'},{rect:new IWRect(-2,197,4,4),url:'Home_files/stroke_7.png'}],new IWSize(162,199))});registry.applyEffects();} |
659 | -function hostedOnDM() |
660 | -{return false;} |
661 | -function onPageLoad() |
662 | -{loadMozillaCSS('Home_files/HomeMoz.css') |
663 | -adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');adjustLineHeightIfTooBig('id3');adjustFontSizeIfTooBig('id3');adjustLineHeightIfTooBig('id4');adjustFontSizeIfTooBig('id4');adjustLineHeightIfTooBig('id5');adjustFontSizeIfTooBig('id5');adjustLineHeightIfTooBig('id6');adjustFontSizeIfTooBig('id6');adjustLineHeightIfTooBig('id7');adjustFontSizeIfTooBig('id7');adjustLineHeightIfTooBig('id8');adjustFontSizeIfTooBig('id8');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('Media/transparent.gif');IMpreload('Home_files','shapeimage_1','0');applyEffects()} |
664 | -function onPageUnload() |
665 | -{Widget.onunload();} |
666 | |
667 | === removed file 'Home_files/HomeIE.css' |
668 | --- Home_files/HomeIE.css 2010-08-15 21:50:31 +0000 |
669 | +++ Home_files/HomeIE.css 1970-01-01 00:00:00 +0000 |
670 | @@ -1,46 +0,0 @@ |
671 | -.style_External_330_123.vertical-align-middle-middlebox { |
672 | - display: block; |
673 | - height: auto; |
674 | - position: absolute; |
675 | - top: 50%; |
676 | -} |
677 | -.style_External_702_44.vertical-align-middle-middlebox { |
678 | - display: block; |
679 | - height: auto; |
680 | - position: absolute; |
681 | - top: 50%; |
682 | -} |
683 | -.style_External_703_44.vertical-align-middle-middlebox { |
684 | - display: block; |
685 | - height: auto; |
686 | - position: absolute; |
687 | - top: 50%; |
688 | -} |
689 | -.inline-block { |
690 | - display: inline; |
691 | - vertical-align: baseline; |
692 | - margin-bottom:-2em; |
693 | - margin-top:2em; |
694 | - position:relative; |
695 | - top:-2em; |
696 | -} |
697 | -.vertical-align-middle-middlebox { |
698 | - display: block; |
699 | - height: auto; |
700 | - position: absolute; |
701 | - top: 50%; |
702 | -} |
703 | -.vertical-align-middle-innerbox { |
704 | - display: block; |
705 | - position: relative; |
706 | - top: -50%; |
707 | -} |
708 | -li.full-width { |
709 | - width: auto; |
710 | -} |
711 | -li div div.inline-block a img { |
712 | - text-indent: 0; |
713 | -} |
714 | -img { |
715 | - -ms-interpolation-mode: bicubic; |
716 | -} |
717 | |
718 | === removed file 'Home_files/HomeMoz.css' |
719 | --- Home_files/HomeMoz.css 2010-08-15 17:48:28 +0000 |
720 | +++ Home_files/HomeMoz.css 1970-01-01 00:00:00 +0000 |
721 | @@ -1,6 +0,0 @@ |
722 | -.inline-block { |
723 | - display: -moz-inline-box; |
724 | - display: inline-block; |
725 | - vertical-align: baseline; |
726 | - margin-bottom:3px; |
727 | -} |
728 | |
729 | === renamed file 'Home_files/Home.css' => 'Home_files/Home_1.1.css' |
730 | --- Home_files/Home.css 2011-01-20 18:14:43 +0000 |
731 | +++ Home_files/Home_1.1.css 2011-02-13 12:17:04 +0000 |
732 | @@ -40,7 +40,7 @@ |
733 | opacity: 1.00; |
734 | padding-bottom: 0px; |
735 | padding-top: 0px; |
736 | - text-align: left; |
737 | + text-align: justify; |
738 | text-decoration: none; |
739 | text-indent: 0px; |
740 | text-transform: none; |
741 | @@ -490,43 +490,40 @@ |
742 | width: 100; |
743 | } |
744 | |
745 | +div#widget0 .navbar { |
746 | + margin: 9px 0px 6px 0px; |
747 | + line-height: 30px; |
748 | +} |
749 | + |
750 | +div#widget0 .navbar-bg { |
751 | + text-align: center; |
752 | +} |
753 | + |
754 | +div#widget0 ul { |
755 | + list-style: none; |
756 | + margin: 0px; |
757 | + padding: 0px; |
758 | +} |
759 | + |
760 | +div#widget0 li { |
761 | + list-style-type: none; |
762 | + display: inline; |
763 | + padding: 0px 10px 0px 10px; |
764 | + font-family: Arial, sans-serif; |
765 | + font-size: 1em; |
766 | + color: #666; |
767 | + line-height: 30px; |
768 | +} |
769 | + |
770 | +div#widget0 li a { |
771 | + text-decoration: none; |
772 | + color: #666; |
773 | +} |
774 | + |
775 | h1 { |
776 | - color: #666; |
777 | - font-family: 'ArialMT', 'Arial', sans-serif; |
778 | - font-size: 45px; |
779 | - font-stretch: normal; |
780 | - font-style: normal; |
781 | - font-variant: normal; |
782 | - font-weight: bold; |
783 | - letter-spacing: 0; |
784 | - line-height: 47px; |
785 | - position: absolute; |
786 | - top: 50%; |
787 | margin-bottom: 0px; |
788 | - margin-left: 30px; |
789 | + margin-left: 0px; |
790 | margin-right: 0px; |
791 | - margin-top: -23px; |
792 | - opacity: 1.00; |
793 | - padding-bottom: 0px; |
794 | - padding-top: 0px; |
795 | - text-align: left; |
796 | - text-decoration: none; |
797 | - text-indent: 0px; |
798 | - text-transform: none; |
799 | -} |
800 | - |
801 | -h1 a |
802 | -{ |
803 | - text-decoration: none; |
804 | -} |
805 | -h1 a:visited { |
806 | - text-decoration: none; |
807 | - color: #666; |
808 | -} |
809 | - |
810 | -h1 a:hover |
811 | -{ |
812 | - color: #463C3C; |
813 | - text-decoration: none; |
814 | -} |
815 | - |
816 | + margin-top: 0px; |
817 | + padding: 0px; |
818 | +} |
819 | |
820 | === removed file 'Home_files/bullet_nb_box-blue_check.png' |
821 | Binary files Home_files/bullet_nb_box-blue_check.png 2010-08-15 17:48:28 +0000 and Home_files/bullet_nb_box-blue_check.png 1970-01-01 00:00:00 +0000 differ |
822 | === modified file 'Home_files/drizzle.ico' |
823 | Binary files Home_files/drizzle.ico 2011-01-19 10:41:09 +0000 and Home_files/drizzle.ico 2011-02-13 12:17:04 +0000 differ |
824 | === removed file 'Home_files/shapeimage_1.png' |
825 | Binary files Home_files/shapeimage_1.png 2010-08-16 03:32:24 +0000 and Home_files/shapeimage_1.png 1970-01-01 00:00:00 +0000 differ |
826 | === removed file 'Home_files/shapeimage_1_link_0.png' |
827 | Binary files Home_files/shapeimage_1_link_0.png 2010-08-16 03:32:24 +0000 and Home_files/shapeimage_1_link_0.png 1970-01-01 00:00:00 +0000 differ |
828 | === removed file 'Home_files/shapeimage_1_rollover_0.png' |
829 | Binary files Home_files/shapeimage_1_rollover_0.png 2010-08-16 03:32:24 +0000 and Home_files/shapeimage_1_rollover_0.png 1970-01-01 00:00:00 +0000 differ |
830 | === removed file 'Home_files/shapeimage_3.png' |
831 | Binary files Home_files/shapeimage_3.png 2010-08-15 17:48:28 +0000 and Home_files/shapeimage_3.png 1970-01-01 00:00:00 +0000 differ |
832 | === removed file 'License.html' |
833 | --- License.html 2010-08-15 17:48:28 +0000 |
834 | +++ License.html 1970-01-01 00:00:00 +0000 |
835 | @@ -1,79 +0,0 @@ |
836 | -<?xml version="1.0" encoding="UTF-8"?> |
837 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
838 | - |
839 | - |
840 | -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
841 | - <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
842 | - |
843 | - <meta name="Generator" content="iWeb 3.0.1" /> |
844 | - <meta name="iWeb-Build" content="local-build-20100815" /> |
845 | - <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> |
846 | - <meta name="viewport" content="width=700" /> |
847 | - <title>Text</title> |
848 | - <link rel="stylesheet" type="text/css" media="screen,print" href="License_files/License.css" /> |
849 | - <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='License_files/LicenseIE.css'/><![endif]--> |
850 | - <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]--> |
851 | - <script type="text/javascript" src="Scripts/iWebSite.js"></script> |
852 | - <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script> |
853 | - <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script> |
854 | - <script type="text/javascript" src="License_files/License.js"></script> |
855 | - </head> |
856 | - <body style="background: rgb(255, 255, 255); margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();"> |
857 | - <div style="text-align: center; "> |
858 | - <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; background: rgb(255, 255, 255); text-align: left; width: 700px; " id="body_content"> |
859 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer"> |
860 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
861 | - <div class="com-apple-iweb-widget-navbar flowDefining" id="widget0" style="margin-left: 35px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; "> |
862 | - |
863 | - <div id="widget0-navbar" class="navbar"> |
864 | - |
865 | - |
866 | - <div id="widget0-bg" class="navbar-bg"> |
867 | - |
868 | - |
869 | - <ul id="widget0-navbar-list" class="navbar-list"> |
870 | - <li></li> |
871 | -</ul> |
872 | - |
873 | - |
874 | -</div> |
875 | - |
876 | - |
877 | -</div> |
878 | - </div> |
879 | - <script type="text/javascript"><!--//--><![CDATA[//><!-- |
880 | -new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {"path-to-root": "", "navbar-css": ".navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #666;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:hover\r{\r\n \tcolor: #463C3C;\n\ttext-decoration: none;\r}\n\n\nli.current-page a\r{\r\t color: #463C3C;\n\ttext-decoration: none;\n\tfont-weight: bold;\r\r}\n", "current-page-GUID": "66278E1F-EA35-49A3-9B55-10BE3C7ADF64", "isCollectionPage": "NO"}); |
881 | -//--><!]]></script> |
882 | - <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div> |
883 | - </div> |
884 | - <div style="height: 73px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer"> |
885 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
886 | - <div style="height: 1px; width: 630px; height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; " class="tinyText"> |
887 | - <div style="position: relative; width: 630px; "> |
888 | - <img src="License_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; " /> |
889 | - </div> |
890 | - </div> |
891 | - |
892 | - |
893 | - |
894 | - <div id="id1" style="height: 50px; left: 35px; position: absolute; top: 23px; width: 630px; z-index: 1; " class="style_SkipStroke shape-with-text"> |
895 | - <div class="text-content style_External_630_50" style="padding: 0px; "> |
896 | - <div class="style"> |
897 | - <p style="padding-bottom: 0pt; padding-top: 0pt; " class="Header">Text</p> |
898 | - </div> |
899 | - </div> |
900 | - </div> |
901 | - </div> |
902 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer"> |
903 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
904 | - <div style="height: 480px; line-height: 480px; " class="spacer"> </div> |
905 | - </div> |
906 | - <div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer"> |
907 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
908 | - </div> |
909 | - </div> |
910 | - </div> |
911 | - </body> |
912 | -</html> |
913 | - |
914 | - |
915 | |
916 | === removed directory 'License_files' |
917 | === removed file 'License_files/License.css' |
918 | --- License_files/License.css 2010-08-15 17:48:28 +0000 |
919 | +++ License_files/License.css 1970-01-01 00:00:00 +0000 |
920 | @@ -1,98 +0,0 @@ |
921 | -.style { |
922 | - padding: 4px; |
923 | -} |
924 | -.style_SkipStroke { |
925 | - background: transparent; |
926 | - opacity: 1.00; |
927 | -} |
928 | -.style_External_630_50 { |
929 | - position: relative; |
930 | -} |
931 | -.Header { |
932 | - color: rgb(167, 167, 167); |
933 | - font-family: 'Arial-BoldMT', 'Arial', sans-serif; |
934 | - font-size: 36px; |
935 | - font-stretch: normal; |
936 | - font-style: normal; |
937 | - font-variant: normal; |
938 | - font-weight: 700; |
939 | - letter-spacing: 0; |
940 | - line-height: 42px; |
941 | - margin-bottom: 0px; |
942 | - margin-left: 0px; |
943 | - margin-right: 0px; |
944 | - margin-top: 0px; |
945 | - opacity: 1.00; |
946 | - padding-bottom: 0px; |
947 | - padding-top: 0px; |
948 | - text-align: center; |
949 | - text-decoration: none; |
950 | - text-indent: 0px; |
951 | - text-transform: none; |
952 | -} |
953 | -.Normal_External_630_50 { |
954 | - position: relative; |
955 | -} |
956 | -.Normal { |
957 | - padding: 4px; |
958 | -} |
959 | -.graphic_generic_header_textbox_style_default_SkipStroke { |
960 | - background: transparent; |
961 | - opacity: 1.00; |
962 | -} |
963 | -.bumper { |
964 | - font-size: 1px; |
965 | - line-height: 1px; |
966 | -} |
967 | -#widget0 a:hover { |
968 | - color: rgb(0, 0, 0); |
969 | - text-decoration: underline; |
970 | -} |
971 | -#widget0 a:visited { |
972 | - color: rgb(121, 121, 121); |
973 | - text-decoration: underline; |
974 | -} |
975 | -#widget0 a { |
976 | - color: rgb(88, 77, 77); |
977 | - text-decoration: underline; |
978 | -} |
979 | -.spacer { |
980 | - font-size: 1px; |
981 | - line-height: 1px; |
982 | -} |
983 | -body { |
984 | - -webkit-text-size-adjust: none; |
985 | -} |
986 | -div { |
987 | - overflow: visible; |
988 | -} |
989 | -img { |
990 | - border: none; |
991 | -} |
992 | -.InlineBlock { |
993 | - display: inline; |
994 | -} |
995 | -.InlineBlock { |
996 | - display: inline-block; |
997 | -} |
998 | -.inline-block { |
999 | - display: inline-block; |
1000 | - vertical-align: baseline; |
1001 | - margin-bottom:0.3em; |
1002 | -} |
1003 | -.inline-block.shape-with-text { |
1004 | - vertical-align: bottom; |
1005 | -} |
1006 | -.vertical-align-middle-middlebox { |
1007 | - display: table; |
1008 | -} |
1009 | -.vertical-align-middle-innerbox { |
1010 | - display: table-cell; |
1011 | - vertical-align: middle; |
1012 | -} |
1013 | -div.paragraph { |
1014 | - position: relative; |
1015 | -} |
1016 | -li.full-width { |
1017 | - width: 100; |
1018 | -} |
1019 | |
1020 | === removed file 'License_files/License.js' |
1021 | --- License_files/License.js 2010-08-15 17:48:28 +0000 |
1022 | +++ License_files/License.js 1970-01-01 00:00:00 +0000 |
1023 | @@ -1,9 +0,0 @@ |
1024 | -// Created by iWeb 3.0.1 local-build-20100815 |
1025 | - |
1026 | -setTransparentGifURL('Media/transparent.gif');function hostedOnDM() |
1027 | -{return false;} |
1028 | -function onPageLoad() |
1029 | -{loadMozillaCSS('License_files/LicenseMoz.css') |
1030 | -adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');Widget.onload();fixAllIEPNGs('Media/transparent.gif');performPostEffectsFixups()} |
1031 | -function onPageUnload() |
1032 | -{Widget.onunload();} |
1033 | |
1034 | === removed file 'License_files/LicenseIE.css' |
1035 | --- License_files/LicenseIE.css 2010-08-15 17:48:28 +0000 |
1036 | +++ License_files/LicenseIE.css 1970-01-01 00:00:00 +0000 |
1037 | @@ -1,28 +0,0 @@ |
1038 | -.inline-block { |
1039 | - display: inline; |
1040 | - vertical-align: baseline; |
1041 | - margin-bottom:-2em; |
1042 | - margin-top:2em; |
1043 | - position:relative; |
1044 | - top:-2em; |
1045 | -} |
1046 | -.vertical-align-middle-middlebox { |
1047 | - display: block; |
1048 | - height: auto; |
1049 | - position: absolute; |
1050 | - top: 50%; |
1051 | -} |
1052 | -.vertical-align-middle-innerbox { |
1053 | - display: block; |
1054 | - position: relative; |
1055 | - top: -50%; |
1056 | -} |
1057 | -li.full-width { |
1058 | - width: auto; |
1059 | -} |
1060 | -li div div.inline-block a img { |
1061 | - text-indent: 0; |
1062 | -} |
1063 | -img { |
1064 | - -ms-interpolation-mode: bicubic; |
1065 | -} |
1066 | |
1067 | === removed file 'License_files/LicenseMoz.css' |
1068 | --- License_files/LicenseMoz.css 2010-08-15 17:48:28 +0000 |
1069 | +++ License_files/LicenseMoz.css 1970-01-01 00:00:00 +0000 |
1070 | @@ -1,6 +0,0 @@ |
1071 | -.inline-block { |
1072 | - display: -moz-inline-box; |
1073 | - display: inline-block; |
1074 | - vertical-align: baseline; |
1075 | - margin-bottom:3px; |
1076 | -} |
1077 | |
1078 | === removed file 'License_files/shapeimage_1.jpg' |
1079 | Binary files License_files/shapeimage_1.jpg 2010-08-15 17:48:28 +0000 and License_files/shapeimage_1.jpg 1970-01-01 00:00:00 +0000 differ |
1080 | === removed directory 'Media' |
1081 | === removed file 'Media/IE8.css' |
1082 | --- Media/IE8.css 2010-08-15 17:48:28 +0000 |
1083 | +++ Media/IE8.css 1970-01-01 00:00:00 +0000 |
1084 | @@ -1,13 +0,0 @@ |
1085 | -.inline-block { |
1086 | - display: inline-block; |
1087 | - vertical-align: baseline; |
1088 | -} |
1089 | -li.full-width { |
1090 | - width: auto; |
1091 | -} |
1092 | -li div div.inline-block a img { |
1093 | - text-indent: 0; |
1094 | -} |
1095 | -img { |
1096 | - -ms-interpolation-mode: bicubic; |
1097 | -} |
1098 | |
1099 | === removed file 'Media/transparent.gif' |
1100 | Binary files Media/transparent.gif 2010-08-15 17:48:28 +0000 and Media/transparent.gif 1970-01-01 00:00:00 +0000 differ |
1101 | === removed file 'Planet_Drizzle.html' |
1102 | --- Planet_Drizzle.html 2010-08-15 17:48:28 +0000 |
1103 | +++ Planet_Drizzle.html 1970-01-01 00:00:00 +0000 |
1104 | @@ -1,79 +0,0 @@ |
1105 | -<?xml version="1.0" encoding="UTF-8"?> |
1106 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
1107 | - |
1108 | - |
1109 | -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
1110 | - <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
1111 | - |
1112 | - <meta name="Generator" content="iWeb 3.0.1" /> |
1113 | - <meta name="iWeb-Build" content="local-build-20100815" /> |
1114 | - <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> |
1115 | - <meta name="viewport" content="width=700" /> |
1116 | - <title>Text</title> |
1117 | - <link rel="stylesheet" type="text/css" media="screen,print" href="Planet_Drizzle_files/Planet_Drizzle.css" /> |
1118 | - <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Planet_Drizzle_files/Planet_DrizzleIE.css'/><![endif]--> |
1119 | - <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]--> |
1120 | - <script type="text/javascript" src="Scripts/iWebSite.js"></script> |
1121 | - <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script> |
1122 | - <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script> |
1123 | - <script type="text/javascript" src="Planet_Drizzle_files/Planet_Drizzle.js"></script> |
1124 | - </head> |
1125 | - <body style="background: rgb(255, 255, 255); margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();"> |
1126 | - <div style="text-align: center; "> |
1127 | - <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; background: rgb(255, 255, 255); text-align: left; width: 700px; " id="body_content"> |
1128 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer"> |
1129 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
1130 | - <div class="com-apple-iweb-widget-navbar flowDefining" id="widget0" style="margin-left: 35px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; "> |
1131 | - |
1132 | - <div id="widget0-navbar" class="navbar"> |
1133 | - |
1134 | - |
1135 | - <div id="widget0-bg" class="navbar-bg"> |
1136 | - |
1137 | - |
1138 | - <ul id="widget0-navbar-list" class="navbar-list"> |
1139 | - <li></li> |
1140 | -</ul> |
1141 | - |
1142 | - |
1143 | -</div> |
1144 | - |
1145 | - |
1146 | -</div> |
1147 | - </div> |
1148 | - <script type="text/javascript"><!--//--><![CDATA[//><!-- |
1149 | -new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {"path-to-root": "", "navbar-css": ".navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #666;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:hover\r{\r\n \tcolor: #463C3C;\n\ttext-decoration: none;\r}\n\n\nli.current-page a\r{\r\t color: #463C3C;\n\ttext-decoration: none;\n\tfont-weight: bold;\r\r}\n", "current-page-GUID": "2F5EF0CA-5C3B-4396-A85D-1BE1D6D665F1", "isCollectionPage": "NO"}); |
1150 | -//--><!]]></script> |
1151 | - <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div> |
1152 | - </div> |
1153 | - <div style="height: 73px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer"> |
1154 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
1155 | - <div style="height: 1px; width: 630px; height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; " class="tinyText"> |
1156 | - <div style="position: relative; width: 630px; "> |
1157 | - <img src="Planet_Drizzle_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; " /> |
1158 | - </div> |
1159 | - </div> |
1160 | - |
1161 | - |
1162 | - |
1163 | - <div id="id1" style="height: 50px; left: 35px; position: absolute; top: 23px; width: 630px; z-index: 1; " class="style_SkipStroke shape-with-text"> |
1164 | - <div class="text-content style_External_630_50" style="padding: 0px; "> |
1165 | - <div class="style"> |
1166 | - <p style="padding-bottom: 0pt; padding-top: 0pt; " class="Header">Text</p> |
1167 | - </div> |
1168 | - </div> |
1169 | - </div> |
1170 | - </div> |
1171 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer"> |
1172 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
1173 | - <div style="height: 480px; line-height: 480px; " class="spacer"> </div> |
1174 | - </div> |
1175 | - <div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer"> |
1176 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
1177 | - </div> |
1178 | - </div> |
1179 | - </div> |
1180 | - </body> |
1181 | -</html> |
1182 | - |
1183 | - |
1184 | |
1185 | === removed directory 'Planet_Drizzle_files' |
1186 | === removed file 'Planet_Drizzle_files/Planet_Drizzle.css' |
1187 | --- Planet_Drizzle_files/Planet_Drizzle.css 2010-08-15 17:48:28 +0000 |
1188 | +++ Planet_Drizzle_files/Planet_Drizzle.css 1970-01-01 00:00:00 +0000 |
1189 | @@ -1,98 +0,0 @@ |
1190 | -.style { |
1191 | - padding: 4px; |
1192 | -} |
1193 | -.style_SkipStroke { |
1194 | - background: transparent; |
1195 | - opacity: 1.00; |
1196 | -} |
1197 | -.style_External_630_50 { |
1198 | - position: relative; |
1199 | -} |
1200 | -.Header { |
1201 | - color: rgb(167, 167, 167); |
1202 | - font-family: 'Arial-BoldMT', 'Arial', sans-serif; |
1203 | - font-size: 36px; |
1204 | - font-stretch: normal; |
1205 | - font-style: normal; |
1206 | - font-variant: normal; |
1207 | - font-weight: 700; |
1208 | - letter-spacing: 0; |
1209 | - line-height: 42px; |
1210 | - margin-bottom: 0px; |
1211 | - margin-left: 0px; |
1212 | - margin-right: 0px; |
1213 | - margin-top: 0px; |
1214 | - opacity: 1.00; |
1215 | - padding-bottom: 0px; |
1216 | - padding-top: 0px; |
1217 | - text-align: center; |
1218 | - text-decoration: none; |
1219 | - text-indent: 0px; |
1220 | - text-transform: none; |
1221 | -} |
1222 | -.Normal_External_630_50 { |
1223 | - position: relative; |
1224 | -} |
1225 | -.Normal { |
1226 | - padding: 4px; |
1227 | -} |
1228 | -.graphic_generic_header_textbox_style_default_SkipStroke { |
1229 | - background: transparent; |
1230 | - opacity: 1.00; |
1231 | -} |
1232 | -.bumper { |
1233 | - font-size: 1px; |
1234 | - line-height: 1px; |
1235 | -} |
1236 | -#widget0 a:hover { |
1237 | - color: rgb(0, 0, 0); |
1238 | - text-decoration: underline; |
1239 | -} |
1240 | -#widget0 a:visited { |
1241 | - color: rgb(121, 121, 121); |
1242 | - text-decoration: underline; |
1243 | -} |
1244 | -#widget0 a { |
1245 | - color: rgb(88, 77, 77); |
1246 | - text-decoration: underline; |
1247 | -} |
1248 | -.spacer { |
1249 | - font-size: 1px; |
1250 | - line-height: 1px; |
1251 | -} |
1252 | -body { |
1253 | - -webkit-text-size-adjust: none; |
1254 | -} |
1255 | -div { |
1256 | - overflow: visible; |
1257 | -} |
1258 | -img { |
1259 | - border: none; |
1260 | -} |
1261 | -.InlineBlock { |
1262 | - display: inline; |
1263 | -} |
1264 | -.InlineBlock { |
1265 | - display: inline-block; |
1266 | -} |
1267 | -.inline-block { |
1268 | - display: inline-block; |
1269 | - vertical-align: baseline; |
1270 | - margin-bottom:0.3em; |
1271 | -} |
1272 | -.inline-block.shape-with-text { |
1273 | - vertical-align: bottom; |
1274 | -} |
1275 | -.vertical-align-middle-middlebox { |
1276 | - display: table; |
1277 | -} |
1278 | -.vertical-align-middle-innerbox { |
1279 | - display: table-cell; |
1280 | - vertical-align: middle; |
1281 | -} |
1282 | -div.paragraph { |
1283 | - position: relative; |
1284 | -} |
1285 | -li.full-width { |
1286 | - width: 100; |
1287 | -} |
1288 | |
1289 | === removed file 'Planet_Drizzle_files/Planet_Drizzle.js' |
1290 | --- Planet_Drizzle_files/Planet_Drizzle.js 2010-08-15 17:48:28 +0000 |
1291 | +++ Planet_Drizzle_files/Planet_Drizzle.js 1970-01-01 00:00:00 +0000 |
1292 | @@ -1,9 +0,0 @@ |
1293 | -// Created by iWeb 3.0.1 local-build-20100815 |
1294 | - |
1295 | -setTransparentGifURL('Media/transparent.gif');function hostedOnDM() |
1296 | -{return false;} |
1297 | -function onPageLoad() |
1298 | -{loadMozillaCSS('Planet_Drizzle_files/Planet_DrizzleMoz.css') |
1299 | -adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');Widget.onload();fixAllIEPNGs('Media/transparent.gif');performPostEffectsFixups()} |
1300 | -function onPageUnload() |
1301 | -{Widget.onunload();} |
1302 | |
1303 | === removed file 'Planet_Drizzle_files/Planet_DrizzleIE.css' |
1304 | --- Planet_Drizzle_files/Planet_DrizzleIE.css 2010-08-15 17:48:28 +0000 |
1305 | +++ Planet_Drizzle_files/Planet_DrizzleIE.css 1970-01-01 00:00:00 +0000 |
1306 | @@ -1,28 +0,0 @@ |
1307 | -.inline-block { |
1308 | - display: inline; |
1309 | - vertical-align: baseline; |
1310 | - margin-bottom:-2em; |
1311 | - margin-top:2em; |
1312 | - position:relative; |
1313 | - top:-2em; |
1314 | -} |
1315 | -.vertical-align-middle-middlebox { |
1316 | - display: block; |
1317 | - height: auto; |
1318 | - position: absolute; |
1319 | - top: 50%; |
1320 | -} |
1321 | -.vertical-align-middle-innerbox { |
1322 | - display: block; |
1323 | - position: relative; |
1324 | - top: -50%; |
1325 | -} |
1326 | -li.full-width { |
1327 | - width: auto; |
1328 | -} |
1329 | -li div div.inline-block a img { |
1330 | - text-indent: 0; |
1331 | -} |
1332 | -img { |
1333 | - -ms-interpolation-mode: bicubic; |
1334 | -} |
1335 | |
1336 | === removed file 'Planet_Drizzle_files/Planet_DrizzleMoz.css' |
1337 | --- Planet_Drizzle_files/Planet_DrizzleMoz.css 2010-08-15 17:48:28 +0000 |
1338 | +++ Planet_Drizzle_files/Planet_DrizzleMoz.css 1970-01-01 00:00:00 +0000 |
1339 | @@ -1,6 +0,0 @@ |
1340 | -.inline-block { |
1341 | - display: -moz-inline-box; |
1342 | - display: inline-block; |
1343 | - vertical-align: baseline; |
1344 | - margin-bottom:3px; |
1345 | -} |
1346 | |
1347 | === removed file 'Planet_Drizzle_files/shapeimage_1.jpg' |
1348 | Binary files Planet_Drizzle_files/shapeimage_1.jpg 2010-08-15 17:48:28 +0000 and Planet_Drizzle_files/shapeimage_1.jpg 1970-01-01 00:00:00 +0000 differ |
1349 | === removed directory 'Scripts' |
1350 | === removed directory 'Scripts/Widgets' |
1351 | === removed directory 'Scripts/Widgets/Navbar' |
1352 | === removed file 'Scripts/Widgets/Navbar/navbar.js' |
1353 | --- Scripts/Widgets/Navbar/navbar.js 2010-08-15 17:48:28 +0000 |
1354 | +++ Scripts/Widgets/Navbar/navbar.js 1970-01-01 00:00:00 +0000 |
1355 | @@ -1,67 +0,0 @@ |
1356 | -// |
1357 | -// iWeb - navbar.js |
1358 | -// Copyright (c) 2007-2008 Apple Inc. All rights reserved. |
1359 | -// |
1360 | - |
1361 | -var NavBar=Class.create(Widget,{widgetIdentifier:"com-apple-iweb-widget-NavBar",initialize:function($super,instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp) |
1362 | -{if(instanceID) |
1363 | -{$super(instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp);if(!this.preferenceForKey("useStaticFeed")&&this.preferenceForKey("dotMacAccount")) |
1364 | -{var depthPrefix=this.preferenceForKey("path-to-root");if(!depthPrefix||depthPrefix=="") |
1365 | -depthPrefix="./";this.xml_feed=depthPrefix+"?webdav-method=truthget&depth=infinity&ns=iweb&filterby=in-navbar";} |
1366 | -else |
1367 | -{this.xml_feed="feed.xml";if(this.sitePath) |
1368 | -{this.xml_feed=this.sitePath+"/"+this.xml_feed;}} |
1369 | -this.changedPreferenceForKey("navbar-css");this.regenerate();}},regenerate:function() |
1370 | -{new Ajax.Request(this.xml_feed,{method:'get',onSuccess:this.populateNavItems.bind(this)});return true;},getStyleElement:function(key) |
1371 | -{if(!this.styleElement) |
1372 | -{var head=document.getElementsByTagName("head")[0];if(head) |
1373 | -{var newElement=document.createElement("style");newElement.type="text/css";head.appendChild(newElement);this.styleElement=newElement;}} |
1374 | -return this.styleElement;},substWidgetPath:function(text) |
1375 | -{var result=text.replace(/\$WIDGET_PATH/gm,this.widgetPath);return result;},addCSSSelectorPrefix:function(text) |
1376 | -{var prefix="div#"+this.instanceID+" ";text=text.replace(/\/\*[^*]*\*+([^/][^*]*\*+)*\//gm,"");text=text.replace(/(^\s*|\}\s*)([^{]+)({[^}]*})/gm,function(match,beforeSelectorList,selectorList,propertyList){var result=beforeSelectorList;var selectors=selectorList.split(",");for(var i=0;i<selectors.length;i++){result+=prefix+selectors[i];if(i+1<selectors.length)result+=",";} |
1377 | -result+=propertyList;return result;});return text;},changedPreferenceForKey:function(key) |
1378 | -{if(key=="navbar-css") |
1379 | -{var text=this.preferenceForKey(key);if(!text) |
1380 | -{text="";} |
1381 | -text=this.substWidgetPath(text);text=this.addCSSSelectorPrefix(text);var styleElement=this.getStyleElement();if(styleElement) |
1382 | -{if(!windowsInternetExplorer) |
1383 | -{var node=document.createTextNode(text);if(node) |
1384 | -{while(styleElement.hasChildNodes()) |
1385 | -{styleElement.removeChild(styleElement.firstChild);} |
1386 | -styleElement.appendChild(node);}} |
1387 | -else |
1388 | -{styleElement.styleSheet.cssText=text;}}}},populateNavItems:function(req) |
1389 | -{var items;var feedRoot=ajaxGetDocumentElement(req);if(feedRoot){var parsedFeed=this.getAtomFeedItems(feedRoot);var items=parsedFeed.resultArray;var currentPageGUID=null;var isCollectionPage="NO";var curPagePat=null;if(this.runningInApp) |
1390 | -curPagePat=/\.#current#.$/;else |
1391 | -{currentPageGUID=this.preferenceForKey("current-page-GUID");isCollectionPage=this.preferenceForKey("isCollectionPage");} |
1392 | -var navDiv=this.div("navbar-list");var navBgDiv=navDiv.parentNode;$(navBgDiv).ensureHasLayoutForIE();while(navDiv.firstChild){navDiv.removeChild(navDiv.firstChild);} |
1393 | -var depthPrefix=this.preferenceForKey("path-to-root");if(!depthPrefix||depthPrefix=="") |
1394 | -depthPrefix="./";for(var x=0;x<items.length;x++){var navItem=document.createElement("li");var anchor=document.createElement("a");var title=items[x].title;var pageGUID=items[x].GUID;title=title.replace(/ /g,"\u00a0")+" ";var url=items[x].url;if(!this.runningInApp&&!url.match(/^http:/i)) |
1395 | -url=depthPrefix+url;var inAppCurPage=this.runningInApp&&curPagePat.exec(unescape(new String(url)));if(inAppCurPage) |
1396 | -{url=url.replace(curPagePat,"");} |
1397 | -if(pageGUID==currentPageGUID||inAppCurPage){navItem.className='current-page';if(!this.runningInApp&&isCollectionPage!="YES"){url="";}} |
1398 | -else |
1399 | -navItem.className='noncurrent-page';anchor.setAttribute("href",url);anchor.appendChild(document.createTextNode(title));navItem.appendChild(anchor);navDiv.appendChild(navItem);} |
1400 | -if(this.preferences&&this.preferences.postNotification){this.preferences.postNotification("BLWidgetIsSafeToDrawNotification",1);}}},getAtomFeedItems:function(feedNode) |
1401 | -{var results=new Array;var pageOrder=new Array;if(feedNode) |
1402 | -{var generator="";var generatorElt=getFirstElementByTagName(feedNode,"generator");if(generatorElt&&generatorElt.firstChild){generator=allData(generatorElt);} |
1403 | -var pageGUIDs,pageGUIDsElt;for(var entryElt=feedNode.firstChild;entryElt;entryElt=entryElt.nextSibling){var isInNavbarElt=null;if(!pageGUIDs&&(pageGUIDsElt=findChild(entryElt,"site-navbar","urn:iweb:"))){pageGUIDs=allData(pageGUIDsElt).split(",");for(var x=0;x<pageGUIDs.length;x++){var pageGUID=pageGUIDs[x];pageOrder[""+pageGUID]=x;}} |
1404 | -if(entryElt.nodeName=="entry"&&(isInNavbarElt=findChild(entryElt,"in-navbar","urn:iweb:"))){if(!isInNavbarElt) |
1405 | -continue;var pageGUID="";if(isInNavbarElt.firstChild){pageGUID=""+allData(isInNavbarElt);}else{iWLog("no navBarElt child");} |
1406 | -if(pageGUID=="navbar-sort") |
1407 | -continue;var title="";var titleElt=findChild(entryElt,"title","urn:iweb:");if(!titleElt){iWLog("No iWeb title");titleElt=findChild(entryElt,"title");} |
1408 | -if(titleElt&&titleElt.firstChild){title=allData(titleElt);} |
1409 | -var linkElt=getFirstElementByTagName(entryElt,'link');url=linkElt.getAttribute("href");if(!url&&linkElement.firstChild){url=allData(linkElement);} |
1410 | -results[results.length]={title:title,url:url,GUID:pageGUID};}}} |
1411 | -if(pageGUIDs){results=$(results).reject(function(result){return(pageOrder[result.GUID]===undefined);});results.sort(function(lhs,rhs){return pageOrder[lhs.GUID]-pageOrder[rhs.GUID];});} |
1412 | -return{resultArray:results};},onload:function() |
1413 | -{},onunload:function() |
1414 | -{}});function findChild(element,nodeName,namespace) |
1415 | -{var child;for(child=element.firstChild;child;child=child.nextSibling){if(child.localName==nodeName||child.baseName==nodeName){if(!namespace){return child;} |
1416 | -var childNameSpace=child.namespaceURI;if(childNameSpace==namespace){return child;}}} |
1417 | -return null;} |
1418 | -function getFirstElementByTagName(node,tag_name){var elements=node.getElementsByTagName(tag_name);if(elements.length){return elements[0];} |
1419 | -else{return findChild(node,tag_name);}} |
1420 | -function allData(node) |
1421 | -{node=node.firstChild;var data=node.data;while((node=node.nextSibling)){data+=node.data;} |
1422 | -return data;} |
1423 | |
1424 | === removed directory 'Scripts/Widgets/SharedResources' |
1425 | === removed file 'Scripts/Widgets/SharedResources/None.gif' |
1426 | Binary files Scripts/Widgets/SharedResources/None.gif 2010-08-15 17:48:28 +0000 and Scripts/Widgets/SharedResources/None.gif 1970-01-01 00:00:00 +0000 differ |
1427 | === removed file 'Scripts/Widgets/SharedResources/Translucent-Overlay.png' |
1428 | Binary files Scripts/Widgets/SharedResources/Translucent-Overlay.png 2010-08-15 17:48:28 +0000 and Scripts/Widgets/SharedResources/Translucent-Overlay.png 1970-01-01 00:00:00 +0000 differ |
1429 | === removed file 'Scripts/Widgets/SharedResources/WidgetCommon.js' |
1430 | --- Scripts/Widgets/SharedResources/WidgetCommon.js 2010-08-15 17:48:28 +0000 |
1431 | +++ Scripts/Widgets/SharedResources/WidgetCommon.js 1970-01-01 00:00:00 +0000 |
1432 | @@ -1,423 +0,0 @@ |
1433 | -// |
1434 | -// iWeb - WidgetCommon.js |
1435 | -// Copyright (c) 2007-2008 Apple Inc. All rights reserved. |
1436 | -// |
1437 | - |
1438 | -var widgets=[];var identifiersToStringLocalizations=[];var Widget=Class.create({initialize:function(instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp) |
1439 | -{if(instanceID) |
1440 | -{this.instanceID=instanceID;this.widgetPath=widgetPath;this.sharedPath=sharedPath;this.sitePath=sitePath;this.preferences=preferences;this.runningInApp=(runningInApp===undefined)?false:runningInApp;this.onloadReceived=false;if(this.preferences&&this.runningInApp==true) |
1441 | -{this.preferences.widget=this;setTransparentGifURL(this.sharedPath.stringByAppendingPathComponent("None.gif"));} |
1442 | -this.div().widget=this;window[instanceID]=this;widgets.push(this);widgets[instanceID]=this;if(!this.constructor.instances) |
1443 | -{this.constructor.instances=new Array();} |
1444 | -this.constructor.instances.push(this);}},div:function() |
1445 | -{var divID=this.instanceID;if(arguments.length==1) |
1446 | -{divID=this.instanceID+"-"+arguments[0];} |
1447 | -return $(divID);},onload:function() |
1448 | -{this.onloadReceived=true;},onunload:function() |
1449 | -{},didBecomeSelected:function() |
1450 | -{},didBecomeDeselected:function() |
1451 | -{},didBeginEditing:function() |
1452 | -{},didEndEditing:function() |
1453 | -{},setNeedsDisplay:function() |
1454 | -{},preferenceForKey:function(key) |
1455 | -{var value;if(this.preferences) |
1456 | -value=this.preferences[key];return value;},initializeDefaultPreferences:function(prefs) |
1457 | -{var self=this;$H(prefs).each(function(pair) |
1458 | -{if(self.preferenceForKey(pair.key)===undefined) |
1459 | -{self.setPreferenceForKey(pair.value,pair.key,false);}});},setPreferenceForKey:function(preference,key,registerUndo) |
1460 | -{if(this.runningInApp) |
1461 | -{if(registerUndo===undefined) |
1462 | -registerUndo=true;if((registerUndo==false)&&this.preferences.disableUndoRegistration) |
1463 | -this.preferences.disableUndoRegistration();this.preferences[key]=preference;if((registerUndo==false)&&this.preferences.enableUndoRegistration) |
1464 | -this.preferences.enableUndoRegistration();} |
1465 | -else |
1466 | -{this.preferences[key]=preference;this.changedPreferenceForKey(key);}},changedPreferenceForKey:function(key) |
1467 | -{},postNotificationWithNameAndUserInfo:function(name,userInfo) |
1468 | -{if(window.NotificationCenter!==undefined) |
1469 | -{NotificationCenter.postNotification(new IWNotification(name,null,userInfo));}},sizeWillChange:function() |
1470 | -{},sizeDidChange:function() |
1471 | -{},widgetWidth:function() |
1472 | -{var enclosingDiv=this.div();if(enclosingDiv) |
1473 | -return enclosingDiv.offsetWidth;else |
1474 | -return null;},widgetHeight:function() |
1475 | -{var enclosingDiv=this.div();if(enclosingDiv) |
1476 | -return enclosingDiv.offsetHeight;else |
1477 | -return null;},getInstanceId:function(id) |
1478 | -{var fullId=this.instanceID+"-"+id;if(arguments.length==2) |
1479 | -{fullId+=("$"+arguments[1]);} |
1480 | -return fullId;},getElementById:function(id) |
1481 | -{var fullId=this.getInstanceId.apply(this,arguments);return $(fullId);},localizedString:function(string) |
1482 | -{return LocalizedString(this.widgetIdentifier,string);},showView:function(viewName) |
1483 | -{var futureView=this.m_views[viewName];if((futureView!=this.m_currentView)&&(futureView!=this.m_futureView)) |
1484 | -{this.m_futureView=futureView;if(this.m_fadeAnimation) |
1485 | -{this.m_fadeAnimation.stop();} |
1486 | -var previousView=this.m_currentView;this.m_currentView=futureView;var currentView=this.m_currentView;this.m_futureView=null;this.m_fadeAnimation=new SimpleAnimation(function(){delete this.m_fadeAnimation;}.bind(this));this.m_fadeAnimation.pre=function() |
1487 | -{if(previousView) |
1488 | -{previousView.ensureDiv().setStyle({zIndex:0,opacity:1});} |
1489 | -if(currentView) |
1490 | -{currentView.ensureDiv().setStyle({zIndex:1,opacity:0});currentView.show();currentView.render();}} |
1491 | -this.m_fadeAnimation.post=function() |
1492 | -{!previousView||previousView.hide();!currentView||currentView.ensureDiv().setStyle({zIndex:'',opacity:1});!currentView||!currentView.doneFadingIn||currentView.doneFadingIn();} |
1493 | -this.m_fadeAnimation.update=function(now) |
1494 | -{!currentView||currentView.ensureDiv().setOpacity(now);!previousView||previousView.ensureDiv().setOpacity(1-now);}.bind(this);this.m_fadeAnimation.start();}}});Widget.onload=function() |
1495 | -{for(var i=0;i<widgets.length;i++) |
1496 | -{widgets[i].onload();}} |
1497 | -Widget.onunload=function() |
1498 | -{for(var i=0;i<widgets.length;i++) |
1499 | -{widgets[i].onunload();}} |
1500 | -function RegisterWidgetStrings(identifier,strings) |
1501 | -{identifiersToStringLocalizations[identifier]=strings;} |
1502 | -function LocalizedString(identifier,string) |
1503 | -{var localized=undefined;var localizations=identifiersToStringLocalizations[identifier];if(localizations===undefined) |
1504 | -{iWLog("warning: no localizations for widget "+identifier+", (key:"+string+")");} |
1505 | -else |
1506 | -{localized=localizations[string];} |
1507 | -if(localized===undefined) |
1508 | -{iWLog("warning: couldn't find a localization for '"+string+"' for widget "+identifier);localized=string;} |
1509 | -return localized;} |
1510 | -function WriteLocalizedString(identifier,string) |
1511 | -{document.write(LocalizedString(identifier,string));} |
1512 | -var JSONFeedRendererWidget=Class.create(Widget,{initialize:function($super,instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp) |
1513 | -{if(instanceID) |
1514 | -{$super(instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp);}},changedPreferenceForKey:function(key) |
1515 | -{try |
1516 | -{var value=this.preferenceForKey(key);if(key=="sfr-shadow") |
1517 | -{if(value!=null) |
1518 | -{this.sfrShadow=eval(value);} |
1519 | -else |
1520 | -{this.sfrShadow=null;} |
1521 | -this.renderFeedItems("sfr-shadow");} |
1522 | -if(key=="sfr-stroke") |
1523 | -{if(value!==null) |
1524 | -this.sfrStroke=eval(value);else |
1525 | -this.sfrStroke=null;this.invalidateFeedItems("sfr-stroke");} |
1526 | -if(key=="sfr-reflection") |
1527 | -{if(value!==null) |
1528 | -{this.sfrReflection=eval(value);} |
1529 | -else |
1530 | -{this.sfrReflection=null;} |
1531 | -this.invalidateFeedItems("sfr-reflection");}} |
1532 | -catch(e) |
1533 | -{iWLog("JSONFeedRendererWidget: exception");debugPrintException(e);}},invalidateFeedItems:function(reason) |
1534 | -{trace('invalidateFeedItems(%s)',reason);if(this.pendingRender!==null) |
1535 | -{clearTimeout(this.pendingRender);} |
1536 | -this.pendingRender=setTimeout(function() |
1537 | -{this.pendingRender=null;this.renderFeedItems(reason);}.bind(this),50);},rerenderImage:function(imgGroupDiv,imgDiv,imageUrlString,entryHasImage,photoProportions,imageWidth,positioningHandler,onloadHandler) |
1538 | -{imgGroupDiv.update();if(entryHasImage) |
1539 | -{imgGroupDiv.strokeApplied=false;imgGroupDiv.reflectionApplied=false;imgGroupDiv.shadowApplied=false;imgGroupDiv.setStyle({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});imgGroupDiv.style.position='relative';imgDiv.style.position='relative';var imageUrl=imageUrlString||transparentGifURL();var image=IWCreateImage(imageUrl);image.load(function(image,imgDiv,imgGroupDiv,positioningHandler,onloadHandler) |
1540 | -{var cropDiv=this.croppingDivForImage(image,photoProportions,imageWidth);imgGroupDiv.appendChild(cropDiv);if(positioningHandler) |
1541 | -{positioningHandler();} |
1542 | -if(image.sourceURL()!==transparentGifURL()) |
1543 | -{this.applyEffects(imgGroupDiv);} |
1544 | -if(onloadHandler) |
1545 | -{onloadHandler();}}.bind(this,image,imgDiv,imgGroupDiv,positioningHandler,onloadHandler));}},croppingDivForImage:function(image,kind,width) |
1546 | -{var croppedSize=function(originalSize,cropKind,width) |
1547 | -{if(cropKind=="Square") |
1548 | -{return new IWSize(width,width);} |
1549 | -else if(cropKind=="Landscape") |
1550 | -{return new IWSize(width,width*(3/4));} |
1551 | -else if(cropKind=="Portrait") |
1552 | -{return new IWSize(width,width*(4/3));} |
1553 | -else |
1554 | -{var scaleFactor=width/originalSize.width;return originalSize.scale(scaleFactor,scaleFactor,true);}};var cropDiv=null;if(image.loaded()) |
1555 | -{var img=$(document.createElement('img'));img.src=image.sourceURL();var natural=image.naturalSize();cropDiv=$(document.createElement("div"));cropDiv.appendChild(img);var croppingDivForImage_helper=function(loadedImage) |
1556 | -{if(loadedImage) |
1557 | -{natural=new IWSize(loadedImage.width,loadedImage.height);} |
1558 | -var cropped=croppedSize(natural,kind,width);var scaleFactor=cropped.width/natural.width;if(natural.aspectRatio()>cropped.aspectRatio()) |
1559 | -{scaleFactor=cropped.height/natural.height;} |
1560 | -var scaled=natural.scale(scaleFactor);var offset=new IWPoint(Math.abs(scaled.width-cropped.width)/2,Math.abs(scaled.height-cropped.height)/2);img.setStyle({width:px(scaled.width),height:px(scaled.height),marginLeft:px(-offset.x),marginTop:px(-offset.y),position:'relative'});cropDiv.setStyle({width:px(cropped.width),height:px(cropped.height),overflow:"hidden",position:'relative'});cropDiv.className="crop";} |
1561 | -if(windowsInternetExplorer&&effectiveBrowserVersion<7&&img.src.indexOf(transparentGifURL())!=-1) |
1562 | -{var originalImage=new Image();originalImage.src=img.originalSrc;if(originalImage.complete) |
1563 | -{croppingDivForImage_helper(originalImage);} |
1564 | -else |
1565 | -{originalImage.onload=croppingDivForImage_helper.bind(null,originalImage);}} |
1566 | -else |
1567 | -{croppingDivForImage_helper(null);}} |
1568 | -return cropDiv;},applyEffects:function(div) |
1569 | -{if(this.sfrShadow||this.sfrReflection||this.sfrStroke) |
1570 | -{if((div.offsetWidth===undefined)||(div.offsetHeight===undefined)||(div.offsetWidth===0)||(div.offsetHeight===0)) |
1571 | -{setTimeout(JSONFeedRendererWidget.prototype.applyEffects.bind(this,div),0) |
1572 | -return;} |
1573 | -if(this.sfrStroke&&(div.strokeApplied==false)) |
1574 | -{this.sfrStroke.applyToElement(div);div.strokeApplied=true;} |
1575 | -if(this.sfrReflection&&(div.reflectionApplied==false)) |
1576 | -{this.sfrReflection.applyToElement(div);div.reflectionApplied=true;} |
1577 | -if(this.sfrShadow&&(!this.disableShadows)&&(div.shadowApplied==false)) |
1578 | -{this.sfrShadow.applyToElement(div);div.shadowApplied=true;} |
1579 | -if(this.runningInApp&&(window.webKitVersion<=419)&&this.preferences.setNeedsDisplay) |
1580 | -{this.preferences.setNeedsDisplay();}} |
1581 | -if(windowsInternetExplorer) |
1582 | -{var cropDivs=div.select(".crop");var cropDiv=cropDivs[cropDivs.length-1];if(cropDiv) |
1583 | -{cropDiv.onclick=function() |
1584 | -{var anchorNode=div.parentNode;var targetHref=locationHRef();while(anchorNode&&(anchorNode.tagName!="A")) |
1585 | -{anchorNode=anchorNode.parentNode} |
1586 | -if(anchorNode) |
1587 | -{targetHref=anchorNode.href;} |
1588 | -window.location=targetHref;};cropDiv.onmouseover=function() |
1589 | -{this.style.cursor='pointer';}}}},summaryExcerpt:function(descriptionHTML,maxSummaryLength) |
1590 | -{var div=document.createElement("div");div.innerHTML=descriptionHTML;if(maxSummaryLength>0) |
1591 | -{var model=new HTMLTextModel(div);model.truncateAroundPosition(maxSummaryLength,"...");} |
1592 | -else if(maxSummaryLength===0) |
1593 | -{div.innerHTML="";} |
1594 | -return div.innerHTML;}});var PrefMarkupWidget=Class.create(Widget,{initialize:function($super,instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp) |
1595 | -{if(instanceID) |
1596 | -{$super(instanceID,widgetPath,sharedPath,sitePath,preferences,runningInApp);}},onload:function() |
1597 | -{if(!this.runningInApp) |
1598 | -{this.setUpSubDocumentOnLoad();}},setUpSubDocumentOnLoad:function() |
1599 | -{var self=this;var oIFrame=this.getElementById("frame");if(oIFrame) |
1600 | -{setTimeout(function(){self.loadedSubDocument()},250);}},loadedSubDocument:function() |
1601 | -{var oIFrame=this.getElementById("frame");var oSubDocument=oIFrame.contentWindow||oIFrame.contentDocument;if(oSubDocument.document) |
1602 | -{oSubDocument=oSubDocument.document;} |
1603 | -if(oSubDocument.body) |
1604 | -{this.fixTargetOnElements(oSubDocument,"a");this.fixTargetOnElements(oSubDocument,"form");} |
1605 | -else |
1606 | -{var self=this;setTimeout(function(){self.loadedSubDocument()},250);}},fixTargetOnElements:function(doc,tagName) |
1607 | -{var elements=doc.getElementsByTagName(tagName);for(var i=0;i<elements.length;i++) |
1608 | -{var target=elements[i].target;if(target===undefined||target=="") |
1609 | -elements[i].target="_top";}}});function IWScrollbar(scrollbar) |
1610 | -{} |
1611 | -IWScrollbar.prototype._init=function() |
1612 | -{var style=null;var element=null;this._track=$(document.createElement("div"));style=this._track.style;style.height="100%";style.width="100%";this.scrollbar.appendChild(this._track);element=$(document.createElement("div"));element.style.position="absolute";this._setObjectStart(element,0);this._track.appendChild(element);element=$(document.createElement("div"));element.style.position="absolute";this._track.appendChild(element);element=$(document.createElement("div"));element.style.position="absolute";windowsInternetExplorer||this._setObjectEnd(element,0);this._track.appendChild(element);this._thumb=$(document.createElement("div"));style=this._thumb.style;style.position="absolute";this._setObjectSize(this._thumb,this.minThumbSize);this._track.appendChild(this._thumb);element=$(document.createElement("div"));element.style.position="absolute";this._setObjectStart(element,0);this._thumb.appendChild(element);element=$(document.createElement("div"));element.style.position="absolute";this._thumb.appendChild(element);element=$(document.createElement("div"));element.style.position="absolute";windowsInternetExplorer||this._setObjectEnd(element,0);this._thumb.appendChild(element);this.setSize(this.size);this.setTrackStart(this.trackStartPath,this.trackStartLength);this.setTrackMiddle(this.trackMiddlePath);this.setTrackEnd(this.trackEndPath,this.trackEndLength);this.setThumbStart(this.thumbStartPath,this.thumbStartLength);this.setThumbMiddle(this.thumbMiddlePath);this.setThumbEnd(this.thumbEndPath,this.thumbEndLength);this._thumb.style.display="none";Event.observe(this._track,"mousedown",this._mousedownTrackHandler,false);Event.observe(this._thumb,"mousedown",this._mousedownThumbHandler,false);} |
1613 | -IWScrollbar.prototype.remove=function() |
1614 | -{this.scrollbar.removeChild(this._track);} |
1615 | -IWScrollbar.prototype._captureEvent=function(event) |
1616 | -{event.stopPropagation();event.preventDefault();} |
1617 | -IWScrollbar.prototype._mousedownThumb=function(event) |
1618 | -{Event.observe(document,"mousemove",this._mousemoveThumbHandler,true);Event.observe(document,"mouseup",this._mouseupThumbHandler,true);Event.observe(document,"mouseover",this._captureEventHandler,true);Event.observe(document,"mouseout",this._captureEventHandler,true);this._thumbStart_temp=this._getMousePosition(event);this._scroll_thumbStartPos=this._getThumbStartPos();event.stopPropagation();event.preventDefault();} |
1619 | -IWScrollbar.prototype._mousemoveThumb=function(event) |
1620 | -{var delta=this._getMousePosition(event)-this._thumbStart_temp;var new_pos=this._scroll_thumbStartPos+delta;this.scrollTo(this._contentPositionForThumbPosition(new_pos));event.stopPropagation();event.preventDefault();} |
1621 | -IWScrollbar.prototype._mouseupThumb=function(event) |
1622 | -{Event.stopObserving(document,"mousemove",this._mousemoveThumbHandler,true);Event.stopObserving(document,"mouseup",this._mouseupThumbHandler,true);Event.stopObserving(document,"mouseover",this._captureEventHandler,true);Event.stopObserving(document,"mouseout",this._captureEventHandler,true);delete this._thumbStart_temp;delete this._scroll_thumbStartPos;event.stopPropagation();event.preventDefault();} |
1623 | -IWScrollbar.prototype._mousedownTrack=function(event) |
1624 | -{this._track_mouse_temp=this._getMousePosition(event)-this._trackOffset;if(event.altKey) |
1625 | -{this.scrollTo(this._contentPositionForThumbPosition(this._track_mouse_temp-(this._thumbLength/2)));delete this._track_mouse_temp;} |
1626 | -else |
1627 | -{this._track_scrolling=true;Event.observe(this._track,"mousemove",this._mousemoveTrackHandler,true);Event.observe(this._track,"mouseover",this._mouseoverTrackHandler,true);Event.observe(this._track,"mouseout",this._mouseoutTrackHandler,true);Event.observe(document,"mouseup",this._mouseupTrackHandler,true);this._trackScrollOnePage(this);this._track_timer=setInterval(this._trackScrollDelay,500,this);} |
1628 | -event.stopPropagation();event.preventDefault();} |
1629 | -IWScrollbar.prototype._trackScrollDelay=function(self) |
1630 | -{if(!self._track_scrolling)return;clearInterval(self._track_timer);self._trackScrollOnePage(self);self._track_timer=setInterval(self._trackScrollOnePage,150,self);} |
1631 | -IWScrollbar.prototype._mousemoveTrack=function(event) |
1632 | -{this._track_mouse_temp=this._getMousePosition(event)-this._trackOffset;event.stopPropagation();event.preventDefault();} |
1633 | -IWScrollbar.prototype._mouseoverTrack=function(event) |
1634 | -{this._track_mouse_temp=this._getMousePosition(event)-this._trackOffset;this._track_scrolling=true;event.stopPropagation();event.preventDefault();} |
1635 | -IWScrollbar.prototype._mouseoutTrack=function(event) |
1636 | -{this._track_scrolling=false;event.stopPropagation();event.preventDefault();} |
1637 | -IWScrollbar.prototype._mouseupTrack=function(event) |
1638 | -{clearInterval(this._track_timer);Event.stopObserving(this._track,"mousemove",this._mousemoveTrackHandler,true);Event.stopObserving(this._track,"mouseover",this._mouseoverTrackHandler,true);Event.stopObserving(this._track,"mouseout",this._mouseoutTrackHandler,true);Event.stopObserving(document,"mouseup",this._mouseupTrackHandler,true);delete this._track_mouse_temp;delete this._track_scrolling;delete this._track_timer;event.stopPropagation();event.preventDefault();} |
1639 | -IWScrollbar.prototype._trackScrollOnePage=function(self) |
1640 | -{if(!self._track_scrolling)return;var deltaScroll=Math.round(self._trackLength*self._getViewToContentRatio());if(self._track_mouse_temp<self._thumbStart) |
1641 | -self.scrollByThumbDelta(-deltaScroll);else if(self._track_mouse_temp>(self._thumbStart+self._thumbLength)) |
1642 | -self.scrollByThumbDelta(deltaScroll);} |
1643 | -IWScrollbar.prototype.setScrollArea=function(scrollarea) |
1644 | -{if(this.scrollarea) |
1645 | -{Event.stopObserving(this.scrollbar,"mousewheel",this.scrollarea._mousewheelScrollHandler,true);Event.stopObserving(this.scrollbar,"DOMMouseScroll",this.scrollarea._mousewheelScrollHandler,true);} |
1646 | -this.scrollarea=scrollarea;Event.observe(this.scrollbar,"mousewheel",this.scrollarea._mousewheelScrollHandler,true);Event.observe(this.scrollbar,"DOMMouseScroll",this.scrollarea._mousewheelScrollHandler,true);} |
1647 | -IWScrollbar.prototype.refresh=function() |
1648 | -{this._trackOffset=this._computeTrackOffset();this._trackLength=this._computeTrackLength();var ratio=this._getViewToContentRatio();if(ratio>=1.0||!this._canScroll()) |
1649 | -{if(this.autohide) |
1650 | -{this.hide();} |
1651 | -this._thumb.style.display="none";this.scrollbar.style.appleDashboardRegion="none";} |
1652 | -else |
1653 | -{this._thumbLength=Math.max(Math.round(this._trackLength*ratio),this.minThumbSize);this._numScrollablePixels=this._trackLength-this._thumbLength-(2*this.padding);this._setObjectLength(this._thumb,this._thumbLength);if(windowsInternetExplorer) |
1654 | -{this._setObjectStart(this._thumb.down().next(),this.thumbStartLength);this._setObjectLength(this._thumb.down().next(),this._thumbLength |
1655 | --this.thumbStartLength-this.thumbEndLength);this._setObjectStart(this._thumb.down().next(1),this._thumbLength-this.thumbEndLength);this._setObjectLength(this._thumb.down().next(1),this.thumbEndLength);if(!this.fixedUpIEPNGBGs) |
1656 | -{fixupIEPNGBGsInTree(this._track);Event.stopObserving(this._track,"mousedown",this._mousedownTrackHandler);Event.stopObserving(this._thumb,"mousedown",this._mousedownThumbHandler);Event.observe(this._track,"mousedown",this._mousedownTrackHandler);Event.observe(this._thumb,"mousedown",this._mousedownThumbHandler);this.fixedUpIEPNGBGs=true;}} |
1657 | -this._thumb.style.display="block";this.scrollbar.style.appleDashboardRegion="dashboard-region(control rectangle)";this.show();} |
1658 | -this.verticalHasScrolled();this.horizontalHasScrolled();} |
1659 | -IWScrollbar.prototype.setAutohide=function(autohide) |
1660 | -{this.autohide=autohide;if(this._getViewToContentRatio()>=1.0&&autohide) |
1661 | -{this.hide();} |
1662 | -else |
1663 | -{this.show();}} |
1664 | -IWScrollbar.prototype.hide=function() |
1665 | -{this._track.style.display="none";this.hidden=true;} |
1666 | -IWScrollbar.prototype.show=function() |
1667 | -{this._track.style.display="block";this.hidden=false;} |
1668 | -IWScrollbar.prototype.setSize=function(size) |
1669 | -{this.size=size;this._setObjectSize(this.scrollbar,size);this._setObjectSize(this._track.down().next(),size);this._setObjectSize(this._thumb.down().next(),size);} |
1670 | -IWScrollbar.prototype.setTrackStart=function(imgpath,length) |
1671 | -{this.trackStartPath=imgpath;this.trackStartLength=length;var element=this._track.down();element.style.background="url("+imgpath+") no-repeat top left";this._setObjectLength(element,length);this._setObjectSize(element,this.size);this._setObjectStart(this._track.down().next(),length);} |
1672 | -IWScrollbar.prototype.setTrackMiddle=function(imgpath) |
1673 | -{this.trackMiddlePath=imgpath;this._track.down().next().style.background="url("+imgpath+") "+this._repeatType+" top left";} |
1674 | -IWScrollbar.prototype.setTrackEnd=function(imgpath,length) |
1675 | -{this.trackEndPath=imgpath;this.trackEndLength=length;var element=this._track.down().next(1);element.style.background="url("+imgpath+") no-repeat top left";this._setObjectLength(element,length);this._setObjectSize(element,this.size);windowsInternetExplorer||this._setObjectEnd(this._track.down().next(),length);} |
1676 | -IWScrollbar.prototype.setThumbStart=function(imgpath,length) |
1677 | -{this.thumbStartPath=imgpath;this.thumbStartLength=length;var element=this._thumb.down();element.style.background="url("+imgpath+") no-repeat top left";this._setObjectLength(element,length);this._setObjectSize(element,this.size);this._setObjectStart(this._thumb.down().next(),length);} |
1678 | -IWScrollbar.prototype.setThumbMiddle=function(imgpath) |
1679 | -{this.thumbMiddlePath=imgpath;this._thumb.down().next().style.background="url("+imgpath+") "+this._repeatType+" top left";} |
1680 | -IWScrollbar.prototype.setThumbEnd=function(imgpath,length) |
1681 | -{this.thumbEndPath=imgpath;this.thumbEndLength=length;var element=this._thumb.down().next(1);element.style.background="url("+imgpath+") no-repeat top left";this._setObjectLength(element,length);this._setObjectSize(element,this.size);windowsInternetExplorer||this._setObjectEnd(this._thumb.down().next(),length);} |
1682 | -IWScrollbar.prototype._contentPositionForThumbPosition=function(thumb_pos) |
1683 | -{if(this._getViewToContentRatio()>=1.0) |
1684 | -{return 0;} |
1685 | -else |
1686 | -{return(thumb_pos-this.padding)*((this._getContentLength()-this._getViewLength())/this._numScrollablePixels);}} |
1687 | -IWScrollbar.prototype._thumbPositionForContentPosition=function(page_pos) |
1688 | -{if(this._getViewToContentRatio()>=1.0) |
1689 | -{return this.padding;} |
1690 | -else |
1691 | -{var result=this.padding+(page_pos/((this._getContentLength()-this._getViewLength())/this._numScrollablePixels));if(isNaN(result)) |
1692 | -result=0;return result;}} |
1693 | -IWScrollbar.prototype.scrollByThumbDelta=function(deltaScroll) |
1694 | -{if(deltaScroll==0) |
1695 | -return;this.scrollTo(this._contentPositionForThumbPosition(this._thumbStart+deltaScroll));} |
1696 | -function IWVerticalScrollbar(scrollbar) |
1697 | -{this.scrollarea=null;this.scrollbar=$(scrollbar);this.minThumbSize=28;this.padding=-1;this.autohide=true;this.hidden=true;this.size=19;this.trackStartPath=transparentGifURL();this.trackStartLength=18;this.trackMiddlePath=transparentGifURL();this.trackEndPath=transparentGifURL();this.trackEndLength=18;this.thumbStartPath=transparentGifURL();this.thumbStartLength=9;this.thumbMiddlePath=transparentGifURL();this.thumbEndPath=transparentGifURL();this.thumbEndLength=9;this._track=null;this._thumb=null;this._trackOffset=0;this._trackLength=0;this._numScrollablePixels=0;this._thumbLength=0;this._repeatType="repeat-y";this._thumbStart=this.padding;var _self=this;this._captureEventHandler=function(event){_self._captureEvent(event);};this._mousedownThumbHandler=function(event){_self._mousedownThumb(event);};this._mousemoveThumbHandler=function(event){_self._mousemoveThumb(event);};this._mouseupThumbHandler=function(event){_self._mouseupThumb(event);};this._mousedownTrackHandler=function(event){_self._mousedownTrack(event);};this._mousemoveTrackHandler=function(event){_self._mousemoveTrack(event);};this._mouseoverTrackHandler=function(event){_self._mouseoverTrack(event);};this._mouseoutTrackHandler=function(event){_self._mouseoutTrack(event);};this._mouseupTrackHandler=function(event){_self._mouseupTrack(event);};this._init();} |
1698 | -IWVerticalScrollbar.prototype=new IWScrollbar(null);IWVerticalScrollbar.prototype.scrollTo=function(pos) |
1699 | -{this.scrollarea.verticalScrollTo(pos);} |
1700 | -IWVerticalScrollbar.prototype._setObjectSize=function(object,size) |
1701 | -{object.style.width=size+"px";} |
1702 | -IWVerticalScrollbar.prototype._setObjectLength=function(object,length) |
1703 | -{object.style.height=length+"px";} |
1704 | -IWVerticalScrollbar.prototype._setObjectStart=function(object,start) |
1705 | -{object.style.top=start+"px";} |
1706 | -IWVerticalScrollbar.prototype._setObjectEnd=function(object,end) |
1707 | -{object.style.bottom=end+"px";} |
1708 | -IWVerticalScrollbar.prototype._getMousePosition=function(event) |
1709 | -{if(event!=undefined) |
1710 | -return Event.pointerY(event);else |
1711 | -return 0;} |
1712 | -IWVerticalScrollbar.prototype._getThumbStartPos=function() |
1713 | -{return this._thumb.offsetTop;} |
1714 | -IWVerticalScrollbar.prototype._computeTrackOffset=function() |
1715 | -{var obj=this.scrollbar;var curtop=0;while(obj.offsetParent) |
1716 | -{curtop+=obj.offsetTop;obj=obj.offsetParent;} |
1717 | -return curtop;} |
1718 | -IWVerticalScrollbar.prototype._computeTrackLength=function() |
1719 | -{return this.scrollbar.offsetHeight;} |
1720 | -IWVerticalScrollbar.prototype._getViewToContentRatio=function() |
1721 | -{return this.scrollarea.viewToContentHeightRatio;} |
1722 | -IWVerticalScrollbar.prototype._getContentLength=function() |
1723 | -{return this.scrollarea.content.scrollHeight;} |
1724 | -IWVerticalScrollbar.prototype._getViewLength=function() |
1725 | -{return this.scrollarea.viewHeight;} |
1726 | -IWVerticalScrollbar.prototype._canScroll=function() |
1727 | -{return this.scrollarea.scrollsVertically;} |
1728 | -IWVerticalScrollbar.prototype.verticalHasScrolled=function() |
1729 | -{var new_thumb_pos=this._thumbPositionForContentPosition(this.scrollarea.content.scrollTop);this._thumbStart=new_thumb_pos;this._thumb.style.top=new_thumb_pos+"px";} |
1730 | -IWVerticalScrollbar.prototype.horizontalHasScrolled=function() |
1731 | -{} |
1732 | -function IWHorizontalScrollbar(scrollbar) |
1733 | -{this.scrollarea=null;this.scrollbar=$(scrollbar);this.minThumbSize=28;this.padding=-1;this.autohide=true;this.hidden=true;this.size=19;this.trackStartPath=transparentGifURL();this.trackStartLength=18;this.trackMiddlePath=transparentGifURL();this.trackEndPath=transparentGifURL();this.trackEndLength=18;this.thumbStartPath=transparentGifURL();this.thumbStartLength=9;this.thumbMiddlePath=transparentGifURL();this.thumbEndPath=transparentGifURL();this.thumbEndLength=9;this._track=null;this._thumb=null;this._trackOffset=0;this._trackLength=0;this._numScrollablePixels=0;this._thumbLength=0;this._repeatType="repeat-x";this._thumbStart=this.padding;var _self=this;this._captureEventHandler=function(event){_self._captureEvent(event);};this._mousedownThumbHandler=function(event){_self._mousedownThumb(event);};this._mousemoveThumbHandler=function(event){_self._mousemoveThumb(event);};this._mouseupThumbHandler=function(event){_self._mouseupThumb(event);};this._mousedownTrackHandler=function(event){_self._mousedownTrack(event);};this._mousemoveTrackHandler=function(event){_self._mousemoveTrack(event);};this._mouseoverTrackHandler=function(event){_self._mouseoverTrack(event);};this._mouseoutTrackHandler=function(event){_self._mouseoutTrack(event);};this._mouseupTrackHandler=function(event){_self._mouseupTrack(event);};this._init();} |
1734 | -IWHorizontalScrollbar.prototype=new IWScrollbar(null);IWHorizontalScrollbar.prototype.scrollTo=function(pos) |
1735 | -{this.scrollarea.horizontalScrollTo(pos);} |
1736 | -IWHorizontalScrollbar.prototype._setObjectSize=function(object,size) |
1737 | -{object.style.height=size+"px";} |
1738 | -IWHorizontalScrollbar.prototype._setObjectLength=function(object,length) |
1739 | -{object.style.width=length+"px";} |
1740 | -IWHorizontalScrollbar.prototype._setObjectStart=function(object,start) |
1741 | -{object.style.left=start+"px";} |
1742 | -IWHorizontalScrollbar.prototype._setObjectEnd=function(object,end) |
1743 | -{object.style.right=end+"px";} |
1744 | -IWHorizontalScrollbar.prototype._getMousePosition=function(event) |
1745 | -{if(event!=undefined) |
1746 | -return Event.pointerX(event);else |
1747 | -return 0;} |
1748 | -IWHorizontalScrollbar.prototype._getThumbStartPos=function() |
1749 | -{return this._thumb.offsetLeft;} |
1750 | -IWHorizontalScrollbar.prototype._computeTrackOffset=function() |
1751 | -{var obj=this.scrollbar;var curtop=0;while(obj.offsetParent) |
1752 | -{curtop+=obj.offsetLeft;obj=obj.offsetParent;} |
1753 | -return curtop;} |
1754 | -IWHorizontalScrollbar.prototype._computeTrackLength=function() |
1755 | -{return this.scrollbar.offsetWidth;} |
1756 | -IWHorizontalScrollbar.prototype._getViewToContentRatio=function() |
1757 | -{return this.scrollarea.viewToContentWidthRatio;} |
1758 | -IWHorizontalScrollbar.prototype._getContentLength=function() |
1759 | -{return this.scrollarea.content.scrollWidth;} |
1760 | -IWHorizontalScrollbar.prototype._getViewLength=function() |
1761 | -{return this.scrollarea.viewWidth;} |
1762 | -IWHorizontalScrollbar.prototype._canScroll=function() |
1763 | -{return this.scrollarea.scrollsHorizontally;} |
1764 | -IWHorizontalScrollbar.prototype.verticalHasScrolled=function() |
1765 | -{} |
1766 | -IWHorizontalScrollbar.prototype.horizontalHasScrolled=function() |
1767 | -{var new_thumb_pos=this._thumbPositionForContentPosition(this.scrollarea.content.scrollLeft);this._thumbStart=new_thumb_pos;this._thumb.style.left=new_thumb_pos+"px";} |
1768 | -function IWScrollArea(content) |
1769 | -{this.content=$(content);this.scrollsVertically=true;this.scrollsHorizontally=true;this.singlepressScrollPixels=10;this.viewHeight=0;this.viewToContentHeightRatio=1.0;this.viewWidth=0;this.viewToContentWidthRatio=1.0;this._scrollbars=new Array();var _self=this;this._refreshHandler=function(){_self.refresh();};this._keyPressedHandler=function(){_self.keyPressed(event);};this._mousewheelScrollHandler=function(event){_self.mousewheelScroll(event);};this.content.style.overflow="hidden";this.content.scrollTop=0;this.content.scrollLeft=0;Event.observe(this.content,"mousewheel",this._mousewheelScrollHandler,true);Event.observe(this.content,"DOMMouseScroll",this._mousewheelScrollHandler,true);this.refresh();var c=arguments.length;for(var i=1;i<c;++i) |
1770 | -{this.addScrollbar(arguments[i]);}} |
1771 | -IWScrollArea.prototype.addScrollbar=function(scrollbar) |
1772 | -{scrollbar.setScrollArea(this);this._scrollbars.push(scrollbar);scrollbar.refresh();} |
1773 | -IWScrollArea.prototype.removeScrollbar=function(scrollbar) |
1774 | -{var scrollbars=this._scrollbars;var c=scrollbars.length;for(var i=0;i<c;++i) |
1775 | -{if(scrollbars[i]==scrollbar) |
1776 | -{scrollbars.splice(i,1);break;}}} |
1777 | -IWScrollArea.prototype.remove=function() |
1778 | -{Event.stopObserving(this.content,"mousewheel",this._mousewheelScrollHandler,true);Event.stopObserving(this.content,"DOMMouseScroll",this._mousewheelScrollHandler,true);var scrollbars=this._scrollbars;var c=scrollbars.length;for(var i=0;i<c;++i) |
1779 | -{scrollbars[i].setScrollArea(null);}} |
1780 | -IWScrollArea.prototype.refresh=function() |
1781 | -{this.viewHeight=this.content.offsetHeight;this.viewWidth=this.content.offsetWidth;if(this.content.scrollHeight>this.viewHeight) |
1782 | -{this.viewToContentHeightRatio=this.viewHeight/this.content.scrollHeight;this.verticalScrollTo(this.content.scrollTop);} |
1783 | -else |
1784 | -{this.viewToContentHeightRatio=1.0;this.verticalScrollTo(0);} |
1785 | -if(this.content.scrollWidth>this.viewWidth) |
1786 | -{this.viewToContentWidthRatio=this.viewWidth/this.content.scrollWidth;this.horizontalScrollTo(this.content.scrollLeft);} |
1787 | -else |
1788 | -{this.viewToContentWidthRatio=1.0;this.horizontalScrollTo(0);} |
1789 | -var scrollbars=this._scrollbars;var c=scrollbars.length;for(var i=0;i<c;++i) |
1790 | -{scrollbars[i].refresh();}} |
1791 | -IWScrollArea.prototype.focus=function() |
1792 | -{Event.observe(document,"keypress",this._keyPressedHandler,true);} |
1793 | -IWScrollArea.prototype.blur=function() |
1794 | -{Event.stopObserving(document,"keypress",this._keyPressedHandler,true);} |
1795 | -IWScrollArea.prototype.reveal=function(element) |
1796 | -{var offsetY=0;var obj=element;do |
1797 | -{offsetY+=obj.offsetTop;obj=obj.offsetParent;}while(obj&&obj!=this.content);var offsetX=0;obj=element;do |
1798 | -{offsetX+=obj.offsetLeft;obj=obj.offsetParent;}while(obj&&obj!=this.content);this.verticalScrollTo(offsetY);this.horizontalScrollTo(offsetX);} |
1799 | -IWScrollArea.prototype.verticalScrollTo=function(new_content_top) |
1800 | -{if(!this.scrollsVertically) |
1801 | -return;var bottom=this.content.scrollHeight-this.viewHeight;if(new_content_top<0) |
1802 | -{new_content_top=0;} |
1803 | -else if(new_content_top>bottom) |
1804 | -{new_content_top=bottom;} |
1805 | -this.content.scrollTop=new_content_top;var scrollbars=this._scrollbars;var c=scrollbars.length;for(var i=0;i<c;++i) |
1806 | -{scrollbars[i].verticalHasScrolled();}} |
1807 | -IWScrollArea.prototype.horizontalScrollTo=function(new_content_left) |
1808 | -{if(!this.scrollsHorizontally) |
1809 | -return;var right=this.content_width-this.viewWidth;if(new_content_left<0) |
1810 | -{new_content_left=0;} |
1811 | -else if(new_content_left>right) |
1812 | -{new_content_left=right;} |
1813 | -this.content.scrollLeft=new_content_left;var scrollbars=this._scrollbars;var c=scrollbars.length;for(var i=0;i<c;++i) |
1814 | -{scrollbars[i].horizontalHasScrolled();}} |
1815 | -IWScrollArea.prototype.keyPressed=function(event) |
1816 | -{var handled=true;if(event.altKey) |
1817 | -return;if(event.shiftKey) |
1818 | -return;switch(event.keyIdentifier) |
1819 | -{case"Home":this.verticalScrollTo(0);break;case"End":this.verticalScrollTo(this.content.scrollHeight-this.viewHeight);break;case"Up":this.verticalScrollTo(this.content.scrollTop-this.singlepressScrollPixels);break;case"Down":this.verticalScrollTo(this.content.scrollTop+this.singlepressScrollPixels);break;case"PageUp":this.verticalScrollTo(this.content.scrollTop-this.viewHeight);break;case"PageDown":this.verticalScrollTo(this.content.scrollTop+this.viewHeight);break;case"Left":this.horizontalScrollTo(this.content.scrollLeft-this.singlepressScrollPixels);break;case"Right":this.horizontalScrollTo(this.content.scrollLeft+this.singlepressScrollPixels);break;default:handled=false;} |
1820 | -if(handled) |
1821 | -{event.stopPropagation();event.preventDefault();}} |
1822 | -IWScrollArea.prototype.mousewheelScroll=function(event) |
1823 | -{var deltaScroll=event.wheelDelta?(event.wheelDelta/120*this.singlepressScrollPixels):(event.detail/-2*this.singlepressScrollPixels);this.verticalScrollTo(this.content.scrollTop-deltaScroll);event.stopPropagation();event.preventDefault();} |
1824 | -var View=Class.create({initialize:function(widget,parentDiv) |
1825 | -{this.m_widget=widget;this.m_parentDiv=parentDiv;this.m_divInstanceId=this.m_divId;this.hide();},ensureDiv:function() |
1826 | -{var div=this.m_widget.div(this.m_divInstanceId);if(!div) |
1827 | -{div=new Element('div',{'id':this.m_widget.getInstanceId(this.m_divInstanceId)});div.addClassName(this.m_divClass);this.m_parentDiv.appendChild(div);} |
1828 | -return $(div);},hide:function() |
1829 | -{this.ensureDiv().hide();},show:function() |
1830 | -{this.ensureDiv().show();},render:function() |
1831 | -{},resize:function() |
1832 | -{}});var StatusView=Class.create(View,{initialize:function($super,widget,parentDiv) |
1833 | -{$super(widget,parentDiv);this.render();this.hide();},render:function() |
1834 | -{var markup="<table class='StatusMessageTable'><tr><td>";if(this.badgeImage) |
1835 | -{markup+=imgMarkup(this.m_widget.widgetPath+"/"+this.badgeImage,"","id='"+this.p_badgeImgId()+"'","");} |
1836 | -markup+="</td></tr></table>";if(this.upperRightBadgeWidth&&this.upperRightBadgeHeight) |
1837 | -{var badgeURL=(this.upperRightBadge)?(this.m_widget.widgetPath+"/"+this.upperRightBadge):transparentGifURL();markup+=imgMarkup(badgeURL,"","class='StatusUpperRightBadge' width='"+this.upperRightBadgeWidth+"' height='"+this.upperRightBadgeHeight+"' ","");} |
1838 | -var overlayPath=this.m_widget.sharedPath.stringByAppendingPathComponent("Translucent-Overlay.png");markup+=imgMarkup(overlayPath,"position: absolute; top: 0; left: 0;","id='"+this.p_overlayImgId()+"' width='700' height='286' ","");if(this.statusMessageKey) |
1839 | -{markup+="<div id='"+this.p_statusMessageBlockId()+"' class='StatusMessageBlock' ><span>"+ |
1840 | -this.m_widget.localizedString(this.statusMessageKey)+"</span></div>";} |
1841 | -this.ensureDiv().update(markup);this.resize();},resize:function() |
1842 | -{var widgetWidth=(this.runningInApp)?window.innerWidth:this.m_widget.div().offsetWidth;var widgetHeight=(this.runningInApp)?window.innerHeight:this.m_widget.div().offsetHeight;if(this.badgeImage) |
1843 | -{var badgeImageEl=$(this.p_badgeImgId());var badgeSize=new IWSize(this.badgeImageWidth,this.badgeImageHeight);if((badgeSize.width>widgetWidth)||(badgeSize.height>widgetHeight)) |
1844 | -{var widgetSize=new IWSize(widgetWidth,widgetHeight);badgeSize=badgeSize.scaleToFit(widgetSize);} |
1845 | -badgeImageEl.width=badgeSize.width;badgeImageEl.height=badgeSize.height;} |
1846 | -var overlayNativeWidth=700;var overlayNativeHeight=286;var overlayWidth=Math.max(widgetWidth,overlayNativeWidth);var overlayHeight=overlayNativeHeight;var overlayTop=Math.min(((widgetHeight/2)-overlayNativeHeight),0);var overlayLeft=Math.min(((widgetWidth/2)-(overlayNativeWidth/2)),0);var overlayImage=$(this.p_overlayImgId());overlayImage.width=overlayWidth;overlayImage.height=overlayHeight;overlayImage.setStyle({left:px(overlayLeft),top:px(overlayTop)});var statusMessageBlock=$(this.p_statusMessageBlockId());if(statusMessageBlock) |
1847 | -{var leftValue=px(Math.max(((widgetWidth-statusMessageBlock.offsetWidth)/2),0));var positionStyles={left:leftValue};if(this.statusMessageVerticallyCentered) |
1848 | -{var topValue=px(Math.max(((widgetHeight-statusMessageBlock.offsetHeight)/2),0));positionStyles.top=topValue;} |
1849 | -statusMessageBlock.setStyle(positionStyles);} |
1850 | -if(this.footerView) |
1851 | -{this.footerView.resize();}},doneFadingIn:function() |
1852 | -{this.m_widget.setPreferenceForKey(true,"x-viewDoneFadingIn",false);},p_badgeImgId:function() |
1853 | -{return this.m_widget.getInstanceId(this.m_divId+"-badge");},p_overlayImgId:function() |
1854 | -{return this.m_widget.getInstanceId(this.m_divId+"-overlay");},p_statusMessageBlockId:function() |
1855 | -{return this.m_widget.getInstanceId(this.m_divId+"-messageBlock");}}); |
1856 | \ No newline at end of file |
1857 | |
1858 | === removed file 'Scripts/iWebImage.js' |
1859 | --- Scripts/iWebImage.js 2010-08-15 17:48:28 +0000 |
1860 | +++ Scripts/iWebImage.js 1970-01-01 00:00:00 +0000 |
1861 | @@ -1,339 +0,0 @@ |
1862 | -// |
1863 | -// iWeb - iWebImage.js |
1864 | -// Copyright 2007-2008 Apple Inc. |
1865 | -// All rights reserved. |
1866 | -// |
1867 | - |
1868 | -var IWAllImages={};var IWAllImageObjects={};function IWCreateImage(url) |
1869 | -{return IWAllImages[url]||new IWImage(url);} |
1870 | -var IWNamedImages={};function IWImageNamed(name) |
1871 | -{var url=IWNamedImages[name];return url?IWCreateImage(url):null} |
1872 | -function IWRegisterNamedImage(name,url) |
1873 | -{IWNamedImages[name]=url;} |
1874 | -var IWImageEnableUnload=isiPhone;var IWImage=Class.create({initialize:function(url) |
1875 | -{if(IWAllImages.hasOwnProperty(url)) |
1876 | -{iWLog("warning -- use IWCreateImage rather than new IWImage and you'll get better performance");} |
1877 | -this.mPreventUnloading=0;this.mLoading=false;this.mLoaded=false;this.mURL=url;this.mCallbacks=[];IWAllImages[url]=this;},sourceURL:function() |
1878 | -{return this.mURL;},loaded:function() |
1879 | -{return this.mLoaded;},load:function(callback,delayCallbackIfLoaded) |
1880 | -{if(this.mLoaded&&(callback!=null)) |
1881 | -{delayCallbackIfLoaded?setTimeout(callback,0):callback();} |
1882 | -else |
1883 | -{if(callback!=null) |
1884 | -{this.mCallbacks.push(callback);} |
1885 | -if(this.mLoading==false) |
1886 | -{this.mLoading=true;var img=new Image();IWAllImageObjects[this.sourceURL()]=img;img.onload=this.p_onload.bind(this);img.src=this.mURL;}}},unload:function(evenIfNotEnabled) |
1887 | -{if((evenIfNotEnabled||IWImageEnableUnload)&&this.mLoaded) |
1888 | -{if(this.mPreventUnloading<=0) |
1889 | -{this.mLoaded=false;this.mLoading=false;IWAllImageObjects[this.sourceURL()]=null;} |
1890 | -else |
1891 | -{this.mPreventedUnload=true;}}},preventUnloading:function() |
1892 | -{if(this.mPreventUnloading==0) |
1893 | -{this.mPreventedUnload=false;} |
1894 | -++this.mPreventUnloading;},allowUnloading:function() |
1895 | -{--this.mPreventUnloading;if(this.mPreventUnloading<=0&&this.mPreventedUnload) |
1896 | -{this.unload();}},naturalSize:function() |
1897 | -{(function(){return this.mNaturalSize!==undefined}).bind(this).assert();return this.mNaturalSize;},imgObject:function() |
1898 | -{return IWAllImageObjects[this.sourceURL()];},p_onload:function() |
1899 | -{this.preventUnloading();this.mLoaded=true;if(this.mNaturalSize===undefined) |
1900 | -{var imgObject=this.imgObject();(function(){return imgObject!==undefined}).assert();this.mNaturalSize=new IWSize(imgObject.width,imgObject.height);} |
1901 | -for(var i=0;i<this.mCallbacks.length;++i) |
1902 | -{this.mCallbacks[i]();} |
1903 | -this.mCallbacks=[];this.allowUnloading();},toString:function() |
1904 | -{return"IWImage("+this.mNaturalSize+", "+this.mURL+")";}});function IWCreateLoadingArea() |
1905 | -{if(IWSharedLoadingAreaManager==null) |
1906 | -{IWSharedLoadingAreaManager=new IWLoadingAreaManager();} |
1907 | -return IWSharedLoadingAreaManager.createLoadingArea();} |
1908 | -var IWLoadingAreaManager=Class.create({initialize:function() |
1909 | -{var div=$(document.createElement("div"));div.setStyle({visibility:"hidden",position:"absolute",width:0,height:0,overflow:"hidden"});document.body.appendChild(div);this.mCurrentLoadingArea=div;},createLoadingArea:function() |
1910 | -{var loadingArea=document.createElement('div');this.mCurrentLoadingArea.appendChild(loadingArea);return loadingArea;}});var IWSharedLoadingAreaManager=null;var IWSharedEffectRegistry=null;var allStyleSheetsLoaded=false;var timeStyleSheetsAppearedInDOM=null;function IWCreateEffectRegistry() |
1911 | -{if(IWSharedEffectRegistry==null) |
1912 | -{IWSharedEffectRegistry=new IWEffectRegistry();} |
1913 | -return IWSharedEffectRegistry;} |
1914 | -var IWEffectRegistry=Class.create({initialize:function() |
1915 | -{this.mEffects=null;},registerEffects:function(effects) |
1916 | -{this.mEffects=effects;},applyEffects:function() |
1917 | -{var effectQueue=[];effectQueue=effectQueue.concat(this.p_queueForEffectType("crop"));effectQueue=effectQueue.concat(this.p_queueForEffectType("stroke"));effectQueue=effectQueue.concat(this.p_queueForEffectType("reflection"));effectQueue=effectQueue.concat(this.p_queueForEffectType("shadow"));this.p_applyEffectsFromQueue(effectQueue);},p_queueForEffectType:function(effectType) |
1918 | -{var effectQueue=[];var i=0;var effectClass=effectType+"_"+i++;while(effect=this.mEffects[effectClass]) |
1919 | -{effectQueue=effectQueue.concat(this.p_queueForEffectClass(effect,effectClass));effectClass=effectType+"_"+i++;} |
1920 | -return effectQueue;},p_queueForEffectClass:function(effect,effectClass,elementList) |
1921 | -{var effectQueue=[];var elements=elementList||$$("."+effectClass);while(elements&&elements.length>0) |
1922 | -{var element=elements.shift();var children=element.select("."+effectClass);if(children.length>0) |
1923 | -{elements=elements.minusArray(children);effectQueue=effectQueue.concat(this.p_queueForEffectClass(effect,effectClass,children));} |
1924 | -effectQueue.push({element:element,effect:effect});} |
1925 | -return effectQueue;},p_allStyleSheetsLoaded:function() |
1926 | -{if(isCamino||isFirefox) |
1927 | -{if(timeStyleSheetsAppearedInDOM!=null) |
1928 | -{duration=(new Date().getTime())-timeStyleSheetsAppearedInDOM;if(duration>100) |
1929 | -{allStyleSheetsLoaded=true;timeStyleSheetsAppearedInDOM=null;}} |
1930 | -else if(!allStyleSheetsLoaded) |
1931 | -{for(var i=0,sheetCount=document.styleSheets.length;i<sheetCount;i++) |
1932 | -{var styleSheet=document.styleSheets[i];if(styleSheet.href&&styleSheet.href.indexOf("Moz.css")!=-1) |
1933 | -{timeStyleSheetsAppearedInDOM=new Date().getTime();}}}} |
1934 | -else |
1935 | -{allStyleSheetsLoaded=true;} |
1936 | -return allStyleSheetsLoaded;},p_applyEffectsFromQueue:function(queue) |
1937 | -{var startTime=new Date().getTime();var duration=0;var readyToApplyEffects=this.p_allStyleSheetsLoaded();while(queue.length>0&&duration<100&&readyToApplyEffects) |
1938 | -{var queueEntry=queue.shift();if(queueEntry&&queueEntry.effect&&queueEntry.element) |
1939 | -{queueEntry.effect.applyToElement(queueEntry.element);} |
1940 | -duration=(new Date().getTime())-startTime;} |
1941 | -if(queue.length>0) |
1942 | -{setTimeout(this.p_applyEffectsFromQueue.bind(this,queue),0);} |
1943 | -else |
1944 | -{performPostEffectsFixups();}}});function IWChildOffset(child,parent,positionedOnly) |
1945 | -{var l=0;var t=0;if(parent) |
1946 | -{var current=child;while(current&¤t!=parent) |
1947 | -{if(!positionedOnly||(current.style.position=="absolute")||(current.style.position=="relative")) |
1948 | -{l+=current.offsetLeft;t+=current.offsetTop;} |
1949 | -current=current.parentNode;}} |
1950 | -return new IWPoint(l,t);} |
1951 | -function IWImageExtents(ancestor,images,left,top,right,bottom) |
1952 | -{var unionedBounds=new IWRect(left,top,right-left,bottom-top);for(var e=0;e<images.length;++e) |
1953 | -{var imageClippedBounds=new IWRect(images[e].offsetLeft,images[e].offsetTop,images[e].offsetWidth,images[e].offsetHeight);if(ancestor) |
1954 | -{var current=images[e].parentNode;while(current&¤t!=ancestor) |
1955 | -{if((current.style.position=="absolute")||(current.style.position=="relative")) |
1956 | -{imageClippedBounds.origin.x+=current.offsetLeft||0;imageClippedBounds.origin.y+=current.offsetTop||0;} |
1957 | -var testForHidden=function(str) |
1958 | -{return str=='hidden';};var clipX=[current.style.overflow,current.style.overflowX].any(testForHidden);var clipY=[current.style.overflow,current.style.overflowY].any(testForHidden);if(clipX||clipY) |
1959 | -{var currentRect=new IWRect(clipX?current.offsetLeft:imageClippedBounds.origin.x,clipY?current.offsetTop:imageClippedBounds.origin.y,clipX?current.offsetWidth:imageClippedBounds.size.width,clipY?current.offsetHeight:imageClippedBounds.size.height);imageClippedBounds=imageClippedBounds.intersection(currentRect);} |
1960 | -current=current.parentNode;}} |
1961 | -if((imageClippedBounds.size.width>0)&&(imageClippedBounds.size.height>0)) |
1962 | -{if((unionedBounds.size.width>0)&&(unionedBounds.size.height>0)) |
1963 | -{unionedBounds=unionedBounds.union(imageClippedBounds);} |
1964 | -else |
1965 | -{unionedBounds=imageClippedBounds.clone();}}} |
1966 | -var extents={left:unionedBounds.origin.x,top:unionedBounds.origin.y,right:unionedBounds.origin.x+unionedBounds.size.width,bottom:unionedBounds.origin.y+unionedBounds.size.height};return extents;} |
1967 | -function IWEffectChildren(element,imagesOnly) |
1968 | -{element=$(element);var inlineBlocks=element.select('.inline-block');return element.descendants().findAll(function(child){if((!imagesOnly&&child.match("div.badge-fill"))||child.match("img")) |
1969 | -{var inline=false;for(var index=0,end=inlineBlocks.length;inline==false&&index<end;++index) |
1970 | -{inline=child.descendantOf(inlineBlocks[index]);} |
1971 | -return inline==false;} |
1972 | -else |
1973 | -{return false;}});} |
1974 | -function IWClippingNode(node) |
1975 | -{if(node) |
1976 | -{if(node.style&&(node.style.overflow||node.style.overflowX||node.style.overflowY)) |
1977 | -{if([node.style.overflow,node.style.overflowX,node.style.overflowY].include('hidden')) |
1978 | -return node;} |
1979 | -else |
1980 | -{return IWClippingNode(node.parentNode);}} |
1981 | -return null;} |
1982 | -var IWShadow=Class.create({initialize:function(params) |
1983 | -{this.mBlurRadius=params.blurRadius;this.mOffset=params.offset;this.mColor=params.color;this.mOpacity=params.opacity;},applyToElement:function(shadowed) |
1984 | -{var framePos=new IWPoint(shadowed.offsetLeft,shadowed.offsetTop);var frameSize=new IWSize(shadowed.offsetWidth,shadowed.offsetHeight);var opacity=1.0;if(shadowed!=null) |
1985 | -{shadowed=$(shadowed);opacity=shadowed.getStyle('opacity');if(windowsInternetExplorer) |
1986 | -{var newRoot=$(shadowed.cloneNode(false));shadowed.parentNode.insertBefore(newRoot,shadowed);var shadow=$(document.createElement('DIV'));var shadowContents=shadowed.cloneNodeExcludingIDs(true);shadow.appendChild(shadowContents);shadow.select('map').each(function(mapElement){mapElement.parentNode.removeChild(mapElement);});shadow.select(".IWReflection").invoke("remove");newRoot.appendChild(shadow);newRoot.appendChild(shadowed);shadowed.setStyle({top:0,left:0});var blurRadius=this.mBlurRadius*0.5;var xOffset=this.mOffset.x-(this.mBlurRadius*0.6);var yOffset=this.mOffset.y-(this.mBlurRadius*0.6);shadow.setStyle({position:"absolute",left:px(xOffset-500),top:px(yOffset-500),width:px(frameSize.width+1000),height:px(frameSize.height+1000)});shadowContents.setStyle({position:"absolute",left:px(500),top:px(500),padding:0,margin:0});shadow.style.filter="progid:DXImageTransform.Microsoft.MaskFilter()"+" progid:DXImageTransform.Microsoft.MaskFilter(color="+this.mColor+")"+" progid:DXImageTransform.Microsoft.Alpha(opacity="+this.mOpacity*opacity*100+")"+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+blurRadius+")";if(newRoot.hasClassName("inline-block")) |
1987 | -{var rootTop=newRoot.style.top;var rootMarginTop=newRoot.style.marginTop;if(rootTop&&!rootMarginTop) |
1988 | -{rootTop=(toPixelsAtElement(newRoot,rootTop,true));newRoot.style.marginTop=px(-rootTop);} |
1989 | -else if(!rootTop&&rootMarginTop) |
1990 | -{rootMarginTop=(toPixelsAtElement(newRoot,rootMarginTop,true));newRoot.style.rootTop=px(-rootMarginTop);} |
1991 | -else if(rootTop&&rootMarginTop) |
1992 | -{rootTop=(toPixelsAtElement(newRoot,rootTop,true));rootMarginTop=(toPixelsAtElement(newRoot,rootMarginTop,true));if(rootTop!=rootMarginTop) |
1993 | -{newRoot.style.rootTop=px(-rootMarginTop);}}} |
1994 | -if(shadowed.offsetTop!=0) |
1995 | -{var top=shadowed.style.top;top=top?(toPixelsAtElement(shadowed,top,true)):0;top-=shadowed.offsetTop;shadowed.style.top=px(top);}} |
1996 | -else |
1997 | -{var sourceElements=IWEffectChildren(shadowed,false);var extents=IWImageExtents(shadowed,sourceElements,0,0,frameSize.width,frameSize.height);var canvas=undefined;if(shadowed.sandwich&&shadowed.sandwich.canvas) |
1998 | -{canvas=shadowed.sandwich.canvas;} |
1999 | -extents.left-=Math.max(this.mBlurRadius-this.mOffset.x,0);extents.top-=Math.max(this.mBlurRadius-this.mOffset.y,0);extents.right+=Math.max(this.mBlurRadius+this.mOffset.x,0);extents.bottom+=Math.max(this.mBlurRadius+this.mOffset.y,0);extents.left=Math.floor(extents.left);extents.top=Math.floor(extents.top);extents.right=Math.ceil(extents.right);extents.bottom=Math.ceil(extents.bottom);var leftOffset=extents.left;var topOffset=extents.top;extents.right-=extents.left;extents.bottom-=extents.top;extents.left=0;extents.top=0;var width=extents.right-extents.left;var height=extents.bottom-extents.top;if(canvas===undefined) |
2000 | -{canvas=$(document.createElement("canvas"));} |
2001 | -var context=canvas.getContext?canvas.getContext("2d"):null;var canvasCanDrawShadow=context?context.shadowColor:false;if(canvasCanDrawShadow) |
2002 | -{$(canvas).setAttribute("width",width);$(canvas).setAttribute("height",height);$(canvas).setStyle({position:"absolute",top:px(topOffset),left:px(leftOffset)});var workingCanvas=undefined;if(shadowed.sandwich&&shadowed.sandwich.workingCanvas) |
2003 | -{workingCanvas=shadowed.sandwich.workingCanvas;} |
2004 | -if(workingCanvas===undefined) |
2005 | -{workingCanvas=canvas.cloneNode(false);} |
2006 | -var self=this;var sandwich=shadowed.sandwich||{};sandwich.loadedElements=[];sandwich.elementCount=sourceElements.length;sandwich.loadedElementCount=0;sandwich.canvas=canvas;sandwich.workingCanvas=workingCanvas;shadowed.sandwich=sandwich;sandwich.onImageLoad=function(j,img,image) |
2007 | -{var offset=IWChildOffset(img,shadowed,true);this.loadedElements[j]={imgObject:image.imgObject(),left:offset.x-leftOffset,top:offset.y-topOffset,width:img.offsetWidth,height:img.offsetHeight,render:function(context){context.drawImage(this.imgObject,this.left,this.top,this.width,this.height);}};this.loadedElementCount++;if(this.loadedElementCount==this.elementCount) |
2008 | -{this.renderShadow()}} |
2009 | -sandwich.registerDiv=function(j,div) |
2010 | -{var offset=IWChildOffset(div,shadowed,true);this.loadedElements[j]={divElement:div,left:offset.x-leftOffset,top:offset.y-topOffset,width:div.offsetWidth,height:div.offsetHeight,render:function(context){var div=this.divElement;var color=div.getStyle('background-color');var opacity=parseFloat(div.style.opacity||1);context.save();context.globalAlpha*=opacity;context.fillStyle=color;context.fillRect(this.left,this.top,this.width,this.height);context.restore();}};this.loadedElementCount++;if(this.loadedElementCount==this.elementCount) |
2011 | -{this.renderShadow()}} |
2012 | -sandwich.renderShadow=function() |
2013 | -{if(canvas.parentNode===null) |
2014 | -{shadowed.insertBefore(canvas,shadowed.firstChild);} |
2015 | -canvas.parentNode.insertBefore(workingCanvas,canvas);var context=workingCanvas.getContext("2d");new IWRect(0,0,width,height).clear(context);var bgImage=shadowed.getStyle('background-image');var hasBGImage=bgImage&&bgImage.indexOf('url(')==0;var bgColor=shadowed.getStyle('background-color');var alphaComponent=self.p_alphaComponent(bgColor);IWAssert(function(){return alphaComponent==0||alphaComponent==1},"alpha must be 0 or 1 for background color if shadow is applied");var fillBackground=(hasBGImage||alphaComponent>0);var divBounds=new IWRect(-leftOffset,-topOffset,frameSize.width,frameSize.height).round();if(fillBackground) |
2016 | -{context.fillStyle='rgba(0,0,0,1)';divBounds.fill(context);} |
2017 | -for(var k=0;k<this.loadedElements.length;++k) |
2018 | -{var loaded=this.loadedElements[k];var clipper=$(IWClippingNode(sourceElements[k]));if(clipper&&clipper.descendantOf(shadowed)) |
2019 | -{var clipToShadow=IWChildOffset(clipper,shadowed,true);context.save();context.rect(clipToShadow.x-leftOffset,clipToShadow.y-topOffset,clipper.offsetWidth,clipper.offsetHeight);context.clip();loaded.render(context);context.restore();} |
2020 | -else |
2021 | -{loaded.render(context);}} |
2022 | -context=canvas.getContext("2d");new IWRect(0,0,width,height).clear(context);var drawImageUnshadowed=true;context.globalAlpha=opacity;if(context.shadowColor) |
2023 | -{var usingShadowAlpha=true;context.save();usingShadowAlpha=!(isWebKit&&isEarlyWebKitVersion);if(usingShadowAlpha) |
2024 | -{var components=self.mColor.toLowerCase().match(/#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/);if(components&&components.length>=4) |
2025 | -{context.shadowColor="rgba("+parseInt(components[1],16)+", "+parseInt(components[2],16)+", "+parseInt(components[3],16)+", "+self.mOpacity+")";} |
2026 | -else |
2027 | -{components=self.mColor.match(/rgb\(([0-9\.]+),[ ]*([0-9\.]+),[ ]*([0-9\.]+)\)/);if(components&&components.length>=4) |
2028 | -{context.shadowColor="rgba("+components[1]+", "+components[2]+", "+components[3]+", "+self.mOpacity+")";} |
2029 | -else |
2030 | -{iWLog("not using shadow alpha, failed to match "+self.mColor);usingShadowAlpha=false;}}} |
2031 | -if(usingShadowAlpha==false) |
2032 | -{context.globalAlpha*=self.mOpacity;context.shadowColor=self.mColor;} |
2033 | -context.shadowBlur=self.mBlurRadius;context.shadowOffsetX=self.mOffset.x;context.shadowOffsetY=self.mOffset.y;context.drawImage(workingCanvas,0,0);context.restore();if(usingShadowAlpha==false) |
2034 | -{drawImageUnshadowed=self.mOpacity<1.0;} |
2035 | -else |
2036 | -{drawImageUnshadowed=false;}} |
2037 | -if(drawImageUnshadowed) |
2038 | -{context.drawImage(workingCanvas,0,0);} |
2039 | -if(fillBackground) |
2040 | -{divBounds.clear(context);context.save();context.globalAlpha=opacity;context.rect(divBounds.origin.x,divBounds.origin.y,divBounds.size.width,divBounds.size.height);context.clip();for(var k=0;k<this.loadedElements.length;++k) |
2041 | -{this.loadedElements[k].render(context);} |
2042 | -context.restore();} |
2043 | -if(workingCanvas.parentNode) |
2044 | -{workingCanvas.parentNode.removeChild(workingCanvas);delete this.workingCanvas;this.workingCanvas=null;} |
2045 | -for(var j=0;j<sourceElements.length;++j) |
2046 | -{sourceElements[j].style.opacity=0.0;}};if(sourceElements.length>0) |
2047 | -{for(var j=0;j<sourceElements.length;++j) |
2048 | -{var element=$(sourceElements[j]);if(element.match('img')) |
2049 | -{var image=IWCreateImage(element.src);image.load(sandwich.onImageLoad.bind(sandwich,j,element,image));} |
2050 | -else if(element.match('div')) |
2051 | -{sandwich.registerDiv(j,element);}}} |
2052 | -else |
2053 | -{sandwich.renderShadow();} |
2054 | -workingCanvas.style.visibility="hidden";}}}},p_alphaComponent:function(color) |
2055 | -{var alpha=1.0;if(color&&color.indexOf('rgba(')!=-1) |
2056 | -{if(color.match(/rgba\((?:\s*\S+\s*,\s*){3}(\S+)\s*\)/)) |
2057 | -{alpha=RegExp.$1;}} |
2058 | -return alpha;}});var IWReflection=Class.create({initialize:function(parameters) |
2059 | -{this.mOpacity=parameters.opacity;this.mOffset=Math.max(parameters.offset,1);this.mFadeSustain=0.4;this.mMaxSustain=120;},applyToElement:function(div) |
2060 | -{var bounds=new IWRect(div.offsetLeft,div.offsetTop,div.offsetWidth,div.offsetHeight);var reflectionHeight=Math.min(div.offsetHeight*this.mFadeSustain,this.mMaxSustain)*0.75;if(div!=null) |
2061 | -{var imgs=IWEffectChildren(div,true);var extents=IWImageExtents(div,imgs,0,0,bounds.size.width,bounds.size.height);var totalWidth=extents.right-extents.left;var totalHeight=extents.bottom-extents.top;var leftOffset=extents.left;var topOffset=extents.top;var bottomOffset=totalHeight-bounds.size.height;if(windowsInternetExplorer) |
2062 | -{var reflection=$(document.createElement("div"));reflection.setStyle({position:"absolute",left:px(extents.left),top:px(bounds.size.height),marginTop:px(this.mOffset),width:px(totalWidth),height:px(reflectionHeight),overflow:"hidden",filter:'progid:DXImageTransform.Microsoft.Alpha(opacity='+(this.mOpacity*100)+', style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy=100)'});reflection.addClassName("IWReflection");var flipped=$(document.createElement("div"));flipped.setStyle({position:"relative",width:px(totalWidth),height:px(totalHeight),filter:'flipv'});var cloned=$(div.cloneNode(true));cloned.setStyle({left:px(-extents.left),top:px(-extents.top),position:"absolute"});cloned.className=cloned.className.replace(/(shadow_\d+)/g,'');reflection.appendChild(flipped);flipped.appendChild(cloned);div.insertBefore(reflection,div.firstChild);} |
2063 | -else |
2064 | -{var reflection=$(document.createElement("canvas"));extents.right-=extents.left;extents.bottom-=extents.top;extents.left=0;extents.top=0;reflection.setAttribute("width",extents.right-extents.left);reflection.setAttribute("height",reflectionHeight+this.mOffset/2);reflection.setStyle({position:"absolute",top:px(bounds.size.height),marginTop:px(this.mOffset),left:px(leftOffset)});div.insertBefore(reflection,div.firstChild);var context=reflection.getContext("2d");context.clearRect(0,0,reflection.width,reflection.height);var sandwich={};sandwich.loadedImgs=[];sandwich.imgCount=imgs.length;var self=this;sandwich.onImageLoad=function(j,img,image){var offset=IWChildOffset(img,div,true);this.loadedImgs[j]={imgObject:image.imgObject(),left:offset.x-leftOffset,top:offset.y-topOffset-bottomOffset,width:img.offsetWidth,height:img.offsetHeight};var allImagesLoaded=false;if(this.loadedImgs.length>=this.imgCount) |
2065 | -{allImagesLoaded=true;for(var k=0;allImagesLoaded&&k<this.loadedImgs.length;++k) |
2066 | -{if(this.loadedImgs[k]===undefined) |
2067 | -{allImagesLoaded=false;}}} |
2068 | -if(allImagesLoaded) |
2069 | -{context.save();context.translate(0,bounds.size.height-1);context.scale(1,-1);for(var k=0;k<this.loadedImgs.length;++k) |
2070 | -{var loadedImg=this.loadedImgs[k];var clipper=$(IWClippingNode(imgs[k]));if(clipper&&clipper.descendantOf(div)) |
2071 | -{var clipOffset=IWChildOffset(clipper,div,true);context.save();context.rect(clipOffset.x-leftOffset,clipOffset.y-topOffset-bottomOffset,clipper.offsetWidth,clipper.offsetHeight);context.clip();context.drawImage(loadedImg.imgObject,loadedImg.left,loadedImg.top,loadedImg.width,loadedImg.height);context.restore();} |
2072 | -else |
2073 | -{context.drawImage(loadedImg.imgObject,loadedImg.left,loadedImg.top,loadedImg.width,loadedImg.height);}} |
2074 | -context.restore();context.save();context.globalCompositeOperation="destination-out";var gradient=context.createLinearGradient(0,0,0,reflection.height);gradient.addColorStop(1,"rgba(255, 255, 255, 1.0)");gradient.addColorStop(0,"rgba(255, 255, 255, "+(1-self.mOpacity)+")");context.fillStyle=gradient;if(navigator.appVersion.indexOf('WebKit')!=-1) |
2075 | -{context.rect(0,0,reflection.width,reflection.height*2);context.fill();} |
2076 | -else |
2077 | -{context.fillRect(0,0,reflection.width,reflection.height*2);} |
2078 | -context.restore();}};for(var j=0;j<imgs.length;++j) |
2079 | -{var img=imgs[j];var image=IWCreateImage(img.src);image.load(sandwich.onImageLoad.bind(sandwich,j,img,image));}}}}});var kLeft=0,kTopLeft=1,kTop=2,kTopRight=3,kRight=4,kBottomRight=5,kBottom=6,kBottomLeft=7,kPartCount=8;var IWStrokeParts=Class.create({initialize:function(strokeParts,maxImageSize,shouldClip,strokeWidth) |
2080 | -{this.mStrokeParts=strokeParts;this.mMaxImageSize=maxImageSize;this.mShouldClip=shouldClip;if(shouldClip) |
2081 | -{this.mStrokeWidth=strokeWidth;}},p_imageLayout:function(imageSize) |
2082 | -{var strokeParts=this.mStrokeParts;var hDelta=this.mMaxImageSize.width-imageSize.width;var vDelta=this.mMaxImageSize.height-imageSize.height;var topLeft=strokeParts[kTopLeft].rect;var topRight=strokeParts[kTopRight].rect.offset(-hDelta,0);var bottomRight=strokeParts[kBottomRight].rect.offset(-hDelta,-vDelta);var bottomLeft=strokeParts[kBottomLeft].rect.offset(0,-vDelta);var top=strokeParts[kTop].rect;top.size.width=topRight.origin.x-top.origin.x;var right=strokeParts[kRight].rect.offset(-hDelta,0);right.size.height=bottomRight.origin.y-right.origin.y;var bottom=strokeParts[kBottom].rect.offset(0,-vDelta);bottom.size.width=bottomRight.origin.x-bottom.origin.x;var left=strokeParts[kLeft].rect;left.size.height=bottomLeft.origin.y-left.origin.y;return[left,topLeft,top,topRight,right,bottomRight,bottom,bottomLeft];},p_imageMarkup:function(imageSize,zIndex) |
2083 | -{var markup='';var layoutRects=this.p_imageLayout(imageSize);for(var index=kLeft;index<kPartCount;++index) |
2084 | -{var style=layoutRects[index].position();if(zIndex) |
2085 | -{style+='z-index: '+zIndex+';';} |
2086 | -markup+=imgMarkup(this.mStrokeParts[index].url,style);} |
2087 | -return markup;},markupForImageStreamEntry:function(imageStreamEntry,imageSize) |
2088 | -{var rect=new IWRect(0,0,imageSize.width,imageSize.height);var clippingDivPre='';var clippingDivPost='';var thumbRect=rect.clone();if(this.mShouldClip) |
2089 | -{var left=(this.mStrokeWidth/2+1);var top=(this.mStrokeWidth/2+1);var clippingRect=new IWRect(left,top,(imageSize.width-this.mStrokeWidth-2),(imageSize.height-this.mStrokeWidth-2));clippingDivPre='<div style="overflow: hidden; '+clippingRect.position()+'">';clippingDivPost='</div>';thumbRect.origin.x-=left;thumbRect.origin.y-=top;} |
2090 | -var markup='<div class="framedImage" style="'+rect.position()+'">';markup+=clippingDivPre;markup+=imageStreamEntry.thumbnailMarkupForRect(thumbRect);markup+=clippingDivPost;markup+=this.p_imageMarkup(imageSize,2);markup+='</div>';return markup;},applyToElement:function(div) |
2091 | -{div=$(div);if(div!=null) |
2092 | -{if(div.parentNode) |
2093 | -{$(div.parentNode).ensureHasLayoutForIE();} |
2094 | -var size=new IWSize(div.offsetWidth,div.offsetHeight);div.insert(this.p_imageMarkup(size,(div.hasClassName("aboveStrokesAndFrames")?-1:"auto")));if(!div.hasClassName("flowDefining")) |
2095 | -{if(div.style.position!='absolute') |
2096 | -{var divRect=new IWRect(0,0,div.offsetWidth,div.offsetHeight);var unionRect=IWZeroRect();var layoutRects=this.p_imageLayout(size);layoutRects.each(function(r) |
2097 | -{unionRect=unionRect.union(r);});var padding=divRect.paddingToRect(unionRect);var marginLeft=Element.getStyle(div,"marginLeft");marginLeft=marginLeft?(toPixelsAtElement(div,marginLeft,false)):0;var marginTop=Element.getStyle(div,"marginTop");marginTop=marginTop?(toPixelsAtElement(div,marginTop,true)):0;var marginRight=Element.getStyle(div,"marginRight");marginRight=marginRight?(toPixelsAtElement(div,marginRight,false)):0;var marginBottom=Element.getStyle(div,"marginBottom");marginBottom=marginBottom?(toPixelsAtElement(div,marginBottom,true)):0;if(windowsInternetExplorer) |
2098 | -{div.setStyle({marginLeft:px(Math.max(0,padding.left-1)+marginLeft),marginTop:px(Math.max(0,padding.top-1)+marginTop),marginRight:px(Math.max(0,padding.right-1)+marginRight),marginBottom:px(Math.max(0,padding.bottom-1)+marginBottom)});if(effectiveBrowserVersion==7) |
2099 | -{updateListOfIE7FloatsFix(div);}} |
2100 | -else |
2101 | -{div.setStyle({marginLeft:px(padding.left+marginLeft),marginTop:px(padding.top+marginTop),marginRight:px(padding.right+marginRight),marginBottom:px(padding.bottom+marginBottom)});}}}}},strokeExtra:function(imageSize) |
2102 | -{if(!imageSize) |
2103 | -{imageSize=this.mMaxImageSize;} |
2104 | -rect=new IWRect(IWZeroPoint(),imageSize);var layout=this.p_imageLayout(rect.size);var unionRect=IWZeroRect();layout.each(function(r) |
2105 | -{unionRect=unionRect.union(r);});return rect.paddingToRect(unionRect);}});var IWStroke=Class.create({initialize:function(strokeURL,strokeRect,maxImageSize) |
2106 | -{this.mStrokeURL=strokeURL;this.mStrokeRect=strokeRect;this.mMaxImageSize=maxImageSize;},p_strokeRect:function(imageSize) |
2107 | -{var hScale=imageSize.width/this.mMaxImageSize.width;var vScale=imageSize.height/this.mMaxImageSize.height;var strokeRect=this.mStrokeRect.scale(hScale,vScale,true);return strokeRect;},p_imageMarkup:function(imageSize,zIndex) |
2108 | -{var style=this.p_strokeRect(imageSize).position();if(zIndex) |
2109 | -{style+='z-index: '+zIndex+';';} |
2110 | -return imgMarkup(this.mStrokeURL,style);},markupForImageStreamEntry:function(imageStreamEntry,imageSize) |
2111 | -{var rect=new IWRect(0,0,imageSize.width,imageSize.height);var markup='<div class="framedImage" style="'+rect.position()+'">';markup+=imageStreamEntry.thumbnailMarkupForRect(rect);markup+=this.p_imageMarkup(imageSize,2);markup+='</div>';return markup;},applyToElement:function(div) |
2112 | -{div=$(div);if(div!=null) |
2113 | -{if(div.parentNode) |
2114 | -{$(div.parentNode).ensureHasLayoutForIE();} |
2115 | -var size=new IWSize(div.offsetWidth,div.offsetHeight);div.insert(this.p_imageMarkup(size,(div.hasClassName("aboveStrokesAndFrames")?-1:"auto")));if(!div.hasClassName("flowDefining")) |
2116 | -{if(div.style.position!='absolute') |
2117 | -{var divRect=new IWRect(0,0,div.offsetWidth,div.offsetHeight);var padding=divRect.paddingToRect(this.mStrokeRect);var marginLeft=Element.getStyle(div,"marginLeft");marginLeft=marginLeft?(toPixelsAtElement(div,marginLeft,false)):0;var marginTop=Element.getStyle(div,"marginTop");marginTop=marginTop?(toPixelsAtElement(div,marginTop,true)):0;var marginRight=Element.getStyle(div,"marginRight");marginRight=marginRight?(toPixelsAtElement(div,marginRight,false)):0;var marginBottom=Element.getStyle(div,"marginBottom");marginBottom=marginBottom?(toPixelsAtElement(div,marginBottom,true)):0;div.setStyle({marginLeft:px(padding.left+marginLeft),marginTop:px(padding.top+marginTop),marginRight:px(padding.right+marginRight),marginBottom:px(padding.bottom+marginBottom)});if(windowsInternetExplorer&&effectiveBrowserVersion==7) |
2118 | -{updateListOfIE7FloatsFix(div);}}}}},strokeExtra:function(imageSize) |
2119 | -{if(imageSize===undefined) |
2120 | -{imageSize=this.mMaxImageSize;} |
2121 | -var imageRect=new IWRect(IWZeroPoint(),imageSize);return imageRect.paddingToRect(this.p_strokeRect(imageSize));}});var IWEmptyStroke=Class.create({initialize:function() |
2122 | -{},markupForImageStreamEntry:function(imageStreamEntry,imageSize) |
2123 | -{var rect=new IWRect(0,0,imageSize.width,imageSize.height);var markup='<div class="framedImage" style="'+rect.position()+'">';markup+=imageStreamEntry.thumbnailMarkupForRect(rect);markup+='</div>';return markup;},applyToElement:function(div) |
2124 | -{},strokeExtra:function() |
2125 | -{return new IWPadding(0,0,0,0);}});var kSFRFrameTopLeft=0;var kSFRFrameTop=1;var kSFRFrameTopRight=2;var kSFRFrameRight=3;var kSFRFrameBottomRight=4;var kSFRFrameBottom=5;var kSFRFrameBottomLeft=6;var kSFRFrameLeft=7;var kSFRFrameClip=0;var kSFRFrameStretchEvenly=1;var kSFRFrameStretchToFit=2;var IWPhotoFrame=Class.create({initialize:function(images,maskImages,tilingMode,assetScale,leftInset,topInset,rightInset,bottomInset,unscaledLeftWidth,unscaledTopHeight,unscaledRightWidth,unscaledBottomHeight,leftTileHeight,topTileWidth,rightTileHeight,bottomTileWidth,adornmentURL,adornmentPosition,adornmentSize,minimumAssetScale) |
2126 | -{this.mImages=images;this.mMaskImages=maskImages;this.mTilingMode=tilingMode;this.mLeftInset=leftInset;this.mTopInset=topInset;this.mRightInset=rightInset;this.mBottomInset=bottomInset;this.mUnscaledLeftWidth=unscaledLeftWidth;this.mUnscaledTopHeight=unscaledTopHeight;this.mUnscaledRightWidth=unscaledRightWidth;this.mUnscaledBottomHeight=unscaledBottomHeight;this.mLeftTileHeight=leftTileHeight;this.mTopTileWidth=topTileWidth;this.mRightTileHeight=rightTileHeight;this.mBottomTileWidth=bottomTileWidth;this.mAdornmentURL=adornmentURL;this.mAdornmentPosition=adornmentPosition;this.mAdornmentSize=adornmentSize;this.mMinimumAssetScale=minimumAssetScale;this.setAssetScale(assetScale);},setAssetScale:function(assetScale) |
2127 | -{assetScale=Math.min(assetScale,1.0);assetScale=Math.max(this.mMinimumAssetScale,assetScale);this.mAssetScale=assetScale;this.mLeftWidth=this.scaledValue(this.mUnscaledLeftWidth);this.mTopHeight=this.scaledValue(this.mUnscaledTopHeight);this.mRightWidth=this.scaledValue(this.mUnscaledRightWidth);this.mBottomHeight=this.scaledValue(this.mUnscaledBottomHeight);},scaledValue:function(valueToScale) |
2128 | -{return Math.ceil(valueToScale*this.mAssetScale);},markupForImageStreamEntry:function(imageStreamEntry,size) |
2129 | -{var oldAssetScale=this.mAssetScale;var maximumScale=this.maximumAssetScaleForImageSize(size);if((maximumScale<oldAssetScale)&&(maximumScale>=this.mMinimumAssetScale)) |
2130 | -{this.setAssetScale(maximumScale);} |
2131 | -var coverageRect=this.coverageRect(new IWRect(0,0,size.width,size.height));var imageRect=new IWRect(-coverageRect.origin.x,-coverageRect.origin.y,size.width,size.height);coverageRect=coverageRect.offsetToOrigin();var markup='<div class="framedImage" style="'+coverageRect.position()+'">';markup+=imageStreamEntry.thumbnailMarkupForRect(imageRect);if(maximumScale>=this.mMinimumAssetScale) |
2132 | -{if(this.mImages!=null) |
2133 | -{markup+=this.p_buildFrame(this.mImages,coverageRect.size,2);} |
2134 | -if(this.mAdornmentURL!=null) |
2135 | -{markup+=this.p_adornmentMarkupForRect(imageRect,2);} |
2136 | -if(this.mMaskImages) |
2137 | -{}} |
2138 | -markup+='</div>';if(oldAssetScale!=this.mAssetScale)this.setAssetScale(oldAssetScale);return markup;},strokeExtra:function() |
2139 | -{var adornmentExtraTopMargin=0;if(this.mAdornmentURL) |
2140 | -{adornmentExtraTopMargin=Math.max(0,(this.scaledValue(this.mAdornmentSize.height)-this.mTopHeight)/2.0-this.mAdornmentPosition.y);} |
2141 | -return new IWPadding(this.mLeftWidth-this.scaledValue(this.mLeftInset),this.mTopHeight-this.scaledValue(this.mTopInset)+adornmentExtraTopMargin,this.mRightWidth-this.scaledValue(this.mRightInset),this.mBottomHeight-this.scaledValue(this.mBottomInset));},applyToElement:function(div) |
2142 | -{div=$(div);if(div!=null) |
2143 | -{if(div.parentNode) |
2144 | -{$(div.parentNode).ensureHasLayoutForIE();} |
2145 | -var markup='';var divRect=new IWRect(0,0,div.offsetWidth,div.offsetHeight);if((divRect.size.width>=(this.scaledValue(this.mLeftInset)+this.scaledValue(this.mRightInset)))&&(divRect.size.height>=(this.scaledValue(this.mTopInset)+this.scaledValue(this.mTopInset)))) |
2146 | -{if(this.mImages!=null) |
2147 | -{var coverageRect=this.coverageRect(divRect);var containerRect=new IWRect(coverageRect.origin.x,coverageRect.origin.y,0,0);markup+='<div style="'+containerRect.position()+'">';markup+=this.p_buildFrame(this.mImages,coverageRect.size,(div.hasClassName("aboveStrokesAndFrames")?-1:"auto"));markup+='</div>';} |
2148 | -if(this.mAdornmentURL!=null) |
2149 | -{markup+=this.p_adornmentMarkupForRect(divRect);}} |
2150 | -div.insert(markup);if(!div.hasClassName("flowDefining")) |
2151 | -{if(div.style.position!='absolute') |
2152 | -{var frameExtra=this.strokeExtra();var marginLeft=Element.getStyle(div,"marginLeft");marginLeft=marginLeft?(toPixelsAtElement(div,marginLeft,false)):0;var marginTop=Element.getStyle(div,"marginTop");marginTop=marginTop?(toPixelsAtElement(div,marginTop,true)):0;var marginRight=Element.getStyle(div,"marginRight");marginRight=marginRight?(toPixelsAtElement(div,marginRight,false)):0;var marginBottom=Element.getStyle(div,"marginBottom");marginBottom=marginBottom?(toPixelsAtElement(div,marginBottom,true)):0;div.setStyle({marginLeft:px(frameExtra.left+marginLeft),marginTop:px(frameExtra.top+marginTop),marginRight:px(frameExtra.right+marginRight),marginBottom:px(frameExtra.bottom+marginBottom)});if(windowsInternetExplorer&&effectiveBrowserVersion==7) |
2153 | -{updateListOfIE7FloatsFix(div);}}}}},maximumAssetScaleForImageSize:function(in_imgSize) |
2154 | -{var maxScale=1;if((in_imgSize.width>this.mLeftInset+this.mRightInset)&&(in_imgSize.height>this.mTopInset+this.mBottomInset)) |
2155 | -{maxScale=1;} |
2156 | -else if((in_imgSize.width<Math.ceil(this.mLeftInset*this.mMinimumAssetScale)+Math.ceil(this.mRightInset*this.mMinimumAssetScale))||(in_imgSize.height<Math.ceil(this.mTopInset*this.mMinimumAssetScale)+Math.ceil(this.mBottomInset*this.mMinimumAssetScale))) |
2157 | -{maxScale=0;} |
2158 | -else |
2159 | -{var maxWidthScale=1;var floatEpsilon=0.0000001;if(((this.mLeftInset+this.mRightInset)>=in_imgSize.width)&&((this.mLeftInset+this.mRightInset)>0)) |
2160 | -{var leftChunkRatio=Math.floor(this.mLeftInset/(this.mLeftInset+this.mRightInset)*in_imgSize.width)/this.mLeftInset;var rightChunkRatio=Math.floor(this.mRightInset/(this.mLeftInset+this.mRightInset)*in_imgSize.width)/this.mRightInset;leftChunkRatio-=floatEpsilon;rightChunkRatio-=floatEpsilon;maxWidthScale=Math.max(leftChunkRatio,rightChunkRatio);if(in_imgSize.width<(Math.ceil(this.mLeftInset*maxWidthScale)+Math.ceil(this.mRightInset*maxWidthScale))) |
2161 | -{maxWidthScale=Math.min(leftChunkRatio,rightChunkRatio);} |
2162 | -if((maxWidthScale<this.mMinimumAssetScale)||in_imgSize.width<(Math.ceil(this.mLeftInset*maxWidthScale)+Math.ceil(this.mRightInset*maxWidthScale))) |
2163 | -{maxWidthScale=this.mMinimumAssetScale;}} |
2164 | -var maxHeightScale=1;if(((this.mTopInset+this.mBottomInset)>=in_imgSize.height)&&((this.mTopInset+this.mBottomInset)>0)) |
2165 | -{var topChunkRatio=Math.floor(this.mTopInset/(this.mTopInset+this.mBottomInset)*in_imgSize.height)/this.mTopInset;var bottomChunkRatio=Math.floor(this.mBottomInset/(this.mTopInset+this.mBottomInset)*in_imgSize.height)/this.mBottomInset;topChunkRatio-=floatEpsilon;bottomChunkRatio-=floatEpsilon;maxHeightScale=Math.max(topChunkRatio,bottomChunkRatio);if(in_imgSize.height<(Math.ceil(this.mTopInset*maxHeightScale)+Math.ceil(this.mBottomInset*maxHeightScale))) |
2166 | -{maxHeightScale=Math.min(topChunkRatio,bottomChunkRatio);} |
2167 | -if((maxHeightScale<this.mMinimumAssetScale)||in_imgSize.height<(Math.ceil(this.mTopInset*maxHeightScale)+Math.ceil(this.mBottomInset*maxHeightScale))) |
2168 | -{maxHeightScale=this.mMinimumAssetScale;}} |
2169 | -maxScale=Math.min(maxWidthScale,maxHeightScale);} |
2170 | -return maxScale;},coverageRect:function(rect) |
2171 | -{var left=rect.origin.x+this.scaledValue(this.mLeftInset);var top=rect.origin.y+this.scaledValue(this.mTopInset);var right=rect.maxX()-this.scaledValue(this.mRightInset);var bottom=rect.maxY()-this.scaledValue(this.mBottomInset);left-=this.mLeftWidth;right+=this.mRightWidth;top-=this.mTopHeight;bottom+=this.mBottomHeight;return(new IWRect(left,top,right-left,bottom-top)).round();},p_buildFrame:function(images,size,zIndex) |
2172 | -{var width=size.width;var height=size.height;var startX=this.mLeftWidth;var endX=width-this.mRightWidth;var startY=this.mTopHeight;var endY=height-this.mBottomHeight;var markup="";var zIndexStyle=zIndex?('z-index: '+zIndex+';'):'';if((startX<=endX+1)&&(startY<=endY+1)) |
2173 | -{var imageRect=new IWRect(0.0,0.0,this.mLeftWidth,this.mTopHeight);markup=imgMarkup(images[kSFRFrameTopLeft].sourceURL(),imageRect.position()+zIndexStyle);imageRect=new IWRect(0.0,(height-this.mBottomHeight),this.mLeftWidth,this.mBottomHeight);markup+=imgMarkup(images[kSFRFrameBottomLeft].sourceURL(),imageRect.position()+zIndexStyle);imageRect=new IWRect((width-this.mRightWidth),0.0,this.mRightWidth,this.mTopHeight);markup+=imgMarkup(images[kSFRFrameTopRight].sourceURL(),imageRect.position()+zIndexStyle);imageRect=new IWRect((width-this.mRightWidth),(height-this.mBottomHeight),this.mRightWidth,this.mBottomHeight);markup+=imgMarkup(images[kSFRFrameBottomRight].sourceURL(),imageRect.position()+zIndexStyle);var naturalSize=new IWSize(this.mLeftWidth,this.scaledValue(this.mLeftTileHeight));imageRect=new IWRect(0.0,startY,naturalSize.width,naturalSize.height);markup+=this.p_tiles(images[kSFRFrameLeft].sourceURL(),imageRect,startY,endY,true,zIndex);naturalSize=new IWSize(this.mRightWidth,this.scaledValue(this.mRightTileHeight));imageRect=new IWRect(width-this.mRightWidth,startY,naturalSize.width,naturalSize.height);markup+=this.p_tiles(images[kSFRFrameRight].sourceURL(),imageRect,startY,endY,true,zIndex);naturalSize=new IWSize(this.scaledValue(this.mTopTileWidth),this.mTopHeight);imageRect=new IWRect(startX,0.0,naturalSize.width,naturalSize.height);markup+=this.p_tiles(images[kSFRFrameTop].sourceURL(),imageRect,startX,endX,false,zIndex);naturalSize=new IWSize(this.scaledValue(this.mBottomTileWidth),this.mBottomHeight);imageRect=new IWRect(startX,height-this.mBottomHeight,naturalSize.width,naturalSize.height);markup+=this.p_tiles(images[kSFRFrameBottom].sourceURL(),imageRect,startX,endX,false,zIndex);} |
2174 | -return markup;},p_adornmentRectForRect:function(rect) |
2175 | -{var adornmentCenter=new IWPoint();rect=this.coverageRect(rect);adornmentCenter.x=(rect.size.width-(this.mLeftWidth+this.mRightWidth))*this.mAdornmentPosition.x;adornmentCenter.x+=rect.origin.x+this.mLeftWidth;adornmentCenter.y=this.mTopHeight/2.0+(rect.origin.y+this.mAdornmentPosition.y);var scaledAdornmentSize=new IWSize(this.scaledValue(this.mAdornmentSize.width),this.scaledValue(this.mAdornmentSize.height));var adornmentOrigin=new IWPoint(adornmentCenter.x-(scaledAdornmentSize.width/2.0),adornmentCenter.y-(scaledAdornmentSize.height/2.0));var adornmentRect=new IWRect(adornmentOrigin,scaledAdornmentSize);return adornmentRect;},p_adornmentMarkupForRect:function(rect,zIndex) |
2176 | -{var zIndexStyle=zIndex?('z-index: '+zIndex+';'):'';return imgMarkup(this.mAdornmentURL,this.p_adornmentRectForRect(rect).position()+zIndexStyle);},p_tiles:function(imageURL,imageRect,start,end,vertical,zIndex) |
2177 | -{var markup="";if(start<end) |
2178 | -{var zIndexStyle=zIndex?('z-index: '+zIndex+';'):'';var tileRect=imageRect.clone();var tilingMode=this.mTilingMode;if(vertical) |
2179 | -{tileRect.size.height=Math.ceil(end-start);if(imageRect.size.height==1) |
2180 | -{tilingMode=kSFRFrameStretchToFit;}} |
2181 | -else |
2182 | -{tileRect.size.width=Math.ceil(end-start);if(imageRect.size.width==1) |
2183 | -{tilingMode=kSFRFrameStretchToFit;}} |
2184 | -if(tilingMode==kSFRFrameStretchToFit) |
2185 | -{markup+=imgMarkup(imageURL,tileRect.position()+zIndexStyle);} |
2186 | -else |
2187 | -{var naturalSize=imageRect.size;var offset=(vertical?naturalSize.height:naturalSize.width);var maxTiles=Math.ceil((end-start)/offset);if(offset<5||maxTiles>20) |
2188 | -{IWAssert(function(){return true},"Please remove this assert and the surrouding block.");iWLog("Too many frame image tiles are getting generated. Performance may be affected.");} |
2189 | -if(tilingMode==kSFRFrameStretchEvenly) |
2190 | -{offset=(end-start)/maxTiles;if(vertical) |
2191 | -{imageRect.size.height=offset;} |
2192 | -else |
2193 | -{imageRect.size.width=offset;}} |
2194 | -else if(tilingMode==kSFRFrameClip) |
2195 | -{markup+='<div style="'+tileRect.position()+'overflow: hidden; ">';imageRect.origin.x=0;imageRect.origin.y=0;} |
2196 | -for(var i=0;i<maxTiles;++i) |
2197 | -{var left=Math.round(imageRect.origin.x);var right=Math.round(imageRect.origin.x+imageRect.size.width);var top=Math.round(imageRect.origin.y);var bottom=Math.round(imageRect.origin.y+imageRect.size.height);var roundedRect=new IWRect(left,top,(right-left),(bottom-top));markup+=imgMarkup(imageURL,roundedRect.position()+zIndexStyle);imageRect=vertical?imageRect.offset(0.0,offset):imageRect.offset(offset,0.0);} |
2198 | -if(tilingMode==kSFRFrameClip) |
2199 | -{markup+="</div>";}}} |
2200 | -return markup;}}); |
2201 | \ No newline at end of file |
2202 | |
2203 | === removed file 'Scripts/iWebSite.js' |
2204 | --- Scripts/iWebSite.js 2010-08-15 17:48:28 +0000 |
2205 | +++ Scripts/iWebSite.js 1970-01-01 00:00:00 +0000 |
2206 | @@ -1,1025 +0,0 @@ |
2207 | -// |
2208 | -// iWeb - iWebSite.js |
2209 | -// Copyright (c) 2007-2008 Apple Inc. All rights reserved. |
2210 | -// |
2211 | -// |
2212 | -// This file includes a copy of the Prototype JavaScript framework: |
2213 | -// |
2214 | - |
2215 | -var Prototype={Version:'1.6.0',Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!window.opera,WebKit:navigator.userAgent.indexOf('AppleWebKit/')>-1,Gecko:navigator.userAgent.indexOf('Gecko')>-1&&navigator.userAgent.indexOf('KHTML')==-1,MobileSafari:!!navigator.userAgent.match(/Apple.*Mobile.*Safari/)},BrowserFeatures:{XPath:!!document.evaluate,ElementExtensions:!!window.HTMLElement,SpecificElementExtensions:document.createElement('div').__proto__&&document.createElement('div').__proto__!==document.createElement('form').__proto__},ScriptFragment:'<script[^>]*>([\\S\\s]*?)<\/script>',JSONFilter:/^\/\*-secure-([\s\S]*)\*\/\s*$/,emptyFunction:function(){},K:function(x){return x}};if(Prototype.Browser.MobileSafari) |
2216 | -Prototype.BrowserFeatures.SpecificElementExtensions=false;if(Prototype.Browser.WebKit) |
2217 | -Prototype.BrowserFeatures.XPath=false;var Class={create:function(){var parent=null,properties=$A(arguments);if(Object.isFunction(properties[0])) |
2218 | -parent=properties.shift();function klass(){this.initialize.apply(this,arguments);} |
2219 | -Object.extend(klass,Class.Methods);klass.superclass=parent;klass.subclasses=[];if(parent){var subclass=function(){};subclass.prototype=parent.prototype;klass.prototype=new subclass;parent.subclasses.push(klass);} |
2220 | -for(var i=0;i<properties.length;i++) |
2221 | -klass.addMethods(properties[i]);if(!klass.prototype.initialize) |
2222 | -klass.prototype.initialize=Prototype.emptyFunction;klass.prototype.constructor=klass;return klass;}};Class.Methods={addMethods:function(source){var ancestor=this.superclass&&this.superclass.prototype;var properties=Object.keys(source);if(!Object.keys({toString:true}).length) |
2223 | -properties.push("toString","valueOf");for(var i=0,length=properties.length;i<length;i++){var property=properties[i],value=source[property];if(ancestor&&Object.isFunction(value)&&value.argumentNames().first()=="$super"){var method=value,value=Object.extend((function(m){return function(){return ancestor[m].apply(this,arguments)};})(property).wrap(method),{valueOf:function(){return method},toString:function(){return method.toString()}});} |
2224 | -this.prototype[property]=value;} |
2225 | -return this;}};var Abstract={};Object.extend=function(destination,source){for(var property in source) |
2226 | -destination[property]=source[property];return destination;};Object.extend(Object,{inspect:function(object){try{if(object===undefined)return'undefined';if(object===null)return'null';return object.inspect?object.inspect():object.toString();}catch(e){if(e instanceof RangeError)return'...';throw e;}},toJSON:function(object){var type=typeof object;switch(type){case'undefined':case'function':case'unknown':return;case'boolean':return object.toString();} |
2227 | -if(object===null)return'null';if(object.toJSON)return object.toJSON();if(Object.isElement(object))return;var results=[];for(var property in object){var value=Object.toJSON(object[property]);if(value!==undefined) |
2228 | -results.push(property.toJSON()+': '+value);} |
2229 | -return'{'+results.join(', ')+'}';},toQueryString:function(object){return $H(object).toQueryString();},toHTML:function(object){return object&&object.toHTML?object.toHTML():String.interpret(object);},keys:function(object){var keys=[];for(var property in object) |
2230 | -keys.push(property);return keys;},values:function(object){var values=[];for(var property in object) |
2231 | -values.push(object[property]);return values;},clone:function(object){return Object.extend({},object);},isElement:function(object){return object&&object.nodeType==1;},isArray:function(object){return object&&object.constructor===Array;},isHash:function(object){return object instanceof Hash;},isFunction:function(object){return typeof object=="function";},isString:function(object){return typeof object=="string";},isNumber:function(object){return typeof object=="number";},isUndefined:function(object){return typeof object=="undefined";}});Object.extend(Function.prototype,{argumentNames:function(){var names=this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip");return names.length==1&&!names[0]?[]:names;},bind:function(){if(arguments.length<2&&arguments[0]===undefined)return this;var __method=this,args=$A(arguments),object=args.shift();return function(){return __method.apply(object,args.concat($A(arguments)));}},bindAsEventListener:function(){var __method=this,args=$A(arguments),object=args.shift();return function(event){return __method.apply(object,[event||window.event].concat(args));}},curry:function(){if(!arguments.length)return this;var __method=this,args=$A(arguments);return function(){return __method.apply(this,args.concat($A(arguments)));}},delay:function(){var __method=this,args=$A(arguments),timeout=args.shift()*1000;return window.setTimeout(function(){return __method.apply(__method,args);},timeout);},wrap:function(wrapper){var __method=this;return function(){return wrapper.apply(this,[__method.bind(this)].concat($A(arguments)));}},methodize:function(){if(this._methodized)return this._methodized;var __method=this;return this._methodized=function(){return __method.apply(null,[this].concat($A(arguments)));};}});Function.prototype.defer=Function.prototype.delay.curry(0.01);Date.prototype.toJSON=function(){return'"'+this.getUTCFullYear()+'-'+ |
2232 | -(this.getUTCMonth()+1).toPaddedString(2)+'-'+ |
2233 | -this.getUTCDate().toPaddedString(2)+'T'+ |
2234 | -this.getUTCHours().toPaddedString(2)+':'+ |
2235 | -this.getUTCMinutes().toPaddedString(2)+':'+ |
2236 | -this.getUTCSeconds().toPaddedString(2)+'Z"';};var Try={these:function(){var returnValue;for(var i=0,length=arguments.length;i<length;i++){var lambda=arguments[i];try{returnValue=lambda();break;}catch(e){}} |
2237 | -return returnValue;}};RegExp.prototype.match=RegExp.prototype.test;RegExp.escape=function(str){return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g,'\\$1');};var PeriodicalExecuter=Class.create({initialize:function(callback,frequency){this.callback=callback;this.frequency=frequency;this.currentlyExecuting=false;this.registerCallback();},registerCallback:function(){this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000);},execute:function(){this.callback(this);},stop:function(){if(!this.timer)return;clearInterval(this.timer);this.timer=null;},onTimerEvent:function(){if(!this.currentlyExecuting){try{this.currentlyExecuting=true;this.execute();}finally{this.currentlyExecuting=false;}}}});Object.extend(String,{interpret:function(value){return value==null?'':String(value);},specialChar:{'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','\\':'\\\\'}});Object.extend(String.prototype,{gsub:function(pattern,replacement){var result='',source=this,match;replacement=arguments.callee.prepareReplacement(replacement);while(source.length>0){if(match=source.match(pattern)){result+=source.slice(0,match.index);result+=String.interpret(replacement(match));source=source.slice(match.index+match[0].length);}else{result+=source,source='';}} |
2238 | -return result;},sub:function(pattern,replacement,count){replacement=this.gsub.prepareReplacement(replacement);count=count===undefined?1:count;return this.gsub(pattern,function(match){if(--count<0)return match[0];return replacement(match);});},scan:function(pattern,iterator){this.gsub(pattern,iterator);return String(this);},truncate:function(length,truncation){length=length||30;truncation=truncation===undefined?'...':truncation;return this.length>length?this.slice(0,length-truncation.length)+truncation:String(this);},strip:function(){return this.replace(/^\s+/,'').replace(/\s+$/,'');},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,'');},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,'img'),'');},extractScripts:function(){var matchAll=new RegExp(Prototype.ScriptFragment,'img');var matchOne=new RegExp(Prototype.ScriptFragment,'im');return(this.match(matchAll)||[]).map(function(scriptTag){return(scriptTag.match(matchOne)||['',''])[1];});},evalScripts:function(){return this.extractScripts().map(function(script){return eval(script)});},escapeHTML:function(){var self=arguments.callee;self.text.data=this;return self.div.innerHTML;},unescapeHTML:function(){var div=new Element('div');div.innerHTML=this.stripTags();return div.childNodes[0]?(div.childNodes.length>1?$A(div.childNodes).inject('',function(memo,node){return memo+node.nodeValue}):div.childNodes[0].nodeValue):'';},toQueryParams:function(separator){var match=this.strip().match(/([^?#]*)(#.*)?$/);if(!match)return{};return match[1].split(separator||'&').inject({},function(hash,pair){if((pair=pair.split('='))[0]){var key=decodeURIComponent(pair.shift());var value=pair.length>1?pair.join('='):pair[0];if(value!=undefined)value=decodeURIComponent(value);if(key in hash){if(!Object.isArray(hash[key]))hash[key]=[hash[key]];hash[key].push(value);} |
2239 | -else hash[key]=value;} |
2240 | -return hash;});},toArray:function(){return this.split('');},succ:function(){return this.slice(0,this.length-1)+ |
2241 | -String.fromCharCode(this.charCodeAt(this.length-1)+1);},times:function(count){return count<1?'':new Array(count+1).join(this);},camelize:function(){var parts=this.split('-'),len=parts.length;if(len==1)return parts[0];var camelized=this.charAt(0)=='-'?parts[0].charAt(0).toUpperCase()+parts[0].substring(1):parts[0];for(var i=1;i<len;i++) |
2242 | -camelized+=parts[i].charAt(0).toUpperCase()+parts[i].substring(1);return camelized;},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase();},underscore:function(){return this.gsub(/::/,'/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{1}_#{2}').gsub(/-/,'_').toLowerCase();},dasherize:function(){return this.gsub(/_/,'-');},inspect:function(useDoubleQuotes){var escapedString=this.gsub(/[\x00-\x1f\\]/,function(match){var character=String.specialChar[match[0]];return character?character:'\\u00'+match[0].charCodeAt().toPaddedString(2,16);});if(useDoubleQuotes)return'"'+escapedString.replace(/"/g,'\\"')+'"';return"'"+escapedString.replace(/'/g,'\\\'')+"'";},toJSON:function(){return this.inspect(true);},unfilterJSON:function(filter){return this.sub(filter||Prototype.JSONFilter,'#{1}');},isJSON:function(){var str=this.replace(/\\./g,'@').replace(/"[^"\\\n\r]*"/g,'');return(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);},evalJSON:function(sanitize){var json=this.unfilterJSON();try{if(!sanitize||json.isJSON())return eval('('+json+')');}catch(e){} |
2243 | -throw new SyntaxError('Badly formed JSON string: '+this.inspect());},include:function(pattern){return this.indexOf(pattern)>-1;},startsWith:function(pattern){return this.indexOf(pattern)===0;},endsWith:function(pattern){var d=this.length-pattern.length;return d>=0&&this.lastIndexOf(pattern)===d;},empty:function(){return this=='';},blank:function(){return/^\s*$/.test(this);},interpolate:function(object,pattern){return new Template(this,pattern).evaluate(object);}});if(Prototype.Browser.WebKit||Prototype.Browser.IE)Object.extend(String.prototype,{escapeHTML:function(){return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');},unescapeHTML:function(){return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');}});String.prototype.gsub.prepareReplacement=function(replacement){if(Object.isFunction(replacement))return replacement;var template=new Template(replacement);return function(match){return template.evaluate(match)};};String.prototype.parseQuery=String.prototype.toQueryParams;Object.extend(String.prototype.escapeHTML,{div:document.createElement('div'),text:document.createTextNode('')});with(String.prototype.escapeHTML)div.appendChild(text);var Template=Class.create({initialize:function(template,pattern){this.template=template.toString();this.pattern=pattern||Template.Pattern;},evaluate:function(object){if(Object.isFunction(object.toTemplateReplacements)) |
2244 | -object=object.toTemplateReplacements();return this.template.gsub(this.pattern,function(match){if(object==null)return'';var before=match[1]||'';if(before=='\\')return match[2];var ctx=object,expr=match[3];var pattern=/^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/,match=pattern.exec(expr);if(match==null)return before;while(match!=null){var comp=match[1].startsWith('[')?match[2].gsub('\\\\]',']'):match[1];ctx=ctx[comp];if(null==ctx||''==match[3])break;expr=expr.substring('['==match[3]?match[1].length:match[0].length);match=pattern.exec(expr);} |
2245 | -return before+String.interpret(ctx);}.bind(this));}});Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;var $break={};var Enumerable={each:function(iterator,context){var index=0;iterator=iterator.bind(context);try{this._each(function(value){iterator(value,index++);});}catch(e){if(e!=$break)throw e;} |
2246 | -return this;},eachSlice:function(number,iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var index=-number,slices=[],array=this.toArray();while((index+=number)<array.length) |
2247 | -slices.push(array.slice(index,index+number));return slices.collect(iterator,context);},all:function(iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var result=true;this.each(function(value,index){result=result&&!!iterator(value,index);if(!result)throw $break;});return result;},any:function(iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var result=false;this.each(function(value,index){if(result=!!iterator(value,index)) |
2248 | -throw $break;});return result;},collect:function(iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var results=[];this.each(function(value,index){results.push(iterator(value,index));});return results;},detect:function(iterator,context){iterator=iterator.bind(context);var result;this.each(function(value,index){if(iterator(value,index)){result=value;throw $break;}});return result;},findAll:function(iterator,context){iterator=iterator.bind(context);var results=[];this.each(function(value,index){if(iterator(value,index)) |
2249 | -results.push(value);});return results;},grep:function(filter,iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var results=[];if(Object.isString(filter)) |
2250 | -filter=new RegExp(filter);this.each(function(value,index){if(filter.match(value)) |
2251 | -results.push(iterator(value,index));});return results;},include:function(object){if(Object.isFunction(this.indexOf)) |
2252 | -if(this.indexOf(object)!=-1)return true;var found=false;this.each(function(value){if(value==object){found=true;throw $break;}});return found;},inGroupsOf:function(number,fillWith){fillWith=fillWith===undefined?null:fillWith;return this.eachSlice(number,function(slice){while(slice.length<number)slice.push(fillWith);return slice;});},inject:function(memo,iterator,context){iterator=iterator.bind(context);this.each(function(value,index){memo=iterator(memo,value,index);});return memo;},invoke:function(method){var args=$A(arguments).slice(1);return this.map(function(value){return value[method].apply(value,args);});},max:function(iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var result;this.each(function(value,index){value=iterator(value,index);if(result==undefined||value>=result) |
2253 | -result=value;});return result;},min:function(iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var result;this.each(function(value,index){value=iterator(value,index);if(result==undefined||value<result) |
2254 | -result=value;});return result;},partition:function(iterator,context){iterator=iterator?iterator.bind(context):Prototype.K;var trues=[],falses=[];this.each(function(value,index){(iterator(value,index)?trues:falses).push(value);});return[trues,falses];},pluck:function(property){var results=[];this.each(function(value){results.push(value[property]);});return results;},reject:function(iterator,context){iterator=iterator.bind(context);var results=[];this.each(function(value,index){if(!iterator(value,index)) |
2255 | -results.push(value);});return results;},sortBy:function(iterator,context){iterator=iterator.bind(context);return this.map(function(value,index){return{value:value,criteria:iterator(value,index)};}).sort(function(left,right){var a=left.criteria,b=right.criteria;return a<b?-1:a>b?1:0;}).pluck('value');},toArray:function(){return this.map();},zip:function(){var iterator=Prototype.K,args=$A(arguments);if(Object.isFunction(args.last())) |
2256 | -iterator=args.pop();var collections=[this].concat(args).map($A);return this.map(function(value,index){return iterator(collections.pluck(index));});},size:function(){return this.toArray().length;},inspect:function(){return'#<Enumerable:'+this.toArray().inspect()+'>';}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,filter:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray,every:Enumerable.all,some:Enumerable.any});function $A(iterable){if(!iterable)return[];if(iterable.toArray)return iterable.toArray();var length=iterable.length,results=new Array(length);while(length--)results[length]=iterable[length];return results;} |
2257 | -if(Prototype.Browser.WebKit){function $A(iterable){if(!iterable)return[];if(!(Object.isFunction(iterable)&&iterable=='[object NodeList]')&&iterable.toArray)return iterable.toArray();var length=iterable.length,results=new Array(length);while(length--)results[length]=iterable[length];return results;}} |
2258 | -Array.from=$A;Object.extend(Array.prototype,Enumerable);if(!Array.prototype._reverse)Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(iterator){for(var i=0,length=this.length;i<length;i++) |
2259 | -iterator(this[i]);},clear:function(){this.length=0;return this;},first:function(){return this[0];},last:function(){return this[this.length-1];},compact:function(){return this.select(function(value){return value!=null;});},flatten:function(){return this.inject([],function(array,value){return array.concat(Object.isArray(value)?value.flatten():[value]);});},without:function(){var values=$A(arguments);return this.select(function(value){return!values.include(value);});},reverse:function(inline){return(inline!==false?this:this.toArray())._reverse();},reduce:function(){return this.length>1?this:this[0];},uniq:function(sorted){return this.inject([],function(array,value,index){if(0==index||(sorted?array.last()!=value:!array.include(value))) |
2260 | -array.push(value);return array;});},intersect:function(array){return this.uniq().findAll(function(item){return array.detect(function(value){return item===value});});},clone:function(){return[].concat(this);},size:function(){return this.length;},inspect:function(){return'['+this.map(Object.inspect).join(', ')+']';},toJSON:function(){var results=[];this.each(function(object){var value=Object.toJSON(object);if(value!==undefined)results.push(value);});return'['+results.join(', ')+']';}});if(Object.isFunction(Array.prototype.forEach)) |
2261 | -Array.prototype._each=Array.prototype.forEach;if(!Array.prototype.indexOf)Array.prototype.indexOf=function(item,i){i||(i=0);var length=this.length;if(i<0)i=length+i;for(;i<length;i++) |
2262 | -if(this[i]===item)return i;return-1;};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(item,i){i=isNaN(i)?this.length:(i<0?this.length+i:i)+1;var n=this.slice(0,i).reverse().indexOf(item);return(n<0)?n:i-n-1;};Array.prototype.toArray=Array.prototype.clone;function $w(string){if(!Object.isString(string))return[];string=string.strip();return string?string.split(/\s+/):[];} |
2263 | -if(Prototype.Browser.Opera){Array.prototype.concat=function(){var array=[];for(var i=0,length=this.length;i<length;i++)array.push(this[i]);for(var i=0,length=arguments.length;i<length;i++){if(Object.isArray(arguments[i])){for(var j=0,arrayLength=arguments[i].length;j<arrayLength;j++) |
2264 | -array.push(arguments[i][j]);}else{array.push(arguments[i]);}} |
2265 | -return array;};} |
2266 | -Object.extend(Number.prototype,{toColorPart:function(){return this.toPaddedString(2,16);},succ:function(){return this+1;},times:function(iterator){$R(0,this,true).each(iterator);return this;},toPaddedString:function(length,radix){var string=this.toString(radix||10);return'0'.times(length-string.length)+string;},toJSON:function(){return isFinite(this)?this.toString():'null';}});$w('abs round ceil floor').each(function(method){Number.prototype[method]=Math[method].methodize();});function $H(object){return new Hash(object);};var Hash=Class.create(Enumerable,(function(){if(function(){var i=0,Test=function(value){this.key=value};Test.prototype.key='foo';for(var property in new Test('bar'))i++;return i>1;}()){function each(iterator){var cache=[];for(var key in this._object){var value=this._object[key];if(cache.include(key))continue;cache.push(key);var pair=[key,value];pair.key=key;pair.value=value;iterator(pair);}}}else{function each(iterator){for(var key in this._object){var value=this._object[key],pair=[key,value];pair.key=key;pair.value=value;iterator(pair);}}} |
2267 | -function toQueryPair(key,value){if(Object.isUndefined(value))return key;return key+'='+encodeURIComponent(String.interpret(value));} |
2268 | -return{initialize:function(object){this._object=Object.isHash(object)?object.toObject():Object.clone(object);},_each:each,set:function(key,value){return this._object[key]=value;},get:function(key){return this._object[key];},unset:function(key){var value=this._object[key];delete this._object[key];return value;},toObject:function(){return Object.clone(this._object);},keys:function(){return this.pluck('key');},values:function(){return this.pluck('value');},index:function(value){var match=this.detect(function(pair){return pair.value===value;});return match&&match.key;},merge:function(object){return this.clone().update(object);},update:function(object){return new Hash(object).inject(this,function(result,pair){result.set(pair.key,pair.value);return result;});},toQueryString:function(){return this.map(function(pair){var key=encodeURIComponent(pair.key),values=pair.value;if(values&&typeof values=='object'){if(Object.isArray(values)) |
2269 | -return values.map(toQueryPair.curry(key)).join('&');} |
2270 | -return toQueryPair(key,values);}).join('&');},inspect:function(){return'#<Hash:{'+this.map(function(pair){return pair.map(Object.inspect).join(': ');}).join(', ')+'}>';},toJSON:function(){return Object.toJSON(this.toObject());},clone:function(){return new Hash(this);}}})());Hash.prototype.toTemplateReplacements=Hash.prototype.toObject;Hash.from=$H;var ObjectRange=Class.create(Enumerable,{initialize:function(start,end,exclusive){this.start=start;this.end=end;this.exclusive=exclusive;},_each:function(iterator){var value=this.start;while(this.include(value)){iterator(value);value=value.succ();}},include:function(value){if(value<this.start) |
2271 | -return false;if(this.exclusive) |
2272 | -return value<this.end;return value<=this.end;}});var $R=function(start,end,exclusive){return new ObjectRange(start,end,exclusive);};var Ajax={getTransport:function(){return Try.these(function(){return new XMLHttpRequest()},function(){return new ActiveXObject('Msxml2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')})||false;},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(iterator){this.responders._each(iterator);},register:function(responder){if(!this.include(responder)) |
2273 | -this.responders.push(responder);},unregister:function(responder){this.responders=this.responders.without(responder);},dispatch:function(callback,request,transport,json){this.each(function(responder){if(Object.isFunction(responder[callback])){try{responder[callback].apply(responder,[request,transport,json]);}catch(e){}}});}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=Class.create({initialize:function(options){this.options={method:'post',asynchronous:true,contentType:'application/x-www-form-urlencoded',encoding:'UTF-8',parameters:'',evalJSON:true,evalJS:true};Object.extend(this.options,options||{});this.options.method=this.options.method.toLowerCase();if(Object.isString(this.options.parameters)) |
2274 | -this.options.parameters=this.options.parameters.toQueryParams();}});Ajax.Request=Class.create(Ajax.Base,{_complete:false,initialize:function($super,url,options){$super(options);this.transport=Ajax.getTransport();this.request(url);},request:function(url){this.url=url;this.method=this.options.method;var params=Object.clone(this.options.parameters);if(!['get','post'].include(this.method)){params['_method']=this.method;this.method='post';} |
2275 | -this.parameters=params;if(params=Object.toQueryString(params)){if(this.method=='get') |
2276 | -this.url+=(this.url.include('?')?'&':'?')+params;else if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)) |
2277 | -params+='&_=';} |
2278 | -try{var response=new Ajax.Response(this);if(this.options.onCreate)this.options.onCreate(response);Ajax.Responders.dispatch('onCreate',this,response);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous)this.respondToReadyState.bind(this).defer(1);this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();this.body=this.method=='post'?(this.options.postBody||params):null;this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType) |
2279 | -this.onStateChange();} |
2280 | -catch(e){this.dispatchException(e);}},onStateChange:function(){var readyState=this.transport.readyState;if(readyState>1&&!((readyState==4)&&this._complete)) |
2281 | -this.respondToReadyState(this.transport.readyState);},setRequestHeaders:function(){var headers={'X-Requested-With':'XMLHttpRequest','X-Prototype-Version':Prototype.Version,'Accept':'text/javascript, text/html, application/xml, text/xml, */*'};if(this.method=='post'){headers['Content-type']=this.options.contentType+ |
2282 | -(this.options.encoding?'; charset='+this.options.encoding:'');if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005) |
2283 | -headers['Connection']='close';} |
2284 | -if(typeof this.options.requestHeaders=='object'){var extras=this.options.requestHeaders;if(Object.isFunction(extras.push)) |
2285 | -for(var i=0,length=extras.length;i<length;i+=2) |
2286 | -headers[extras[i]]=extras[i+1];else |
2287 | -$H(extras).each(function(pair){headers[pair.key]=pair.value});} |
2288 | -for(var name in headers) |
2289 | -this.transport.setRequestHeader(name,headers[name]);},success:function(){var status=this.getStatus();return!status||(status>=200&&status<300);},getStatus:function(){try{return this.transport.status||0;}catch(e){return 0}},respondToReadyState:function(readyState){var state=Ajax.Request.Events[readyState],response=new Ajax.Response(this);if(state=='Complete'){try{this._complete=true;(this.options['on'+response.status]||this.options['on'+(this.success()?'Success':'Failure')]||Prototype.emptyFunction)(response,response.headerJSON);}catch(e){this.dispatchException(e);} |
2290 | -var contentType=response.getHeader('Content-type');if(this.options.evalJS=='force'||(this.options.evalJS&&contentType&&contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))) |
2291 | -this.evalResponse();} |
2292 | -try{(this.options['on'+state]||Prototype.emptyFunction)(response,response.headerJSON);Ajax.Responders.dispatch('on'+state,this,response,response.headerJSON);}catch(e){this.dispatchException(e);} |
2293 | -if(state=='Complete'){this.transport.onreadystatechange=Prototype.emptyFunction;}},getHeader:function(name){try{return this.transport.getResponseHeader(name);}catch(e){return null}},evalResponse:function(){try{return eval((this.transport.responseText||'').unfilterJSON());}catch(e){this.dispatchException(e);}},dispatchException:function(exception){(this.options.onException||Prototype.emptyFunction)(this,exception);Ajax.Responders.dispatch('onException',this,exception);}});Ajax.Request.Events=['Uninitialized','Loading','Loaded','Interactive','Complete'];Ajax.Response=Class.create({initialize:function(request){this.request=request;var transport=this.transport=request.transport,readyState=this.readyState=transport.readyState;if((readyState>2&&!Prototype.Browser.IE)||readyState==4){this.status=this.getStatus();this.statusText=this.getStatusText();this.responseText=String.interpret(transport.responseText);this.headerJSON=this._getHeaderJSON();} |
2294 | -if(readyState==4){var xml=transport.responseXML;this.responseXML=xml===undefined?null:xml;this.responseJSON=this._getResponseJSON();}},status:0,statusText:'',getStatus:Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||'';}catch(e){return''}},getHeader:Ajax.Request.prototype.getHeader,getAllHeaders:function(){try{return this.getAllResponseHeaders();}catch(e){return null}},getResponseHeader:function(name){return this.transport.getResponseHeader(name);},getAllResponseHeaders:function(){return this.transport.getAllResponseHeaders();},_getHeaderJSON:function(){var json=this.getHeader('X-JSON');if(!json)return null;json=decodeURIComponent(escape(json));try{return json.evalJSON(this.request.options.sanitizeJSON);}catch(e){this.request.dispatchException(e);}},_getResponseJSON:function(){var options=this.request.options;if(!options.evalJSON||(options.evalJSON!='force'&&!(this.getHeader('Content-type')||'').include('application/json'))) |
2295 | -return null;try{return this.transport.responseText.evalJSON(options.sanitizeJSON);}catch(e){this.request.dispatchException(e);}}});Ajax.Updater=Class.create(Ajax.Request,{initialize:function($super,container,url,options){this.container={success:(container.success||container),failure:(container.failure||(container.success?null:container))};options=options||{};var onComplete=options.onComplete;options.onComplete=(function(response,param){this.updateContent(response.responseText);if(Object.isFunction(onComplete))onComplete(response,param);}).bind(this);$super(url,options);},updateContent:function(responseText){var receiver=this.container[this.success()?'success':'failure'],options=this.options;if(!options.evalScripts)responseText=responseText.stripScripts();if(receiver=$(receiver)){if(options.insertion){if(Object.isString(options.insertion)){var insertion={};insertion[options.insertion]=responseText;receiver.insert(insertion);} |
2296 | -else options.insertion(receiver,responseText);} |
2297 | -else receiver.update(responseText);} |
2298 | -if(this.success()){if(this.onComplete)this.onComplete.bind(this).defer();}}});Ajax.PeriodicalUpdater=Class.create(Ajax.Base,{initialize:function($super,container,url,options){$super(options);this.onComplete=this.options.onComplete;this.frequency=(this.options.frequency||2);this.decay=(this.options.decay||1);this.updater={};this.container=container;this.url=url;this.start();},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent();},stop:function(){this.updater.options.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments);},updateComplete:function(response){if(this.options.decay){this.decay=(response.responseText==this.lastText?this.decay*this.options.decay:1);this.lastText=response.responseText;} |
2299 | -this.timer=this.onTimerEvent.bind(this).delay(this.decay*this.frequency);},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options);}});function $(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i<length;i++) |
2300 | -elements.push($(arguments[i]));return elements;} |
2301 | -if(Object.isString(element)) |
2302 | -element=document.getElementById(element);return Element.extend(element);} |
2303 | -if(Prototype.BrowserFeatures.XPath){document._getElementsByXPath=function(expression,parentElement){var results=[];var query=document.evaluate(expression,$(parentElement)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0,length=query.snapshotLength;i<length;i++) |
2304 | -results.push(Element.extend(query.snapshotItem(i)));return results;};} |
2305 | -if(!window.Node)var Node={};if(!Node.ELEMENT_NODE){Object.extend(Node,{ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12});} |
2306 | -(function(){var element=this.Element;this.Element=function(tagName,attributes){attributes=attributes||{};tagName=tagName.toLowerCase();var cache=Element.cache;if(Prototype.Browser.IE&&attributes.name){tagName='<'+tagName+' name="'+attributes.name+'">';delete attributes.name;return Element.writeAttribute(document.createElement(tagName),attributes);} |
2307 | -if(!cache[tagName])cache[tagName]=Element.extend(document.createElement(tagName));return Element.writeAttribute(cache[tagName].cloneNode(false),attributes);};Object.extend(this.Element,element||{});}).call(window);Element.cache={};Element.Methods={visible:function(element){return $(element).style.display!='none';},toggle:function(element){element=$(element);Element[Element.visible(element)?'hide':'show'](element);return element;},hide:function(element){$(element).style.display='none';return element;},show:function(element){$(element).style.display='';return element;},remove:function(element){element=$(element);element.parentNode.removeChild(element);return element;},update:function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();if(Object.isElement(content))return element.update().insert(content);content=Object.toHTML(content);element.innerHTML=content.stripScripts();content.evalScripts.bind(content).defer();return element;},replace:function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();else if(!Object.isElement(content)){content=Object.toHTML(content);var range=element.ownerDocument.createRange();range.selectNode(element);content.evalScripts.bind(content).defer();content=range.createContextualFragment(content.stripScripts());} |
2308 | -element.parentNode.replaceChild(content,element);return element;},insert:function(element,insertions){element=$(element);if(Object.isString(insertions)||Object.isNumber(insertions)||Object.isElement(insertions)||(insertions&&(insertions.toElement||insertions.toHTML))) |
2309 | -insertions={bottom:insertions};var content,t,range;for(position in insertions){content=insertions[position];position=position.toLowerCase();t=Element._insertionTranslations[position];if(content&&content.toElement)content=content.toElement();if(Object.isElement(content)){t.insert(element,content);continue;} |
2310 | -content=Object.toHTML(content);range=element.ownerDocument.createRange();t.initializeRange(element,range);t.insert(element,range.createContextualFragment(content.stripScripts()));content.evalScripts.bind(content).defer();} |
2311 | -return element;},wrap:function(element,wrapper,attributes){element=$(element);if(Object.isElement(wrapper)) |
2312 | -$(wrapper).writeAttribute(attributes||{});else if(Object.isString(wrapper))wrapper=new Element(wrapper,attributes);else wrapper=new Element('div',wrapper);if(element.parentNode) |
2313 | -element.parentNode.replaceChild(wrapper,element);wrapper.appendChild(element);return wrapper;},inspect:function(element){element=$(element);var result='<'+element.tagName.toLowerCase();$H({'id':'id','className':'class'}).each(function(pair){var property=pair.first(),attribute=pair.last();var value=(element[property]||'').toString();if(value)result+=' '+attribute+'='+value.inspect(true);});return result+'>';},recursivelyCollect:function(element,property){element=$(element);var elements=[];while(element=element[property]) |
2314 | -if(element.nodeType==1) |
2315 | -elements.push(Element.extend(element));return elements;},ancestors:function(element){return $(element).recursivelyCollect('parentNode');},descendants:function(element){return $A($(element).getElementsByTagName('*')).each(Element.extend);},firstDescendant:function(element){element=$(element).firstChild;while(element&&element.nodeType!=1)element=element.nextSibling;return $(element);},immediateDescendants:function(element){if(!(element=$(element).firstChild))return[];while(element&&element.nodeType!=1)element=element.nextSibling;if(element)return[element].concat($(element).nextSiblings());return[];},previousSiblings:function(element){return $(element).recursivelyCollect('previousSibling');},nextSiblings:function(element){return $(element).recursivelyCollect('nextSibling');},siblings:function(element){element=$(element);return element.previousSiblings().reverse().concat(element.nextSiblings());},match:function(element,selector){if(Object.isString(selector)) |
2316 | -selector=new Selector(selector);return selector.match($(element));},up:function(element,expression,index){element=$(element);if(arguments.length==1)return $(element.parentNode);var ancestors=element.ancestors();return expression?Selector.findElement(ancestors,expression,index):ancestors[index||0];},down:function(element,expression,index){element=$(element);if(arguments.length==1)return element.firstDescendant();var descendants=element.descendants();return expression?Selector.findElement(descendants,expression,index):descendants[index||0];},previous:function(element,expression,index){element=$(element);if(arguments.length==1)return $(Selector.handlers.previousElementSibling(element));var previousSiblings=element.previousSiblings();return expression?Selector.findElement(previousSiblings,expression,index):previousSiblings[index||0];},next:function(element,expression,index){element=$(element);if(arguments.length==1)return $(Selector.handlers.nextElementSibling(element));var nextSiblings=element.nextSiblings();return expression?Selector.findElement(nextSiblings,expression,index):nextSiblings[index||0];},select:function(){var args=$A(arguments),element=$(args.shift());return Selector.findChildElements(element,args);},adjacent:function(){var args=$A(arguments),element=$(args.shift());return Selector.findChildElements(element.parentNode,args).without(element);},identify:function(element){element=$(element);var id=element.readAttribute('id'),self=arguments.callee;if(id)return id;do{id='anonymous_element_'+self.counter++}while($(id));element.writeAttribute('id',id);return id;},readAttribute:function(element,name){element=$(element);if(Prototype.Browser.IE){var t=Element._attributeTranslations.read;if(t.values[name])return t.values[name](element,name);if(t.names[name])name=t.names[name];if(name.include(':')){return(!element.attributes||!element.attributes[name])?null:element.attributes[name].value;}} |
2317 | -return element.getAttribute(name);},writeAttribute:function(element,name,value){element=$(element);var attributes={},t=Element._attributeTranslations.write;if(typeof name=='object')attributes=name;else attributes[name]=value===undefined?true:value;for(var attr in attributes){var name=t.names[attr]||attr,value=attributes[attr];if(t.values[attr])name=t.values[attr](element,value);if(value===false||value===null) |
2318 | -element.removeAttribute(name);else if(value===true) |
2319 | -element.setAttribute(name,name);else element.setAttribute(name,value);} |
2320 | -return element;},getHeight:function(element){return $(element).getDimensions().height;},getWidth:function(element){return $(element).getDimensions().width;},classNames:function(element){return new Element.ClassNames(element);},hasClassName:function(element,className){if(!(element=$(element)))return;var elementClassName=element.className;return(elementClassName.length>0&&(elementClassName==className||new RegExp("(^|\\s)"+className+"(\\s|$)").test(elementClassName)));},addClassName:function(element,className){if(!(element=$(element)))return;if(!element.hasClassName(className)) |
2321 | -element.className+=(element.className?' ':'')+className;return element;},removeClassName:function(element,className){if(!(element=$(element)))return;element.className=element.className.replace(new RegExp("(^|\\s+)"+className+"(\\s+|$)"),' ').strip();return element;},toggleClassName:function(element,className){if(!(element=$(element)))return;return element[element.hasClassName(className)?'removeClassName':'addClassName'](className);},cleanWhitespace:function(element){element=$(element);var node=element.firstChild;while(node){var nextNode=node.nextSibling;if(node.nodeType==3&&!/\S/.test(node.nodeValue)) |
2322 | -element.removeChild(node);node=nextNode;} |
2323 | -return element;},empty:function(element){return $(element).innerHTML.blank();},descendantOf:function(element,ancestor){element=$(element),ancestor=$(ancestor);if(element.compareDocumentPosition) |
2324 | -return(element.compareDocumentPosition(ancestor)&8)===8;if(element.sourceIndex&&!Prototype.Browser.Opera){var e=element.sourceIndex,a=ancestor.sourceIndex,nextAncestor=ancestor.nextSibling;if(!nextAncestor){do{ancestor=ancestor.parentNode;} |
2325 | -while(!(nextAncestor=ancestor.nextSibling)&&ancestor.parentNode);} |
2326 | -if(nextAncestor)return(e>a&&e<nextAncestor.sourceIndex);} |
2327 | -while(element=element.parentNode) |
2328 | -if(element==ancestor)return true;return false;},scrollTo:function(element){element=$(element);var pos=element.cumulativeOffset();window.scrollTo(pos[0],pos[1]);return element;},getStyle:function(element,style){element=$(element);style=style=='float'?'cssFloat':style.camelize();var value=element.style[style];if(!value){var css=document.defaultView.getComputedStyle(element,null);value=css?css[style]:null;} |
2329 | -if(style=='opacity')return value?parseFloat(value):1.0;return value=='auto'?null:value;},getOpacity:function(element){return $(element).getStyle('opacity');},setStyle:function(element,styles){element=$(element);var elementStyle=element.style,match;if(Object.isString(styles)){element.style.cssText+=';'+styles;return styles.include('opacity')?element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]):element;} |
2330 | -for(var property in styles) |
2331 | -if(property=='opacity')element.setOpacity(styles[property]);else |
2332 | -elementStyle[(property=='float'||property=='cssFloat')?(elementStyle.styleFloat===undefined?'cssFloat':'styleFloat'):property]=styles[property];return element;},setOpacity:function(element,value){element=$(element);element.style.opacity=(value==1||value==='')?'':(value<0.00001)?0:value;return element;},getDimensions:function(element){element=$(element);var display=$(element).getStyle('display');if(display!='none'&&display!=null) |
2333 | -return{width:element.offsetWidth,height:element.offsetHeight};var els=element.style;var originalVisibility=els.visibility;var originalPosition=els.position;var originalDisplay=els.display;els.visibility='hidden';els.position='absolute';els.display='block';var originalWidth=element.clientWidth;var originalHeight=element.clientHeight;els.display=originalDisplay;els.position=originalPosition;els.visibility=originalVisibility;return{width:originalWidth,height:originalHeight};},makePositioned:function(element){element=$(element);var pos=Element.getStyle(element,'position');if(pos=='static'||!pos){element._madePositioned=true;element.style.position='relative';if(window.opera){element.style.top=0;element.style.left=0;}} |
2334 | -return element;},undoPositioned:function(element){element=$(element);if(element._madePositioned){element._madePositioned=undefined;element.style.position=element.style.top=element.style.left=element.style.bottom=element.style.right='';} |
2335 | -return element;},makeClipping:function(element){element=$(element);if(element._overflow)return element;element._overflow=Element.getStyle(element,'overflow')||'auto';if(element._overflow!=='hidden') |
2336 | -element.style.overflow='hidden';return element;},undoClipping:function(element){element=$(element);if(!element._overflow)return element;element.style.overflow=element._overflow=='auto'?'':element._overflow;element._overflow=null;return element;},cumulativeOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent;}while(element);return Element._returnOffset(valueL,valueT);},positionedOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;element=element.offsetParent;if(element){if(element.tagName=='BODY')break;var p=Element.getStyle(element,'position');if(p=='relative'||p=='absolute')break;}}while(element);return Element._returnOffset(valueL,valueT);},absolutize:function(element){element=$(element);if(element.getStyle('position')=='absolute')return;var offsets=element.positionedOffset();var top=offsets[1];var left=offsets[0];var width=element.clientWidth;var height=element.clientHeight;element._originalLeft=left-parseFloat(element.style.left||0);element._originalTop=top-parseFloat(element.style.top||0);element._originalWidth=element.style.width;element._originalHeight=element.style.height;element.style.position='absolute';element.style.top=top+'px';element.style.left=left+'px';element.style.width=width+'px';element.style.height=height+'px';return element;},relativize:function(element){element=$(element);if(element.getStyle('position')=='relative')return;element.style.position='relative';var top=parseFloat(element.style.top||0)-(element._originalTop||0);var left=parseFloat(element.style.left||0)-(element._originalLeft||0);element.style.top=top+'px';element.style.left=left+'px';element.style.height=element._originalHeight;element.style.width=element._originalWidth;return element;},cumulativeScrollOffset:function(element){var valueT=0,valueL=0;do{valueT+=element.scrollTop||0;valueL+=element.scrollLeft||0;element=element.parentNode;}while(element);return Element._returnOffset(valueL,valueT);},getOffsetParent:function(element){if(element.offsetParent)return $(element.offsetParent);if(element==document.body)return $(element);while((element=element.parentNode)&&element!=document.body) |
2337 | -if(Element.getStyle(element,'position')!='static') |
2338 | -return $(element);return $(document.body);},viewportOffset:function(forElement){var valueT=0,valueL=0;var element=forElement;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;if(element.offsetParent==document.body&&Element.getStyle(element,'position')=='absolute')break;}while(element=element.offsetParent);element=forElement;do{if(!Prototype.Browser.Opera||element.tagName=='BODY'){valueT-=element.scrollTop||0;valueL-=element.scrollLeft||0;}}while(element=element.parentNode);return Element._returnOffset(valueL,valueT);},clonePosition:function(element,source){var options=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});source=$(source);var p=source.viewportOffset();element=$(element);var delta=[0,0];var parent=null;if(Element.getStyle(element,'position')=='absolute'){parent=element.getOffsetParent();delta=parent.viewportOffset();} |
2339 | -if(parent==document.body){delta[0]-=document.body.offsetLeft;delta[1]-=document.body.offsetTop;} |
2340 | -if(options.setLeft)element.style.left=(p[0]-delta[0]+options.offsetLeft)+'px';if(options.setTop)element.style.top=(p[1]-delta[1]+options.offsetTop)+'px';if(options.setWidth)element.style.width=source.offsetWidth+'px';if(options.setHeight)element.style.height=source.offsetHeight+'px';return element;}};Element.Methods.identify.counter=1;Object.extend(Element.Methods,{getElementsBySelector:Element.Methods.select,childElements:Element.Methods.immediateDescendants});Element._attributeTranslations={write:{names:{className:'class',htmlFor:'for'},values:{}}};if(!document.createRange||Prototype.Browser.Opera){Element.Methods.insert=function(element,insertions){element=$(element);if(Object.isString(insertions)||Object.isNumber(insertions)||Object.isElement(insertions)||(insertions&&(insertions.toElement||insertions.toHTML))) |
2341 | -insertions={bottom:insertions};var t=Element._insertionTranslations,content,position,pos,tagName;for(position in insertions){content=insertions[position];position=position.toLowerCase();pos=t[position];if(content&&content.toElement)content=content.toElement();if(Object.isElement(content)){pos.insert(element,content);continue;} |
2342 | -content=Object.toHTML(content);tagName=((position=='before'||position=='after')?element.parentNode:element).tagName.toUpperCase();if(t.tags[tagName]){var fragments=Element._getContentFromAnonymousElement(tagName,content.stripScripts());if(position=='top'||position=='after')fragments.reverse();fragments.each(pos.insert.curry(element));} |
2343 | -else element.insertAdjacentHTML(pos.adjacency,content.stripScripts());content.evalScripts.bind(content).defer();} |
2344 | -return element;};} |
2345 | -if(Prototype.Browser.Opera){Element.Methods._getStyle=Element.Methods.getStyle;Element.Methods.getStyle=function(element,style){switch(style){case'left':case'top':case'right':case'bottom':if(Element._getStyle(element,'position')=='static')return null;default:return Element._getStyle(element,style);}};Element.Methods._readAttribute=Element.Methods.readAttribute;Element.Methods.readAttribute=function(element,attribute){if(attribute=='title')return element.title;return Element._readAttribute(element,attribute);};} |
2346 | -else if(Prototype.Browser.IE){$w('positionedOffset getOffsetParent viewportOffset').each(function(method){Element.Methods[method]=Element.Methods[method].wrap(function(proceed,element){element=$(element);var position=element.getStyle('position');if(position!='static')return proceed(element);element.setStyle({position:'relative'});var value=proceed(element);element.setStyle({position:position});return value;});});Element.Methods.getStyle=function(element,style){element=$(element);style=(style=='float'||style=='cssFloat')?'styleFloat':style.camelize();var value=element.style[style];if(!value&&element.currentStyle)value=element.currentStyle[style];if(style=='opacity'){if(value=(element.getStyle('filter')||'').match(/alpha\(opacity=(.*)\)/)) |
2347 | -if(value[1])return parseFloat(value[1])/100;return 1.0;} |
2348 | -if(value=='auto'){if((style=='width'||style=='height')&&(element.getStyle('display')!='none')) |
2349 | -return element['offset'+style.capitalize()]+'px';return null;} |
2350 | -return value;};Element.Methods.setOpacity=function(element,value){function stripAlpha(filter){return filter.replace(/alpha\([^\)]*\)/gi,'');} |
2351 | -element=$(element);var currentStyle=element.currentStyle;if((currentStyle&&!currentStyle.hasLayout)||(!currentStyle&&element.style.zoom=='normal')) |
2352 | -element.style.zoom=1;var filter=element.getStyle('filter'),style=element.style;if(value==1||value===''){(filter=stripAlpha(filter))?style.filter=filter:style.removeAttribute('filter');return element;}else if(value<0.00001)value=0;style.filter=stripAlpha(filter)+'alpha(opacity='+(value*100)+')';return element;};Element._attributeTranslations={read:{names:{'class':'className','for':'htmlFor'},values:{_getAttr:function(element,attribute){return element.getAttribute(attribute,2);},_getAttrNode:function(element,attribute){var node=element.getAttributeNode(attribute);return node?node.value:"";},_getEv:function(element,attribute){var attribute=element.getAttribute(attribute);return attribute?attribute.toString().slice(23,-2):null;},_flag:function(element,attribute){return $(element).hasAttribute(attribute)?attribute:null;},style:function(element){return element.style.cssText.toLowerCase();},title:function(element){return element.title;}}}};Element._attributeTranslations.write={names:Object.clone(Element._attributeTranslations.read.names),values:{checked:function(element,value){element.checked=!!value;},style:function(element,value){element.style.cssText=value?value:'';}}};Element._attributeTranslations.has={};$w('colSpan rowSpan vAlign dateTime accessKey tabIndex '+'encType maxLength readOnly longDesc').each(function(attr){Element._attributeTranslations.write.names[attr.toLowerCase()]=attr;Element._attributeTranslations.has[attr.toLowerCase()]=attr;});(function(v){Object.extend(v,{href:v._getAttr,src:v._getAttr,type:v._getAttr,action:v._getAttrNode,disabled:v._flag,checked:v._flag,readonly:v._flag,multiple:v._flag,onload:v._getEv,onunload:v._getEv,onclick:v._getEv,ondblclick:v._getEv,onmousedown:v._getEv,onmouseup:v._getEv,onmouseover:v._getEv,onmousemove:v._getEv,onmouseout:v._getEv,onfocus:v._getEv,onblur:v._getEv,onkeypress:v._getEv,onkeydown:v._getEv,onkeyup:v._getEv,onsubmit:v._getEv,onreset:v._getEv,onselect:v._getEv,onchange:v._getEv});})(Element._attributeTranslations.read.values);} |
2353 | -else if(Prototype.Browser.Gecko&&/rv:1\.8\.0/.test(navigator.userAgent)){Element.Methods.setOpacity=function(element,value){element=$(element);element.style.opacity=(value==1)?0.999999:(value==='')?'':(value<0.00001)?0:value;return element;};} |
2354 | -else if(Prototype.Browser.WebKit){Element.Methods.setOpacity=function(element,value){element=$(element);element.style.opacity=(value==1||value==='')?'':(value<0.00001)?0:value;if(value==1) |
2355 | -if(element.tagName=='IMG'&&element.width){element.width++;element.width--;}else try{var n=document.createTextNode(' ');element.appendChild(n);element.removeChild(n);}catch(e){} |
2356 | -return element;};Element.Methods.cumulativeOffset=function(element){var valueT=0,valueL=0;do{valueT+=element.offsetTop||0;valueL+=element.offsetLeft||0;if(element.offsetParent==document.body) |
2357 | -if(Element.getStyle(element,'position')=='absolute')break;element=element.offsetParent;}while(element);return Element._returnOffset(valueL,valueT);};} |
2358 | -if(Prototype.Browser.IE||Prototype.Browser.Opera){Element.Methods.update=function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();if(Object.isElement(content))return element.update().insert(content);content=Object.toHTML(content);var tagName=element.tagName.toUpperCase();if(tagName in Element._insertionTranslations.tags){$A(element.childNodes).each(function(node){element.removeChild(node)});Element._getContentFromAnonymousElement(tagName,content.stripScripts()).each(function(node){element.appendChild(node)});} |
2359 | -else element.innerHTML=content.stripScripts();content.evalScripts.bind(content).defer();return element;};} |
2360 | -if(document.createElement('div').outerHTML){Element.Methods.replace=function(element,content){element=$(element);if(content&&content.toElement)content=content.toElement();if(Object.isElement(content)){element.parentNode.replaceChild(content,element);return element;} |
2361 | -content=Object.toHTML(content);var parent=element.parentNode,tagName=parent.tagName.toUpperCase();if(Element._insertionTranslations.tags[tagName]){var nextSibling=element.next();var fragments=Element._getContentFromAnonymousElement(tagName,content.stripScripts());parent.removeChild(element);if(nextSibling) |
2362 | -fragments.each(function(node){parent.insertBefore(node,nextSibling)});else |
2363 | -fragments.each(function(node){parent.appendChild(node)});} |
2364 | -else element.outerHTML=content.stripScripts();content.evalScripts.bind(content).defer();return element;};} |
2365 | -Element._returnOffset=function(l,t){var result=[l,t];result.left=l;result.top=t;return result;};Element._getContentFromAnonymousElement=function(tagName,html){var div=new Element('div'),t=Element._insertionTranslations.tags[tagName];div.innerHTML=t[0]+html+t[1];t[2].times(function(){div=div.firstChild});return $A(div.childNodes);};Element._insertionTranslations={before:{adjacency:'beforeBegin',insert:function(element,node){element.parentNode.insertBefore(node,element);},initializeRange:function(element,range){range.setStartBefore(element);}},top:{adjacency:'afterBegin',insert:function(element,node){element.insertBefore(node,element.firstChild);},initializeRange:function(element,range){range.selectNodeContents(element);range.collapse(true);}},bottom:{adjacency:'beforeEnd',insert:function(element,node){element.appendChild(node);}},after:{adjacency:'afterEnd',insert:function(element,node){element.parentNode.insertBefore(node,element.nextSibling);},initializeRange:function(element,range){range.setStartAfter(element);}},tags:{TABLE:['<table>','</table>',1],TBODY:['<table><tbody>','</tbody></table>',2],TR:['<table><tbody><tr>','</tr></tbody></table>',3],TD:['<table><tbody><tr><td>','</td></tr></tbody></table>',4],SELECT:['<select>','</select>',1]}};(function(){this.bottom.initializeRange=this.top.initializeRange;Object.extend(this.tags,{THEAD:this.tags.TBODY,TFOOT:this.tags.TBODY,TH:this.tags.TD});}).call(Element._insertionTranslations);Element.Methods.Simulated={hasAttribute:function(element,attribute){attribute=Element._attributeTranslations.has[attribute]||attribute;var node=$(element).getAttributeNode(attribute);return node&&node.specified;}};Element.Methods.ByTag={};Object.extend(Element,Element.Methods);if(!Prototype.BrowserFeatures.ElementExtensions&&document.createElement('div').__proto__){window.HTMLElement={};window.HTMLElement.prototype=document.createElement('div').__proto__;Prototype.BrowserFeatures.ElementExtensions=true;} |
2366 | -Element.extend=(function(){if(Prototype.BrowserFeatures.SpecificElementExtensions) |
2367 | -return Prototype.K;var Methods={},ByTag=Element.Methods.ByTag;var extend=Object.extend(function(element){if(!element||element._extendedByPrototype||element.nodeType!=1||element==window)return element;var methods=Object.clone(Methods),tagName=element.tagName,property,value;if(ByTag[tagName])Object.extend(methods,ByTag[tagName]);for(property in methods){value=methods[property];if(Object.isFunction(value)&&!(property in element)) |
2368 | -element[property]=value.methodize();} |
2369 | -element._extendedByPrototype=Prototype.emptyFunction;return element;},{refresh:function(){if(!Prototype.BrowserFeatures.ElementExtensions){Object.extend(Methods,Element.Methods);Object.extend(Methods,Element.Methods.Simulated);}}});extend.refresh();return extend;})();Element.hasAttribute=function(element,attribute){if(element.hasAttribute)return element.hasAttribute(attribute);return Element.Methods.Simulated.hasAttribute(element,attribute);};Element.addMethods=function(methods){var F=Prototype.BrowserFeatures,T=Element.Methods.ByTag;if(!methods){Object.extend(Form,Form.Methods);Object.extend(Form.Element,Form.Element.Methods);Object.extend(Element.Methods.ByTag,{"FORM":Object.clone(Form.Methods),"INPUT":Object.clone(Form.Element.Methods),"SELECT":Object.clone(Form.Element.Methods),"TEXTAREA":Object.clone(Form.Element.Methods)});} |
2370 | -if(arguments.length==2){var tagName=methods;methods=arguments[1];} |
2371 | -if(!tagName)Object.extend(Element.Methods,methods||{});else{if(Object.isArray(tagName))tagName.each(extend);else extend(tagName);} |
2372 | -function extend(tagName){tagName=tagName.toUpperCase();if(!Element.Methods.ByTag[tagName]) |
2373 | -Element.Methods.ByTag[tagName]={};Object.extend(Element.Methods.ByTag[tagName],methods);} |
2374 | -function copy(methods,destination,onlyIfAbsent){onlyIfAbsent=onlyIfAbsent||false;for(var property in methods){var value=methods[property];if(!Object.isFunction(value))continue;if(!onlyIfAbsent||!(property in destination)) |
2375 | -destination[property]=value.methodize();}} |
2376 | -function findDOMClass(tagName){var klass;var trans={"OPTGROUP":"OptGroup","TEXTAREA":"TextArea","P":"Paragraph","FIELDSET":"FieldSet","UL":"UList","OL":"OList","DL":"DList","DIR":"Directory","H1":"Heading","H2":"Heading","H3":"Heading","H4":"Heading","H5":"Heading","H6":"Heading","Q":"Quote","INS":"Mod","DEL":"Mod","A":"Anchor","IMG":"Image","CAPTION":"TableCaption","COL":"TableCol","COLGROUP":"TableCol","THEAD":"TableSection","TFOOT":"TableSection","TBODY":"TableSection","TR":"TableRow","TH":"TableCell","TD":"TableCell","FRAMESET":"FrameSet","IFRAME":"IFrame"};if(trans[tagName])klass='HTML'+trans[tagName]+'Element';if(window[klass])return window[klass];klass='HTML'+tagName+'Element';if(window[klass])return window[klass];klass='HTML'+tagName.capitalize()+'Element';if(window[klass])return window[klass];window[klass]={};window[klass].prototype=document.createElement(tagName).__proto__;return window[klass];} |
2377 | -if(F.ElementExtensions){copy(Element.Methods,HTMLElement.prototype);copy(Element.Methods.Simulated,HTMLElement.prototype,true);} |
2378 | -if(F.SpecificElementExtensions){for(var tag in Element.Methods.ByTag){var klass=findDOMClass(tag);if(Object.isUndefined(klass))continue;copy(T[tag],klass.prototype);}} |
2379 | -Object.extend(Element,Element.Methods);delete Element.ByTag;if(Element.extend.refresh)Element.extend.refresh();Element.cache={};};document.viewport={getDimensions:function(){var dimensions={};$w('width height').each(function(d){var D=d.capitalize();dimensions[d]=self['inner'+D]||(document.documentElement['client'+D]||document.body['client'+D]);});return dimensions;},getWidth:function(){return this.getDimensions().width;},getHeight:function(){return this.getDimensions().height;},getScrollOffsets:function(){return Element._returnOffset(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop);}};var Selector=Class.create({initialize:function(expression){this.expression=expression.strip();this.compileMatcher();},compileMatcher:function(){if(Prototype.BrowserFeatures.XPath&&!(/(\[[\w-]*?:|:checked)/).test(this.expression)) |
2380 | -return this.compileXPathMatcher();var e=this.expression,ps=Selector.patterns,h=Selector.handlers,c=Selector.criteria,le,p,m;if(Selector._cache[e]){this.matcher=Selector._cache[e];return;} |
2381 | -this.matcher=["this.matcher = function(root) {","var r = root, h = Selector.handlers, c = false, n;"];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){this.matcher.push(Object.isFunction(c[i])?c[i](m):new Template(c[i]).evaluate(m));e=e.replace(m[0],'');break;}}} |
2382 | -this.matcher.push("return h.unique(n);\n}");eval(this.matcher.join('\n'));Selector._cache[this.expression]=this.matcher;},compileXPathMatcher:function(){var e=this.expression,ps=Selector.patterns,x=Selector.xpath,le,m;if(Selector._cache[e]){this.xpath=Selector._cache[e];return;} |
2383 | -this.matcher=['.//*'];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in ps){if(m=e.match(ps[i])){this.matcher.push(Object.isFunction(x[i])?x[i](m):new Template(x[i]).evaluate(m));e=e.replace(m[0],'');break;}}} |
2384 | -this.xpath=this.matcher.join('');Selector._cache[this.expression]=this.xpath;},findElements:function(root){root=root||document;if(this.xpath)return document._getElementsByXPath(this.xpath,root);return this.matcher(root);},match:function(element){this.tokens=[];var e=this.expression,ps=Selector.patterns,as=Selector.assertions;var le,p,m;while(e&&le!==e&&(/\S/).test(e)){le=e;for(var i in ps){p=ps[i];if(m=e.match(p)){if(as[i]){this.tokens.push([i,Object.clone(m)]);e=e.replace(m[0],'');}else{return this.findElements(document).include(element);}}}} |
2385 | -var match=true,name,matches;for(var i=0,token;token=this.tokens[i];i++){name=token[0],matches=token[1];if(!Selector.assertions[name](element,matches)){match=false;break;}} |
2386 | -return match;},toString:function(){return this.expression;},inspect:function(){return"#<Selector:"+this.expression.inspect()+">";}});Object.extend(Selector,{_cache:{},xpath:{descendant:"//*",child:"/*",adjacent:"/following-sibling::*[1]",laterSibling:'/following-sibling::*',tagName:function(m){if(m[1]=='*')return'';return"[local-name()='"+m[1].toLowerCase()+"' or local-name()='"+m[1].toUpperCase()+"']";},className:"[contains(concat(' ', @class, ' '), ' #{1} ')]",id:"[@id='#{1}']",attrPresence:"[@#{1}]",attr:function(m){m[3]=m[5]||m[6];return new Template(Selector.xpath.operators[m[2]]).evaluate(m);},pseudo:function(m){var h=Selector.xpath.pseudos[m[1]];if(!h)return'';if(Object.isFunction(h))return h(m);return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m);},operators:{'=':"[@#{1}='#{3}']",'!=':"[@#{1}!='#{3}']",'^=':"[starts-with(@#{1}, '#{3}')]",'$=':"[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']",'*=':"[contains(@#{1}, '#{3}')]",'~=':"[contains(concat(' ', @#{1}, ' '), ' #{3} ')]",'|=':"[contains(concat('-', @#{1}, '-'), '-#{3}-')]"},pseudos:{'first-child':'[not(preceding-sibling::*)]','last-child':'[not(following-sibling::*)]','only-child':'[not(preceding-sibling::* or following-sibling::*)]','empty':"[count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\r\n', '') = '')]",'checked':"[@checked]",'disabled':"[@disabled]",'enabled':"[not(@disabled)]",'not':function(m){var e=m[6],p=Selector.patterns,x=Selector.xpath,le,m,v;var exclusion=[];while(e&&le!=e&&(/\S/).test(e)){le=e;for(var i in p){if(m=e.match(p[i])){v=Object.isFunction(x[i])?x[i](m):new Template(x[i]).evaluate(m);exclusion.push("("+v.substring(1,v.length-1)+")");e=e.replace(m[0],'');break;}}} |
2387 | -return"[not("+exclusion.join(" and ")+")]";},'nth-child':function(m){return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ",m);},'nth-last-child':function(m){return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ",m);},'nth-of-type':function(m){return Selector.xpath.pseudos.nth("position() ",m);},'nth-last-of-type':function(m){return Selector.xpath.pseudos.nth("(last() + 1 - position()) ",m);},'first-of-type':function(m){m[6]="1";return Selector.xpath.pseudos['nth-of-type'](m);},'last-of-type':function(m){m[6]="1";return Selector.xpath.pseudos['nth-last-of-type'](m);},'only-of-type':function(m){var p=Selector.xpath.pseudos;return p['first-of-type'](m)+p['last-of-type'](m);},nth:function(fragment,m){var mm,formula=m[6],predicate;if(formula=='even')formula='2n+0';if(formula=='odd')formula='2n+1';if(mm=formula.match(/^(\d+)$/)) |
2388 | -return'['+fragment+"= "+mm[1]+']';if(mm=formula.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(mm[1]=="-")mm[1]=-1;var a=mm[1]?Number(mm[1]):1;var b=mm[2]?Number(mm[2]):0;predicate="[((#{fragment} - #{b}) mod #{a} = 0) and "+"((#{fragment} - #{b}) div #{a} >= 0)]";return new Template(predicate).evaluate({fragment:fragment,a:a,b:b});}}}},criteria:{tagName:'n = h.tagName(n, r, "#{1}", c); c = false;',className:'n = h.className(n, r, "#{1}", c); c = false;',id:'n = h.id(n, r, "#{1}", c); c = false;',attrPresence:'n = h.attrPresence(n, r, "#{1}"); c = false;',attr:function(m){m[3]=(m[5]||m[6]);return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}"); c = false;').evaluate(m);},pseudo:function(m){if(m[6])m[6]=m[6].replace(/"/g,'\\"');return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(m);},descendant:'c = "descendant";',child:'c = "child";',adjacent:'c = "adjacent";',laterSibling:'c = "laterSibling";'},patterns:{laterSibling:/^\s*~\s*/,child:/^\s*>\s*/,adjacent:/^\s*\+\s*/,descendant:/^\s/,tagName:/^\s*(\*|[\w\-]+)(\b|$)?/,id:/^#([\w\-\*]+)(\b|$)/,className:/^\.([\w\-\*]+)(\b|$)/,pseudo:/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s)|(?=:))/,attrPresence:/^\[([\w]+)\]/,attr:/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/},assertions:{tagName:function(element,matches){return matches[1].toUpperCase()==element.tagName.toUpperCase();},className:function(element,matches){return Element.hasClassName(element,matches[1]);},id:function(element,matches){return element.id===matches[1];},attrPresence:function(element,matches){return Element.hasAttribute(element,matches[1]);},attr:function(element,matches){var nodeValue=Element.readAttribute(element,matches[1]);return Selector.operators[matches[2]](nodeValue,matches[3]);}},handlers:{concat:function(a,b){for(var i=0,node;node=b[i];i++) |
2389 | -a.push(node);return a;},mark:function(nodes){for(var i=0,node;node=nodes[i];i++) |
2390 | -node._counted=true;return nodes;},unmark:function(nodes){for(var i=0,node;node=nodes[i];i++) |
2391 | -node._counted=undefined;return nodes;},index:function(parentNode,reverse,ofType){parentNode._counted=true;if(reverse){for(var nodes=parentNode.childNodes,i=nodes.length-1,j=1;i>=0;i--){var node=nodes[i];if(node.nodeType==1&&(!ofType||node._counted))node.nodeIndex=j++;}}else{for(var i=0,j=1,nodes=parentNode.childNodes;node=nodes[i];i++) |
2392 | -if(node.nodeType==1&&(!ofType||node._counted))node.nodeIndex=j++;}},unique:function(nodes){if(nodes.length==0)return nodes;var results=[],n;for(var i=0,l=nodes.length;i<l;i++) |
2393 | -if(!(n=nodes[i])._counted){n._counted=true;results.push(Element.extend(n));} |
2394 | -return Selector.handlers.unmark(results);},descendant:function(nodes){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++) |
2395 | -h.concat(results,node.getElementsByTagName('*'));return results;},child:function(nodes){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++){for(var j=0,children=[],child;child=node.childNodes[j];j++) |
2396 | -if(child.nodeType==1&&child.tagName!='!')results.push(child);} |
2397 | -return results;},adjacent:function(nodes){for(var i=0,results=[],node;node=nodes[i];i++){var next=this.nextElementSibling(node);if(next)results.push(next);} |
2398 | -return results;},laterSibling:function(nodes){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++) |
2399 | -h.concat(results,Element.nextSiblings(node));return results;},nextElementSibling:function(node){while(node=node.nextSibling) |
2400 | -if(node.nodeType==1)return node;return null;},previousElementSibling:function(node){while(node=node.previousSibling) |
2401 | -if(node.nodeType==1)return node;return null;},tagName:function(nodes,root,tagName,combinator){tagName=tagName.toUpperCase();var results=[],h=Selector.handlers;if(nodes){if(combinator){if(combinator=="descendant"){for(var i=0,node;node=nodes[i];i++) |
2402 | -h.concat(results,node.getElementsByTagName(tagName));return results;}else nodes=this[combinator](nodes);if(tagName=="*")return nodes;} |
2403 | -for(var i=0,node;node=nodes[i];i++) |
2404 | -if(node.tagName.toUpperCase()==tagName)results.push(node);return results;}else return root.getElementsByTagName(tagName);},id:function(nodes,root,id,combinator){var targetNode=$(id),h=Selector.handlers;if(!targetNode)return[];if(!nodes&&root==document)return[targetNode];if(nodes){if(combinator){if(combinator=='child'){for(var i=0,node;node=nodes[i];i++) |
2405 | -if(targetNode.parentNode==node)return[targetNode];}else if(combinator=='descendant'){for(var i=0,node;node=nodes[i];i++) |
2406 | -if(Element.descendantOf(targetNode,node))return[targetNode];}else if(combinator=='adjacent'){for(var i=0,node;node=nodes[i];i++) |
2407 | -if(Selector.handlers.previousElementSibling(targetNode)==node) |
2408 | -return[targetNode];}else nodes=h[combinator](nodes);} |
2409 | -for(var i=0,node;node=nodes[i];i++) |
2410 | -if(node==targetNode)return[targetNode];return[];} |
2411 | -return(targetNode&&Element.descendantOf(targetNode,root))?[targetNode]:[];},className:function(nodes,root,className,combinator){if(nodes&&combinator)nodes=this[combinator](nodes);return Selector.handlers.byClassName(nodes,root,className);},byClassName:function(nodes,root,className){if(!nodes)nodes=Selector.handlers.descendant([root]);var needle=' '+className+' ';for(var i=0,results=[],node,nodeClassName;node=nodes[i];i++){nodeClassName=node.className;if(nodeClassName.length==0)continue;if(nodeClassName==className||(' '+nodeClassName+' ').include(needle)) |
2412 | -results.push(node);} |
2413 | -return results;},attrPresence:function(nodes,root,attr){if(!nodes)nodes=root.getElementsByTagName("*");var results=[];for(var i=0,node;node=nodes[i];i++) |
2414 | -if(Element.hasAttribute(node,attr))results.push(node);return results;},attr:function(nodes,root,attr,value,operator){if(!nodes)nodes=root.getElementsByTagName("*");var handler=Selector.operators[operator],results=[];for(var i=0,node;node=nodes[i];i++){var nodeValue=Element.readAttribute(node,attr);if(nodeValue===null)continue;if(handler(nodeValue,value))results.push(node);} |
2415 | -return results;},pseudo:function(nodes,name,value,root,combinator){if(nodes&&combinator)nodes=this[combinator](nodes);if(!nodes)nodes=root.getElementsByTagName("*");return Selector.pseudos[name](nodes,value,root);}},pseudos:{'first-child':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++){if(Selector.handlers.previousElementSibling(node))continue;results.push(node);} |
2416 | -return results;},'last-child':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++){if(Selector.handlers.nextElementSibling(node))continue;results.push(node);} |
2417 | -return results;},'only-child':function(nodes,value,root){var h=Selector.handlers;for(var i=0,results=[],node;node=nodes[i];i++) |
2418 | -if(!h.previousElementSibling(node)&&!h.nextElementSibling(node)) |
2419 | -results.push(node);return results;},'nth-child':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root);},'nth-last-child':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,true);},'nth-of-type':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,false,true);},'nth-last-of-type':function(nodes,formula,root){return Selector.pseudos.nth(nodes,formula,root,true,true);},'first-of-type':function(nodes,formula,root){return Selector.pseudos.nth(nodes,"1",root,false,true);},'last-of-type':function(nodes,formula,root){return Selector.pseudos.nth(nodes,"1",root,true,true);},'only-of-type':function(nodes,formula,root){var p=Selector.pseudos;return p['last-of-type'](p['first-of-type'](nodes,formula,root),formula,root);},getIndices:function(a,b,total){if(a==0)return b>0?[b]:[];return $R(1,total).inject([],function(memo,i){if(0==(i-b)%a&&(i-b)/a>=0)memo.push(i);return memo;});},nth:function(nodes,formula,root,reverse,ofType){if(nodes.length==0)return[];if(formula=='even')formula='2n+0';if(formula=='odd')formula='2n+1';var h=Selector.handlers,results=[],indexed=[],m;h.mark(nodes);for(var i=0,node;node=nodes[i];i++){if(!node.parentNode._counted){h.index(node.parentNode,reverse,ofType);indexed.push(node.parentNode);}} |
2420 | -if(formula.match(/^\d+$/)){formula=Number(formula);for(var i=0,node;node=nodes[i];i++) |
2421 | -if(node.nodeIndex==formula)results.push(node);}else if(m=formula.match(/^(-?\d*)?n(([+-])(\d+))?/)){if(m[1]=="-")m[1]=-1;var a=m[1]?Number(m[1]):1;var b=m[2]?Number(m[2]):0;var indices=Selector.pseudos.getIndices(a,b,nodes.length);for(var i=0,node,l=indices.length;node=nodes[i];i++){for(var j=0;j<l;j++) |
2422 | -if(node.nodeIndex==indices[j])results.push(node);}} |
2423 | -h.unmark(nodes);h.unmark(indexed);return results;},'empty':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++){if(node.tagName=='!'||(node.firstChild&&!node.innerHTML.match(/^\s*$/)))continue;results.push(node);} |
2424 | -return results;},'not':function(nodes,selector,root){var h=Selector.handlers,selectorType,m;var exclusions=new Selector(selector).findElements(root);h.mark(exclusions);for(var i=0,results=[],node;node=nodes[i];i++) |
2425 | -if(!node._counted)results.push(node);h.unmark(exclusions);return results;},'enabled':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++) |
2426 | -if(!node.disabled)results.push(node);return results;},'disabled':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++) |
2427 | -if(node.disabled)results.push(node);return results;},'checked':function(nodes,value,root){for(var i=0,results=[],node;node=nodes[i];i++) |
2428 | -if(node.checked)results.push(node);return results;}},operators:{'=':function(nv,v){return nv==v;},'!=':function(nv,v){return nv!=v;},'^=':function(nv,v){return nv.startsWith(v);},'$=':function(nv,v){return nv.endsWith(v);},'*=':function(nv,v){return nv.include(v);},'~=':function(nv,v){return(' '+nv+' ').include(' '+v+' ');},'|=':function(nv,v){return('-'+nv.toUpperCase()+'-').include('-'+v.toUpperCase()+'-');}},matchElements:function(elements,expression){var matches=new Selector(expression).findElements(),h=Selector.handlers;h.mark(matches);for(var i=0,results=[],element;element=elements[i];i++) |
2429 | -if(element._counted)results.push(element);h.unmark(matches);return results;},findElement:function(elements,expression,index){if(Object.isNumber(expression)){index=expression;expression=false;} |
2430 | -return Selector.matchElements(elements,expression||'*')[index||0];},findChildElements:function(element,expressions){var exprs=expressions.join(','),expressions=[];exprs.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/,function(m){expressions.push(m[1].strip());});var results=[],h=Selector.handlers;for(var i=0,l=expressions.length,selector;i<l;i++){selector=new Selector(expressions[i].strip());h.concat(results,selector.findElements(element));} |
2431 | -return(l>1)?h.unique(results):results;}});function $$(){return Selector.findChildElements(document,$A(arguments));} |
2432 | -var Form={reset:function(form){$(form).reset();return form;},serializeElements:function(elements,options){if(typeof options!='object')options={hash:!!options};else if(options.hash===undefined)options.hash=true;var key,value,submitted=false,submit=options.submit;var data=elements.inject({},function(result,element){if(!element.disabled&&element.name){key=element.name;value=$(element).getValue();if(value!=null&&(element.type!='submit'||(!submitted&&submit!==false&&(!submit||key==submit)&&(submitted=true)))){if(key in result){if(!Object.isArray(result[key]))result[key]=[result[key]];result[key].push(value);} |
2433 | -else result[key]=value;}} |
2434 | -return result;});return options.hash?data:Object.toQueryString(data);}};Form.Methods={serialize:function(form,options){return Form.serializeElements(Form.getElements(form),options);},getElements:function(form){return $A($(form).getElementsByTagName('*')).inject([],function(elements,child){if(Form.Element.Serializers[child.tagName.toLowerCase()]) |
2435 | -elements.push(Element.extend(child));return elements;});},getInputs:function(form,typeName,name){form=$(form);var inputs=form.getElementsByTagName('input');if(!typeName&&!name)return $A(inputs).map(Element.extend);for(var i=0,matchingInputs=[],length=inputs.length;i<length;i++){var input=inputs[i];if((typeName&&input.type!=typeName)||(name&&input.name!=name)) |
2436 | -continue;matchingInputs.push(Element.extend(input));} |
2437 | -return matchingInputs;},disable:function(form){form=$(form);Form.getElements(form).invoke('disable');return form;},enable:function(form){form=$(form);Form.getElements(form).invoke('enable');return form;},findFirstElement:function(form){var elements=$(form).getElements().findAll(function(element){return'hidden'!=element.type&&!element.disabled;});var firstByIndex=elements.findAll(function(element){return element.hasAttribute('tabIndex')&&element.tabIndex>=0;}).sortBy(function(element){return element.tabIndex}).first();return firstByIndex?firstByIndex:elements.find(function(element){return['input','select','textarea'].include(element.tagName.toLowerCase());});},focusFirstElement:function(form){form=$(form);form.findFirstElement().activate();return form;},request:function(form,options){form=$(form),options=Object.clone(options||{});var params=options.parameters,action=form.readAttribute('action')||'';if(action.blank())action=window.location.href;options.parameters=form.serialize(true);if(params){if(Object.isString(params))params=params.toQueryParams();Object.extend(options.parameters,params);} |
2438 | -if(form.hasAttribute('method')&&!options.method) |
2439 | -options.method=form.method;return new Ajax.Request(action,options);}};Form.Element={focus:function(element){$(element).focus();return element;},select:function(element){$(element).select();return element;}};Form.Element.Methods={serialize:function(element){element=$(element);if(!element.disabled&&element.name){var value=element.getValue();if(value!=undefined){var pair={};pair[element.name]=value;return Object.toQueryString(pair);}} |
2440 | -return'';},getValue:function(element){element=$(element);var method=element.tagName.toLowerCase();return Form.Element.Serializers[method](element);},setValue:function(element,value){element=$(element);var method=element.tagName.toLowerCase();Form.Element.Serializers[method](element,value);return element;},clear:function(element){$(element).value='';return element;},present:function(element){return $(element).value!='';},activate:function(element){element=$(element);try{element.focus();if(element.select&&(element.tagName.toLowerCase()!='input'||!['button','reset','submit'].include(element.type))) |
2441 | -element.select();}catch(e){} |
2442 | -return element;},disable:function(element){element=$(element);element.blur();element.disabled=true;return element;},enable:function(element){element=$(element);element.disabled=false;return element;}};var Field=Form.Element;var $F=Form.Element.Methods.getValue;Form.Element.Serializers={input:function(element,value){switch(element.type.toLowerCase()){case'checkbox':case'radio':return Form.Element.Serializers.inputSelector(element,value);default:return Form.Element.Serializers.textarea(element,value);}},inputSelector:function(element,value){if(value===undefined)return element.checked?element.value:null;else element.checked=!!value;},textarea:function(element,value){if(value===undefined)return element.value;else element.value=value;},select:function(element,index){if(index===undefined) |
2443 | -return this[element.type=='select-one'?'selectOne':'selectMany'](element);else{var opt,value,single=!Object.isArray(index);for(var i=0,length=element.length;i<length;i++){opt=element.options[i];value=this.optionValue(opt);if(single){if(value==index){opt.selected=true;return;}} |
2444 | -else opt.selected=index.include(value);}}},selectOne:function(element){var index=element.selectedIndex;return index>=0?this.optionValue(element.options[index]):null;},selectMany:function(element){var values,length=element.length;if(!length)return null;for(var i=0,values=[];i<length;i++){var opt=element.options[i];if(opt.selected)values.push(this.optionValue(opt));} |
2445 | -return values;},optionValue:function(opt){return Element.extend(opt).hasAttribute('value')?opt.value:opt.text;}};Abstract.TimedObserver=Class.create(PeriodicalExecuter,{initialize:function($super,element,frequency,callback){$super(callback,frequency);this.element=$(element);this.lastValue=this.getValue();},execute:function(){var value=this.getValue();if(Object.isString(this.lastValue)&&Object.isString(value)?this.lastValue!=value:String(this.lastValue)!=String(value)){this.callback(this.element,value);this.lastValue=value;}}});Form.Element.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element);}});Form.Observer=Class.create(Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element);}});Abstract.EventObserver=Class.create({initialize:function(element,callback){this.element=$(element);this.callback=callback;this.lastValue=this.getValue();if(this.element.tagName.toLowerCase()=='form') |
2446 | -this.registerFormCallbacks();else |
2447 | -this.registerCallback(this.element);},onElementEvent:function(){var value=this.getValue();if(this.lastValue!=value){this.callback(this.element,value);this.lastValue=value;}},registerFormCallbacks:function(){Form.getElements(this.element).each(this.registerCallback,this);},registerCallback:function(element){if(element.type){switch(element.type.toLowerCase()){case'checkbox':case'radio':Event.observe(element,'click',this.onElementEvent.bind(this));break;default:Event.observe(element,'change',this.onElementEvent.bind(this));break;}}}});Form.Element.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element);}});Form.EventObserver=Class.create(Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element);}});if(!window.Event)var Event={};Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,KEY_INSERT:45,cache:{},relatedTarget:function(event){var element;switch(event.type){case'mouseover':element=event.fromElement;break;case'mouseout':element=event.toElement;break;default:return null;} |
2448 | -return Element.extend(element);}});Event.Methods=(function(){var isButton;if(Prototype.Browser.IE){var buttonMap={0:1,1:4,2:2};isButton=function(event,code){return event.button==buttonMap[code];};}else if(Prototype.Browser.WebKit){isButton=function(event,code){switch(code){case 0:return event.which==1&&!event.metaKey;case 1:return event.which==1&&event.metaKey;default:return false;}};}else{isButton=function(event,code){return event.which?(event.which===code+1):(event.button===code);};} |
2449 | -return{isLeftClick:function(event){return isButton(event,0)},isMiddleClick:function(event){return isButton(event,1)},isRightClick:function(event){return isButton(event,2)},element:function(event){var node=Event.extend(event).target;return Element.extend(node.nodeType==Node.TEXT_NODE?node.parentNode:node);},findElement:function(event,expression){var element=Event.element(event);return element.match(expression)?element:element.up(expression);},pointer:function(event){return{x:event.pageX||(event.clientX+ |
2450 | -(document.documentElement.scrollLeft||document.body.scrollLeft)),y:event.pageY||(event.clientY+ |
2451 | -(document.documentElement.scrollTop||document.body.scrollTop))};},pointerX:function(event){return Event.pointer(event).x},pointerY:function(event){return Event.pointer(event).y},stop:function(event){Event.extend(event);event.preventDefault();event.stopPropagation();event.stopped=true;}};})();Event.extend=(function(){var methods=Object.keys(Event.Methods).inject({},function(m,name){m[name]=Event.Methods[name].methodize();return m;});if(Prototype.Browser.IE){Object.extend(methods,{stopPropagation:function(){this.cancelBubble=true},preventDefault:function(){this.returnValue=false},inspect:function(){return"[object Event]"}});return function(event){if(!event)return false;if(event._extendedByPrototype)return event;event._extendedByPrototype=Prototype.emptyFunction;var pointer=Event.pointer(event);Object.extend(event,{target:event.srcElement,relatedTarget:Event.relatedTarget(event),pageX:pointer.x,pageY:pointer.y});return Object.extend(event,methods);};}else{Event.prototype=Event.prototype||document.createEvent("HTMLEvents").__proto__;Object.extend(Event.prototype,methods);return Prototype.K;}})();Object.extend(Event,(function(){var cache=Event.cache;function getEventID(element){if(element._eventID)return element._eventID;arguments.callee.id=arguments.callee.id||1;return element._eventID=++arguments.callee.id;} |
2452 | -function getDOMEventName(eventName){if(eventName&&eventName.include(':'))return"dataavailable";return eventName;} |
2453 | -function getCacheForID(id){return cache[id]=cache[id]||{};} |
2454 | -function getWrappersForEventName(id,eventName){var c=getCacheForID(id);return c[eventName]=c[eventName]||[];} |
2455 | -function createWrapper(element,eventName,handler){var id=getEventID(element);var c=getWrappersForEventName(id,eventName);if(c.pluck("handler").include(handler))return false;var wrapper=function(event){if(!Event||!Event.extend||(event.eventName&&event.eventName!=eventName)) |
2456 | -return false;Event.extend(event);handler.call(element,event)};wrapper.handler=handler;c.push(wrapper);return wrapper;} |
2457 | -function findWrapper(id,eventName,handler){var c=getWrappersForEventName(id,eventName);return c.find(function(wrapper){return wrapper.handler==handler});} |
2458 | -function destroyWrapper(id,eventName,handler){var c=getCacheForID(id);if(!c[eventName])return false;c[eventName]=c[eventName].without(findWrapper(id,eventName,handler));} |
2459 | -function destroyCache(){for(var id in cache) |
2460 | -for(var eventName in cache[id]) |
2461 | -cache[id][eventName]=null;} |
2462 | -if(window.attachEvent){window.attachEvent("onunload",destroyCache);} |
2463 | -return{observe:function(element,eventName,handler){element=$(element);var name=getDOMEventName(eventName);var wrapper=createWrapper(element,eventName,handler);if(!wrapper)return element;if(element.addEventListener){element.addEventListener(name,wrapper,false);}else{element.attachEvent("on"+name,wrapper);} |
2464 | -return element;},stopObserving:function(element,eventName,handler){element=$(element);var id=getEventID(element),name=getDOMEventName(eventName);if(!handler&&eventName){getWrappersForEventName(id,eventName).each(function(wrapper){element.stopObserving(eventName,wrapper.handler);});return element;}else if(!eventName){Object.keys(getCacheForID(id)).each(function(eventName){element.stopObserving(eventName);});return element;} |
2465 | -var wrapper=findWrapper(id,eventName,handler);if(!wrapper)return element;if(element.removeEventListener){element.removeEventListener(name,wrapper,false);}else{element.detachEvent("on"+name,wrapper);} |
2466 | -destroyWrapper(id,eventName,handler);return element;},fire:function(element,eventName,memo){element=$(element);if(element==document&&document.createEvent&&!element.dispatchEvent) |
2467 | -element=document.documentElement;if(document.createEvent){var event=document.createEvent("HTMLEvents");event.initEvent("dataavailable",true,true);}else{var event=document.createEventObject();event.eventType="ondataavailable";} |
2468 | -event.eventName=eventName;event.memo=memo||{};if(document.createEvent){element.dispatchEvent(event);}else{element.fireEvent(event.eventType,event);} |
2469 | -return event;}};})());Object.extend(Event,Event.Methods);Element.addMethods({fire:Event.fire,observe:Event.observe,stopObserving:Event.stopObserving});Object.extend(document,{fire:Element.Methods.fire.methodize(),observe:Element.Methods.observe.methodize(),stopObserving:Element.Methods.stopObserving.methodize()});(function(){var timer,fired=false;function fireContentLoadedEvent(){if(fired)return;if(timer)window.clearInterval(timer);document.fire("dom:loaded");fired=true;} |
2470 | -if(document.addEventListener){if(Prototype.Browser.WebKit){timer=window.setInterval(function(){if(/loaded|complete/.test(document.readyState)) |
2471 | -fireContentLoadedEvent();},0);Event.observe(window,"load",fireContentLoadedEvent);}else{document.addEventListener("DOMContentLoaded",fireContentLoadedEvent,false);}}else{document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");$("__onDOMContentLoaded").onreadystatechange=function(){if(this.readyState=="complete"){this.onreadystatechange=null;fireContentLoadedEvent();}};}})();Hash.toQueryString=Object.toQueryString;var Toggle={display:Element.toggle};Element.Methods.childOf=Element.Methods.descendantOf;var Insertion={Before:function(element,content){return Element.insert(element,{before:content});},Top:function(element,content){return Element.insert(element,{top:content});},Bottom:function(element,content){return Element.insert(element,{bottom:content});},After:function(element,content){return Element.insert(element,{after:content});}};var $continue=new Error('"throw $continue" is deprecated, use "return" instead');var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;},within:function(element,x,y){if(this.includeScrollOffsets) |
2472 | -return this.withinIncludingScrolloffsets(element,x,y);this.xcomp=x;this.ycomp=y;this.offset=Element.cumulativeOffset(element);return(y>=this.offset[1]&&y<this.offset[1]+element.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+element.offsetWidth);},withinIncludingScrolloffsets:function(element,x,y){var offsetcache=Element.cumulativeScrollOffset(element);this.xcomp=x+offsetcache[0]-this.deltaX;this.ycomp=y+offsetcache[1]-this.deltaY;this.offset=Element.cumulativeOffset(element);return(this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+element.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+element.offsetWidth);},overlap:function(mode,element){if(!mode)return 0;if(mode=='vertical') |
2473 | -return((this.offset[1]+element.offsetHeight)-this.ycomp)/element.offsetHeight;if(mode=='horizontal') |
2474 | -return((this.offset[0]+element.offsetWidth)-this.xcomp)/element.offsetWidth;},cumulativeOffset:Element.Methods.cumulativeOffset,positionedOffset:Element.Methods.positionedOffset,absolutize:function(element){Position.prepare();return Element.absolutize(element);},relativize:function(element){Position.prepare();return Element.relativize(element);},realOffset:Element.Methods.cumulativeScrollOffset,offsetParent:Element.Methods.getOffsetParent,page:Element.Methods.viewportOffset,clone:function(source,target,options){options=options||{};return Element.clonePosition(target,source,options);}};if(!document.getElementsByClassName)document.getElementsByClassName=function(instanceMethods){function iter(name){return name.blank()?null:"[contains(concat(' ', @class, ' '), ' "+name+" ')]";} |
2475 | -instanceMethods.getElementsByClassName=Prototype.BrowserFeatures.XPath?function(element,className){className=className.toString().strip();var cond=/\s/.test(className)?$w(className).map(iter).join(''):iter(className);return cond?document._getElementsByXPath('.//*'+cond,element):[];}:function(element,className){className=className.toString().strip();var elements=[],classNames=(/\s/.test(className)?$w(className):null);if(!classNames&&!className)return elements;var nodes=$(element).getElementsByTagName('*');className=' '+className+' ';for(var i=0,child,cn;child=nodes[i];i++){if(child.className&&(cn=' '+child.className+' ')&&(cn.include(className)||(classNames&&classNames.all(function(name){return!name.toString().blank()&&cn.include(' '+name+' ');})))) |
2476 | -elements.push(Element.extend(child));} |
2477 | -return elements;};return function(className,parentElement){return $(parentElement||document.body).getElementsByClassName(className);};}(Element.Methods);Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(element){this.element=$(element);},_each:function(iterator){this.element.className.split(/\s+/).select(function(name){return name.length>0;})._each(iterator);},set:function(className){this.element.className=className;},add:function(classNameToAdd){if(this.include(classNameToAdd))return;this.set($A(this).concat(classNameToAdd).join(' '));},remove:function(classNameToRemove){if(!this.include(classNameToRemove))return;this.set($A(this).without(classNameToRemove).join(' '));},toString:function(){return $A(this).join(' ');}};Object.extend(Element.ClassNames.prototype,Enumerable);Element.addMethods();try |
2478 | -{if(NodeList&&NodeList.prototype&&!NodeList.prototype._each) |
2479 | -{Object.extend(NodeList.prototype,{_each:function(iterator){for(var i=0,length=this.length;i<length;++i) |
2480 | -iterator(this[i]);}});Object.extend(NodeList.prototype,Enumerable);}} |
2481 | -catch(exception) |
2482 | -{} |
2483 | -var windowsInternetExplorer=false;var isGecko=false;var isMozilla=false;var isFirefox=false;var isCamino=false;var isSafari=false;var isNS=false;var isWebKit=false;var isOpera=false;var isiPhone=false;var isEarlyWebKitVersion=false;var browserDetected=false;var listOfIE7FloatsFix=[];function detectBrowser() |
2484 | -{if(browserDetected===false) |
2485 | -{windowsInternetExplorer=false;var appVersion=navigator.appVersion;if((appVersion.indexOf("MSIE")!=-1)&&(appVersion.indexOf("Macintosh")==-1)) |
2486 | -{var temp=appVersion.split("MSIE");actualBrowserVersion=(document.documentMode?8:parseFloat(temp[1]));effectiveBrowserVersion=document.documentMode?document.documentMode:parseFloat(temp[1]);windowsInternetExplorer=true;} |
2487 | -else |
2488 | -{var ua=navigator.userAgent.toLowerCase();isGecko=(ua.indexOf('gecko')!=-1);isMozilla=(this.isGecko&&ua.indexOf("gecko/")+14==ua.length);isFirefox=(this.isGecko&&ua.indexOf("firefox")!=-1);isCamino=(this.isGecko&&ua.indexOf("camino")!=-1);isSafari=(this.isGecko&&ua.indexOf("safari")!=-1);isNS=((this.isGecko)?(ua.indexOf('netscape')!=-1):((ua.indexOf('mozilla')!=-1)&&(ua.indexOf('spoofer')==-1)&&(ua.indexOf('compatible')==-1)&&(ua.indexOf('opera')==-1)&&(ua.indexOf('webtv')==-1)&&(ua.indexOf('hotjava')==-1)));isOpera=!!window.opera;var matchResult=ua.match(/applewebkit\/(\d+)/);if(matchResult) |
2489 | -{isiPhone=(ua.indexOf("mobile/")!=-1);isWebKit=true;webKitVersion=parseInt(matchResult[1]);isEarlyWebKitVersion=(webKitVersion<522);}} |
2490 | -browserDetected=true;}} |
2491 | -detectBrowser();function shouldApplyCSSBackgroundPNGFix() |
2492 | -{return(windowsInternetExplorer&&(effectiveBrowserVersion<7));} |
2493 | -function photocastHelper(url) |
2494 | -{var feed=new IWURL(url);var iPhotoVersionMin=600;var iPhotoMimeTypePlugin="application/photo";if(navigator.mimeTypes&&navigator.mimeTypes.length>0) |
2495 | -{var iPhoto=navigator.mimeTypes[iPhotoMimeTypePlugin];if(iPhoto) |
2496 | -{var description=iPhoto.description;try |
2497 | -{var components=description.split(" ");if(components&&components.length>1) |
2498 | -{var pluginVersion=components[1];if(pluginVersion>=iPhotoVersionMin) |
2499 | -{feed.mProtocol="photo";}}} |
2500 | -catch(exception) |
2501 | -{}}} |
2502 | -window.location=feed.toURLString();} |
2503 | -function loadCSS(file) |
2504 | -{var cssNode=document.createElement('link');cssNode.setAttribute('rel','stylesheet');cssNode.setAttribute('type','text/css');cssNode.setAttribute('href',file);document.getElementsByTagName('head')[0].appendChild(cssNode);} |
2505 | -function loadMozillaCSS(file) |
2506 | -{if(isMozilla||isFirefox||isCamino) |
2507 | -{loadCSS(file);}} |
2508 | -function utf8sequence(c) |
2509 | -{if(c<=0x0000007f)return[c];if(c<=0x000007ff)return[(0xc0|(c>>>6)),(0x80|(c&0x3f))];if(c<=0x0000ffff)return[(0xe0|(c>>>12)),(0x80|((c>>>6)&0x3f)),(0x80|(c&0x3f))];if(c<=0x001fffff)return[(0xf0|(c>>>18)),(0x80|((c>>>12)&0x3f)),(0x80|((c>>>6)&0x3f)),(0x80|(c&0x3f))];if(c<=0x03ffffff)return[(0xf8|(c>>>24)),(0x80|((c>>>18)&0x3f)),(0x80|((c>>>12)&0x3f)),(0x80|((c>>>6)&0x3f)),(0x80|(c&0x3f))];if(c<=0x7fffffff)return[(0xfc|(c>>>30)),(0x80|((c>>>24)&0x3f)),(0x80|((c>>>18)&0x3f)),(0x80|((c>>>12)&0x3f)),(0x80|((c>>>6)&0x3f)),(0x80|(c&0x3f))];return[];} |
2510 | -function utf8encode(s) |
2511 | -{var result=[];var firstSurrogate=0;for(var i=0;i<s.length;++i) |
2512 | -{var code=s.charCodeAt(i);if(firstSurrogate!=0) |
2513 | -{if((code>=0xDC00)&&(code<=0xDFFF)) |
2514 | -{code=(firstSurrogate-0xD800)*0x400+(code-0xDC00)+0x10000;firstSurrogate=0;}} |
2515 | -else |
2516 | -{if((code<0xD800)||(code>0xDFFF)) |
2517 | -{} |
2518 | -else if((code>=0xD800)&&(code<0xDC00)) |
2519 | -{firstSurrogate=code;continue;} |
2520 | -else |
2521 | -{continue;}} |
2522 | -result=result.concat(utf8sequence(code));} |
2523 | -var resultString="";for(i=0;i<result.length;++i) |
2524 | -{resultString+=String.fromCharCode(result[i]);} |
2525 | -return resultString;} |
2526 | -function IELatin1Munge(UTF8String) |
2527 | -{var munged="";for(var i=0;i<UTF8String.length;i++) |
2528 | -{var c=UTF8String.charCodeAt(i);switch(c){case 0x0080:c=0x20AC;break;case 0x0081:break;case 0x0082:c=0x201A;break;case 0x0083:c=0x0192;break;case 0x0084:c=0x201E;break;case 0x0085:c=0x2026;break;case 0x0086:c=0x2020;break;case 0x0087:c=0x2021;break;case 0x0088:c=0x02C6;break;case 0x0089:c=0x2030;break;case 0x008A:c=0x0160;break;case 0x008B:c=0x2039;break;case 0x008C:c=0x0152;break;case 0x008D:break;case 0x008E:c=0x017D;break;case 0x008F:break;case 0x0090:break;case 0x0091:c=0x2018;break;case 0x0092:c=0x2019;break;case 0x0093:c=0x201C;break;case 0x0094:c=0x201D;break;case 0x0095:c=0x2022;break;case 0x0096:c=0x2013;break;case 0x0097:c=0x2014;break;case 0x0098:c=0x02DC;break;case 0x0099:c=0x2122;break;case 0x009A:c=0x0161;break;case 0x009B:c=0x203A;break;case 0x009C:c=0x0153;break;case 0x009D:break;case 0x009E:c=0x017E;break;case 0x009F:c=0x0178;break;} |
2529 | -munged+=String.fromCharCode(c);} |
2530 | -return munged;} |
2531 | -function IEConvertURLForPNGFix(urlString) |
2532 | -{var result=urlString;if(windowsInternetExplorer) |
2533 | -{var decoded=decodeURI(urlString);if(decoded.match(/[^\x00-\x7f]/)) |
2534 | -{result=IELatin1Munge(utf8encode(decodeURI(urlString)));}} |
2535 | -return result;} |
2536 | -function fixAllIEPNGs(transparentGif) |
2537 | -{if(windowsInternetExplorer&&effectiveBrowserVersion<8) |
2538 | -{for(var i=0;i<document.images.length;++i) |
2539 | -{if(document.images[i].src.slice(-4).toLowerCase()==".png") |
2540 | -{var img=$(document.images[i]);var fixPng=function(img) |
2541 | -{if(!img.originalSrc&&!img.hasClassName("noAutoPNGFix")&&!img.hasClassName("noAutoPNGFixInTree")&&img.up(".noAutoPNGFixInTree")==undefined) |
2542 | -{if((img.style.width=="")&&(img.style.height=="")) |
2543 | -{var width=img.width;var height=img.height;img.style.width=px(width);img.style.height=px(height);} |
2544 | -var filterName='progid:DXImageTransform.Microsoft.AlphaImageLoader';var filterParams='src="'+IEConvertURLForPNGFix(img.src)+'", sizingMethod="scale"';img.setFilter(filterName,filterParams);img.originalSrc=img.src;img.src=transparentGif;}};img.complete?fixPng(img):img.onload=fixPng.bind(null,img);}}}} |
2545 | -function toPixels(value) |
2546 | -{var converted=0;var px_per_pt=window.screen.logicalXDPI?(window.screen.logicalXDPI/72.0):1.3333;if(value.indexOf("px")>0) |
2547 | -{converted=parseFloat(value);} |
2548 | -else if(value.indexOf("pt")>0) |
2549 | -{converted=px_per_pt*parseFloat(value);} |
2550 | -else if(value.indexOf("in")>0) |
2551 | -{converted=72*px_per_pt*parseFloat(value);} |
2552 | -else if(value.indexOf("pc")>0) |
2553 | -{converted=12*px_per_pt*parseFloat(value);} |
2554 | -else if(value.indexOf("mm")>0) |
2555 | -{converted=2.83465*px_per_pt*parseFloat(value);} |
2556 | -else if(value.indexOf("cm")>0) |
2557 | -{converted=28.3465*px_per_pt*parseFloat(value);} |
2558 | -return converted;} |
2559 | -function toPixelsAtElement(element,value,vertical) |
2560 | -{var converted=0;if(value.indexOf("%")>0) |
2561 | -{var containerSize=0;if(vertical) |
2562 | -{containerSize=$(element.parentNode).getHeight();} |
2563 | -else |
2564 | -{containerSize=$(element.parentNode).getWidth();} |
2565 | -converted=containerSize*parseFloat(value)/100.0;} |
2566 | -else if(value.indexOf("em")>0) |
2567 | -{converted=parseFloat(value)*toPixels(Element.getStyle(element,'fontSize'));} |
2568 | -else |
2569 | -{converted=toPixels(value);} |
2570 | -return converted;} |
2571 | -function backgroundPositionDimension(oBlock,currentBGPosition,blockDimension,imageDimension) |
2572 | -{var position=0;if(currentBGPosition==='center') |
2573 | -{position=(blockDimension/2)-(imageDimension/2);} |
2574 | -else if((currentBGPosition==='right')||(currentBGPosition==='bottom')) |
2575 | -{position=blockDimension-imageDimension;} |
2576 | -else if((currentBGPosition==='left')||(currentBGPosition==='top')) |
2577 | -{position=0;} |
2578 | -else if(currentBGPosition.indexOf("px")>0) |
2579 | -{position=parseFloat(currentBGPosition);} |
2580 | -else if(currentBGPosition.indexOf("em")>0) |
2581 | -{position=parseFloat(currentBGPosition)*toPixels(oBlock.currentStyle.fontSize);} |
2582 | -else if(currentBGPosition.indexOf("%")>0) |
2583 | -{position=parseFloat(currentBGPosition)*blockDimension/100.0;} |
2584 | -else if((currentBGPosition.indexOf("pt")>0)||(currentBGPosition.indexOf("in")>0)||(currentBGPosition.indexOf("pc")>0)||(currentBGPosition.indexOf("cm")>0)||(currentBGPosition.indexOf("mm")>0)) |
2585 | -{position=toPixels(currentBGPosition);} |
2586 | -return position;} |
2587 | -function elementHasCSSBGPNG(element) |
2588 | -{return(element.currentStyle&&element.currentStyle.backgroundImage&&(element.currentStyle.backgroundImage.indexOf('url(')!=-1)&&(element.currentStyle.backgroundImage.indexOf('.png")')!=-1));} |
2589 | -function fixupIEPNGBG(oBlock) |
2590 | -{if(oBlock) |
2591 | -{if(elementHasCSSBGPNG(oBlock)) |
2592 | -{var currentBGImage=oBlock.currentStyle.backgroundImage;var currentBGRepeat=oBlock.currentStyle.backgroundRepeat;var currentBGPositionX=oBlock.currentStyle.backgroundPositionX;var currentBGPositionY=oBlock.currentStyle.backgroundPositionY;var urlStart=currentBGImage.indexOf('url(');var urlEnd=currentBGImage.indexOf(')',urlStart);var imageURL=currentBGImage.substring(urlStart+4,urlEnd);if(imageURL.charAt(0)=='"') |
2593 | -{imageURL=imageURL.substring(1);} |
2594 | -if(imageURL.charAt(imageURL.length-1)=='"') |
2595 | -{imageURL=imageURL.substring(0,imageURL.length-1);} |
2596 | -imageURL=IEConvertURLForPNGFix(imageURL);var overrideRepeat=false;var filterStyle="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ |
2597 | -imageURL+"', sizingMethod='crop');";var fixupIEPNGBG_helper=function(img) |
2598 | -{var tileWidth=img.width;var tileHeight=img.height;var blockWidth=0;var blockHeight=0;if(oBlock.style.width) |
2599 | -{blockWidth=parseInt(oBlock.style.width,10);} |
2600 | -else |
2601 | -{blockWidth=oBlock.offsetWidth;} |
2602 | -if(oBlock.style.height) |
2603 | -{blockHeight=parseInt(oBlock.style.height,10);} |
2604 | -else |
2605 | -{blockHeight=oBlock.offsetHeight;} |
2606 | -var blockPaddingLeft=parseInt(oBlock.style.paddingLeft||0,10);if((blockWidth===0)||(blockHeight===0)) |
2607 | -{return;} |
2608 | -var wholeRows=1;var wholeCols=1;var extraHeight=0;var extraWidth=0;if(((currentBGRepeat.indexOf("repeat-x")!=-1)&&(tileWidth==1)&&(tileHeight==blockHeight))||((currentBGRepeat.indexOf("repeat-y")!=-1)&&(tileWidth==blockWidth)&&(tileHeight==1))||((currentBGRepeat=="repeat")&&(tileWidth==1)&&(tileHeight==1))) |
2609 | -{tileWidth=blockWidth;tileHeight=blockHeight;filterStyle="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ |
2610 | -imageURL+"', sizingMethod='scale');";} |
2611 | -else if((currentBGRepeat.indexOf("no-repeat")!=-1)||((tileWidth===0)&&(tileHeight===0))) |
2612 | -{tileWidth=blockWidth;tileHeight=blockHeight;} |
2613 | -else if((currentBGRepeat.indexOf("repeat-x")!=-1)||(tileHeight===0)) |
2614 | -{wholeCols=Math.floor(blockWidth/tileWidth);extraWidth=blockWidth-(tileWidth*wholeCols);tileHeight=blockHeight;} |
2615 | -else if(currentBGRepeat.indexOf("repeat-y")!=-1) |
2616 | -{wholeRows=Math.floor(blockHeight/tileHeight);extraHeight=blockHeight-(tileHeight*wholeRows);tileWidth=blockWidth;} |
2617 | -else |
2618 | -{wholeCols=Math.floor(blockWidth/tileWidth);wholeRows=Math.floor(blockHeight/tileHeight);extraWidth=blockWidth-(tileWidth*wholeCols);extraHeight=blockHeight-(tileHeight*wholeRows);} |
2619 | -var wrappedContent=$(document.createElement("div"));var pngBGFixIsWrappedContentEmpty=true;wrappedContent.setStyle({position:"relative",zIndex:"1",left:0,top:0,background:"transparent"});if(!isNaN(parseInt(oBlock.style.width,10))) |
2620 | -{wrappedContent.style.width=px(blockWidth);} |
2621 | -if(!isNaN(parseInt(oBlock.style.height,10))) |
2622 | -{wrappedContent.style.height=px(blockHeight);} |
2623 | -while(oBlock.hasChildNodes()) |
2624 | -{if(oBlock.firstChild.nodeType==3) |
2625 | -{if(RegExp("^ *$").exec(oBlock.firstChild.data)===null) |
2626 | -{pngBGFixIsWrappedContentEmpty=false;}} |
2627 | -else |
2628 | -{pngBGFixIsWrappedContentEmpty=false;} |
2629 | -wrappedContent.appendChild(oBlock.firstChild);} |
2630 | -if(pngBGFixIsWrappedContentEmpty) |
2631 | -{wrappedContent.style.lineHeight=0;} |
2632 | -var bgPositionX=backgroundPositionDimension(oBlock,currentBGPositionX,blockWidth,img.width);var bgPositionY=backgroundPositionDimension(oBlock,currentBGPositionY,blockHeight,img.height);bgPositionX-=blockPaddingLeft;var newMarkup="";for(var currentRow=0;currentRow<wholeRows;currentRow++) |
2633 | -{for(currentCol=0;currentCol<wholeCols;currentCol++) |
2634 | -{newMarkup+="<div class='pngtile' style="+"\"position: absolute; line-height: 0px; "+"width: "+((tileWidth==blockWidth)?"100%":px(tileWidth))+"; "+"height: "+((tileHeight==blockHeight)?"100%":px(tileHeight))+"; "+"left:"+(bgPositionX+(currentCol*tileWidth))+"px; "+"top:"+(bgPositionY+(currentRow*tileHeight))+"px; "+"filter:"+filterStyle+"\" > </div>";} |
2635 | -if(extraWidth!==0) |
2636 | -{newMarkup+="<div class='pngtile' style="+"\"position: absolute; line-height: 0px; "+"width: "+extraWidth+"px; "+"height: "+tileHeight+"px; "+"left:"+(bgPositionX+(currentCol*tileWidth))+"px; "+"top:"+(bgPositionY+(currentRow*tileHeight))+"px; "+"filter:"+filterStyle+"\" > </div>";}} |
2637 | -if(extraHeight!==0) |
2638 | -{for(currentCol=0;currentCol<wholeCols;currentCol++) |
2639 | -{newMarkup+="<div class='pngtile' style="+"\"position: absolute; line-height: 0px; "+"width: "+tileWidth+"px; "+"height: "+extraHeight+"px; "+"left:"+(bgPositionX+(currentCol*tileWidth))+"px; "+"top:"+(bgPositionY+(currentRow*tileHeight))+"px; "+"filter:"+filterStyle+"\" > </div>";} |
2640 | -if(extraWidth!==0) |
2641 | -{newMarkup+="<div class='pngtile' style="+"\"position: absolute; line-height: 0px; "+"width: "+extraWidth+"px; "+"height: "+extraHeight+"px; "+"left:"+(bgPositionX+(currentCol*tileWidth))+"px; "+"top:"+(bgPositionY+(currentRow*tileHeight))+"px; "+"filter:"+filterStyle+"\" > </div>";}} |
2642 | -oBlock.innerHTML=newMarkup;if(!pngBGFixIsWrappedContentEmpty) |
2643 | -{oBlock.appendChild(wrappedContent);} |
2644 | -oBlock.style.background="";} |
2645 | -var backgroundImage=new Image();backgroundImage.src=imageURL;if(backgroundImage.complete) |
2646 | -{fixupIEPNGBG_helper(backgroundImage);} |
2647 | -else |
2648 | -{backgroundImage.onload=fixupIEPNGBG_helper.bind(null,backgroundImage);}}}} |
2649 | -function fixupIEPNGBGsInTree(oAncestor,forceAutoFixup) |
2650 | -{if(shouldApplyCSSBackgroundPNGFix()) |
2651 | -{try |
2652 | -{var allDivs=$(oAncestor).select('div');if(isDiv(oAncestor)) |
2653 | -{allDivs.push(oAncestor);} |
2654 | -allDivs.each(function(oNode) |
2655 | -{if((!($(oNode).hasClassName("noAutoPNGFix"))&&!($(oNode).hasClassName("noAutoPNGFixInTree"))&&($(oNode.up(".noAutoPNGFixInTree")==undefined)))||forceAutoFixup) |
2656 | -{fixupIEPNGBG(oNode);}});} |
2657 | -catch(e) |
2658 | -{}}} |
2659 | -function fixupAllIEPNGBGs() |
2660 | -{setTimeout(fixupIEPNGBGsInTree.bind(null,document),1);} |
2661 | -function optOutOfCSSBackgroundPNGFix(element) |
2662 | -{if(shouldApplyCSSBackgroundPNGFix()) |
2663 | -{$(element).select('div').each(function(div) |
2664 | -{if(elementHasCSSBGPNG(div)) |
2665 | -{$(div).addClassName("noAutoPNGFix");}});}} |
2666 | -function fixupIECSS3Opacity(strElementID) |
2667 | -{if(windowsInternetExplorer) |
2668 | -{var oNode=$(strElementID);if(oNode&&(parseFloat(oNode.currentStyle.getAttribute('opacity'))<1)) |
2669 | -{var opacity=parseFloat(oNode.currentStyle.getAttribute('opacity'));oNode.style.height=px(oNode.offsetHeight);var targetNode=oNode;if(oNode.tagName.toLowerCase()=='img') |
2670 | -{targetNode=$(document.createElement('div'));targetNode.setStyle({position:oNode.style.position,top:oNode.style.top,left:oNode.style.left,width:oNode.style.width,height:oNode.style.height,opacity:oNode.style.opacity,zIndex:oNode.style.zIndex});oNode.setStyle({left:0,top:0,opacity:''});if(oNode.parentNode.tagName.toLowerCase()=='a') |
2671 | -{var anchor=oNode.parentNode;anchor.parentNode.insertBefore(targetNode,anchor);targetNode.appendChild(anchor);} |
2672 | -else |
2673 | -{oNode.parentNode.insertBefore(targetNode,oNode);targetNode.appendChild(oNode);}} |
2674 | -else if(oNode.tagName.toLowerCase()=='div') |
2675 | -{var bufferWidth=100;var oNodeWidth=oNode.offsetWidth;var oNodeHeight=oNode.offsetHeight;extents=new IWExtents(-bufferWidth,-bufferWidth,oNodeWidth+bufferWidth,oNodeHeight*2+bufferWidth);var positionStyleVal=oNode.getStyle("position");var floatStyleVal=oNode.getStyle("float");var positioned=((positionStyleVal=="relative")||(positionStyleVal=="absolute"));var absolutelyPositioned=(positionStyleVal=="absolute"&&(floatStyleVal=="none"));targetNode=$(document.createElement('div'));var classString=oNode.className;classString=classString.replace(/(shadow_\d+)/g,'');classString=classString.replace(/(stroke_\d+)/g,'');classString=classString.replace(/(reflection_\d+)/g,'');targetNode.className=classString;targetNode.setStyle({position:positioned?positionStyleVal:"relative",styleFloat:floatStyleVal,clear:oNode.getStyle("clear"),width:px(extents.right-extents.left),height:px(extents.bottom-extents.top),opacity:oNode.style.opacity,zIndex:oNode.style.zIndex});if(absolutelyPositioned) |
2676 | -{targetNode.setStyle({top:px((parseFloat(oNode.getStyle("top"))||0)+extents.top),left:px((parseFloat(oNode.getStyle("left"))||0)+extents.left)});} |
2677 | -else |
2678 | -{targetNode.setStyle({marginTop:px((parseFloat(oNode.getStyle("marginTop"))||0)+extents.top),marginLeft:px((parseFloat(oNode.getStyle("marginLeft"))||0)+extents.left),marginBottom:px((parseFloat(oNode.getStyle("marginBottom"))||0)- |
2679 | -(extents.bottom-oNodeHeight)),marginRight:px((parseFloat(oNode.getStyle("marginRight"))||0)- |
2680 | -(extents.right-oNodeWidth))});} |
2681 | -oNode.setStyle({position:"absolute",styleFloat:"none",clear:"none",left:px(-extents.left),top:px(-extents.top),margin:0,verticalAlign:'baseline',display:'block',opacity:''});if(effectiveBrowserVersion<7||actualBrowserVersion>=8) |
2682 | -{oNode.className=oNode.className.replace(/(shadow_\d+)/g,'');} |
2683 | -oNode.parentNode.insertBefore(targetNode,oNode);targetNode.appendChild(oNode);} |
2684 | -$(targetNode).setFilter('progid:DXImageTransform.Microsoft.BasicImage','opacity='+opacity);}}} |
2685 | -function IWSetDivOpacity(div,fraction,suppressFilterRemoval) |
2686 | -{if(windowsInternetExplorer) |
2687 | -{if(fraction<.99||(suppressFilterRemoval==true)) |
2688 | -{$(div).setFilter('alpha','opacity='+fraction*100);} |
2689 | -else |
2690 | -{$(div).killFilter('alpha');}} |
2691 | -else |
2692 | -{$(div).setOpacity(fraction);}} |
2693 | -function IMpreload(path,name,areaIndex) |
2694 | -{var rolloverName=name+'_rollover_'+areaIndex;var rolloverPath=path+'/'+rolloverName+'.png';self[rolloverName]=new Image();self[rolloverName].src=rolloverPath;var linkName=name+'_link_'+areaIndex;var linkPath=path+'/'+linkName+'.png';self[linkName]=new Image();self[linkName].src=linkPath;return true;} |
2695 | -function swapAlphaImageLoaderFilterSrc(img,src) |
2696 | -{var filterName='progid:DXImageTransform.Microsoft.AlphaImageLoader';var filterParams='src="'+IEConvertURLForPNGFix(src)+'", sizingMethod="scale"';img.setFilter(filterName,filterParams);img.originalSrc=img.src;} |
2697 | -function IMmouseover(name,areaIndex) |
2698 | -{var rolloverName=name+'_rollover_'+areaIndex;var linkName=name+'_link_'+areaIndex;var img=$(linkName);if(img) |
2699 | -{if(windowsInternetExplorer&&img.originalSrc) |
2700 | -{swapAlphaImageLoaderFilterSrc(img,self[rolloverName].src);} |
2701 | -else |
2702 | -{img.src=self[rolloverName].src;}} |
2703 | -return true;} |
2704 | -function IMmouseout(name,areaIndex) |
2705 | -{var linkName=name+'_link_'+areaIndex;var img=$(linkName);if(img) |
2706 | -{if(windowsInternetExplorer&&img.originalSrc) |
2707 | -{swapAlphaImageLoaderFilterSrc(img,self[linkName].src);} |
2708 | -else |
2709 | -{img.src=self[linkName].src;}} |
2710 | -return true;} |
2711 | -var quicktimeAvailable=false;var quicktimeVersion702=false;var isQuicktimeDetectionInitialized=false;var minVersionNum=0x7028000;var minVersionArray=['7','0','2'];function initializeQuicktimeDetection() |
2712 | -{if((navigator.plugins!==null)&&(navigator.plugins.length>0)) |
2713 | -{for(i=0;i<navigator.plugins.length;i++) |
2714 | -{var plugin=navigator.plugins[i];if(plugin.name.toLowerCase().indexOf('quicktime plug-in ')!=-1) |
2715 | -{quicktimeAvailable=true;quicktimeVersionString=plugin.name.substring(18);var qtVersionArray=quicktimeVersionString.split('.');for(j=0;j<minVersionArray.length&&j<qtVersionArray.length;j++) |
2716 | -{var qtVersionComponent=qtVersionArray[j];var minVersionComponent=minVersionArray[j];if((qtVersionComponent>minVersionComponent)||((qtVersionComponent==minVersionComponent)&&(j==minVersionArray.length-1))) |
2717 | -{quicktimeVersion702=true;break;} |
2718 | -else if(qtVersionComponent<minVersionComponent) |
2719 | -{break;}} |
2720 | -break;}}} |
2721 | -else if(window.ActiveXObject) |
2722 | -{try |
2723 | -{quicktimeObj=new ActiveXObject('QuickTimeCheckObject.QuickTimeCheck.1');if(quicktimeObj!==null) |
2724 | -{quicktimeAvailable=true;quicktimeVersionNum=quicktimeObj.QuickTimeVersion;if(quicktimeVersionNum>=minVersionNum) |
2725 | -{quicktimeVersion702=true;}}} |
2726 | -catch(e) |
2727 | -{}} |
2728 | -isQuicktimeDetectionInitialized=true;} |
2729 | -function fixupPodcast(mediaId,anchorId) |
2730 | -{if(!isQuicktimeDetectionInitialized) |
2731 | -{initializeQuicktimeDetection();} |
2732 | -if(!quicktimeVersion702) |
2733 | -{var oMediaElem=$(mediaId);var oAnchorElem=$(anchorId);if(oMediaElem&&oAnchorElem) |
2734 | -{oAnchorElem.style.display='inline';oMediaElem.parentNode.removeChild(oMediaElem);}}} |
2735 | -function allListBulletImagesContainedBy(node) |
2736 | -{var result=[];for(var i=0;i<node.childNodes.length;++i) |
2737 | -{var child=node.childNodes[i];if((child.nodeName=="IMG")&&((node.nodeName=="SPAN")||(node.nodeName=="A"))&&(node.parentNode!=null)&&(node.parentNode.nodeName=="P")&&(node.parentNode.parentNode!=null)&&(node.parentNode.parentNode.nodeName=="LI")) |
2738 | -{result=result.concat([child]);} |
2739 | -result=result.concat(allListBulletImagesContainedBy(child));} |
2740 | -return result;} |
2741 | -function hideAllListBulletImagesContainedBy(node) |
2742 | -{$A(allListBulletImagesContainedBy(node)).invoke('hide');} |
2743 | -function showAllListBulletImagesContainedBy(node) |
2744 | -{$A(allListBulletImagesContainedBy(node)).invoke('show');} |
2745 | -function getChildOfType(oParent,sNodeName,requestedIndex) |
2746 | -{var childrenOfType=$(oParent).select(sNodeName);return(requestedIndex<childrenOfType.length)?childrenOfType.item(requestedIndex):null;} |
2747 | -function containsFixedHeightIntermediate(oDescendant,oAncestor) |
2748 | -{if(oDescendant===oAncestor||oDescendant==null) |
2749 | -{return false;} |
2750 | -else if(parseFloat(oDescendant.style.height)>0) |
2751 | -{return true;} |
2752 | -else |
2753 | -{return containsFixedHeightIntermediate(oDescendant.parentNode,oAncestor);}} |
2754 | -function getShrinkableParaDescendants(oAncestor) |
2755 | -{return $(oAncestor).select('div.paragraph, p').findAll(function(paragraph){return!containsFixedHeightIntermediate(paragraph,oAncestor);});} |
2756 | -var MINIMUM_FONT="10";var UNITS="";function elementFontSize(element) |
2757 | -{var fontSize=MINIMUM_FONT;if(document.defaultView) |
2758 | -{var computedStyle=document.defaultView.getComputedStyle(element,null);if(computedStyle) |
2759 | -{fontSize=computedStyle.getPropertyValue("font-size");}} |
2760 | -else if(element.currentStyle) |
2761 | -{fontSize=element.currentStyle.fontSize;} |
2762 | -if((UNITS.length===0)&&(fontSize!=MINIMUM_FONT)) |
2763 | -{UNITS=fontSize.substring(fontSize.length-2,fontSize.length);} |
2764 | -return parseFloat(fontSize);} |
2765 | -function isExceptionToOneLineRule(element) |
2766 | -{return $(element).hasClassName("Header");} |
2767 | -var HEIGHT_ERROR_MARGIN=2;function adjustFontSizeIfTooBig(idOfElement) |
2768 | -{var oParagraphDiv;var oSpan;var oTextBoxInnerDiv;var oTextBoxOuterDiv=$(idOfElement);if(oTextBoxOuterDiv) |
2769 | -{oTextBoxInnerDiv=oTextBoxOuterDiv.selectFirst("div.text-content");if(oTextBoxInnerDiv) |
2770 | -{hideAllListBulletImagesContainedBy(oTextBoxInnerDiv);var offsetHeight=oTextBoxInnerDiv.offsetHeight;var specifiedHeight=offsetHeight;if(oTextBoxOuterDiv.style.height!=="") |
2771 | -{specifiedHeight=parseFloat(oTextBoxOuterDiv.style.height);} |
2772 | -if(offsetHeight>(specifiedHeight+HEIGHT_ERROR_MARGIN)) |
2773 | -{var smallestFontSize=200;var aParaChildren=getShrinkableParaDescendants(oTextBoxInnerDiv);var oneLine=false;var exceptionToOneLineRule=false;for(i=0;i<aParaChildren.length;i++) |
2774 | -{oParagraphDiv=aParaChildren[i];var lineHeight=elementLineHeight(oParagraphDiv);if(!isNaN(lineHeight)) |
2775 | -{oneLine=oneLine||(lineHeight*1.5>=specifiedHeight);exceptionToOneLineRule=oneLine&&isExceptionToOneLineRule(oParagraphDiv);} |
2776 | -var fontSize=elementFontSize(oParagraphDiv);if(!isNaN(fontSize)) |
2777 | -{smallestFontSize=Math.min(smallestFontSize,fontSize);} |
2778 | -for(j=0;j<oParagraphDiv.childNodes.length;j++) |
2779 | -{oSpan=oParagraphDiv.childNodes[j];if((oSpan.nodeName=="SPAN")||(oSpan.nodeName=="A")) |
2780 | -{fontSize=elementFontSize(oSpan);if(!isNaN(fontSize)) |
2781 | -{smallestFontSize=Math.min(smallestFontSize,fontSize);}}}} |
2782 | -var minimum=parseFloat(MINIMUM_FONT);var count=0;while((smallestFontSize>minimum)&&(offsetHeight>(specifiedHeight+HEIGHT_ERROR_MARGIN))&&(count<10)) |
2783 | -{++count;if(oneLine&&!exceptionToOneLineRule) |
2784 | -{var oldWidth=parseInt(oTextBoxOuterDiv.style.width,10);oTextBoxInnerDiv.style.width=px(oldWidth*Math.pow(1.05,count));} |
2785 | -else |
2786 | -{var scale=Math.max(0.95,minimum/smallestFontSize);for(i=0;i<aParaChildren.length;i++) |
2787 | -{oParagraphDiv=aParaChildren[i];var paraFontSize=elementFontSize(oParagraphDiv)*scale;var paraLineHeight=elementLineHeight(oParagraphDiv)*scale;for(j=0;j<oParagraphDiv.childNodes.length;j++) |
2788 | -{oSpan=oParagraphDiv.childNodes[j];if((oSpan.nodeName=="SPAN")||(oSpan.nodeName=="A")) |
2789 | -{var spanLineHeight=elementLineHeight(oSpan)*scale;if(!isNaN(spanLineHeight)) |
2790 | -{oSpan.style.lineHeight=spanLineHeight+UNITS;} |
2791 | -var spanFontSize=elementFontSize(oSpan)*scale;if(!isNaN(spanFontSize)) |
2792 | -{oSpan.style.fontSize=spanFontSize+UNITS;smallestFontSize=Math.min(smallestFontSize,spanFontSize);}}} |
2793 | -if(!isNaN(paraLineHeight)) |
2794 | -{oParagraphDiv.style.lineHeight=paraLineHeight+UNITS;} |
2795 | -if(!isNaN(paraFontSize)) |
2796 | -{oParagraphDiv.style.fontSize=paraFontSize+UNITS;smallestFontSize=Math.min(smallestFontSize,paraFontSize);}}} |
2797 | -offsetHeight=oTextBoxInnerDiv.offsetHeight;}} |
2798 | -showAllListBulletImagesContainedBy(oTextBoxInnerDiv);}}} |
2799 | -function elementLineHeight(element) |
2800 | -{var lineHeight=MINIMUM_FONT;if(document.defaultView) |
2801 | -{var computedStyle=document.defaultView.getComputedStyle(element,null);if(computedStyle) |
2802 | -{lineHeight=computedStyle.getPropertyValue("line-height");}} |
2803 | -else if(element.currentStyle) |
2804 | -{lineHeight=element.currentStyle.lineHeight;} |
2805 | -if((UNITS.length===0)&&(lineHeight!=MINIMUM_FONT)) |
2806 | -{UNITS=lineHeight.substring(lineHeight.length-2,lineHeight.length);} |
2807 | -return parseFloat(lineHeight);} |
2808 | -function adjustLineHeightIfTooBig(idOfElement) |
2809 | -{var oTextBoxInnerDiv;var oTextBoxOuterDiv=$(idOfElement);if(oTextBoxOuterDiv) |
2810 | -{oTextBoxInnerDiv=oTextBoxOuterDiv.selectFirst("div.text-content");if(oTextBoxInnerDiv) |
2811 | -{hideAllListBulletImagesContainedBy(oTextBoxInnerDiv);var offsetHeight=oTextBoxInnerDiv.offsetHeight;var specifiedHeight=offsetHeight;if(oTextBoxOuterDiv.style.height!=="") |
2812 | -{specifiedHeight=parseFloat(oTextBoxOuterDiv.style.height);} |
2813 | -if(offsetHeight>(specifiedHeight+HEIGHT_ERROR_MARGIN)) |
2814 | -{var adjusted=true;var count=0;while((adjusted)&&(offsetHeight>(specifiedHeight+HEIGHT_ERROR_MARGIN))&&(count<10)) |
2815 | -{adjusted=false;++count;var aParaChildren=getShrinkableParaDescendants(oTextBoxInnerDiv);for(i=0;i<aParaChildren.length;i++) |
2816 | -{var fontSize;var lineHeight;var oParagraphDiv=aParaChildren[i];fontSize=elementFontSize(oParagraphDiv);lineHeight=elementLineHeight(oParagraphDiv)*0.95;if(!isNaN(lineHeight)&&lineHeight>=(fontSize*1.1)) |
2817 | -{oParagraphDiv.style.lineHeight=lineHeight+UNITS;adjusted=true;} |
2818 | -for(j=0;j<oParagraphDiv.childNodes.length;j++) |
2819 | -{var oSpan=oParagraphDiv.childNodes[j];if((oSpan.nodeName=="SPAN")||(oSpan.nodeName=="A")) |
2820 | -{fontSize=elementFontSize(oSpan);lineHeight=elementLineHeight(oSpan)*0.95;if(!isNaN(lineHeight)&&lineHeight>=(fontSize*1.1)) |
2821 | -{oSpan.style.lineHeight=lineHeight+UNITS;adjusted=true;}}}} |
2822 | -offsetHeight=oTextBoxInnerDiv.offsetHeight;}} |
2823 | -showAllListBulletImagesContainedBy(oTextBoxInnerDiv);}}} |
2824 | -function isDiv(node) |
2825 | -{return(node.nodeType==Node.ELEMENT_NODE)&&(node.tagName=="DIV");} |
2826 | -function fixupAllMozInlineBlocks() |
2827 | -{if(isFirefox||isCamino) |
2828 | -{var oInlineBlocks=$$("div.inline-block");for(var i=0,inlineBlocksLength=oInlineBlocks.length;i<inlineBlocksLength;++i) |
2829 | -{var oInlineBlock=oInlineBlocks[i];var oInterposingDiv=document.createElement("div");oInterposingDiv.style.position="relative";oInterposingDiv.style.overflow="visible";for(var j=0,childNodesLength=oInlineBlock.childNodes.length;j<childNodesLength;++j) |
2830 | -{var oChildNode=oInlineBlock.childNodes[0];oInlineBlock.removeChild(oChildNode);oInterposingDiv.appendChild(oChildNode);} |
2831 | -oInlineBlock.appendChild(oInterposingDiv);}}} |
2832 | -function getWidthDefiningAncestor(elem) |
2833 | -{return elem.up('[style~="width:"]')||document.body;} |
2834 | -function updateListOfIE7FloatsFix(div) |
2835 | -{var div=$(div);var floatValue=div.getStyle("float");if(floatValue=="left"||floatValue=="right") |
2836 | -{var commonAncestor=getWidthDefiningAncestor(div);var floatDescendants=commonAncestor.select('[style~="float:"]');while(floatDescendants.length>0) |
2837 | -{var floatElem=floatDescendants.shift();floatValue=floatElem.getStyle("float");if(floatValue=="left"||floatValue=="right") |
2838 | -{var floatAncestor=getWidthDefiningAncestor(floatElem);if(floatAncestor===commonAncestor) |
2839 | -{if(!listOfIE7FloatsFix.include(floatElem)) |
2840 | -{listOfIE7FloatsFix.push(floatElem);}}}}}} |
2841 | -function fixupFloatsIfIE7() |
2842 | -{if(windowsInternetExplorer&&effectiveBrowserVersion==7) |
2843 | -{if(listOfIE7FloatsFix.length>0) |
2844 | -{var floatsToRestore=[];var floatElem;var displayStyle;while(listOfIE7FloatsFix.length>0) |
2845 | -{floatElem=listOfIE7FloatsFix.shift();displayStyle=floatElem.getStyle("display");$(floatElem).hide();floatsToRestore.push({element:floatElem,displayStyle:displayStyle});} |
2846 | -while(floatsToRestore.length>0) |
2847 | -{var queueEntry=floatsToRestore.shift();floatElem=queueEntry.element;displayStyle=queueEntry.displayStyle;$(floatElem).setStyle({"display":displayStyle});}}}} |
2848 | -function joltLater(element) |
2849 | -{setTimeout(function(element){$(element).hide();}.bind(null,element),100);setTimeout(function(element){$(element).show();}.bind(null,element),200);} |
2850 | -function performPostEffectsFixups() |
2851 | -{fixupAllMozInlineBlocks();fixupFloatsIfIE7();} |
2852 | -function reduceLeftMarginIfIE6(element) |
2853 | -{if(windowsInternetExplorer&&effectiveBrowserVersion<7) |
2854 | -{$(element).style.marginLeft=px(parseFloat($(element).style.marginLeft||0)-1);}} |
2855 | -function reduceRightMarginIfIE6(element) |
2856 | -{if(windowsInternetExplorer&&effectiveBrowserVersion<7) |
2857 | -{$(element).style.marginRight=px(parseFloat($(element).style.marginRight||0)-1);}} |
2858 | -Object.objectType=function(obj) |
2859 | -{var result=typeof obj;if(result=="object") |
2860 | -{if(obj.constructor==Array) |
2861 | -result="Array";} |
2862 | -return result;} |
2863 | -var trace=function(){};function ajaxGetDocumentElement(req) |
2864 | -{var dom=null;if(req) |
2865 | -{if(req.responseXML&&req.responseXML.documentElement) |
2866 | -{dom=req.responseXML;} |
2867 | -else if(req.responseText) |
2868 | -{if(window.DOMParser) |
2869 | -{dom=(new DOMParser()).parseFromString(req.responseText,"text/xml");} |
2870 | -else if(window.ActiveXObject) |
2871 | -{dom=new ActiveXObject("MSXML.DOMDocument");if(dom) |
2872 | -{dom.async=false;dom.loadXML(req.responseText);}}}} |
2873 | -return dom?dom.documentElement:null;} |
2874 | -function iWLog(str) |
2875 | -{if(window.console) |
2876 | -{window.console.log(str);} |
2877 | -else if(window.dump) |
2878 | -{window.dump(str+"\n");}} |
2879 | -function iWPosition(abs,left,top,width,height) |
2880 | -{var pos="";if(abs) |
2881 | -pos="position: absolute; ";var size="";if(width&&height) |
2882 | -size=' width: '+width+'px; height: '+height+'px;';return pos+'left: '+left+'px; top: '+top+'px;'+size;} |
2883 | -var gIWUtilsTransparentGifURL="";function setTransparentGifURL(url) |
2884 | -{if(gIWUtilsTransparentGifURL=="") |
2885 | -{gIWUtilsTransparentGifURL=url;}} |
2886 | -function transparentGifURL() |
2887 | -{(function(){return gIWUtilsTransparentGifURL!=""}).assert("Transparent image URL not set");return gIWUtilsTransparentGifURL;} |
2888 | -function imgMarkup(src,style,attributes,alt,forceFixupIE7) |
2889 | -{var markup="";if(src) |
2890 | -{style=style||"";attributes=attributes||"";alt=alt||"";if(windowsInternetExplorer&&((effectiveBrowserVersion<7)||(effectiveBrowserVersion<8&&forceFixupIE7!==false))) |
2891 | -{style+=" filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+IEConvertURLForPNGFix(src)+"', sizingMethod='scale');";src=gIWUtilsTransparentGifURL;} |
2892 | -if(style.length>0) |
2893 | -{style=' style="'+style+'"';} |
2894 | -if(attributes.length>0) |
2895 | -{attributes=' '+attributes;} |
2896 | -if(alt.length>0) |
2897 | -{alt=' alt="'+alt.stringByEscapingXML(true)+'"';} |
2898 | -markup='<img src="'+src+'"'+style+attributes+alt+' />';} |
2899 | -return markup;} |
2900 | -function setImgSrc(imgElement,src,forceFixupIE7) |
2901 | -{if(windowsInternetExplorer&&((effectiveBrowserVersion<7)||(effectiveBrowserVersion<8&&forceFixupIE7!==false))&&src.slice(-4).toLowerCase()==".png") |
2902 | -{$(imgElement).setFilter('progid:DXImageTransform.Microsoft.AlphaImageLoader','src="'+IEConvertURLForPNGFix(src)+'", sizingMethod="scale"');imgElement.src=gIWUtilsTransparentGifURL;} |
2903 | -else |
2904 | -{imgElement.src=src;}} |
2905 | -function iWOpacity(opacity) |
2906 | -{var style="";if(windowsInternetExplorer) |
2907 | -{style=" progid:DXImageTransform.Microsoft.Alpha(opacity="+opacity*100+"); ";} |
2908 | -else |
2909 | -{style=" opacity: "+opacity+"; ";} |
2910 | -return style;} |
2911 | -var IWRange=Class.create({initialize:function(location,length) |
2912 | -{this.setLocation(location);this.setLength(length);},length:function() |
2913 | -{return this.p_length;},setLength:function(length) |
2914 | -{this.p_length=parseFloat(length);},location:function() |
2915 | -{return this.p_location;},setLocation:function(location) |
2916 | -{this.p_location=parseFloat(location);},max:function() |
2917 | -{return this.location()+this.length();},min:function() |
2918 | -{return this.location();},shift:function(amount) |
2919 | -{this.setLocation(this.location()+amount);},containsLocation:function(location) |
2920 | -{return((location>=this.min())&&(location<this.max()));}});var IWPageRange=Class.create(IWRange,{initialize:function($super,location,length) |
2921 | -{$super(location,length);},setMax:function(newMax) |
2922 | -{var maxLength=this.p_lengthForMax(newMax);this.setLocation(Math.max(newMax-maxLength,0)) |
2923 | -this.setLength(newMax-this.location());},shift:function($super,amount) |
2924 | -{$super(amount);this.setMax(this.max());},p_lengthForMax:function(max) |
2925 | -{return(max<=9)?5:3;}});function px(s) |
2926 | -{return s.toString()+"px";} |
2927 | -function depx(s) |
2928 | -{return parseInt(s||0);} |
2929 | -function locationHRef() |
2930 | -{var result=window.location.href;if(result.match(/file:\/[^\/]/)) |
2931 | -{result="file://"+result.substr(5);} |
2932 | -return result;} |
2933 | -function IWZeroSize() |
2934 | -{return new IWSize(0,0);} |
2935 | -var IWSize=Class.create({initialize:function(width,height) |
2936 | -{this.width=width;this.height=height;},scale:function(hscale,vscale,round) |
2937 | -{if(round===undefined)round=false;if(vscale===undefined)vscale=hscale;var scaled=new IWSize(this.width*hscale,this.height*vscale);if(round) |
2938 | -{scaled.width=Math.round(scaled.width);scaled.height=Math.round(scaled.height);} |
2939 | -return scaled;},scaleToTargetSize:function(targetSize,fitTarget) |
2940 | -{var scaledSize=new IWSize(this.width,this.height);if(scaledSize.width>0&&scaledSize.height>0) |
2941 | -{var wScale=targetSize.width/scaledSize.width;var hScale=targetSize.height/scaledSize.height;var scale=fitTarget?Math.min(wScale,hScale):Math.max(wScale,hScale);scaledSize.width*=scale;scaledSize.height*=scale;} |
2942 | -return scaledSize;},scaleToFit:function(sizeToFit) |
2943 | -{return this.scaleToTargetSize(sizeToFit,true);},round:function() |
2944 | -{return this.scale(1,1,true);},toString:function() |
2945 | -{return"Size("+this.width+", "+this.height+")";},aspectRatio:function() |
2946 | -{return this.width/this.height;},subtractSize:function(s) |
2947 | -{return new IWSize(this.width-s.width,this.height-s.height);}});function IWZeroPoint() |
2948 | -{return new IWPoint(0,0);} |
2949 | -var IWPoint=Class.create({initialize:function(x,y) |
2950 | -{this.x=x;this.y=y;},scale:function(hscale,vscale,round) |
2951 | -{if(round===undefined)round=false;if(vscale===undefined)vscale=hscale;var scaled=new IWPoint(this.x*hscale,this.y*vscale);if(round) |
2952 | -{scaled.x=Math.round(scaled.x);scaled.y=Math.round(scaled.y);} |
2953 | -return scaled;},round:function() |
2954 | -{return this.scale(1,1,true);},offset:function(deltaX,deltaY) |
2955 | -{return new IWPoint(this.x+deltaX,this.y+deltaY);},toString:function() |
2956 | -{return"Point("+this.x+", "+this.y+")";}});function IWZeroRect() |
2957 | -{return new IWRect(0,0,0,0);} |
2958 | -var IWRect=Class.create({initialize:function() |
2959 | -{if(arguments.length==1) |
2960 | -{this.origin=arguments[0].origin;this.size=arguments[0].size;} |
2961 | -else if(arguments.length==2) |
2962 | -{this.origin=arguments[0];this.size=arguments[1];} |
2963 | -else if(arguments.length==4) |
2964 | -{this.origin=new IWPoint(arguments[0],arguments[1]);this.size=new IWSize(arguments[2],arguments[3]);}},clone:function() |
2965 | -{return new IWRect(this.origin.x,this.origin.y,this.size.width,this.size.height);},toString:function() |
2966 | -{return"Rect("+this.origin.toString()+", "+this.size.toString()+")";},maxX:function() |
2967 | -{return this.origin.x+this.size.width;},maxY:function() |
2968 | -{return this.origin.y+this.size.height;},union:function(that) |
2969 | -{var minX=Math.min(this.origin.x,that.origin.x);var minY=Math.min(this.origin.y,that.origin.y);var maxX=Math.max(this.maxX(),that.maxX());var maxY=Math.max(this.maxY(),that.maxY());return new IWRect(minX,minY,maxX-minX,maxY-minY);},intersection:function(that) |
2970 | -{var intersectionRect;var minX=Math.max(this.origin.x,that.origin.x);var minY=Math.max(this.origin.y,that.origin.y);var maxX=Math.min(this.maxX(),that.maxX());var maxY=Math.min(this.maxY(),that.maxY());if((minX<maxX)&&(minY<maxY)) |
2971 | -{intersectionRect=new IWRect(minX,minY,maxX-minX,maxY-minY);} |
2972 | -else |
2973 | -{intersectionRect=new IWRect(0,0,0,0);} |
2974 | -return intersectionRect;},scale:function(hscale,vscale,round) |
2975 | -{if(round===undefined)round=false;if(vscale===undefined)vscale=hscale;var scaledOrigin=this.origin.scale(hscale,vscale,round);var scaledSize=this.size.scale(hscale,vscale,round);return new IWRect(scaledOrigin.x,scaledOrigin.y,scaledSize.width,scaledSize.height);},scaleSize:function(hscale,vscale,round) |
2976 | -{var scaledSize=this.size.scale(hscale,vscale,round);return new IWRect(this.origin.x,this.origin.y,scaledSize.width,scaledSize.height);},round:function() |
2977 | -{return this.scale(1,1,true);},offset:function(deltaX,deltaY) |
2978 | -{var offsetOrigin=this.origin.offset(deltaX,deltaY);return new IWRect(offsetOrigin.x,offsetOrigin.y,this.size.width,this.size.height);},offsetToOrigin:function() |
2979 | -{return this.offset(-this.origin.x,-this.origin.y)},centerPoint:function() |
2980 | -{return this.offset(this.size.width/2,this.size.height/2);},position:function() |
2981 | -{return iWPosition(true,this.origin.x,this.origin.y,this.size.width,this.size.height);},clip:function() |
2982 | -{return"clip: rect("+this.origin.y+"px, "+this.maxX()+"px, "+this.maxY()+"px, "+this.origin.x+"px);";},toExtents:function() |
2983 | -{return new IWExtents(this.origin.x,this.origin.y,this.origin.x+this.size.width,this.origin.y+this.size.height);},paddingToRect:function(padded) |
2984 | -{return new IWPadding(this.origin.x-padded.origin.x,this.origin.y-padded.origin.y,padded.maxX()-this.maxX(),padded.maxY()-this.maxY());},fill:function(context) |
2985 | -{context.fillRect(this.origin.x,this.origin.y,this.size.width,this.size.height);},clear:function(context) |
2986 | -{context.clearRect(this.origin.x,this.origin.y,this.size.width,this.size.height);}});var IWExtents=Class.create({initialize:function(left,top,right,bottom) |
2987 | -{this.left=left;this.top=top;this.right=right;this.bottom=bottom;},clone:function() |
2988 | -{return new IWExtents(this.left,this.top,this.right,this.bottom);},toRect:function() |
2989 | -{return new IWRect(this.left,this.top,this.right-this.left,this.bottom-this.top);}});var IWPadding=Class.create({initialize:function(left,top,right,bottom) |
2990 | -{this.left=left;this.top=top;this.right=right;this.bottom=bottom;}});var IWNotificationCenter=Class.create({initialize:function() |
2991 | -{this.mDispatchTable=new Array();},addObserver:function(observer,method,name,object) |
2992 | -{this.p_observersForName(name).push(new Array(observer,method,object));},removeObserver:function(observer) |
2993 | -{},postNotification:function(notification) |
2994 | -{if(notification.name()!=null) |
2995 | -{var observersForName=this.mDispatchTable[notification.name()];this.p_postNotificationToObservers(notification,observersForName);} |
2996 | -var observersForNullName=this.mDispatchTable[null];this.p_postNotificationToObservers(notification,observersForNullName);},postNotificationWithInfo:function(name,object,userInfo) |
2997 | -{this.postNotification(new IWNotification(name,object,userInfo));},p_postNotificationToObservers:function(notification,observers) |
2998 | -{if(notification!=null&&observers!=null) |
2999 | -{for(var i=0;i<observers.length;i++) |
3000 | -{var observer=observers[i][0];var method=observers[i][1];var obj=observers[i][2];if(obj==null||obj===notification.object()) |
3001 | -{method.call(observer,notification);}}}},p_observersForName:function(name) |
3002 | -{if(this.mDispatchTable[name]===undefined) |
3003 | -{this.mDispatchTable[name]=new Array();} |
3004 | -return this.mDispatchTable[name];}});var NotificationCenter=new IWNotificationCenter();var IWNotification=Class.create({initialize:function(name,object,userInfo) |
3005 | -{this.mName=name;this.mObject=object;this.mUserInfo=userInfo;},name:function() |
3006 | -{return this.mName;},object:function() |
3007 | -{return this.mObject;},userInfo:function() |
3008 | -{return this.mUserInfo;}});var IWAssertionsEnabled=true;function IWAssert(func,description) |
3009 | -{if(IWAssertionsEnabled) |
3010 | -{function IWAssertionFailed(func,description) |
3011 | -{var formatter=new RegExp("return[\t\r ]*([^};\r]*)");var assertionText=func.toString().match(formatter)[1];var message='Assertion failed: "'+assertionText+'"';if(description!=null) |
3012 | -message+='. '+description;iWLog(message);} |
3013 | -function IWCoreAssert(func,description) |
3014 | -{if(func()==false) |
3015 | -{IWAssertionFailed(func,description);}} |
3016 | -IWCoreAssert(function(){return typeof(func)=='function'},"IWAssert requires its first argument to be a function. "+"Try wrapping your assertion in function(){return ... }");var result=func();IWCoreAssert(function(){return result!=null},"The result of your assertion function is null; "+"did you remember your return statement?");IWCoreAssert(function(){return result==true||result==false},"The result of your assertion function is neither true nor false");if(result==false) |
3017 | -{IWAssertionFailed(func,description);}}} |
3018 | -Function.prototype.assert=function(description) |
3019 | -{IWAssert(this,description);} |
3020 | -function getTextFromNode(node) |
3021 | -{if(node.textContent) |
3022 | -return node.textContent;if(node.innerText) |
3023 | -return node.innerText;var result="";if(node.nodeType==Node.ELEMENT_NODE) |
3024 | -{var children=node.childNodes;for(var i=0;i<children.length;++i) |
3025 | -{result=result+getTextFromNode(children[i]);}} |
3026 | -else if(node.nodeType==Node.TEXT_NODE) |
3027 | -{return node.nodeValue;} |
3028 | -return result;} |
3029 | -function getChildElementsByTagNameNS(node,ns,nsPrefix,localName) |
3030 | -{var result=[];for(var i=0;i<node.childNodes.length;++i) |
3031 | -{var childNode=node.childNodes[i];if(childNode.namespaceURI) |
3032 | -{if(childNode.namespaceURI==ns) |
3033 | -{if(childNode.localName&&(childNode.localName==localName)) |
3034 | -{result.push(childNode);} |
3035 | -else if(childNode.tagName==(nsPrefix+":"+localName)) |
3036 | -{result.push(childNode);}}} |
3037 | -else |
3038 | -{if((ns=="")&&(childNode.tagName==localName)) |
3039 | -{result.push(childNode);}}} |
3040 | -return result;} |
3041 | -function getFirstChildElementByTagNameNS(node,ns,nsPrefix,localName) |
3042 | -{var children=getChildElementsByTagNameNS(node,ns,nsPrefix,localName);return(children.length>0)?children[0]:null;} |
3043 | -function getChildElementTextByTagName(node,tagName) |
3044 | -{var result="";if(node!==null) |
3045 | -{var children=node.getElementsByTagName(tagName);if(children.length>1) |
3046 | -{throw"MultipleResults";} |
3047 | -if(children.length==1) |
3048 | -{result=getTextFromNode(children[0]);}} |
3049 | -return result;} |
3050 | -function getChildElementTextByTagNameNS(node,ns,nsPrefix,localName) |
3051 | -{var result="";if(node) |
3052 | -{var children=getChildElementsByTagNameNS(node,ns,nsPrefix,localName);if(children.length>1) |
3053 | -throw"MultipleResults";if(children.length==1) |
3054 | -{result=getTextFromNode(children[0]);}} |
3055 | -return result;} |
3056 | -function adjustNodeIds(node,suffix) |
3057 | -{var undefined;if(node.id!="") |
3058 | -{node.id+=("$"+suffix);} |
3059 | -$(node).childElements().each(function(e){adjustNodeIds(e,suffix);});} |
3060 | -function substituteSpans(parentNode,replacements) |
3061 | -{$H(replacements).each(function(pair) |
3062 | -{var selector="span."+pair.key;$(parentNode).select(selector).each(function(node) |
3063 | -{var contentType=pair.value[0];var newContent=pair.value[1];if(contentType=="text") |
3064 | -{node.update(newContent);} |
3065 | -else if(contentType=="html") |
3066 | -{node.innerHTML=newContent;}});});} |
3067 | -Element.addMethods({selectFirst:function(element,tag_name){var elements=$(element).select(tag_name);return(elements.length>0)?$(elements[0]):null;},setVisibility:function(element,visible){element=$(element);if(visible) |
3068 | -{element.style.display='inline';} |
3069 | -else |
3070 | -{element.style.display='none';} |
3071 | -return element;},ensureHasLayoutForIE:function(element) |
3072 | -{element=$(element);if(windowsInternetExplorer&&effectiveBrowserVersion<8) |
3073 | -{if(!element.currentStyle.hasLayout) |
3074 | -{element.style.zoom=1;}}},setFilter:function(element,filterName,filterParams) |
3075 | -{element=$(element);var regex=new RegExp(filterName+'\\([^\\)]*\\);','gi');element.style.filter=element.style.filter.replace(regex,'')+ |
3076 | -filterName+'('+filterParams+'); ';return element;},killFilter:function(element,filterName) |
3077 | -{element=$(element);var regex=new RegExp(filterName+'\\([^\\)]*\\);','gi');element.style.filter=element.style.filter.replace(regex,'');return element;},cloneNodeExcludingIDs:function(element,deep) |
3078 | -{var clone=element.cloneNode(deep);if(deep) |
3079 | -{var descendantsWithID=clone.select("[id]");for(var i=0,length=descendantsWithID.length;i<length;++i){descendantsWithID[i].id="";}} |
3080 | -clone.id="";return clone;}});Object.extend(Array.prototype,{contains:function(value) |
3081 | -{return $A(this).indexOf(value)!=-1;},isEqual:function(that) |
3082 | -{if(this.length==that.length) |
3083 | -{for(var i=0;i<this.length;++i) |
3084 | -{if(this[i]!=that[i]) |
3085 | -return false;} |
3086 | -return true;} |
3087 | -return false;},minusArray:function(that) |
3088 | -{var result=$A(this);$A(that).each(function(e){result=result.without(e);});return result;}});String.stringWithFormat=function(format) |
3089 | -{var formatted="";var nextArgument=1;var formatPattern=/%((\d+)\$)?([%s])?/;while(true) |
3090 | -{foundIndex=format.search(formatPattern);if(foundIndex==-1) |
3091 | -{formatted+=format;break;} |
3092 | -if(foundIndex>0) |
3093 | -{formatted+=format.substring(0,foundIndex)} |
3094 | -var matchInfo=format.match(formatPattern);var formatCharacter=matchInfo[3];if(formatCharacter=="%") |
3095 | -{formatted+="%";} |
3096 | -else |
3097 | -{if(matchInfo[2]) |
3098 | -{argumentNumber=parseInt(matchInfo[2]);} |
3099 | -else |
3100 | -{argumentNumber=nextArgument++;} |
3101 | -argument=(argumentNumber<arguments.length)?arguments[argumentNumber]:"";if(formatCharacter=="s") |
3102 | -{formatted+=argument;}} |
3103 | -format=format.substring(foundIndex+matchInfo[0].length);} |
3104 | -return formatted;} |
3105 | -Object.extend(String.prototype,{lastPathComponent:function() |
3106 | -{return this.substr(this.lastIndexOf("/")+1);},pathExtension:function() |
3107 | -{var lastSeparatorIndex=this.lastIndexOf("/");var lastDotIndex=this.lastIndexOf(".");return((lastDotIndex>lastSeparatorIndex+1)&&lastDotIndex>0)?this.slice(lastDotIndex+1):this;},stringByDeletingLastPathComponent:function() |
3108 | -{return this.substr(0,this.lastIndexOf("/"));},stringByDeletingPathExtension:function() |
3109 | -{var lastSeparatorIndex=this.lastIndexOf("/");var lastDotIndex=this.lastIndexOf(".");if((lastDotIndex>lastSeparatorIndex+1)&&lastDotIndex>0) |
3110 | -return this.slice(0,lastDotIndex);return this;},stringByAppendingPathComponent:function(component) |
3111 | -{return this.endsWith("/")?(this+component):(this+"/"+component);},stringByAppendingAsQueryString:function(parameters) |
3112 | -{return this+'?'+$H(parameters).toQueryString();},stringByUnescapingXML:function() |
3113 | -{var str=this.replace(/</g,'<');str=str.replace(/>/g,'>');str=str.replace(/"/g,'"');str=str.replace(/'/g,"'");str=str.replace(/&/g,'&');return str;},stringByEscapingXML:function(escapeAdditionalCharacters) |
3114 | -{var str=this.replace(/&/g,'&');str=str.replace(/</g,'<');if(escapeAdditionalCharacters) |
3115 | -{str=str.replace(/>/g,'>');str=str.replace(/"/g,'"');str=str.replace(/'/g,''');} |
3116 | -return str;},stringByConvertingNewlinesToBreakTags:function() |
3117 | -{return this.replace(/\n\r|\n|\r/g,'<br />');},urlStringByDeletingQueryAndFragment:function() |
3118 | -{var result=this;var lastIndex=result.lastIndexOf("?");if(lastIndex>0) |
3119 | -return result.substr(0,lastIndex);lastIndex=result.lastIndexOf("#");if(lastIndex>0) |
3120 | -result=result.substr(0,lastIndex);return result;},toRelativeURL:function(baseURL) |
3121 | -{var result=this;if(baseURL&&this.indexOf(baseURL)==0) |
3122 | -{var chop=baseURL.length;if(this.charAt(chop)=='/') |
3123 | -++chop;result=this.substring(chop);} |
3124 | -return result;},toAbsoluteURL:function() |
3125 | -{var result=this;if(this.indexOf(":/")==-1) |
3126 | -{var pageURL=document.URL.urlStringByDeletingQueryAndFragment();var pathURL=pageURL.stringByDeletingLastPathComponent();result=pathURL.stringByAppendingPathComponent(this);} |
3127 | -return result;},toRebasedURL:function(baseURL) |
3128 | -{return this.toRelativeURL(baseURL).toAbsoluteURL();},httpURLRegExp:function() |
3129 | -{if(String.m_httpurlRegExp==undefined) |
3130 | -{var alpha="[A-Za-z]";var digit="[0-9]";var safe="[$_.+-]";var extra="[!*'(),]";var unreserved="("+alpha+"|"+digit+"|"+safe+"|"+extra+")";var hex="("+digit+"|"+"[A-Fa-f])";var escapeSeq="(%"+hex+hex+")";var uchar="("+unreserved+"|"+escapeSeq+")";var alphadigit="("+alpha+"|"+digit+")";var digits=digit+"+";var hostnumber="("+digits+"\\."+digits+"\\."+digits+"\\."+digits+")";var toplabel="(("+alpha+"("+alpha+"|"+"-)*"+alphadigit+")|"+alpha+")";var domainlabel="(("+alphadigit+"("+alphadigit+"|"+"-)*"+alphadigit+")|"+alphadigit+")";var hostname="(("+domainlabel+"\\.)*"+toplabel+")";var host="("+hostname+"|"+hostnumber+")";var port=digits;var hostport="(("+host+")(:"+port+")?)";var hsegment="((("+uchar+")|[;:@&=])*)";var search="((("+uchar+")|[;:@&=])*)";var hpath="("+hsegment+"(/"+hsegment+")*)";var httpurl="((http)|(feed)|(https))://"+hostport+"(/"+hpath+"(\\?"+search+")?)?" |
3131 | -String.m_httpurlRegExp=new RegExp(httpurl);} |
3132 | -return String.m_httpurlRegExp;},isHTTPURL:function() |
3133 | -{var matchResult=this.match(this.httpURLRegExp());return matchResult?(matchResult[0]==this):false;},firstHTTPURL:function() |
3134 | -{var matchResult=this.match(this.httpURLRegExp());return matchResult?matchResult[0]:undefined;},httpURLQueryString:function() |
3135 | -{var charIndex=this.indexOf("?");charIndex=((charIndex==-1)?this.indexOf("&"):charIndex);return(charIndex==-1)?"":this.slice(charIndex+1);},plaintextgsub:function(pattern,replacement) |
3136 | -{var value=this;while(true) |
3137 | -{var index=value.indexOf(pattern);if(index==-1) |
3138 | -break;value=value.substr(0,index)+replacement+value.substr(index+pattern.length);} |
3139 | -return value;}});function IWURL(urlString) |
3140 | -{try |
3141 | -{if((arguments.length==0)||(arguments.length==1&&(urlString==""||urlString==null))) |
3142 | -{this.p_initWithParts(null,null,null,null,null);} |
3143 | -else if(arguments.length==1) |
3144 | -{urlString.replace("file://localhost/","file:///");var urlParts=urlString.match(/^([A-Z]+):\/\/([^/]*)((\/[^?#]*)(\?([^#]*))?(#(.*))?)?/i);if(urlParts) |
3145 | -{this.p_initWithParts(urlParts[1],urlParts[2],urlParts[4]||"/",urlParts[6]||null,urlParts[8]||null);} |
3146 | -else |
3147 | -{urlParts=urlString.match(/^([^?#]*)(\?([^#]*))?(#(.*))?/);if(urlParts) |
3148 | -{this.p_initWithParts(null,null,urlParts[1],urlParts[3]||null,urlParts[5]||null);} |
3149 | -else |
3150 | -{}}}} |
3151 | -catch(e) |
3152 | -{print("Exception Parsing URL:"+e);}} |
3153 | -Object.extend(IWURL,{p_normalizePathComponents:function(components) |
3154 | -{var index=0;while(index<components.length) |
3155 | -{var component=components[index];if(component==""||component==".") |
3156 | -{components.splice(index,1);} |
3157 | -else if(component=="..") |
3158 | -{if(index>0) |
3159 | -{var previousComponent=components[index-1];if(previousComponent=="/") |
3160 | -{components.splice(index,1);} |
3161 | -else if(previousComponent!="..") |
3162 | -{components.splice(index-1,2);index-=1;} |
3163 | -else |
3164 | -{index+=1;}} |
3165 | -else |
3166 | -{index+=1;}} |
3167 | -else |
3168 | -{index+=1;}} |
3169 | -return components;}});Object.extend(IWURL.prototype,{p_initWithParts:function(inProtocol,inAuthority,inPath,inQuery,inFragment) |
3170 | -{this.mProtocol=inProtocol;this.mAuthority=inAuthority;this.mQuery=inQuery;this.mFragment=inFragment;this.mPathComponents=null;if(inPath) |
3171 | -{this.mPathComponents=inPath.split('/');if(this.mPathComponents[0]=="") |
3172 | -this.mPathComponents[0]='/';for(var i=0;i<this.mPathComponents.length;++i) |
3173 | -{this.mPathComponents[i]=decodeURIComponent(this.mPathComponents[i]);} |
3174 | -this.mPathComponents=IWURL.p_normalizePathComponents(this.mPathComponents);}},copy:function() |
3175 | -{var copy=new IWURL();copy.mProtocol=this.mProtocol;copy.mAuthority=this.mAuthority;copy.mQuery=this.mQuery;copy.mFragment=this.mFragment;copy.mPathComponents=null;if(this.mPathComponents) |
3176 | -{copy.mPathComponents=[];for(var i=0;i<this.mPathComponents.length;++i) |
3177 | -{copy.mPathComponents[i]=String(this.mPathComponents[i]);}} |
3178 | -return copy;},toString:function() |
3179 | -{var path="null";if(this.mPathComponents) |
3180 | -{path="";this.mPathComponents.each(function(component) |
3181 | -{if(path=="") |
3182 | -path="[ "+component;else |
3183 | -path+=", "+component;});if(path=="") |
3184 | -path="[]";else |
3185 | -path+=" ]";} |
3186 | -var result="{"+this.mProtocol+", "+this.mAuthority+", "+path+", "+this.mQuery+", "+this.mFragment+"}";return result;},isAbsolute:function() |
3187 | -{return(this.mPathComponents&&this.mPathComponents.length&&this.mPathComponents[0]=="/");},isRelative:function() |
3188 | -{return(this.mProtocol==null);},encodedPathComponents:function() |
3189 | -{var result=[];var index=0;while(index<this.mPathComponents.length) |
3190 | -{if((index==0)&&(this.mPathComponents[0]=="/")) |
3191 | -{result.push("/");} |
3192 | -else |
3193 | -{result.push(encodeURIComponent(this.mPathComponents[index]));} |
3194 | -index+=1;} |
3195 | -return result;},encodedPath:function() |
3196 | -{if(this.isAbsolute()) |
3197 | -{return"/"+this.encodedPathComponents().slice(1).join("/");} |
3198 | -else |
3199 | -{return this.encodedPathComponents().join("/");}},toURLString:function() |
3200 | -{if(this.isRelative()) |
3201 | -{return this.encodedPath()+ |
3202 | -(this.mQuery?"?"+this.mQuery:"")+ |
3203 | -(this.mFragment?"#"+this.mFragment:"");} |
3204 | -else |
3205 | -{return this.mProtocol+":"+"//"+this.mAuthority+this.encodedPath()+ |
3206 | -(this.mQuery?"?"+this.mQuery:"")+ |
3207 | -(this.mFragment?"#"+this.mFragment:"");}},isEqual:function(that) |
3208 | -{var pathMatches=true;if((this.mPathComponents)&&(that.mPathComponents)&&(this.mPathComponents.length==that.mPathComponents.length)) |
3209 | -{for(var index=0;index<this.mPathComponents.length;++index) |
3210 | -{if(this.mPathComponents[index]!=that.mPathComponents[index]) |
3211 | -{pathMatches=false;break;}}} |
3212 | -else |
3213 | -{pathMatches=false;} |
3214 | -return(this.mProtocol==that.mProtocol)&&(this.mAuthority==that.mAuthority)&&pathMatches&&(this.mQuery==that.mQuery)&&(this.mFragment==that.mFragment);},resolve:function(base) |
3215 | -{if(!this.isRelative()) |
3216 | -return new IWURL(this.toURLString());var resolved=base.copy();resolved.mQuery=null;resolved.mFragment=null;if(resolved.mPathComponents==null) |
3217 | -{resolved.mPathComponents=[];} |
3218 | -this.mPathComponents.each(function(component) |
3219 | -{resolved.mPathComponents.push(component);});resolved.mPathComponents=IWURL.p_normalizePathComponents(resolved.mPathComponents);return resolved;},relativize:function(base) |
3220 | -{if(base&&(base.mPathComponents&&base.mPathComponents.length>0)&&(this.mProtocol==base.mProtocol)&&(this.mAuthority==base.mAuthority)) |
3221 | -{var commonAncestorIndex=0;for(var index=0;index<Math.min(this.mPathComponents.length,base.mPathComponents.length);++index) |
3222 | -{if(this.mPathComponents[index]==base.mPathComponents[index]) |
3223 | -commonAncestorIndex=index;else |
3224 | -break;} |
3225 | -var relativePath=[];for(var up=base.mPathComponents.length-1;up>commonAncestorIndex;--up) |
3226 | -{relativePath.push("..");} |
3227 | -for(var down=commonAncestorIndex+1;down<this.mPathComponents.length;++down) |
3228 | -{relativePath.push(this.mPathComponents[down]);} |
3229 | -var relativized=new IWURL();relativized.mPathComponents=IWURL.p_normalizePathComponents(relativePath);relativized.mQuery=this.mQuery;relativized.mFragment=this.mFragment;return relativized;} |
3230 | -else |
3231 | -{return this.copy();}}}); |
3232 | \ No newline at end of file |
3233 | |
3234 | === removed file 'Wiki.html' |
3235 | --- Wiki.html 2010-08-15 17:48:28 +0000 |
3236 | +++ Wiki.html 1970-01-01 00:00:00 +0000 |
3237 | @@ -1,79 +0,0 @@ |
3238 | -<?xml version="1.0" encoding="UTF-8"?> |
3239 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3240 | - |
3241 | - |
3242 | -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
3243 | - <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
3244 | - |
3245 | - <meta name="Generator" content="iWeb 3.0.1" /> |
3246 | - <meta name="iWeb-Build" content="local-build-20100815" /> |
3247 | - <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> |
3248 | - <meta name="viewport" content="width=700" /> |
3249 | - <title>Text</title> |
3250 | - <link rel="stylesheet" type="text/css" media="screen,print" href="Wiki_files/Wiki.css" /> |
3251 | - <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Wiki_files/WikiIE.css'/><![endif]--> |
3252 | - <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]--> |
3253 | - <script type="text/javascript" src="Scripts/iWebSite.js"></script> |
3254 | - <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script> |
3255 | - <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script> |
3256 | - <script type="text/javascript" src="Wiki_files/Wiki.js"></script> |
3257 | - </head> |
3258 | - <body style="background: rgb(255, 255, 255); margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();"> |
3259 | - <div style="text-align: center; "> |
3260 | - <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; background: rgb(255, 255, 255); text-align: left; width: 700px; " id="body_content"> |
3261 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer"> |
3262 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
3263 | - <div class="com-apple-iweb-widget-navbar flowDefining" id="widget0" style="margin-left: 35px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; "> |
3264 | - |
3265 | - <div id="widget0-navbar" class="navbar"> |
3266 | - |
3267 | - |
3268 | - <div id="widget0-bg" class="navbar-bg"> |
3269 | - |
3270 | - |
3271 | - <ul id="widget0-navbar-list" class="navbar-list"> |
3272 | - <li></li> |
3273 | -</ul> |
3274 | - |
3275 | - |
3276 | -</div> |
3277 | - |
3278 | - |
3279 | -</div> |
3280 | - </div> |
3281 | - <script type="text/javascript"><!--//--><![CDATA[//><!-- |
3282 | -new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {"path-to-root": "", "navbar-css": ".navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #666;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:hover\r{\r\n \tcolor: #463C3C;\n\ttext-decoration: none;\r}\n\n\nli.current-page a\r{\r\t color: #463C3C;\n\ttext-decoration: none;\n\tfont-weight: bold;\r\r}\n", "current-page-GUID": "CCC81116-5DC2-4489-8B31-2AA3D58BBBC0", "isCollectionPage": "NO"}); |
3283 | -//--><!]]></script> |
3284 | - <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div> |
3285 | - </div> |
3286 | - <div style="height: 73px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer"> |
3287 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
3288 | - <div style="height: 1px; width: 630px; height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; " class="tinyText"> |
3289 | - <div style="position: relative; width: 630px; "> |
3290 | - <img src="Wiki_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; " /> |
3291 | - </div> |
3292 | - </div> |
3293 | - |
3294 | - |
3295 | - |
3296 | - <div id="id1" style="height: 50px; left: 35px; position: absolute; top: 23px; width: 630px; z-index: 1; " class="style_SkipStroke shape-with-text"> |
3297 | - <div class="text-content style_External_630_50" style="padding: 0px; "> |
3298 | - <div class="style"> |
3299 | - <p style="padding-bottom: 0pt; padding-top: 0pt; " class="Header">Text</p> |
3300 | - </div> |
3301 | - </div> |
3302 | - </div> |
3303 | - </div> |
3304 | - <div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer"> |
3305 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
3306 | - <div style="height: 480px; line-height: 480px; " class="spacer"> </div> |
3307 | - </div> |
3308 | - <div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer"> |
3309 | - <div style="height: 0px; line-height: 0px; " class="bumper"> </div> |
3310 | - </div> |
3311 | - </div> |
3312 | - </div> |
3313 | - </body> |
3314 | -</html> |
3315 | - |
3316 | - |
3317 | |
3318 | === removed directory 'Wiki_files' |
3319 | === removed file 'Wiki_files/Wiki.css' |
3320 | --- Wiki_files/Wiki.css 2010-08-15 17:48:28 +0000 |
3321 | +++ Wiki_files/Wiki.css 1970-01-01 00:00:00 +0000 |
3322 | @@ -1,98 +0,0 @@ |
3323 | -.style { |
3324 | - padding: 4px; |
3325 | -} |
3326 | -.style_SkipStroke { |
3327 | - background: transparent; |
3328 | - opacity: 1.00; |
3329 | -} |
3330 | -.style_External_630_50 { |
3331 | - position: relative; |
3332 | -} |
3333 | -.Header { |
3334 | - color: rgb(167, 167, 167); |
3335 | - font-family: 'Arial-BoldMT', 'Arial', sans-serif; |
3336 | - font-size: 36px; |
3337 | - font-stretch: normal; |
3338 | - font-style: normal; |
3339 | - font-variant: normal; |
3340 | - font-weight: 700; |
3341 | - letter-spacing: 0; |
3342 | - line-height: 42px; |
3343 | - margin-bottom: 0px; |
3344 | - margin-left: 0px; |
3345 | - margin-right: 0px; |
3346 | - margin-top: 0px; |
3347 | - opacity: 1.00; |
3348 | - padding-bottom: 0px; |
3349 | - padding-top: 0px; |
3350 | - text-align: center; |
3351 | - text-decoration: none; |
3352 | - text-indent: 0px; |
3353 | - text-transform: none; |
3354 | -} |
3355 | -.Normal_External_630_50 { |
3356 | - position: relative; |
3357 | -} |
3358 | -.Normal { |
3359 | - padding: 4px; |
3360 | -} |
3361 | -.graphic_generic_header_textbox_style_default_SkipStroke { |
3362 | - background: transparent; |
3363 | - opacity: 1.00; |
3364 | -} |
3365 | -.bumper { |
3366 | - font-size: 1px; |
3367 | - line-height: 1px; |
3368 | -} |
3369 | -#widget0 a:hover { |
3370 | - color: rgb(0, 0, 0); |
3371 | - text-decoration: underline; |
3372 | -} |
3373 | -#widget0 a:visited { |
3374 | - color: rgb(121, 121, 121); |
3375 | - text-decoration: underline; |
3376 | -} |
3377 | -#widget0 a { |
3378 | - color: rgb(88, 77, 77); |
3379 | - text-decoration: underline; |
3380 | -} |
3381 | -.spacer { |
3382 | - font-size: 1px; |
3383 | - line-height: 1px; |
3384 | -} |
3385 | -body { |
3386 | - -webkit-text-size-adjust: none; |
3387 | -} |
3388 | -div { |
3389 | - overflow: visible; |
3390 | -} |
3391 | -img { |
3392 | - border: none; |
3393 | -} |
3394 | -.InlineBlock { |
3395 | - display: inline; |
3396 | -} |
3397 | -.InlineBlock { |
3398 | - display: inline-block; |
3399 | -} |
3400 | -.inline-block { |
3401 | - display: inline-block; |
3402 | - vertical-align: baseline; |
3403 | - margin-bottom:0.3em; |
3404 | -} |
3405 | -.inline-block.shape-with-text { |
3406 | - vertical-align: bottom; |
3407 | -} |
3408 | -.vertical-align-middle-middlebox { |
3409 | - display: table; |
3410 | -} |
3411 | -.vertical-align-middle-innerbox { |
3412 | - display: table-cell; |
3413 | - vertical-align: middle; |
3414 | -} |
3415 | -div.paragraph { |
3416 | - position: relative; |
3417 | -} |
3418 | -li.full-width { |
3419 | - width: 100; |
3420 | -} |
3421 | |
3422 | === removed file 'Wiki_files/Wiki.js' |
3423 | --- Wiki_files/Wiki.js 2010-08-15 17:48:28 +0000 |
3424 | +++ Wiki_files/Wiki.js 1970-01-01 00:00:00 +0000 |
3425 | @@ -1,9 +0,0 @@ |
3426 | -// Created by iWeb 3.0.1 local-build-20100815 |
3427 | - |
3428 | -setTransparentGifURL('Media/transparent.gif');function hostedOnDM() |
3429 | -{return false;} |
3430 | -function onPageLoad() |
3431 | -{loadMozillaCSS('Wiki_files/WikiMoz.css') |
3432 | -adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');Widget.onload();fixAllIEPNGs('Media/transparent.gif');performPostEffectsFixups()} |
3433 | -function onPageUnload() |
3434 | -{Widget.onunload();} |
3435 | |
3436 | === removed file 'Wiki_files/WikiIE.css' |
3437 | --- Wiki_files/WikiIE.css 2010-08-15 17:48:28 +0000 |
3438 | +++ Wiki_files/WikiIE.css 1970-01-01 00:00:00 +0000 |
3439 | @@ -1,28 +0,0 @@ |
3440 | -.inline-block { |
3441 | - display: inline; |
3442 | - vertical-align: baseline; |
3443 | - margin-bottom:-2em; |
3444 | - margin-top:2em; |
3445 | - position:relative; |
3446 | - top:-2em; |
3447 | -} |
3448 | -.vertical-align-middle-middlebox { |
3449 | - display: block; |
3450 | - height: auto; |
3451 | - position: absolute; |
3452 | - top: 50%; |
3453 | -} |
3454 | -.vertical-align-middle-innerbox { |
3455 | - display: block; |
3456 | - position: relative; |
3457 | - top: -50%; |
3458 | -} |
3459 | -li.full-width { |
3460 | - width: auto; |
3461 | -} |
3462 | -li div div.inline-block a img { |
3463 | - text-indent: 0; |
3464 | -} |
3465 | -img { |
3466 | - -ms-interpolation-mode: bicubic; |
3467 | -} |
3468 | |
3469 | === removed file 'Wiki_files/WikiMoz.css' |
3470 | --- Wiki_files/WikiMoz.css 2010-08-15 17:48:28 +0000 |
3471 | +++ Wiki_files/WikiMoz.css 1970-01-01 00:00:00 +0000 |
3472 | @@ -1,6 +0,0 @@ |
3473 | -.inline-block { |
3474 | - display: -moz-inline-box; |
3475 | - display: inline-block; |
3476 | - vertical-align: baseline; |
3477 | - margin-bottom:3px; |
3478 | -} |
3479 | |
3480 | === removed file 'Wiki_files/shapeimage_1.jpg' |
3481 | Binary files Wiki_files/shapeimage_1.jpg 2010-08-15 17:48:28 +0000 and Wiki_files/shapeimage_1.jpg 1970-01-01 00:00:00 +0000 differ |
3482 | === removed file 'feed.xml' |
3483 | --- feed.xml 2011-01-10 06:08:41 +0000 |
3484 | +++ feed.xml 1970-01-01 00:00:00 +0000 |
3485 | @@ -1,65 +0,0 @@ |
3486 | -<?xml version="1.0" encoding="UTF-8"?> |
3487 | -<feed xmlns="http://www.w3.org/2005/Atom"> |
3488 | - <id>urn:iweb:C9780A97-DAC7-49BD-BFF3-DBF529C57B48</id> |
3489 | - <title>Page list Atom feed</title> |
3490 | - <updated>2010-08-14T15:22:46-07:00</updated> |
3491 | - <link rel="self" href="feed.xml"/> |
3492 | - <generator>iWeb</generator> |
3493 | - <author> |
3494 | - <name>iWeb</name> |
3495 | - </author> |
3496 | -<entry> |
3497 | - <id>urn:iweb:18F84135-89A2-4C9A-AF4C-AAF77590623E</id> |
3498 | - <title>Documentation</title> |
3499 | - <title xmlns="urn:iweb:">Documentation</title> |
3500 | - <in-navbar xmlns="urn:iweb:">18F84135-89A2-4C9A-AF4C-AAF77590623E</in-navbar> |
3501 | - <link rel="alternate" href="http://docs.drizzle.org/" /> |
3502 | - <updated>2010-08-15T15:22:46.002-07:00</updated> |
3503 | - <content>Documentation</content> |
3504 | -</entry> |
3505 | - <entry> |
3506 | - <id>urn:iweb:18F84135-89A2-4C9A-AF4C-AAF77590623D</id> |
3507 | - <title>Development</title> |
3508 | - <title xmlns="urn:iweb:">Development</title> |
3509 | - <in-navbar xmlns="urn:iweb:">18F84135-89A2-4C9A-AF4C-AAF77590623D</in-navbar> |
3510 | - <link rel="alternate" href="http://launchpad.net/drizzle"/> |
3511 | - <updated>2010-08-15T15:22:46.002-07:00</updated> |
3512 | - <content>Development</content> |
3513 | - </entry> |
3514 | - <entry> |
3515 | - <id>urn:iweb:2F5EF0CA-5C3B-4396-A85D-1BE1D6D665F1</id> |
3516 | - <title>Blogs</title> |
3517 | - <title xmlns="urn:iweb:">Blogs</title> |
3518 | - <in-navbar xmlns="urn:iweb:">2F5EF0CA-5C3B-4396-A85D-1BE1D6D665F1</in-navbar> |
3519 | - <link rel="alternate" href="http://planetdrizzle.org"/> |
3520 | - <updated>2010-08-14T15:22:46.003-07:00</updated> |
3521 | - <content>Blogs</content> |
3522 | - </entry> |
3523 | - <entry> |
3524 | - <id>urn:iweb:CCC81116-5DC2-4489-8B31-2AA3D58BBBC0</id> |
3525 | - <title>Wiki</title> |
3526 | - <title xmlns="urn:iweb:">Wiki</title> |
3527 | - <in-navbar xmlns="urn:iweb:">CCC81116-5DC2-4489-8B31-2AA3D58BBBC0</in-navbar> |
3528 | - <link rel="alternate" href="http://wiki.drizzle.org"/> |
3529 | - <updated>2010-08-14T15:22:46.004-07:00</updated> |
3530 | - <content>Wiki</content> |
3531 | - </entry> |
3532 | - <entry> |
3533 | - <id>urn:iweb:DC422DAE-6D36-4025-BBF7-E410FB2B8960</id> |
3534 | - <title>FAQ</title> |
3535 | - <title xmlns="urn:iweb:">FAQ</title> |
3536 | - <in-navbar xmlns="urn:iweb:">DC422DAE-6D36-4025-BBF7-E410FB2B8960</in-navbar> |
3537 | - <link rel="alternate" href="http://wiki.drizzle.org/FAQ"/> |
3538 | - <updated>2010-08-14T15:22:46.005-07:00</updated> |
3539 | - <content>FAQ</content> |
3540 | - </entry> |
3541 | - <entry> |
3542 | - <id>urn:iweb:DC422DAE-6D36-4025-BBF7-E410FB2B8960</id> |
3543 | - <title>Twitter</title> |
3544 | - <title xmlns="urn:iweb:">Twitter</title> |
3545 | - <in-navbar xmlns="urn:iweb:">DC422DAE-6D36-4025-BBF7-E410FB2B8960</in-navbar> |
3546 | - <link rel="alternate" href="http://twitter.com/DrizzleDB"/> |
3547 | - <updated>2011-01-14T15:22:46.005-07:00</updated> |
3548 | - <content>Twitter</content> |
3549 | - </entry> |
3550 | -</feed> |
3551 | |
3552 | === added symlink 'index.html' |
3553 | === target is u'Home.html' |
3554 | === removed file 'index.html' |
3555 | --- index.html 2010-08-15 17:48:28 +0000 |
3556 | +++ index.html 1970-01-01 00:00:00 +0000 |
3557 | @@ -1,1 +0,0 @@ |
3558 | -<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= Home.html" /></head><body></body></html> |
3559 | \ No newline at end of file |
Also, shave over 100K off our favicon (ouch!)