window.addEvent('domready', function() { if (hasFlash) { $$('h3').each(function(el){ if (el.hasClass('convention')) { fla = "/smartmoves/assets/h3.swf?str="+escape(el.get('html'))+"&fg=ffffff"; } else { fla = "/smartmoves/assets/h3.swf?str="+escape(el.get('html'))+"&fg=e5472a"; } theHTML = ""; //el.setHTML(theHTML); //this causes IE6 to prompt the user to click OK before loading the control! el.innerHTML = theHTML; }); } $$('.highlight').each(function(el){ highlight_0 = new Element('div'); highlight_0.addClass('highlight_0'); highlight_1 = new Element('div'); highlight_1.addClass('highlight_1'); highlight_1.injectInside(highlight_0); highlight_2 = new Element('div'); highlight_2.addClass('highlight_2'); highlight_2.injectInside(highlight_1); highlight_3 = new Element('div'); highlight_3.addClass('highlight_3'); highlight_3.injectInside(highlight_2); highlight_4 = new Element('div'); highlight_4.addClass('highlight_4'); highlight_4.inject(highlight_1); theContents = el; highlight_0.replaces(el); el.injectInside(highlight_3); }); }); /* This was removed so we could make not flash-devices work with page window.addEvent('load', function() { if ($('robotFlash')) $('robotFlash').setStyle('display', 'block'); });*/ window.addEvent('load', function() { if ($('robotFlash').getStyle('display') == 'none') { $('robotStatic').setStyle('display', 'block'); } }); function robotDone() { $('robotFlash').setStyle('display', 'none'); $('robotStatic').setStyle('display', 'block'); }