<!--
var i_min_screen_width  = 800;
var i_min_screen_height = 600;
var b_netscape          = false; 
var b_iexplorer         = false;
var browser_version     = 0;
var is_navcurrent	= false;	



CheckBreakOutOfFrame(); 
ConfigBrowser();		//	 set up browser 


function CheckBreakOutOfFrame()

{
  if (top != window)   top.location.href = window.location.href;
}


function ConfigBrowser()
{
 CheckBrowserIE();
 CheckBrowserNetscape();
// DisableRightHandMouseClick();
 MaximiseBrowserOnLoad();
 CheckScreenSize();
 if (b_netscape && !is_navcurrent) IssuseNetscapeWarning();
}

function CheckScreenSize()
{
 if ((screen.width <i_min_screen_width) || (screen.height < i_min_screen_height))
  {
   alert ("This site has been designed to use a minimum screen resolution of " + i_min_screen_width + " by " +i_min_screen_height+ " pixels");
  }
}


function IssuseNetscapeWarning()
{
 alert("Netscape have released a new browser version. This site has been customised to work best for the latest version of Netscape. Some of the functions may not work as intended in older versions of Netscape.");
}


function MaximiseBrowserOnLoad()
{
 window.moveTo(0,0);
 if (document.all) 
  { 
   top.window.resizeTo(screen.availWidth,screen.availHeight);
  }
 else if (document.layers||document.getElementById) 
  {
  if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
    {
     top.window.outerHeight = screen.availHeight;
     top.window.outerWidth = screen.availWidth;
    }
  }
}

function CheckBrowserIE()
{
 var agt       = navigator.userAgent.toLowerCase();
 var is_major  = parseInt(navigator.appVersion);
 var is_minor  = parseFloat(navigator.appVersion);
 var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
 var is_ie3    = (is_ie && (is_major < 4));
 var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5")==-1) );
 var is_ie4up  = (is_ie && (is_major >= 4));
 var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
 var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
 var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
 var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
 b_iexplorer   = is_ie;
 browser_version= is_major; 
}

function CheckBrowserNetscape()
{
 var agt        = navigator.userAgent.toLowerCase();
 var is_major   = parseInt(navigator.appVersion);
 var is_minor   = parseFloat(navigator.appVersion);
 var is_nav     = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                   && (agt.indexOf('compatible') == -1)&& (agt.indexOf('hotjava')==-1));
 var is_nav2    = (is_nav && (is_major == 2));
 var is_nav3    = (is_nav && (is_major == 3));
 var is_nav4    = (is_nav && (is_major == 4));
 var is_nav4up  = (is_nav && (is_major >= 4));
 var is_navonly = (is_nav && ( (agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1) ) );
 var is_nav6    = (is_nav && (is_major == 6));
 var is_nav6up  = (is_nav && (is_major >= 6));
 var is_nav7    = (is_nav && (is_major == 7));
 var is_nav7up  = (is_nav && (is_major >= 7));
 is_navcurrent  = (is_nav && (is_major >= 5))
 b_netscape     = is_nav;
 browser_version= is_major; 
}

function check_mousekey ()
{
 var mouse_key = 93;
 var keycode = event.keyCode;
 if ( keycode == mouse_key ) 
  {
   alert ( "Function disabled on this site." );
   return false;
  }
}


function DisableRightHandMouseClick()
{
 if (b_netscape) 
 {
  if (document.layers) 
   {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=NetscapeRightClick;
   }
  else
   {
    document.onmouseup=NetscapeRightClick;
    document.oncontextmenu=IERightClick;
   }
  }
 else if (b_iexplorer) 
  {
   document.onmousedown=IERightClick;
   document.onkeydown = check_mousekey
  }
}

function IERightClick()
{
  if (document.all) 
   {
    if ((event.button==2) || (event.button==3)) 
     {
      alert("Function disabled on this site."); 
	  return false;
     }
   }
}

function NetscapeRightClick(e)
{
  if (document.layers||(document.getElementById&&!document.all)) 
   {
    if ((e.which==2)||(e.which==3))
     {
      alert("Function disabled on this site.");
      return false;
     }
  } 
}


function SetBackButtonPage(s_backpage)
{
 window.history.go(1);
}


function fullWindow(url) 
{ 
    var str = "left=0,screenX=0,top=0,screenY=0,resizable";
    if (window.screen) {
      var ah = screen.availHeight - 30;
      var aw = screen.availWidth - 10;
      str += ",height=" + ah;
      str += ",innerHeight=" + ah;
      str += ",width=" + aw;
      str += ",innerWidth=" + aw;
    }
    win=window.open(url, "w", str);
} 

-->

