function bg_active(where, number) {
	where.style.background='url(content/Image/main_sevices/' + number + '_active.jpg) left top no-repeat';
	where.style.cursor='pointer';
}

function bg_default(where, number) {
	where.style.background='url(content/Image/main_sevices/' + number + '.jpg) left top no-repeat';
}

function go_service(href) {
	document.location=href;
}

function activate(what) {
		what.parentNode.className="navigation active";
		if(what.parentNode.parentNode.childNodes[0].className) {
			what.parentNode.parentNode.childNodes[0].className="nav_left active";
			what.parentNode.parentNode.childNodes[what.parentNode.parentNode.childNodes.length-1].className="nav_right active";
		}
		else {
			what.parentNode.parentNode.childNodes[1].className="nav_left active";
			what.parentNode.parentNode.childNodes[what.parentNode.parentNode.childNodes.length-2].className="nav_right active";
		}
		
		
}

function deactivate(what) {
		what.parentNode.className="navigation";
		if(what.parentNode.parentNode.childNodes[0].className) {
			what.parentNode.parentNode.childNodes[0].className="nav_left";
			what.parentNode.parentNode.childNodes[what.parentNode.parentNode.childNodes.length-1].className="nav_right";
		}
		else {
			what.parentNode.parentNode.childNodes[1].className="nav_left";
			what.parentNode.parentNode.childNodes[what.parentNode.parentNode.childNodes.length-2].className="nav_right";
		}
}

function back_show(){
	document.getElementById('action_3_1').value="show";
	document.forms['mod_calc_1_form'].submit();
}

function deactivate_imp(what) {
		what.parentNode.className="navigation imp";
		if(what.parentNode.parentNode.childNodes[0].className) {
			what.parentNode.parentNode.childNodes[0].className="nav_left imp";
			what.parentNode.parentNode.childNodes[what.parentNode.parentNode.childNodes.length-1].className="nav_right imp";
		}
		else {
			what.parentNode.parentNode.childNodes[1].className="nav_left imp";
			what.parentNode.parentNode.childNodes[what.parentNode.parentNode.childNodes.length-2].className="nav_right imp";
		}
}
