rexrainbow: Interesting changes. It's now more intuitive.
Please, check below if I did it right:
On start of layout
iframeFilter is in iframe
iframeFilter.MainFrameURL = "http://www.website.com" (I didn't include the whole path. Need I?): go to layout 1
else: go to layout2
Edited: It does not work, always shows the layout2. The URL of my iframe is created by the wordpress. Something like: "www.website.com/?game=game1" and the game is in the hdgames folder. I'll waiting for your instructions.