﻿// Browser detection script to load specific CSS		var mac_externalcss='http://www.thekingofshavescompany.com/corporate/style/mac.css' // Mac css file here		var safari_externalcss='http://www.thekingofshavescompany.com/corporate/style/safari.css' // Safari css file here		var ie_externalcss='http://www.thekingofshavescompany.com/corporate/style/ie.css'   // IE css file here		var pc_externalcss='http://www.thekingofshavescompany.com/corporate/style/pc.css'   // PC Mozilla / Konqueror css file here				var agt=navigator.userAgent.toLowerCase();		var ietest=(navigator.appName == "Microsoft Internet Explorer")==1 // is it PC IE		var safaritest=(agt.indexOf("safari") != -1) // is it Safari		var mactest=navigator.userAgent.indexOf("Mac")!=-1 // is it Mac Firefox		var pctest=(navigator.appName != "Microsoft Internet Explorer" && (navigator.userAgent.indexOf("Mac")==0))==0 // is it PC other				if (ietest){			document.write('<link rel="stylesheet" type="text/css" href="'+ (ie_externalcss) +'">')		}		else if (safaritest){			document.write('<link rel="stylesheet" type="text/css" href="'+ (safari_externalcss) +'">')		}		else if (mactest){			document.write('<link rel="stylesheet" type="text/css" href="'+ (mac_externalcss) +'">')		}		else if (pctest){			document.write('<link rel="stylesheet" type="text/css" href="'+ (pc_externalcss) +'">')		}