You are on page 1of 7

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.

dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="shortcut icon" href="http://o.aolcdn.com/cdn.webmail.aol.com/37434/aim/en-gb/images/favicon.ico"> <title> AOL Read </title> <script type="text/javascript"> var VERSION="37434:webmail.aol.com"; var AV_PAGE="http://webmail.aol.com/37434/aim/engb/Default.aspx?rp=mail%2fdisplaymessage.aspx&wt=Standard"; var RELOADING=false; </script> <script type="text/javascript"> if ((document.cookie.indexOf("Version=37434:webmail.aol.com") < 0) && (document.cookie.indexOf("RELOAD=true") < 0)) { document.cookie = "RELOAD=true; path=/"; RELOADING = true; top.document.location = AV_PAGE; } if (!RELOADING) document.cookie = "RELOAD=false; path=/"; </script> <script type="text/javascript">if (document.cookie.indexOf("Auth=") < 0) { RELOADING=true; top.document.location=AV_PAGE; }</script> <script type="text/javascript"> try { document.execCommand("BackgroundImageCache", false, true); } catch (e) {} // PERF: IE6 - minimize multiple loads of same image </script> <link href="http://o.aolcdn.com/cdn.webmail.aol.com/37434/aim/en-gb/stylesall.css" type="text/css" rel="stylesheet">

