function ShowTips(_tip) {
    $("#spnTips").html(_tip);
}

var cloudMaxWidth = 185;
function StartWindForClouds() {
    $(".cloud").each(function(i) {
        $(this).css("left", +RandomNumber(15, screen.width - cloudMaxWidth) + "px").css("top", +RandomNumber(0, 500) + "px");
        AniateCloud(this);
    });
}

function AniateCloud(_obj) {
    var tmpLeft = $(_obj).css("left").replace("px", "");
    var docWidth = screen.width;

    var newLeft = "15";
    if (tmpLeft > (docWidth / 2)) {
        newLeft = 15;
    }
    else {
        newLeft = docWidth - cloudMaxWidth;
    }

    $(_obj).slideDown("slow");
    $(_obj).animate({ "left": newLeft + "px" }, RandomNumber(5, 8) * 18000, "linear", function() { new AniateCloud(_obj); });
}
function RandomNumber(min, max) {
    var rnd = Math.floor((max - (min - 1)) * Math.random()) + min;
    return rnd;
} 
