window.addEvent('domready', function() { $$('*[id^=shrinker_]').each(function(shrinker){ shrinker.store('onclick', shrinker.getProperty('onclick')); shrinker.removeProperty('onclick'); shrinker.addEvent('click', function(event) { event.stop(); window.store('shrinker', this); var myFx = new Fx.Morph('shrink'); window.scrollTo(0, 0); myFx.addEvent('complete', function() { el = window.retrieve('shrinker'); eval(el.retrieve('onclick')); if (el.href) location.href = el.href; }); myFx.start({height: 105, opacity: 0}); }); }); if ($('tabs')) { el = $('tabs').getElement('div[class=older]'); if (el) { el.addEvent('mouseenter', function() { $('tabs').setStyle('background-position', 'bottom'); }); el.addEvent('mouseleave', function() { $('tabs').setStyle('background-position', 'top'); }); } } }); window.addEvent('load', function() { el = $('shrink'); if (el) { el.setStyle('height', 'auto'); coords = el.getCoordinates(); var myFx = new Fx.Morph('shrink').set({height: 105, opacity: 0}); myFx.start({height: coords.height, opacity: 1}); } $$('*[id^=trigger_]').each(function(trigger){ el = $('popup_'+trigger.getProperty('id').substr(8)); el.setStyle('display', 'block'); coords_1 = el.getSize(); width = coords_1.x; height = coords_1.y; if (height < 317) height = 317; el.setStyles({'width': width, 'height': height, 'display': 'none'}); theContents = el.get('html'); el.set('html', ''); theElement = new Element('div'); theElement.setStyles({'position': 'absolute', 'left': 0, 'top': 248, 'width': width, 'height': height - 248 - 69}); theElement.addClass('popup_3'); theElement.injectInside(el); theElement = new Element('div'); theElement.setStyles({'position': 'absolute', 'left': 0, 'top': 0, 'width': width, 'height': 248}); theElement.addClass('popup_4'); theElement.injectInside(el); theElement = new Element('div'); theElement.setStyles({'position': 'absolute', 'left': 0, 'top': height - 69, 'width': width, 'height': 69}); theElement.addClass('popup_5'); theElement.injectInside(el); theElement = new Element('div'); theElement.setStyles({'position': 'absolute', 'left': 0, 'top': 0, 'width': width, 'height': height}); theElement.set('html', theContents); theElement.injectInside(el); closepopup = function(){ el = window.retrieve('popup'); el.setStyle('display', 'none'); el.position({x: 0, y: 0}); }; el.addEvent('mouseenter', function() { $clear(window.retrieve('popup_timer')); }); el.addEvent('mouseleave', function() { window.store('popup_timer', closepopup.delay(1000)); }); trigger.addEvent('mouseenter', function() { el = window.retrieve('popup'); if (el) { if (el == this) return; el.setStyle('display', 'none'); $clear(window.retrieve('popup_timer')); } el = $('popup_'+this.getProperty('id').substr(8)); el.setStyle('display', 'block'); coords_1 = el.getCoordinates($('content_1')); coords_2 = this.getCoordinates($('content_1')); el.position({x: coords_2.right - 50, y: coords_2.bottom - (coords_2.height / 2) - coords_1.height + 200}); window.store('popup', el); }); trigger.addEvent('mouseleave', function() { window.store('popup_timer', closepopup.delay(1000)); }); }); }); var hasFlash = 0; if (navigator.mimeTypes) { var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; if (plugin && plugin.description.indexOf(".") != -1) { prefix = plugin.description.substring(0, plugin.description.indexOf(".")); prefix = prefix.substring(prefix.lastIndexOf(" ")); suffix = plugin.description.substring(plugin.description.indexOf(".")+1); suffix = suffix.substring(0, suffix.indexOf(" ")); if (parseInt(prefix) >= 7) hasFlash = 1; } } if ((navigator.appVersion.indexOf("MSIE") != -1) && (navigator.appVersion.indexOf("Windows") != -1)) { document.writeln('