	
var	ActiveForm = 0;
var	CrSubmit;  // delegate for CR form submission

var	NN = navigator.appName == "Netscape";

if (NN)
{ // NS4+
	document.captureEvents(Event.KEYPRESS);
}

document.onkeypress	= KeyPress;	// NS4+	and	IE4+	

function f1_old(e) // Check	the	keypress and submit	on enter
{ 
	var	code = (NN)	? e.which :	window.event.keyCode;			
	if (code ==	13)	
	{			
		if (ActiveForm == 1)
			document.form1.submit();
		else if	(ActiveForm	== 2)				
			document.subscriber.submit();
		else if	(ActiveForm	== 3)
			document.Previewsubscriber.submit();
	}
}		 


///	If you wish	to submit a	form or	validate upon user pressing	CR,
///	either set CrSubmit	to "document.whatever.submit" or to	a specific
///	validation function.
function KeyPress(e) //	Check the keypress and submit on enter
{ 
	var	code = (NN)	? e.which :	window.event.keyCode;			
	if (code ==	13)	
	{			
		if (CrSubmit !=	null) {
			CrSubmit();
			return false;	  // cancel	default	action for CR, 
											// otherwise the form may be accidently	submitted twice.
		}
	}
}		 


function subscriptionPopUpAd()
{
	var subscriptionAd = getCookie('SubscriptionAd1');
	if (subscriptionAd != null)
	{	
		OAS_AD(subscriptionAd);
	}
	else
	{
		// x94 is generic
		OAS_AD('x94');
		/*subscriptionAd = "SubscriptionAd1=x95" +
       "; expires=" + new Date(9999,1,1).toGMTString();
		document.cookie = subscriptionAd;*/
	}
}

