function hide_active() {
	if($$('div.active_sub').size()>0)
		$$('div.active_sub')[0].hide();
}
function active_back_up() {

	if($$('div.active_sub').size()>0){
		$$('div.active_sub')[0].show();}
}
var myrules = {
	'a#vakantiehuis' : function(el){
		el.onmouseover = function(){
			hide_active();
			$('sub_vakantiehuis').show();
		}
		el.onmouseout = function(){
			$('sub_vakantiehuis').hide();
			active_back_up();
		}
	},
	'div#sub_vakantiehuis' : function(el){
		el.onmouseover = function(){
			hide_active();
			$('sub_vakantiehuis').show();
		}
		el.onmouseout = function(){
			$('sub_vakantiehuis').hide();
			active_back_up();
		}
	},	
	'a#curaçao' : function(el){
		el.onmouseover = function(){
			hide_active();
			$('sub_curacao').show();
		}
		el.onmouseout = function(){
			$('sub_curacao').hide();
			active_back_up();
		}
	},
	'div#sub_curacao' : function(el){
		el.onmouseover = function(){
			hide_active();
			$('sub_curacao').show();
		}
		el.onmouseout = function(){
			$('sub_curacao').hide();
			active_back_up();
		}
	}/*,	
	'a#reserveren' : function(el){
		el.onmouseover = function(){
			hide_active();
			$('sub_reserveren').show();
		}
		el.onmouseout = function(){
			$('sub_reserveren').hide();
			active_back_up();
		}
	},
	'div#sub_reserveren' : function(el){
		el.onmouseover = function(){
			hide_active();
			$('sub_reserveren').show();
		}
		el.onmouseout = function(){
			$('sub_reserveren').hide();
			active_back_up();
		}
	}*/
};

Behaviour.register(myrules);
