
window.addEvent('domready', function(){
		
	var slide_status = 0;
	
	$('drop_down_menu').getElements('li.menu').each( function( elem ){
		var list = elem.getElement('ul.links');		
		if (list) {
			elem.addEvents({
				'mouseenter' : function(){
					list.setStyle('display','block');
				},
				'mouseleave' : function(){
					list.setStyle('display','none');
				}
			});
		}
	})
	
	if ($('f.search.param')){
		$('f.search.param').addEvent('focus', function(){
	    $('f.search.param').set('value', '');
	    $('f.search.param').setStyle('color', '#000000');
			$('f.search.param').setStyle('text-align', 'left');
		});
		$('f.search.param').addEvent('blur', function(){
			if ($('f.search.param').get('value')){searchtext = $('f.search.param').get('value');}
	    $('f.search.param').set('value', searchtext);
			$('f.search.param').setStyle('color', '#b0b0b0');
			$('f.search.param').setStyle('text-align', 'center');
		});
	}
	
	if ($('socialbookmarks')){
		
		$('socialbookmarks').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: 1000,
					transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
				}).tween('height', '47px');
			},
			'mouseleave': function(){
				// Resets the tween and changes the element back to its original size
				this.set('tween', {}).tween('height', '12px');
			}
		});
	
		
		
	}
});


