/* (c) 2006 Field of View (www.fov.ru) */ function Interactive(target){this.target;this.http;this.ready;this.__construct=function(target){this.target=CLR.GetObject(target);this.http=this.GetHTTP();this.ready=true;};this.GetHTTP=function(){var http;if(window.XMLHttpRequest){return new XMLHttpRequest();}else if(window.ActiveXObject){try{return new ActiveXObject('MSXML2.XMLHTTP');}catch(e){}try{return new ActiveXObject('Microsoft.XMLHTTP');}catch(e){}}};this.Get=function(url,post){if(this.ready){this.ready=false;if(post){post=CLR.ArrayToQuery(post);this.http.open('POST',url,true);self1=this;this.http.onreadystatechange=function(){self1.OnStateChange();};this.http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');this.http.setRequestHeader('Content-Length',post.length);this.http.setRequestHeader('Connection','close');this.http.send(post);}else{this.http.open('GET',url,true);self1=this;this.http.onreadystatechange=function(){self1.OnStateChange();};this.http.send(null);}}};this.OnStateChange=function(){if(this.http.readyState==4){var doc;if(this.http.status==200){this.target.innerHTML=this.http.responseText.replace(/^\<\?[^\>]+\?\>\s*\<[^\>]+\>\s*(.*?)\s*\<\/\w+\>\s*$/g,'$1');}/*else alert(this.http.responseText);*/this.ready=true;}};this.__construct(target);}