function removeLinkTitles() {
	if (!document.getElementById || !document.getElementsByTagName) return;
	// detect IE - leave out if using conditional comments
	var isIE = navigator.userAgent.indexOf("MSIE");
	if (isIE < 1) return;
	var links = document.getElementsByTagName('a');
	for (i=0;i<links.length;i++){
		links[i].setAttribute('title','');
	}
	
}
function replacePageTitle() {
	if (!document.getElementById || !document.getElementsByTagName) return;
	// detect IE - leave out if using conditional comments
	/*var isIE = navigator.userAgent.indexOf("MSIE");
	if (isIE < 1) return;*/
	var strURL = window.location.href;
	re = /^https?:\/\/(www\.)?([^/]+)?/i;
	strURL.match( re );
	//var strURL = "http://wcm.dev.anz/la/Personal/Everyday-banking/ANZV-Access-accounts/lower-level/";
	var a = strURL.indexOf('/la/');
	strURL = strURL.substring(a+4,strURL.length);
	strURL = strURL.replace(/-/g," ");
	myArray = strURL.split('/');
	var pageTitle = 'ANZ Laos - ';
	if (myArray.length==2){
		pageTitle += myArray[0] + ' - Online Banking';
	}
	if (myArray.length==3){
		pageTitle += myArray[1] + ' - ' + myArray[0];
	}
	if (myArray.length>=4){
		pageTitle += myArray[myArray.length-2] + ' - ' + myArray[1];
	}
	document.title=pageTitle;
}
$(document).ready(
 function()
 {
  //Function to remove link titles (this is for languages (eg Lao) incompatible with link titles)
  removeLinkTitles();
  //Function to replace page title with English values from URL (this is for languages (eg Lao) incompatible with page titles)
  replacePageTitle();
 } 
);
