function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
function addUnLoadEvent(func) {
  var oldonload = window.onunload;
  if (typeof window.onunload != 'function') {
    window.onunload = func;
  } else {
    window.onunload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

//addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
//addLoadEvent(function() {
//  /* more code to run on page load */ 
//});

function getElementsByClassName(oElm, strTagName, strClassName){
var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName);
	    var arrReturnElements = new Array();
	    strClassName = strClassName.replace(/\-/g, "\\-");
	    var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
	    var oElement;
	    for(var i=0; i<arrElements.length; i++){
	        oElement = arrElements[i];
	        if(oRegExp.test(oElement.className)){
	            arrReturnElements.push(oElement);
	        }
	    }
	    return (arrReturnElements)
	}


function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
     anchor.target = "_blank";
    }

   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "shareholdershelppopup") {
     anchor.onkeypress = function(){window.open('http://online.hemscottir.com/helppages/majorshareholders.htm', 'CtrlWindow', 'toolbar=no,menubar=no,height=643,width=580,location=no,scrollbars=yes,resizable=no,status=no,left=100,top=100');return false;}
     anchor.onclick = function(){window.open('http://online.hemscottir.com/helppages/majorshareholders.htm', 'CtrlWindow', 'toolbar=no,menubar=no,height=643,width=580,location=no,scrollbars=yes,resizable=no,status=no,left=100,top=100');return false;}
     anchor.setAttribute("href","#");
     }

    if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "news-item") {
         anchors[i].onkeypress = function(){window.open(this.href, 'NewsItem', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=580,width=650');return false;}
         anchors[i].onclick = function(){window.open(this.href, 'NewsItem', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,width=650,height=580');return false;}
    }

    if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "charthelp") {
         anchor.onkeypress = function(){window.open('http://online.hemscottir.com/helppages/gifgraphs.htm', 'ChartHelp', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=580,width=600');return false;}
         anchor.onclick = function(){window.open('http://online.hemscottir.com/helppages/gifgraphs.htm', 'ChartHelp', 'toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=no,height=580,width=600');return false;}
         anchor.setAttribute("href","#");
    }

   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "disclaimer") 
   {
      var disclaimerURL = anchor.getAttribute('href');
	  if (disclaimerURL == "#") disclaimerURL = "http://online.hemscottir.com/legal/cust_disclaim.htm";
      anchor.onkeydown = function(e){if(e.keyCode == 13) {window.open(disclaimerURL, 'CtrlWindow', 'toolbar=no,menubar=no,height=525,width=638,location=no,scrollbars=yes,resizable=no,status=no,left=100,top=100');return false;}}
      anchor.setAttribute("href","#");
      anchor.onclick = function(){window.open(disclaimerURL, 'CtrlWindow', 'toolbar=no,menubar=no,height=525,width=638,location=no,scrollbars=yes,resizable=no,status=no,left=100,top=100');return false;}
      anchor.setAttribute("href","#");
      }

}
}

var img = new Array();

function addImages (imageName) {
	img.push(imageName);
}

function changeImg() {
	var num = (Math.floor(Math.random()*img.length))-1;
	if (num < 0) {changeImg();} else {
		var banner = document.getElementById("banner_img");
		if (banner) var bannerImg = banner.getElementsByTagName("img");
		if (bannerImg)	bannerImg[0].src = img[num];
	}
}

function changeImg2() {
	var num2 = (Math.floor(Math.random()*img.length))-1;
	if (num2 == 0 || num2 == 1 || num2 == 7) {
		var banner2 = document.getElementById("banner_img_news");
		if (banner2) var bannerImg2 = banner2.getElementsByTagName("img");
		if (bannerImg2)	bannerImg2[0].src = img[num2];
	} else {
		changeImg2();
	}
}


var directors_list = new Array(	"nigel_r_freer",
								"hugh_c_l_cawley",
								"adrian_l_wood",
								"ian_r_davies",
								"baroness",
								"jim_j_mcmarthy" );
									
function director() {
	var page = window.location.href;
	director = page.substring(page.lastIndexOf("#")+1);
	
	var directorFound = false;
	for (var i = 0; i < directors_list.length; i++) {
		if (director == directors_list[i]) directorFound = true;
	}
	if (directorFound) changeBio(director);
}

function changeBio(director) {
	for (var i = 0; i < directors_list.length; i++) {
		if (director == directors_list[i]) {
			preload_image = new Image(58,69); 
			preload_image.src="../images/directors/thumbnails/"+director+"_sm.jpg";
			document.getElementById(director).style.display = 'block';
			document.getElementById(director+"_sm").src = "../images/directors/thumbnails/"+director+"_sm.jpg";
		} else {
			preload_image = new Image(58,69); 
			preload_image.src="../images/directors/thumbnails/"+directors_list[i]+"_sm_bw.jpg";
			document.getElementById(directors_list[i]).style.display = 'none';
			document.getElementById(directors_list[i]+"_sm").src = "../images/directors/thumbnails/"+directors_list[i]+"_sm_bw.jpg";
		}
	}
}

function init() {
	addImages("../images/banner_3.jpg");
	addImages("../images/banner_4.jpg");
	addImages("../images/banner_5.jpg");
	addImages("../images/banner_6.jpg");
	addImages("../images/banner_7.jpg");
	addImages("../images/banner_9.jpg");
	addImages("../images/banner_10.jpg");
	changeImg();
	changeImg2();
	externalLinks();
	director();
}

addLoadEvent(init);

// Locations
function change_location(location) {
	
	var currentLocation = "";
	if (location == "Aberystwyth"){
		currentLocation = "<h4>AberAberystwyth</h4>";
		currentLocation += "<p>Unit 2, Glenyrafon Industrial<br/>";
		currentLocation += "Estate<br/>";
		currentLocation += "Aberystwyth<br/>";
		currentLocation += "Dyfed<br/>";
		currentLocation += "SY23 3JQ<br/>";
		currentLocation += "(01970) 612551</p>";
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=SY23+3JQ' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Altham"){
		currentLocation = "<h4>Altham</h4>";
		currentLocation += "<p>5 Shorten Brook Way, Altham Business Park<br/>";
		currentLocation += "Altham, Nr. Blackburn<br/>";
		currentLocation += "Lancashire<br/>";
		currentLocation += "BB5 5YJ<br/>";
		currentLocation += "Fax: (01282) 858311<br/>";
		currentLocation += "Tel: (01282) 771622</p>";
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=BB5+5YJ' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Bangor"){
		currentLocation = "<h4>Bangor</h4>";
		currentLocation += "<p>Unit 30<br/>"
		currentLocation += "Llandegai Industrial Estate<br/>"
		currentLocation += "Bangor<br/>"
		currentLocation += "North Wales<br/>"
		currentLocation += "LL57 4SS<br/>"
		currentLocation += "08453 893857<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=LL57+4SS' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Barnstaple"){
		currentLocation = "<h4>Barnstaple</h4>";
		currentLocation += "<p>Howard Avenue<br/>"
		currentLocation += "Barnstaple<br/>"
		currentLocation += "Devon<br/>"
		currentLocation += "EX32 8QA<br/>"
		currentLocation += "Fax: (01271) 340691<br/>"
		currentLocation += "Tel: (01271) 340690</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=EX32+8QA' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Bournemouth"){
		currentLocation = "<h4>Bournemouth</h4>";
		currentLocation += "<p>Yeomans Industrial Park<br/>"
		currentLocation += "Yeomans Way, Bournemouth<br/>"
		currentLocation += "Dorset<br/>"
		currentLocation += "BH8 0BF<br/>"
		currentLocation += "Fax: (01202) 538855<br/>"
		currentLocation += "Tel: (01202) 538822<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=BH8+0BF' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Brislington"){
		currentLocation = "<h4>Brislington</h4>";
		currentLocation += "<p>Unit 11,<br/>"
		currentLocation += "Unicorn Business Park,<br/>"
		currentLocation += "Brislington<br/>"
		currentLocation += "BRISTOL<br/>"
		currentLocation += "BS4 4EX</p>"
		currentLocation += "<p>Fax: (01179) 770417<br/>"
		currentLocation += "Tel: (01179) 169100<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=BS4+4EX' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Bristol North"){
		currentLocation = "<h4>Bristol North</h4>";
		currentLocation += "<p>Units A, B & C Riverside Business Park<br/>"
		currentLocation += "St Annes Road, St Annes<br/>"
		currentLocation += "Bristol<br/>"
		currentLocation += "BS4 4ED<br/>"
		currentLocation += "Fax: (01179) 588999<br/>"
		currentLocation += "Tel: (01179) 716266<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=BS4+4ED' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Bury"){
		currentLocation = "<h4>Bury</h4>";
		currentLocation += "<p>104 Phoenix Close<br/>"
		currentLocation += "Phoenix Industrial Estate, Heywood<br/>"
		currentLocation += "Lancashire<br/>"
		currentLocation += "OL10 2JG<br/>"
		currentLocation += "(01706) 620159<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=OL10+2JG' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Chatham"){
		currentLocation = "<h4>Chatham</h4>";
		currentLocation += "<p>Units 37 & 38 Gleaming Wood Drive<br/>"
		currentLocation += "Lords Wood, Chatham<br/>"
		currentLocation += "Kent<br/>"
		currentLocation += "ME5 8RZ<br/>"
		currentLocation += "Fax: (01634) 662425<br/>"
		currentLocation += "Tel: (01634) 662400<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=ME5+8RZ' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Chester"){
		currentLocation = "<h4>Chester</h4>";
		currentLocation += "<p>Unit 3<br/>"
		currentLocation += "First Avenue - Drive A<br/>"
		currentLocation += "Zone 2<br/>"
		currentLocation += "Deeside Industrial Estate<br/>"
		currentLocation += "Chester CH5 2LR<br/>"
		currentLocation += "08453 893855<br/>"
		currentLocation += "Main-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=CH5+2LR' target='_blank' class='underline'>View Branch Location</a></p>";
	}
		if (location == "Canterbury"){
		currentLocation = "<h4>Canterbury</h4>";
		currentLocation += "<p>Unit 6 A & B<br/>Marshwood Close<br />"
		currentLocation += "Canterbury<br/>"
		currentLocation += "Kent CT1 1DX<br/></p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=Canterbury' target='_blank' class='underline'>View Branch Location</a></p>";
		
	}
	
	
	if (location == "City News"){
		currentLocation = "<h4>City News</h4>";
		currentLocation += "<p>27-31 Webber Street<br/>"
		currentLocation += "London<br/>"
		currentLocation += "SE1 8QW<br/>"
		currentLocation += "Fax: (020) 7633 0665<br/>"
		currentLocation += "Tel: (020) 7928 6126<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=SE1+8QW' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Coventry"){
		currentLocation = "<h4>Coventry</h4>";
		currentLocation += "<p>The Leofric Business Park, Progress Close<br/>"
		currentLocation += "Coventry<br/>"
		currentLocation += "West Midlands<br/>"
		currentLocation += "CV3 2TF<br/>"
		currentLocation += "Fax: (024) 7665 0578<br/>"
		currentLocation += "Tel: (024) 7665 0595<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=CV3+2TF' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	
	if (location == "Eastbourne"){
		currentLocation = "<h4>Eastbourne</h4>";
		currentLocation += "<p>1 Alder Close<br/>Eastbourne<br />"
		currentLocation += "East Sussex BN23 6QS</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=Eastbourne' target='_blank' class='underline'>View Branch Location</a></p>";
	
	}
	
	if (location == "Exeter"){
		currentLocation = "<h4>Exeter</h4>";
		currentLocation += "<p>1a Kingfisher Way<br/>"
		currentLocation += "Sowton Industrial Estate, Exeter<br/>"
		currentLocation += "Devon<br/>"
		currentLocation += "EX2 7NW<br/>"
		currentLocation += "Fax: (01392) 286101<br/>"
		currentLocation += "Tel: (01392) 258427<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=EX2+7NW' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Harlow"){
		currentLocation = "<h4>Harlow</h4>";
		currentLocation += "<p>Scimitar Park<br/>"
		currentLocation += "Roydon Road<br/>"
		currentLocation += "Harlow<br/>"
		currentLocation += "Essex<br/>"
		currentLocation += "CM19 5GU<br/>"
		currentLocation += "Fax: (01279)636282<br/>"
		currentLocation += "Tel: (01279) 636261<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=CM19+5GU' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Lancing"){
		currentLocation = "<h4>Lancing</h4>";
		currentLocation += "<p>10 Chartwell Road<br/>"
		currentLocation += "Lancing Business Park, Lancing<br/>"
		currentLocation += "West Sussex<br/>"
		currentLocation += "BN15 8UE<br/>"
		currentLocation += "Fax: (01903) 875600<br/>"
		currentLocation += "Tel: (01903) 766222<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=BN15+8UE' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Lincoln"){
		currentLocation = "<h4>Lincoln</h4>";
		currentLocation += "<p>Kingsley Road<br/>"
		currentLocation += "Lincolnfields<br/>"
		currentLocation += "Lincoln<br/>"
		currentLocation += "LN6 3TA<br/>"
		currentLocation += "Fax: (01522) 699901<br/>"
		currentLocation += "Tel: (01522) 686870<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=LN6+3TA' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "London-East"){
		currentLocation = "<h4>London-East</h4>";
		currentLocation += "<p>Units 38-40 Eastbury Road<br/>"
		currentLocation += "London Industrial Park, Beckton<br/>"
		currentLocation += "London<br/>"
		currentLocation += "E6 6LP<br/>"
		currentLocation += "Fax: (020) 7511 6881<br/>"
		currentLocation += "Tel: (020) 7511 6979<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=E6+6LP' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Luton"){
		currentLocation = "<h4>Luton</h4>";
		currentLocation += "<p>39 Manor Road<br/>"
		currentLocation += "Luton<br/>"
		currentLocation += "Bedfordshire<br/>"
		currentLocation += "LU1 3HN<br/>"
		currentLocation += "Fax: (01582) 487031<br/>"
		currentLocation += "Tel: (01582) 736110<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=LU1+3HN' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Mansfield"){
		currentLocation = "<h4>Mansfield</h4>";
		currentLocation += "<p>The Broadway<br/>"
		currentLocation += "Great Central Road<br/>"
		currentLocation += "Mansfield<br/>"
		currentLocation += "Nottinghamshire<br/>"
		currentLocation += "NG18 2RL<br/>"
		currentLocation += "Tel: (01623) 626116<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=NG18+2RL' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Premier Park"){
		currentLocation = "<h4>Premier Park</h4>";
		currentLocation += "<p>2 Premier Park Road<br/>"
		currentLocation += "Park Royal<br/>"
		currentLocation += "London<br/>"
		currentLocation += "NW10 7NZ<br/>"
		currentLocation += "Fax: (020) 8838 9799<br/>"
		currentLocation += "Tel: (020) 8838 9700<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=NW10+7NZ' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Preston"){
		currentLocation = "<h4>Preston</h4>";
		currentLocation += "<p>Unit 186<br/>"
		currentLocation += "Bradkirk Place<br/>"
		currentLocation += "Walton Summit Centre<br/>"
		currentLocation += "Bamber Bridge<br/>"
		currentLocation += "Preston PR5 8AJ<br/>"
		currentLocation += "08453 893853<br/>"
		currentLocation += "Main-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=PR5+8AJ' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Rhyl"){
		currentLocation = "<h4>Rhyl</h4>";
		currentLocation += "<p>Unit 3<br/>"
		currentLocation += "Kinmel Park Industrial Estate<br/>"
		currentLocation += "Bodelwyddan<br/>"
		currentLocation += "Denbighshire<br/>"
		currentLocation += "LL18 5TY<br/>"
		currentLocation += "08453 893859<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=LL18+5TY' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Rochester"){
		currentLocation = "<h4>Rochester</h4>";
		currentLocation += "<p>Europa 1 &amp; 2<br/>"
		currentLocation += "Trident Close<br/>"
		currentLocation += "Medway City Estate<br/>"
		currentLocation += "Rochester / KENT<br/>"
		currentLocation += "ME2 4ER<br/>"
		currentLocation += "Tel: 0845 3893 855</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=ME2+4ER' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Salisbury"){
		currentLocation = "<h4>Salisbury</h4>";
		currentLocation += "<p>Dairy Meadow Lane<br/>"
		currentLocation += "Southampton Road Business Park<br/>"
		currentLocation += "Salisbury<br/>"
		currentLocation += "SP1 2TJ<br/>"
		currentLocation += "(01722) 320399<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=SP1+2TJ' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Shrewsbury"){
		currentLocation = "<h4>Shrewsbury</h4>";
		currentLocation += "<p>March Way, Battlefield Enterprise Road<br/>"
		currentLocation += "Harlescott Lane, Shrewsbury<br/>"
		currentLocation += "Shropshire<br/>"
		currentLocation += "SY1 3JE<br/>"
		currentLocation += "Fax: (01743) 464904<br/>"
		currentLocation += "Tel: (01743) 446044<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=SY1+3JE' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Solent SD"){
		currentLocation = "<h4>Solent SD</h4>";
		currentLocation += "<p>Mauretania Road<br/>"
		currentLocation += "Nursling Industrial Estate, Nursling<br/>"
		currentLocation += "Southampton<br/>"
		currentLocation += "SO16 0YS<br/>"
		currentLocation += "(023) 8074 7906<br/>"
		currentLocation += "(023) 8074 7900<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=SO16+0YS' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Swindon"){
		currentLocation = "<h4>Swindon</h4>";
		currentLocation += "<p>James Watt Close<br/>"
		currentLocation += "Hawksworth Trading Estate, Swindon<br/>"
		currentLocation += "Wiltshire<br/>"
		currentLocation += "SN2 1ES<br/>"
		currentLocation += "Fax: (01793) 516384<br/>"
		currentLocation += "Tel: (01793) 516382<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=SN2+1ES' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Taunton"){
		currentLocation = "<h4>Taunton</h4>";
		currentLocation += "<p>Bindon Park Industrial Estate, Livingstone Way<br/>"
		currentLocation += "Bindon Road, Taunton<br/>"
		currentLocation += "Somerset<br/>"
		currentLocation += "TA2 6BD<br/>"
		currentLocation += "(01823) 259151<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=TA2+6BD' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	
	if (location == "Tonbridge"){
		currentLocation = "<h4>Tonbridge</h4>";
		currentLocation += "<p>Unit 7<br/>Deacon Trading Estate<br />203 Vale Road, Tonbridge<br />"
		currentLocation += "Kent TN9 1SU</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=Tonbridge' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	
	
	
	if (location == "Warrington"){
		currentLocation = "<h4>Warrington</h4>";
		currentLocation += "<p>Calver Road<br/>"
		currentLocation += "Winwick Quay<br/>"
		currentLocation += "Warrington<br/>"
		currentLocation += "WA2 8RA<br/>"
		currentLocation += "Fax: (01925) 242001<br/>"
		currentLocation += "Tel: (01925) 242400<br/>"
		currentLocation += "Main Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=WA2+8RA' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	if (location == "Yeovil"){
		currentLocation = "<h4>Yeovil</h4>";
		currentLocation += "<p>Mead Avenue<br/>"
		currentLocation += "Houndstone Business Park, Yeovil<br/>"
		currentLocation += "Somerset<br/>"
		currentLocation += "BA22 8RT<br/>"
		currentLocation += "(01935) 432880<br/>"
		currentLocation += "Sub-Depot</p>"
		currentLocation += "<p><a href='http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=BA22+8RT' target='_blank' class='underline'>View Branch Location</a></p>";
	}
	
	document.getElementById("news_location").innerHTML = currentLocation;
}