
/*******************************************************************************
* event domready functions
*******************************************************************************/

window.addEvent('domready', function() {

  /*************
   * Accordion *
   *************/
   
  if($('accordion')){
	  $$('h2').addEvent('mouseover',function(){
		 $$('h2').setStyle('cursor','pointer'); 
	  });
	  
	   $$('h2').addEvent('click',function(){
		 $$('h2').setStyle('border-top-width','0px'),
		 this.setStyle('border-top-width','1px');
	  });
	  
	  var myAccordion = new Accordion($$('h2'), $$('.acc'), { display: 0, alwaysHide: true });
  }
  
  
  if($$('#content a.rem') != ''){	 
				ReMooz.assign('#content a.rem', {
					'origin': 'img',
					'shadow': 'onOpenEnd', // fx is faster because shadow appears after resize animation
					'resizeFactor': 0.8, // resize to maximum 80% of screen size
					'cutOut': false, // don't hide the original
					'opacityResize': 0.4, // opaque resize
					'dragging': false, // disable dragging
					'centered': true // resize to center of the screen, not relative to the source element
				});
				
				 $$('a.rem').addEvent('mouseover',function(){
				   $$('a.rem').setStyle('cursor','pointer'); 
				});
			 
				/**
				 * Note on "shadow": value can be true, onOpenEnd (appear after resize) and false, to disable shadow
				 * WebKit (Safari 3) uses (great looking) CSS shadows, so it ignores this option.
				 */
	}
  
  
  
  
});



