if(window.attachEvent)
	  window.attachEvent("onload",setListeners);
	
function setListeners(){
  inputList = document.getElementsByTagName("INPUT");
  for(i=0;i<inputList.length;i++){
	inputList[i].attachEvent("onpropertychange",restoreStyles);
	inputList[i].style.backgroundColor = "";
  }
  selectList = document.getElementsByTagName("SELECT");
  for(i=0;i<selectList.length;i++){
	selectList[i].attachEvent("onpropertychange",restoreStyles);
	selectList[i].style.backgroundColor = "";
  }
}

function restoreStyles(){
  if(event.srcElement.style.backgroundColor != "")
	event.srcElement.style.backgroundColor = "";
}

$(document).ready(
	function (){
		$("#newway").mouseover(
			function () {
				$("#newway .collar").show();
			}
		);
		$("#newway").mouseout(
			function () {
				$("#newway .collar").hide();
			}
		);
		$("#education").mouseover(
			function () {
				$("#education .collar").show();
			}
		);
		$("#education").mouseout(
			function () {
				$("#education .collar").hide();
			}
		);
		$("#income").mouseover(
			function () {
				$("#income .collar").show();
			}
		);
		$("#income").mouseout(
			function () {
				$("#income .collar").hide();
			}
		);
		$("#health").mouseover(
			function () {
				$("#health .collar").show();
			}
		);
		$("#health").mouseout(
			function () {
				$("#health .collar").hide();
			}
		);
		$(".selected ~ span").addClass("collar_show");
	}
);