if ( !window.$ )$ = function(id){return document.getElementById(id);};rbn = {signedIn: false,ses: '',act: 0,addEvent: function(obj,ev,func,useCapture){if ( obj.addEventListener )obj.addEventListener(ev,func,useCapture);else if ( obj.attachEvent )obj.attachEvent('on'+ev,function(){func.call(obj,event);});else obj['on'+ev] = func;},removeEvent: function(obj,ev,func,useCapture){if ( obj.removeEventListener )obj.removeEventListener(ev,func,useCapture);else if ( obj.detachEvent )obj.detachEvent('on'+ev,function(){func.call(obj,event);});else obj['on'+ev] = function(){};},searchForm: {defaultQuery: '',focusEvent: function(ref){if ( ref.value==rbn.searchForm.defaultQuery )ref.value = '';ref.className = 'search-focused';},blurEvent: function(ref){if ( ref.value=='' )ref.value = rbn.searchForm.defaultQuery;ref.className = 'search-blurred';}},logClick: {url: '',ev: function(event){var x = 0;var y = 0;if ( rbn.documentClick.ie ){x = event.clientX + document.body.scrollLeft;y = event.clientY + document.body.scrollTop;}else {x = event.pageX;y = event.pageY;}if ( x<0 )x = 0;if ( y<0 )y = 0;var ajaxURL = '/ajax.php?global';ajaxURL += '&action=log_click';ajaxURL += '&loc=' + escape(window.location);ajaxURL += '&x=' + x;ajaxURL += '&y=' + y;ajaxURL += '&ses=' + rbn.ses;ajaxURL += '&act=' + rbn.act;ajaxURL += '&url=' + escape(rbn.logClick.url);ajaxURL += '&ms=' + new Date().getTime();var xmlHttp = rbn.getXMLHttp();xmlHttp.open( 'GET' , ajaxURL , true );xmlHttp.onreadystatechange = function(){};xmlHttp.send( null );for (var i=0; i<100000; i++)var j = Math.sqrt(i);}},documentClick: {ie: document.all?true:false,ev: function(e){if ( rbn.logClick.url=='' )rbn.logClick.ev(e);}},anchorClick: {ev: function(e){rbn.logClick.url = this.href;rbn.logClick.ev(e);}},getXMLHttp: function(){var xmlHttp;try {xmlHttp = new XMLHttpRequest();}catch(e){try {xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try {xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}catch(e){return null;}}}return xmlHttp;},attachHint: function(obj,hint,width,height){if ( typeof rbn.attachHint.hintIndex=='undefined' )rbn.attachHint.hintIndex = 0;obj.paragraphs = hint.split("\n");obj.hintIndex = rbn.attachHint.hintIndex++;rbn.addEvent( obj , 'mouseover' , function(){var hintBoxId = 'js_hint_box' + this.hintIndex,hintBox = $(hintBoxId);if ( hintBox )hintBox.style.display = 'block';else {hintBox = document.createElement('div');hintBox.id = hintBoxId;hintBox.className = 'hint-box';hintBox.style.top = (this.offsetTop + this.offsetHeight) + 'px';hintBox.style.left = this.offsetLeft + 'px';hintBox.style.width = (width) ? ((width-4) + 'px') : 'auto';hintBox.style.height = (height) ? ((height-4) + 'px') : 'auto';for (var i=0; i<this.paragraphs.length; i++){var p = document.createElement('p');p.className = (i==0) ? 'first-hint' : '';p.appendChild( document.createTextNode(this.paragraphs[i]) );hintBox.appendChild(p);}document.body.appendChild(hintBox);}hintBox.style.top = (this.offsetTop + this.offsetHeight) + 'px';hintBox.style.left = this.offsetLeft + 'px';} );rbn.addEvent( obj , 'mouseout' , function(){var hintBox = $('js_hint_box' + this.hintIndex);if ( hintBox )hintBox.style.display = 'none';} );}};rbn.addEvent( window , 'load' , function(){rbn.addEvent(document,'click',rbn.documentClick.ev);var anchors = document.getElementsByTagName('a');for (var i=0; i<anchors.length; i++)rbn.addEvent(anchors[i],'mousedown',rbn.anchorClick.ev);if ( document.body.offsetWidth>1130 )$('js_welcome_note').style.bottom = '20px';else if ( document.body.offsetWidth>950 )$('js_welcome_note').style.bottom = '55px';else $('js_welcome_note').style.bottom = '70px';} );