JX.namespace("OpenID");OpenID.openWindow=function(D){$("body").css({opacity:"0.5"});var C=parseInt((window.screen.height-500)/2);var A=parseInt((window.screen.width-800)/2);C=(C>0)?C:0;A=(A>0)?A:0;var B=window.open(D,"OPWindow","location=1, scrollbars=1, width=800, height=500, top="+C+", left="+A);$(window).bind("focus",function(){setTimeout(function(){if(B.closed){$("body").css({opacity:"1"})}},200)})};OpenID.closeWindow=function(){$("body").hide();window.location="myfeeds.php"};OpenID.button=function(A,B,C){return new JX.Container({width:250,height:24,click:function(D){D.stopPropagation();D.preventDefault();OpenID.openWindow("index.php?openid_identifier="+C)},bind:[C,function(){this.show()}],css:{backgroundImage:"url(images/21.png)",fontSize:"14px",fontWeight:"bold",cursor:"pointer"},html:'<div style="padding: 1px 0 0 10px"><img src="'+A+'" style="border:0;position:relative;top:3px;"/> '+B+"</div>",scopeThis:true})};OpenID.getLoginBox=function(){return new JX.Container({width:250,css:{padding:"10px",backgroundColor:"#eeeeee"},onLayout:function(){var A=parseInt((this._parent.width()-this.width())/2)+"px";this.css({position:"relative",left:A})},scopeThis:true,items:[{jxtype:"container",css:{fontWeight:"bold"},html:"Sign in with your"},{height:10},{jxtype:"container",bind:["hideall",function(){for(var A=0;A<this._items.length;A++){this._items[A].hide()}}],items:[OpenID.button("images/yahoo16.png","Yahoo Account","yahoo.com"),OpenID.button("images/myopenid16.png","myOpenID Account","myopenid.com"),OpenID.button("images/google16.png","Google Account","gmail.com")],scopeThis:true},{css:{fontSize:"11px"},html:"&nbsp;(Opens in a New Window)"},{height:20},{jxtype:"selectfield",width:250,css:{borderColor:"red",fontSize:"13px",fontWeight:"bold"},change:function(){var B=$("option:selected",this).text();var A=this.val();if(A!="select"){OpenID.LoginBox.trigger("hideall");OpenID.LoginBox.trigger(A)}},scopeThis:true,html:'<option value="select">I want to use a different Account</option><option value="gmail.com">Google Account</option><option value="myopenid.com">myOpenID Account</option><option value="yahoo.com">Yahoo Account</option>'},{height:20},{jxtype:"container",items:[{jxtype:"a",attr:{href:""},css:{fontSize:"13px",fontWeight:"bold"},click:function(A){A.stopPropagation();A.preventDefault();OpenID.LoginBox.trigger("shownewaccount")},html:"Help me Sign In"},{hide:null,bind:["shownewaccount",function(){this.show("slow")}],css:{fontSize:"13px",backgroundColor:"#cccccc",padding:"5px"},html:"You will need one of these accounts. Select an Account you like. Proceed with the Sign In to the Account's site. You can create an Account there.",scopeThis:true}]}]})};OpenID.LoginBox=OpenID.getLoginBox()