function showObject(obj_id){
	var obj = document.getElementById(obj_id);
	obj.style.display='block';
}

function hideObject(obj_id){
	var obj = document.getElementById(obj_id);
	obj.style.display='none';
}

//valtas ket ajanlat kozott:
function changeOffer(whichShow) {
	$(".special_offer_element.active").fadeOut('fast', function() {
		$(whichShow).fadeIn('slow');
		$(".special_offer_element.active").removeClass("active");
		$(whichShow).addClass("active");
		$(".special_offer_active_link").addClass("special_offer_links");
		$(".special_offer_active_link").removeClass("special_offer_active_link");
		//$(oldLink).addClass("special_offer_links");
		$("#spec_offer_link"+whichShow.substring(whichShow.indexOf('_'))).removeClass("special_offer_links");
		$("#spec_offer_link"+whichShow.substring(whichShow.indexOf('_'))).addClass("special_offer_active_link");
	});
}

//valtas ket ajanlat kozott:
function changeOffer2(whichShow) {
	$("#reservation_default_text").fadeOut('fast', function() {
		$(".special_offer_element2.active2").fadeOut('fast', function() {
			$(whichShow).fadeIn('slow');
			$(".special_offer_element2.active2").removeClass("active2");
			$(whichShow).addClass("active2");
			$(".special_offer_active_link2").addClass("special_offer_links2");
			$(".special_offer_active_link2").removeClass("special_offer_active_link2");
			//$(oldLink).addClass("special_offer_links");
			$("#spec_offer_link2"+whichShow.substring(whichShow.indexOf('_'))).removeClass("special_offer_links2");
			$("#spec_offer_link2"+whichShow.substring(whichShow.indexOf('_'))).addClass("special_offer_active_link2");
		});
	});
}

function showRoomDesc() {
	$(".special_offer_element2.active2").fadeOut('fast', function() {
		$("#reservation_default_text").fadeIn('slow');
	});
}

function changeRadio(valueChecked) {
	for (var i=0; i < document.res_form.res_spec_radio.length; i++) {
		if ( document.res_form.res_spec_radio[i].value == valueChecked ) {
			document.res_form.res_spec_radio[i].checked = true;
		} else {
			document.res_form.res_spec_radio[i].checked = false;
		}
	}
}

function showRightPict(pictName) {
	var newImage = 'url(./images/'+pictName+')';
	document.getElementById('res_images').style.backgroundImage = newImage;
}