<style type="text/css"> .adFrameDiv { padding: 3px; } .adFrameDivright { border-left: 1px solid #D8D6D3; } .adFrameDivbottom { border-top: 1px solid #D8D6D3; } </style> <script type="text/javascript">

var djConfig = {parseOnLoad: true}; </script>

<style type="text/css" id="themeCommon"></style> </head> <body style="height: 100%; width: 100%; margin: 0; padding: 0;"> <div id="loadingCurtain" style="font: normal 14px Arial;"> <table style="height: 100%; width: 100%; position: absolute; background-color: #fff; z-index: 2000;"> <tr> <td style="text-align: center;" valign="center"> <img src="http://o.aolcdn.com/cdn.webmail.aol.com/37434/aim/engb/images/progressAnimation.gif" style="margin: -3px 4px;" height="16" width="16" align="bottom">&nbsp;Loading... </td> </tr> </table> </div>

<script type="text/javascript"> var isWindowStandAlone = false; try { window.Settings = opener.Settings; // Use Settings from main win to prevent server hit Settings.x; // Make sure Settings isn't null (it will be if we're opened from MsgPanel.aspx, for instance) } catch(e) { isWindowStandAlone = true; document.write("<scr" + "ipt src=\"http://webmail.aol.com/37434/aim/en-gb/common/settings.js.aspx\" type=\"text/javascript\"></scr" + "ipt>"); }; </script> <script type="text/javascript"> if( window.Settings == undefined || window.Settings == null ){ window.document.location = 'http://webmail.aol.com/37434/aim/engb/common/error.aspx?code=C0FE180D&ssm=true&chm=true&ph=webmail.aol.com&reportid=1 0007-webmail-20080620-122220&rt=STANDARD'; } try { String(window.setTimeout) } catch (e) { window._setTimeout = setTimeout; window.setTimeout = function(f, t) { _setTimeout(f, t); }; } </script> <script src="http://webmail.aol.com/37434/aim/en-gb/common/bundle.js.aspx" type="text/javascript"></script> <script type="text/javascript">if (!(window.Config && Config.BundleComplete)) top.document.location = 'http://webmail.aol.com/37434/aim/en-

gb/common/error.aspx?code=C0FE180D&ssm=false&chm=true&ph=webmail.aol.com&reportid= 10007-webmail-20080620-122220&rt=STANDARD';</script> <script type="text/javascript"> if (!window.djConfig) var djConfig = {}; djConfig.debugAtAllCosts = false; djConfig.useXDomain = true; djConfig.xdWaitSeconds = 60; djConfig.usePlainJson = true; djConfig.preventBackButtonFix = true; djConfig.dojoIframeHistoryUrl = "http://webmail.aol.com/37434/aim/en-gb/iframe_history.html"; djConfig.dojoBlankHtmlUrl = "http://webmail.aol.com/common/empty.htm";</script> <script src="http://o.aolcdn.com/cdn.webmail.aol.com/37434/js/dojocustom/dojo/dojo.xd.js" type="text/javascript"></script> <script type="text/javascript"> dojo.registerModulePath('ws', 'http://o.aolcdn.com/cdn.webmail.aol.com/37434/js/dojo-custom/ws'); dojo.registerModulePath('ws.layers', 'http://o.aolcdn.com/cdn.webmail.aol.com/37434/js/dojo-custom/dojo');</script>

<script type="text/javascript"> dojo.require("ws.layers.dojo2"); dojo.addOnLoad(function() { dojo.require("ws.layers.MessageList"); dojo.addOnLoad(function() { dojo.require("ws.layers.DisplayMessage"); dojo.addOnLoad(DM, "init"); }); }); window.layersToLoad = ["ComposeMessage"]; var DM = { isWindowClosing: false, init: function() { var ctx = {}; try { if (!isWindowStandAlone) ctx = opener.openerContext || {}; } catch (e) {} if (!ctx.model) this.myMailModel = new ws.mail.MailModel(); // BLT 307199: Using the pictures model from the main window causes errors in IE6/7, so for now we'll // just make a new model for the pop-up window. This is suboptimal because we can't cache the album // list across different windows. this.myPicturesModel = new ws.pictures.model(); this.notebook = dijit.byId("notebook"); this.openerMailModel = ctx.model; //this.openerPicturesModel = ctx.picturesModel; var config = { model: this.openerMailModel || this.myMailModel, picturesModel: this.openerPicturesModel ||

this.myPicturesModel, undoFeedbackCB: ctx.undoFeedbackPopup || null, backToListCB: dojo.hitch(this, "closeThisWindow"), getAddEditWidgetCB: dojo.hitch(this, getComposeCB: dojo.hitch(this, "showCompose"), calendarDataUpdatedCB: ctx.calendarDataUpdated || null, showNewWindowLink: false, showSearchItems: false, beaconSuffix: "Popup", enableNextPrev: !isWindowStandAlone, enableFilters: !isWindowStandAlone, enablePresenceHoverCard: !isWindowStandAlone, enableBackToMail: isWindowStandAlone, isStandAlone: isWindowStandAlone, isPopup: true

"getAddEditWidget"),

} this.displayWidget = new ws.mail.DisplayMessageWidget(config); this.notebook.addChild(this.displayWidget); var spashScreen = dojo.byId("loadingCurtain"); spashScreen.style.display = "none"; spashScreen.innerHTML = ""; // purge from memory var folder = ctx.folder || ws.io.getQueryParameter("folder"); var uid = ctx.uid || ws.io.getQueryParameter("uid"); var uidvalidity = ws.io.getQueryParameter("uidvalidity"); // Construct uid by taking uidvalidity into account - if passed as a separate parameter. uid = this.displayWidget.constructUID(uidvalidity, uid); if (folder && uid) { var func = isWindowStandAlone ? "scheduleDisplayMessage" : "displayMessage"; this.displayWidget[func](folder, uid); } this.adWidget = new ws.widget.Advertisement({adtype: "displaymessage"}); // "right" or "bottom" this.adWidget.startup(); this.adWidget.layoutAlign = this.adWidget.adConfig.location dijit.byId("displayLayout").addChild(this.adWidget); if (ctx.callback) ctx.callback(); dojo.connect(dojo.isIE ? dojo.body() : dojo.doc, "onkeypress", this, "onKeyPress"); ws.lang.setTimeout(this, function() { // The dijit.layout.layoutChildren function that's called in LayoutContainer.addChild sometimes reads // the wrong height of the this.displayWidget.bodyPane (the iframe container), which results in the

// iframe cutting into the headerPane. checks if this is the case and fixes it. this.displayWidget.popoutLayout(); }, 0); }, ws.lang.ensureLayersLoadedSoon();

This function

showCompose: function(callback) { ws.lang.ensureLayersLoaded(dojo.hitch(this, function() { if (!this.composeWidget) { var config = { model: this.openerMailModel || this.myMailModel, || this.myPicturesModel, "hideCompose"), picturesModel: this.openerPicturesModel cancelCB: dojo.hitch(this, showNewWindowLink: false, beaconSuffix: "Popup Response", backToStringOverride:

Config.Strings.Close,

isPopup: true }; this.composeWidget = new ws.mail.ComposeMessageWidget(config); this.notebook.addChild(this.composeWidget); // When the send confirmation screen is shown, we have to block the tower ad, never have to unblock it, because screen is to close the window. // because it's too close to the tile ad. We

// the only way out of the send confirmation

dojo.connect(this.composeWidget, "onShowSendConfirmation", dojo.hitch(this, function() { this.adWidget.block(true); this.adWidget.hide(); dijit.byId("displayLayout").resize();

})); }

this.notebook.selectChild(this.composeWidget); callback(this.composeWidget); }, }));

{

hideCompose: function(callback, success) { this.composeWidget.confirmClose(dojo.hitch(this, function() if (success) this.closeThisWindow(); else this.notebook.selectChild(this.displayWidget); }, }));

"Suite.aspx";

closeThisWindow: function() { this.isWindowClosing = true; if (isWindowStandAlone && (dojo.isMoz || dojo.isSafari)) document.location = Config.BasePagesURL + else }, ws.io.closeWindow();

// The main window calls this when it closes, to let us know that // we can't use its stuff anymore. onMainWindowClosed: function() { this.openerMailModel = null; this.openerPicturesModel = null; if (!this.myMailModel) this.myMailModel = new ws.mail.MailModel(true); if (!this.myPicturesModel) this.myPicturesModel = new ws.pictures.model(); this.displayWidget.setModel(this.myMailModel); this.displayWidget.setPicturesModel(this.myPicturesModel); if (this.composeWidget) { this.composeWidget.setModel(this.myMailModel); this.composeWidget.setPicturesModel(this.myPicturesModel); } ws.address.AddressModel.onMainWindowClosed(); }, getAddEditWidget: function(callback) { if (callback) callback(); }, onUnload: function() { if (!this.isWindowClosing) ws.io.closeWindow(); }, onKeyPress: function(evt) { var targetInput = ws.html.isTargetAnInputElement(evt); var targetLink = ws.html.isTargetALinkElement(evt); if (evt.keyCode >= 65 && evt.keyCode <=90) evt.keyChar = String.fromCharCode(evt.keyCode); //ff on mac is weird, altKey is always off, and cannot be set if (Config.EnableKeyboardShortcuts && evt.keyChar && dojo.isString(evt.keyChar) && !targetInput && !(evt.ctrlKey || evt.metaKey) && (evt.altKey || ws.browser.mac)) { if(ws.browser.mac) { evt = ws.html.fixKeyForMac(evt); } } var publishKeyEvent = true; if ( ((evt.keyCode || evt.charCode) && targetInput) ||

((evt.keyCode == dojo.keys.ENTER) && targetLink) ) publishKeyEvent = false; evt.stopPropagation(); if(publishKeyEvent) dojo.publish("Suite/onKeyOnPress", [evt]);

} };

dojo.addOnUnload(DM, "onUnload"); window.onMainWindowClosed = dojo.hitch(DM, "onMainWindowClosed"); </script> <span dojoType="ws.themes.widget.ThemePicker" isVisible="false"></span> <div dojoType="dijit.layout.LayoutContainer" id="displayLayout" style="height: 100%; width: 100%;"> <div dojoType="dijit.layout.StackContainer" id="notebook" layoutAlign="client" style="overflow:hidden"></div> </div> </body> </html>