expand.js 915 Bytes
var timer = 400;
var bExpandable = true;

var TzBigBoxAd = function() {
    var BB     = document.getElementById('bigbox1');
    var Expand = document.getElementById('bigbox1expanded');

    BB.onmouseover = function() {
    	if(bExpandable) {
        	Expand.style.display = 'block';
        	BB.style.display = 'none';
        }
    }

    Expand.onmouseout = function() {
    	//bExpandable = true;
        Expand.style.display = 'none';
        BB.style.display = 'block';
    }
}();


function closefn() {
//var closefn = function() {
	//alert("close pressed");
    var BB     = document.getElementById('bigbox1');
    var Expand = document.getElementById('bigbox1expanded');
	
    Expand.style.display = 'none';
    BB.style.display = 'block';
    bExpandable = false;
    
    setTimeout("enableExpansion()",timer);
};

function enableExpansion() {
	bExpandable = true;
}