splitted code for showing and event for better re-usability
- make sure the javascript runs just one time per page.
- hide the cart button if the global preferences are set to off.
added ability to use the imagelist to the content plugin