var pageURL = window.location.href;
if (pageURL.indexOf('main/authorization/sign') > 0) {
  var injAdOFF = document.getElementById("InjectedAd");
  if (injAdOFF) injAdOFF.style.display = "none";
}

x$(document).ready(function() {
// Content Ad is in div#InjectedAd which is found in the Analytics Textbox!
    x$("div#xg_masthead").append("<div id='adPlaceholder'></div>");
    var targetDiv=document.getElementById('adPlaceholder');
    var CenterDiv=document.createElement("div");
    CenterDiv.style.width="100%";
    var AdDiv=document.createElement("div");
    // AdDiv.style.width="728px";
    // AdDiv.style.height="90px";
    // AdDiv.style.background="#ccc";
    // AdDiv.style.border="2px solid #000";
    // AdDiv.style.margin="10px";
    AdDiv.appendChild(document.getElementById("InjectedAd"));

    CenterDiv.appendChild(AdDiv);

    if (targetDiv) targetDiv.parentNode.insertBefore(CenterDiv, targetDiv); 
// ---------------------------------------------------------------------- END

});
