var boja = new Array();
boja[1]="#ffffbf";
boja[2]="#d9ffd9";
boja[3]="#d9d9ff";
boja[4]="#ffd9d9";

function apartment_on(ap) {
	for( i=1 ; i<=4 ; i++ )
		if (ap == i || ap == 0) { 
			document.getElementById("apartment"+i+"_on").style.backgroundPosition="300px 0"; 
			document.getElementById("ap"+i+"_name").style.color="#093f73";
			if (ap == 0) document.getElementById("ap"+i+"_name").style.textDecoration="none"; 
				else document.getElementById("ap"+i+"_name").style.textDecoration="underline";
			document.getElementById("ap"+i+"_color").style.backgroundColor=boja[i];
			document.getElementById("ap"+i+"_color").style.borderColor="#CFD5DD";

		} else { 
			document.getElementById("apartment"+i+"_on").style.backgroundPosition="0 0"; 
			document.getElementById("ap"+i+"_name").style.color="#ccdef5";
			document.getElementById("ap"+i+"_name").style.textDecoration="none";
			document.getElementById("ap"+i+"_color").style.backgroundColor="#e5ecf5"
			document.getElementById("ap"+i+"_color").style.borderColor="#ccdef5";
		}
}


