//lf.js v0.9.0 (c)2011 Ferdinand Liu [GNU Lesser GPL v3]
//http://code.google.com/p/lf-js/
D=document;W=window;sR=0;M=Math;IE=('\v'=='v');
function N(n){return !isNaN(n)}
function O(v){return v==null}
function trim(s){if(s&&s.length>0)return s.replace(/^\s|\s$/,'');else return ''}
function I(f){return parseInt(f)}
function div(a,b){return I(a/b)}
function rep(f,r,s){return s.replace(new RegExp(f,'g'),r)}
function CF(f){if(typeof(f)=='function')f()}
function _iO(e){return typeof(e)=='object'}
function fe(a,f){for(var i=0;i<a.length;i++)f(a[i])}
function _(i){if(!_iO(i))i=D.getElementById(i);return i}
function _h(i,h){i=_(i);if(O(i))return;if(!O(h)){i.innerHTML=h;CF(sR);return i}else return i.innerHTML}
function _a(i,a,v){i=_(i);if(v){i.setAttribute(a,v);return i}return i.getAttribute(a)}
function _t(t){return D.getElementsByTagName(t)}
function _C(e,c){var n=_(e).className;return (c==n)||((' '+n+' ').indexOf(' '+c+' ')>-1)}
function _CA(e,c){if(!_C(e,c))_(e).className=trim(_(e).className+' '+c);return e;}
function _CR(e,c){if(_C(e,c))_(e).className=trim(_(e).className.replace(c,''))}
function __(t){return D.createElement(t)}
function _ac(p,c){p.appendChild(c);return c}
function _z(e){e=_(e);if(e)e.parentNode.removeChild(e)}
function _V(e,v,f){e=_(e);if(e.addEventListener)e.addEventListener(v,f,false);else e.attachEvent('on'+v,f)}
function _VC(e){e=e?e:W.event;if(e.stopPropagation)e.stopPropagation();if(e.preventDefault)e.preventDefault();e.cancelBubble=e.cancel=!0;return e.returnValue=!1}
function _VR(e,v,f){e=_(e);if(e.removeEventListener)e.removeEventListener(v,f,!1);else e.detachEvent('on'+v,f)}
function $V(e,v){e=_(e);if(v){e.value=v;return e};return e.value}
function _L(e,u,f){e=_(e);_a(e,'src',u);if(f){_V(e,'load',f)}}
function _S(u,cb,t){var s=_a(__('script'),'type','text/javascript'),H=_t('head')[0],d=1,f=function(){if(d){d=0;if(cb)cb();if(t)_z(s)}};_ac(H,s);_L(s,u,f);if(IE)setTimeout(f,1000);}
function _c(c){var r=[];fe(_t('*'),function(e){if(_C(e,c))r.push(e);});return r}
function _s(e,s){_a(e,'style',s)}
function _d(i){return _(i).style.display}
function show(i){_(i).style.display='block';CF(sR)}
function hide(i){_(i).style.display='none';CF(sR)}
function _X(e,f){_V(e,'click',f)}
function XD(i){var a='A'+i;if(_C(a,'H')){hide(i);_CR(a,'H');}else{show(i);_CA(a,'H');}return false}
function c$$(c){var e=c.charAt(c.length-1),i=(e=='}'),a;if(i&&!IE){a=__('style');a.innerText=c;}else{if(i)c='data:text/css,'+escape(c);a=_a(_a(__('link'),'rel','stylesheet'),'href',c)};_ac(_t('head')[0],a)}
(function(){var a,f,m='DOMContentLoaded',r='onreadystatechange',l='load',z=!1;if(A=W.addEventListener){a=function(g){A(m,g,z);A(l,g,z)};f=function(g){R=W.removeEventListener;R(m,g,z);R(l,g,z)}}else{if(A=D.attachEvent){a=function(g){A(r,g);A(l,g)};f=function(g){R=D.detachEvent;R(r,g);R(l,g)}}}var e=null,b=z;function d(){b=true;f(d);if(!e){return}for(var g=0;g<e.length;g++)e[g]();e=null}function c(g){if(b){g();return}if(!e){e=[];a(d)}e.push(g)}W.OnReady=W.$R=c})();
function VP(t){var b=_t('body')[0],i='img',s=__('div'),l=__(i),i=__(i),y;
_s(s,'position:absolute;left:0;top:0;right:0;bottom:0;background:transparent url(//www.keran.org/Q/img/t.png);text-align:center;z-index:999;');_ac(b,s);
_L(l,'/img/loading.gif',function(){_s(l,'margin-top:'+div(s.offsetHeight-i.height,2)+'px');_ac(s,l);_L(i,t,function(){y=div(s.offsetHeight-i.height,2);y=(y>0)?y:0;_s(i,'border:5px solid #fff;max-width:95%;max-height:95%;margin-top:'+y+'px');_z(l);_ac(s,i);});});Z=function(){_z(s);};_X(i,Z);_X(s,Z);}