window.addEvent('domready', function(){
			
	//Adjust the height on the left column dynamically
	
	var bd = $$('body').set('id','bd');
	var b = $('bd').getStyle('height').toInt();
	
	var totalHeight = b;
	var newHeight = totalHeight-500+'px';
	$$('.locations').set('id', 'locations');
	$('locations').setStyle('height', newHeight);
	
	//Dropdown Menu
	$$('.dropdown').each(function(dd, index){
		dd.set('id', 'dropdown'+index);				  
	});
	
	$$('.menu').each(function(menu, index){
		menu.set('id', 'menu'+index);
		$('menu'+index).addEvents({
			'mouseenter': function(){
				// 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.Quad.easeOut // This could have been also 'bounce:out'
				})
				$('dropdown'+index).tween('height', '150px');
			},
			'mouseleave': function(){
				// Resets the tween and changes the element back to its original size
				$('dropdown'+index).set('tween', {}).tween('height', '0px');
			}
		});								   
	});
	
	//Circles hover */
	$$('.circlesWrapper a img').each(function(c,index){
		c.set('id', 'circle'+index);
		var off = $('circle'+index).getProperty('src');
		var on = off.replace('_off','_on');
		$('circle'+index).addEvents({
			'mouseover': function(){
				$('circle'+index).setProperty('src',on);
			},
			'mouseout': function(){
				$('circle'+index).setProperty('src',off);	
			}
		});
	});
	
	// Tool tips for the circles 
	
	var tips = new Tips('.circles');
	var tip6 = new Tips('.circle6');
	

	
});
