var http = false;
if(navigator.appName == "Microsoft Internet Explorer") {
    http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
	http = new XMLHttpRequest();
}

function featured_autoload()
{
	// ajax to reload from server
	http.open("POST", "auto-reload/featured_reload.php?l=3", true);
    http.onreadystatechange=function() {
    	if(http.readyState == 4) {
    		document.getElementById('featured_families').innerHTML = http.responseText;
    	}
    }
    http.send(null);
}

// initial call
featured_autoload();
// continued call
var featured_families_interval = setInterval('featured_autoload()', 6000);
