//-- WHICH BROWSER 


var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";

function whichBrs() {
	
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1) return 'Opera';
if (agt.indexOf("staroffice") != -1) return 'Star Office';
if (agt.indexOf("webtv") != -1) return 'WebTV';
if (agt.indexOf("beonex") != -1) return 'Beonex';
if (agt.indexOf("chimera") != -1) return 'Chimera';
if (agt.indexOf("netpositive") != -1) return 'NetPositive';
if (agt.indexOf("phoenix") != -1) return 'Phoenix';
if (agt.indexOf("firefox") != -1) return 'Firefox';
if (agt.indexOf("safari") != -1) return 'Safari';
if (agt.indexOf("skipstone") != -1) return 'SkipStone';
if (agt.indexOf("msie") != -1) return 'Internet Explorer';
if (agt.indexOf("netscape") != -1) return 'Netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'Netscape';} else if (agt.indexOf(' ') != -1)
return navigator.userAgent.substr(0,agt.indexOf(' '));
else return navigator.userAgent;
}

function detectSafari() {
var browserName = whichBrs(); 
/*alert(OSName);*/

if (OSName == 'MacOS' && browserName == 'Firefox') {
document.getElementById('spacer').style.top='-2px';
document.getElementById('head').style.top='-2px';
document.getElementById('button').style.top='-2px';
document.getElementById('content').style.top='-2px';
if (document.getElementById('cntLeft') != null) {
document.getElementById('cntLeft').style.top='-2px'; }
if (document.getElementById('cntRight') != null) {
document.getElementById('cntRight').style.top='-2px'; }
if (document.getElementById('cntFull') != null) {
document.getElementById('cntFull').style.top='-2px'; }
document.getElementById('footer').style.top='-2px';
document.getElementById('sub1').style.top='-7.94em';
document.getElementById('sub2').style.top='-11.908em';
document.getElementById('sub3').style.top='-11.908em';
document.getElementById('sub4').style.top='-11.908em';
document.getElementById('sub5').style.top='-17.914em';	
}

if (browserName == 'Safari') {
document.getElementById('spacer').style.top='-18px';
document.getElementById('head').style.top='-18px';
document.getElementById('button').style.top='-18px';
document.getElementById('content').style.top='-18px';
if (document.getElementById('cntLeft') != null) {
document.getElementById('cntLeft').style.top='-18px'; }
if (document.getElementById('cntRight') != null) {
document.getElementById('cntRight').style.top='-18px'; }
if (document.getElementById('cntFull') != null) {
document.getElementById('cntFull').style.top='-18px'; }
document.getElementById('footer').style.top='-18px';
document.getElementById('sub1').style.top='-7.81em';
document.getElementById('sub2').style.top='-11.77em';
document.getElementById('sub3').style.top='-11.77em';
document.getElementById('sub4').style.top='-11.77em';
document.getElementById('sub5').style.top='-17.65em';
}
}



