Hello everyone,

I was looking at installing a booking software(for hotels) on my new website, I am trying to work out how can all these websites manage to find out if the rooms are empty or not without being connected directly to the hotel itself.


I checked out one website and it had this code for the booking calender:
<script type="text/javascript">

var b_experiments = {},
WIDTH,
booking = {
env : {
"b_action" : 'hotel',
"b_google_maps_key_params" : 'key=ABQIAAAAEG168dBcRndNV70R9mDglhSZn_smZpFKc3SoS1v7FyDshy3QMxSgeH0qWTH24Gc7je-iJ9DSXiNmcA&amp;client=gme-booking&indexing=true',
"b_lang" : 'en',
"b_this_urchin" : '/hotel/mt/the-palace.html?label=gog235jc&amp;x2597=1&amp;x2649=0&amp;x2626=1&amp;x2714=0&amp;x2693=1&amp;x2703=2&amp;x2691=0&amp;x2770=1&amp;x2563=0&amp;x2781=1&amp ;x590=4&amp;x2775=0&amp;x2719=1&amp;x2733=1&amp;x2669=0&amp;x2631=0&amp;x2549=0&amp;x2598=1&amp;x2755=2&amp;x2728=1&amp;x2731=0&amp;',

"setvar_affiliate_is_bookings2" : 1,


transl_close_x : 'close',

browser_lang: 'en',
b_aid: '304142',
b_sid: '4a23a978236c08c553af8973a8f502f1',
ip_country: 'mt',
b_selected_currency: '',
pageview_id: '211449de32490039',
aid: '304142',
icons: 'http://x.bstatic.com/static/img',

b_weekdays: [],
b_simple_weekdays: ['Mo','Tu','We','Th','Fr','Sa','Su'],
b_simple_weekdays_for_js: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],
b_long_weekdays: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],
"error" : {}
},
ensureNamespaceExists : function ( namespaceString ) {
if ( !booking[namespaceString] ) {
booking[namespaceString] = {};
}
},
timestamp : new Date()
};


booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '1' ),
"name": 'Monday',

"short": 'Mon',
"shorter": 'Mon',
"shortest": 'Mo'
});

booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '2' ),
"name": 'Tuesday',

"short": 'Tue',
"shorter": 'Tue',
"shortest": 'Tu'
});

booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '3' ),
"name": 'Wednesday',

"short": 'Wed',
"shorter": 'Wed',
"shortest": 'We'
});

booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '4' ),
"name": 'Thursday',

"short": 'Thu',
"shorter": 'Thu',
"shortest": 'Th'
});

booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '' ),
"b_number": parseInt( '5' ),
"name": 'Friday',

"short": 'Fri',
"shorter": 'Fri',
"shortest": 'Fr'
});

booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '1' ),
"b_number": parseInt( '6' ),
"name": 'Saturday',

"short": 'Sat',
"shorter": 'Sat',
"shortest": 'Sa'
});

booking.env.b_weekdays.push( {
"b_is_weekend": parseInt( '1' ),
"b_number": parseInt( '7' ),
"name": 'Sunday',

"short": 'Sun',
"shorter": 'Sun',
"shortest": 'Su'
});


function Tip() {}

if (document.getElementById) {
document.write('<style type="text/css">');
document.write(".inlineJsRequired { display: inline; }");
document.write(".blockJsRequired { display: block; }");
document.write(".blocktoggle { display: none; }");
document.write("<\/style>");
}


var _gaq = _gaq || [];


</script>

<!--[if IE]>
<script type="text/javascript">
document.createElement('time');
</script>
<![endif]-->





It looks like there is code or API key which is used with Google, any idea how this works? or where I can get a booking calender for hotels.
I always wondered if the hotels use the same technology to send their informations out on the net to tell the travel agents when the hotel is fully booked. any idea?

Thanks,


Ben