// JavaScript Document
var isFF = (navigator.userAgent.indexOf("Firefox") > -1) ? true : false; 
var hasABP = false; 

function detect_abp() 
{ 
	if(isFF) 
	{ 
		if(Components.interfaces.nsIAdblockPlus != undefined) 
		{ 
		hasABP = true; 
		} 
		else 
		{ 
		var AbpImage = document.createElement("IMG"); 
		var AbpImage = document.createElement("IMG");
		var AbpIframe = document.createElement("IFRAME");
		AbpIframe.id = 'abpiframedetector';
		AbpIframe.src = '/style/adimages/';
		AbpIframe.style.display = 'block';
		AbpImage.id = 'abpimgdetector';
		AbpImage.src = '/style/adimages/banner.gif';
		AbpImage.style.width = AbpIframe.style.width = '1px';
		AbpImage.style.height = AbpIframe.style.height = '1px';
		AbpImage.style.border = AbpIframe.style.border = '0px';
		AbpImage.style.top = AbpIframe.style.top = '-1000px';
		AbpImage.style.left = AbpIframe.style.left = '-1000px';
		document.body.appendChild(AbpImage);
		document.body.appendChild(AbpIframe);
		setTimeout(set_abp_status, 100);  
		}
	}
}

function set_abp_status()
{
	if(document.getElementById('abpimgdetector').style.display == 'none') hasABP = true;
	else if(document.getElementById('abpiframedetector').clientHeight == 0) hasABP = true;
	if (hasABP)
	{
		location = "http://maple-records.com/detected.php"; 
		window.location(location); 
	}
} 

