var count = 0;
	var spaces_array = new Array(63);

function space() {
        this.number = 0;
        this.price = 0;
        this.parking = 0;
        this.sold = 0;
        this.size = 0;
}	

function newspace(number, building, suite, price, parking, sold, size, plan){
	spaces_array[count] = new space();
	spaces_array[count].number = number;
	spaces_array[count].building = building;
	spaces_array[count].suite = suite;	
	spaces_array[count].price = price;
	spaces_array[count].parking = parking;
	spaces_array[count].sold = sold;
	spaces_array[count].size = size;
	spaces_array[count].plan = plan;
	count++;
}

function getspace(space){
	for (i = 0; i < count;i++){
		if (spaces_array[i].number == space)
			return spaces_array[i];
	}
	return 'error';
}

function reserve(id){
//setTextOfLayer('infolayer','', '?' + getspace(id).number + ',' + getspace(id).size);
var MNE = '/pricing/';
var PGE;
var PLN = getspace(id).plan;
if(PLN == "Plan A"){PGE = 'planI.html'}
if(PLN == "Plan B"){PGE = 'planII.html'}
if(PLN == "Plan C"){PGE = 'planII.html'}
var CTT = getspace(id).building + ',' + getspace(id).suite;
KCP_makeCookie('CLYDEUNIT',CTT,'www.clydebusinesspark.com');
document.location.href = PGE;
}

function over(id){
	//setTextOfLayer('infolayer','', getspace(id).number + " : $" + getspace(id).price + " : " + getspace(id).sold);
	setTextOfLayer('infolayer','', changevalues(id));
//	path = eval('this.document.plan_' + id + '.src');
//	path2 = path.replace("images", "images_up");
// 	eval('this.document.plan_' + id).src = path2;

}


function changevalues(id){

//newtxt = '<table width="100%" height="120" border="1" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF">';
//newtxt = '<tr><td width="100%" align="center">';
newtxt = '<center><br><H1> ';
newtxt += getspace(id).plan;
newtxt += '<br>';
newtxt += getspace(id).building;
newtxt += '<br>';
newtxt += getspace(id).suite;
newtxt += '</H1><H2>';
newtxt += getspace(id).size;
//newtxt +=  '<br>';
//newtxt += '</strong></p><p><strong>';
//if (getspace(id).sold == 'SOLD')
//	newtxt += '&nbsp;&nbsp;&nbsp;&nbsp;- ' + getspace(id).sold + ' -&nbsp;&nbsp;&nbsp;&nbsp;';
//else
//	newtxt += "- " + getspace(id).sold + " -";
newtxt += '<H2>';
newtxt += getspace(id).price;
newtxt += '</H2></center>';
//newtxt += '</td></tr></table></td></tr></table>';

return newtxt;
}

function out(id){
//	path = eval('this.document.plan_' + id + '.src');
//	path2 = path.replace("images_up", "images");
// 	eval('this.document.plan_' + id).src = path2;
}

function init(){
	for (i = 0; i < count; i++) {
		if (spaces_array[i].sold == 'SOLD'){
			id = spaces_array[i].number;
			path = eval('this.document.plan_' + id + '.src');
			path2 = path.replace("images", "marked_images");
 			eval('this.document.plan_' + id).src = path2;
		}
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}

