Use IE conditional comments and jQuery to create and IE 6 upgrade alert without messy browser sniffing.
This demo is set to display the alert to all browsers, not just IE 6, so check the jQuery.
Read more about this.