I'm creatign a script that changes the ID of a div tag depending on the Screen Res... Here's the code:

HTML Code:
if (document.body.clientWidth <= 800) {
document.getElementById('header-logo').id = 'header-logo2';
}
The HTML...

HTML Code:
<div id="header-logo">Logo
What am I doing wrong? It isn't working....