code: function ( type, css, obj, dom, id ) {
  
          type = type || 'div';
  
          if( Tools.SVG_TYPE_D.indexOf(type) !== -1 || Tools.SVG_TYPE_G.indexOf(type) !== -1 ){ // is svg element
  
              // create new svg if not def
              if( dom === undefined ) dom = Tools.doc.createElementNS( Tools.svgns, 'svg' );
  
              Tools.addAttributes( dom, type, obj, id );
              
          } else { // is html element
  
              if( dom === undefined ) dom = Tools.doc.createElementNS( Tools.htmls, type );
              else dom = dom.appendChild( Tools.doc.createElementNS( Tools.htmls, type ) );
  
          }
  
          if( css ) dom.style.cssText = css; 
  
          if( id === undefined ) return dom;
          else return dom.childNodes[ id || 0 ];
  
      }
docs: /*setDom : function( dom, type, value ){
  
  var ext = Tools.DOM_SIZE.indexOf(type) !== -1 ? 'px' : '';
  dom.style[type] = value + ext;
  
  },