var B="box";var C="open";var M=["Add to","Remove from"];var fGP=true;var add_feed="";var OB=new Array();function oB(l,i,c,o){var p=Iol(l,B,"div");if(CN(p,C)){l1l(p,C)}else{l0i(p,C);aE(p,i,l,c,o)};return false};function aE(p,i,l,c,o){if(IIl(p,"edit","div")!==false)return false;var e=document.createElement("div");l0i(e,"edit");r=o1a(l);var a='<span>Selected RSS Feed</span><form><div><input type="button" class="hp" onclick="aHP(this,'+i+','+c+','+o+')" value="'+M[iHP(i)]+' Homepage" />';if(IE&&TB_INSTALL_URL!=""){var txt=(iT())?M[iTB(r)]+' RSS Feed Reader':'Add to Your Desktop';a+='<input type="button" class="tb" onclick="aTB(this,'+"'"+r+"'"+')" value="'+txt+'" />'};a+='<input type="button" onclick="oB(this)" value="Cancel" /></div></form><div class="clear">&#160;</div>';e.innerHTML=a;var pp=IIl(p,"in","div")[0];pp.parentNode.insertBefore(e,pp);if(iT()){var tb=IIl(e,"tb","input");if(tb){OB[OB.length]=tb[0];window.setTimeout("llI("+(OB.length-1)+",'"+r+"')",500)}}};function llI(tb,r){if(OB[tb]){
var i=iTB(r);if(!OB[tb].disabled||i==1||(OB[tb].alt=="30"&&i==0)){OB[tb].disabled=false;OB[tb].alt="";OB[tb].value=M[i]+' RSS Feed Reader'};if(OB[tb].alt!="")OB[tb].alt++;window.setTimeout("llI("+tb+",'"+r+"')",500)}};function l0a(p){var e=IIl(p,"edit","div");if(e!==false){p.removeChild(e[0])}};function gPS(){var c=(fGP)?Ili("CMS","PageSet"):null;fGP=false;if(c==""||c==null)c=document.getElementById("DP").value;return c};function sPS(v){v=v.replace(/[\|]+$/,"");c=document.getElementById("DP");c.value=v;HRload(server+"a=sps&p="+v,HR(),false,null)};function chV(b,a,c){var r=new RegExp(M[a]);b.value=b.value.replace(r,M[c])};function iHP(i){var c=gPS();var r=new RegExp("\\|"+i+"~1");if(c.search(r)>-1) return 1;else return 0};function iTB(p){if(tbr.GetText('RSS','CHECK_FEED_URL',p)==1)return 1;else return 0};function aHP(b,i,c,o){var s=gPS().replace(/[|]+$/,"").split("|");if(iHP(i)==0){var r;if(s.length==1)s[s.length]="";for(r=2;r<s.length;r++){if(s[r]=="")break};r++;if(r>=s.length){
s[s.length]="";r=s.length};var n,con;if(s.length-r-1<r-3){n=r;if(s[n+1])n++;con=0}else{n=2;con=2};var nb=i+"~1^"+o+"^"+c+"^1";o1O=s.slice(0,n).concat([nb]).concat(s.slice(n,s.length));sPS(o1O.join("|"));chV(b,0,1)}else{var re=new RegExp("^"+i+"~");var o1O=new Array(s[0],s[1]);for(var j=2;j<s.length;j++){if(s[j].search(re)==-1)o1O[o1O.length]=s[j]};sPS(o1O.join("|"));chV(b,1,0)}};function redrawWindow(){alert("RSS Reader plugin is now successfully installed.\nCurrent Internet Explorer window must be refreshed!");location.replace(document.URL)};function do_add(){if(RSS()){if(add_feed!=""){Ioi("AddFeed",add_feed,20);setTimeout("redrawWindow()",100)};add_feed=""}else setTimeout("do_add()",100)};function aTB(b,p){if(!iT()){Ioi("AddFeed",p,20);location.replace (TB_INSTALL_URL+escape((document.URL).replace(/=/g,"**")).replace(/\./g,"*").replace(/\?/g,"%3F"));return false};if(!RSS() || tbr.GetText('RSS','CHECK_FEED_URL',p)==""){add_feed=p;if(!confirm("You need to install the RSS Reader plugin to be able add RSS feed to your toolbar.\nDo you wish to install it now?"))return false;
instRSS();alert("RSS Reader plugin instalation are in progress.\nPlease wait...");return false};var i=tbr.GetText('RSS','CHECK_FEED_URL',p);if(i==0){tbr.GetText('RSS','ADD_FEED',p);b.alt="1";b.value="Please Wait...";b.disabled=true}else{tbr.GetText('RSS','REMOVE_FEED_URL',p)}};function instRSS(){tbr.InstallPluginEx("RSS","RSS plugin file",RSS_PLUGGIN_PATH,"%APPPATH%\\",1,0);tbr.ApplySettings('PLUGIN_INSTALL');do_add()};if(IE){document.write("<"+"OBJECT classid='clsid:8736C681-37A0-40C6-A0F0-4C083409151C' ID=tbr width=0 height=0></OBJECT>")};function RSS(){return(iT()&&(tbr.GetFileVer('RSS')!='0.0.0.0'&&tbr.GetFileVer('RSS')!='255.255.255.255'))?true:false};function iT(){if(IE&&typeof(tbr.GetDllVer)!=='undefined'&&tbr.GetFileVer("APP") !='0.0.0.0') return true;else return false};setTimeout("aF()",100);function aF(){if(iT()){var a=Ili("AddFeed");if(a!=null&&a!=""){if(RSS()){var i=tbr.GetText('RSS','CHECK_FEED_URL',a);if(i==0)tbr.GetText('RSS','ADD_FEED',a)}else{add_feed=a;instRSS();
};Ioi("AddFeed","","-1")}}};l0i(document.body,"dd_loaded");isLoaded=true;function HR(){var O0L=false;if(window.XMLHttpRequest) O0L=new XMLHttpRequest();else try {O0L=new ActiveXObject("Microsoft.XMLHTTP")}catch(er){O0L=new O1()}return O0L};function HRload(ll,hr,usecache,el,Ooo){if(usecache==null) usecache=true;var f=-1;if(usecache) for (var i=0;i<OOI.length;i++){if(OOI[i][0]==ll){f=i;break}}if(f!=-1){HRfill(el,OOI[f][1],Ooo)}else{if(el!=null && el.tagName) switch (el.tagName.toLowerCase()){case "select": fillS(el,"-1~Loading...","|","~","0");break}hr.open("GET",ll,true);hr.onreadystatechange=function(){if(hr.readyState==4) if(hr.status==200){if(el !=null){OOI[OOI.length]=Array(ll,hr.responseText);HRfill(el,hr.responseText,Ooo)}} else alert("Connection Error.\n"+hr.status)};hr.send(null)}};function O1(){this.method="POST";this.ll=null;this.async=true;this.iframe=null;this.responseText=null;this.lOo=new Object();this.id="I11"+new Date().getTime()+new Date().getMilliseconds()+Math.random();this.container=document.body;this.I1a=404}O1.prototype.open=function(method, ll, async){this.method=method;this.ll=ll;this.async=async;this.readyState=0;this.iframe=document.createElement("iframe");this.iframe.style.visibility="hidden";this.iframe.style.display="none";this.iframe.id=this.id;if(document.getElementById(this.id)==null)this.container.appendChild(this.iframe);this.setRequestHeader("___xmlhttp", "iframe")};
O1.prototype.setRequestHeader=function(name, value){this.lOo[name]=value};O1.prototype.send=function(data){if(this.method.toLowerCase()=="post"){var html=[];html[html.length]='<html><body><form method="'+this.method+'" action="'+this.ll+'">';for(name in this.lOo)html[html.length]='<textarea name="'+name+'">'+this.lOo[name]+'</textarea>';if(data !=null && data.length > 0)html[html.length]='<textarea name="_data">'+data+'</textarea>';html[html.length]='<s'+'cript>document.forms[0].submit();</s'+'cript>';html[html.length]='</form></body></html>'}this.iframe.Il=this;this.iframe.Il.IoI=-1;this.iframe.Il.responseText=null;this.iframe.onreadystatechange=this.lli;if(this.method.toLowerCase()=="post")this.iframe.src="javascript:document.write('"+html.join('').replace(/\'/g,"\\'").replace(/\r\n/g, "\\r\\n")+"');void(0);";else this.iframe.src=this.ll};O1.prototype.lli=function(){this.Il.IoI++;if(this.Il.IoI < 1) return;if(this.Il.IoI==1){this.Il.readyState=1}else if(this.Il.IoI > 1){switch(this.readyState.toString()){case "loading": this.Il.readyState=2;break;case "interactive": this.Il.readyState=3;break;case "complete":var h=window.frames[this.id].document.childNodes[0].childNodes[1].innerHTML;if(h !=null) this.Il.status=200;this.Il.responseText=h;this.onreadystatechange=function(){};this.Il.readyState=4;break}} if(typeof(this.Il.onreadystatechange)=="function")this.Il.onreadystatechange()};
var server="userpage.aspx?";if(!RSS_PLUGGIN_PATH)var RSS_PLUGGIN_PATH="";if(!TB_INSTALL_URL)var TB_INSTALL_URL="";function o1a(el){var href;href=el.getAttribute("href");return href.substr(href.lastIndexOf("#")+1)};function Ili(n,O11){var a=document.cookie.split("; "); for(var i=0; i < a.length; i++){ var f=a[i].indexOf(n+"="); if(f>-1){ var c=a[i].substr(f+(n+"=").length); if(O11==null || O11=="") return unescape(c); var b=c.split("&"); for(var j=0; j < b.length; j++){d=b[j].split("=");if(O11==d[0]){return unescape(d[1])}}}} return null};function Ioi(n,v,d){var lOO=new Date(); var l1I=new Date(); if(d==null || d==0) d=1; l1I.setTime(lOO.getTime()+600000*d); document.cookie=n+"="+escape(v)+";expires="+l1I.toGMTString()}

