function handleSceneEvents(type, trackingInformation)
{
if(type && type == arel.Events.Scene.ONTRACKING && trackingInformation[0].getType() == arel.Tracking.LLA_MARKER)
{
//override the GPS of the device with the location encoded in the marker
var lla = trackingInformation[0].getContent();
arel.Scene.setLocation(lla);
//remove the scan information
$('.llaInfo').hide();
$('.filteroptions').show();
if (selected == "Lab"){
//set the POIs visible
arel.Scene.getObject("LeftArrow").setVisibility(true, true, true);
arel.Scene.getObject("T12A203/C").setVisibility(true, true, true);
}
else
if (selected == "Lecture")
{
arel.Scene.getObject("frontArrow").setVisibility(true, true, true);
arel.Scene.getObject("T12A203").setVisibility(true, true, true);
}
else
if(selected == "Tutorial"){
arel.Scene.getObject("T12A202").setVisibility(true, true, true);
arel.Scene.getObject("T12A201").setVisibility(true, true, true);
}
else
if(selected == "Toilet"){
arel.Scene.getObject("T12Toilet").setVisibility(true, true, true);
}
else
{
arel.Scene.getObject("LeftArrow").setVisibility(true, true, true);
arel.Scene.getObject("T12A203/C").setVisibility(true, true, true);
arel.Scene.getObject("frontArrow").setVisibility(true, true, true);
arel.Scene.getObject("T12A203").setVisibility(true, true, true);
arel.Scene.getObject("T12A202").setVisibility(true, true, true);
arel.Scene.getObject("T12A201").setVisibility(true, true, true);
arel.Scene.getObject("T12Toilet").setVisibility(true, true, true);
}
}
}
function activateChange(){
var f = document.getElementById("filter");
selected = f.options[f.selectedIndex].value;
alert(selected);
handleSceneEvents();
}