lines	 = new Array();
lines[0] = "<font class=main_top>distinctive homes<br></font>";
lines[1] = "<font class=main_top>customized service<br></font>";
lines[2] = "<font class=main_top>experience you can trust<br></font>";
lines[3] = "<font class=main_sub><br><br><br>Representing<br>Buyers & Sellers<br>Residential, Commercial,<br>Land & New Home Expertise</font>";

var count=0;

function print_main() {
	print_html(count);
	count++;
	if (count < lines.length) {
		id = window.setTimeout("print_main()",750);
	} else { 
		return;
	}
}	

function print_html(count) {
	div = document.getElementById('main');
	div.innerHTML = div.innerHTML + lines[count];
}


var xmlhttp;
function loadData() {
        var url = 'http://www.dodsonpropertiesinc.com/featured_callout.htm';
        xmlhttp = null;
	window.setTimeout("loadData()",10000);

        // code for Mozilla, etc.
        if (window.XMLHttpRequest) {
                xmlhttp=new XMLHttpRequest();
        }
        // code for IE
        else if (window.ActiveXObject) {
                xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
        if (xmlhttp!=null) {
                xmlhttp.onreadystatechange=state_Change;
                xmlhttp.open("GET",url,true);
                xmlhttp.send(null);
        } else {
                alert("Your browser is not supported.");
        }
}

function state_Change() {
        // if xmlhttp shows "loaded"
        if (xmlhttp.readyState==4) {
                // if "OK"
                if(xmlhttp.status==200) {
                        // ...some code here...
                        // document.getElementById('main').innerHTML=xmlhttp.status
                        // document.getElementById('main').innerHTML=xmlhttp.statusText
			document.getElementById('featured').style.filter="blendTrans(duration=.5)";
			document.getElementById('featured').filters.blendTrans(duration=.5).Apply();
			document.getElementById('featured').filters.blendTrans.Play();
                        document.getElementById('featured').innerHTML=xmlhttp.responseText
                } else {
                        alert("Problem retrieving XML data");
                }
        }
}

