
iens6=document.all||document.getElementById
ns=document.layers

ord=Math.random()*10000000000000000;

function dart(zone, dcopt, width, height, tile){
        document.writeln('<script language="Javascript" src="http://ad.uk.doubleclick.net/adj/banner.hemscott.tmuk/'+ zone +';' + dcopt + 'tile=' + tile +';sz=' + width +'x' + height +';ord=' + ord + '?"></script>');
}

function writeBrokerButtonsCompFund() {

  document.writeln('<table border="0" cellspacing="0" cellpadding="0">');
  document.writeln('<tr>');
  document.writeln('<td valign="top"><iframe frameborder="0" width="300" height="250" marginheight="0" marginwidth="0" scrolling="no" src="http://www.hemscott.com/300x250_portal.htm"></iframe></td>');
  document.writeln('<td valign="top">');
  document.writeln('</td>');
  document.writeln('</tr>');
  
   try {
      if (icbref != 'null') {
        document.writeln('  <td valign="top" colspan="1"><a href="http://hemscott.ar.wilink.com/asp/P036_search_results_eng.asp?ticker='+icbref+'"><img src="http://www.hemscott.com/equities/graphics/ar.gif" border="0"/></a>');
      } else {
        document.writeln('  <td valign="top" colspan="1"></td>');
      }
    }
    catch (e) {
        document.writeln('  <td valign="top" colspan="1"></td>');
    }
    document.writeln('  </tr>');
    document.writeln('</table>');
}

function writeTopAdCompFund() {
   document.write(' <table border="0" cellpadding="0" cellspacing="0"><tr><td valign="_top">');
        if (document.location.href.indexOf('www')) {
            document.write('<SCRIPT language="JavaScript1.1" SRC="http://ad.uk.doubl'+'eclick.net/adj/ban'+'ner.hemscott.tmuk/compfund;dcopt=ist;sz=468x60;ord=' + ord + '?"><\/SCRIPT></td>');
 
        } else if (document.location.href.indexOf('businessplus')) {
            document.write('<SCRIPT language="JavaScript1.1" SRC="http://ad.uk.doubl'+'eclick.net/adj/ban'+'ner.hemscott.tmuk/invest;dcopt=ist;sz=468x60;ord=' + ord + '?"><\/SCRIPT></td>');

        } else {
            // parent frame must be refs hence omit popups...
            document.write('              <td width="468"><SCRIPT language="JavaScript1.1" SRC="http://ad.uk.doubl'+'eclick.net/adj/ban'+'ner.hemscott.tmuk/compfund;sz=468x60;ord=' + ord + '?"><\/SCRIPT></td>');
        }
   document.write(' </td></tr></table>');
}

function writeTopAdCompFundInvTrust() {
    document.writeln('<SCRIPT language="JavaScript1.1" SRC="http://ad.uk.double'+'click.net/adj/ban'+'ner.hemscott.tmuk/investtrusts;sz=468x60;ord=' + ord + '?"><\/SCRIPT>')
}

function writeSkyAdCompFund(){
    document.writeln('<SCRIPT language="JavaScript1.1" SRC="http://ad.uk.doubl'+'eclick.net/adj/skys'+'craper.hemscott.tmuk/compfund;sz=120x600;ord=' + ord + '?"><\/SCRIPT>')
}

function writeTop120x60CompFund() {
    document.writeln('<a href="http://businessplus.hemscott.net/register/index.asp" target="_top"><img src="http://www.hemscott.com/equities/company/images/premium_ad.gif" border="0" /></a>');
}

function writeTopAdCompFundRegistrars() {
   document.write(' <table border="0" cellpadding="0" cellspacing="0"><tr><td valign="_top">');
        if (document.location.href.indexOf('www')) {
            document.write('<SCRIPT language="JavaScript" SRC="http://ad.uk.double'+'click.net/adj/ban'+'ner.hemscott.tmuk/corpadvise;sub=fund_registrar;tile=1;sz=468x60;ord=' + ord + '?"><\/SCRIPT>')

        } else if (document.location.href.indexOf('businessplus')) {
            document.write('<script language="JavaScript">dart(\'corpadvise.hemscott.net\',\'fundamentals-registrars\',468,60)<\/script>');

        } else {
            // parent frame must be refs hence omit popups...
            document.write('              <td width="468"><SCRIPT language="JavaScript1.1" SRC="http://ad.uk.doubl'+'eclick.net/adj/ban'+'ner.hemscott.tmuk/compfund;sz=468x60;ord=' + ord + '?"><\/SCRIPT></td>');
        }
   document.write(' </td></tr></table>');
}
