>Seems like your trying to reinvent the wheel.
This will not do what I need. If it would have been only one div to open and close, this would have been done with css. But, I have a lot of code logic that needs to be performed between two divs where each one varies between another. It also has to be native javascript.