BRISTOL, Va. -

The former director of the Bristol Public Library Foundation, Anita Foster-Machado, is accused of stealing over $21,000 by racking up charges on the non-profit's credit card.

Police tell us the purchases were made over three to four years when money to fund her position ran out.

Machado served as the director of the foundation from 2008 until June of 2013.

She was one of two people who worked for the foundation, funded by a substantial grant from the Alan Noble Trust. "It was a [large] amount of money, $1.2 million dollars. That's what funded the operations of the foundation at that point," Jud Barry said.

Jud Barry is the library's director. He's also the secretary for the foundation. He tells us Machado's position was terminated when the grant money ran out.

That's when the library staff took over the financial records about a year ago.

According to Det. Robin McCoy of the Bristol, Virginia Police Department, they found additional charges. "Clothing, jewelry, make-up, just personal items. There [were] also visits a local tanning salon, other personal things that definitely raised a red flag with the library," McCoy said.

McCoy said when the credit card statements came in, Machado would assign each transaction a code. She would then tell outside accountants how much to write the check for to pay the credit card companies.

That's money that Barry said will affect what the library can do for the community. "We have raised money for our teen program or our adult learning lab. Those monies could have been used for that," Barry added.

We're told the Bristol Public Library Foundation does not have an operating budget right now.

They do have funds that are used strictly for library improvements, and we're told that money is being used to expand their child and teen areas.