I've been waiting over 4 minutes and your page didn't opened yet, but probably I got what you need.
You might need to use this:
window.onload = function () {
if (!!window.location.hash) {
var hash = window.location.hash;
/* Your code to open the div */
}
}
Where the var hash
is simply the hashlink pulled out from the URL, so you can target a div by ID for instance.
EDIT
Here's your revised fiddle: http://jsfiddle.net/9n2tA/1 and here's the working demo: http://fiddle.jshell.net/9n2tA/1/show/light/#edifici