$(function(){sessionStorage.removeItem("select_building_id_m");$("#side-panel").panel({beforeopen:function(event,ui){window_scroll_top=$(window).scrollTop();$("#campus-info").css({position:"fixed",top:-$(window).scrollTop()+$("#top").height()});$("#content").css({position:"fixed",top:-$(window).scrollTop()+$("#top").height()+$("#campus-info").height()})},open:function(event,ui){var body_height=$("body").height();var panel_height=$("#side-panel").height();var main_height=$("#main-content").height();var max_height=Math.max.apply(null,[body_height,panel_height,main_height]);$("#side-panel").height(max_height);$("#main-content").height(max_height);$("body").height(max_height);window.onorientationchange=function(){$("#side-panel").panel("close")}},beforeclose:function(event,ui){$("#campus-info").css({position:"",top:""});$("#content").css({position:"",top:""});$(window).scrollTop(window_scroll_top)},close:function(event,ui){$("#side-panel").removeAttr("style");$("#main-content").removeAttr("style");$("body").removeAttr("style")}})});