<!--
	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="http://eastlancsproperty.com/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://eastlancsproperty.com/assets/images/navigation/nav_home_on.gif';
	  image1off = new Image();  image1off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_home_off.gif';
	  image2on = new Image();   image2on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_about_on.gif';
	  image2off = new Image();  image2off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_about_off.gif';
	  image3on = new Image();   image3on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_caseStudies_on.gif';
	  image3off = new Image();  image3off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_caseStudies_off.gif';
	  image4on = new Image();   image4on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_ambassadorsClub_on.gif';
	  image4off = new Image();  image4off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_ambassadorsClub_off.gif';
	  image5on = new Image();   image5on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_propertySearch_on.gif';
	  image5off = new Image();  image5off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_propertySearch_off.gif';
	  image6on = new Image();   image6on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_communications_on.gif';
	  image6off = new Image();  image6off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_communications_off.gif';
	  image7on = new Image();   image7on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_funding_on.gif';
	  image7off = new Image();  image7off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_funding_off.gif';
	  image8on = new Image();   image8on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_contact_on.gif';
	  image8off = new Image();  image8off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_contact_off.gif';
	  
	  image9on = new Image();   image9on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_amRole_on.gif';
	  image9off = new Image();  image9off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_amRole_off.gif';
	  image10on = new Image();   image10on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_amProfile_on.gif';
	  image10off = new Image();  image10off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_amProfile_off.gif';
	  image11on = new Image();   image11on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_amEvents_on.gif';
	  image11off = new Image();  image11off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_amEvents_off.gif';
	  image12on = new Image();   image12on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_partnerLinks_on.gif';
	  image12off = new Image();  image12off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_partnerLinks_off.gif';
	  
	  image13on = new Image();   image13on.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_businessSupport_on.gif';
	  image13off = new Image();  image13off.src = 'http://eastlancsproperty.com/assets/images/navigation/nav_businessSupport_off.gif';
	  
	  image14on = new Image();   image14on.src = 'http://eastlancsproperty.com/assets/images/header_news_more_on.gif';
	  image14off = new Image();  image14off.src = 'http://eastlancsproperty.com/assets/images/header_news_more_off.gif';
	  
	  image15on = new Image();   image15on.src = 'http://eastlancsproperty.com/assets/images/top_trees_on.gif';
	  image15off = new Image();  image15off.src = 'http://eastlancsproperty.com/assets/images/top_trees.gif';
	  
	  image16on = new Image();   image16on.src = 'http://eastlancsproperty.com/assets/images/pop_news/pop_news_close_window_on.gif';
	  image16off = new Image();  image16off.src = 'http://eastlancsproperty.com/assets/images/pop_news/pop_news_close_window_off.gif';
	  
	  image17on = new Image();   image17on.src = 'http://eastlancsproperty.com/assets/images/navigation/b_search_on.gif';
	  image17off = new Image();  image17off.src = 'http://eastlancsproperty.com/assets/images/navigation/b_search_off.gif';
	
	 
		  
	}
	
	function imgAct(imageName) {
	  if (br =="n3") {
	  document[imageName].src = eval(imageName + "on.src");
	
	  }
	}
	function imgInact(imageName) {
	   if (br == "n3") {
	   document[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 confirmSend() {

		 if (confirm("Are you sure you want to send the email?")) {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 == '');
}

var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5);

function addOption(theSel, theText, theValue)
{
	var newOpt = new Option(theText, theValue);
	var selLength = theSel.length;
	theSel.options[selLength] = newOpt;
}

function deleteOption(theSel, theIndex)
{	
	var selLength = theSel.length;
	if(selLength>0)
	{
		theSel.options[theIndex] = null;
	}
}

function moveOptions(theSelFrom, theSelTo)
{
	
	var selLength = theSelFrom.length;
	var selectedText = new Array();
	var selectedValues = new Array();
	var selectedCount = 0;
	
	var i;
	
	// Find the selected Options in reverse order
	// and delete them from the 'from' Select.
	for(i=selLength-1; i>=0; i--)
	{
		if(theSelFrom.options[i].selected)
		{
			selectedText[selectedCount] = theSelFrom.options[i].text;
			selectedValues[selectedCount] = theSelFrom.options[i].value;
			deleteOption(theSelFrom, i);
			selectedCount++;
		}
	}
	
	// Add the selected text/values in reverse order.
	// This will add the Options to the 'to' Select
	// in the same order as they were in the 'from' Select.
	for(i=selectedCount-1; i>=0; i--)
	{
		addOption(theSelTo, selectedText[i], selectedValues[i]);
	}
	
	if(NS4) history.go(0);
}
function selectAllOptions(obj) {
	for (var i=0; i<obj.options.length; i++) {
		obj.options[i].selected = true;
		}
	}

function listcheck() {
selectAllOptions(this.form1.unitChoosen);
selectAllOptions(this.form1.regionChoosen);
MM_validateForm('name','','R','email','','RisEmail','c_postcode','','R');return document.MM_returnValue;
}

var item = new Array();
var resultsTotal = 0;
var resultsArray = new Array();
var resultsScore = new Array();

/* Here is where all the magic happens.  
    Just enter as many additional pages that
    that you want to search, then fill in the
    additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("index.asp?mnuSelect=home","","East Lancashire Partnership: Welcome","index,main,start,home,front","This web site has been designed to provide details of current sites and premises available within East Lancashire.");
c++; item[c]=new Array("about.asp?mnuSelect=about","","East Lancashire Partnership: About","about,author,contact,email,who,developement,employment,investment","The East Lancashire Partnership is a partnership organisation covering the local authority areas of Blackburn with Darwen, Burnley, Hyndburn, Pendle, Ribble Valley and Rossendale.");
c++; item[c]=new Array("caseStudies.asp?mnuSelect=caseStudies","","East Lancashire Partnership: Case Studies","case,cases,study,studies","View a selection of our latest projects, along with client testimonials.");
c++; item[c]=new Array("ambassadorsClub.asp?mnuSelect=ambassadorsClub","","East Lancashire Partnership: Ambassadors Club","club,ambassadors,voluntary,scheme,promote,live,work,visit,business,benefits","The East Lancashire Partnership Ambassadors Club is a voluntary scheme run by the Partnership which aims to help promote East Lancashire as a great place in which to live, work, visit and do business.");
c++; item[c]=new Array("ourRole.asp?mnuSelect=ambassadorsClub&mnuSub=role","","ELP: Ambassadors Club: Our Role","club,company,ambassadors,profile,role,our,investment,enthusiasm,pride,genuine,fees,charges","All we ask Ambassadors to do is to promote East Lancashire whenever possible in their day-to-day business and identify new business opportunities for East Lancashire Partnership to follow up.");
c++; item[c]=new Array("company_Profile.asp?mnuSelect=ambassadorsClub&mnuSub=profile","","ELP: Ambassadors Club: Company profile","club,company,ambassadors,profile,industry,aerospace,it,i.t.,manufacturing,other","Search for the profiles of companies acting as ambassadors for the East Lancashire Partnership.");
c++; item[c]=new Array("event.asp?mnuSelect=ambassadorsClub&mnuSub=event","","ELP: Ambassadors Club: Events","club,ambassadors,event,events","Current events being held by the East Lancashire Partnership Ambassadors club.");
c++; item[c]=new Array("communications.asp?mnuSelect=communications","","East Lancashire Partnership: Communications","communications,alert,electronic,update,online,on-line,subscribe,newsletter,funding,events,listing","To receive further information and regular electronic updates, please complete the on-line communication form, indicating the type of information you would like to receive.");
c++; item[c]=new Array("funding.asp?mnuSelect=funding","","East Lancashire Partnership: Funding","small,medium,enterprise,enterprises,grant,aid,business,support,service,funding,borough,town,locator","This section provides useful information for SME's (Small to Medium sized Enterpeurs employing up to 250 people), on grant aid business support services, to enable companies to access funding.");
c++; item[c]=new Array("contact.asp?mnuSelect=contact","","East Lancashire Partnership: Contact","contact,information,assistance,investment,team,address,email,e-mail,fax,phone,telephone,tel,on-line,query,question","If you require further information or assistance please contact the East Lancashire Partnership’s Inward Investment Team.");

function searchPages(frm) {
	var myQString, temp;
	
	// construct our search querystring
	temp = frm.srchval.value.split(" ");
	myQString = temp[0];
	for (i = 1; i < temp.length; i++) {
		myQString = myQString + "+" + temp[i];
	}
	myQString = escape(myQString);
	
	//open search results window
	window.location = "searchResults.asp?mnuSelect=search&srchval=" + myQString;
}

function search(frm) {
	txt = frm.srchval.value.split(" ");
	fnd = new Array(); total=0;
	
	for (i = 0; i < item.length; i++) {
		fnd[i] = 0; order = new Array(0, 4, 2, 3);
		for (j = 0; j < order.length; j++)
		for (k = 0; k < txt.length; k++)
		if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
		fnd[i] += (j+1);
	}
	
	for (i = 0; i < fnd.length; i++) {
		n = 0; w = -1;
		for (j = 0;j < fnd.length; j++)
		if (fnd[j] > n) { n = fnd[j]; w = j; resultsArray[i] = j; resultsScore[i] = fnd[j]; };
		if (w > -1) resultsTotal += 1;
		fnd[w] = 0;
	}

}

function showResults() {
	document.write("<table border=0 cellspacing=10 width=80%>");
	
	for (i=0; i < resultsTotal; i++) {
		link = item[resultsArray[i]][1] + item[resultsArray[i]][0]; 
		line = "<tr><td><a href='"+link+"'>"+item[resultsArray[i]][2]+"</a><br>";
		line += item[resultsArray[i]][4] + "<br></td></tr>";
		document.write(line);
	}
	
	document.write("</table>");
	document.close();
}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
	}

// -->