function adArray_square() {
	
	var url = "/xml/square-200x200.xml";
	var xhr_object = new XMLHttpRequest;
    xhr_object.open("GET", url, false);
    xhr_object.send();
	
	xmlDoc=xhr_object.responseXML;
	//alert(xmlDoc);
	x=xmlDoc.getElementsByTagName("image");
	for (i=0;i<x.length;i++)
	  {
	  	this[i] = new Object();
		this[i].src = xmlDoc.getElementsByTagName("image")[i].childNodes[0].nodeValue;
		this[i].href = xmlDoc.getElementsByTagName("url")[i].childNodes[0].nodeValue;
	  }
 	this.length = i;
}	

function rotateSponsor_square(rotateDiv,timeOut) {
 if (document.images) {
  ad_num = (ad_num+1)%ads.length;
  document.getElementById(rotateDiv).innerHTML = '<a name=rotateLink href="'+ads[ad_num].href+'"><IMG SRC="'+ads[ad_num].src+'" '
+' WIDTH="100" HEIGHT="100" BORDER="0" name="js_ad_square" class="tableborder"></a>'
  setTimeout("rotateSponsor_square('"+rotateDiv+"','"+timeOut+"')",timeOut);
 }
}
	
var ads = new adArray_square();
 
document.getElementById('adBlock_square').innerHTML = '<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD><div id="rotateAd_square"><A HREF="'+ads[ad_num].href+'"><IMG SRC="'+ads[ad_num].src+'" '+' WIDTH="100" HEIGHT="100" BORDER="0" name="js_a_squared" class="tableborder"></A></div></TD></TR></TABLE>';
ad_num = (ad_num+1)%ads.length;
document.getElementById('adBlock_square2').innerHTML = '<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD><div id="rotateAd_square2"><A HREF="'+ads[ad_num].href+'"><IMG SRC="'+ads[ad_num].src+'" '+' WIDTH="100" HEIGHT="100" BORDER="0" name="js_a_squared" class="tableborder"></A></div></TD></TR></TABLE>';
ad_num = (ad_num+1)%ads.length;
document.getElementById('adBlock_square3').innerHTML = '<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD><div id="rotateAd_square3"><A HREF="'+ads[ad_num].href+'"><IMG SRC="'+ads[ad_num].src+'" '+' WIDTH="100" HEIGHT="100" BORDER="0" name="js_a_squared" class="tableborder"></A></div></TD></TR></TABLE>';


setTimeout("rotateSponsor_square('rotateAd_square','2000')",2000);
setTimeout("rotateSponsor_square('rotateAd_square2','2200')",2200);
setTimeout("rotateSponsor_square('rotateAd_square3','2300')",2300);
// -->
