Index: trunk/packages/invirt-web/code/static/stripe.js
===================================================================
--- trunk/packages/invirt-web/code/static/stripe.js	(revision 2795)
+++ 	(revision )
@@ -1,18 +1,0 @@
-/*
- * The general idea is from the following A List Apart article:
- * http://www.alistapart.com/articles/zebratables/
- *
- * The structure is inspired by the code fragment they supply, but the
- * code here is significantly cleaner. It also colors every two lines
- * rather than every line, since XVM uses two rows for each item.
- */
-
-function stripe(table, darkClass, lightClass) {
-    for (var i = 0; i < table.rows.length; i++ ) {
-        /* The header row should be light; the next two are dark. */
-        if (i%4 == 1 || i%4 == 2)
-            table.rows[i].className += ' ' + darkClass;
-        else if (lightClass)
-            table.rows[i].className += ' ' + lightClass;
-    }
-}
Index: trunk/packages/invirt-web/code/templates/list.mako
===================================================================
--- trunk/packages/invirt-web/code/templates/list.mako	(revision 2795)
+++ trunk/packages/invirt-web/code/templates/list.mako	(revision 2796)
@@ -81,6 +81,10 @@
 </%def>
 
-<%def name="machineRow(machine)">
-      <tr> 
+<%def name="machineRow(machine, dark)">
+      <tr\
+% if dark:
+ class="stripedrow" \
+% endif
+> 
 	<td rowspan="2">
 	% if machine.uptime and installing[machine]:
@@ -140,15 +144,8 @@
 	<th>VNC</th>
       </tr>
-% for machine in machines:
-	${machineRow(machine)}
+% for n, machine in enumerate(machines):
+	${machineRow(machine, (n%2)==0)}
 % endfor
     </table>
-    <script type="text/javascript" src="/static/stripe.js"></script>
-    <script type="text/javascript">
-        document.observe("dom:loaded", function() {
-            stripe($('machinelist').getElementsByTagName('table')[0],
-                   'stripedrow');
-        });
-    </script>
 </%def>
 
