thanks for your work ! Actually, I'm a quite messy person, but my script, at first, was something along the lines of yours.
Main problem : I NEED the variable "currentStyle" to be set to "fantasy", "fantastique" "fantasy_1024" or "fantastique_1024" according to the time of the day and the layout. The variable currentStyle is called many times in the rest of the page, for various crucial elements of the design, and if it's inside the function, it doesn't work, even if set as global variable.
Anyway, I tried it, but it didn't work. As soon as I changed the things inside dynamicfunction, the layout stopped changing. But the scripts on the page are still blocked.
@jvanamali : tried it, didn't change anything.
@crazyMerlin : brace count seems correct, double checked it right now. And if you check it, function dynamiclayout is also called in the else statement. So it's working at anytime, but it's not returning the same values.
Also, it doesn't mess up with everything, as some things ("tigra hints") are still working, although there are located after the dynamiclayout function. What is the problem with all the ajax stuff ? (scriptaculous and thickbox, lightbox and similar stuff)
I checked the generated script, and all the URLs are correct, no tag was omitted, and everything else is working.
I'm going to give you the URL to the real website, still working with the older script, which works normally, but doesn't include the switch to get a smaller version with a smaller window. I don't want google to reference it, so you'll have to remove the spaces :
http://www. millesaisons .fr