var lstManufacturer = new Array();
var lstData = new Array();


// add new manufacturer info
function Newmanufacturer(nam_e, imageName, link1, other, link2)
{
	this.nam_e = nam_e;
	this.imageName = imageName;
	this.link1 = link1;
	this.link2 = link2;
	this.other = other;
	this.lstType = new Array();
	return (this);
}

// add new manufacturer info
function Addmanufacturer(nam_e, imageName, link1, other, link2)
{
	var l=0;
	l = lstManufacturer.length;	
	lstManufacturer[l] = new Newmanufacturer(nam_e, imageName, link1, other, link2); 
}

//add new autotype info
function Newtype(nam_e,head1, head2, fog_front, blinker, side_repeater, park, blinker_index, stop_l, rear, fog_rear, r_everse, license_plate, other)
{
	this.nam_e = nam_e;
	this.head1 = head1;
	this.head2 = head2;
	this.fog_front = fog_front;
	this.blinker = blinker;
	this.side_repeater = side_repeater;
	this.park = park;
	this.blinker_index = blinker_index;
	this.stop_l = stop_l;
	this.rear = rear;
	this.fog_rear = fog_rear;
	this.r_everse = r_everse;
	this.license_plate = license_plate;
	this.other = other;
	return(this);
}

// add new type info
function AddType(nam_e, head1, head2, fog_front, blinker, side_repeater, park, blinker_index, stop_l, rear, fog_rear, r_everse, license_plate, other)
	{
	var l=0, k=0;
	l = lstManufacturer.length - 1;	
	k = lstManufacturer[l].lstType.length;
	lstManufacturer[l].lstType[k] = new Newtype(nam_e, head1, head2, fog_front, blinker, side_repeater, park, blinker_index, stop_l, rear, fog_rear, r_everse, license_plate, other);
}

function newData(attrib, label, other)
{
	this.attrib = attrib;
	this.label = label;
	this.other = other;
	return(this);
}

function AddData(attrib, label, other)
{
	var j=0;
	j=lstData.length;
	lstData[j]= new newData(attrib, label, other);
}