var string='<div id="large" style="position: fixed; top: 10px; right: 10px; width: 34px; height: 34px; background:url(images/enlarge.png) no-repeat; cursor: pointer; z-index: 1000;"></div>';$("body").append(string);$("#large").toggle(function(){window.location.href="app_pageurl:fullscreen";$(this).css("background","url(images/narrow.png) no-repeat")},function(){window.location.href="app_pageurl:outtree";$(this).css("background","url(images/enlarge.png) no-repeat")});