var Interhotels = {
	
    $blocInterhotel : null,
    $blocReservataireHotel : null,
    $nameReservataireHotel : null,
    $codeTars : null,

    _init : function(bean){
		
        this.$blocInterhotel = jQuery("#bloc_interhotel");
        this.$blocReservataireHotel = jQuery("#bloc_hotelReservataire");
        this.$nameReservataireHotel = jQuery("#nomhotelreservataire");
        this.$codeTars = jQuery("#code_tars");
		
        if(bean){
            if (bean.selectedhotelName){
                this.$nameReservataireHotel.css("display", "inline");
                this.$nameReservataireHotel.html(bean.selectedhotelName);
                this.$codeTars.val(bean.selectedhotelCode);
                this.$blocReservataireHotel.show();
            }
            this.$blocInterhotel.show();
        }
        else{
            this.$blocInterhotel.hide();
        }
    }
}
