// JavaScript Document
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function Restore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function Swap() { //v3.0
  var i,j=0,x,a=Swap.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function LoadMenus() {
	if (window.productmenu) return;
	window.productmenu = new Menu("root",150,22,"'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#505050","#666666","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
	if (checkIt('msie') && checkIt('mac')) {
		productmenu.addMenuItem("Software","location='../software.html'");
		productmenu.addMenuItem("Support","location='http://ccgi.anagram2.force9.co.uk/support/'");
		productmenu.addMenuItem("Training","location='../Descriptions/training.html'");
		productmenu.addMenuItem("Mods\/Tailoring","location='../Descriptions/Modifications.html'");
	} else {
		productmenu.addMenuItem("<font color='#FF0033'>::</font> Software","location='../software.html'");
		productmenu.addMenuItem("<font color='#FF0033'>::</font> Support","location='http://ccgi.anagram2.force9.co.uk/support/'");
		productmenu.addMenuItem("<font color='#FF0033'>::</font> Training","location='../Descriptions/training.html'");
		productmenu.addMenuItem("<font color='#FF0033'>::</font> Mods\/Tailoring","location='../Descriptions/Modifications.html'");
	}
	productmenu.hideOnMouseOut=true;
	productmenu.menuBorder=0;
	//   productmenu.bgImageUp='/images/nav_bg.gif';
	//  productmenu.bgImageOver='/images/nav_bg2.gif';
	productmenu.menuLiteBgColor='#505050';
	productmenu.menuBorderBgColor='#555555';
	productmenu.bgColor='#555555';
	
	window.customersmenu = new Menu("root",170,22,"'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#505050","#666666","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
		customersmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;What&nbsp;our&nbsp;customers&nbsp;say","location='../reference.html'");
		customersmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Customer&nbsp;stories","location='casestudy.html'");
		customersmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Customer&nbsp;list","location='../custlist.html'");
	customersmenu.hideOnMouseOut=true;
	customersmenu.menuBorder=0;
	customersmenu.menuLiteBgColor='#505050';
	customersmenu.menuBorderBgColor='#555555';
	customersmenu.bgColor='#555555';
	
	window.contactmenu = new Menu("root",150,22,"'Trebuchet MS',Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#505050","#666666","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
		contactmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Contact us form","location='http://www.leadbank.co.uk/plugin/137467/default.asp'");
		contactmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Information pack","location='../Descriptions/info.html'");
		contactmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;For us to ring you","location='../Descriptions/ring.html'");
		contactmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Free demo disk","location='../Descriptions/demo.html'");
contactmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Contact information","location='../contactinfo.html'");
	contactmenu.hideOnMouseOut=true;
	contactmenu.menuBorder=0;
	contactmenu.menuLiteBgColor='#505050';
	contactmenu.menuBorderBgColor='#555555';
	contactmenu.bgColor='#555555';

	window.techmenu = new Menu("root",160,22,"'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif",12,"#ffffff","#ffffff","#505050","#666666","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
	techmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;System&nbsp;Requirements","location='../Descriptions/SysRequire.html'");
	techmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Links","location='../links.html'");
	techmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Link to us","location='../linktous.html'");
	techmenu.addMenuItem("<font color='#FF0033'>::</font>&nbsp;Site Map","location='../SiteMap.html'");
	techmenu.hideOnMouseOut=true;
	techmenu.menuBorder=0;
	techmenu.menuLiteBgColor='#505050';
	techmenu.menuBorderBgColor='#555555';
	techmenu.bgColor='#555555';

	techmenu.writeMenus();
} // mmLoadMenus()