 (function($){
   var getMessageDiv = function(){
     var returnDiv = $('<div></div>').css({ marginTop: "50px" });
     var rightDiv = $('<div></div>').
       html('<img src="api-cta.gif" />').
       css({"float": "right"});
     returnDiv.append(rightDiv);
     var leftDiv = $('<div></div>').
       html("<br />If you don’t have a login and you would like to read our API documentation, please give us a quick call at 877-749-7455 and we’ll get you right in there. Thank you for your interest in Pixelsilk.").
       css({"float": "left", width: "420px"});
     returnDiv.append(leftDiv);
     return returnDiv;
   };

   var displayApiMessage = function(){
     var address = window.location.toString();
     var check = /api/;
     if (check.test(address)){
       $('#MainContent').append(getMessageDiv());
     }
   };

   $(document).ready(function(){
     displayApiMessage();
   });
 })(jQuery);
