/**
 * @author arian
 */

(function($){
	
	window.addEvent('domready',function(){
					
		(function(){
			var map = $('content-wrapper').getElement('.map'),
				address = map.getElement('address')
					.setStyles({
						opacity: 0.7
					});

			map.addEvents({
				mouseenter: function(){
					address.morph({bottom: 110,opacity: 1});
				},
				mouseleave: function(){
					address.morph({bottom: 100,opacity: 0.7});
				}
			});
		})();
				
		var appartement = $('appartement-6-22');
		if(appartement){
			var title = document.getElement('h1').get('text').trim();
			appartement.getElements('option').each(function(option){
				if(option.get('value').trim() == title){
					option.set('selected','selected');
				}
			});
		}

	});
	
})(document.id);

