
/* m360 DynO Optimized Experience
Account 5167
Campaign 2821 - Homepage
Microsite 19856 - CMS-1277: Hero Imagery Play - designer's choice 
file:://db:5167/19856/
*/
m360_client_id = parseInt('5167');
m360_domain = 'dreamhost.magnify360.com';
m360_visitor_id = parseInt('550046334');


m360_addCSSBlock('body{display: none;}'); // anti-flicker
/* <!-- m360 plugin: Dreamhost Pricing Harness id: 17 --> */
var m360_dreamhost = function () {
  var money = function (stuff) {
    return("$" + Number(stuff).toFixed(2));
  }

  return {

    // use like m360_dreamhost.get_price()
    // returns a string with the monthly price
    get_price: function () {
    
      var default_price = '$8.95';

      // M360.util.debug($m360('.min_monthly').is(":visible"));
      // M360.util.debug($m360('.no_min_monthly').is(":visible"));
    
      var ignore_promo = 0;

      var cookie_promo_data = {};
      if(promo_cookie) {
        cookie_promo_data = $m360.parseJSON(promo_cookie); //it's our cookie, so we assume it's safe.
      }
      var promo_data = {};


      if (!ignore_promo) {
        promo_data = cookie_promo_data;
      } else {
        if (promo_data.min_monthly_price) {
          return money(promo_data.min_monthly_price);
        }
      }

      return default_price;
    }

  };

} ();
/* <!-- end m360 plugin --> */

$m360(document).ready(function () {
try { 
/* m360 - dyno Code */
m360_addCSSBlock('.header{ z-index:0; position: absolute; left: 97px; top: 124px; width: 1064px; height: 318px; background-image: url("http://dreamhost.magnify360.com/client_files/client_5167/images/wp/19856-lightblue-orangebutton.jpg");background-repeat: no-repeat; } ');
m360_addCSSBlock('.mFBTwitter{ z-index:498; position: absolute; left: 423px; top: 570px; width: 324px; height: 360px; background-image: url("http://dreamhost.magnify360.com/client_files/client_5167/images/19853-fb_twitter.gif");background-repeat: no-repeat; } ');
m360_addCSSBlock('#mfbBox{ z-index:499; position: absolute; left: 623px; top: 670px; border:none; overflow:hidden; width:100px; height:90px; } ');
m360_addCSSBlock('#mTwitterBox{ z-index:499; position: absolute; left: 573px; top: 780px; font-face: calibri,arial,helvetica,sans-serif; font-size:11px; text-align:center;} ');

m360_addCSSBlock('.msignUpButton{display: inline-block; left: 774px; top: 355px; width: 261px; height: 40px; position: absolute; z-index:499; } ');
m360_addCSSBlock('.mFacebookButton{display: inline-block; left: 452px; top: 662px; width: 85px; height: 83px; position: absolute; z-index:499; } ');
m360_addCSSBlock('.mTwitterButton{display: inline-block; left: 452px; top: 775px; width: 85px; height: 83px; position: absolute; z-index:499; } ');
m360_addCSSBlock('.mWordpressButton{display: inline-block; left: 415px; top: 238px; width: 335px; height: 75px; position: absolute; z-index:499; } ');

m360_addCSSBlock('.menu{display: none; } ');


var af='<div class="outer">';
af += '<div class="header"></div>';
af += '<div class="mFBTwitter"></div>';
af += '<a title="Sign up for just $8.95 per month" href="javascript:void(0);" id="NewP1" class="msignUpButton NewP"></a>';
af += '<a title="DreamHost on Facebook" href="https://www.facebook.com/DreamHost" class="mFacebookButton" ></a>';
af += '<a title="DreamHost on Twitter" href="http://twitter.com/#!/DreamHost" class="mTwitterButton" ></a>';
af += '<a title="WordPress on DreamHost" href="javascript:void(1);" id="NewP2" class="mWordpressButton NewP"></a>';
af += '<iframe id="mfbBox" src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdreamhost.com&amp;send=false&amp;layout=box_count&amp;width=100&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=90&amp;appId=184997341556629" scrolling="no" frameborder="0" allowTransparency="true"></iframe>';
af += '<div id="mTwitterBox">We host your dreams.<br/>Need help? Send a tweet<br/>to @DreamHostCare!<br/><a href="http://www.dreamhost.com">http://www.dreamhost.com</a></div>';


af += '</div>';

$m360('.hold > p').html('');
$m360('#slideshow').html('');
$m360('.sidebar').css('z-index', 499);

m360_addFirst(
  '.visual',
  af,
  'wrapper',
  ''
);


//initLightbox();

jQuery('#NewP1').click(function () { doKlugePopup(); });
jQuery('#NewP2').click(function () { doKlugePopup(); });

function doKlugePopup() {
  jQuery('.with-popup').eq(0).click();
}
/* Dyno Footer */
m360_addCSSBlock('body{display: block;}'); // unhide after dyno code execution
} catch(err) { m360_addCSSBlock('body{display: block;}'); }}); // unhide on error

