Не пашет :( Ругается так: "Предпологается наличие объекта"

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<HTML>
<HEAD>
<TITLE>MOOtEST</TITLE>
<SCRIPT LANGUAGE="JavaScript" SRC="mootools-1.2.1-core-nc.js"></SCRIPT>
<SCRIPT language="JavaScript">
var szNormal = 117, szSmall = 100, szFull = 219;
var kwicks = $$("#kwicks .kwick");
var fx = new Fx.Elements(kwicks, {wait: false, duration: 300, transition: Fx.Transitions.Back.easeOut});
kwicks.each(function(kwick, i) {
kwick.addEvent("mouseenter", function(event) {
var o = {};
o[i] = {width: [kwick.getStyle("width").toInt(), szFull]}
kwicks.each(function(other, j) {
if(i != j) {
var w = other.getStyle("width").toInt();
if(w != szSmall) o[j] = {width: [w, szSmall]};
}
});
fx.start(o);
});
});
$("kwicks").addEvent("mouseleave", function(event) {
var o = {};
kwicks.each(function(kwick, i) {
o[i] = {width: [kwick.getStyle("width").toInt(), szNormal]}
});
fx.start(o);
})
</SCRIPT>
<STYLE>
#kwicks_container {
background-color: violet;
height: 100px;
}
#kwicks {
position: relative;
}
#kwicks .kwick {
float: left;
display: block;
width: 117px;
height: 100px;
}
#kwick_red {background-color: red;}
#kwick_orange {background-color: orange;}
#kwick_yellow {background-color: yellow;}
#kwick_green {background-color: green;}
#kwick_blue {background-color: blue;}
#kwick_indigo {background-color: indigo; color: #fff; }
#kwick_violet {background-color: violet;}
</STYLE>
</HEAD>
<BODY>
<h3>Kwick</h3>
<div id="kwicks_container">
<ul id="kwicks">
<li id="kwick_red" class="kwick"><span>Red</span></li>
<li id="kwick_orange" class="kwick"><span>Orange</span></li>
<li id="kwick_yellow" class="kwick"><span>Yellow</span></li>
<li id="kwick_green" class="kwick"><span>Green</span></li>
<li id="kwick_blue" class="kwick"><span>Blue</span></li>
<li id="kwick_indigo" class="kwick"><span>Indigo</span></li>
<li id="kwick_violet" class="kwick"><span>Violet</span></li>
</ul>
<span class="clr"><!-- spanner --></span>
</div>
</BODY>
</HTML>