function  StaffClick(DivCurId)
{

var IdCounter=1;
var DivCurShow = document.getElementById("DivLink_"+DivCurId);


while (document.getElementById("DivLink_" + IdCounter) != null)
{
document.getElementById("DivLink_"+IdCounter).style.display="none"
IdCounter++;
}
DivCurShow.style.display="block"  
}

function ChangeCSS7(DivCurId) {

    var IdCounter = 1;
    var DivCurShow = document.getElementById("Link_" + DivCurId);
    var DivCurShowRel = document.getElementById("DivLink_" + DivCurId);

    while (document.getElementById("Link_" + IdCounter) != null && document.getElementById("DivLink_" + IdCounter) != null) {
        document.getElementById("Link_" + IdCounter).className = "SubFirstStaff";
        document.getElementById("DivLink_" + IdCounter).style.display = "none";
        
        IdCounter++;
    }
    DivCurShow.className = "SubFirstStaffHover";
    DivCurShowRel.style.display = "block";
}

function change_class(obj, curclass) {
obj.className = curclass;
}
function change_class_back(obj, backclass) {
obj.className = backclass;
}

/**
* Delay for a number of milliseconds
*/
function sleep(delay)
{
    var start = new Date().getTime();
    while (new Date().getTime() < start + delay);
}

function ABingo(BingoTest)
{
	var url = '/abingo?ab=' + encodeURIComponent(BingoTest)
	new Ajax.Request(url, {
		method: 'post',
		asynchronous: false
	});
}

function pingEvent(eventName)
{
	var url = '/store/event?ev=' + encodeURIComponent(eventName)
	new Ajax.Request(url, {
		method: 'post',
		asynchronous: false
	});
}

function ABingoA(BingoTest)
{
	var url = '/abingo?ab=' + encodeURIComponent(BingoTest)
	new Ajax.Request(url, {
		method: 'post',
	});
}
