The if condition below I think it says - if the browser is IE and IE browser version is newer than 9, but I don\'t have IE 9 to test it so it is hard to know the correct out
Instead of putting in a bunch of inline javascript you could just add an empty div for the version of ie you are targeting, so put the following at the top of your html, just inside the body tag:
Then you can place an if statement in your jquery to check for that block.
if ($("#iedetect").is(".oldie")) {
//Do something
} else {
//Do Something else in all other browsers
}