// lead stories start
document.write('<ul>');

for (var i=1;i<9;i++) {
var xMS= unescape(getHmElement("hmLinkText",i,"MediaSolutions")); 

 if (xMS!="null" && xMS!=""){

yMS = unescape(getHmElement("hmLinkURL",i,"MediaSolutions"));
document.write('<li><a href="',yMS,'">',xMS,'</a></li>');

   }
}
document.write('</ul>');
// lead stories finish