function checkBrowser(){

   if(navigator.userAgent.match("Firefox/3.0")) var Fx3 = true;
   // JS to fix CSS and Web Font issues in Firefox 3.0.x. 
   if(Fx3){
	  document.getElementById("header").innerHTML = "";   
	  document.getElementById("header").innerHTML = '<img src="images/header_ie6.jpg" alt="ScottMedia - Web Solutions - Forward Thinking 21st Century Web Design" />';
	  var h1 = document.getElementsByTagName("h1");
	  for (i=0; i<h1.length; i++){
		h1[i].style.paddingBottom = "7px";  
	  }
	  alert("Dear Firefox 3 user: This Website will not appear as intended in this browser. Many modern features, such as Web fonts, and special effects, are not supported in this version of Firefox. We recommend that you update to a newer, more compatible version of Firefox by going to Help > Check for Updates. ");
   }
}	

// Load pages in new tab/window without breaking code validation.
function external() {

 if (!document.getElementsByTagName) return;
 
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {

   var anchor = anchors[i];
   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")

     anchor.target = "_blank";
 }
} 


