//specify path to your external page:
var iframesrc="/testimonials.html"
//You may change most attributes of iframe tag below, such as width and height:
document.write('<div id="datamain" width="100%" height="150px" style="max-width:200px;max-height:150px;min-height:150px;position:relative;overflow:hidden;"></div>');
if(window.XMLHttpRequest) {
	xhttp = new XMLHttpRequest();
} else if (window.ActiveXObject) {
	xhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
if(xhttp) {
	xhttp.open('GET', '/testimonials.html');
	xhttp.onreadystatechange = function() {
		if(xhttp.readyState == 4) {
			if(xhttp.status == 200) {
				if(document.getElementById('datamain')) {
					document.getElementById('datamain').innerHTML = xhttp.responseText;
					initializeScroller();
				}
			}
		}
	};
	xhttp.send();
}

/***********************************************
* IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=1

//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=800

function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}

function getdataheight(){
thelength=dataobj.offsetHeight
if (thelength==0)
setTimeout("getdataheight()",10)
else
scrollDiv()
}

function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}
