jQuery 'if' statement problems...

jQuery 'if' statement problems...


Please look at my "Fiddle":  http://jsfiddle.net/HPaRa/1/

I'm having problems with the jQuery 'if' statement. When the div 'accord3' is hidden, I'd like the class 'linklast' to be added to 'Schools' --> the bottom corners are rounded. When the div 'accord3' is visible, the bottom corners must be square, meaning the class 'linklast' has to be removed. This has to be able to switch back and forth while I toggle the visibility. 

Thanks a lot for your help!