
SW.local.LuxuryCollection = {
    customEvent: {
        ExploreCollection: {
            onSelectProperty: new yuiCustomEvent("selectProperty", this, false, YAHOO.util.CustomEvent.FLAT)
        }
    }
}

SW.local.exploreTheCollection = {
    initialize:function(){
        SW.local.LuxuryCollection.customEvent.ExploreCollection.onSelectProperty.subscribe(SW.local.exploreTheCollection.show,SW.local.exploreTheCollection, true);
    },
    show:function(params){
        highlight.flashGetHighlightBridge(params.id);
    }
}
yuiEvent.onDOMReady(SW.local.exploreTheCollection.initialize,
    SW.local.exploreTheCollection,true);

(function(){
    var exploreLCEvent = SW.local.LuxuryCollection.customEvent.ExploreCollection;
    SW.flash.LuxuryCollection = {
        selectProperty:function(data){
            exploreLCEvent.onSelectProperty.fire(data);
        }
    };
})();


