// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
var browser     = navigator.appName
var ver         = navigator.appVersion
var thestart    = parseFloat(ver.indexOf("MSIE"))+1                 //Start MSIE Version String
var brow_ver    = parseFloat(ver.substring(thestart+4,thestart+8))  //Cut out the bit of string I need.

if ((browser=="Microsoft Internet Explorer") && (brow_ver < 7))    //If min version IE7.
  {
  window.location='/unsupported.html';
  }
