<!--

var http = false;
// var sPath = window.location.pathname;
// var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
  if(navigator.appVersion.indexOf("6.0")>0) {
  	http = false;
  }
} else {
  http = new XMLHttpRequest();
} 

function timedreplaceteaser(appPath, catPath){
	// alert(appPath);
	// alert(catPath);
	// param catName is no longer supported. this is decided in TeaserAction
	if(http) {
		requestUrl=appPath+"?cacheHack="+ Math.random();
		window.setTimeout("replace('" + requestUrl + "')",8000);
	}
}
function replace(requestUrl) {
	//alert(requestUrl);
  http.open("GET",requestUrl+"&IEHack="+Math.random(), true);
 
  http.onreadystatechange=function() {
    if(http.readyState == 4) {
      document.getElementById('teaser_item_top').innerHTML = http.responseText;
    }
  }
  http.send(null);
  window.setTimeout("replace('" + requestUrl + "')",8000);
}
//-->