function articleAd()
{		
	document.write('<div align="center"><table border="0" align="center" cellpadding="0" cellspacing="0">');
	document.write('  <tr>');
	document.write('	<td><div align="center"	class="advertisement">-	ADVERTISEMENT -</div></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('	<td	align="center" valign="top">');
	document.write('		<div align="center"><TABLE cellSpacing="0" cellPadding="0" border="0"><tr>');
	document.write('				<TD	bgcolor="#999999"><img src="spacer.gif" height="1"	width="1"></TD></TR><TR><TD><TABLE cellSpacing="0" cellPadding="0" border="0"><TR><TD bgcolor="#999999"><img src="spacer.gif" height="1" width="1"></TD><TD><TABLE	cellSpacing="0"	cellPadding="0"	border="0"><tr><td colspan="3"><img	src="spacer.gif" height="2" width="2"></td></tr><tr><td><img src="spacer.gif"	height="2" width="2"></td><td>');
	
  //document.write('<A href=\"http://www.africanexecutive.com/\" target=_blank><IMG src=\"images/advertbig.gif\" border=0></A>');
	
	OAS_AD('Position1');
	document.write('</td><td><img src="spacer.gif"	height="2" width="2"></td></tr><tr><td colspan="3"><img	src="spacer.gif" height="2" width="2"></td></tr></TABLE></TD><TD bgcolor="#999999"><img src="spacer.gif" height="1" width="1"></TD></TR></TABLE></TD></TR><TR><TD	bgcolor="#999999"><img src="spacer.gif" height="1"	width="1"></TD></TR></TABLE>');
	document.write('		</div>');
	document.write('	 </td>');
	document.write('  </tr>');
	document.write('</table></div>');
}

function articleAd()
{		
	document.write('<div align="center"><table border="0" align="center" cellpadding="0" cellspacing="0">');
	document.write('  <tr>');
	document.write('	<td><div align="center"	class="advertisement">-	ADVERTISEMENT -</div></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('	<td	align="center" valign="top">');
	document.write('		<div align="center"><TABLE cellSpacing="0" cellPadding="0" border="0"><tr>');
	document.write('				<TD	bgcolor="#999999"><img src="spacer.gif" height="1"	width="1"></TD></TR><TR><TD><TABLE cellSpacing="0" cellPadding="0" border="0"><TR><TD bgcolor="#999999"><img src="spacer.gif" height="1" width="1"></TD><TD><TABLE	cellSpacing="0"	cellPadding="0"	border="0"><tr><td colspan="3"><img	src="spacer.gif" height="2" width="2"></td></tr><tr><td><img src="spacer.gif"	height="2" width="2"></td><td>');
	
  //document.write('<A href=\"http://www.africanexecutive.com/\" target=_blank><IMG src=\"images/advertbig.gif\" border=0></A>');
	
	OAS_AD('Position1');
	document.write('</td><td><img src="spacer.gif"	height="2" width="2"></td></tr><tr><td colspan="3"><img	src="spacer.gif" height="2" width="2"></td></tr></TABLE></TD><TD bgcolor="#999999"><img src="spacer.gif" height="1" width="1"></TD></TR></TABLE></TD></TR><TR><TD	bgcolor="#999999"><img src="spacer.gif" height="1"	width="1"></TD></TR></TABLE>');
	document.write('		</div>');
	document.write('	 </td>');
	document.write('  </tr>');
	document.write('</table></div>');
}
function getCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;

	/*var dc = document.cookie;
	var prefix = name	+ "=";
	var begin	= dc.indexOf(";	" +	prefix);
	if (begin	== -1)
	{
		begin =	dc.indexOf(prefix);
		if (begin != 0)	return null;
	}
	else
		begin += 2;
	
	var end =	document.cookie.indexOf(";", begin);
	if (end == -1)
		end	= dc.length;
	
	return unescape(dc.substring(begin + prefix.length, end));*/
}

// To handle image within the abstract text.
var	ImageUrl;

function displayImage()	{
  displayImage('');
}

function displayImage(attributes) {
	document.write('<img align="center"	src="' + ImageUrl +	 '"	' +	attributes + '>');
}

// OAS Setup BEGIN

// Part	1
//configuration
OAS_url	= 'http://africanexecutive.com/RealMedia/ads/';
//OAS_sitepage = window.location.hostname +	window.location.pathname;

if (window.location.href.toUpperCase().indexOf('/EVENTSHOME.ASPX') != -1)
 OAS_sitepage =	'africanexecutive.com/EventsHome.aspx';
else
 OAS_sitepage =	'africanexecutive.com';

OAS_listpos	= 'Position1,Right,Middle1,Left1,Left2,Left3,x95,x51,x52,x53,x54,x55,x21,x31';
OAS_query =	'';
OAS_target = '_top';
//end of configuration
OAS_version	= 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String	(Math.random()); OAS_rns = OAS_rn.substring	(2,	11);
function OAS_NORMAL(pos) {
  document.write('<A HREF="' + OAS_url + 'click_nx.cgi/' + OAS_sitepage	+ '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '"	TARGET=' + OAS_target +	'>');
  document.write('<IMG SRC="' +	OAS_url	+ 'adstream_nx.cgi/' + OAS_sitepage	+ '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '"	BORDER=0></A>');
}

// Part	2
OAS_version	= 11;
if (navigator.userAgent.indexOf('Mozilla/3') !=	-1 || navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1)
  OAS_version =	10;
if (OAS_version	>= 11) {
	if (location.href.indexOf('https:')	== -1) { //	show ad	only if	not	under SSL
	  document.write('<SCRIPT LANGUAGE=JavaScript1.1 SRC="'	+ OAS_url +	'adstream_mjx.ads/'	+ OAS_sitepage + '/1' +	OAS_rns	+ '@' +	OAS_listpos	+ '?' +	OAS_query +	'"><\/SCRIPT>');
	}  
}

// Part	3
function OAS_AD(pos) {
	try	{
		if (OAS_version	>= 11)
		{
			OAS_RICH(pos);
		}
		else
		{
			OAS_NORMAL(pos);
		}
  }
  catch	(ex) {
  }
}

// OAS Setup END

// HBX DEFAULT SETUP BEGIN
var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="ehg-africanexecutive.com";

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES
hbx.acct="DM5409202MWW83EN3";//ACCOUNT NUMBER(S)
hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)
hbx.mlc="CONTENT+CATEGORY";//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="title";//DEFAULT PAGE NAME
hbx.ctdef="full";//DEFAULT CONTENT CATEGORY

//OPTIONAL PAGE VARIABLES
//ACTION SETTINGS
hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
//hbx.lt="none";//LINK TRACKING
hbx.lt="auto";//LINK TRACKING
hbx.dlf="n";//DOWNLOAD FILTER
hbx.dft="n";//DOWNLOAD FILE NAMING
hbx.elf="n";//EXIT LINK FILTER

//SEGMENTS AND FUNNELS
hbx.seg="";//VISITOR SEGMENTATION
hbx.fnl="";//FUNNELS

//CAMPAIGNS
hbx.cmp="";//CAMPAIGN ID
hbx.cmpn="";//CAMPAIGN ID IN QUERY
hbx.dcmp="";//DYNAMIC CAMPAIGN ID
hbx.dcmpn="";//DYNAMIC CAMPAIGN ID IN QUERY
hbx.dcmpe="";//DYNAMIC CAMPAIGN EXPIRATION
hbx.dcmpre="";//DYNAMIC CAMPAIGN RESPONSE EXPIRATION
hbx.hra="";//RESPONSE ATTRIBUTE
hbx.hqsr="";//RESPONSE ATTRIBUTE IN REFERRAL QUERY
hbx.hqsp="";//RESPONSE ATTRIBUTE IN QUERY
hbx.hlt="";//LEAD TRACKING
hbx.hla="";//LEAD ATTRIBUTE
hbx.gp="";//CAMPAIGN GOAL
hbx.gpn="";//CAMPAIGN GOAL IN QUERY
hbx.hcn="";//CONVERSION ATTRIBUTE
hbx.hcv="";//CONVERSION VALUE
hbx.cp="null";//LEGACY CAMPAIGN
hbx.cpd="";//CAMPAIGN DOMAIN

//CUSTOM VARIABLES
hbx.ci="";//CUSTOMER ID
hbx.hc1="";//CUSTOM 1
hbx.hc2="";//CUSTOM 2
hbx.hc3="";//CUSTOM 3
hbx.hc4="";//CUSTOM 4
hbx.hrf="";//CUSTOM REFERRER
hbx.pec="";//ERROR CODES

// HBX DEFAULT SETUP END



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr;	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages()	{ //v3.0
  var d=document; if(d.images){	if(!d.MM_p)	d.MM_p=new Array();
	var	i,j=d.MM_p.length,a=MM_preloadImages.arguments;	for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image;	d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) {	//v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length)	{
	d=parent.frames[n.substring(p+1)].document;	n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x	&& d.getElementById) x=d.getElementById(n);	return x;
}

function MM_swapImage()	{ //v3.0
  var i,j=0,x,a=MM_swapImage.arguments;	document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src;	x.src=a[i+2];}
}


try{
  if (window.parent.frames.length >	0){
	if (window.parent.frames[1].name !=	"blogFrame") {
	  window.parent.location.href =	location.href;
	}
  }
}
catch(error){}