function addEvent(o,t,fn){
	if( o.attachEvent ){
       		o['e'+t+fn] = fn;
	        o[t+fn] = function(){o['e'+t+fn](window.event);};
	        o.attachEvent('on'+t, o[t+fn]);
	}else{
       		o.addEventListener(t,fn,false);
	}
}

var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixedscroll") 
   strOptions="status,scrollbars,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}

function EmailLink()
{
	var sPath = window.location.pathname;
	var sPage = sPath.substr(sPath.lastIndexOf('/') + 1);
	window.location = "mailto:"+"?subject=Go-Ahead Group plc" + "&body=" + "I thought this link might interest you: http://www.go-ahead.com"+sPath;
}


function toggle_director(id)
{
	//var ele = document.getElementById(id);
	var ele_a = document.getElementById("a_"+id);
	var ele_details = document.getElementById("details_"+id);
	//alert(ele_details.className);
	if(ele_details)
	{
		
		if(ele_details.className=="director_detail")
		{
			ele_details.className = "director_detail_show";
			ele_a.innerHTML = '<span class="close">Close</span>';
			//ele_div.style.backgroundColor = "#F8FAE5";

		}
		else
		{
			ele_details.className = "director_detail";
			ele_a.innerHTML = '<img src="/goahead/images/layout/open.gif" alt="" />';
			//ele_div.className = "white";
			//ele_div.style.backgroundColor = "#FFFFFF";
		}
	
	}
	
}

function toggle_div(_id){
	if(document.getElementById(_id)){
		_oDivStyle=document.getElementById(_id).style;
		(_oDivStyle.display=='block')?_oDivStyle.display='none':_oDivStyle.display='block';
	}
} 
