/*
  Browser detect script adapted from 
  http://www.quirksmode.org/js/detect.html
*/

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('safari')) {
  document.write("<style type=\"text\/css\" media=\"screen\">");
  document.write(".toggleOn, .toggleOff {  position: relative; left: 375px; top: -41px; margin: 0; margin-bottom: -15px;  }");
  document.write("<\/style>");
}
else {
  document.write("<style type=\"text\/css\" media=\"screen\">");
  document.write(".toggleOn, .toggleOff {  float: right; padding-right: 3px; margin-top: -41px;  }");
  document.write("<\/style>");
}

function checkIt(string) {
  place = detect.indexOf(string) + 1;
  thestring = string;
  return place;
}

/*
   Toggle script adapted from Adrian Holovaty's toggle comments on/off feature:
   http://www.holovaty.com
*/

function toggleAgency(a) {
if (document.getElementById) {
	document.getElementById(a).style.display=(document.getElementById(a).style.display=="block")?"none":"block"
	document.getElementById(a+"Toggle").style.display=(document.getElementById(a).style.display=="block")?"none":"block"
	return false;
}
else return true;
}
