var referrer = '';
var height = '';
var width = '';
var url = '';
var link = '';

if( partner == 'yahoo' || partner == 'yahoomag' || partner == 'yahootix' ) {
    if( placement == 'RightTop' ) {
      height='31';
      width='88';
      url='http://www.forbes.com/media/partners/yahoo/BackToYahooFinanceButton1.gif';
      link='http://finance.yahoo.com';
   }
  if( placement == 'LeftTop' ) {
      height='31';
      width='88';
      url='';
      link='http://finance.yahoo.com';
   }
   else if( placement == 'MidBottom' ) {
      height='31';
      width='88';
      url='http://www.forbes.com/media/partners/yahoo/BackToYahooFinanceButton1.gif';
      link='http://finance.yahoo.com';
   }
}
else if( partner == 'inc' ) {
   if( placement == 'MidBottom' ) {
      height='31';
      width='88';
      url='http://images.forbes.com/media/fdc/forbesinc88x31.gif';
      link='http://trax.inc.com/k/w/forbes/inc_link';
   }
}
else if( partner == 'cmp' ) {
   if( placement == 'MidBottom' ) {
      height='31';
      width='88';
      url='http://images.forbes.com/media/partners/techweb/techweb_88x31.gif';
      link='http://www.techweb.com/';
   }
}
else if( partner == 'fool' ) {
   if( placement == 'LeftTop' ) {
      height='60';
      width='60';
      url='';
      link='http://www.fool.com';
   }
   else if( placement == 'MidBottom' ) {
      height='60';
      width='60';
      url='';
      link='http://www.fool.com';
   }
}
else if( partner == 'lycos' ) {
   if( placement == 'RightTop' ) {
      height='31';
      width='88';
      url='http://images.forbes.com/media/partners/lycos/readmoreatLycosFinance_31_88.gif';
      link='http://www.lycos.com';
   }
}
else if( partner == 'my_yahoo' ) {
   if( placement == 'MidBottom' ) {
      height='31';
      width='88';
      url='http://images.forbes.com/media/partners/my_yahoo/BackToMyYahooFinanceButton.gif';
      link='http://my.yahoo.com';
   }
}
else if( partner == 'keepmedia' ) {
   if(placement == 'RightTop') {
      height='32'; 
      width='421';
      url='http://www.forbes.com/media/partners/keepmedia/km_powrd_421x32.gif';
      link='http://www.keepmedia.com';
   }
}

if( partner != '' && placement != '' && height != '' && width != '' && url != '' && link != '' ) {
   document.write('<a href="' + link + '"><img src="' + url + '" height="' + height + '" width="' + width + '" alt="' + partner + '" border="0"></a>');
}




