/* British Land Common JavaScript */

var newWin = null; 
function popUp(strURL, strType, strWidth, strHeight) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="elasticmenu") 
   strOptions="scrollbars,"+ 
     "resizable,width="+ 
     strWidth+",height="+strHeight; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}

function WindowPrint(){
	window.print();
}



function ArrayFindIndex(needle, haystack) {
	for(i=0;i<haystack.length;i++){
		if(haystack[i] == needle){
			return i;
		} 
	}
	return -1;
}

function EmailLink(){
var sPath = window.location.pathname;
var sPage = sPath.substr(sPath.lastIndexOf('/') + 1);
window.location = "mailto:"+"?subject=British Land PLC Annual Report and Accounts 2008" + "&body=" + "This link might interest you: http://www.britishlandreports.com/FinancialReports/2008AnnualReport/"+sPage;
}


