

$(document).ready(function(){
    
var browsers = [ 'firefox', 'mozilla',   'msie', 'safari'];



for( var i = 0; i < browsers.length; i++ ){

ch_br=$.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
//alert(browsers[i]);        
         if($.browser[browsers[i]]){
            brw=browsers[i];
            //alert($.browser.version);
            //alert(brw);
         }
         else if(ch_br){
            brw="chrome";
            //alert(brw);
            break;
         }
}

/*if(brw=='msie' && $.browser.version=='8.0')
{
document.getElementById('browser_test').setAttribute('style','border: 1px solid #ccc; padding-left: 5px; width: 283px; margin-bottom: 4px;height:64px;');
}
else if(brw=='msie' && $.browser.version=='6.0')
{
document.getElementById('browser_test').setAttribute('style','border: 2px solid #ccc; padding-left: 5px; width: 283px; margin-bottom: 4px;height:60px;');

}
else if(brw=='mozilla')
{
document.getElementById('browser_test').setAttribute('style','border: 1px solid #ccc; padding-left: 5px; width: 283px; margin-bottom: 4px;height:64px;');
}
else if(brw=='safari')
{
document.getElementById('browser_test').setAttribute('style','border: 1px solid #ccc; padding-left: 5px; width: 283px; margin-bottom: 4px;height:65px;');
}
else if(brw=='chrome')
{
document.getElementById('browser_test').setAttribute('style','border: 1px solid #ccc; padding-left: 5px; width: 283px; margin-bottom: 4px;height:60px;');
}*/

/*
$.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); 
if ($.browser.chrome) { 
	alert("chrome"); 
    }
*/
//$('#test-version').html( 'You are using version: ' + $.browser.version.string() + ' (' + $.browser.version.number() + ')' );
});    

