When the mouse enters the image replace the class 'not-over' with 'over'. When the mouse leaves the image replace the class 'over' with 'not-over'. These two classes switch between a dotted border and a solid blue border.
For a full description of this behavior see the ReplaceClass Documentation Page.