Event.addBehavior({
  '#house_image1' : function(){
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image1 a').first().addClassName('sel')
    $$(' .house_photo.n1').first().show();

    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image1 a').first().addClassName('sel')
    $$(' .house_photo.n1').first().show();
    });
    },
    '#house_image2' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image2 a').first().addClassName('sel')
    $$(' .house_photo.n2').first().show();
    });
    }
    ,
    '#house_image3' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image3 a').first().addClassName('sel')
    $$(' .house_photo.n3').first().show();
    });
    }
    ,
    '#house_image4' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image4 a').first().addClassName('sel')
    $$(' .house_photo.n4').first().show();
    });
    }
    ,
    '#house_image5' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image5 a').first().addClassName('sel')
    $$(' .house_photo.n5').first().show();
    });
    }
    ,
    '#house_image6' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image6 a').first().addClassName('sel')
    $$(' .house_photo.n6').first().show();
    });
    }
    ,
    '#house_image7' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image7 a').first().addClassName('sel')
    $$(' .house_photo.n7').first().show();
    });
    }
    ,
    '#house_image8' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().show();
    $$('#house_photoframe_horizontal').first().hide();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image8 a').first().addClassName('sel')
    $$(' .house_photo.n8').first().show();
    });
    }
    ,
    '#house_image9' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image9 a').first().addClassName('sel')
    $$(' .house_photo.n9').first().show();
    });
    }
    ,
    '#house_image10' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image10 a').first().addClassName('sel')
    $$(' .house_photo.n10').first().show();
    });
    }
    ,
    '#house_image11' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image11 a').first().addClassName('sel')
    $$(' .house_photo.n11').first().show();
    });
    }
    ,
    '#house_image12' : function(){
    
    this.observe('click', function() {
    $$('#house_photoframe_vertical').first().hide();
    $$('#house_photoframe_horizontal').first().show();
    $$('.house_photo').each(function(element) {element.hide()});
    $$('#house_content a').each(function(element) {element.removeClassName('sel')});
    $$('#house_image12 a').first().addClassName('sel')
    $$(' .house_photo.n12').first().show();
    });
    }
});
