var secs
var timerID = null
var timerRunning = false
var delay = 400

function InitializeTimer()
{
    // Set the length of the timer, in seconds
    secs = 1
    StopTheClock()
    StartTheTimer()
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function StartTheTimer()
{
    if (secs==0)
    {
        StopTheClock()
		ReplaceAdblockTab('abp-objtab[.]*');
    }
    else
    {
        self.status = secs
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
}
function ReplaceAdblockTab(className) 
{
	var allPageTags = new Array(); 
	//Populate the array with all the page tags
	var allPageTags=document.getElementsByTagName("*");
	//Cycle through the tags using a for loop
	for (i=0; i<allPageTags.length; i++) 
	{
		//Pick out the tags with our class name
		if (allPageTags[i].className.match(className))
		{
			//Manipulate this in whatever way you want
			allPageTags[i].style.display='none';
			allPageTags[i].className='none'
		}
	} 
}
