var xmlfile="/ATC_RightButtons.aspx?pid=";var rb_div=new Array();var AJAX=(function(a){return function(b){var c=a();c.open("GET",b,false);c.send("");return c}})(this.XMLHttpRequest?function(){return new XMLHttpRequest}:function(){return new ActiveXObject("Microsoft.XMLHTTP")});function get_qs(e){var d="";var b=new Array();var a=location.search.substr(location.search.indexOf("?")+1);a=a.split("&");for(var c=0;c<a.length;c++){tmp=a[c].split("=");b[tmp[0].toLowerCase()]=tmp[1]}if(typeof b[e.toLowerCase()]!="undefined"){d=b[e.toLowerCase()]}return(d)}function get_right_buttons(){var a=AJAX(xmlfile+listingID);if(a.status==200){rb_div=a.responseXML.getElementsByTagName("buttons").item(0).getElementsByTagName("div")}if(rb_div.length>0){var b="";for(i=0;i<rb_div.length;++i){b+=rb_div[i].getElementsByTagName("content").item(0).firstChild.nodeValue}document.getElementById("atc_right_buttons").innerHTML=b}}var listingID=get_qs("listingid");if(listingID!=""){setTimeout("get_right_buttons()",100)};