(a) Whenever the state plans demolition of a state building or structure, and the site upon which such building or structure is located is not to be used for a state project already authorized and funded, the Commissioner of Administrative Services shall first notify the chief executive officer of the municipality wherein the building or structure to be demolished is located, by registered or certified mail, at least sixty days prior to the public advertisement of the bid for services necessary to accomplish such demolition.

(b) The municipality wherein the building or structure is to be demolished may, within the period prior to the public advertisement of such bid, submit a bid to said commissioner for the purchase of such state building or structure, and the commissioner may accept such bid provided the use which the municipality intends for the building or structure is compatible with state needs and programs. In the event the municipality intends to move the building, the costs thereof shall not be paid by the state.