
function intOpen(url,n,w,h,s,f) {
        //throws  ie4 exception and opens a request into parent window.
		window.onerror = windowException;
        gErrorUrl = url;
        //window properties
var winprops = "copyhistory=no,toolbar=no,menubar=" + f + ",location=no,status=no,";
    winprops += "scrollbars=" + s + ",resizable=no,width=" + w + ",height=" + h + ",personalbar=no";
        //opens window
		openwin = window.open(url, n, winprops);
        if (!openwin.opener) openwin.opener = self;
        if (openwin.focus != null) openwin.focus();
        gErrorUrl = "";
                                          }
var gErrorUrl="";
//error handler
function windowException() {
    if (gErrorUrl != "") {
        location.href = gErrorUrl;
        return true;
                                   }
    else {
        return false;
         	}
                                              }

/*  to call:                                                                                                 */
/* <a href="javascript:intOpen('url','name','width','height','scrollbars')" class="article">e-mail this article to a friend!</a> */

/*<A class=center href="javascript:intOpen('choose.cfm','choose','200','200','no')">Get the latest news, currency, weather<br> and other important information from your African country of choice.</a><!-- <A class=center href="javascript:void(window.open('choose.cfm','choose','HEIGHT=200,WIDTH=200,windowpart=yes,scrollbars=no'));">Get the latest news, currency, weather<br> and other important information from your African country of choice.</A> -->
*/


/******************************************************************************************/

/*bookmark*/

var agt = navigator.userAgent.toLowerCase(); 
var is_ie   = (agt.indexOf("msie") != -1); 
var is_major = parseInt(navigator.appVersion); 
var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0") == -1)); 
var is_ie5 = (parseInt(navigator.appVersion) >= 5 || navigator.appVersion.indexOf("MSIE 5") != -1);
var is_mac    = (agt.indexOf("mac")!=-1);
var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1)); 
var is_nav5up = (is_nav && (is_major >= 5)); 

function makeDefault() {
		if (is_ie5 && is_win && !is_nav5up) {
				home.style.behavior = 'url(#default#homepage)';
				home.setHomePage('http\:\/\/www.africast.com');
						}
		else if (is_ie4 && is_win || is_mac) {
				location.href = "http://www.africast.com/hp_help.cfm";	
								}
		//else if (is_mac) {
		//		location.href = "http://www.africast.com/hp_help.cfm";
		//						}						
		else {
				location.href = "http://www.africast.com/hp_help.cfm";
				}
				                         }	
	
/* write xml if ie5 */
if (is_ie5 || !is_mac) {
document.write('\<ie\:homepage id\="home" \/\>');
				}

// to use

//<a href="javascript:afrihp();">set</a>								
								
								
/******************************************************************************************/							
