<?xml version="1.0" encoding="UTF-8"?>

<Module> 
	<ModulePrefs 
		title="Photo of the day on 3D Cube" 
		height="200" 
		width="300" 
		scrolling="false" 
		author="M H."
		author_email="m_h_widget@yahoo.co.jp" 
		author_location="Tokyo,Japan" 
		title_url="http://final.appspot.com/" 
		screenshot='http://divnil.com/final/ig/cube1_ss.jpg' 
		thumbnail='http://divnil.com/final/ig/cube_icon.jpg' 
		description="The photograph is displayed on the cube of 3D, every day. ">
  <Require feature="flash"/>
  <Require feature="dynamic-height"/>
  
</ModulePrefs>
<Content type="html">
<![CDATA[
<!-- ALm6fM3h79r3SmqgJjAiEcrkykmcZD3unX_A6Pt6ppBon-CaaDqFe1h84iTideXkZWoSsiGkBdedpH2jHYaOIr8msjrnq6LAqBSrVxPhMnL2Y1ELSyZyZL4WQBRkPZ4wGyFQhyboWc9Zp7Pz8dcngdfKTdyHrgWkKqYK45FUvPtkpOBnfPh0UFI= -->
<style type="text/css">
  html, body, div, span, applet, object, iframe,
  h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  a, abbr, acronym, address, big, cite, code,
  del, dfn, em, font, img, ins, kbd, q, s, samp,
  strike, strong, sub, sup, tt, var,
  dl, dt, dd, ol, ul, li,
  fieldset, form, label, legend,
  table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
  }
</style>

<div id="flashcontainer" style="text-align: center;"></div> 

<script type="text/javascript">
function on_load() {
	var url = _IG_GetCachedUrl('http://divnil.com/final/ig/cube1.swf');
	var w, h;
	h = 200;
	w = 300;
	var isIE = "undefined" != typeof ActiveXObject;
	var isDesktop = !document.referrer;
	
	_IG_EmbedFlash(url, "flashcontainer", {
		swf_version: 9,
		id: "widget",
		width: w,
		height: h,
		wmode: "window",
                scale:"noscale",
		allowScriptAccess: 'always'
	});
	resize_content();
}
function resize_content(){
	var w, h;
	if(document.body.clientWidth){
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}else{
		w = window.innerWidth
		h = window.innerHeight;
	}
	if(w < 300){
		h = 200 * w / 300;
	}

	if(w > 300 || h > 200){
		w = 300;
		h = 200;
	}

	var fla = document.getElementById('widget');
	fla.style.width = w + "px";
	fla.style.height = h + "px";
	_IG_AdjustIFrameHeight();
}
window.onresize = resize_content;
_IG_RegisterOnloadHandler(on_load);
</script>
]]>
</Content>
</Module>
