// 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 > 1300 || self.pageYOffset > 1300) {
            $('#wrap_flotante').css('position','fixed');
            $('#wrap_flotante').css('top','10px');
			$('#wrap_flotante').css('padding-left','761px');				
        } else if (document.documentElement.scrollTop < 1300 || self.pageYOffset < 1300) {
            $('#wrap_flotante').css('top','10px');
    	    $('#wrap_flotante').css('position','inherit');
			$('#wrap_flotante').css('padding-left','23px');	
        }
    }
}
