var NS = function () {};
var NS = NS.prototype = function () {};




NS.Package = function (sName) {

    //split the name by dots
    var namespaces=sName.split('.') || [sName];
    var nlen=namespaces.length;
       
    var root = window;
    var f    = function() {};

    for(var i=0;i<nlen;i++) {
        var ns = namespaces[i];
        if(typeof(root[ns])==='undefined'){
            root = root[ns] = {};
            root = root.prototype = f;
        }
        else
           root = root[ns];
    }
}


// see name space "Site"




// short name consoler function for firefox
window["$$"] = function(param){
	///if(Site.debug_mode){
		if(!window.console){
			alert(param) 
		}else{
			console.log(param);
		}
	//}
}
// global executible object vor ajax ready state 
// gebruik dit als je soqwiezo dit altijd wilt doen
// bij iedere ajax request




