
var SWFTracker = new function() {
    
    var _prefix = "six.";
    var _content_id;
    
    var _track = function(cid, param) {
        if (typeof(cid) == "undefined") return;
    	if( cid == 'null' || cid == '' ) return;
        if(typeof(wt_sendinfo) != "undefined"){
        	wt_sendinfo(cid);
        } else {
        	alert('track("' + cid + '")' );
        }
    };

    this.getContentId = function() {
        if (typeof(_content_id) == "undefined") return null;
        return decodeURI(_content_id);
    };

    this.track = function(value, param) {
        if (typeof(value) == "undefined") return;
        if (value == 'null') value = '';
        if (value == '') value = 'index';
        _content_id = value;
    	_track(_prefix + _content_id, param);
    };
}

