jQuery plugin for timeout user and display lightbox alert warning
<p>I am looking fo ra jQuery plugin that does the following behaviour:
        1. Find user inactivity for a period of 10 minutes. 
        2. After 10 minutes display an alert or lightbox message. I believe lightbox would be better.
        3. After 5 more minutes, perform an action. </p>

<pre><code>    My javascript code is : 

            &lt;script type="text/javascript"&gt;
    var idleTime = 0;
    var activeTime = 0;
    var warningFlag = 0;
    setInterval(function checkIdle() {
        idleTime += 1;
        activeTime += 1;
        //document.write(idleTime + ' ' + activeTime);
        if(idleTime &gt; 5) {
            alert("Idle from last 5 seconds!! You have been active for last "+ activeTime);
            warningFlag=1;
        }
        if((idleTime &gt; 10) &amp;&amp; (warningFlag==1)) {
            alert("Idle from last 10 seconds!! You have been active for last "+ activeTime);
            window.location = "www.tinyprints.com";
        }
        window.onload = resetTimer;
        document.onmousemove = resetTimer;
        document.onkeypress = resetTimer;
    },1000);

    function resetTimer() {
         idleTime = 0;
    }

&lt;/script&gt;
    But i was thinking to use a jQuery plugin.
</code></pre>
