function startbooking()
{
	var p_arr = $('#arrivaldate').val();
	var p_pax = $('select[name="adults"] option:selected').val() + "_" + $('select[name="children0"] option:selected').val() + "_" + $('select[name="children1"] option:selected').val();

	var dtm = Date.fromString(p_arr);
	var dtm2 = Date.fromString(p_arr);
	p_arr = dtm.asString('yyyymmdd');
	dtm2.addDays($('select[name="nights"] option:selected').val());
	var p_dep = dtm2.asString('yyyymmdd');
	
	if ($('option[value="dgibyen"]:selected').length > 0 || $('input[value="dgibyen"]:checked').length > 0) {
		window.open('http://online.techotel.dk/default.aspx?lang=da&hotelid=17151&p_arr=' + p_arr + '_0000&p_pax=' + p_pax + '&p_dep=' + p_dep + '_0000', 'obook', 'height=700,width=750,toolbar=no,scrollbars=yes')
		pageTracker._trackEvent('Hotel', 'Book', 'DGI-byens Hotel');
	}
	else if ($('option[value="centrum"]:selected').length > 0 || $('input[value="centrum"]:checked').length > 0) {
		window.open('http://online.techotel.dk/default.aspx?lang=da&hotelid=17274&p_arr=' + p_arr + '_0000&p_pax=' + p_pax + '&p_dep=' + p_dep + '_0000', 'obook', 'height=700,width=750,toolbar=no,scrollbars=yes')
		pageTracker._trackEvent('Hotel', 'Book', 'Hotel Centrum');
	}
	else if ($('option[value="astoria"]:selected').length > 0 || $('input[value="astoria"]:checked').length > 0) {
		window.open('http://online.techotel.dk/default.aspx?lang=da&hotelid=23424&p_arr=' + p_arr + '_0000&p_pax=' + p_pax + '&p_dep=' + p_dep + '_0000', 'obook', 'height=700,width=750,toolbar=no,scrollbars=yes')
		pageTracker._trackEvent('Hotel', 'Book', 'Hotel Astoria');
	}
	else {
		alert('Du skal vælge hotel. Du kan læse mere om hotellerne her på siden');
	}

}

function startbooking_fast(form)
{
	var p_arr = $('#arrivaldate').val();

	var dtm = Date.fromString(p_arr);
	p_arr = dtm.asString('yyyymmdd');

	$('input[name="fromyear"]').val(dtm.asString('yyyy'));
	$('input[name="frommonth"]').val(dtm.asString('mm'));
	$('input[name="fromday"]').val(dtm.asString('dd'));
		
	if ($('option[value="DKDGIHTLDGIByens"]:selected').length > 0 || $('input[value="DKDGIHTLDGIByens"]:checked').length > 0) {
		pageTracker._trackEvent('Hotel', 'Book', 'DGI-byens Hotel');
	}
	else if ($('option[value="DKDGIHTLCentrum"]:selected').length > 0 || $('input[value="DKDGIHTLCentrum"]:checked').length > 0) {
		pageTracker._trackEvent('Hotel', 'Book', 'Hotel Centrum');
	}
	else if ($('option[value="DKDGIHTLAstoria"]:selected').length > 0 || $('input[value="DKDGIHTLAstoria"]:checked').length > 0) {
		pageTracker._trackEvent('Hotel', 'Book', 'Hotel Astoria');
	}
	else {
		pageTracker._trackEvent('Hotel', 'Book', 'Ikke valgt hotel');
	}
	
	hhotelDispoprice(form)

}

$(document).ready(function() { 
	$('#h_submenu li').hover(	function() { 
									$(this).addClass('hover'); 
									$(this).children('ul').css('min-width',$(this).width()+40).show();
								},
								function() { 
									$(this).removeClass('hover'); 
									$(this).children('ul').hide();	
								}
							);
});