dpl = {
	ari : function(a, i){
		return a[i];
	}, 
	idData :  function(obj){
		if(typeof obj != 'string'){
			obj = $(obj).attr('id');
		}
		return dpl.ari(obj.split('-'), 1);
	}
}

function px(str){
 return str + 'px';
}

String.prototype.addSlashes = function(){
	return (this+'').replace(/([\\"'])/g, "\\$1").replace(/\u0000/g, "\\0");
};
String.prototype.stripSlashes = function(){
	return (this+'').replace(/\\(.?)/g, function (s, n1) {
        switch (n1) {
            case '\\':
                return '\\';
            case '0':
                return '\0';
            case '':
                return '';
            default:
                return n1;
        }
    });
}

