Problem with Javascript Ad Code


I am trying to add a Javascript ad code on our Drupal based website through a block and when I do this, the page doesn’t display but only ads display. Please see this sample page:

I tried adding on different blocks and even added the ad code by directly inserting in the codes but no changes. Other Javascript based ad codes from other ad networks are working fine but only had problem with this one.

Could someone let me know what could be the problem? Here is the ad code.

<script id="mNCC" language="javascript">
   medianet_width = "600";
   medianet_height = "120";
   medianet_crid = "455208315";
   medianet_versionId = "111299";
   (function() {
       var isSSL = 'https:' == document.location.protocol;
       var mnSrc = (isSSL ? 'https:' : 'http:') + '//' + (isSSL ? '&https=1' : '');
       document.write('<scr' + 'ipt type="text/javascript" id="mNSC" src="' + mnSrc + '"></scr' + 'ipt>');
Drupal version: