function changeSouth()
{
	carimg().innerHTML = "Classroom Specification - South";
	document.getElementById("info").innerHTML = "Smoke Alarm";
	document.getElementById("info").style.top="380px";
	document.getElementById("gleft").style.top="411px";
	document.getElementById("gleft").style.height="40px";
	document.getElementById("gleft").innerHTML = "All units are fitted with mains smoke alarms c/w battery back-up."
	rhd().innerHTML = "Floor"
	
	document.getElementById("generaldetailsinside").innerHTML = "Constructed of l8mm OSB3 on 225mm x 44mm softwood headers and joists at"
	+" 600mm centres and bridging every 1,220mm. Insulated with 100mm fibreglass. All timber is machine pressure impregnated with preservative. uvalue"
	+" - G.37 (wm~K). Floorcovering is heavy duty vinyl sheet."
	comments();
	hideTable();
	alterFrame();
	showTable();
	
	
}

function changeEast()
{
	carimg().innerHTML = "Classroom Specification - East";
	
	document.getElementById("generaldetailsinside").innerHTML = "Sheeted internally with painted 12.5mm plasterboard"
	+" on roofjoists at 400mm centres which has a half hour fire rating, to comply with British Standards 476/6/7. "
	+" Sheeted externally with one piece Marleydek sheeting (fire rating designation AA) on 9mm WBP exterior"
	+" grade plywood. Insulated with 150mm fibreglass. UValue 0.25 (wm2K)."
	rhd().innerHTML="Roof"
	document.getElementById("info").style.top="389px";
	document.getElementById("gleft").style.height="33px";
	document.getElementById("gleft").style.top="418px";
	document.getElementById("info").innerHTML = "Smoke Alarm";
	document.getElementById("gleft").innerHTML = "All units are fitted with mains smoke alarms c/w battery back-up."
	comments();
	hideTable();
	alterFrame();
	showTable();
}
function changeWest()
{
	carimg().innerHTML = "Classroom Specification - West";
	document.getElementById("info").style.top="355px";
	document.getElementById("info").innerHTML = "Windows";
	document.getElementById("gleft").style.top="385px";
	document.getElementById("gleft").style.height="60px";
	document.getElementById("gleft").innerHTML = "All windows are uPVC top opening vent, double"
	+" glazed c/w fixed ventilation."
	rhd().innerHTML = "Partitions"
	document.getElementById("generaldetailsinside").innerHTML = "All internal partitions are constructed with 50mm"
	+" x 36mm softwood at 400mm centres and	finished with painted 12.5mm plasterboard on both sides with matching"
	+" trims and skirting. Fire rating - half hour which complies with British Standards 476/6/7."
	comments();
	hideTable();
	alterFrame();
	showTable();
}

function changeNorth()
{
	carimg().innerHTML = "Classroom Specification - North";
	doors();
	comments();
	hideTable();
	alterFrame();
	showTable();
	
	
}
function changeGfloor()
{
	changeWest();
	carimg().innerHTML = "Classroom Specification - Ground Floor";
	document.getElementById("thepic").style.height="241px";
	com().style.top="490px";
	
	
	
}
function changeSection1()
{
	changeEast();
	carimg().innerHTML = "Classroom Specification - Section 1";
	comments();
}
function changeFrontView()
{
	carimg().innerHTML = "Classroom Specification - Front View";
	
	doors();
	hideTable();
	alterFrame();
	showTable();
}

function comments()
{
	document.getElementById("thepic").style.height="200px";
	com().style.top="453px";
}

function orangeFrame(id,id1)
{
	document.getElementById("thepic").style.border= "1px solid #f77539";
	document.getElementById("bar").style.borderTop= "1px solid #f77539";
	document.getElementById(id).style.visibility= "visible";
	document.getElementById(id1).style.visibility= "visible";
}
function blackFrame(id,id1)
{
	document.getElementById("thepic").style.border= "1px solid black";
	document.getElementById("bar").style.borderTop= "1px solid black";
	document.getElementById(id).style.visibility= "hidden";
	document.getElementById(id1).style.visibility= "hidden";

}

function change3dimage()
{
	
	carimg().innerHTML = "Classroom Specification - 3D Image 1";
	effect();
	document.getElementById("highlight").style.left= "230px";
}

function change3dimage2()
{
	carimg().innerHTML = "Classroom Specification - 3D Image 2";
	effect();
	document.getElementById("highlight").style.left= "282px";

}

function change3dimage3()
{
	
	carimg().innerHTML = "Classroom Specification - 3D Image 3";
	effect();
	document.getElementById("highlight").style.left= "334px";
}


function effect()
{
	document.getElementById("thepic").style.width= "518px";
	carimg().style.width= "506px";
	com().style.visibility= "hidden";
	document.getElementById("gleft").style.visibility= "hidden";
	document.getElementById("efftable").style.visibility= "visible"; 
	document.getElementById("topbordbot").style.visibility= "visible"; 
	document.getElementById("thepic").style.height="200px";
	document.getElementById("highlight").style.visibility= "visible";
	
}

function doors()
{
	document.getElementById("info").innerHTML = "Doors";
	document.getElementById("info").style.top="335px";
	document.getElementById("gleft").style.height="84px";
	document.getElementById("gleft").style.top="365px"
	document.getElementById("gleft").innerHTML = "External doors have anodised aluminium frames"
	+" and 1981 x 864 x 44mm door leaf with plastisol steel on both sides. All internal doors are half"
	+" hour prefinished sapelle (FD3OS). All doors have thumb turn locks."
	rhd().innerHTML = "Electrical"
	document.getElementById("generaldetailsinside").innerHTML = "Standard electrical installation in PVC Conduit"
	+" having surface fitted switches and socket outlets all wired back to a main board. Emergency exit light"
	+" and bulkhead over emergency exit door."
	comments();
}

function alterFrame()
{
	document.getElementById("thepic").style.width="300px";
}

function hideTable()
{
	document.getElementById("efftable").style.visibility= "hidden";
	document.getElementById("topbordbot").style.visibility= "hidden";
	document.getElementById("highlight").style.visibility= "hidden";
}

function showTable()
{
	com().style.visibility= "visible";
	carimg().style.width= "288px";
	document.getElementById("gleft").style.visibility= "visible";
}

function com()
{
	var ment =document.getElementById("comments");
	return ment;

}

function carimg()
{
	var car =document.getElementById("carimagehead");
	return car;

}

function rhd()
{
	var room =document.getElementById("roomheaddetails");
	return room;
}



