<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
	<ModulePrefs title="Funny Cat Photos"
		title_url="http://blog.esaba.com/projects/catphotos/catphotos.php" 
		height="215" 
		author="Elias Saba" 
		author_email="elias2+catphotos@gmail.com"
		description="This gadget displays a random funny cat photo everytime it loads. With over 2,300 photos to pick from, it is likely you will see a new photo everytime it loads. Click photos to enlarge."
		author_affiliation="http://blog.esaba.com"
		author_location="Los Angeles, CA"
		screenshot="http://blog.esaba.com/projects/catphotos/catphotos_screenshot.png"
		thumbnail="http://blog.esaba.com/projects/catphotos/catphotos_thumbnail.png" 
		author_photo="http://blog.esaba.com/projects/author_photo.png"
		author_aboutme="I'm a software engineer from Los Angeles, CA with a passion for technology"
		author_link="http://blog.esaba.com">
		<Require feature="views" /> 
	</ModulePrefs>
	<UserPref name="thumb_count" display_name="Thumbnails" default_value="1" datatype="enum">
		<EnumValue value="1"/>
		<EnumValue value="4"/>
	</UserPref>
	<UserPref name="mode" display_name="Child Safe Mode" default_value="ON" datatype="enum">
		<EnumValue display_value="ON" value="safe"/>
		<EnumValue display_value="OFF" value="all"/>
	</UserPref>
	
	
	<Content type="html" view="home">
		<![CDATA[ 
			<script type="text/javascript" language="javascript">
			// Get userprefs
			// w
			var prefs = new _IG_Prefs(__MODULE_ID__);
			var thumb_count = prefs.getString("thumb_count");
			var mode = prefs.getString("mode");
			window.location.href = "http://blog.esaba.com/projects/catphotos/catphotos.php?thumb_count="+thumb_count+"&mode="+mode;
			</script>
		]]>
	</Content>
	<Content type="html" view="canvas">
		<![CDATA[ 
			<script type="text/javascript" language="javascript">
			window.location.href = "http://blog.esaba.com/projects/catphotos/catphotos.php";
			</script>
		]]>
	</Content>  
</Module>