// browser detect script
// checks for browser type and writes the launch button for 1 of 2 verosite popups

function identifyBrowser() {
  var agent = navigator.userAgent.toLowerCase();

  if (typeof navigator.vendor != "undefined" && navigator.vendor == "KDE" &&
      typeof window.sidebar != "undefined")
  {
    document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
		return true;
  }
  else if (typeof window.opera != "undefined")
  {
    var version = parseFloat(agent.replace(/.*opera[\/ ]([^ $]+).*/, "$1"));

    if (version >= 7)
    {
      document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
			return true;
    }
    else if (version >= 5)
    {
      document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
			return true;
    }

    return false;
  }
  else if (typeof document.all != "undefined")
  {
    if (typeof document.getElementById != "undefined")
    {
      var browser = agent.replace(/.*ms(ie[\/ ][^ $]+).*/, "$1").replace(/ /, "");

      if (typeof document.uniqueID != "undefined")
      {
        if (browser.indexOf("5.5") != -1)
        {
          document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_pc.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
					return true;
        }
        else
        {
          document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_pc.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
					return true;
        }
      }
      else
      {
        document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
				return true;
      }
    }

    return false;
  }
  else if (typeof document.getElementById != "undefined")
  {
    if (navigator.vendor.indexOf("Apple Computer, Inc.") != -1)
    {
      if (typeof window.XMLHttpRequest != "undefined")
      {
        document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
				return true;
      }

      document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
			return true;
    }
    else if (agent.indexOf("gecko") != -1)
    {
      document.write ("<a href='javascript:return true;'><img src='images/landing_launch.jpg' border='0' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\" /></a>");
			return true;
    }
  }
  return false;
}

function identifyBrowserText() {
  var agent = navigator.userAgent.toLowerCase();

  if (typeof navigator.vendor != "undefined" && navigator.vendor == "KDE" &&
      typeof window.sidebar != "undefined")
  {
    document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
		return true;
  }
  else if (typeof window.opera != "undefined")
  {
    var version = parseFloat(agent.replace(/.*opera[\/ ]([^ $]+).*/, "$1"));

    if (version >= 7)
    {
      document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
			return true;
    }
    else if (version >= 5)
    {
      document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
			return true;
    }

    return false;
  }
  else if (typeof document.all != "undefined")
  {
    if (typeof document.getElementById != "undefined")
    {
      var browser = agent.replace(/.*ms(ie[\/ ][^ $]+).*/, "$1").replace(/ /, "");

      if (typeof document.uniqueID != "undefined")
      {
        if (browser.indexOf("5.5") != -1)
        {
          document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_pc.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
					return true;
        }
        else
        {
          document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_pc.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
					return true;
        }
      }
      else
      {
        document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
				return true;
      }
    }

    return false;
  }
  else if (typeof document.getElementById != "undefined")
  {
    if (navigator.vendor.indexOf("Apple Computer, Inc.") != -1)
    {
      if (typeof window.XMLHttpRequest != "undefined")
      {
        document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
				return true;
      }

      document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
			return true;
    }
    else if (agent.indexOf("gecko") != -1)
    {
      document.write ("For best results and access to portfolio samples, please <a href='javascript:return true;' onclick=\"MM_openBrWindow('index_mac.html','','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1020,height=550,screenX=50,screenY=50,top=50,left=50')\">launch</a> Flash site. For HTML text content only, scroll below.");
			return true;
    }
  }
  return false;
}


