<!---

	navigator.appName.indexOf("scape") > 1 ? browser = "net" : browser = "ie";

	if (navigator.appVersion.indexOf("mac") != -1){

		platform = "mac";

		if (navigator.appVersion.indexOf("MSIE 5.0") > 1)

			platform = "pc";

	} else

		platform = "pc";

	document.write('<LINK REL="stylesheet" HREF="assets/css/style_'+platform+'_'+browser+'.css" TYPE="text/css">');

	

	bName = navigator.appName;

	bVer = parseInt(navigator.appVersion);

	if ((bName == "Netscape" && bVer >= 3) ||

	    (bName == "Microsoft Internet Explorer" && bVer >= 4)) br ="n3";

	        

	else br = "n2";

	

	if (br == "n3") {

	  image1on = new Image();   image1on.src = 'http://www.acenvironmental.co.uk/images/nav/n_home_n.gif';

	  image1off = new Image();  image1off.src = 'http://www.acenvironmental.co.uk/images/nav/n_home_f.gif';

	  

	  image2on = new Image();   image2on.src = 'http://www.acenvironmental.co.uk/images/nav/n_surveys_n.gif';

	  image2off = new Image();  image2off.src = 'http://www.acenvironmental.co.uk/images/nav/n_surveys_f.gif';	

	  

	  image3on = new Image();   image3on.src = 'http://www.acenvironmental.co.uk/images/nav/n_removal_n.gif';

	  image3off = new Image();  image3off.src = 'http://www.acenvironmental.co.uk/images/nav/n_removal_f.gif';

	  

	  image4on = new Image();   image4on.src = 'http://www.acenvironmental.co.uk/images/nav/n_asbestos_n.gif';

	  image4off = new Image();  image4off.src = 'http://www.acenvironmental.co.uk/images/nav/n_asbestos_f.gif';

	  

	  image5on = new Image();   image5on.src = 'http://www.acenvironmental.co.uk/images/nav/n_clients_n.gif';

	  image5off = new Image();  image5off.src = 'http://www.acenvironmental.co.uk/images/nav/n_clients_f.gif';

	  

	  image6on = new Image();   image6on.src = 'http://www.acenvironmental.co.uk/images/nav/n_accreditations_n.gif';

	  image6off = new Image();  image6off.src = 'http://www.acenvironmental.co.uk/images/nav/n_accreditations_f.gif';

	  

	  image7on = new Image();   image7on.src = 'http://www.acenvironmental.co.uk/images/nav/n_contact_n.gif';

	  image7off = new Image();  image7off.src = 'http://www.acenvironmental.co.uk/images/nav/n_contact_f.gif';

	  

	  image8on = new Image();   image8on.src = 'http://www.acenvironmental.co.uk/images/nav/b_legislation_n.gif';

	  image8off = new Image();  image8off.src = 'http://www.acenvironmental.co.uk/images/nav/b_legislation_f.gif';

	  

	  image9on = new Image();   image9on.src = 'http://www.acenvironmental.co.uk/images/nav/b_survey_n.gif';

	  image9off = new Image();  image9off.src = 'http://www.acenvironmental.co.uk/images/nav/b_survey_f.gif';

	  

	}

	

	function imgActDynamic(imageName, objName) {

	  if (br =="n3") {

		if (document[objName])

		{

			document[objName].src = eval(imageName + "on.src")

		}

		else

		{

			document.getElementById(objName).src = eval(imageName + "on.src")

		}

	

	  }

	}

	

	function imgInactDynamic(imageName, objName) {

		if (br == "n3") {

			if (document[objName])

			{

				document[objName].src = eval(imageName + "off.src")

			}

			else

			{

				document.getElementById(objName).src = eval(imageName + "off.src")

			}

	   }

	}

	

	function imgAct(imageName) {

	  if (br =="n3") {

		if (document[imageName])

		{

			document[imageName].src = eval(imageName + "on.src")

		}

		else

		{

			document.getElementById(imageName).src = eval(imageName + "on.src")

		}

	

	  }

	}

	function imgInact(imageName) {

		if (br == "n3") {

			if (document[imageName])

			{

				document[imageName].src = eval(imageName + "off.src")

			}

			else

			{

				document.getElementById(imageName).src = eval(imageName + "off.src")

			}

	   }

	}

	

	function confirmdelete() {



		 if (confirm("Are you sure you want to delete this item?")) {return true}

		 else{return false};

      

   }

   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 MM_validateForm() { //v4.0

	  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;

	  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);

	    if (val) { nm=val.name; if ((val=val.value)!="") {

	      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');

	        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';

	      } else if (test!='R') {

	        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';

	        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');

	          min=test.substring(8,p); max=test.substring(p+1);

	          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';

	    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

	  } if (errors) alert('The following error(s) occurred:\n'+errors);

	  document.MM_returnValue = (errors == '');

	}



	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 MM_swapImgRestore() { //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;

	}



// -->