﻿// JScript File

// 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 > 210 || self.pageYOffset > 210) {
            $('#ctl00_ContentPlaceHolder1_DivFloatingButton').css('position','fixed');
            $('#ctl00_ContentPlaceHolder1_DivFloatingButton').css('top','310px');
        } else if (document.documentElement.scrollTop < 310 || self.pageYOffset < 310) {
            $('#ctl00_ContentPlaceHolder1_DivFloatingButton').css('position','fixed');
            $('#ctl00_ContentPlaceHolder1_DivFloatingButton').css('top','310px');
        }
    }
}
//function MoveButtonDiv()
// {
//    $('#ctl00_ContentPlaceHolder1_DivFloatingButton').position({
//    relativeTo: $('#ctl00_ContentPlaceHolder1_hlPrevious'),
//    position: 'upperLeft',
//    edge: 'upperRight'
//}); //myElement's upper right corner is against myDiv's upper left corner ctl00_ContentPlaceHolder1_lblChangeSearch

//}
