function world(){
	this.continent = new Array(arguments.length);
	for(i=0;i<arguments.length;i++){     
		this.continent[i] = arguments[i];
	}
}
function continent(id, sTitle){
	this.id = id; 
	this.title = sTitle; 
		this.country = new Array();
	for(var i=0;i < arguments.length - 2;i++){     
		this.country[i] = arguments[i+2];
	}
}
function country(id, sTitle){
	this.id = id; 
	this.title = sTitle; 
	this.city = new Array();
	for(i=0;i<arguments.length - 2;i++){     
		this.city[i] = arguments[i+2];
	}
}
function city(id, sTitle, x, y){
	this.id = id; 
	this.title = sTitle; 
	this.x = x +'px';
	this.y = y +'px';	
	this.office = new Array();
	for( i = 0; i < arguments.length - 4 ; i++){     
		this.office[i] = arguments[i+4];
	}
}
function office(type, sTitle, sAddress1, sAddress2, sAddress3, sContact, sPhone, sFax, sEmail, sWww, sDescription, id){
	this.type = type; 
	this.title = sTitle; 
	this.address1 = sAddress1; 
	this.address2 = sAddress2; 
	this.address3 = sAddress3; 
	this.contactperson = sContact
	this.phone = sPhone;
	this.fax = sFax;			
	this.email = sEmail;			
	this.www = sWww;			
	this.description = sDescription
	this.id = id
}

function headOfficeGroup(){
	this.office = new Array();
	for( i = 0; i < arguments.length; i++){     
		this.office[i] = arguments[i];
	}
}

function agentGroup(){
	this.agent = new Array();
	for( i = 0; i < arguments.length; i++){     
		this.agent[i] = arguments[i];
	}
}
function agent(id, sTitle){
	this.id = id; 
	this.title = sTitle; 
}
