// Editing Instructions
// 1. Change '#your_div_id' to whatever the ID attribute of your DIV is
// 2. Change '175' to whatever the height of your header is, if you have no header, set to 0
/********************************
*   (C) 2009 - Thiago Barbedo   *
*   - tbarbedo@gmail.com        *
*********************************/
window.onscroll = function()
{
    if( window.XMLHttpRequest ) {
        if (document.documentElement.scrollTop > 231 || self.pageYOffset > 231) {
            $('#subnavbox').css('position','fixed');
            $('#subnavbox').css('top','20px');
        } else if (document.documentElement.scrollTop < 231 || self.pageYOffset < 231) {
            $('#subnavbox').css('position','absolute');
            $('#subnavbox').css('top','231px');
        }
    }
}
