Need help with closing and open divs with Javascript

Hi!

I’m working on a website where I need some help with open and closing divs using javascript.

This is the website: clashjeans.se/test/styles.html

As you can see I’m using a javascript to open each jeans style link, I don’t know if this is the best way to do it, but it’s how I’ve done it so far. If you click the “Frankie style link” at the bottom the div called Frankie will show and you will see a little image in that div that says “next wash”. What I would like this link to do is to close the frankie div and open up another wich looks almost the same as the previous, the only thing that will change is the pictures actually. Please help me solve this problem, any suggestion about how to make this work will be highly appreciated!

No offence but wouldn’t it be easier just to implement a simple light-box script? Or maybe it doesn’t fill you requirements? :slight_smile:

http://www.huddletogether.com/projects/lightbox2/

How much can I modify lightbox? Is it possible to use css to links and images? If it isn’t possible I don’t think it will work for me.

check out http://flowplayer.org/tools/index.html

I think what you’re wanting to do is something like using tabs for your root categories and scrollable for the internal photos.