/*TODO tracking du reseau ?*/
// ----------------------------------------------------------------------------
// Init Jquery & Code
// ----------------------------------------------------------------------------
if (typeof(jQuery) != 'function') {
        var noeud_js = document.createElement('script');
        noeud_js.setAttribute('src', 'http://code.jquery.com/jquery-latest.pack.js');
        document.getElementsByTagName('head')[0].appendChild(noeud_js);
    }
    
    function is_jquery_loaded(){
        if (typeof(jQuery) == 'function') {
            clearInterval(interval);
            zootz.init();
        }
    }
    
    var interval = window.setInterval(is_jquery_loaded, 100);
    
    var zootz = {
		SERVER_URL: "/index.php",
		TRACKER_LIVE_TIMER: 10000,
		CURRENT_URL: '',
// ----------------------------------------------------------------------------
// Init Tracker
// ----------------------------------------------------------------------------
		init: function () {
			if(console){console.log('Zootz Loaded');}
            
			return this;
		},
// ----------------------------------------------------------------------------
// Public Functions
// ----------------------------------------------------------------------------
		live: function(timer,callback){
			
            
            
            
            window.setInterval(function(){
				
				
				this.CURRENT_URL = track._get_current_url();
				
				callback();
				
			}, timer);
			
			return zootz;
		},
// ----------------------------------------------------------------------------
// Private Functions
// ----------------------------------------------------------------------------
		_get_current_url: function(){
			return window.location.protocol + 
				"//" + window.location.host + 
				window.location.pathname;
		},
        
        
       
		
		

	};
