function show_msg(msgBodyKey) {
	gebi('msgBoxBody').innerHTML = msg_body[msgBodyKey];
	change_style('msgFloatBg', 'height', get_scroll_height() + 1000 + 'px');
	change_style('msgFloatBg', 'display', 'block');
	change_style('msgBox', 'display', 'block');
	center_floating_div('msgBox');
}

function hide_msg() {
	change_style('msgFloatBg', 'display', 'none');
	change_style('msgBox', 'display', 'none');
}

function togglePackageReadMore(readMoreElementId, inclusionElementId, offerInfoElementId) {
	var packageId = readMoreElementId.replace('packageReadMore', '');
	if ($('#' + inclusionElementId).css('height') == '142px') {
		$('#' + readMoreElementId + ' a').html('Read Less');
		$('#' + readMoreElementId + ' img').attr('src', '/images/shared/arrow_up_red.gif');
		$('#' + inclusionElementId).animate({height:'100%'}, 'slow');
		$('#offer-readless-validity-' + packageId).toggle();
		strands.itemVisited(packageId.substr(0,packageId.indexOf('-')));
	} else {
		$('#' + readMoreElementId + ' a').html('Read More');
		$('#' + readMoreElementId + ' img').attr('src', '/images/shared/arrow_right_red.gif');
		$('#' + inclusionElementId).animate({height:'142px'}, 'slow');
		$('#offer-readless-validity-' + packageId).toggle();
	}
	$('#' + offerInfoElementId).toggle();
}

// TOOLTIP FOR BONUS MILES
$(".bonus-miles").wTooltip({className: 'tooltip', content:'<b>Bonus Miles</b> refers to mileage credits on your choice of American Airlines or Delta Airlines. Redemption of FamilyGetaway.com Bonus Miles is subject to participating airline mileage reward program rules. Application of FamilyGetaway.com Bonus Miles to airline frequent flier partner carriers is also subject to participating airline rules. Mileage certificates are issued by FamilyGetaway.com and delivered by mail.'});

