﻿var monTimeout;
var inTheBag = {
        show : function(){
        
            var popTop = (document.documentElement.clientHeight/2)-45;
            var popLeft = (document.documentElement.clientWidth/2)-130;

            document.getElementById('inTheBagContent').style.top = popTop;
            document.getElementById('inTheBagContent').style.left = popLeft;
            document.getElementById('inTheBag').style.visibility = 'visible';
            document.getElementById('inTheBag').style.display = 'block';
            document.getElementById('inTheBag').style.zIndex = 1;
            document.getElementById('inTheBagContent').style.zIndex = 1;
            clearTimeout(monTimeout);
            monTimeout = setTimeout('inTheBag.hide()',4000);
        } ,
        hide : function(){
            document.getElementById('inTheBag').style.visibility = 'hidden';
            document.getElementById('inTheBag').style.display = 'none';
        }
}