/**
 * handles the onclick popup when CarFax icon is clicked
 * @param sandbox
 */
Cobalt.Website.Results.CarFaxModule = function(sandbox)
{
	var _instance;

	function getInstance()
	{
		if(!_instance){
			_instance = Cobalt.Website.Common.CarFaxModule(sandbox);
		}
		return _instance;
	};

	function handleCarFaxOnclick(e)
    {
		getInstance().handleClickEvent(e.currentTarget);
		return false;
    };
	
    return {
	
		init:function()
        {
			var selector = sandbox.getUIElementSelectorsForModule(Cobalt.Website.Results.ResultsApplication.Modules.CarFaxModule);
			for (var i=0; i<selector.length; ++i)
			{ 
				sandbox.dom(selector[i]).listenLive("click", handleCarFaxOnclick);
			}
        },
		
        destroy:function()
        {
            //TODO: handle destroy
        }
    };
};
