Damrak 58-59 - 1012 LL Amsterdam
Hotel Damrak Inn 0 ) {
var checkin = ( $.datepicker.parseDate( $.datepicker._defaults.dateFormat, $( "form input[name='hotel_check_in']" ).attr( 'value' ) ).getTime()) / 1000;
}
else {
var checkin = parseInt((new Date().getTime() + ( 15 * 86400000 )) / 1000) ;
}
var checkout = checkin + ( $( "form input[name='hotel_nights']" ).attr( 'value' ) * 86400 );
if( checkin == null || isNaN( checkin ) )
checkin = (new Date().getTime() + ( 15 * 86400000 )) / 1000 ;
if( checkout == null || isNaN( checkout ) )
checkout = checkin + 86400;
$.ajax({
type: "GET",
url: "http://www.sprice-hotel.de/hotelbewertungen/component_slot.php?lang=de_de&component=hotel_availabilities&iframe=false&hotel=" + hotel_code + "&checkin=" + checkin + "&checkout=" + checkout,
success: function(html) {
if( target.hasClass( 'loaded' ) )
return;
jQuery( target ).append( html ) ;
// Notify the ui that the hotel block is open and loaded
target.addClass( "opened loaded" );
hotel.find( ".action_button" ).hide( "fast" );
var avail = target.find( ".availability.block" );
// Bind calendars if not already bounds
bindCalendars( avail, "/", "EUR", "DE", checkin, checkout );
// Bind 'Room Type' input
avail.find( ".content .third input" ).bind( "click", function( e )
{
var guests = parseInt( avail.find( "input[name='guests']:checked" ).val(), 10 );
// Update all forms and recheck all availabilities
$( "form" ).each( function( e )
{
$( this ).find( "input[name='guests'][value='" + guests + "'] ").attr('checked','true');
});
$( ".availability.block.opened" ).each( function( e )
{
checkAvailabilities( e, $( this ), "/", "EUR", "DE" );
});
} );
avail.find( ".content span.close" ).bind( "click", function( e )
{
// Close opened items
hotel.find( ".action_button" ).show( "fast" );
avail.slideUp( "slow" );
target.removeClass( "opened" );
// WARNING : following is done by SHR binding => handle it when opening
//avail.find( ".content" ).slideUp( "slow" );
//hotel.removeClass( "opened" );
//avail.removeClass( "opened" );
} );
// Fires up the animation to show the booking form
avail.slideDown( "slow" );
avail.addClass( "opened" );
if ( avail.find( "form" ).length > 0 )
checkAvailabilities( e, avail, "/", "EUR", "DE" );
},
error: function() {
// TODO
}
}) ;
}
return false;
});
//]]>
Popularitat Hotel andere als Amsterdam :