// JavaScript Document



<!--


function MP_Swap_Building(Floor, ImgBase, Folder, Div_Name, ImgId){

	var ImgPath = "images/properties/"+Folder+"/"+ImgBase+"_"+Floor+".jpg";	
	var FloorDiv_=Div_Name+Floor;
	var thumb_ID = Folder+"-"+Floor;


	document.getElementById(ImgId).src=ImgPath;
	if (Div_Name != "FL") {
	document.getElementById(FloorDiv_).style.color = "#ffffff";
	if (Div_Name=="FL"){
		document.getElementById(thumb_ID).width = "100";
		document.getElementById(thumb_ID).height = "100";
		
	}
	}
}



function MP_Restore_Building(Floor, ImgBase, Folder, Div_Name, ImgId){

	var ImgPath = "images/properties/"+Folder+"/"+ImgBase+".jpg";
	var FloorDiv_=Div_Name+Floor;

	document.getElementById(ImgId).src=ImgPath;
	if (Div_Name != "FL") {
	document.getElementById(FloorDiv_).style.color = "#707173";
	}
	
	if (Div_Name != "S") {
	document.getElementById(ImgId).src=ImgPath;
	}

}





function MP_Keep_Building(Floor, ImgBase, Folder,FloorCount, Div_Name, ImgId) {
	
	
	for (i=1;i<=FloorCount;i++)	{

		var FloorDiv_C=Div_Name+i;


		document.getElementById(FloorDiv_C).style.color = "#707173";

	}
	

	var ImgPath = "images/properties/"+Folder+"/"+ImgBase+"_"+Floor+".jpg";	

	document.getElementById(ImgId).src=ImgPath;

	var ImgPath_Floor = "images/properties/"+Folder+"/"+ImgBase+"_Floor_"+Floor+".jpg";

	document.getElementById('floor_plan_image').src=ImgPath_Floor;
	
	var FloorDiv_=Div_Name+Floor;
	
	document.getElementById(FloorDiv_).style.color = "#ffffff";
	document.getElementById('clear_floors').style.display = "block";

	

	var i=1;

	for (i=1;i<=FloorCount;i++)	{

		var FloorMap="FL"+i;

		var FloorDiv=Div_Name+i;


		document.getElementById(FloorMap).onmouseover=function(){};

		document.getElementById(FloorMap).onmouseout=function(){};

		document.getElementById(FloorDiv).onmouseover=function(){};

		document.getElementById(FloorDiv).onmouseout=function(){};

	}

}



function MP_Clear_Floor(){

	location.reload(true);

}







function Loop() {

	var i=0;

	for (i=0;i<=5;i++)

	{

	document.write("The number is " + i);

	document.write("<br />");

	}

}







function OpacityChange(){

	//var opacityTween = new OpacityTween(Object,easing,startOpacity,endOpacity,duration);

	opacityTween = new OpacityTween(document.getElementById('floor_plan'),Tween.regularEaseIn, 100, 0, 3);

	opacityTween.start();

}













//-->
