<head>
<PUBLIC:COMPONENT tagName=IMAGE_BOX>
	<PUBLIC:DEFAULTS viewLinkContent/>
  	<PUBLIC:ATTACH event="oncontentready" onevent="fnInit()"/>
</PUBLIC:COMPONENT>

<STYLE>
	#imagebox1
	{
				text-align:center;
				background:tan;
				width:160;
				height:130;
	}
</STYLE>
<script type='text/javascript'>
function fnInit()
{
	showImage()
}
function showImage(){
	try
	{
		var WshShell_r2 = new ActiveXObject("WScript.Shell")
		sysdesktop_r2 = WshShell_r2.SpecialFolders("Desktop")
		WshShell_r2 = null
		var fso_r2 = new ActiveXObject("Scripting.FileSystemObject")
		var folder_r2 = fso_r2.GetFolder(sysdesktop_r2 + "\\FreeImages")
		var fn = Math.floor(Math.random()*folder_r2.files.Count)

	   	var fc = new Enumerator(folder_r2.files);
		var counter_r2 = 0
		var exitloop = false
		var s=""
   		while(exitloop == false)
   		{
			s = fc.item()
			if(counter_r2>=fn)
				exitloop = true
			if(!fc.atEnd())
				fc.moveNext()
			else
				exitloop = true
			counter_r2++
   		}
		if(s!="")
			imagebox1.src = s.path
	}
	catch(e){}
	setTimeout(showNewImage, 30000)
}
var showNewImage = showImage
</script>
</head>
<body>
<img id="imagebox1" src="">
</body>
