d=document;
if (document.all){
	text='<A href="javascript:window.external.AddFavorite(location.href,document.title);">';
}
else if (window.sidebar){
	text='<A href="javascript:window.sidebar.addPanel(document.title, location.href, \'\');">';
}
text+='<img src="http://www.parkandsave.co.uk/airportparking/car-parks.gif" width="10" height="9" alt="*">';
text+='Add to Favourites</A>&nbsp;&nbsp;';
function setFooter() {
//if(top.location!=location){top.location.href=document.location.href;}
if (d.getElementById) {

	q=d.getElementById('fav');
	q.innerHTML=text;
}
}
function getElementsByClassName(className) {
	if(document.getElementById('fre'))
	{
		document.getElementById('fre').setAttribute("href","http://www.parkandsave.co.uk/airport-parking/gatwick-airport-parking.html");
	}
  var a = [];
  var els = document.getElementsByTagName("*");
  for ( var i = 0, j = els.length ; i < j ; i++ ) {
    if (els.item(i).className.indexOf(className) != -1)
      a.push(els.item(i));
  }
  return a;
}

function checkForClassNewWindow(){
	var getEls = getElementsByClassName("newWindow");
	for(var i=0; i<getEls.length; i++){
		getEls[i].setAttribute("target","_blank",0);
	}
}

window.onload =checkForClassNewWindow;