Close Window command

is there any way to make a button that when you click on it closes the window that it is in? an example of what i want is at best buy’s site on all the pictures…except i wanna do it in flash…