function fpm(pet) {
    var preload_image = new Image(); 
    preload_image.src=pet.i.fpm;

    if(pet.id) {
		document.write('<ul id="featured-pet">');
		document.write('<li id="featured-pet-photo">');
        document.write('<a href=\"' + pet.u + '\" title="View '+ pet.n +'\'s Profile" target="_blank">');
        document.write('<img src=\"' + pet.i.fpm + '\" alt=\"'+ pet.n +'\'s Photo\" /></a>');
		document.write('</li>');
		document.write('<li id="featured-pet-name">');
		document.write('<a href=\"' + pet.u + '\" title="View '+ pet.n +'\'s Profile" target="_blank">' + pet.n + '</a>');
		document.write('</li>');
		document.write('<li id="shelter-name">');
        document.write('<a href=\"' + pet.sh.u + '\" target=\"_blank\">');
        document.write(pet.sh.n + '</a>');
		document.write('</li>');
		document.write('<li id="pet-location">');
		 document.write(pet.c + ', ' + pet.s2);
		document.write('</li>');
        document.write('</ul>');
    }
    else {
        document.write('<a href="http://www.petfinder.com"> <img src="http://www.petfinder.com/common/images/fpm/fpmfailad.gif" border=0></a>');
        document.write('<br><font face="" size="" color="">We\'re sorry, the Featured Pet<br />is not available at this time</font></p>');
    }

}

