/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	For Ie 6 to hide form windowed elements when the goodnight promise popup is active
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
function tb_remove() {
	toggleSearchElements("visible")
	
 	$("#TB_imageOff").unbind("click");
	$("#TB_closeWindowButton").unbind("click");
	$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
	$("#TB_load").remove();
	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		$("body","html").css({height: "auto", width: "auto"});
		$("html").css("overflow","");
	}
	document.onkeydown = "";
	document.onkeyup = "";
	return false;
	
}
function toggleSearchElements(directive)
{	
	if(navigator.appVersion.indexOf('MSIE 6') >0)
	{
		$("#cboCityString").css("visibility",directive);
		$("#cur").css("visibility",directive);
		$("#DeptDay").css("visibility",directive);
		$("#DeptMonthYr").css("visibility",directive);
		$("#Nights").css("visibility",directive);	
		$("#txtRooms1").css("visibility",directive);
		$("#txtRooms2").css("visibility",directive);
		$("#txtRooms3").css("visibility",directive);
		$("#txtRooms4").css("visibility",directive);
		$("#cat").css("visibility",directive);
	}
}