/**
 * handles the onclick popup when CarFax icon is clicked
 * @param sandbox
 */
Cobalt.Website.VehicleDetail.eBayModule = function(sandbox)
{
	var _instance;

	function getInstance()
	{
		if(!_instance){
			_instance = Cobalt.Website.Common.eBayModule(sandbox);
		}
		return _instance;
	};

	function handleEBayOnclick(e)
    {
		getInstance().handleClickEvent(e.currentTarget);
		return false;
    };
	
	function getSelector()
	{
		return "[class~='eBay']";
	};
	
    return {
        
		init:function()
        {
			getInstance().init();
			var selector = sandbox.dom(getSelector()).getDomElements();
			sandbox.listen(selector, "click", handleEBayOnclick);
        },
		
        destroy:function()
        {
            //TODO: handle destroy
        }
		
    };
	
};
