var undoC, neoCMSGlobalPath, neoCMSPath, neoCMSFiles, neoCMSHTMLEdit, neoCMSFilePath, neoCMSImagePath, fileTarget, origImg, bm; $(function () { $(window).bind('load', neocmsStart); neocmsGlobals(); $('#neoCMSPageSrc').height($(window).height() - 60) }); neocmsStart = function () { ifrDoc = getIfrDoc(); $(window).unbind('load'); $('#neoCMSTopBanner').css('background', 'url(images/loading.gif) repeat-x bottom'); undoC = 0; neoCMSGlobalPath = null; neoCMSPath = null; neoCMSFiles = null; neoCMSHTMLEdit = null; neoCMSFilePath = null; neoCMSImagePath = null; $('#neoCMSDashboard a').bind('click', function () { if ($('#neoCMSPageEdits .edit', ifrDoc).length) { navAwayPrompt('settings/', 'loc') } else window.location = 'settings/' }); $('#neoCMSLogout a').bind('click', logoutPrompt); neocmsSetup() }; neocmsSetup = function () { if (neoCMSGlobalPath == null || neoCMSHTMLEdit == null) { var prefsIframe; try { prefsIframe = document.createElement('