var myrules = {
		'.replace_right' : function(element){
				element.innerHTML = '<img src="/wp-content/themes/fanatique/includes/headline.php?text=' + element.innerHTML + '&fontcolor=595E72" alt="' + element.innerHTML + '"/>';
		},
		'#speaker' : function(element){
			element.onclick = function(){
				new Effect.BlindDown('player');
			}
		},
		'#player_top img' : function(element){
			element.onclick = function(){
				new Effect.BlindUp('player');
			}
		},
		'#player' : function(element){
				new Draggable('player', {} );
		},
		'#s' : function(element){
				new Ajax.Autocompleter('s', 'res', '/wp-content/themes/fanatique/live_search.php', {});
		},
		'.main1' : function(element){
			element.onmouseover = function(){
				if(nav.indexOf("MSIE") != -1) var theid = this.childNodes[1].id;
				else var theid = this.childNodes[3].id;

				if(show != theid) { 
				new Effect.BlindDown(theid, {queue:'parallel', duration:0.7});
				new Effect.SwitchOff(show, {queue:'parallel', duration:0.6});
				show = theid;
				}
			}
		}
	};	
	
Behaviour.register(myrules);
