function showGreyScreen(e){$("#greyScreen").css({display:"block",opacity:.6,width:$(document).width()+20,height:$(document).height(),"z-index":99998}).show(),$("#"+e).fadeIn().css({display:"block","z-index":99999}),$("body").css({overflow:"hidden"})}function hideGreyScreen(){$("#greyScreen").css("display","none"),$(".greyScreenBox").css("display","none"),$("body").css({overflow:"scroll"})}function showTooltip(e,n,o){$("#"+e).css({display:"inline",position:"absolute","margin-top":"-35px","min-width":"153px","background-color":"#EFEFEF",border:"solid 1px #898989",padding:"7px"}).html("<strong>"+n+":</strong> "+o+"</div>")}function hideTooltip(e){$("#"+e).css("display","none")}$(window).resize(function(){"block"==$("#greyScreen").css("display")&&showGreyScreen()}),$(".previewClose").live("click",function(){hideGreyScreen()}),$(document).ready(function(){hideGreyScreen()});