/* this is just a list of domestic airports and their destinations */

var routes={
	GLA:['ALC','DLM','FAO','LPA','HRG','ACE','AGP','SFB','PMI','PFO','TFS','SSH'],
	EDI:['ALC','BCN','DLM','FAO','GVA','LPA','ACE','FNC','AGP','NCE','SFB','PMI','PFO','SSH','TFS'],	
	CWL:['SFB'],
	ABZ:['ALC','DLM','DBV','FAO','AGP','PMI','PFO','TFS'],
	BFS:['SFB']
	//MAN:['YYC','YVR'],
	//LGW:['YYC','YVR','YHM'],
	//DUB:['YVR','YHM','YYC']
	};
	
var routesToVB=function(){
	var omit=Array.prototype.slice.call(arguments);	// create an array of outdepair codes to omit
	var all=[];
	outer:
	for (var x in routes){
		for (var i=0;i<omit.length;i++){
			if (omit[i]==x) continue outer;
			}
		all.push(x+'|'+routes[x].join("|"));
		}
	return all.join('\b');
	};