function oModel(modelNo,bedrooms,areaPc,areaMc,pdfFile){
	this.modelNo=modelNo;
	this.bedrooms=bedrooms;
	this.areaPc=areaPc;
	this.areaMc=areaMc;
	this.pdf=pdfFile;
}

function oUnit (unitNo,modelNo){
	this.unitNo=unitNo;
	this.model=aModels[modelNo];
}

function showDesc (fpUnit){
	if ((obj=MM_findObj('desc_unit_no'))!=null) with (obj)
    if (document.layers) {document.write(aUnits[fpUnit].unitNo); document.close();}
    else innerHTML = aUnits[fpUnit].unitNo;

	if ((obj=MM_findObj('desc_model_no'))!=null) with (obj)
    if (document.layers) {document.write(aUnits[fpUnit].model.modelNo); document.close();}
    else innerHTML = aUnits[fpUnit].model.modelNo;

	if ((obj=MM_findObj('desc_bedrooms'))!=null) with (obj)
    if (document.layers) {document.write(aUnits[fpUnit].model.bedrooms); document.close();}
    else innerHTML = aUnits[fpUnit].model.bedrooms;

	if ((obj=MM_findObj('desc_area'))!=null) with (obj)
    if (document.layers) {document.write(aUnits[fpUnit].model.areaPc+' sq. ft. ('+aUnits[fpUnit].model.areaMc+' sq. m)'); document.close();}
    else innerHTML = aUnits[fpUnit].model.areaPc+' p.c. ('+aUnits[fpUnit].model.areaMc+' m.c.)';
	MM_showHideLayers('description','','show') ;

}
function hideDesc (){
	MM_showHideLayers('description','','hide') ;
}

function getFPPdf(fpUnit){
	  w=window.open('pdf/'+aUnits[fpUnit].model.pdf,'FpPdf',"scrollbars=yes,toolbar=no,menubar=no,width=600,width=600,height=500");
	  w.focus();
}


aModels=new Array();
aModels["1-01"]= new oModel("1-01",1,695,64.6,"fp1-01.pdf");
aModels["1-02"]= new oModel("1-02",1,592,55.0,"fp1-02.pdf");
aModels["1-03"]= new oModel("1-03",1,546,50.7,"fp1-03.pdf");
aModels["2-01"]= new oModel("2-01",2,1188,110.4,"fp2-01.pdf");
aModels["2-02"]= new oModel("2-02",2,1058,98.3,"fp2-02.pdf");
aModels["2-02A"]= new oModel("2-02A",2,1080,100.3,"fp2-02A.pdf");
aModels["2-03"]= new oModel("2-03",2,1173,109.0,"fp2-03.pdf");
aModels["2-04"]= new oModel("2-04",2,946,87.9,"fp2-04.pdf");
aModels["3-01"]= new oModel("3-01",3,1502,139.5,"fp3-01.pdf");
aModels["3-02"]= new oModel("3-02",3,1223,113.6,"fp3-02.pdf");
aModels["3-03"]= new oModel("3-03",3,1304,121.1,"fp3-03.pdf");

aUnits= new Array ();
//1-01 units
aUnits["A-1"] = new oUnit('A-1','1-01');
aUnits["B-1"] = new oUnit('B-1','1-01');
aUnits["B-22"] = new oUnit('B-22','1-01');
aUnits["C-1"] = new oUnit('C-1','1-01');
aUnits["C-9"] = new oUnit('C-9','1-01');
//1-02 units
aUnits["A-2"] = new oUnit('A-2','1-02');
aUnits["A-8"] = new oUnit('A-8','1-02');
aUnits["B-2"] = new oUnit('B-2','1-02');
aUnits["B-8"] = new oUnit('B-8','1-02');
aUnits["B-15"] = new oUnit('B-15','1-02');
aUnits["B-21"] = new oUnit('B-21','1-02');
aUnits["C-2"] = new oUnit('C-2','1-02');
aUnits["C-8"] = new oUnit('C-8','1-02');
//1-03 units
aUnits["B-9"] = new oUnit('B-9','1-03');
//2-01 units
aUnits["A-4"] = new oUnit('A-4','2-01');
aUnits["A-9"] = new oUnit('A-9','2-01');
aUnits["B-4"] = new oUnit('B-4','2-01');
aUnits["B-23"] = new oUnit('B-23','2-01');
aUnits["C-4"] = new oUnit('C-4','2-01');
aUnits["C-10"] = new oUnit('C-10','2-01');
//2-02 units
aUnits["A-3"] = new oUnit('A-3','2-02');
aUnits["A-10"] = new oUnit('A-10','2-02');
aUnits["B-3"] = new oUnit('B-3','2-02');
aUnits["B-11"] = new oUnit('B-11','2-02');
aUnits["B-16"] = new oUnit('B-16','2-02');
aUnits["B-24"] = new oUnit('B-24','2-02');
aUnits["C-3"] = new oUnit('C-3','2-02');
aUnits["C-11"] = new oUnit('C-11','2-02');
//2-02A units
aUnits["B-10"] = new oUnit('B-10','2-02A');
aUnits["B-17"] = new oUnit('B-17','2-02A');
//2-03 units
aUnits["A-6"] = new oUnit('A-6','2-03');
aUnits["A-12"] = new oUnit('A-12','2-03');
aUnits["B-6"] = new oUnit('B-6','2-03');
aUnits["B-26"] = new oUnit('B-26','2-03');
aUnits["C-6"] = new oUnit('C-6','2-03');
aUnits["C-13"] = new oUnit('C-13','2-03');
//2-04 units
aUnits["B-12"] = new oUnit('B-12','2-04');
aUnits["B-20"] = new oUnit('B-20','2-04');
//3-01 units
aUnits["A-5"] = new oUnit('A-5','3-01');
aUnits["A-13"] = new oUnit('A-13','3-01');
aUnits["B-5"] = new oUnit('B-5','3-01');
aUnits["B-14"] = new oUnit('B-14','3-01');
aUnits["B-18"] = new oUnit('B-18','3-01');
aUnits["B-27"] = new oUnit('B-27','3-01');
aUnits["C-5"] = new oUnit('C-5','3-01');
aUnits["C-14"] = new oUnit('C-14','3-01');
//3-02 units
aUnits["B-13"] = new oUnit('B-13','3-02');
aUnits["B-19"] = new oUnit('B-19','3-02');
//3-03 units
aUnits["A-7"] = new oUnit('A-7','3-03');
aUnits["A-11"] = new oUnit('A-11','3-03');
aUnits["B-7"] = new oUnit('B-7','3-03');
aUnits["B-25"] = new oUnit('B-25','3-03');
aUnits["C-7"] = new oUnit('C-7','3-03');
aUnits["C-12"] = new oUnit('C-12','3-03');
