function planLineOver(line) {
	line = $(line);
	var rowHeight = $(line).find(".offer").height();
	line.addClass("ov");
	line.find(".offer a").css("height", rowHeight).css("width", "115px");
	line.find(".group_td").addClass("over");
	line.find(".services").addClass("over");
	line.find(".offer a span").css("padding-top", (rowHeight - 27) / 2);
}

function planLineOut(line) {
	line = $(line);
	line.removeClass("ov");
	line.find(".offer a").css("height", "27px").css("width", "85px");
	line.find(".group_td").removeClass("over");
	line.find(".services").removeClass("over");
	line.find(".offer a span").css("padding-top", "0px");
}

$(function() {

	$(".line").hover(
		function () { planLineOver(this) },
		function () { planLineOut(this) }
	);

	$(".ico").hover(
		function () {
			$(this).find(".alt").show();
			$(this).css("z-index", "2");
		},
		function () {
			$(this).find(".alt").hide();
			$(this).css("z-index", "1");
		}
	);
});