function com_brightpages_web_BrightPages(){
  var $wnd = window, $doc = document, external = $wnd.external, scriptsDone, loadDone, bodyDone, base = '', metaProps = {}, values = [], providers = [], answers = [], onLoadErrorFunc, propertyErrorFunc;
  if (!$wnd.__gwt_stylesLoaded) {
    $wnd.__gwt_stylesLoaded = {};
  }
  if (!$wnd.__gwt_scriptsLoaded) {
    $wnd.__gwt_scriptsLoaded = {};
  }
  function isHostedMode(){
    try {
      return external && (external.gwtOnLoad && $wnd.location.search.indexOf('gwt.hybrid') == -1);
    }
     catch (e) {
      return false;
    }
  }

  function maybeStartModule(){
    if (scriptsDone && loadDone) {
      var iframe = $doc.getElementById('com.brightpages.web.BrightPages');
      var frameWnd = iframe.contentWindow;
      frameWnd.__gwt_initHandlers = com_brightpages_web_BrightPages.__gwt_initHandlers;
      if (isHostedMode()) {
        frameWnd.__gwt_getProperty = function(name){
          return computePropValue(name);
        }
        ;
      }
      com_brightpages_web_BrightPages = null;
      frameWnd.gwtOnLoad(onLoadErrorFunc, 'com.brightpages.web.BrightPages', base);
    }
  }

  function computeScriptBase(){
    var thisScript, markerId = '__gwt_marker_com.brightpages.web.BrightPages', markerScript;
    $doc.write('<script id="' + markerId + '"><\/script>');
    markerScript = $doc.getElementById(markerId);
    thisScript = markerScript && markerScript.previousSibling;
    while (thisScript && thisScript.tagName != 'SCRIPT') {
      thisScript = thisScript.previousSibling;
    }
    function getDirectoryOfFile(path){
      var eq = path.lastIndexOf('/');
      return eq >= 0?path.substring(0, eq + 1):'';
    }

    ;
    if (thisScript && thisScript.src) {
      base = getDirectoryOfFile(thisScript.src);
    }
    if (base == '') {
      var baseElements = $doc.getElementsByTagName('base');
      if (baseElements.length > 0) {
        base = baseElements[baseElements.length - 1].href;
      }
       else {
        var loc = $doc.location;
        var href = loc.href;
        base = getDirectoryOfFile(href.substr(0, href.length - loc.hash.length));
      }
    }
     else if (base.match(/^\w+:\/\//)) {
    }
     else {
      var img = $doc.createElement('img');
      img.src = base + 'clear.cache.gif';
      base = getDirectoryOfFile(img.src);
    }
    if (markerScript) {
      markerScript.parentNode.removeChild(markerScript);
    }
  }

  function processMetas(){
    var metas = document.getElementsByTagName('meta');
    for (var i = 0, n = metas.length; i < n; ++i) {
      var meta = metas[i], name = meta.getAttribute('name'), content;
      if (name) {
        if (name == 'gwt:property') {
          content = meta.getAttribute('content');
          if (content) {
            var value, eq = content.indexOf('=');
            if (eq >= 0) {
              name = content.substring(0, eq);
              value = content.substring(eq + 1);
            }
             else {
              name = content;
              value = '';
            }
            metaProps[name] = value;
          }
        }
         else if (name == 'gwt:onPropertyErrorFn') {
          content = meta.getAttribute('content');
          if (content) {
            try {
              propertyErrorFunc = eval(content);
            }
             catch (e) {
              alert('Bad handler "' + content + '" for "gwt:onPropertyErrorFn"');
            }
          }
        }
         else if (name == 'gwt:onLoadErrorFn') {
          content = meta.getAttribute('content');
          if (content) {
            try {
              onLoadErrorFunc = eval(content);
            }
             catch (e) {
              alert('Bad handler "' + content + '" for "gwt:onLoadErrorFn"');
            }
          }
        }
      }
    }
  }

  function __gwt_isKnownPropertyValue(propName, propValue){
    return propValue in values[propName];
  }

  function __gwt_getMetaProperty(name){
    var value = metaProps[name];
    return value == null?null:value;
  }

  function unflattenKeylistIntoAnswers(propValArray, value){
    var answer = answers;
    for (var i = 0, n = propValArray.length - 1; i < n; ++i) {
      answer = answer[propValArray[i]] || (answer[propValArray[i]] = []);
    }
    answer[propValArray[n]] = value;
  }

  function computePropValue(propName){
    var value = providers[propName](), allowedValuesMap = values[propName];
    if (value in allowedValuesMap) {
      return value;
    }
    var allowedValuesList = [];
    for (var k in allowedValuesMap) {
      allowedValuesList[allowedValuesMap[k]] = k;
    }
    if (propertyErrorFunc) {
      propertyErrorFunc(propName, allowedValuesList, value);
    }
    throw null;
  }

  providers['user.agent'] = function(){
    var ua = navigator.userAgent.toLowerCase();
    var makeVersion = function(result){
      return parseInt(result[1]) * 1000 + parseInt(result[2]);
    }
    ;
    if (ua.indexOf('opera') != -1) {
      return 'opera';
    }
     else if (ua.indexOf('webkit') != -1) {
      return 'safari';
    }
     else if (ua.indexOf('msie') != -1) {
      var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua);
      if (result && result.length == 3) {
        if (makeVersion(result) >= 6000) {
          return 'ie6';
        }
      }
    }
     else if (ua.indexOf('gecko') != -1) {
      var result = /rv:([0-9]+)\.([0-9]+)/.exec(ua);
      if (result && result.length == 3) {
        if (makeVersion(result) >= 1008)
          return 'gecko1_8';
      }
      return 'gecko';
    }
    return 'unknown';
  }
  ;
  values['user.agent'] = {'gecko':0, 'gecko1_8':1, 'ie6':2, 'opera':3, 'safari':4};
  providers['bp.page'] = function(){
    var loc = window.location.pathname;
    if (loc.lastIndexOf('/') == loc.length - 1) {
      return 'frontpage';
    }
    if (loc.indexOf('BrightPages.gwt') != -1) {
      return 'frontpage';
    }
    if (loc.indexOf('listDetails.gwt') != -1) {
      return 'listdetails';
    }
    if (loc.indexOf('listings.gwt') != -1) {
      return 'listingspage';
    }
    if (loc.indexOf('mylist_detail.gwt') != -1) {
      return 'mylist_detail';
    }
    if (loc.indexOf('newCustomers.gwt') != -1) {
      return 'newcustomer';
    }
    if (loc.indexOf('signup.gwt') != -1) {
      return 'signup';
    }
    if (loc.indexOf('contact-us.gwt') != -1) {
      return 'contactus';
    }
    if (loc.indexOf('helpage') != -1) {
      return 'helpage';
    }
    if (loc.indexOf('browse_heading.gwt') != -1) {
      return 'browse_heading';
    }
    return 'staticpage';
  }
  ;
  values['bp.page'] = {'browse_heading':0, 'contactus':1, 'frontpage':2, 'helpage':3, 'listdetails':4, 'listingspage':5, 'mycontacts':6, 'mylist_detail':7, 'newcustomer':8, 'signup':9, 'staticpage':10};
  com_brightpages_web_BrightPages.onInjectionDone = function(){
    scriptsDone = true;
    maybeStartModule();
  }
  ;
  com_brightpages_web_BrightPages.onScriptLoad = function(){
    loadDone = true;
    maybeStartModule();
  }
  ;
  computeScriptBase();
  processMetas();
  var strongName;
  if (isHostedMode()) {
    strongName = 'hosted.html?com_brightpages_web_BrightPages';
  }
   else {
    try {
      unflattenKeylistIntoAnswers(['mycontacts', 'safari'], '08D02A505111CFADD837004D9FB316B8');
      unflattenKeylistIntoAnswers(['newcustomer', 'ie6'], '107391A3C0A5B0136D3200C0437C438C');
      unflattenKeylistIntoAnswers(['mylist_detail', 'opera'], '13A9A4CCDFDE8E7BDF84343C7A4E511F');
      unflattenKeylistIntoAnswers(['browse_heading', 'gecko'], '14055AF0AF523638C4A26366F473FB18');
      unflattenKeylistIntoAnswers(['newcustomer', 'gecko'], '1EF4E23CE51D6AD7AED81C052A155DAD');
      unflattenKeylistIntoAnswers(['contactus', 'ie6'], '216E4268C6D7D1F8CA90DEF606EDC2EC');
      unflattenKeylistIntoAnswers(['newcustomer', 'opera'], '22173AEA80D4FC4D2ABBAF7CD104DFC9');
      unflattenKeylistIntoAnswers(['mycontacts', 'ie6'], '25B0DB3C8D3811C5AFAFED04E069B211');
      unflattenKeylistIntoAnswers(['helpage', 'safari'], '25CE2A5A7CC28A82130FF5DC3F44FEE6');
      unflattenKeylistIntoAnswers(['signup', 'opera'], '27938243BD9E7D563DCDE901C4DD61D1');
      unflattenKeylistIntoAnswers(['frontpage', 'gecko1_8'], '2D64F571C8D4A5EEFA8E5F8C2627D315');
      unflattenKeylistIntoAnswers(['newcustomer', 'gecko1_8'], '30FCF8CC9CE09036E97E78093CC21948');
      unflattenKeylistIntoAnswers(['listingspage', 'ie6'], '3D28D44A3C160DA6C85D03C4CBAB8E58');
      unflattenKeylistIntoAnswers(['mycontacts', 'gecko1_8'], '3E419A7DF21FA3118F8698234D33941C');
      unflattenKeylistIntoAnswers(['newcustomer', 'safari'], '41ED36DC58F573717D1205D9D9587643');
      unflattenKeylistIntoAnswers(['contactus', 'opera'], '4D9C5DEBEE1B01979B79223FA8056985');
      unflattenKeylistIntoAnswers(['listdetails', 'gecko'], '564891A3D062666C5E57826547DC1B94');
      unflattenKeylistIntoAnswers(['contactus', 'safari'], '6133DA61CBAFE6AB650C98780259429A');
      unflattenKeylistIntoAnswers(['contactus', 'gecko'], '61A5E58AC9A7C48CA14AEE130401E420');
      unflattenKeylistIntoAnswers(['staticpage', 'gecko1_8'], '64681B3E0909891A884B80525C10F9A9');
      unflattenKeylistIntoAnswers(['contactus', 'gecko1_8'], '6607E82CA6D7773DAF391870E98A75A0');
      unflattenKeylistIntoAnswers(['listdetails', 'safari'], '672DD44573F4EF873D00D6DDFFDFE5E9');
      unflattenKeylistIntoAnswers(['listingspage', 'opera'], '7269FCEFA827B47946B6A4FB59785C68');
      unflattenKeylistIntoAnswers(['frontpage', 'safari'], '7BFF26D38BF3D17AD4D1357481CF08AB');
      unflattenKeylistIntoAnswers(['browse_heading', 'safari'], '81B9115C2736672C0D27F983C313794E');
      unflattenKeylistIntoAnswers(['listdetails', 'ie6'], '88226E9EABCB84160A7865A19294972F');
      unflattenKeylistIntoAnswers(['staticpage', 'ie6'], '8961B48877E34904431BE30AB99EE638');
      unflattenKeylistIntoAnswers(['browse_heading', 'opera'], '8BF85C4656E6F551810B36A22F72A103');
      unflattenKeylistIntoAnswers(['mylist_detail', 'ie6'], '8C03FA5CAED1CD03CB885D0679D78469');
      unflattenKeylistIntoAnswers(['helpage', 'opera'], '97704241E06145B20CF967ACC60C77DC');
      unflattenKeylistIntoAnswers(['signup', 'gecko'], '98CA3EBD5EAB3E3C7339A8126251BBDF');
      unflattenKeylistIntoAnswers(['browse_heading', 'gecko1_8'], 'A52932B94BBD747E08A4AE4F15C36ACD');
      unflattenKeylistIntoAnswers(['frontpage', 'opera'], 'A585BE7FD22BC98819D8E077E7B12B1E');
      unflattenKeylistIntoAnswers(['mycontacts', 'opera'], 'A70E16EA695E6F317997CA800125D73F');
      unflattenKeylistIntoAnswers(['staticpage', 'safari'], 'AB57C6AD03EA4E93FB6F1EA9FCC68BB2');
      unflattenKeylistIntoAnswers(['signup', 'safari'], 'AE1388BDDCF099D5199196D7D3F28DD3');
      unflattenKeylistIntoAnswers(['mycontacts', 'gecko'], 'B889086A97BF822302770F31A8F5056C');
      unflattenKeylistIntoAnswers(['frontpage', 'gecko'], 'BCA2BF886B5BC6AF77BF29EA0C84348E');
      unflattenKeylistIntoAnswers(['mylist_detail', 'gecko'], 'C84748CF56544A592ACB72D39E247644');
      unflattenKeylistIntoAnswers(['helpage', 'ie6'], 'C9D006E5387FFF7FDE6E9C11D80F3404');
      unflattenKeylistIntoAnswers(['listdetails', 'gecko1_8'], 'CC616870DD323CAA1755A933482BFDDF');
      unflattenKeylistIntoAnswers(['helpage', 'gecko1_8'], 'D122366B6D669CB449E3FAD6934BDAAD');
      unflattenKeylistIntoAnswers(['listdetails', 'opera'], 'D1F8DFF48744D57879B47AED2A38609E');
      unflattenKeylistIntoAnswers(['listingspage', 'gecko'], 'DA4D6E055E147EA650C654B484F8A62D');
      unflattenKeylistIntoAnswers(['listingspage', 'gecko1_8'], 'DBEC85E618ACE465E526E75D708F73CE');
      unflattenKeylistIntoAnswers(['staticpage', 'gecko'], 'DD9196E20F4F1BC83150CDB5F66D9289');
      unflattenKeylistIntoAnswers(['frontpage', 'ie6'], 'DF34EFFA215B17CA926DE58F016A7BA6');
      unflattenKeylistIntoAnswers(['listingspage', 'safari'], 'E7B7F8C1D043D88AD61BE576DDDA6BD2');
      unflattenKeylistIntoAnswers(['staticpage', 'opera'], 'E7F16CD19C0A04D32F9C91CD25446E02');
      unflattenKeylistIntoAnswers(['mylist_detail', 'safari'], 'EB01259F3F01739CB1990D97200953A0');
      unflattenKeylistIntoAnswers(['helpage', 'gecko'], 'EF2D78D1D07CDEA913F19BB4521CDA1E');
      unflattenKeylistIntoAnswers(['mylist_detail', 'gecko1_8'], 'F4F0B98ABEF117A4C3F164C0B07A0A5D');
      unflattenKeylistIntoAnswers(['signup', 'gecko1_8'], 'F6F3155226635E4403C676B5641C1D29');
      unflattenKeylistIntoAnswers(['browse_heading', 'ie6'], 'FBFE0D16FF9F35F500D40A74E9509E56');
      unflattenKeylistIntoAnswers(['signup', 'ie6'], 'FEEDFA27C529EB85F319D44EE9DE216D');
      strongName = answers[computePropValue('bp.page')][computePropValue('user.agent')];
    }
     catch (e) {
      return;
    }
    strongName += '.cache.html';
  }
  var onBodyDoneTimerId;
  function onBodyDone(){
    if (!bodyDone) {
      bodyDone = true;
      maybeStartModule();
      if ($doc.removeEventListener) {
        $doc.removeEventListener('DOMContentLoaded', onBodyDone, false);
      }
      if (onBodyDoneTimerId) {
        clearInterval(onBodyDoneTimerId);
      }
    }
  }

  var frameInjected;
  function maybeInjectFrame(){
    if (!frameInjected) {
      frameInjected = true;
      var iframe = $doc.createElement('iframe');
      iframe.src = "javascript:''";
      iframe.id = 'com.brightpages.web.BrightPages';
      iframe.style.cssText = 'position:absolute;width:0;height:0;border:none';
      $doc.body.appendChild(iframe);
      iframe.src = base + strongName;
    }
  }

  if ($doc.addEventListener) {
    $doc.addEventListener('DOMContentLoaded', function(){
      maybeInjectFrame();
      onBodyDone();
    }
    , false);
  }
  var onBodyDoneTimerId = setInterval(function(){
    if (/loaded|complete/.test($doc.readyState)) {
      maybeInjectFrame();
      onBodyDone();
    }
  }
  , 50);
  if (!__gwt_stylesLoaded['gwt-dnd.css']) {
    __gwt_stylesLoaded['gwt-dnd.css'] = true;
    document.write('<link rel="stylesheet" href="' + base + 'gwt-dnd.css">');
  }
  $doc.write("<script>com_brightpages_web_BrightPages.onInjectionDone('com.brightpages.web.BrightPages')<\/script>");
}

com_brightpages_web_BrightPages.__gwt_initHandlers = function(resize, beforeunload, unload){
  var $wnd = window, oldOnResize = $wnd.onresize, oldOnBeforeUnload = $wnd.onbeforeunload, oldOnUnload = $wnd.onunload;
  $wnd.onresize = function(evt){
    try {
      resize();
    }
     finally {
      oldOnResize && oldOnResize(evt);
    }
  }
  ;
  $wnd.onbeforeunload = function(evt){
    var ret, oldRet;
    try {
      ret = beforeunload();
    }
     finally {
      oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt);
    }
    if (ret != null) {
      return ret;
    }
    if (oldRet != null) {
      return oldRet;
    }
  }
  ;
  $wnd.onunload = function(evt){
    try {
      unload();
    }
     finally {
      oldOnUnload && oldOnUnload(evt);
    }
  }
  ;
}
;
com_brightpages_web_BrightPages();
