Css style to achieve this background effect

I received a design to convert to a website. It looks great and isn't to challenging, except for the menu.

The menu is a simple accordion menu, but the design itself is getting me under.

Here is what the menu should look like (not dropped and dropped respectively):

Not Dropped http://photostand.co.za/images/7otfr8llxeeochyq4h4i.jpg Dropped http://photostand.co.za/images/vyzfbxqj4cdiyaxmfbv6.jpg

The thing I'm struggling with is the green back bit.

I know how to rotate, but rotate rotates everything.

This is the accordion script I'm using:

$("#accordion > li > div").click(function(){
    if(false == $(this).next().is(':visible')) {
        $('#accordion ul').slideUp(300);

Here is the CSS:

#accordion { list-style: none; padding: 0 0 0 0; width: 175px; font-size:13px; }
#accordion div { font-weight: bold; margin-top: 10px; cursor: pointer; text-align:center; border:2px black solid; vertical-align:center; height:30px; padding: 5 5 5 7px; list-style: circle; }
#accordion ul { text-align:center; list-style: none; padding: 0 0 0 0; }
#accordion ul { display: none; }
#accordion ul li { font-weight: normal; vertical-align:center; height:30px; cursor: auto; padding: 0 0 0 7px; border: thin solid black; margin-top: 2px; width:110px; margin-left:55px; background:#ffffff; }
#accordion ul li:hover { background:#d0d4d7 }
#accordion a { text-decoration: none; color:#000; }
#accordion a:hover { text-decoration: none; color:#000; }

And here is the HTML:

<ul id="accordion">
    <div>Park Home</div>
            <li><a href="#">Activities and Facilities</a></li>
            <li><a href="#">Code of Conduct</a></li>
            <li><a href="#">How to get there</a></li>
            <li><a href="#">Maps</a></li>
            <li><a href="#">What to Expect</a></li>
            <li><a href="#">Fees</a></li>
    <li><div>Fauna and Flora</div>
            <li><a href="#">Birding</a></li>
            <li><a href="#">Mammals</a></li>
            <li><a href="#">Reptiles and Amphibians</a></li>
            <li><a href="#">Vegetation</a></li>
            <li><a href="#">Invertabrates</a></li>
    <div>Construction Progress</div>
    <li><div>Contact Us</div>
            <li><a href="#">Contact Details</a></li>
            <li><a href="#">Enquiries</a></li>

Could anyone perhaps assist me. Everything I've tried thus far failed.

UPDATE 1 (20-Sept-12 16:49 CAT)

I made some progress with this. I actually got it to look how I want it to look. I now just need to have the green bits slide down like the rest. Have a look here: http://jsfiddle.net/pNxBU/1/ (sidenote: The spacing is a bit off since it's taken out of 'context' so to speak.

So now if someone could help me get those things to move with their divs... hmmm...

I hope this code can help you

var tranform_property = [ '-moz-transform', '-ms-transform', '-webkit-transform', '-o-transform'];

$("div.rotate-background").each(function(index, element){
   var angle = -((5-(index/2)) * Math.PI) / 180 ;
   var el = $(element);

   for(var i in tranform_property){
     el.css(tranform_property[i], "matrix(" + Math.cos(angle) + "," +
                  Math.sin(angle) + "," +
                  -Math.sin(angle) + "," +
                  Math.cos(angle) + ", " +
                  (-20 + index*2 ) + ", 1)");

     angle = angle * -1;
     el.find(":first-child").css(tranform_property[i], "matrix(" + Math.cos(angle) + "," +
                  Math.sin(angle) + "," +
                  -Math.sin(angle) + "," +
                  Math.cos(angle) + ", " +
                  (15 - index *4) + ", 1)");

I tested it only on firefox and google-chrome. I provide a jsfiddle example .


Here the example it may be look like to the given image.

I give you the documentation which help me, if you want adjust the rectangle position