window.addEvent('domready', function(){
if (hasFlash) {
$$('h1').each(function(el){
fla = "/sciencesquad/assets/h1h2h3.swf?fg=ffffff&str="+escape(el.innerHTML);
theHTML = "";
//el.setHTML(theHTML); //this causes IE6 to prompt the user to click OK before loading the control!
el.innerHTML = theHTML;
});
$$('h2').each(function(el){
if (!el.hasClass('skip')) {
fla = "/sciencesquad/assets/h1h2h3.swf?fg=009ee0&str="+escape(el.innerHTML);
$$('.rounded_1_1', '.rounded_2_1', '.rounded_green_1', '.rounded_purple_1', '.activities').each(function(el2){
if (el2.hasChild(el)) {
fla = "/sciencesquad/assets/h1h2h3.swf?fg=ffffff&str="+escape(el.innerHTML);
}
});
theHTML = "";
//el.setHTML(theHTML); //this causes IE6 to prompt the user to click OK before loading the control!
el.innerHTML = theHTML;
}
});
$$('h3').each(function(el){
if (!el.hasClass('skip')) {
fla = "/sciencesquad/assets/h1h2h3.swf?fg=009ee0&str="+escape(el.innerHTML);
$$('.rounded_1_1', '.rounded_2_1').each(function(el2){
if (el2.hasChild(el)) {
fla = "/sciencesquad/assets/h1h2h3.swf?fg=ffffff&str="+escape(el.innerHTML);
}
});
theHTML = "";
//el.setHTML(theHTML); //this causes IE6 to prompt the user to click OK before loading the control!
el.innerHTML = theHTML;
}
});
$$('h4').each(function(el){
if (!el.hasClass('skip')) {
fla = "/sciencesquad/assets/h4.swf?fg=ffffff&str="+escape(el.innerHTML);
theHTML = "";
//el.setHTML(theHTML); //this causes IE6 to prompt the user to click OK before loading the control!
el.innerHTML = theHTML;
}
});
}
document.boxpurple = new RoundedCorners('.rounded_purple_1', {radius: 36, cls: 'rounded_purple'});
document.boxgreen = new RoundedCorners('.rounded_green_1', {radius: 36, cls: 'rounded_green'});
document.box1 = new RoundedCorners('.rounded_1_1', {radius: 5, cls: 'rounded_1'});
document.box2 = new RoundedCorners('.rounded_2_1', {radius: 13, cls: 'rounded_2'});
var detect = new TextResizeDetector({onChange: function() { document.box1.resize(); document.box2.resize(); document.boxpurple.resize(); document.boxgreen.resize(); }});
});
window.addEvent('load', function(){
document.box1.resize(); document.box2.resize(); document.boxpurple.resize(); document.boxgreen.resize();
});