document.addEvent('domready', function() {
 var reMoozElements = $$('a.thickbox');
 
 if (reMoozElements.length > 0) {
  reMoozElements.each(function(element) {
   // Constructor, takes the element and options as arguments
   new ReMooz(element, {
       centered: true, // Zoom the center of the screen
       origin: element.getElement('img') // Take the image inside as origin for the zooming element
   });
  });
 }
 
 Cufon.replace(['h2','h3','h4','#nav-main li a','#menu li a']);
 
 (function() {
 
 var menuWidth = $('nav-main').getStyle('width').toInt();
 var tabsWidth = 0;
 $$('#nav-main li').each(function(el) {
  if (el.get('id') != 'end') {
   tabsWidth = tabsWidth+el.getStyle('width').toInt();
  }
 });
 
 $$('#nav-main #end').setStyle('width',(menuWidth-tabsWidth)+'px');
 }).delay(100);
 
});