/**
 * handles the onclick popup when CarFax icon is clicked
 * @param sandbox
 */
Cobalt.Website.Results.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;
    };
	
    return {
        
		init:function()
        {
			getInstance().init();
			var selector = sandbox.getUIElementSelectorsForModule(Cobalt.Website.Results.ResultsApplication.Modules.eBayModule);
			for (var i=0; i<selector.length; ++i)            
			{                
				sandbox.dom(selector[i]).listenLive("click", handleEBayOnclick);            
			}			
        },
		
        destroy:function()
        {
            //TODO: handle destroy
        }
		
    };	
};
