window.addEvent('domready', function() {

 $('firmprofile').addEvents({
  'mouseenter': function(){
	var ison = $('firmprofile').getElement('span').setStyle('color', '#b5121b');
   // Always sets the duration of the tween to 1000 ms and a bouncing transition
   // And then tweens the height of the element
   this.set('tween', {
    duration: 500,
	transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
   }).tween('height', '190px');
  },
   
  'mouseleave': function(){
	var isoff = $('firmprofile').getElement('span').setStyle('color', '#ffffff');
   // Resets the tween and changes the element back to its original size
   this.set('tween', {}).tween('height', '20px');
  }
 });
 
  $('ourpeople').addEvents({
  'mouseenter': function(){
	var ison = $('ourpeople').getElement('span').setStyle('color', '#b5121b');
   // Always sets the duration of the tween to 1000 ms and a bouncing transition
   // And then tweens the height of the element
   this.set('tween', {
    duration: 500,
	transition: Fx.Transitions.linear
   }).tween('height', '190px');
  },
   
  'mouseleave': function(){
	var isoff = $('ourpeople').getElement('span').setStyle('color', '#ffffff');
   // Resets the tween and changes the element back to its original size
   this.set('tween', {}).tween('height', '20px');
  }
 });
 
  $('services').addEvents({
  'mouseenter': function(){
	var ison = $('services').getElement('span').setStyle('color', '#b5121b');
   // Always sets the duration of the tween to 1000 ms and a bouncing transition
   // And then tweens the height of the element
   this.set('tween', {
    duration: 500,
	transition: Fx.Transitions.linear
   }).tween('height', '190px');
  },
   
  'mouseleave': function(){
	var isoff = $('services').getElement('span').setStyle('color', '#ffffff');
	   this.set('tween', {}).tween('height', '20px');
  }
 });
  
  $('links').addEvents({
  'mouseenter': function(){
	var ison = $('links').getElement('a').setStyle('color', '#b5121b');
  },
   
  'mouseleave': function(){
	var isoff = $('links').getElement('a').setStyle('color', '#ffffff');
	}
 });  

  $('contactus').addEvents({
  'mouseenter': function(){
	var ison = $('contactus').getElement('a').setStyle('color', '#b5121b');
  },
   
  'mouseleave': function(){
	var isoff = $('contactus').getElement('a').setStyle('color', '#ffffff');
	}
 });

new SimpleCarousel($('simpleCarousel'), $$('#simpleCarousel div.slide'), $$('#simpleCarousel td.button'), {
	slideInterval: 5000,
	rotateAction: 'click'
});

});