<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>
<script type="text/javascript" src="snow.js"></script>
<style type="text/css">
body { background:white; }
</style>
<script type="text/javascript">
/**
* jQuery snow effects.
*
* This is a heavily modified, jQuery-adapted, browser-agnostic version of
* "Snow Effect Script" by Altan d.o.o. (http://www.altan.hr/snow/index.html).
*
* Dustin Oprea (2011)
*/

function __ShowSnow(settings)
{

var snowsrc = settings.SnowImage;
var no = settings.Quantity;

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i;

var doc_width = $(window).width() - 10;
var doc_height = $(window).height();
var doc_min = { left: '-=100px' };

dx = [];
xp = [];
yp = [];
am = [];
stx = [];
sty = [];
flakes = [];
for (i = 0; i < no; ++i)
{
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width - 50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables

var flake = $("<div />");

var id = ("dot" + i);
flake.attr("id", id);
flake.css({
position: "absolute",
zIndex: i,
top: "15px",
left: "15px"
});

flake.append("<img src='" + snowsrc + "'>");
flake.appendTo("body");

flakes[i] = $("#" + id);
}

var animateSnow;
animateSnow = function()
{
for (i = 0; i < no; ++ i)
{
// iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height - 10)
{
xp[i] = Math.random() * (doc_width - am[i] + 100);
yp[i] = 0;
stx[i] = 0.02 + Math.random() / 10;
sty[i] = 0.7 + Math.random();
}

dx[i] += stx[i];
flakes[i].css("top", yp[i] + "px");
flakes[i].css("left", (xp[i] + am[i] * Math.sin(dx[i])) + "px");
}

snowtimer = setTimeout(animateSnow, 10);
};

function hidesnow()
{
if(window.snowtimer)
clearTimeout(snowtimer)

for (i = 0; i < no; i++)
flakes[i].hide();
}

animateSnow();
if (settings.HideSnowTime > 0)
setTimeout(hidesnow, settings.HideSnowTime * 1000)
}

(function($) {
$.fn.snow = function(options) {

var settings = $.extend({
SnowImage: undefined,
Quantity: 7,
HideSnowTime: 0
}, options);

__ShowSnow(settings);

return this;
}

})(jQuery);




</script>

</head>

<body background="files/9171_29ckec1.png">
<body1>

<div class="left">
<script type="text/javascript">
$(function() {
$(document).snow({ SnowImage: "mohan/snow.gif" });
});
</script>

</head>



<body>

<script type="text/javascript">
$(function() {
$(document).snow({ SnowImage: "mohan/snow.gif" });
});
</script>




</body>