/*************************************************************
 * ListHero v2.00
 * Show ExitGrabber window
 * 2008-04-29 (mk) created
 *************************************************************/

if (!window.GB_TL_COLOR || '' == GB_TL_COLOR) GB_TL_COLOR= "#CC0000";
if (!window.GB_HERO_ID  || '' == GB_HERO_ID)  GB_HERO_ID= "0";
var GB_BoxStarted = 0;
var GB_BoxDelay = 3;
if (document.cookie.indexOf("ListHeroExitGrabber=") == -1) {
	AJS.AEV(document,'mousemove',GB_GetMouseY);
	document.cookie = 'ListHeroExitGrabber=1;path=/;';
}
function GB_GetMouseY(e) {
    GB_tempY = document.all? event.clientY: e.pageY - document.body.scrollTop - document.documentElement.scrollTop;
    if (GB_tempY < 0) GB_tempY = 0;
    if (20 > GB_tempY && 0 > --GB_BoxDelay) {
        if (0 == GB_BoxStarted) {
            GB_BoxStarted = 1;
            var GB_url = 'http://www.listhero.com/get.exitf.php?id='+GB_HERO_ID
                +'&color='+escape(GB_TL_COLOR);
            var options = {
                width: 560,
                height: 600,
                fullscreen: false,
				center_win: true,
                show_loading: false
            }
            var win = new GB_Window(options);
            return win.show(GB_url);
        }
	}
}
