function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}
//change the opacity for different browsers
function changeOpac(opacity, id) {
	var el = $(id);
	el.style.opacity = (opacity / 100);
	el.style.MozOpacity = (opacity / 100);
	el.style.KhtmlOpacity = (opacity / 100);
	el.style.filter = "alpha(opacity=" + opacity + ")";
}
function shiftOpacity(id, millisec) {
	var el = $(id);
	//if an element is invisible, make it visible, else make it visible
	if(el.style.opacity == 0) {
		opacity(id, 0, 100, millisec);
	} else {
		opacity(id, 100, 0, millisec);
	}
}

function cycle_bigmovers()
{
	opacity("BigMover_Box",100,0,1000);
	setTimeout('AJAXRequest("bigmovers.asp","GET","",cycle_bigmovers_listener,true,true,$("BigMover_Box"))',1000);
	setTimeout('cycle_bigmovers()',7500);
}

function cycle_bigmovers_listener(ao) {
	if (ao.AJAX.readyState === 4) {
		if (ao.AJAX.status===200 || window.location.href.indexOf("http")===-1){
			var rt = ao.AJAX.responseText;
			ao.Param0.innerHTML = rt;
		}
		else {
				ao.Param0.innerHTML = "error";
		}
		opacity("BigMover_Box",0,100,1000)
	}
}