﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Naamloos 1</title>
</head>

<body>

<p>// Javascript made by Rasmus - http://www.peters1.dk //<br />
////////////////////////////////////////////////////////////////<br />
<br />
var SNOW_Picture = &quot;<code><font style="BACKGROUND-COLOR: #ccffff">http://www.domain.com/billeder/snow.gif</font></code>&quot;<br />
var SNOW_no = <code><font style="BACKGROUND-COLOR: #ffcc99">15</font></code>;<br />
<br />
var SNOW_browser_IE_NS = (document.body.clientHeight) ? 1 : 0;<br />
var SNOW_browser_MOZ = (self.innerWidth) ? 1 : 0;<br />
var SNOW_browser_IE7 = (document.documentElement.clientHeight) ? 1 : 0;<br />
<br />
var SNOW_Time;<br />
var SNOW_dx, SNOW_xp, SNOW_yp;<br />
var SNOW_am, SNOW_stx, SNOW_sty; <br />
var i, SNOW_Browser_Width, SNOW_Browser_Height;<br />
<br />
if (SNOW_browser_IE_NS)<br />
{<br />
	SNOW_Browser_Width = document.body.clientWidth;<br />
	SNOW_Browser_Height = document.body.clientHeight;<br />
}<br />
else if (SNOW_browser_MOZ)<br />
{<br />
	SNOW_Browser_Width = self.innerWidth - 20;<br />
	SNOW_Browser_Height = self.innerHeight;<br />
}<br />
else if (SNOW_browser_IE7)<br />
{<br />
	SNOW_Browser_Width = document.documentElement.clientWidth;<br />
	SNOW_Browser_Height = document.documentElement.clientHeight;<br />
}<br />
<br />
SNOW_dx = new Array();<br />
SNOW_xp = new Array();<br />
SNOW_yp = new Array();<br />
SNOW_am = new Array();<br />
SNOW_stx = new Array();<br />
SNOW_sty = new Array();<br />
<br />
for (i = 0; i &lt; SNOW_no; ++ i) <br />
{ <br />
	SNOW_dx[i] = 0; <br />
	SNOW_xp[i] = Math.random()*(SNOW_Browser_Width-50);<br />
	SNOW_yp[i] = Math.random()*SNOW_Browser_Height;<br />
	SNOW_am[i] = Math.random()*20; <br />
	SNOW_stx[i] = 0.02 + Math.random()/10;<br />
	SNOW_sty[i] = 0.7 + Math.random();<br />
	if (i == 0) document.write(&quot;&lt;\div id=\&quot;SNOW_flake&quot;+ i +&quot;\&quot; style=\&quot;position: 
absolute; z-index: &quot;+ i +&quot;; visibility: visible; top: 15px; left: 15px;\&quot;&gt;&lt;a 
href=\&quot;http://www.peters1.dk\&quot; target=\&quot;_blank\&quot;&gt;&lt;\img src=\&quot;&quot;+SNOW_Picture+&quot;\&quot; 
border=\&quot;0\&quot;&gt;&lt;/a&gt;&lt;\/div&gt;&quot;);<br />
	else document.write(&quot;&lt;\div id=\&quot;SNOW_flake&quot;+ i +&quot;\&quot; style=\&quot;position: 
absolute; z-index: &quot;+ i +&quot;; visibility: visible; top: 15px; left: 15px;\&quot;&gt;&lt;\img 
src=\&quot;&quot;+SNOW_Picture+&quot;\&quot; border=\&quot;0\&quot;&gt;&lt;\/div&gt;&quot;);<br />
}<br />
<br />
function SNOW_Weather() <br />
{ <br />
<br />
for (i = 0; i &lt; SNOW_no; ++ i) <br />
{ <br />
	SNOW_yp[i] += SNOW_sty[i];<br />
<br />
	if (SNOW_yp[i] &gt; SNOW_Browser_Height-50) <br />
	{<br />
		SNOW_xp[i] = Math.random()*(SNOW_Browser_Width-SNOW_am[i]-30);<br />
		SNOW_yp[i] = 0;<br />
		SNOW_stx[i] = 0.02 + Math.random()/10;<br />
		SNOW_sty[i] = 0.7 + Math.random();<br />
	}<br />
<br />
	SNOW_dx[i] += SNOW_stx[i];<br />
<br />
	document.getElementById(&quot;SNOW_flake&quot;+i).style.top=SNOW_yp[i]+&quot;px&quot;;<br />
	document.getElementById(&quot;SNOW_flake&quot;+i).style.left=SNOW_xp[i] + SNOW_am[i]*Math.sin(SNOW_dx[i])+&quot;px&quot;;<br />
}<br />
<br />
SNOW_Time = setTimeout(&quot;SNOW_Weather()&quot;, 10);<br />
<br />
}<br />
<br />
SNOW_Weather(); <br />
</p>

</body>

</html>

