Browser scripting help

I would like to write a script that will set a web browser to a full screen presentation mode, then close the window after 30 seconds. I need this to happen every time a webpage is opened. Can anyone help me out with this?

Model: Mac Power Book
AppleScript: 2.3
Browser: Safari 535.7
Operating System: Mac OS X (10.6)