var Site = {init: function() {if ( $('curso') ) curso.parsecursos();}};

var curso = {parsecursos: function(){var cursos = $$('#curso .curso');
var fx = new Fx.Elements(cursos, {wait: false, duration: 800, transition: Fx.Transitions.elasticOut});
cursos.each(function(curso, i){curso.addEvent('mouseover', function(e){e = new Event(e).stop();
var obj = {};obj[i] = { 'width': [curso.getStyle('width').toInt(), 280] };

cursos.each(function(other, j){if (other != curso){var w = other.getStyle('width').toInt();if (w != 125) obj[j] = {'width': [w, 125]};}});fx.start(obj);});});

document.addEvent('mouseover', function(e){e = new Event(e);var rel = e.relatedTarget;if (!rel) return;if (rel.hasClass && (rel.hasClass('cursos') || rel.hasClass('curso') || rel.id == 'curso')){var obj = {};cursos.each(function(other, j){
obj[j] = {'width': [other.getStyle('width').toInt(), 178]};});fx.start(obj);};});}};

window.onDomReady(Site.init); function addLoadEvent(func) {var oldonload = window.onload;if (typeof window.onload != 'function') {
window.onload = func;} else {window.onload = function() {oldonload();func();}}}