Yes, You can detect the browser, use/refer Jquery library in your code :
if ($.browser.safari)
{
alert('this is safari');
}
else if($.browser.chrome)
{
alert('this is chrome');
}
else if($.browser.mozilla)
{
alert('this is mozilla');
}
else if($.browser.opera)
{
alert('this is opera');
}
else if($.browser.msie)
{
alert('this is msie');
}
else
{
alert('this is some other browser');
}
Thanks,
Ambesha