var top = 3
var m3_u = (location.protocol=='https:'?'https://bbfadnet.com/openads/www/delivery/ajs.php':'http://bbfadnet.com/openads/www/delivery/ajs.php' );
var m3_r = Math.floor(Math.random()*99999999999);

function showad()
{
	if (top == 3)
	{
		<!--//<![CDATA[
		document.MAX_ct0 ='{clickurl}';
		if (!document.MAX_used)
			document.MAX_used = ',';
		document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
		document.write ("?zoneid=3");
		document.write ('&amp;cb=' + m3_r);
		if (document.MAX_used != ',') 
			document.write ("&amp;exclude=" + document.MAX_used);
		document.write ("&amp;loc=" + escape(window.location));
		if (document.referrer)
			document.write ("&amp;referer=" + escape(document.referrer));
		if (document.context)
			document.write ("&context=" + escape( document.context));
		if ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http'))
			document.write ("&amp;ct0=" + escape(document.MAX_ct0 ));
		if (document.mmm_fo) 
		document.write ("&amp;mmm_fo=1");
		document.write ("'><\/scr"+"ipt>");
		//]]>-->
		top--;
	}
	else if (top == 2)
	{
		<!--//<![CDATA[
		document.MAX_ct0 ='{clickurl}';
		if (!document.MAX_used)
			document.MAX_used = ',';
		document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
		document.write ("?zoneid=4");
		document.write ('&amp;cb=' + m3_r);
		if (document.MAX_used != ',') 
			document.write ("&amp;exclude=" + document.MAX_used);
		document.write ("&amp;loc=" + escape(window.location));
		if (document.referrer)
			document.write ("&amp;referer=" + escape(document.referrer));
		if (document.context)
			document.write ("&context=" + escape( document.context));
		if ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http'))
			document.write ("&amp;ct0=" + escape(document.MAX_ct0 ));
		if (document.mmm_fo) 
		document.write ("&amp;mmm_fo=1");
		document.write ("'><\/scr"+"ipt>");
		//]]>-->
		top--;
	}
	else if (top == 1)
	{
		<!--//<![CDATA[
		document.MAX_ct0 ='{clickurl}';
		if (!document.MAX_used)
			document.MAX_used = ',';
		document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
		document.write ("?zoneid=5");
		document.write ('&amp;cb=' + m3_r);
		if (document.MAX_used != ',') 
			document.write ("&amp;exclude=" + document.MAX_used);
		document.write ("&amp;loc=" + escape(window.location));
		if (document.referrer)
			document.write ("&amp;referer=" + escape(document.referrer));
		if (document.context)
			document.write ("&context=" + escape( document.context));
		if ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http'))
			document.write ("&amp;ct0=" + escape(document.MAX_ct0 ));
		if (document.mmm_fo) 
		document.write ("&amp;mmm_fo=1");
		document.write ("'><\/scr"+"ipt>");
		//]]>-->
		top--;
	}

}

