<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="PEOPLE.com: Celebrity Photos"
	height="300"
	title_url="http://www.people.com/people/photos/?cid=google-CelebrityPhotos"
	author="People.com"
	author_location="New York, NY"
	author_email="people@people.com"
	screenshot="http://www.people.com/people/static/xml/rss/google/photogalleries/screenshot.png"
	thumbnail="http://www.people.com/people/static/xml/rss/google/photogalleries/thumbnail.png"
	description="People.com : The #1 Celebrity Site on the Web">
	<Require feature="dynamic-height"/>
</ModulePrefs>
<Content type="html">
<![CDATA[

<div id="EMS__MODULE_ID__"></div>
<div class=line__MODULE_ID__ style='border-top:1px solid #676767;width:100%;'></div>
<style>img{border:0;}</style>
<script>

_IG_FetchXmlContent('http://feeds.feedburner.com/people/google/photogalleries/', transformCelebrityPhotos);


function rollover(object){
	object.style.background='#eee';
}

function rollout(object){
	object.style.background='none';
}

function transformCelebrityPhotos(response){
	if (response == null || typeof(response) != "object" || response.firstChild == null){
		_gel("celebrityPhotos").innerHTML = "<i>Invalid data.</i>";
		return;
	}
	
	var xmlhtml = "<div style='height:299px;overflow:auto;width:100%;'>";
	var items = response.getElementsByTagName("item");
	
	for(var i=0;i<=4;i++){
		var itemChildren = items.item(i).childNodes;
		for(var j=0;j<itemChildren.length;j++){
			var node = itemChildren.item(j);
			if (node.nodeName == "link"){
				var imageLink = node.firstChild.nodeValue;
			} else if (node.nodeName == "enclosure"){
				var imagePath = node.getAttribute("url");
			} else if (node.nodeName == "title"){
				var imageTitle = node.firstChild.nodeValue;
			} else if (node.nodeName == "description"){
				var imageDescription = node.firstChild.nodeValue;
			} else if (node.nodeName == "pubDate"){
				var imageDate = node.firstChild.nodeValue;
			}
		}
		xmlhtml += "<a href='" + imageLink + "' target='_top' title='" + imageTitle + "' style='border-bottom:1px dashed #999;display:block;padding:10px 0;margin:0;clear:both;float:left;width:100%;text-decoration:none;' onmouseover='rollover(this)' onmouseout='rollout(this)'>" + 
		"<img src='http://img2.timeinc.net" + imagePath + "' width='150' height='113' border='0' style='float:left;border:1px solid #000;margin:0 10px 5px 10px;' />" + 
		"<font size=-2 color='#ff0066'>" + imageDate + "<br /></font>" + 
		"<font size=-1 color='#0033cc' style='padding-right:10px;font-weight:bold;text-decoration:underline;display:block;padding-bottom:5px;'>" + imageTitle + "</font>" + 
		"<font size=-2 style='padding-right:10px;color:#000;display:block;padding-bottom:5px;'>" + imageDescription + "</font>" + 
		"<font size=-2 color='#0033cc' style='text-decoration:underline;'>SEE PHOTOS</font><font size=-2 color='#000000' style='text-decoration:none;'> &#187;</font>" + 
		"</a>";
	}
	xmlhtml += "</div>";
	
	_gel("EMS__MODULE_ID__").innerHTML = xmlhtml;
	
}

</script>

]]>
</Content>
</Module>