//-- Google Analytics Urchin Module
//-- Copyright 2005 Google, All Rights Reserved.
// Start: iGoogle settings
// Set specific settings for iGoogle to enable tracking for Google Gadgets.
var _ugifpath="http://www.google-analytics.com/__utm.gif";	// set the web path to the __utm.gif file
// The cookie path determines where cookies will be created.
// google.com/ does not allow cookies.  We need to create an exception here.
// Set cookie path to "/ig/" if path exists. Else, keep default value.
var _utcp="/";			// the default cookie path for tracking
if (location.pathname.match(/^\/ig(\/|$)/)) {
  _utcp="/ig/";
}
// End: iGoogle settings
//-- Urchin On Demand Settings ONLY
var _uacct="";			// set up the Urchin Account
var _userv=1;			// service mode (0=local,1=remote,2=both)
//-- UTM User Settings
var _ufsc=1;			// set client info flag (1=on|0=off)
var _udn="auto";		// (auto|none|domain) set the domain name for cookies
var _uhash="on";		// (on|off) unique domain hash for cookies
var _utimeout="1800";   	// set the inactive session timeout in seconds
var _utsp="|";			// transaction field separator
var _uflash=1;			// set flash version detect option (1=on|0=off)
var _utitle=1;			// set the document title detect option (1=on|0=off)
var _ulink=0;			// enable linker functionality (1=on|0=off)
var _uanchor=0;			// enable use of anchors for campaign (1=on|0=off)
var _usample=100;		// The sampling % of visitors to track (1-100).
//-- UTM Campaign Tracking Settings
var _uctm=1;			// set campaign tracking module (1=on|0=off)
var _ucto="15768000";		// set timeout in seconds (6 month default)
var _uccn="utm_campaign";	// name
var _ucmd="utm_medium";		// medium (cpc|cpm|link|email|organic)
var _ucsr="utm_source";		// source
var _uctr="utm_term";		// term/keyword
var _ucct="utm_content";	// content
var _ucid="utm_id";		// id number
var _ucno="utm_nooverride";	// don't override
//-- Auto/Organic Sources and Keywords
var _uOsr=new Array();
var _uOkw=new Array();
_uOsr[0]="google";	_uOkw[0]="q";
_uOsr[1]="yahoo";	_uOkw[1]="p";
_uOsr[2]="msn";		_uOkw[2]="q";
_uOsr[3]="aol";		_uOkw[3]="query";
_uOsr[4]="aol";		_uOkw[4]="encquery";
_uOsr[5]="lycos";	_uOkw[5]="query";
_uOsr[6]="ask";		_uOkw[6]="q";
_uOsr[7]="altavista";	_uOkw[7]="q";
_uOsr[8]="search";	_uOkw[8]="q";
_uOsr[9]="netscape";	_uOkw[9]="s";
_uOsr[10]="cnn";	_uOkw[10]="query";
_uOsr[11]="looksmart";	_uOkw[11]="qt";
_uOsr[12]="about";	_uOkw[12]="terms";
_uOsr[13]="mamma";	_uOkw[13]="query";
_uOsr[14]="alltheweb";	_uOkw[14]="q";
_uOsr[15]="gigablast";	_uOkw[15]="q";
_uOsr[16]="voila";	_uOkw[16]="kw";
_uOsr[17]="virgilio";	_uOkw[17]="qs";
_uOsr[18]="live";	_uOkw[18]="q";
_uOsr[19]="baidu";	_uOkw[19]="wd";
_uOsr[20]="alice";	_uOkw[20]="qs";
_uOsr[21]="seznam";	_uOkw[21]="w";
_uOsr[22]="yandex";	_uOkw[22]="text";
_uOsr[23]="najdi";	_uOkw[23]="q";
//-- Auto/Organic Keywords to Ignore
var _uOno=new Array();
//_uOno[0]="urchin";
//_uOno[1]="urchin.com";
//_uOno[2]="www.urchin.com";
//-- Referral domains to Ignore
var _uRno=new Array();
//_uRno[0]=".urchin.com";
//-- **** Don't modify below this point ***
var _uff,_udh,_udt,_ubl=0,_udo="",_uu,_ufns=0,_uns=0,_ur="-",_ufno=0,_ust=0,_ubd=document,_udl=_ubd.location,_udlh="",_uwv="1";
var _ugifpath2="http://www.google-analytics.com/__utm.gif";
if (_udl.hash) _udlh=_udl.href.substring(_udl.href.indexOf('#'));
if (_udl.protocol=="https:") _ugifpath2="https://ssl.google-analytics.com/__utm.gif";
if (!_utcp || _utcp=="") _utcp="/";
function urchinTracker(page) {
 if (_udl.protocol=="file:") return;
 if (_uff && (!page || page=="")) return;
 var a,b,c,xx,v,z,k,x="",s="",f=0;
 var nx=" expires=Sun, 18 Jan 2038 00:00:00 GMT;";
 var dc=_ubd.cookie;
 _udh=_uDomain();
 if (!_uVG()) return;
 _uu=Math.round(Math.random()*2147483647);
 _udt=new Date();
 _ust=Math.round(_udt.getTime()/1000);
 a=dc.indexOf("__utma="+_udh);
 b=dc.indexOf("__utmb="+_udh);
 c=dc.indexOf("__utmc="+_udh);
 if (_udn && _udn!="") { _udo=" domain="+_udn+";"; }
 if (_utimeout && _utimeout!="") {
  x=new Date(_udt.getTime()+(_utimeout*1000));
  x=" expires="+x.toGMTString()+";";
 }
 if (_ulink) {
  if (_uanchor && _udlh && _udlh!="") s=_udlh+"&";
  s+=_udl.search;
  if(s && s!="" && s.indexOf("__utma=")>=0) {
   if (!(_uIN(a=_uGC(s,"__utma=","&")))) a="-";
   if (!(_uIN(b=_uGC(s,"__utmb=","&")))) b="-";
   if (!(_uIN(c=_uGC(s,"__utmc=","&")))) c="-";
   v=_uGC(s,"__utmv=","&");
   z=_uGC(s,"__utmz=","&");
   k=_uGC(s,"__utmk=","&");
   xx=_uGC(s,"__utmx=","&");
   if ((k*1) != ((_uHash(a+b+c+xx+z+v)*1)+(_udh*1))) {_ubl=1;a="-";b="-";c="-";xx="-";z="-";v="-";}
   if (a!="-" && b!="-" && c!="-") f=1;
   else if(a!="-") f=2;
  }
 }
 if(f==1) {
  _ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;
  _ubd.cookie="__utmb="+b+"; path="+_utcp+";"+x+_udo;
  _ubd.cookie="__utmc="+c+"; path="+_utcp+";"+_udo;
 } else if (f==2) {
  a=_uFixA(s,"&",_ust);
  _ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;
  _ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
  _ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;
  _ufns=1;
 } else if (a>=0 && b>=0 && c>=0) {
  _ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
 } else {
  if (a>=0) a=_uFixA(_ubd.cookie,";",_ust);
  else a=_udh+"."+_uu+"."+_ust+"."+_ust+"."+_ust+".1";
  _ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo;
  _ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;
  _ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;
  _ufns=1;
 }
 if (_ulink && xx && xx!="" && xx!="-") {
   xx=_uUES(xx);
   if (xx.indexOf(";")==-1) _ubd.cookie="__utmx="+xx+"; path="+_utcp+";"+nx+_udo;
 }
 if (_ulink && v && v!="" && v!="-") {
  v=_uUES(v);
  if (v.indexOf(";")==-1) _ubd.cookie="__utmv="+v+"; path="+_utcp+";"+nx+_udo;
 }
 _uInfo(page);
 _ufns=0;
 _ufno=0;
 _uff=1;
}
function _uInfo(page) {
 var p,s="",dm="",pg=_udl.pathname+_udl.search;
 if (page && page!="") pg=_uES(page,1);
 _ur=_ubd.referrer;
 if (!_ur || _ur=="") { _ur="-"; }
 else {
  dm=_ubd.domain;
  if(_utcp && _utcp!="/") dm+=_utcp;
  p=_ur.indexOf(dm);
  if ((p>=0) && (p<=8)) { _ur="0"; }
  if (_ur.indexOf("[")==0 && _ur.lastIndexOf("]")==(_ur.length-1)) { _ur="-"; }
 }
 s+="&utmn="+_uu;
 if (_ufsc) s+=_uBInfo();
 if (_uctm) s+=_uCInfo();
 if (_utitle && _ubd.title && _ubd.title!="") s+="&utmdt="+_uES(_ubd.title);
 if (_udl.hostname && _udl.hostname!="") s+="&utmhn="+_uES(_udl.hostname);
 s+="&utmr="+_ur;
 s+="&utmp="+pg;
 if ((_userv==0 || _userv==2) && _uSP()) {
  var i=new Image(1,1);
  i.src=_ugifpath+"?"+"utmwv="+_uwv+s;
  i.onload=function() {_uVoid();}
 }
 if ((_userv==1 || _userv==2) && _uSP()) {
  var i2=new Image(1,1);
  i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS();
  i2.onload=function() { _uVoid(); }
 }
 return;
}
function _uVoid() { return; }
function _uCInfo() {
 if (!_ucto || _ucto=="") { _ucto="15768000"; }
 if (!_uVG()) return;
 var c="",t="-",t2="-",t3="-",o=0,cs=0,cn=0,i=0,z="-",s="";
 if (_uanchor && _udlh && _udlh!="") s=_udlh+"&";
 s+=_udl.search;
 var x=new Date(_udt.getTime()+(_ucto*1000));
 var dc=_ubd.cookie;
 x=" expires="+x.toGMTString()+";";
 if (_ulink && !_ubl) {
  z=_uUES(_uGC(s,"__utmz=","&"));
  if (z!="-" && z.indexOf(";")==-1) { _ubd.cookie="__utmz="+z+"; path="+_utcp+";"+x+_udo; return ""; }
 }
 z=dc.indexOf("__utmz="+_udh);
 if (z>-1) { z=_uGC(dc,"__utmz="+_udh,";"); }
 else { z="-"; }
 t=_uGC(s,_ucid+"=","&");
 t2=_uGC(s,_ucsr+"=","&");
 t3=_uGC(s,"gclid=","&");
 if ((t!="-" && t!="") || (t2!="-" && t2!="") || (t3!="-" && t3!="")) {
  if (t!="-" && t!="") c+="utmcid="+_uEC(t);
  if (t2!="-" && t2!="") { if (c != "") c+="|"; c+="utmcsr="+_uEC(t2); }
  if (t3!="-" && t3!="") { if (c != "") c+="|"; c+="utmgclid="+_uEC(t3); }
  t=_uGC(s,_uccn+"=","&");
  if (t!="-" && t!="") c+="|utmccn="+_uEC(t);
  else c+="|utmccn=(not+set)";
  t=_uGC(s,_ucmd+"=","&");
  if (t!="-" && t!="") c+="|utmcmd="+_uEC(t);
  else  c+="|utmcmd=(not+set)";
  t=_uGC(s,_uctr+"=","&");
  if (t!="-" && t!="") c+="|utmctr="+_uEC(t);
  else { t=_uOrg(1); if (t!="-" && t!="") c+="|utmctr="+_uEC(t); }
  t=_uGC(s,_ucct+"=","&");
  if (t!="-" && t!="") c+="|utmcct="+_uEC(t);
  t=_uGC(s,_ucno+"=","&");
  if (t=="1") o=1;
  if (z!="-" && o==1) return "";
 }
 if (c=="-" || c=="") { c=_uOrg(); if (z!="-" && _ufno==1)  return ""; }
 if (c=="-" || c=="") { if (_ufns==1)  c=_uRef(); if (z!="-" && _ufno==1)  return ""; }
 if (c=="-" || c=="") {
  if (z=="-" && _ufns==1) { c="utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"; }
  if (c=="-" || c=="") return "";
 }
 if (z!="-") {
  i=z.indexOf(".");
  if (i>-1) i=z.indexOf(".",i+1);
  if (i>-1) i=z.indexOf(".",i+1);
  if (i>-1) i=z.indexOf(".",i+1);
  t=z.substring(i+1,z.length);
  if (t.toLowerCase()==c.toLowerCase()) cs=1;
  t=z.substring(0,i);
  if ((i=t.lastIndexOf(".")) > -1) {
   t=t.substring(i+1,t.length);
   cn=(t*1);
  }
 }
 if (cs==0 || _ufns==1) {
  t=_uGC(dc,"__utma="+_udh,";");
  if ((i=t.lastIndexOf(".")) > 9) {
   _uns=t.substring(i+1,t.length);
   _uns=(_uns*1);
  }
  cn++;
  if (_uns==0) _uns=1;
  _ubd.cookie="__utmz="+_udh+"."+_ust+"."+_uns+"."+cn+"."+c+"; path="+_utcp+"; "+x+_udo;
 }
 if (cs==0 || _ufns==1) return "&utmcn=1";
 else return "&utmcr=1";
}
function _uRef() {
 if (_ur=="0" || _ur=="" || _ur=="-") return "";
 var i=0,h,k,n;
 if ((i=_ur.indexOf("://"))<0) return "";
 h=_ur.substring(i+3,_ur.length);
 if (h.indexOf("/") > -1) {
  k=h.substring(h.indexOf("/"),h.length);
  if (k.indexOf("?") > -1) k=k.substring(0,k.indexOf("?"));
  h=h.substring(0,h.indexOf("/"));
 }
 h=h.toLowerCase();
 n=h;
 if ((i=n.indexOf(":")) > -1) n=n.substring(0,i);
 for (var ii=0;ii<_uRno.length;ii++) {
  if ((i=n.indexOf(_uRno[ii].toLowerCase())) > -1 && n.length==(i+_uRno[ii].length)) { _ufno=1; break; }
 }
 if (h.indexOf("www.")==0) h=h.substring(4,h.length);
 return "utmccn=(referral)|utmcsr="+_uEC(h)+"|"+"utmcct="+_uEC(k)+"|utmcmd=referral";
}
function _uOrg(t) {
 if (_ur=="0" || _ur=="" || _ur=="-") return "";
 var i=0,h,k;
 if ((i=_ur.indexOf("://")) < 0) return "";
 h=_ur.substring(i+3,_ur.length);
 if (h.indexOf("/") > -1) {
  h=h.substring(0,h.indexOf("/"));
 }
 for (var ii=0;ii<_uOsr.length;ii++) {
  if (h.toLowerCase().indexOf(_uOsr[ii].toLowerCase()) > -1) {
   if ((i=_ur.indexOf("?"+_uOkw[ii]+"=")) > -1 || (i=_ur.indexOf("&"+_uOkw[ii]+"=")) > -1) {
    k=_ur.substring(i+_uOkw[ii].length+2,_ur.length);
    if ((i=k.indexOf("&")) > -1) k=k.substring(0,i);
    for (var yy=0;yy<_uOno.length;yy++) {
     if (_uOno[yy].toLowerCase()==k.toLowerCase()) { _ufno=1; break; }
    }
    if (t) return _uEC(k);
    else return "utmccn=(organic)|utmcsr="+_uEC(_uOsr[ii])+"|"+"utmctr="+_uEC(k)+"|utmcmd=organic";
   }
  }
 }
 return "";
}
function _uBInfo() {
 var sr="-",sc="-",ul="-",fl="-",cs="-",je=1;
 var n=navigator;
 if (self.screen) {
  sr=screen.width+"x"+screen.height;
  sc=screen.colorDepth+"-bit";
 } else if (self.java) {
  var j=java.awt.Toolkit.getDefaultToolkit();
  var s=j.getScreenSize();
  sr=s.width+"x"+s.height;
 }
 if (n.language) { ul=n.language.toLowerCase(); }
 else if (n.browserLanguage) { ul=n.browserLanguage.toLowerCase(); }
 je=n.javaEnabled()?1:0;
 if (_uflash) fl=_uFlash();
 if (_ubd.characterSet) cs=_uES(_ubd.characterSet);
 else if (_ubd.charset) cs=_uES(_ubd.charset);
 return "&utmcs="+cs+"&utmsr="+sr+"&utmsc="+sc+"&utmul="+ul+"&utmje="+je+"&utmfl="+fl;
}
function __utmSetTrans() {
 var e;
 if (_ubd.getElementById) e=_ubd.getElementById("utmtrans");
 else if (_ubd.utmform && _ubd.utmform.utmtrans) e=_ubd.utmform.utmtrans;
 if (!e) return;
 var l=e.value.split("UTM:");
 var i,i2,c;
 if (_userv==0 || _userv==2) i=new Array();
 if (_userv==1 || _userv==2) { i2=new Array(); c=_uGCS(); }
 for (var ii=0;ii<l.length;ii++) {
  l[ii]=_uTrim(l[ii]);
  if (l[ii].charAt(0)!='T' && l[ii].charAt(0)!='I') continue;
  var r=Math.round(Math.random()*2147483647);
  if (!_utsp || _utsp=="") _utsp="|";
  var f=l[ii].split(_utsp),s="";
  if (f[0].charAt(0)=='T') {
   s="&utmt=tran"+"&utmn="+r;
   f[1]=_uTrim(f[1]); if(f[1]&&f[1]!="") s+="&utmtid="+_uES(f[1]);
   f[2]=_uTrim(f[2]); if(f[2]&&f[2]!="") s+="&utmtst="+_uES(f[2]);
   f[3]=_uTrim(f[3]); if(f[3]&&f[3]!="") s+="&utmtto="+_uES(f[3]);
   f[4]=_uTrim(f[4]); if(f[4]&&f[4]!="") s+="&utmttx="+_uES(f[4]);
   f[5]=_uTrim(f[5]); if(f[5]&&f[5]!="") s+="&utmtsp="+_uES(f[5]);
   f[6]=_uTrim(f[6]); if(f[6]&&f[6]!="") s+="&utmtci="+_uES(f[6]);
   f[7]=_uTrim(f[7]); if(f[7]&&f[7]!="") s+="&utmtrg="+_uES(f[7]);
   f[8]=_uTrim(f[8]); if(f[8]&&f[8]!="") s+="&utmtco="+_uES(f[8]);
  } else {
   s="&utmt=item"+"&utmn="+r;
   f[1]=_uTrim(f[1]); if(f[1]&&f[1]!="") s+="&utmtid="+_uES(f[1]);
   f[2]=_uTrim(f[2]); if(f[2]&&f[2]!="") s+="&utmipc="+_uES(f[2]);
   f[3]=_uTrim(f[3]); if(f[3]&&f[3]!="") s+="&utmipn="+_uES(f[3]);
   f[4]=_uTrim(f[4]); if(f[4]&&f[4]!="") s+="&utmiva="+_uES(f[4]);
   f[5]=_uTrim(f[5]); if(f[5]&&f[5]!="") s+="&utmipr="+_uES(f[5]);
   f[6]=_uTrim(f[6]); if(f[6]&&f[6]!="") s+="&utmiqt="+_uES(f[6]);
  }
  if ((_userv==0 || _userv==2) && _uSP()) {
   i[ii]=new Image(1,1);
   i[ii].src=_ugifpath+"?"+"utmwv="+_uwv+s;
   i[ii].onload=function() { _uVoid(); }
  }
  if ((_userv==1 || _userv==2) && _uSP()) {
   i2[ii]=new Image(1,1);
   i2[ii].src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+c;
   i2[ii].onload=function() { _uVoid(); }
  }
 }
 return;
}
function _uFlash() {
 var f="-",n=navigator;
 if (n.plugins && n.plugins.length) {
  for (var ii=0;ii<n.plugins.length;ii++) {
   if (n.plugins[ii].name.indexOf('Shockwave Flash')!=-1) {
    f=n.plugins[ii].description.split('Shockwave Flash ')[1];
    break;
   }
  }
 } else if (window.ActiveXObject) {
  for (var ii=10;ii>=2;ii--) {
   try {
    var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");
    if (fl) { f=ii + '.0'; break; }
   }
   catch(e) {}
  }
 }
 return f;
}
function __utmLinker(l,h) {
 if (!_ulink) return;
 var p,k,a="-",b="-",c="-",x="-",z="-",v="-";
 var dc=_ubd.cookie;
 if (!l || l=="") return;
 var iq = l.indexOf("?");
 var ih = l.indexOf("#");
 if (dc) {
  a=_uES(_uGC(dc,"__utma="+_udh,";"));
  b=_uES(_uGC(dc,"__utmb="+_udh,";"));
  c=_uES(_uGC(dc,"__utmc="+_udh,";"));
  x=_uES(_uGC(dc,"__utmx="+_udh,";"));
  z=_uES(_uGC(dc,"__utmz="+_udh,";"));
  v=_uES(_uGC(dc,"__utmv="+_udh,";"));
  k=(_uHash(a+b+c+x+z+v)*1)+(_udh*1);
  p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmx="+x+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;
 }
 if (p) {
  if (h && ih>-1) return;
  if (h) { _udl.href=l+"#"+p; }
  else {
   if (iq==-1 && ih==-1) _udl.href=l+"?"+p;
   else if (ih==-1) _udl.href=l+"&"+p;
   else if (iq==-1) _udl.href=l.substring(0,ih-1)+"?"+p+l.substring(ih);
   else _udl.href=l.substring(0,ih-1)+"&"+p+l.substring(ih);
  }
 } else { _udl.href=l; }
}
function __utmLinkPost(f,h) {
 if (!_ulink) return;
 var p,k,a="-",b="-",c="-",x="-",z="-",v="-";
 var dc=_ubd.cookie;
 if (!f || !f.action) return;
 var iq = f.action.indexOf("?");
 var ih = f.action.indexOf("#");
 if (dc) {
  a=_uES(_uGC(dc,"__utma="+_udh,";"));
  b=_uES(_uGC(dc,"__utmb="+_udh,";"));
  c=_uES(_uGC(dc,"__utmc="+_udh,";"));
  x=_uES(_uGC(dc,"__utmx="+_udh,";"));
  z=_uES(_uGC(dc,"__utmz="+_udh,";"));
  v=_uES(_uGC(dc,"__utmv="+_udh,";"));
  k=(_uHash(a+b+c+x+z+v)*1)+(_udh*1);
  p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmx="+x+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;
 }
 if (p) {
  if (h && ih>-1) return;
  if (h) { f.action+="#"+p; }
  else {
   if (iq==-1 && ih==-1) f.action+="?"+p;
   else if (ih==-1) f.action+="&"+p;
   else if (iq==-1) f.action=f.action.substring(0,ih-1)+"?"+p+f.action.substring(ih);
   else f.action=f.action.substring(0,ih-1)+"&"+p+f.action.substring(ih);
  }
 }
 return;
}
function __utmSetVar(v) {
 if (!v || v=="") return;
 if (!_udo || _udo == "") {
  _udh=_uDomain();
  if (_udn && _udn!="") { _udo=" domain="+_udn+";"; }
 }
 if (!_uVG()) return;
 var r=Math.round(Math.random() * 2147483647);
 _ubd.cookie="__utmv="+_udh+"."+_uES(v)+"; path="+_utcp+"; expires=Sun, 18 Jan 2038 00:00:00 GMT;"+_udo;
 var s="&utmt=var&utmn="+r;
 if ((_userv==0 || _userv==2) && _uSP()) {
  var i=new Image(1,1);
  i.src=_ugifpath+"?"+"utmwv="+_uwv+s;
  i.onload=function() { _uVoid(); }
 }
 if ((_userv==1 || _userv==2) && _uSP()) {
  var i2=new Image(1,1);
  i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS();
  i2.onload=function() { _uVoid(); }
 }
}
function _uGCS() {
 var t,c="",dc=_ubd.cookie;
 if ((t=_uGC(dc,"__utma="+_udh,";"))!="-") c+=_uES("__utma="+t+";+");
 if ((t=_uGC(dc,"__utmb="+_udh,";"))!="-") c+=_uES("__utmb="+t+";+");
 if ((t=_uGC(dc,"__utmc="+_udh,";"))!="-") c+=_uES("__utmc="+t+";+");
 if ((t=_uGC(dc,"__utmx="+_udh,";"))!="-") c+=_uES("__utmx="+t+";+");
 if ((t=_uGC(dc,"__utmz="+_udh,";"))!="-") c+=_uES("__utmz="+t+";+");
 if ((t=_uGC(dc,"__utmv="+_udh,";"))!="-") c+=_uES("__utmv="+t+";");
 if (c.charAt(c.length-1)=="+") c=c.substring(0,c.length-1);
 return c;
}
function _uGC(l,n,s) {
 if (!l || l=="" || !n || n=="" || !s || s=="") return "-";
 var i,i2,i3,c="-";
 i=l.indexOf(n);
 i3=n.indexOf("=")+1;
 if (i > -1) {
  i2=l.indexOf(s,i); if (i2 < 0) { i2=l.length; }
  c=l.substring((i+i3),i2);
 }
 return c;
}
function _uDomain() {
 if (!_udn || _udn=="" || _udn=="none") { _udn=""; return 1; }
 if (_udn=="auto") {
  var d=_ubd.domain;
  if (d.substring(0,4)=="www.") {
   d=d.substring(4,d.length);
  }
  _udn=d;
 }
 if (_uhash=="off") return 1;
 return _uHash(_udn);
}
function _uHash(d) {
 if (!d || d=="") return 1;
 var h=0,g=0;
 for (var i=d.length-1;i>=0;i--) {
  var c=parseInt(d.charCodeAt(i));
  h=((h << 6) & 0xfffffff) + c + (c << 14);
  if ((g=h & 0xfe00000)!=0) h=(h ^ (g >> 21));
 }
 return h;
}
function _uFixA(c,s,t) {
 if (!c || c=="" || !s || s=="" || !t || t=="") return "-";
 var a=_uGC(c,"__utma="+_udh,s);
 var lt=0,i=0;
 if ((i=a.lastIndexOf(".")) > 9) {
  _uns=a.substring(i+1,a.length);
  _uns=(_uns*1)+1;
  a=a.substring(0,i);
  if ((i=a.lastIndexOf(".")) > 7) {
   lt=a.substring(i+1,a.length);
   a=a.substring(0,i);
  }
  if ((i=a.lastIndexOf(".")) > 5) {
   a=a.substring(0,i);
  }
  a+="."+lt+"."+t+"."+_uns;
 }
 return a;
}
function _uTrim(s) {
  if (!s || s=="") return "";
  while ((s.charAt(0)==' ') || (s.charAt(0)=='\n') || (s.charAt(0,1)=='\r')) s=s.substring(1,s.length);
  while ((s.charAt(s.length-1)==' ') || (s.charAt(s.length-1)=='\n') || (s.charAt(s.length-1)=='\r')) s=s.substring(0,s.length-1);
  return s;
}
function _uEC(s) {
  var n="";
  if (!s || s=="") return "";
  for (var i=0;i<s.length;i++) {if (s.charAt(i)==" ") n+="+"; else n+=s.charAt(i);}
  return n;
}
function __utmVisitorCode(f) {
 var r=0,t=0,i=0,i2=0,m=31;
 var a=_uGC(_ubd.cookie,"__utma="+_udh,";");
 if ((i=a.indexOf(".",0))<0) return;
 if ((i2=a.indexOf(".",i+1))>0) r=a.substring(i+1,i2); else return "";
 if ((i=a.indexOf(".",i2+1))>0) t=a.substring(i2+1,i); else return "";
 if (f) {
  return r;
 } else {
  var c=new Array('A','B','C','D','E','F','G','H','J','K','L','M','N','P','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6','7','8','9');
  return c[r>>28&m]+c[r>>23&m]+c[r>>18&m]+c[r>>13&m]+"-"+c[r>>8&m]+c[r>>3&m]+c[((r&7)<<2)+(t>>30&3)]+c[t>>25&m]+c[t>>20&m]+"-"+c[t>>15&m]+c[t>>10&m]+c[t>>5&m]+c[t&m];
 }
}
function _uIN(n) {
 if (!n) return false;
 for (var i=0;i<n.length;i++) {
  var c=n.charAt(i);
  if ((c<"0" || c>"9") && (c!=".")) return false;
 }
 return true;
}
function _uES(s,u) {
 if (typeof(encodeURIComponent) == 'function') {
  if (u) return encodeURI(s);
  else return encodeURIComponent(s);
 } else {
  return escape(s);
 }
}
function _uUES(s) {
 if (typeof(decodeURIComponent) == 'function') {
  return decodeURIComponent(s);
 } else {
  return unescape(s);
 }
}
function _uVG() {
 if((_udn.indexOf("www.google.") == 0 || _udn.indexOf(".google.") == 0 || _udn.indexOf("google.") == 0) && _utcp=='/') {
  return false;
 }
 return true;
}
function _uSP() {
 var s=100;
 if (_usample) s=_usample;
 if(s>=100 || s<=0) return true;
 return ((__utmVisitorCode(1)%10000)<(s*100));
}
function _IG_Analytics(a,b){if(typeof a=="undefined"||typeof b=="undefined")throw new Error("_IG_Analytics(id, path): id or path is undefined");var c=/^UA-\d+-\d+$/,d=/^\/(.+)?$/;if(c.exec(a)){if(!d.exec(b))throw new Error("_IG_Analytics(id, path) : path contains invalid characters.  It should look something like: /gadget_name.");}else throw new Error("_IG_Analytics(id, path) : id contains invalid characters.  It should look something like: UA-000000-0.");_uacct=a;urchinTracker(b)}
_exportSymbols("google.gadgets.Analytics",["report",_IG_Analytics]);
function igRF_a(a){throw a;}var igRF_b=true,igRF_c=null,igRF_d=false,igRF_e=window.google||{};igRF_e.global=this;function igRF_f(a){a=a.split(".");for(var b=igRF_e.global,c;c=a.shift();)b=b[c]?b[c]:(b[c]={})};var igRF_g=igRF_d;function igRF_h(a){try{igRF_a(a)}catch(b){igRF_i(b)}}function igRF_i(a,b){b="Javascript exception: "+(b?b:"")+" "+a;if(igRF_j("msie")&&!window.opera)b+=" "+a.name+": "+a.message+" ("+a.number+")";var c="";if(typeof a=="string")c=a+"\n";else for(var d in a)try{c+=d+": "+a[d]+"\n"}catch(e){}c+=igRF_k(igRF_i.caller);igRF_l(b+"\n"+c,1)}var igRF_m=/function (\w+)/;function igRF_n(a){if(a=igRF_m.exec(String(a)))return a[1];return""}
function igRF_k(a){try{if(!(igRF_j("msie")&&!window.opera)&&!(igRF_j("safari")||igRF_j("konqueror"))&&igRF_j("mozilla"))return Error().stack;if(!a)return"";for(var b="- "+igRF_n(a)+"(",c=0;c<a.arguments.length;c++){if(c>0)b+=", ";var d=String(a.arguments[c]);if(d.length>40)d=d.substr(0,40)+"...";b+=d}b+=")\n";b+=igRF_k(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var igRF_o,igRF_p=igRF_c,igRF_q=igRF_d;
function igRF_r(){if((igRF_p==igRF_c||igRF_p.closed)&&!igRF_q)try{igRF_q=igRF_b;igRF_p=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");igRF_p.blur();igRF_p.document.open();igRF_q=igRF_d;var a="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";igRF_s(a)}catch(b){}}
function igRF_l(a,b){if(igRF_g){try{var c=(new Date).getTime()-igRF_o,d="["+c+"] "+igRF_t(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";igRF_p.focus()}}catch(e){}igRF_s(d)}else typeof igRF_u!="undefined"&&igRF_u(igRF_t(a))}function igRF_s(a){if(igRF_g)try{igRF_r();igRF_p.document.write(a);igRF_p.scrollTo(0,1E6)}catch(b){}};function igRF_j(a){if(a in igRF_v)return igRF_v[a];return igRF_v[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var igRF_v={},igRF_w=/&/g,igRF_x=/</g,igRF_y=/>/g;function igRF_t(a){if(!a)return"";return a.replace(igRF_w,"&amp;").replace(igRF_x,"&lt;").replace(igRF_y,"&gt;").replace(igRF_z,"&quot;")}var igRF_z=/\"/g;function igRF_A(a){return document.getElementById(a)}function igRF_B(a){return document.all[a]}var igRF_C=document.getElementById?igRF_A:igRF_B;
function igRF_u(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=igRF_C("log");if(c){a="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=a+c.innerHTML}else window.status=a};function igRF_D(){}igRF_D.raise=function(a){if(typeof Error!="undefined")igRF_a(new Error(a||"Assertion Failed"));else igRF_a(a)};igRF_D.fail=function(a){a=a||"Assertion failed";typeof igRF_h!="undefined"&&igRF_h(a+"\n");igRF_D.raise(a)};igRF_D.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";igRF_D.fail(b)}};igRF_D.equals=function(a,b,c){if(a!=b){if(c===undefined)c="AS_Assert.equals failed: <"+a+"> != <"+b+">";igRF_D.fail(c)}};
igRF_D.typeOf=function(a,b,c){if(typeof a!=b){if(a||a=="")try{if(b==igRF_D.TYPE_MAP[typeof a]||a instanceof b)return}catch(d){}if(c===undefined){if(typeof b=="function")if(c=b.toString().match(/^\s*function\s+([^\s\{]+)/))b=c[1];c="AS_Assert.typeOf failed: <"+a+"> not typeof "+b}igRF_D.fail(c)}};igRF_D.TYPE_MAP={string:String,number:Number,"boolean":Boolean};
igRF_D.numArgs=function(a,b){var c=igRF_D.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined)b=c.name+" expected "+a+" arguments  but received "+c.arguments.length;igRF_D.fail(b)}};var igRF_E;function igRF_F(){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);igRF_E=c;break}catch(d){}}if(!igRF_E)igRF_a(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed."))}}igRF_F();function igRF_G(a,b,c){a.open("GET",b,igRF_b);a.onreadystatechange=c;igRF_H(a,igRF_c)}
function igRF_H(a,b){try{a.send(b)}catch(c){igRF_u("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);igRF_a(c)}};if("undefined"==typeof igRF_u)igRF_u=function(){};var igRF_=igRF_||{};igRF_.global=this;igRF_.DEBUG=igRF_b;igRF_.LOCALE="en";igRF_.gc=igRF_c;igRF_.provide=function(a){igRF_.Ze(a)};igRF_.Ze=function(a,b,c){a=a.split(".");c=c||igRF_.global;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&igRF_.isDef(b))c[d]=b;else c=c[d]?c[d]:(c[d]={})};igRF_.getObjectByName=function(a,b){a=a.split(".");b=b||igRF_.global;for(var c;c=a.shift();)if(b[c])b=b[c];else return igRF_c;return b};
igRF_.globalize=function(a,b){b=b||igRF_.global;for(var c in a)b[c]=a[c]};igRF_.addDependency=function(){};igRF_.require=function(){};igRF_.useStrictRequires=igRF_d;igRF_.basePath="";igRF_.nullFunction=function(){};igRF_.identityFunction=function(){return arguments[0]};igRF_.abstractMethod=function(){igRF_a(Error("unimplemented abstract method"))};igRF_.addSingletonGetter=function(a){a.getInstance=function(){return a.zh||(a.zh=new a)}};
igRF_.typeOf=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b};igRF_.Hh=function(a,b){if(b in a)for(var c in a)if(c==b&&Object.prototype.hasOwnProperty.call(a,b))return igRF_b;return igRF_d};igRF_.Zh=function(a,b){return a instanceof Object?Object.prototype.propertyIsEnumerable.call(a,b):igRF_.Hh(a,b)};igRF_.isDef=function(a){return a!==undefined};igRF_.isNull=function(a){return a===igRF_c};igRF_.isDefAndNotNull=function(a){return a!=igRF_c};
igRF_.isArray=function(a){return igRF_.typeOf(a)=="array"};igRF_.isArrayLike=function(a){var b=igRF_.typeOf(a);return b=="array"||b=="object"&&typeof a.length=="number"};igRF_.isDateLike=function(a){return igRF_.isObject(a)&&typeof a.getFullYear=="function"};igRF_.isString=function(a){return typeof a=="string"};igRF_.isBoolean=function(a){return typeof a=="boolean"};igRF_.isNumber=function(a){return typeof a=="number"};igRF_.isFunction=function(a){return igRF_.typeOf(a)=="function"};
igRF_.isObject=function(a){a=igRF_.typeOf(a);return a=="object"||a=="array"||a=="function"};igRF_.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(igRF_.Ha))return a[igRF_.Ha];a[igRF_.Ha]||(a[igRF_.Ha]=++igRF_.xh);return a[igRF_.Ha]};igRF_.removeHashCode=function(a){"removeAttribute"in a&&a.removeAttribute(igRF_.Ha);try{delete a[igRF_.Ha]}catch(b){}};igRF_.Ha="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36);igRF_.xh=0;
igRF_.cloneObject=function(a){var b=igRF_.typeOf(a);if(b=="object"||b=="array"){if(a.clone)return a.clone.call(a);b=b=="array"?[]:{};for(var c in a)b[c]=igRF_.cloneObject(a[c]);return b}return a};igRF_.bind=function(a,b){var c=b||igRF_.global;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}};
igRF_.partial=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}};igRF_.mixin=function(a,b){for(var c in b)a[c]=b[c]};igRF_.now=Date.now||function(){return+new Date};
igRF_.globalEval=function(a){if(igRF_.global.execScript)igRF_.global.execScript(a,"JavaScript");else if(igRF_.global.eval){if(igRF_.gc==igRF_c){igRF_.global.eval("var _et_ = 1;");if(typeof igRF_.global._et_!="undefined"){delete igRF_.global._et_;igRF_.gc=igRF_b}else igRF_.gc=igRF_d}if(igRF_.gc)igRF_.global.eval(a);else{var b=igRF_.global.document,c=b.createElement("script");c.type="text/javascript";c.defer=igRF_d;c.appendChild(b.createTextNode(a));b.body.appendChild(c);b.body.removeChild(c)}}else igRF_a(Error("goog.globalEval not available"))};
igRF_.typedef=igRF_b;igRF_.getCssName=function(a,b){a=a+(b?"-"+b:"");return igRF_.Xc&&a in igRF_.Xc?igRF_.Xc[a]:a};igRF_.setCssNameMapping=function(a){igRF_.Xc=a};igRF_.getMsg=function(a,b){b=b||{};for(var c in b)a=a.replace(new RegExp("\\{\\$"+c+"\\}","gi"),b[c]);return a};igRF_.exportSymbol=function(a,b,c){igRF_.Ze(a,b,c)};igRF_.exportProperty=function(a,b,c){a[b]=c};igRF_.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.aa=b.prototype;a.prototype=new c;a.prototype.constructor=a};
igRF_.base=function(a,b){var c=arguments.callee.caller;if(c.aa)return c.aa.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var d=Array.prototype.slice.call(arguments,2),e=igRF_d,f=a.constructor;f;f=f.aa&&f.aa.constructor)if(f.prototype[b]===c)e=igRF_b;else if(e)return f.prototype[b].apply(a,d);if(a[b]===c)return a.constructor.prototype[b].apply(a,d);else igRF_a(Error("goog.base called from a method of one name to a method of a different name"))};igRF_.MODIFY_FUNCTION_PROTOTYPES=igRF_b;
if(igRF_.MODIFY_FUNCTION_PROTOTYPES){Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return igRF_.bind.apply(igRF_c,b)}else return igRF_.bind(this,a)};Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,igRF_c);return igRF_.bind.apply(igRF_c,a)};Function.prototype.inherits=function(a){igRF_.inherits(this,a)};Function.prototype.mixin=function(a){igRF_.mixin(this.prototype,a)}};igRF_.array={};igRF_.array.ArrayLike=igRF_.typedef;igRF_.array.peek=function(a){return a[a.length-1]};igRF_.array.g=Array.prototype;igRF_.array.indexOf=igRF_.array.g.indexOf?function(a,b,c){return igRF_.array.g.indexOf.call(a,b,c)}:function(a,b,c){c=c==igRF_c?0:c<0?Math.max(0,a.length+c):c;if(igRF_.isString(a)){if(!igRF_.isString(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
igRF_.array.lastIndexOf=igRF_.array.g.lastIndexOf?function(a,b,c){c=c==igRF_c?a.length-1:c;return igRF_.array.g.lastIndexOf.call(a,b,c)}:function(a,b,c){c=c==igRF_c?a.length-1:c;if(c<0)c=Math.max(0,a.length+c);if(igRF_.isString(a)){if(!igRF_.isString(b)||b.length!=1)return-1;return a.lastIndexOf(b,c)}for(c=c;c>=0;c--)if(c in a&&a[c]===b)return c;return-1};
igRF_.array.forEach=igRF_.array.g.forEach?function(a,b,c){igRF_.array.g.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=igRF_.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};igRF_.array.forEachRight=function(a,b,c){var d=a.length,e=igRF_.isString(a)?a.split(""):a;for(d=d-1;d>=0;--d)d in e&&b.call(c,e[d],d,a)};
igRF_.array.filter=igRF_.array.g.filter?function(a,b,c){return igRF_.array.g.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=igRF_.isString(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var i=g[h];if(b.call(c,i,h,a))e[f++]=i}return e};igRF_.array.map=igRF_.array.g.map?function(a,b,c){return igRF_.array.g.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=new Array(d),f=igRF_.isString(a)?a.split(""):a,g=0;g<d;g++)if(g in f)e[g]=b.call(c,f[g],g,a);return e};
igRF_.array.reduce=function(a,b,c,d){if(a.reduce)return d?a.reduce(igRF_.bind(b,d),c):a.reduce(b,c);var e=c;igRF_.array.forEach(a,function(f,g){e=b.call(d,e,f,g,a)});return e};igRF_.array.reduceRight=function(a,b,c,d){if(a.reduceRight)return d?a.reduceRight(igRF_.bind(b,d),c):a.reduceRight(b,c);var e=c;igRF_.array.forEachRight(a,function(f,g){e=b.call(d,e,f,g,a)});return e};
igRF_.array.some=igRF_.array.g.some?function(a,b,c){return igRF_.array.g.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=igRF_.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return igRF_b;return igRF_d};igRF_.array.every=igRF_.array.g.every?function(a,b,c){return igRF_.array.g.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=igRF_.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return igRF_d;return igRF_b};
igRF_.array.find=function(a,b,c){b=igRF_.array.findIndex(a,b,c);return b<0?igRF_c:igRF_.isString(a)?a.charAt(b):a[b]};igRF_.array.findIndex=function(a,b,c){for(var d=a.length,e=igRF_.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};igRF_.array.findRight=function(a,b,c){b=igRF_.array.findIndexRight(a,b,c);return b<0?igRF_c:igRF_.isString(a)?a.charAt(b):a[b]};
igRF_.array.findIndexRight=function(a,b,c){var d=a.length,e=igRF_.isString(a)?a.split(""):a;for(d=d-1;d>=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};igRF_.array.contains=function(a,b){return igRF_.array.indexOf(a,b)>=0};igRF_.array.p=function(a){return a.length==0};igRF_.array.clear=function(a){if(!igRF_.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0};igRF_.array.insert=function(a,b){igRF_.array.contains(a,b)||a.push(b)};
igRF_.array.insertAt=function(a,b,c){igRF_.array.splice(a,c,0,b)};igRF_.array.insertArrayAt=function(a,b,c){igRF_.partial(igRF_.array.splice,a,c,0).apply(igRF_c,b)};igRF_.array.insertBefore=function(a,b,c){var d;arguments.length==2||(d=igRF_.array.indexOf(a,c))<0?a.push(b):igRF_.array.insertAt(a,b,d)};igRF_.array.remove=function(a,b){b=igRF_.array.indexOf(a,b);var c;if(c=b>=0)igRF_.array.removeAt(a,b);return c};igRF_.array.removeAt=function(a,b){return igRF_.array.g.splice.call(a,b,1).length==1};
igRF_.array.removeIf=function(a,b,c){b=igRF_.array.findIndex(a,b,c);if(b>=0){igRF_.array.removeAt(a,b);return igRF_b}return igRF_d};igRF_.array.concat=function(){return igRF_.array.g.concat.apply(igRF_.array.g,arguments)};igRF_.array.clone=function(a){if(igRF_.isArray(a))return igRF_.array.concat(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}};igRF_.array.toArray=function(a){if(igRF_.isArray(a))return igRF_.array.concat(a);return igRF_.array.clone(a)};
igRF_.array.extend=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;if(igRF_.isArray(c)||(d=igRF_.isArrayLike(c))&&c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var e=a.length,f=c.length,g=0;g<f;g++)a[e+g]=c[g];else a.push(c)}};igRF_.array.splice=function(a){return igRF_.array.g.splice.apply(a,igRF_.array.slice(arguments,1))};igRF_.array.slice=function(a,b,c){return arguments.length<=2?igRF_.array.g.slice.call(a,b):igRF_.array.g.slice.call(a,b,c)};
igRF_.array.removeDuplicates=function(a,b){b=b||a;for(var c={},d=0,e=0;e<a.length;){var f=a[e++],g=igRF_.isObject(f)?igRF_.getHashCode(f):f;if(!Object.prototype.hasOwnProperty.call(c,g)){c[g]=igRF_b;b[d++]=f}}b.length=d};igRF_.array.binarySearch=function(a,b,c){var d=0,e=a.length-1;for(c=c||igRF_.array.defaultCompare;d<=e;){var f=d+e>>1,g=c(b,a[f]);if(g>0)d=f+1;else if(g<0)e=f-1;else return f}return-(d+1)};igRF_.array.sort=function(a,b){igRF_.array.g.sort.call(a,b||igRF_.array.defaultCompare)};
igRF_.array.stableSort=function(a,b){function c(f,g){return e(f.value,g.value)||f.index-g.index}for(var d=0;d<a.length;d++)a[d]={index:d,value:a[d]};var e=b||igRF_.array.defaultCompare;igRF_.array.sort(a,c);for(d=0;d<a.length;d++)a[d]=a[d].value};igRF_.array.sortObjectsByKey=function(a,b,c){var d=c||igRF_.array.defaultCompare;igRF_.array.sort(a,function(e,f){return d(e[b],f[b])})};
igRF_.array.equals=function(a,b,c){if(!igRF_.isArrayLike(a)||!igRF_.isArrayLike(b)||a.length!=b.length)return igRF_d;var d=a.length;c=c||igRF_.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return igRF_d;return igRF_b};igRF_.array.compare=function(a,b,c){return igRF_.array.equals(a,b,c)};igRF_.array.defaultCompare=function(a,b){return a>b?1:a<b?-1:0};igRF_.array.defaultCompareEquality=function(a,b){return a===b};
igRF_.array.binaryInsert=function(a,b,c){c=igRF_.array.binarySearch(a,b,c);if(c<0){igRF_.array.insertAt(a,b,-(c+1));return igRF_b}return igRF_d};igRF_.array.binaryRemove=function(a,b,c){b=igRF_.array.binarySearch(a,b,c);return b>=0?igRF_.array.removeAt(a,b):igRF_d};igRF_.array.bucket=function(a,b){for(var c={},d=0;d<a.length;d++){var e=a[d],f=b(e,d,a);if(igRF_.isDef(f)){f=c[f]||(c[f]=[]);f.push(e)}}return c};igRF_.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};
igRF_.array.flatten=function(){for(var a=[],b=0;b<arguments.length;b++){var c=arguments[b];igRF_.isArray(c)?a.push.apply(a,igRF_.array.flatten.apply(igRF_c,c)):a.push(c)}return a};igRF_.array.rotate=function(a,b){if(a.length){b%=a.length;if(b>0)igRF_.array.g.unshift.apply(a,a.splice(-b,b));else b<0&&igRF_.array.g.push.apply(a,a.splice(0,-b))}return a};igRF_.iter={};igRF_.iter.Iterable=igRF_.typedef;igRF_.iter.StopIteration="StopIteration"in igRF_.global?igRF_.global.StopIteration:Error("StopIteration");igRF_.iter.Iterator=function(){};igRF_.iter.Iterator.prototype.next=function(){igRF_a(igRF_.iter.StopIteration)};igRF_.iter.Iterator.prototype.__iterator__=function(){return this};
igRF_.iter.toIterator=function(a){if(a instanceof igRF_.iter.Iterator)return a;if(typeof a.__iterator__=="function")return a.__iterator__(igRF_d);if(igRF_.isArrayLike(a)){var b=0,c=new igRF_.iter.Iterator;c.next=function(){for(;;){if(b>=a.length)igRF_a(igRF_.iter.StopIteration);if(b in a)return a[b++];else b++}};return c}igRF_a(Error("Not implemented"))};
igRF_.iter.forEach=function(a,b,c){if(igRF_.isArrayLike(a))try{igRF_.array.forEach(a,b,c)}catch(d){if(d!==igRF_.iter.StopIteration)igRF_a(d)}else{a=igRF_.iter.toIterator(a);try{for(;;)b.call(c,a.next(),undefined,a)}catch(e){if(e!==igRF_.iter.StopIteration)igRF_a(e)}}};igRF_.iter.filter=function(a,b,c){a=igRF_.iter.toIterator(a);var d=new igRF_.iter.Iterator;d.next=function(){for(;;){var e=a.next();if(b.call(c,e,undefined,a))return e}};return d};
igRF_.iter.range=function(a,b,c){var d=0,e=a,f=c||1;if(arguments.length>1){d=a;e=b}if(f==0)igRF_a(Error("Range step argument must not be zero"));var g=new igRF_.iter.Iterator;g.next=function(){if(f>0&&d>=e||f<0&&d<=e)igRF_a(igRF_.iter.StopIteration);var h=d;d+=f;return h};return g};igRF_.iter.join=function(a,b){return igRF_.iter.toArray(a).join(b)};
igRF_.iter.map=function(a,b,c){a=igRF_.iter.toIterator(a);var d=new igRF_.iter.Iterator;d.next=function(){for(;;){var e=a.next();return b.call(c,e,undefined,a)}};return d};igRF_.iter.reduce=function(a,b,c,d){var e=c;igRF_.iter.forEach(a,function(f){e=b.call(d,e,f)});return e};igRF_.iter.some=function(a,b,c){a=igRF_.iter.toIterator(a);try{for(;;)if(b.call(c,a.next(),undefined,a))return igRF_b}catch(d){if(d!==igRF_.iter.StopIteration)igRF_a(d)}return igRF_d};
igRF_.iter.every=function(a,b,c){a=igRF_.iter.toIterator(a);try{for(;;)if(!b.call(c,a.next(),undefined,a))return igRF_d}catch(d){if(d!==igRF_.iter.StopIteration)igRF_a(d)}return igRF_b};igRF_.iter.chain=function(){var a=arguments,b=a.length,c=0,d=new igRF_.iter.Iterator;d.next=function(){try{if(c>=b)igRF_a(igRF_.iter.StopIteration);var e=igRF_.iter.toIterator(a[c]);return e.next()}catch(f){if(f!==igRF_.iter.StopIteration||c>=b)igRF_a(f);else{c++;return this.next()}}};return d};
igRF_.iter.dropWhile=function(a,b,c){a=igRF_.iter.toIterator(a);var d=new igRF_.iter.Iterator,e=igRF_b;d.next=function(){for(;;){var f=a.next();if(!(e&&b.call(c,f,undefined,a))){e=igRF_d;return f}}};return d};igRF_.iter.takeWhile=function(a,b,c){a=igRF_.iter.toIterator(a);var d=new igRF_.iter.Iterator,e=igRF_b;d.next=function(){for(;;)if(e){var f=a.next();if(b.call(c,f,undefined,a))return f;else e=igRF_d}else igRF_a(igRF_.iter.StopIteration)};return d};
igRF_.iter.toArray=function(a){if(igRF_.isArrayLike(a))return igRF_.array.toArray(a);a=igRF_.iter.toIterator(a);var b=[];igRF_.iter.forEach(a,function(c){b.push(c)});return b};
igRF_.iter.equals=function(a,b){a=igRF_.iter.toIterator(a);b=igRF_.iter.toIterator(b);var c,d;try{for(;;){c=d=igRF_d;var e=a.next();c=igRF_b;var f=b.next();d=igRF_b;if(e!=f)return igRF_d}}catch(g){if(g!==igRF_.iter.StopIteration)igRF_a(g);else{if(c&&!d)return igRF_d;if(!d)try{b.next();return igRF_d}catch(h){if(h!==igRF_.iter.StopIteration)igRF_a(h);return igRF_b}}}return igRF_d};
igRF_.iter.nextOrValue=function(a,b){try{return igRF_.iter.toIterator(a).next()}catch(c){if(c!=igRF_.iter.StopIteration)igRF_a(c);return b}};igRF_.string={};igRF_.string.Unicode={NBSP:"\u00a0"};igRF_.string.startsWith=function(a,b){return a.lastIndexOf(b,0)==0};igRF_.string.endsWith=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c};igRF_.string.caseInsensitiveStartsWith=function(a,b){return igRF_.string.caseInsensitiveCompare(b,a.substr(0,b.length))==0};igRF_.string.caseInsensitiveEndsWith=function(a,b){return igRF_.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))==0};
igRF_.string.subs=function(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a};igRF_.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};igRF_.string.p=function(a){return/^[\s\xa0]*$/.test(a)};igRF_.string.isEmptySafe=function(a){return igRF_.string.p(igRF_.string.makeSafe(a))};igRF_.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};igRF_.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};
igRF_.string.isNumeric=function(a){return!/[^0-9]/.test(a)};igRF_.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};igRF_.string.isSpace=function(a){return a==" "};igRF_.string.isUnicodeChar=function(a){return a.length==1&&a>=" "&&a<="~"||a>="\u0080"&&a<="\ufffd"};igRF_.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};igRF_.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};
igRF_.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};igRF_.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};igRF_.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};igRF_.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};igRF_.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};igRF_.string.caseInsensitiveCompare=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1};
igRF_.string.fg=/(\.\d+)|(\d+)|(\D+)/g;igRF_.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var c=a.toLowerCase().match(igRF_.string.fg),d=b.toLowerCase().match(igRF_.string.fg),e=Math.min(c.length,d.length),f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h){a=parseInt(g,10);if(!isNaN(a)){b=parseInt(h,10);if(!isNaN(b)&&a-b)return a-b}return g<h?-1:1}}if(c.length!=d.length)return c.length-d.length;return a<b?-1:1};igRF_.string.uh=/^[a-zA-Z0-9\-_.!~*'()]*$/;
igRF_.string.urlEncode=function(a){a=String(a);if(!igRF_.string.uh.test(a))return encodeURIComponent(a);return a};igRF_.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};igRF_.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
igRF_.string.htmlEscape=function(a,b){if(b)return a.replace(igRF_.string.Je,"&amp;").replace(igRF_.string.Uf,"&lt;").replace(igRF_.string.wf,"&gt;").replace(igRF_.string.og,"&quot;");else{if(!igRF_.string.gh.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(igRF_.string.Je,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(igRF_.string.Uf,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(igRF_.string.wf,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(igRF_.string.og,"&quot;");return a}};igRF_.string.Je=/&/g;
igRF_.string.Uf=/</g;igRF_.string.wf=/>/g;igRF_.string.og=/\"/g;igRF_.string.gh=/[&<>\"]/;igRF_.string.unescapeEntities=function(a){if(igRF_.string.contains(a,"&"))return"document"in igRF_.global&&!igRF_.string.contains(a,"<")?igRF_.string.Qh(a):igRF_.string.Rh(a);return a};igRF_.string.Qh=function(a){var b=igRF_.global.document.createElement("a");b.innerHTML=a;b[igRF_.string.Ae]&&b[igRF_.string.Ae]();a=b.firstChild.nodeValue;b.innerHTML="";return a};
igRF_.string.Rh=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){c=Number("0"+c.substr(1));if(!isNaN(c))return String.fromCharCode(c)}return b}})};igRF_.string.Ae="normalize";igRF_.string.whitespaceEscape=function(a,b){return igRF_.string.newLineToBr(a.replace(/  /g," &#160;"),b)};
igRF_.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=c==1?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a};igRF_.string.truncate=function(a,b,c){if(c)a=igRF_.string.unescapeEntities(a);if(a.length>b)a=a.substring(0,b-3)+"...";if(c)a=igRF_.string.htmlEscape(a);return a};
igRF_.string.truncateMiddle=function(a,b,c){if(c)a=igRF_.string.unescapeEntities(a);if(a.length>b){var d=Math.floor(b/2),e=a.length-d;d+=b%2;a=a.substring(0,d)+"..."+a.substring(e)}if(c)a=igRF_.string.htmlEscape(a);return a};igRF_.string.Vd={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"'":"\\'","\\":"\\\\"};
igRF_.string.quote=function(a){a=String(a);if(a.quote)return a.quote();else{for(var b=['"'],c=0;c<a.length;c++)b[c+1]=igRF_.string.escapeChar(a.charAt(c));b.push('"');return b.join("")}};igRF_.string.escapeChar=function(a){if(a in igRF_.string.Vd)return igRF_.string.Vd[a];var b=a,c=a.charCodeAt(0);if(c>31&&c<127)b=a;else{if(c<256){b="\\x";if(c<16||c>256)b+="0"}else{b="\\u";if(c<4096)b+="0"}b+=c.toString(16).toUpperCase()}return igRF_.string.Vd[a]=b};
igRF_.string.toMap=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=igRF_b;return b};igRF_.string.contains=function(a,b){return a.indexOf(b)!=-1};igRF_.string.removeAt=function(a,b,c){var d=a;if(b>=0&&b<a.length&&c>0)d=a.substr(0,b)+a.substr(b+c,a.length-b-c);return d};igRF_.string.remove=function(a,b){b=new RegExp(igRF_.string.regExpEscape(b),"");return a.replace(b,"")};igRF_.string.nb=function(a,b){b=new RegExp(igRF_.string.regExpEscape(b),"g");return a.replace(b,"")};
igRF_.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};igRF_.string.repeat=function(a,b){return(new Array(b+1)).join(a)};igRF_.string.padNumber=function(a,b,c){a=igRF_.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");if(c==-1)c=a.length;return igRF_.string.repeat("0",Math.max(0,b-c))+a};igRF_.string.makeSafe=function(a){return a==igRF_c?"":String(a)};
igRF_.string.buildString=function(){return Array.prototype.join.call(arguments,"")};igRF_.string.getRandomString=function(){return Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^igRF_.now()).toString(36)};
igRF_.string.compareVersions=function(a,b){var c=0;a=igRF_.string.trim(String(a)).split(".");b=igRF_.string.trim(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",g=b[e]||"",h=new RegExp("(\\d*)(\\D*)","g"),i=new RegExp("(\\d*)(\\D*)","g");do{var j=h.exec(f)||["","",""],k=i.exec(g)||["","",""];if(j[0].length==0&&k[0].length==0)break;c=j[1].length==0?0:parseInt(j[1],10);var l=k[1].length==0?0:parseInt(k[1],10);c=igRF_.string.Vc(c,l)||igRF_.string.Vc(j[2].length==
0,k[2].length==0)||igRF_.string.Vc(j[2],k[2])}while(c==0)}return c};igRF_.string.Vc=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};igRF_.string.bh=4294967296;igRF_.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c){b=31*b+a.charCodeAt(c);b%=igRF_.string.bh}return b};igRF_.string.Th=Math.random()*2147483648|0;igRF_.string.createUniqueString=function(){return"goog_"+igRF_.string.Th++};igRF_.string.toNumber=function(a){var b=Number(a);if(b==0&&igRF_.string.p(a))return NaN;return b};igRF_.debug={};igRF_.debug.errorHandlerWeakDep={protectEntryPoint:function(a){return a}};igRF_.object={};igRF_.object.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};igRF_.object.filter=function(a,b,c){var d={};for(var e in a)if(b.call(c,a[e],e,a))d[e]=a[e];return d};igRF_.object.map=function(a,b,c){var d={};for(var e in a)d[e]=b.call(c,a[e],e,a);return d};igRF_.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return igRF_b;return igRF_d};igRF_.object.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return igRF_d;return igRF_b};
igRF_.object.ia=function(a){var b=0;for(var c in a)b++;return b};igRF_.object.getAnyKey=function(a){for(var b in a)return b};igRF_.object.getAnyValue=function(a){for(var b in a)return a[b]};igRF_.object.contains=function(a,b){return igRF_.object.Ca(a,b)};igRF_.object.j=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b};igRF_.object.l=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b};igRF_.object.na=function(a,b){return b in a};
igRF_.object.Ca=function(a,b){for(var c in a)if(a[c]==b)return igRF_b;return igRF_d};igRF_.object.findKey=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};igRF_.object.findValue=function(a,b,c){return(b=igRF_.object.findKey(a,b,c))&&a[b]};igRF_.object.p=function(a){for(var b in a)return igRF_d;return igRF_b};igRF_.object.clear=function(a){for(var b=igRF_.object.l(a),c=b.length-1;c>=0;c--)igRF_.object.remove(a,b[c])};igRF_.object.remove=function(a,b){var c;if(c=b in a)delete a[b];return c};
igRF_.object.add=function(a,b,c){if(b in a)igRF_a(Error('The object already contains the key "'+b+'"'));igRF_.object.set(a,b,c)};igRF_.object.get=function(a,b,c){if(b in a)return a[b];return c};igRF_.object.set=function(a,b,c){a[b]=c};igRF_.object.setIfUndefined=function(a,b,c){return b in a?a[b]:(a[b]=c)};igRF_.object.clone=function(a){var b={};for(var c in a)b[c]=a[c];return b};igRF_.object.transpose=function(a){var b={};for(var c in a)b[a[c]]=c;return b};
igRF_.object.Be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];igRF_.object.extend=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<igRF_.object.Be.length;e++){b=igRF_.object.Be[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}};
igRF_.object.create=function(){var a=arguments.length;if(a==1&&igRF_.isArray(arguments[0]))return igRF_.object.create.apply(igRF_c,arguments[0]);if(a%2)igRF_a(Error("Uneven number of arguments"));for(var b={},c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b};igRF_.object.createSet=function(){var a=arguments.length;if(a==1&&igRF_.isArray(arguments[0]))return igRF_.object.createSet.apply(igRF_c,arguments[0]);for(var b={},c=0;c<a;c++)b[arguments[c]]=igRF_b;return b};igRF_.userAgent={};igRF_.userAgent.ASSUME_IE=igRF_d;igRF_.userAgent.ASSUME_GECKO=igRF_d;igRF_.userAgent.ASSUME_WEBKIT=igRF_d;igRF_.userAgent.ASSUME_MOBILE_WEBKIT=igRF_d;igRF_.userAgent.ASSUME_OPERA=igRF_d;igRF_.userAgent.Xa=igRF_.userAgent.ASSUME_IE||igRF_.userAgent.ASSUME_GECKO||igRF_.userAgent.ASSUME_MOBILE_WEBKIT||igRF_.userAgent.ASSUME_WEBKIT||igRF_.userAgent.ASSUME_OPERA;igRF_.userAgent.getUserAgentString=function(){return igRF_.global.navigator?igRF_.global.navigator.userAgent:igRF_c};
igRF_.userAgent.getNavigator=function(){return igRF_.global.navigator};
igRF_.userAgent.Sd=function(){igRF_.userAgent.wb=igRF_d;igRF_.userAgent.We=igRF_d;igRF_.userAgent.ec=igRF_d;igRF_.userAgent.Xe=igRF_d;igRF_.userAgent.Ve=igRF_d;var a;if(!igRF_.userAgent.Xa&&(a=igRF_.userAgent.getUserAgentString())){var b=igRF_.userAgent.getNavigator();igRF_.userAgent.wb=a.indexOf("Opera")==0;igRF_.userAgent.We=!igRF_.userAgent.wb&&a.indexOf("MSIE")!=-1;igRF_.userAgent.ec=!igRF_.userAgent.wb&&a.indexOf("WebKit")!=-1;igRF_.userAgent.Xe=igRF_.userAgent.ec&&a.indexOf("Mobile")!=-1;igRF_.userAgent.Ve=
!igRF_.userAgent.wb&&!igRF_.userAgent.ec&&b.product=="Gecko"}};igRF_.userAgent.Xa||igRF_.userAgent.Sd();igRF_.userAgent.OPERA=igRF_.userAgent.Xa?igRF_.userAgent.ASSUME_OPERA:igRF_.userAgent.wb;igRF_.userAgent.IE=igRF_.userAgent.Xa?igRF_.userAgent.ASSUME_IE:igRF_.userAgent.We;igRF_.userAgent.GECKO=igRF_.userAgent.Xa?igRF_.userAgent.ASSUME_GECKO:igRF_.userAgent.Ve;igRF_.userAgent.WEBKIT=igRF_.userAgent.Xa?igRF_.userAgent.ASSUME_WEBKIT||igRF_.userAgent.ASSUME_MOBILE_WEBKIT:igRF_.userAgent.ec;
igRF_.userAgent.MOBILE=igRF_.userAgent.ASSUME_MOBILE_WEBKIT||igRF_.userAgent.Xe;igRF_.userAgent.SAFARI=igRF_.userAgent.WEBKIT;igRF_.userAgent.ph=function(){var a=igRF_.userAgent.getNavigator();return a&&a.platform||""};igRF_.userAgent.PLATFORM=igRF_.userAgent.ph();igRF_.userAgent.ASSUME_MAC=igRF_d;igRF_.userAgent.ASSUME_WINDOWS=igRF_d;igRF_.userAgent.ASSUME_LINUX=igRF_d;igRF_.userAgent.ASSUME_X11=igRF_d;
igRF_.userAgent.tb=igRF_.userAgent.ASSUME_MAC||igRF_.userAgent.ASSUME_WINDOWS||igRF_.userAgent.ASSUME_LINUX||igRF_.userAgent.ASSUME_X11;
igRF_.userAgent.yh=function(){igRF_.userAgent.mh=igRF_.string.contains(igRF_.userAgent.PLATFORM,"Mac");igRF_.userAgent.nh=igRF_.string.contains(igRF_.userAgent.PLATFORM,"Win");igRF_.userAgent.lh=igRF_.string.contains(igRF_.userAgent.PLATFORM,"Linux");igRF_.userAgent.oh=!!igRF_.userAgent.getNavigator()&&igRF_.string.contains(igRF_.userAgent.getNavigator().appVersion||"","X11")};igRF_.userAgent.tb||igRF_.userAgent.yh();igRF_.userAgent.MAC=igRF_.userAgent.tb?igRF_.userAgent.ASSUME_MAC:igRF_.userAgent.mh;
igRF_.userAgent.WINDOWS=igRF_.userAgent.tb?igRF_.userAgent.ASSUME_WINDOWS:igRF_.userAgent.nh;igRF_.userAgent.LINUX=igRF_.userAgent.tb?igRF_.userAgent.ASSUME_LINUX:igRF_.userAgent.lh;igRF_.userAgent.X11=igRF_.userAgent.tb?igRF_.userAgent.ASSUME_X11:igRF_.userAgent.oh;
igRF_.userAgent.qh=function(){var a="",b;if(igRF_.userAgent.OPERA&&igRF_.global.opera){a=igRF_.global.opera.version;a=typeof a=="function"?a():a}else{if(igRF_.userAgent.GECKO)b=/rv\:([^\);]+)(\)|;)/;else if(igRF_.userAgent.IE)b=/MSIE\s+([^\);]+)(\)|;)/;else if(igRF_.userAgent.WEBKIT)b=/WebKit\/(\S+)/;if(b)a=(a=b.exec(igRF_.userAgent.getUserAgentString()))?a[1]:""}return a};igRF_.userAgent.VERSION=igRF_.userAgent.qh();igRF_.userAgent.compare=function(a,b){return igRF_.string.compareVersions(a,b)};
igRF_.userAgent.Mf={};igRF_.userAgent.isVersion=function(a){return igRF_.userAgent.Mf[a]||(igRF_.userAgent.Mf[a]=igRF_.string.compareVersions(igRF_.userAgent.VERSION,a)>=0)};igRF_.Disposable=function(){};igRF_.Disposable.prototype.bd=igRF_d;igRF_.Disposable.prototype.dispose=function(){if(!this.bd){this.bd=igRF_b;this.d()}};igRF_.Disposable.prototype.d=function(){};igRF_.dispose=function(a){a&&typeof a.dispose=="function"&&a.dispose()};igRF_.events={};igRF_.events.Event=function(a,b){this.type=a;this.currentTarget=this.target=b};igRF_.inherits(igRF_.events.Event,igRF_.Disposable);igRF_.events.Event.prototype.d=function(){delete this.type;delete this.target;delete this.currentTarget};igRF_.events.Event.prototype.Aa=igRF_d;igRF_.events.Event.prototype.Va=igRF_b;igRF_.events.Event.prototype.stopPropagation=function(){this.Aa=igRF_b};igRF_.events.Event.prototype.preventDefault=function(){this.Va=igRF_d};
igRF_.events.Event.stopPropagation=function(a){a.stopPropagation()};igRF_.events.Event.preventDefault=function(a){a.preventDefault()};igRF_.events.BrowserEvent=function(a,b){a&&this.init(a,b)};igRF_.inherits(igRF_.events.BrowserEvent,igRF_.events.Event);igRF_.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2};igRF_.events.BrowserEvent.Wh=[1,4,2];igRF_.events.BrowserEvent.prototype.target=igRF_c;igRF_.events.BrowserEvent.prototype.relatedTarget=igRF_c;igRF_.events.BrowserEvent.prototype.offsetX=0;igRF_.events.BrowserEvent.prototype.offsetY=0;igRF_.events.BrowserEvent.prototype.clientX=0;
igRF_.events.BrowserEvent.prototype.clientY=0;igRF_.events.BrowserEvent.prototype.screenX=0;igRF_.events.BrowserEvent.prototype.screenY=0;igRF_.events.BrowserEvent.prototype.button=0;igRF_.events.BrowserEvent.prototype.keyCode=0;igRF_.events.BrowserEvent.prototype.charCode=0;igRF_.events.BrowserEvent.prototype.ctrlKey=igRF_d;igRF_.events.BrowserEvent.prototype.altKey=igRF_d;igRF_.events.BrowserEvent.prototype.shiftKey=igRF_d;igRF_.events.BrowserEvent.prototype.metaKey=igRF_d;
igRF_.events.BrowserEvent.prototype.kg=igRF_d;igRF_.events.BrowserEvent.prototype.Da=igRF_c;
igRF_.events.BrowserEvent.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;if(b=a.relatedTarget){if(igRF_.userAgent.GECKO)try{b=b.nodeName&&b}catch(d){b=igRF_c}}else if(c=="mouseover")b=a.fromElement;else if(c=="mouseout")b=a.toElement;this.relatedTarget=b;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==
undefined?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.kg=igRF_.userAgent.MAC?a.metaKey:a.ctrlKey;this.Da=a;delete this.Va;delete this.Aa};
igRF_.events.BrowserEvent.prototype.stopPropagation=function(){this.Aa=igRF_b;if(this.Da.stopPropagation)this.Da.stopPropagation();else this.Da.cancelBubble=igRF_b};igRF_.events.BrowserEvent.dh=igRF_.userAgent.IE&&!igRF_.userAgent.isVersion("8");igRF_.events.BrowserEvent.prototype.preventDefault=function(){this.Va=igRF_d;var a=this.Da;if(a.preventDefault)a.preventDefault();else{a.returnValue=igRF_d;if(igRF_.events.BrowserEvent.dh)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};
igRF_.events.BrowserEvent.prototype.df=function(){return this.Da};igRF_.events.BrowserEvent.prototype.d=function(){igRF_.events.BrowserEvent.aa.d.call(this);this.relatedTarget=this.currentTarget=this.target=this.Da=igRF_c};igRF_.events.EventWrapper=function(){};igRF_.events.EventWrapper.prototype.listen=function(){};igRF_.events.EventWrapper.prototype.unlisten=function(){};igRF_.structs={};igRF_.structs.SimplePool=function(a,b){this.Yf=b;this.Oa=[];this.Se(a)};igRF_.inherits(igRF_.structs.SimplePool,igRF_.Disposable);igRF_.structs.SimplePool.prototype.cc=igRF_c;igRF_.structs.SimplePool.prototype.ad=igRF_c;igRF_.structs.SimplePool.prototype.ob=function(a){this.cc=a};igRF_.structs.SimplePool.prototype.ja=function(){if(this.Oa.length)return this.Oa.pop();return this.Wc()};igRF_.structs.SimplePool.prototype.la=function(a){this.Oa.length<this.Yf?this.Oa.push(a):this.$c(a)};
igRF_.structs.SimplePool.prototype.Se=function(a){if(a>this.Yf)igRF_a(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.Oa.push(this.Wc())};igRF_.structs.SimplePool.prototype.Wc=function(){return this.cc?this.cc():{}};igRF_.structs.SimplePool.prototype.$c=function(a){if(this.ad)this.ad(a);else if(igRF_.isFunction(a.dispose))a.dispose();else for(var b in a)delete a[b]};
igRF_.structs.SimplePool.prototype.d=function(){igRF_.structs.SimplePool.aa.d.call(this);for(var a=this.Oa;a.length;)this.$c(a.pop());delete this.Oa};igRF_.userAgent.jscript={};igRF_.userAgent.jscript.ASSUME_NO_JSCRIPT=igRF_d;igRF_.userAgent.jscript.Sd=function(){var a="ScriptEngine"in igRF_.global;igRF_.userAgent.jscript.ye=a&&igRF_.global.ScriptEngine()=="JScript";igRF_.userAgent.jscript.ah=igRF_.userAgent.jscript.ye?igRF_.global.ScriptEngineMajorVersion()+"."+igRF_.global.ScriptEngineMinorVersion()+"."+igRF_.global.ScriptEngineBuildVersion():"0"};igRF_.userAgent.jscript.ASSUME_NO_JSCRIPT||igRF_.userAgent.jscript.Sd();
igRF_.userAgent.jscript.HAS_JSCRIPT=igRF_.userAgent.jscript.ASSUME_NO_JSCRIPT?igRF_d:igRF_.userAgent.jscript.ye;igRF_.userAgent.jscript.VERSION=igRF_.userAgent.jscript.ASSUME_NO_JSCRIPT?"0":igRF_.userAgent.jscript.ah;igRF_.userAgent.jscript.isVersion=function(a){return igRF_.string.compareVersions(igRF_.userAgent.jscript.VERSION,a)>=0};igRF_.events.Listener=function(){};igRF_.events.Listener.ih=0;igRF_.events.Listener.prototype.key=0;igRF_.events.Listener.prototype.removed=igRF_d;igRF_.events.Listener.prototype.vb=igRF_d;
igRF_.events.Listener.prototype.init=function(a,b,c,d,e,f){if(igRF_.isFunction(a))this.Jf=igRF_b;else if(a&&a.handleEvent&&igRF_.isFunction(a.handleEvent))this.Jf=igRF_d;else igRF_a(Error("Invalid listener argument"));this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.vb=igRF_d;this.key=++igRF_.events.Listener.ih;this.removed=igRF_d};
igRF_.events.Listener.prototype.handleEvent=function(a){if(this.Jf)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};igRF_.events.pools={};
(function(){function a(){return{b:0,ma:0}}function b(){return[]}function c(){var m=function(o){return g.call(m.src,m.key,o)};return m}function d(){return new igRF_.events.Listener}function e(){return new igRF_.events.BrowserEvent}var f=igRF_.userAgent.jscript.HAS_JSCRIPT&&!igRF_.userAgent.jscript.isVersion("5.7"),g;igRF_.events.pools.setProxyCallbackFunction=function(m){g=m};if(f){igRF_.events.pools.ja=function(){return h.ja()};igRF_.events.pools.la=function(m){h.la(m)};igRF_.events.pools.getArray=function(){return i.ja()};
igRF_.events.pools.releaseArray=function(m){i.la(m)};igRF_.events.pools.getProxy=function(){return j.ja()};igRF_.events.pools.releaseProxy=function(){j.la(c())};igRF_.events.pools.getListener=function(){return k.ja()};igRF_.events.pools.releaseListener=function(m){k.la(m)};igRF_.events.pools.getEvent=function(){return l.ja()};igRF_.events.pools.releaseEvent=function(m){l.la(m)};var h=new igRF_.structs.SimplePool(0,600);h.ob(a);var i=new igRF_.structs.SimplePool(0,600);i.ob(b);var j=new igRF_.structs.SimplePool(0,
600);j.ob(c);var k=new igRF_.structs.SimplePool(0,600);k.ob(d);var l=new igRF_.structs.SimplePool(0,600);l.ob(e)}else{igRF_.events.pools.ja=a;igRF_.events.pools.la=igRF_.nullFunction;igRF_.events.pools.getArray=b;igRF_.events.pools.releaseArray=igRF_.nullFunction;igRF_.events.pools.getProxy=c;igRF_.events.pools.releaseProxy=igRF_.nullFunction;igRF_.events.pools.getListener=d;igRF_.events.pools.releaseListener=igRF_.nullFunction;igRF_.events.pools.getEvent=e;igRF_.events.pools.releaseEvent=igRF_.nullFunction}})();igRF_.events.v={};igRF_.events.s={};igRF_.events.ta={};igRF_.events.Fh="on";igRF_.events.he={};igRF_.events.Yh="_";
igRF_.events.listen=function(a,b,c,d,e){if(b)if(igRF_.isArray(b)){for(var f=0;f<b.length;f++)igRF_.events.listen(a,b[f],c,d,e);return igRF_c}else{d=!!d;var g=igRF_.events.s;b in g||(g[b]=igRF_.events.pools.ja());g=g[b];if(!(d in g)){g[d]=igRF_.events.pools.ja();g.b++}g=g[d];var h=igRF_.getHashCode(a),i;g.ma++;if(g[h]){i=g[h];for(f=0;f<i.length;f++){g=i[f];if(g.listener==c&&g.handler==e){if(g.removed)break;return i[f].key}}}else{i=g[h]=igRF_.events.pools.getArray();g.b++}f=igRF_.events.pools.getProxy();
f.src=a;g=igRF_.events.pools.getListener();g.init(c,f,a,b,d,e);c=g.key;f.key=c;i.push(g);igRF_.events.v[c]=g;igRF_.events.ta[h]||(igRF_.events.ta[h]=igRF_.events.pools.getArray());igRF_.events.ta[h].push(g);if(a.addEventListener){if(a==igRF_.global||!a.Yc)a.addEventListener(b,f,d)}else a.attachEvent(igRF_.events.qf(b),f);return c}else igRF_a(Error("Invalid event type"))};
igRF_.events.Hb=function(a,b,c,d,e){if(igRF_.isArray(b)){for(var f=0;f<b.length;f++)igRF_.events.Hb(a,b[f],c,d,e);return igRF_c}a=igRF_.events.listen(a,b,c,d,e);b=igRF_.events.v[a];b.vb=igRF_b;return a};igRF_.events.Sf=function(a,b,c,d,e){b.listen(a,c,d,e)};
igRF_.events.unlisten=function(a,b,c,d,e){if(igRF_.isArray(b)){for(var f=0;f<b.length;f++)igRF_.events.unlisten(a,b[f],c,d,e);return igRF_c}d=!!d;a=igRF_.events.rd(a,b,d);if(!a)return igRF_d;for(f=0;f<a.length;f++)if(a[f].listener==c&&a[f].capture==d&&a[f].handler==e)return igRF_.events.unlistenByKey(a[f].key);return igRF_d};
igRF_.events.unlistenByKey=function(a){if(!igRF_.events.v[a])return igRF_d;var b=igRF_.events.v[a];if(b.removed)return igRF_d;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==igRF_.global||!c.Yc)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(igRF_.events.qf(d),e);c=igRF_.getHashCode(c);e=igRF_.events.s[d][f][c];if(igRF_.events.ta[c]){var g=igRF_.events.ta[c];igRF_.array.remove(g,b);g.length==0&&delete igRF_.events.ta[c]}b.removed=igRF_b;e.dg=igRF_b;igRF_.events.Oe(d,
f,c,e);delete igRF_.events.v[a];return igRF_b};igRF_.events.Vg=function(a,b,c,d,e){b.unlisten(a,c,d,e)};
igRF_.events.Oe=function(a,b,c,d){if(!d.Dc)if(d.dg){for(var e=0,f=0;e<d.length;e++)if(d[e].removed){var g=d[e].proxy;g.src=igRF_c;igRF_.events.pools.releaseProxy(g);igRF_.events.pools.releaseListener(d[e])}else{if(e!=f)d[f]=d[e];f++}d.length=f;d.dg=igRF_d;if(f==0){igRF_.events.pools.releaseArray(d);delete igRF_.events.s[a][b][c];igRF_.events.s[a][b].b--;if(igRF_.events.s[a][b].b==0){igRF_.events.pools.la(igRF_.events.s[a][b]);delete igRF_.events.s[a][b];igRF_.events.s[a].b--}if(igRF_.events.s[a].b==
0){igRF_.events.pools.la(igRF_.events.s[a]);delete igRF_.events.s[a]}}}};
igRF_.events.nb=function(a,b,c){var d=0,e=a==igRF_c,f=b==igRF_c,g=c==igRF_c;c=!!c;if(e)igRF_.object.forEach(igRF_.events.ta,function(i){for(var j=i.length-1;j>=0;j--){var k=i[j];if((f||b==k.type)&&(g||c==k.capture)){igRF_.events.unlistenByKey(k.key);d++}}});else{a=igRF_.getHashCode(a);if(igRF_.events.ta[a]){a=igRF_.events.ta[a];for(e=a.length-1;e>=0;e--){var h=a[e];if((f||b==h.type)&&(g||c==h.capture)){igRF_.events.unlistenByKey(h.key);d++}}}}return d};
igRF_.events.getListeners=function(a,b,c){return igRF_.events.rd(a,b,c)||[]};igRF_.events.rd=function(a,b,c){var d=igRF_.events.s;if(b in d){d=d[b];if(c in d){d=d[c];a=igRF_.getHashCode(a);if(d[a])return d[a]}}return igRF_c};igRF_.events.getListener=function(a,b,c,d,e){d=!!d;if(a=igRF_.events.rd(a,b,d))for(b=0;b<a.length;b++)if(a[b].listener==c&&a[b].capture==d&&a[b].handler==e)return a[b];return igRF_c};
igRF_.events.hasListener=function(a,b,c){a=igRF_.getHashCode(a);var d=igRF_.events.ta[a];if(d){var e=igRF_.isDef(b),f=igRF_.isDef(c);if(e&&f){d=igRF_.events.s[b];return!!d&&!!d[c]&&a in d[c]}else return e||f?igRF_.array.some(d,function(g){return e&&g.type==b||f&&g.capture==c}):igRF_b}return igRF_d};igRF_.events.expose=function(a){var b=[];for(var c in a)a[c]&&a[c].id?b.push(c+" = "+a[c]+" ("+a[c].id+")"):b.push(c+" = "+a[c]);return b.join("\n")};
igRF_.events.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",SELECTSTART:"selectstart",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",DEACTIVATE:"deactivate",FOCUSIN:igRF_.userAgent.IE?"focusin":"DOMFocusIn",FOCUSOUT:igRF_.userAgent.IE?"focusout":"DOMFocusOut",CHANGE:"change",SELECT:"select",SUBMIT:"submit",CONTEXTMENU:"contextmenu",DRAGSTART:"dragstart",ERROR:"error",
HASHCHANGE:"hashchange",HELP:"help",LOAD:"load",LOSECAPTURE:"losecapture",READYSTATECHANGE:"readystatechange",RESIZE:"resize",SCROLL:"scroll",UNLOAD:"unload"};igRF_.events.qf=function(a){if(a in igRF_.events.he)return igRF_.events.he[a];return igRF_.events.he[a]=igRF_.events.Fh+a};igRF_.events.fireListeners=function(a,b,c,d){var e=igRF_.events.s;if(b in e){e=e[b];if(c in e)return igRF_.events.cb(e[c],a,b,c,d)}return igRF_b};
igRF_.events.cb=function(a,b,c,d,e){var f=1;b=igRF_.getHashCode(b);if(a[b]){a.ma--;a=a[b];if(a.Dc)a.Dc++;else a.Dc=1;try{for(var g=a.length,h=0;h<g;h++){var i=a[h];if(i&&!i.removed)f&=igRF_.events.fireListener(i,e)!==igRF_d}}finally{a.Dc--;igRF_.events.Oe(c,d,b,a)}}return Boolean(f)};igRF_.events.fireListener=function(a,b){b=a.handleEvent(b);a.vb&&igRF_.events.unlistenByKey(a.key);return b};igRF_.events.getTotalListenerCount=function(){return igRF_.object.ia(igRF_.events.v)};
igRF_.events.dispatchEvent=function(a,b){if(igRF_.isString(b))b=new igRF_.events.Event(b,a);else if(b instanceof igRF_.events.Event)b.target=b.target||a;else{var c=b;b=new igRF_.events.Event(b.type,a);igRF_.object.extend(b,c)}c=1;var d,e=b.type,f=igRF_.events.s;if(!(e in f))return igRF_b;f=f[e];e=igRF_b in f;var g;if(e){d=[];for(g=a;g;g=g.wd())d.push(g);g=f[igRF_b];g.ma=g.b;for(var h=d.length-1;!b.Aa&&h>=0&&g.ma;h--){b.currentTarget=d[h];c&=igRF_.events.cb(g,d[h],b.type,igRF_b,b)&&b.Va!=igRF_d}}if(g=
igRF_d in f){g=f[igRF_d];g.ma=g.b;if(e)for(h=0;!b.Aa&&h<d.length&&g.ma;h++){b.currentTarget=d[h];c&=igRF_.events.cb(g,d[h],b.type,igRF_d,b)&&b.Va!=igRF_d}else for(a=a;!b.Aa&&a&&g.ma;a=a.wd()){b.currentTarget=a;c&=igRF_.events.cb(g,a,b.type,igRF_d,b)&&b.Va!=igRF_d}}return Boolean(c)};igRF_.events.protectBrowserEventEntryPoint=function(a,b){igRF_.events.uc=a.protectEntryPoint(igRF_.events.uc,b);igRF_.events.pools.setProxyCallbackFunction(igRF_.events.uc)};
igRF_.events.uc=function(a,b){if(!igRF_.events.v[a])return igRF_b;a=igRF_.events.v[a];var c=a.type,d=igRF_.events.s;if(!(c in d))return igRF_b;d=d[c];var e,f;if(igRF_.userAgent.IE){e=b||igRF_.getObjectByName("window.event");b=igRF_b in d;var g=igRF_d in d;if(b){if(igRF_.events.Bh(e))return igRF_b;igRF_.events.Dh(e)}var h=igRF_.events.pools.getEvent();h.init(e,this);e=igRF_b;try{if(b){for(var i=igRF_.events.pools.getArray(),j=h.currentTarget;j;j=j.parentNode)i.push(j);f=d[igRF_b];f.ma=f.b;for(var k=
i.length-1;!h.Aa&&k>=0&&f.ma;k--){h.currentTarget=i[k];e&=igRF_.events.cb(f,i[k],c,igRF_b,h)}if(g){f=d[igRF_d];f.ma=f.b;for(k=0;!h.Aa&&k<i.length&&f.ma;k++){h.currentTarget=i[k];e&=igRF_.events.cb(f,i[k],c,igRF_d,h)}}}else e=igRF_.events.fireListener(a,h)}finally{if(i){i.length=0;igRF_.events.pools.releaseArray(i)}h.dispose();igRF_.events.pools.releaseEvent(h)}return e}f=new igRF_.events.BrowserEvent(b,this);try{e=igRF_.events.fireListener(a,f)}finally{f.dispose()}return e};igRF_.events.pools.setProxyCallbackFunction(igRF_.events.uc);
igRF_.events.Dh=function(a){var b=igRF_d;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=igRF_b}if(b||a.returnValue==undefined)a.returnValue=igRF_b};igRF_.events.Bh=function(a){return a.keyCode<0||a.returnValue!=undefined};igRF_.events.Sh=0;igRF_.events.getUniqueId=function(a){return a+"_"+igRF_.events.Sh++};igRF_.events.EventTarget=function(){};igRF_.inherits(igRF_.events.EventTarget,igRF_.Disposable);igRF_.events.EventTarget.prototype.Yc=igRF_b;igRF_.events.EventTarget.prototype.je=igRF_c;igRF_.events.EventTarget.prototype.wd=function(){return this.je};igRF_.events.EventTarget.prototype.addEventListener=function(a,b,c,d){igRF_.events.listen(this,a,b,c,d)};igRF_.events.EventTarget.prototype.removeEventListener=function(a,b,c,d){igRF_.events.unlisten(this,a,b,c,d)};
igRF_.events.EventTarget.prototype.dispatchEvent=function(a){return igRF_.events.dispatchEvent(this,a)};igRF_.events.EventTarget.prototype.d=function(){igRF_.events.EventTarget.aa.d.call(this);igRF_.events.nb(this);this.je=igRF_c};igRF_.ui={};igRF_.ui.AutoComplete=function(a,b,c){this.Sa=a;this.Jc=c;this.ra=b;igRF_.events.listen(b,[igRF_.ui.AutoComplete.EventType.HILITE,igRF_.ui.AutoComplete.EventType.SELECT,igRF_.ui.AutoComplete.EventType.CANCEL_DISMISS,igRF_.ui.AutoComplete.EventType.DISMISS],this);this.ua=igRF_c;this.m=[];this.ea=-1;this.pa=0;this.Ja=this.u=igRF_c};igRF_.inherits(igRF_.ui.AutoComplete,igRF_.events.EventTarget);igRF_.ui.AutoComplete.prototype.Ib=10;igRF_.ui.AutoComplete.prototype.Rc=igRF_b;
igRF_.ui.AutoComplete.prototype.Ie=igRF_d;igRF_.ui.AutoComplete.prototype.Sg=igRF_d;igRF_.ui.AutoComplete.EventType={HILITE:"hilite",SELECT:"select",DISMISS:"dismiss",CANCEL_DISMISS:"canceldismiss",UPDATE:"update"};igRF_.ui.AutoComplete.prototype.qc=function(){return this.ra};
igRF_.ui.AutoComplete.prototype.handleEvent=function(a){if(a.target==this.ra)switch(a.type){case igRF_.ui.AutoComplete.EventType.HILITE:this.qa(a.row);break;case igRF_.ui.AutoComplete.EventType.SELECT:this.Nb();break;case igRF_.ui.AutoComplete.EventType.CANCEL_DISMISS:this.ac();break;case igRF_.ui.AutoComplete.EventType.DISMISS:this.Zc();break}};igRF_.ui.AutoComplete.prototype.ne=function(a){this.Ib=a};igRF_.ui.AutoComplete.prototype.zg=function(a){this.Rc=a};
igRF_.ui.AutoComplete.prototype.Ig=function(a,b){if(this.ua!=a){this.ua=a;this.Sa.Gc(this.ua,this.Ib,igRF_.bind(this.Xf,this),b);this.ac()}};igRF_.ui.AutoComplete.prototype.Hg=function(a){this.u=a};igRF_.ui.AutoComplete.prototype.isOpen=function(){return this.ra.Nf()};igRF_.ui.AutoComplete.prototype.Od=function(){if(this.ea>=this.pa&&this.ea<this.pa+this.m.length-1){this.qa(this.ea+1);return igRF_b}else if(this.ea==-1){this.qa(this.pa);return igRF_b}return igRF_d};
igRF_.ui.AutoComplete.prototype.Pd=function(){if(this.ea>this.pa){this.qa(this.ea-1);return igRF_b}else this.Ie&&this.ea==this.pa&&this.qa(-1);return igRF_d};igRF_.ui.AutoComplete.prototype.qa=function(a){this.ea=a;this.ra.qa(a);return this.nc(a)!=-1};
igRF_.ui.AutoComplete.prototype.Nb=function(){var a=this.nc(this.ea);if(a!=-1){a=this.m[a];var b=this.Jc.wg(a);this.dismiss();if(!b){this.dispatchEvent({type:igRF_.ui.AutoComplete.EventType.UPDATE,row:a});this.Sg&&this.Jc.update(igRF_b)}return igRF_b}else{this.dismiss();this.dispatchEvent({type:igRF_.ui.AutoComplete.EventType.UPDATE,row:igRF_c});return igRF_d}};
igRF_.ui.AutoComplete.prototype.dismiss=function(){this.ea=-1;this.ua=igRF_c;this.pa+=this.m.length;this.m=[];window.clearTimeout(this.Ja);this.Ja=igRF_c;this.ra.dismiss()};igRF_.ui.AutoComplete.prototype.Zc=function(){if(!this.Ja)this.Ja=window.setTimeout(igRF_.bind(this.dismiss,this),100)};igRF_.ui.AutoComplete.prototype.ac=function(){window.setTimeout(igRF_.bind(function(){if(this.Ja){window.clearTimeout(this.Ja);this.Ja=igRF_c}},this),10)};
igRF_.ui.AutoComplete.prototype.d=function(){igRF_.ui.AutoComplete.aa.d.call(this);this.ra.dispose();this.Jc.dispose();this.Sa=igRF_c};igRF_.ui.AutoComplete.prototype.Xf=function(a,b,c){if(this.ua==a){a=c?this.nc(this.ea):igRF_c;this.pa+=this.m.length;this.m=b;c=[];for(var d=0;d<b.length;++d)c.push({id:this.pd(d),data:b[d]});this.ra.ug(c,this.ua,this.u);if(this.Rc&&c.length!=0){b=a!=igRF_c?this.pd(a):this.pa;this.qa(b)}else this.ea=-1}};
igRF_.ui.AutoComplete.prototype.nc=function(a){a=a-this.pa;if(a<0||a>=this.m.length)return-1;return a};igRF_.ui.AutoComplete.prototype.pd=function(a){return this.pa+a};igRF_.ui.AutoComplete.prototype.Ya=function(){var a=this.Jc;a.Ya.apply(a,arguments)};igRF_.ui.AutoComplete.ArrayMatcher=function(a,b){this.m=a;this.Uh=!b};igRF_.ui.AutoComplete.ArrayMatcher.prototype.Gc=function(a,b,c){var d=this.sf(a,b);if(d.length==0&&this.Uh)d=this.tf(a,b);c(a,d)};igRF_.ui.AutoComplete.ArrayMatcher.prototype.sf=function(a,b){var c=[];if(a!=""){a=igRF_.string.regExpEscape(a);var d=new RegExp("(^|\\W+)"+a,"i");igRF_.iter.some(this.m,function(e){String(e).match(d)&&c.push(e);return c.length>=b})}return c};
igRF_.ui.AutoComplete.ArrayMatcher.prototype.tf=function(a,b){var c=[];igRF_.iter.forEach(this.m,function(f,g){var h=a.toLowerCase(),i=String(f).toLowerCase(),j=0;if(i.indexOf(h)!=-1)j=parseInt((i.indexOf(h)/4).toString(),10);else for(var k=h.split(""),l=-1,m=10,o=0,n;n=k[o];o++){n=i.indexOf(n);if(n>l){l=n-l-1;if(l>m-5)l=m-5;j+=l;l=n}else{j+=m;m+=5}}j<h.length*6&&c.push({str:f,score:j,index:g})});c.sort(function(f,g){var h=f.score-g.score;if(h!=0)return h;return f.index-g.index});for(var d=[],e=0;e<
b&&e<c.length;e++)d.push(c[e].str);return d};igRF_.math={};igRF_.math.Coordinate=function(a,b){this.x=igRF_.isDef(a)?a:0;this.y=igRF_.isDef(b)?b:0};igRF_.math.Coordinate.prototype.clone=function(){return new igRF_.math.Coordinate(this.x,this.y)};if(igRF_.DEBUG)igRF_.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"};igRF_.math.Coordinate.equals=function(a,b){if(a==b)return igRF_b;if(!a||!b)return igRF_d;return a.x==b.x&&a.y==b.y};
igRF_.math.Coordinate.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};igRF_.math.Coordinate.squaredDistance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return c*c+a*a};igRF_.math.Coordinate.difference=function(a,b){return new igRF_.math.Coordinate(a.x-b.x,a.y-b.y)};igRF_.math.Coordinate.sum=function(a,b){return new igRF_.math.Coordinate(a.x+b.x,a.y+b.y)};igRF_.math.Size=function(a,b){this.width=a;this.height=b};igRF_.math.Size.equals=function(a,b){if(a==b)return igRF_b;if(!a||!b)return igRF_d;return a.width==b.width&&a.height==b.height};igRF_.math.Size.prototype.clone=function(){return new igRF_.math.Size(this.width,this.height)};if(igRF_.DEBUG)igRF_.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};igRF_.math.Size.prototype.area=function(){return this.width*this.height};igRF_.math.Size.prototype.p=function(){return!this.area()};
igRF_.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};igRF_.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};igRF_.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};igRF_.math.Size.prototype.scale=function(a){this.width*=a;this.height*=a;return this};igRF_.dom={};igRF_.dom.classes={};igRF_.dom.classes.set=function(a,b){a.className=b};igRF_.dom.classes.get=function(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]};igRF_.dom.classes.add=function(a){var b=igRF_.dom.classes.get(a),c=igRF_.array.slice(arguments,1);c=igRF_.dom.classes.Ge(b,c);a.className=b.join(" ");return c};
igRF_.dom.classes.remove=function(a){var b=igRF_.dom.classes.get(a),c=igRF_.array.slice(arguments,1);c=igRF_.dom.classes.rg(b,c);a.className=b.join(" ");return c};igRF_.dom.classes.Ge=function(a,b){for(var c=0,d=0;d<b.length;d++)if(!igRF_.array.contains(a,b[d])){a.push(b[d]);c++}return c==b.length};igRF_.dom.classes.rg=function(a,b){for(var c=0,d=0;d<a.length;d++)if(igRF_.array.contains(b,a[d])){igRF_.array.splice(a,d--,1);c++}return c==b.length};
igRF_.dom.classes.swap=function(a,b,c){for(var d=igRF_.dom.classes.get(a),e=igRF_d,f=0;f<d.length;f++)if(d[f]==b){igRF_.array.splice(d,f--,1);e=igRF_b}if(e){d.push(c);a.className=d.join(" ")}return e};igRF_.dom.classes.addRemove=function(a,b,c){var d=igRF_.dom.classes.get(a);if(igRF_.isString(b))igRF_.array.remove(d,b);else igRF_.isArray(b)&&igRF_.dom.classes.rg(d,b);if(igRF_.isString(c)&&!igRF_.array.contains(d,c))d.push(c);else igRF_.isArray(c)&&igRF_.dom.classes.Ge(d,c);a.className=d.join(" ")};
igRF_.dom.classes.has=function(a,b){return igRF_.array.contains(igRF_.dom.classes.get(a),b)};igRF_.dom.classes.enable=function(a,b,c){c?igRF_.dom.classes.add(a,b):igRF_.dom.classes.remove(a,b)};igRF_.dom.classes.toggle=function(a,b){var c=!igRF_.dom.classes.has(a,b);igRF_.dom.classes.enable(a,b,c);return c};igRF_.dom.TagName={A:"A",ABBR:"ABBR",ACRONYM:"ACRONYM",ADDRESS:"ADDRESS",APPLET:"APPLET",AREA:"AREA",B:"B",BASE:"BASE",BASEFONT:"BASEFONT",BDO:"BDO",BIG:"BIG",BLOCKQUOTE:"BLOCKQUOTE",BODY:"BODY",BR:"BR",BUTTON:"BUTTON",CAPTION:"CAPTION",CENTER:"CENTER",CITE:"CITE",CODE:"CODE",COL:"COL",COLGROUP:"COLGROUP",DD:"DD",DEL:"DEL",DFN:"DFN",DIR:"DIR",DIV:"DIV",DL:"DL",DT:"DT",EM:"EM",FIELDSET:"FIELDSET",FONT:"FONT",FORM:"FORM",FRAME:"FRAME",FRAMESET:"FRAMESET",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",
HEAD:"HEAD",HR:"HR",HTML:"HTML",I:"I",IFRAME:"IFRAME",IMG:"IMG",INPUT:"INPUT",INS:"INS",ISINDEX:"ISINDEX",KBD:"KBD",LABEL:"LABEL",LEGEND:"LEGEND",LI:"LI",LINK:"LINK",MAP:"MAP",MENU:"MENU",META:"META",NOFRAMES:"NOFRAMES",NOSCRIPT:"NOSCRIPT",OBJECT:"OBJECT",OL:"OL",OPTGROUP:"OPTGROUP",OPTION:"OPTION",P:"P",PARAM:"PARAM",PRE:"PRE",Q:"Q",S:"S",SAMP:"SAMP",SCRIPT:"SCRIPT",SELECT:"SELECT",SMALL:"SMALL",SPAN:"SPAN",STRIKE:"STRIKE",STRONG:"STRONG",STYLE:"STYLE",SUB:"SUB",SUP:"SUP",TABLE:"TABLE",TBODY:"TBODY",
TD:"TD",TEXTAREA:"TEXTAREA",TFOOT:"TFOOT",TH:"TH",THEAD:"THEAD",TITLE:"TITLE",TR:"TR",TT:"TT",U:"U",UL:"UL",VAR:"VAR"};igRF_.dom.ASSUME_QUIRKS_MODE=igRF_d;igRF_.dom.ASSUME_STANDARDS_MODE=igRF_d;igRF_.dom.Zg=igRF_.dom.ASSUME_QUIRKS_MODE||igRF_.dom.ASSUME_STANDARDS_MODE;igRF_.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};igRF_.dom.$=function(a){return a?new igRF_.dom.DomHelper(igRF_.dom.o(a)):igRF_.dom.jh||(igRF_.dom.jh=new igRF_.dom.DomHelper)};igRF_.dom.da=function(){return document};
igRF_.dom.wa=function(a){return igRF_.isString(a)?document.getElementById(a):a};igRF_.dom.ve=igRF_.dom.wa;igRF_.dom.Pa=function(a,b,c){return igRF_.dom.lf(document,a,b,c)};
igRF_.dom.lf=function(a,b,c,d){d=d||a;b=b&&b!="*"?b.toUpperCase():"";if(d.querySelectorAll&&(b||c)&&(!igRF_.userAgent.WEBKIT||igRF_.dom.kb(a)||igRF_.userAgent.isVersion("528"))){c=b+(c?"."+c:"");return d.querySelectorAll(c)}if(c&&d.getElementsByClassName){a=d.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,g;g=a[f];f++)if(b==g.nodeName)d[e++]=g;d.length=e;return d}else return a}a=d.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;g=a[f];f++){b=g.className;if(typeof b.split=="function"&&igRF_.array.contains(b.split(/\s+/),
c))d[e++]=g}d.length=e;return d}else return a};igRF_.dom.we=igRF_.dom.Pa;igRF_.dom.Kc=function(a,b){igRF_.object.forEach(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in igRF_.dom.ze)a.setAttribute(igRF_.dom.ze[d],c);else a[d]=c})};igRF_.dom.ze={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};
igRF_.dom.tc=function(a){return igRF_.dom.vf(a||window)};
igRF_.dom.vf=function(a){var b=a.document;if(igRF_.userAgent.WEBKIT&&!igRF_.userAgent.isVersion("500")&&!igRF_.userAgent.MOBILE){if(typeof a.innerHeight=="undefined")a=window;b=a.innerHeight;var c=a.document.documentElement.scrollHeight;if(a==a.top)if(c<b)b-=15;return new igRF_.math.Size(a.innerWidth,b)}a=igRF_.dom.kb(b)&&(!igRF_.userAgent.OPERA||igRF_.userAgent.OPERA&&igRF_.userAgent.isVersion("9.50"))?b.documentElement:b.body;return new igRF_.math.Size(a.clientWidth,a.clientHeight)};
igRF_.dom.gf=function(){return igRF_.dom.hf(window)};igRF_.dom.hf=function(a){var b=a.document,c=0;if(b){a=igRF_.dom.vf(a).height;c=b.body;var d=b.documentElement;if(igRF_.dom.kb(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{b=d.scrollHeight;var e=d.offsetHeight;if(d.clientHeight!=e){b=c.scrollHeight;e=c.offsetHeight}c=b>a?b>e?b:e:b<e?b:e}}return c};igRF_.dom.getPageScroll=function(a){a=a||igRF_.global||window;return igRF_.dom.$(a.document).eb()};igRF_.dom.eb=function(){return igRF_.dom.jf(document)};
igRF_.dom.jf=function(a){a=igRF_.dom.ld(a);return new igRF_.math.Coordinate(a.scrollLeft,a.scrollTop)};igRF_.dom.kd=function(){return igRF_.dom.ld(document)};igRF_.dom.ld=function(a){return!igRF_.userAgent.WEBKIT&&igRF_.dom.kb(a)?a.documentElement:a.body};igRF_.dom.ib=function(a){return a?igRF_.dom.Fd(a):window};igRF_.dom.Fd=function(a){return a.parentWindow||a.defaultView};igRF_.dom.oa=function(){return igRF_.dom.Re(document,arguments)};
igRF_.dom.Re=function(a,b){var c=b[0],d=b[1];if(igRF_.userAgent.IE&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',igRF_.string.htmlEscape(d.name),'"');if(d.type){c.push(' type="',igRF_.string.htmlEscape(d.type),'"');d=igRF_.cloneObject(d);delete d.type}c.push(">");c=c.join("")}var e=a.createElement(c);if(d)if(igRF_.isString(d))e.className=d;else igRF_.dom.Kc(e,d);if(b.length>2){d=function(g){if(g)e.appendChild(igRF_.isString(g)?a.createTextNode(g):g)};for(c=2;c<b.length;c++){var f=b[c];
igRF_.isArrayLike(f)&&!igRF_.dom.zc(f)?igRF_.array.forEach(igRF_.dom.isNodeList(f)?igRF_.array.clone(f):f,d):d(f)}}return e};igRF_.dom.xe=igRF_.dom.oa;igRF_.dom.createElement=function(a){return document.createElement(a)};igRF_.dom.createTextNode=function(a){return document.createTextNode(a)};igRF_.dom.Te=function(a,b,c){return igRF_.dom.Ue(document,a,b,!!c)};
igRF_.dom.Ue=function(a,b,c,d){for(var e=["<tr>"],f=0;f<c;f++)e.push(d?"<td>&nbsp;</td>":"<td></td>");e.push("</tr>");e=e.join("");c=["<table>"];for(f=0;f<b;f++)c.push(e);c.push("</table>");a=a.createElement(igRF_.dom.TagName.DIV);a.innerHTML=c.join("");return a.removeChild(a.firstChild)};igRF_.dom.Gf=function(a){return igRF_.dom.Hf(document,a)};
igRF_.dom.Hf=function(a,b){var c=a.createElement("div");c.innerHTML=b;if(c.childNodes.length==1)return c.removeChild(c.firstChild);else{for(a=a.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);return a}};igRF_.dom.ef=function(){return igRF_.dom.xa()?"CSS1Compat":"BackCompat"};igRF_.dom.xa=function(){return igRF_.dom.kb(document)};igRF_.dom.kb=function(a){if(igRF_.dom.Zg)return igRF_.dom.ASSUME_STANDARDS_MODE;return a.compatMode=="CSS1Compat"};
igRF_.dom.canHaveChildren=function(a){if(a.nodeType!=igRF_.dom.NodeType.ELEMENT)return igRF_d;if("canHaveChildren"in a)return a.canHaveChildren;switch(a.tagName){case igRF_.dom.TagName.APPLET:case igRF_.dom.TagName.AREA:case igRF_.dom.TagName.BASE:case igRF_.dom.TagName.BR:case igRF_.dom.TagName.COL:case igRF_.dom.TagName.FRAME:case igRF_.dom.TagName.HR:case igRF_.dom.TagName.IMG:case igRF_.dom.TagName.INPUT:case igRF_.dom.TagName.IFRAME:case igRF_.dom.TagName.ISINDEX:case igRF_.dom.TagName.LINK:case igRF_.dom.TagName.NOFRAMES:case igRF_.dom.TagName.NOSCRIPT:case igRF_.dom.TagName.META:case igRF_.dom.TagName.OBJECT:case igRF_.dom.TagName.PARAM:case igRF_.dom.TagName.SCRIPT:case igRF_.dom.TagName.STYLE:return igRF_d}return igRF_b};
igRF_.dom.appendChild=function(a,b){a.appendChild(b)};igRF_.dom.Kb=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};igRF_.dom.Ud=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};igRF_.dom.Td=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};igRF_.dom.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):igRF_c};igRF_.dom.replaceNode=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
igRF_.dom.gd=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=igRF_.dom.NodeType.DOCUMENT_FRAGMENT)if(a.removeNode)return a.removeNode(igRF_d);else{for(;b=a.firstChild;)c.insertBefore(b,a);return igRF_.dom.removeNode(a)}};igRF_.dom.nd=function(a){return igRF_.dom.oc(a.firstChild,igRF_b)};igRF_.dom.qd=function(a){return igRF_.dom.oc(a.lastChild,igRF_d)};igRF_.dom.sd=function(a){return igRF_.dom.oc(a.nextSibling,igRF_b)};igRF_.dom.yd=function(a){return igRF_.dom.oc(a.previousSibling,igRF_d)};
igRF_.dom.oc=function(a,b){for(;a&&a.nodeType!=igRF_.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};igRF_.dom.td=function(a){if(!a)return igRF_c;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:igRF_c};igRF_.dom.zd=function(a){if(!a)return igRF_c;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a};igRF_.dom.zc=function(a){return igRF_.isObject(a)&&a.nodeType>0};
igRF_.dom.contains=function(a,b){if(a.contains&&b.nodeType==igRF_.dom.NodeType.ELEMENT)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
igRF_.dom.compareNodeOrder=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==igRF_.dom.NodeType.ELEMENT,d=b.nodeType==igRF_.dom.NodeType.ELEMENT;if(c&&d)return a.sourceIndex-b.sourceIndex;else{var e=a.parentNode,f=b.parentNode;if(e==f)return igRF_.dom.Qe(a,b);if(!c&&igRF_.dom.contains(e,b))return-1*igRF_.dom.Pe(a,b);if(!d&&igRF_.dom.contains(f,a))return igRF_.dom.Pe(b,
a);return(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}}d=igRF_.dom.o(a);c=d.createRange();c.selectNode(a);c.collapse(igRF_b);a=d.createRange();a.selectNode(b);a.collapse(igRF_b);return c.compareBoundaryPoints(igRF_.global.Range.START_TO_END,a)};igRF_.dom.Pe=function(a,b){var c=a.parentNode;if(c==b)return-1;for(b=b;b.parentNode!=c;)b=b.parentNode;return igRF_.dom.Qe(b,a)};igRF_.dom.Qe=function(a,b){for(b=b;b=b.previousSibling;)if(b==a)return-1;return 1};
igRF_.dom.findCommonAncestor=function(){var a,b=arguments.length;if(b){if(b==1)return arguments[0]}else return igRF_c;var c=[],d=Infinity;for(a=0;a<b;a++){for(var e=[],f=arguments[a];f;){e.unshift(f);f=f.parentNode}c.push(e);d=Math.min(d,e.length)}e=igRF_c;for(a=0;a<d;a++){f=c[0][a];for(var g=1;g<b;g++)if(f!=c[g][a])return e;e=f}return e};igRF_.dom.o=function(a){return a.nodeType==igRF_.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};
igRF_.dom.kc=function(a){return a=igRF_.userAgent.WEBKIT?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document};igRF_.dom.od=function(a){return a.contentWindow||igRF_.dom.Fd(igRF_.dom.kc(a))};igRF_.dom.pe=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==igRF_.dom.NodeType.TEXT){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{igRF_.dom.Kb(a);var c=igRF_.dom.o(a);a.appendChild(c.createTextNode(b))}};
igRF_.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;else{var b=igRF_.dom.o(a);b=b.createElement("div");b.appendChild(a.cloneNode(igRF_b));return b.innerHTML}};igRF_.dom.dd=function(a,b){var c=[];return(a=igRF_.dom.fd(a,b,c,igRF_b))?c[0]:undefined};igRF_.dom.ed=function(a,b){var c=[];igRF_.dom.fd(a,b,c,igRF_d);return c};igRF_.dom.fd=function(a,b,c,d){if(a!=igRF_c)for(var e=0,f;f=a.childNodes[e];e++){if(b(f)){c.push(f);if(d)return igRF_b}if(igRF_.dom.fd(f,b,c,d))return igRF_b}return igRF_d};
igRF_.dom.Ce={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};igRF_.dom.Xb={IMG:" ",BR:"\n"};igRF_.dom.isFocusableTabIndex=function(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){a=a.tabIndex;return igRF_.isNumber(a)&&a>=0}return igRF_d};igRF_.dom.setFocusableTabIndex=function(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")};
igRF_.dom.Bb=function(a){if(igRF_.userAgent.IE&&"innerText"in a)a=igRF_.string.canonicalizeNewlines(a.innerText);else{var b=[];igRF_.dom.Dd(a,b,igRF_b);a=b.join("")}a=a.replace(/\xAD/g,"");a=a.replace(/ +/g," ");if(a!=" ")a=a.replace(/^\s*/,"");return a};igRF_.dom.getRawTextContent=function(a){var b=[];igRF_.dom.Dd(a,b,igRF_d);return b.join("")};
igRF_.dom.Dd=function(a,b,c){if(!(a.nodeName in igRF_.dom.Ce))if(a.nodeType==igRF_.dom.NodeType.TEXT)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in igRF_.dom.Xb)b.push(igRF_.dom.Xb[a.nodeName]);else for(a=a.firstChild;a;){igRF_.dom.Dd(a,b,c);a=a.nextSibling}};igRF_.dom.ud=function(a){return igRF_.dom.Bb(a).length};
igRF_.dom.vd=function(a,b){b=b||igRF_.dom.o(a).body;for(var c=[];a&&a!=b;){for(var d=a;d=d.previousSibling;)c.unshift(igRF_.dom.Bb(d));a=a.parentNode}return igRF_.string.trimLeft(c.join("")).replace(/ +/g," ").length};
igRF_.dom.getNodeAtOffset=function(a,b,c){a=[a];for(var d=0,e;a.length>0&&d<b;){e=a.pop();if(!(e.nodeName in igRF_.dom.Ce))if(e.nodeType==igRF_.dom.NodeType.TEXT){var f=e.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");d+=f.length}else if(e.nodeName in igRF_.dom.Xb)d+=igRF_.dom.Xb[e.nodeName].length;else for(f=e.childNodes.length-1;f>=0;f--)a.push(e.childNodes[f])}if(igRF_.isObject(c)){c.remainder=e?e.nodeValue.length+b-d-1:0;c.node=e}return e};
igRF_.dom.isNodeList=function(a){if(a&&typeof a.length=="number")if(igRF_.isObject(a))return typeof a.item=="function"||typeof a.item=="string";else if(igRF_.isFunction(a))return typeof a.item=="function";return igRF_d};igRF_.dom.hd=function(a,b,c){var d=b?b.toUpperCase():igRF_c;return igRF_.dom.ic(a,function(e){return(!d||e.nodeName==d)&&(!c||igRF_.dom.classes.has(e,c))},igRF_b)};
igRF_.dom.ic=function(a,b,c,d){if(!c)a=a.parentNode;c=d==igRF_c;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return igRF_c};igRF_.dom.DomHelper=function(a){this.ba=a||igRF_.global.document||document};igRF_.dom.DomHelper.prototype.$=igRF_.dom.$;igRF_.dom.DomHelper.prototype.da=function(){return this.ba};igRF_.dom.DomHelper.prototype.wa=function(a){return igRF_.isString(a)?this.ba.getElementById(a):a};igRF_.dom.DomHelper.prototype.ve=igRF_.dom.DomHelper.prototype.wa;
igRF_.dom.DomHelper.prototype.Pa=function(a,b,c){return igRF_.dom.lf(this.ba,a,b,c)};igRF_.dom.DomHelper.prototype.we=igRF_.dom.DomHelper.prototype.Pa;igRF_.dom.DomHelper.prototype.Kc=igRF_.dom.Kc;igRF_.dom.DomHelper.prototype.tc=function(a){return igRF_.dom.tc(a||this.ib())};igRF_.dom.DomHelper.prototype.gf=function(){return igRF_.dom.hf(this.ib())};igRF_.dom.DomHelper.prototype.oa=function(){return igRF_.dom.Re(this.ba,arguments)};igRF_.dom.DomHelper.prototype.xe=igRF_.dom.DomHelper.prototype.oa;
igRF_.dom.DomHelper.prototype.createElement=function(a){return this.ba.createElement(a)};igRF_.dom.DomHelper.prototype.createTextNode=function(a){return this.ba.createTextNode(a)};igRF_.dom.DomHelper.prototype.Te=function(a,b,c){return igRF_.dom.Ue(this.ba,a,b,!!c)};igRF_.dom.DomHelper.prototype.Gf=function(a){return igRF_.dom.Hf(this.ba,a)};igRF_.dom.DomHelper.prototype.ef=function(){return this.xa()?"CSS1Compat":"BackCompat"};igRF_.dom.DomHelper.prototype.xa=function(){return igRF_.dom.kb(this.ba)};
igRF_.dom.DomHelper.prototype.ib=function(){return igRF_.dom.Fd(this.ba)};igRF_.dom.DomHelper.prototype.kd=function(){return igRF_.dom.ld(this.ba)};igRF_.dom.DomHelper.prototype.eb=function(){return igRF_.dom.jf(this.ba)};igRF_.dom.DomHelper.prototype.appendChild=igRF_.dom.appendChild;igRF_.dom.DomHelper.prototype.Kb=igRF_.dom.Kb;igRF_.dom.DomHelper.prototype.Ud=igRF_.dom.Ud;igRF_.dom.DomHelper.prototype.Td=igRF_.dom.Td;igRF_.dom.DomHelper.prototype.removeNode=igRF_.dom.removeNode;
igRF_.dom.DomHelper.prototype.replaceNode=igRF_.dom.replaceNode;igRF_.dom.DomHelper.prototype.gd=igRF_.dom.gd;igRF_.dom.DomHelper.prototype.nd=igRF_.dom.nd;igRF_.dom.DomHelper.prototype.qd=igRF_.dom.qd;igRF_.dom.DomHelper.prototype.sd=igRF_.dom.sd;igRF_.dom.DomHelper.prototype.yd=igRF_.dom.yd;igRF_.dom.DomHelper.prototype.td=igRF_.dom.td;igRF_.dom.DomHelper.prototype.zd=igRF_.dom.zd;igRF_.dom.DomHelper.prototype.zc=igRF_.dom.zc;igRF_.dom.DomHelper.prototype.contains=igRF_.dom.contains;
igRF_.dom.DomHelper.prototype.o=igRF_.dom.o;igRF_.dom.DomHelper.prototype.kc=igRF_.dom.kc;igRF_.dom.DomHelper.prototype.od=igRF_.dom.od;igRF_.dom.DomHelper.prototype.pe=igRF_.dom.pe;igRF_.dom.DomHelper.prototype.dd=igRF_.dom.dd;igRF_.dom.DomHelper.prototype.ed=igRF_.dom.ed;igRF_.dom.DomHelper.prototype.Bb=igRF_.dom.Bb;igRF_.dom.DomHelper.prototype.ud=igRF_.dom.ud;igRF_.dom.DomHelper.prototype.vd=igRF_.dom.vd;igRF_.dom.DomHelper.prototype.hd=igRF_.dom.hd;igRF_.dom.DomHelper.prototype.ic=igRF_.dom.ic;igRF_.dom.a11y={};igRF_.dom.a11y.State={ACTIVEDESCENDANT:"activedescendant",AUTOCOMPLETE:"autocomplete",CHECKED:"checked",DISABLED:"disabled",EXPANDED:"expanded",HASPOPUP:"haspopup",LABELLEDBY:"labelledby",LEVEL:"level",PRESSED:"pressed",SELECTED:"selected",VALUEMAX:"valuemax",VALUEMIN:"valuemin",VALUENOW:"valuenow",VALUETEXT:"valuetext"};
igRF_.dom.a11y.Role={BUTTON:"button",CHECKBOX:"checkbox",COMBOBOX:"combobox",DIALOG:"dialog",LINK:"link",LISTBOX:"listbox",MAIN:"main",MENU:"menu",MENUBAR:"menubar",MENU_ITEM:"menuitem",MENU_ITEM_CHECKBOX:"menuitemcheckbox",MENU_ITEM_RADIO:"menuitemradio",NAVIGATION:"navigation",OPTION:"option",GROUP:"group",SLIDER:"slider",TAB:"tab",TAB_LIST:"tablist",TAB_PANEL:"tabpanel",TOOLBAR:"toolbar"};
igRF_.dom.a11y.setRole=function(a,b){if(igRF_.userAgent.GECKO||igRF_.dom.a11y.ae){a.setAttribute("role",b);a.roleName=b}};igRF_.dom.a11y.getRole=function(a){return a.roleName||""};igRF_.dom.a11y.setState=function(a,b,c){if(igRF_.userAgent.GECKO||igRF_.dom.a11y.ae)a.setAttribute("aria-"+b,c)};igRF_.dom.a11y.getState=function(a,b){return a.getAttribute("aria-"+b)||""};igRF_.dom.a11y.getNoBrowserCheck=function(){return!!igRF_.dom.a11y.ae};
igRF_.dom.a11y.setNoBrowserCheck=function(a){igRF_.dom.a11y.ae=a};igRF_.dom.a11y.getActiveDescendant=function(a){var b=igRF_.dom.a11y.getState(a,igRF_.dom.a11y.State.ACTIVEDESCENDANT);return igRF_.dom.o(a).getElementById(b)};igRF_.dom.a11y.setActiveDescendant=function(a,b){igRF_.dom.a11y.setState(a,igRF_.dom.a11y.State.ACTIVEDESCENDANT,b?b.id:"")};igRF_.dom.selection={};igRF_.dom.selection.setStart=function(a,b){if(igRF_.dom.selection.pb(a))a.selectionStart=b;else if(igRF_.userAgent.IE){var c=igRF_.dom.selection.Ab(a),d=c[0];c=c[1];if(d.inRange(c)){b=igRF_.dom.selection.bc(a,b);d.collapse(igRF_b);d.move("character",b);d.select()}}};igRF_.dom.selection.getStart=function(a){return igRF_.dom.selection.md(a,igRF_b)[0]};
igRF_.dom.selection.vh=function(a,b,c){b=b.duplicate();for(var d=a.text,e=d,f=b.text,g=f,h=igRF_d;!h;)if(a.compareEndPoints("StartToEnd",a)==0)h=igRF_b;else{a.moveEnd("character",-1);if(a.text==d)e+="\r\n";else h=igRF_b}if(c)return[e.length,-1];for(a=igRF_d;!a;)if(b.compareEndPoints("StartToEnd",b)==0)a=igRF_b;else{b.moveEnd("character",-1);if(b.text==f)g+="\r\n";else a=igRF_b}return[e.length,e.length+g.length]};igRF_.dom.selection.getEndPoints=function(a){return igRF_.dom.selection.md(a,igRF_d)};
igRF_.dom.selection.md=function(a,b){var c=0,d=0;if(igRF_.dom.selection.pb(a)){c=a.selectionStart;d=b?-1:a.selectionEnd}else if(igRF_.userAgent.IE){var e=igRF_.dom.selection.Ab(a),f=e[0];e=e[1];if(f.inRange(e)){f.setEndPoint("EndToStart",e);if(a.type=="textarea")return igRF_.dom.selection.vh(f,e,b);c=f.text.length;d=b?-1:f.text.length+e.text.length}}return[c,d]};
igRF_.dom.selection.setEnd=function(a,b){if(igRF_.dom.selection.pb(a))a.selectionEnd=b;else if(igRF_.userAgent.IE){var c=igRF_.dom.selection.Ab(a),d=c[0];c=c[1];if(d.inRange(c)){b=igRF_.dom.selection.bc(a,b);a=igRF_.dom.selection.bc(a,igRF_.dom.selection.getStart(a));c.collapse(igRF_b);c.moveEnd("character",b-a);c.select()}}};igRF_.dom.selection.getEnd=function(a){return igRF_.dom.selection.md(a,igRF_d)[1]};
igRF_.dom.selection.me=function(a,b){if(igRF_.dom.selection.pb(a)){a.selectionStart=b;a.selectionEnd=b}else if(igRF_.userAgent.IE){b=igRF_.dom.selection.bc(a,b);a=a.createTextRange();a.collapse(igRF_b);a.move("character",b);a.select()}};
igRF_.dom.selection.setText=function(a,b){if(igRF_.dom.selection.pb(a)){var c=a.value,d=a.selectionStart,e=c.substr(0,d);c=c.substr(a.selectionEnd);a.value=e+b+c;a.selectionStart=d;a.selectionEnd=d+b.length}else if(igRF_.userAgent.IE){d=igRF_.dom.selection.Ab(a);a=d[0];d=d[1];if(a.inRange(d)){a=d.duplicate();d.text=b;d.setEndPoint("StartToStart",a);d.select()}}else igRF_a(Error("Cannot set the selection end"))};
igRF_.dom.selection.getText=function(a){if(igRF_.dom.selection.pb(a)){var b=a.value;return b.substring(a.selectionStart,a.selectionEnd)}if(igRF_.userAgent.IE){var c=igRF_.dom.selection.Ab(a);b=c[0];c=c[1];if(b.inRange(c)){if(a.type=="textarea")return igRF_.dom.selection.wh(c)}else return"";return c.text}igRF_a(Error("Cannot get the selection text"))};
igRF_.dom.selection.wh=function(a){a=a.duplicate();for(var b=a.text,c=b,d=igRF_d;!d;)if(a.compareEndPoints("StartToEnd",a)==0)d=igRF_b;else{a.moveEnd("character",-1);if(a.text==b)c+="\r\n";else d=igRF_b}return c};igRF_.dom.selection.Ab=function(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();if(a.type=="textarea"){b=b.body.createTextRange();b.moveToElementText(a)}else b=a.createTextRange();return[b,c]};
igRF_.dom.selection.bc=function(a,b){if(a.type=="textarea"){a=a.value.substring(0,b);b=igRF_.string.canonicalizeNewlines(a).length}return b};igRF_.dom.selection.pb=function(a){try{return typeof a.selectionStart=="number"}catch(b){return igRF_d}};igRF_.events.EventHandler=function(a){this.Cb=a};igRF_.inherits(igRF_.events.EventHandler,igRF_.Disposable);igRF_.events.EventHandler.KEY_POOL_INITIAL_COUNT=0;igRF_.events.EventHandler.KEY_POOL_MAX_COUNT=100;igRF_.events.EventHandler.Pf=new igRF_.structs.SimplePool(igRF_.events.EventHandler.KEY_POOL_INITIAL_COUNT,igRF_.events.EventHandler.KEY_POOL_MAX_COUNT);igRF_.events.EventHandler.a=igRF_c;igRF_.events.EventHandler.ya=igRF_c;
igRF_.events.EventHandler.prototype.listen=function(a,b,c,d,e){if(igRF_.isArray(b))for(var f=0;f<b.length;f++)this.listen(a,b[f],c,d,e);else{a=igRF_.events.listen(a,b,c||this,d||igRF_d,e||this.Cb||this);this.le(a)}return this};igRF_.events.EventHandler.prototype.Hb=function(a,b,c,d,e){if(igRF_.isArray(b))for(var f=0;f<b.length;f++)this.Hb(a,b[f],c,d,e);else{a=igRF_.events.Hb(a,b,c||this,d||igRF_d,e||this.Cb||this);this.le(a)}return this};
igRF_.events.EventHandler.prototype.Sf=function(a,b,c,d,e){b.listen(a,c,d,e||this.Cb,this);return this};igRF_.events.EventHandler.prototype.le=function(a){if(this.a)this.a[a]=igRF_b;else if(this.ya){this.a=igRF_.events.EventHandler.Pf.ja();this.a[this.ya]=igRF_b;this.ya=igRF_c;this.a[a]=igRF_b}else this.ya=a};
igRF_.events.EventHandler.prototype.unlisten=function(a,b,c,d,e){if(this.ya||this.a)if(igRF_.isArray(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else if(a=igRF_.events.getListener(a,b,c||this,d||igRF_d,e||this.Cb||this)){a=a.key;igRF_.events.unlistenByKey(a);if(this.a)igRF_.object.remove(this.a,a);else if(this.ya==a)this.ya=igRF_c}return this};igRF_.events.EventHandler.prototype.Vg=function(a,b,c,d,e){b.unlisten(a,c,d,e||this.Cb,this);return this};
igRF_.events.EventHandler.prototype.nb=function(){if(this.a){for(var a in this.a){igRF_.events.unlistenByKey(a);delete this.a[a]}igRF_.events.EventHandler.Pf.la(this.a);this.a=igRF_c}else this.ya&&igRF_.events.unlistenByKey(this.ya)};igRF_.events.EventHandler.prototype.d=function(){igRF_.events.EventHandler.aa.d.call(this);this.nb()};igRF_.events.EventHandler.prototype.handleEvent=function(){igRF_a(Error("EventHandler.handleEvent not implemented"))};igRF_.events.KeyCodes={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,CONTEXT_MENU:93,NUM_ZERO:96,
NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229};
igRF_.events.KeyCodes.isTextModifyingKeyEvent=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=igRF_.events.KeyCodes.F1&&a.keyCode<=igRF_.events.KeyCodes.F12)return igRF_d;switch(a.keyCode){case igRF_.events.KeyCodes.ALT:case igRF_.events.KeyCodes.SHIFT:case igRF_.events.KeyCodes.CTRL:case igRF_.events.KeyCodes.PAUSE:case igRF_.events.KeyCodes.CAPS_LOCK:case igRF_.events.KeyCodes.ESC:case igRF_.events.KeyCodes.PAGE_UP:case igRF_.events.KeyCodes.PAGE_DOWN:case igRF_.events.KeyCodes.HOME:case igRF_.events.KeyCodes.END:case igRF_.events.KeyCodes.LEFT:case igRF_.events.KeyCodes.RIGHT:case igRF_.events.KeyCodes.UP:case igRF_.events.KeyCodes.DOWN:case igRF_.events.KeyCodes.INSERT:case igRF_.events.KeyCodes.NUMLOCK:case igRF_.events.KeyCodes.CONTEXT_MENU:case igRF_.events.KeyCodes.PRINT_SCREEN:return igRF_d;
default:return igRF_b}};igRF_.events.KeyCodes.firesKeyPressEvent=function(a,b,c,d,e){if(!igRF_.userAgent.IE&&!(igRF_.userAgent.WEBKIT&&igRF_.userAgent.isVersion("525")))return igRF_b;if(igRF_.userAgent.MAC&&e)return igRF_.events.KeyCodes.isCharacterKey(a);if(e&&!d)return igRF_d;if(igRF_.userAgent.IE&&!c&&(b==igRF_.events.KeyCodes.CTRL||b==igRF_.events.KeyCodes.ALT))return igRF_d;if(igRF_.userAgent.IE&&d&&b==a)return igRF_d;switch(a){case igRF_.events.KeyCodes.ENTER:return igRF_b;case igRF_.events.KeyCodes.ESC:return!igRF_.userAgent.WEBKIT}return igRF_.events.KeyCodes.isCharacterKey(a)};
igRF_.events.KeyCodes.isCharacterKey=function(a){if(a>=igRF_.events.KeyCodes.ZERO&&a<=igRF_.events.KeyCodes.NINE)return igRF_b;if(a>=igRF_.events.KeyCodes.NUM_ZERO&&a<=igRF_.events.KeyCodes.NUM_MULTIPLY)return igRF_b;if(a>=igRF_.events.KeyCodes.A&&a<=igRF_.events.KeyCodes.Z)return igRF_b;switch(a){case igRF_.events.KeyCodes.SPACE:case igRF_.events.KeyCodes.QUESTION_MARK:case igRF_.events.KeyCodes.NUM_PLUS:case igRF_.events.KeyCodes.NUM_MINUS:case igRF_.events.KeyCodes.NUM_PERIOD:case igRF_.events.KeyCodes.NUM_DIVISION:case igRF_.events.KeyCodes.SEMICOLON:case igRF_.events.KeyCodes.DASH:case igRF_.events.KeyCodes.EQUALS:case igRF_.events.KeyCodes.COMMA:case igRF_.events.KeyCodes.PERIOD:case igRF_.events.KeyCodes.SLASH:case igRF_.events.KeyCodes.APOSTROPHE:case igRF_.events.KeyCodes.SINGLE_QUOTE:case igRF_.events.KeyCodes.OPEN_SQUARE_BRACKET:case igRF_.events.KeyCodes.BACKSLASH:case igRF_.events.KeyCodes.CLOSE_SQUARE_BRACKET:return igRF_b;
default:return igRF_d}};igRF_.events.KeyHandler=function(a){a&&this.attach(a)};igRF_.inherits(igRF_.events.KeyHandler,igRF_.events.EventTarget);igRF_.events.KeyHandler.prototype.c=igRF_c;igRF_.events.KeyHandler.prototype.Fb=igRF_c;igRF_.events.KeyHandler.prototype.Ac=igRF_c;igRF_.events.KeyHandler.prototype.Gb=igRF_c;igRF_.events.KeyHandler.prototype.lb=-1;igRF_.events.KeyHandler.prototype.Ra=-1;igRF_.events.KeyHandler.EventType={KEY:"key"};
igRF_.events.KeyHandler.vg={"3":igRF_.events.KeyCodes.ENTER,"12":igRF_.events.KeyCodes.NUMLOCK,"63232":igRF_.events.KeyCodes.UP,"63233":igRF_.events.KeyCodes.DOWN,"63234":igRF_.events.KeyCodes.LEFT,"63235":igRF_.events.KeyCodes.RIGHT,"63236":igRF_.events.KeyCodes.F1,"63237":igRF_.events.KeyCodes.F2,"63238":igRF_.events.KeyCodes.F3,"63239":igRF_.events.KeyCodes.F4,"63240":igRF_.events.KeyCodes.F5,"63241":igRF_.events.KeyCodes.F6,"63242":igRF_.events.KeyCodes.F7,"63243":igRF_.events.KeyCodes.F8,"63244":igRF_.events.KeyCodes.F9,
"63245":igRF_.events.KeyCodes.F10,"63246":igRF_.events.KeyCodes.F11,"63247":igRF_.events.KeyCodes.F12,"63248":igRF_.events.KeyCodes.PRINT_SCREEN,"63272":igRF_.events.KeyCodes.DELETE,"63273":igRF_.events.KeyCodes.HOME,"63275":igRF_.events.KeyCodes.END,"63276":igRF_.events.KeyCodes.PAGE_UP,"63277":igRF_.events.KeyCodes.PAGE_DOWN,"63289":igRF_.events.KeyCodes.NUMLOCK,"63302":igRF_.events.KeyCodes.INSERT};
igRF_.events.KeyHandler.Of={Up:igRF_.events.KeyCodes.UP,Down:igRF_.events.KeyCodes.DOWN,Left:igRF_.events.KeyCodes.LEFT,Right:igRF_.events.KeyCodes.RIGHT,Enter:igRF_.events.KeyCodes.ENTER,F1:igRF_.events.KeyCodes.F1,F2:igRF_.events.KeyCodes.F2,F3:igRF_.events.KeyCodes.F3,F4:igRF_.events.KeyCodes.F4,F5:igRF_.events.KeyCodes.F5,F6:igRF_.events.KeyCodes.F6,F7:igRF_.events.KeyCodes.F7,F8:igRF_.events.KeyCodes.F8,F9:igRF_.events.KeyCodes.F9,F10:igRF_.events.KeyCodes.F10,F11:igRF_.events.KeyCodes.F11,F12:igRF_.events.KeyCodes.F12,
"U+007F":igRF_.events.KeyCodes.DELETE,Home:igRF_.events.KeyCodes.HOME,End:igRF_.events.KeyCodes.END,PageUp:igRF_.events.KeyCodes.PAGE_UP,PageDown:igRF_.events.KeyCodes.PAGE_DOWN,Insert:igRF_.events.KeyCodes.INSERT};igRF_.events.KeyHandler.bg={61:187,59:186};igRF_.events.KeyHandler.fh=igRF_.userAgent.IE||igRF_.userAgent.WEBKIT&&igRF_.userAgent.isVersion("525");
igRF_.events.KeyHandler.prototype.xf=function(a){if(igRF_.events.KeyHandler.fh&&!igRF_.events.KeyCodes.firesKeyPressEvent(a.keyCode,this.lb,a.shiftKey,a.ctrlKey,a.altKey))this.handleEvent(a);else this.Ra=igRF_.userAgent.GECKO&&a.keyCode in igRF_.events.KeyHandler.bg?igRF_.events.KeyHandler.bg[a.keyCode]:a.keyCode};igRF_.events.KeyHandler.prototype.zf=function(){this.Ra=this.lb=-1};
igRF_.events.KeyHandler.prototype.handleEvent=function(a){var b=a.df(),c,d;if(igRF_.userAgent.IE&&a.type==igRF_.events.EventType.KEYPRESS){c=this.Ra;d=c!=igRF_.events.KeyCodes.ENTER&&c!=igRF_.events.KeyCodes.ESC?b.keyCode:0}else if(igRF_.userAgent.WEBKIT&&a.type==igRF_.events.EventType.KEYPRESS){c=this.Ra;d=b.charCode>=0&&b.charCode<63232&&igRF_.events.KeyCodes.isCharacterKey(c)?b.charCode:0}else if(igRF_.userAgent.OPERA){c=this.Ra;d=igRF_.events.KeyCodes.isCharacterKey(c)?b.keyCode:0}else{c=b.keyCode||
this.Ra;d=b.charCode||0;if(igRF_.userAgent.MAC&&d==igRF_.events.KeyCodes.QUESTION_MARK&&!c)c=igRF_.events.KeyCodes.SLASH}var e=c,f=b.keyIdentifier;if(c)if(c>=63232&&c in igRF_.events.KeyHandler.vg)e=igRF_.events.KeyHandler.vg[c];else{if(c==25&&a.shiftKey)e=9}else if(f&&f in igRF_.events.KeyHandler.Of)e=igRF_.events.KeyHandler.Of[f];a=e==this.lb;this.lb=e;b=new igRF_.events.KeyEvent(e,d,a,b);try{this.dispatchEvent(b)}finally{b.dispose()}};igRF_.events.KeyHandler.prototype.wa=function(){return this.c};
igRF_.events.KeyHandler.prototype.attach=function(a){this.Gb&&this.detach();this.c=a;this.Fb=igRF_.events.listen(this.c,igRF_.events.EventType.KEYPRESS,this);this.Ac=igRF_.events.listen(this.c,igRF_.events.EventType.KEYDOWN,this.xf,igRF_d,this);this.Gb=igRF_.events.listen(this.c,igRF_.events.EventType.KEYUP,this.zf,igRF_d,this)};
igRF_.events.KeyHandler.prototype.detach=function(){if(this.Fb){igRF_.events.unlistenByKey(this.Fb);igRF_.events.unlistenByKey(this.Ac);igRF_.events.unlistenByKey(this.Gb);this.Gb=this.Ac=this.Fb=igRF_c}this.c=igRF_c;this.lb=-1};igRF_.events.KeyHandler.prototype.d=function(){igRF_.events.KeyHandler.aa.d.call(this);this.detach()};
igRF_.events.KeyEvent=function(a,b,c,d){igRF_.events.BrowserEvent.call(this,d);this.type=igRF_.events.KeyHandler.EventType.KEY;this.keyCode=a;this.charCode=b;this.repeat=c};igRF_.inherits(igRF_.events.KeyEvent,igRF_.events.BrowserEvent);igRF_.Timer=function(a,b){this.Eb=a||1;this.Vb=b||igRF_.Timer.defaultTimerObject;this.Sc=igRF_.bind(this.Og,this);this.Yd=igRF_.now()};igRF_.inherits(igRF_.Timer,igRF_.events.EventTarget);igRF_.Timer.eh=2147483647;igRF_.Timer.prototype.enabled=igRF_d;igRF_.Timer.defaultTimerObject=igRF_.global.window;igRF_.Timer.intervalScale=0.8;igRF_.Timer.prototype.k=igRF_c;igRF_.Timer.prototype.setInterval=function(a){this.Eb=a;if(this.k&&this.enabled){this.stop();this.start()}else this.k&&this.stop()};
igRF_.Timer.prototype.Og=function(){if(this.enabled){var a=igRF_.now()-this.Yd;if(a>0&&a<this.Eb*igRF_.Timer.intervalScale)this.k=this.Vb.setTimeout(this.Sc,this.Eb-a);else{this.Ye();if(this.enabled){this.k=this.Vb.setTimeout(this.Sc,this.Eb);this.Yd=igRF_.now()}}}};igRF_.Timer.prototype.Ye=function(){this.dispatchEvent(igRF_.Timer.TICK)};igRF_.Timer.prototype.start=function(){this.enabled=igRF_b;if(!this.k){this.k=this.Vb.setTimeout(this.Sc,this.Eb);this.Yd=igRF_.now()}};
igRF_.Timer.prototype.stop=function(){this.enabled=igRF_d;if(this.k){this.Vb.clearTimeout(this.k);this.k=igRF_c}};igRF_.Timer.prototype.d=function(){igRF_.Timer.aa.d.call(this);this.stop();delete this.Vb};igRF_.Timer.TICK="tick";
igRF_.Timer.vb=function(a,b,c){if(igRF_.isFunction(a)){if(c)a=igRF_.bind(a,c)}else if(a&&typeof a.handleEvent=="function")a=igRF_.bind(a.handleEvent,a);else igRF_a(Error("Invalid listener argument"));return b>igRF_.Timer.eh?-1:igRF_.Timer.defaultTimerObject.setTimeout(a,b||0)};igRF_.Timer.clear=function(a){igRF_.Timer.defaultTimerObject.clearTimeout(a)};igRF_.ui.AutoComplete.InputHandler=function(a,b,c,d){d=d||150;this.Fg(igRF_.isDefAndNotNull(a)?a:igRF_.ui.AutoComplete.InputHandler.STANDARD_LIST_SEPARATORS);this.Tf=b||"";this.Gh=this.mb=c!=igRF_c?c:igRF_b;this.k=d>0?new igRF_.Timer(d):igRF_c;this.q=new igRF_.events.EventHandler(this);this.Yb=new igRF_.events.EventHandler(this);this.Bc=new igRF_.events.KeyHandler;this.Qf=-1};igRF_.inherits(igRF_.ui.AutoComplete.InputHandler,igRF_.Disposable);
igRF_.ui.AutoComplete.InputHandler.STANDARD_LIST_SEPARATORS=",;";igRF_.ui.AutoComplete.InputHandler.QUOTE_LITERALS='"';igRF_.ui.AutoComplete.InputHandler.prototype.Xg=igRF_b;igRF_.ui.AutoComplete.InputHandler.prototype.af=igRF_b;igRF_.ui.AutoComplete.InputHandler.prototype.Oc=igRF_d;igRF_.ui.AutoComplete.InputHandler.prototype.yg=igRF_b;igRF_.ui.AutoComplete.InputHandler.prototype.xg=igRF_b;igRF_.ui.AutoComplete.InputHandler.prototype.h=igRF_c;igRF_.ui.AutoComplete.InputHandler.prototype.Cc="";
igRF_.ui.AutoComplete.InputHandler.prototype.Ba=igRF_d;igRF_.ui.AutoComplete.InputHandler.prototype.Ic=igRF_d;igRF_.ui.AutoComplete.InputHandler.prototype.Wg=igRF_b;igRF_.ui.AutoComplete.InputHandler.prototype.Qc=function(a){this.i=a};igRF_.ui.AutoComplete.InputHandler.prototype.Fa=function(){return this.h.value};igRF_.ui.AutoComplete.InputHandler.prototype.Lg=function(a){this.h.value=a};igRF_.ui.AutoComplete.InputHandler.prototype.jd=function(){return igRF_.dom.selection.getStart(this.h)};
igRF_.ui.AutoComplete.InputHandler.prototype.me=function(a){igRF_.dom.selection.setStart(this.h,a);igRF_.dom.selection.setEnd(this.h,a)};igRF_.ui.AutoComplete.InputHandler.prototype.Le=function(a){igRF_.dom.a11y.setState(a,"haspopup",igRF_b);this.q.listen(a,igRF_.events.EventType.FOCUS,this.ce);this.q.listen(a,igRF_.events.EventType.BLUR,this.gg);this.h||this.Yb.listen(a,igRF_.events.EventType.KEYDOWN,this.hg)};igRF_.ui.AutoComplete.InputHandler.prototype.Ya=function(){for(var a=0;a<arguments.length;a++)this.Le(arguments[a])};
igRF_.ui.AutoComplete.InputHandler.prototype.wg=function(a,b){if(igRF_.isDef(b)?b:this.mb){b=this.Ed(this.Fa(),this.jd());var c=this.Mc(this.Fa());a=a.toString();this.Nh.test(a)||(a=igRF_.string.trimRight(a)+this.kh);if(this.Xg){if(b!=0&&!igRF_.string.p(c[b-1]))a=" "+a;if(b<c.length&&!igRF_.string.p(c[b+1]))a+=" "}if(a!=c[b]){c[b]=a;a=this.h;igRF_.userAgent.GECKO&&a.blur();a.value=c.join("");for(var d=0,e=0;e<=b;e++)d+=c[e].length;a.focus();this.me(d)}}else this.Lg(a.toString());this.Ic=igRF_b;return igRF_d};
igRF_.ui.AutoComplete.InputHandler.prototype.d=function(){igRF_.ui.AutoComplete.InputHandler.aa.d.call(this);this.q.dispose();delete this.q;this.Yb.dispose();this.Yb=igRF_c};igRF_.ui.AutoComplete.InputHandler.prototype.Fg=function(a){this.Ob=a;this.kh=this.Ob.substring(0,1);a=this.mb?"[\\s"+this.Ob+"]+":"[\\s]+";this.Ug=new RegExp("^"+a+"|"+a+"$","g");this.Nh=new RegExp("\\s*["+this.Ob+"]$")};igRF_.ui.AutoComplete.InputHandler.prototype.Kg=function(a){this.Oc=a};
igRF_.ui.AutoComplete.InputHandler.prototype.yf=function(a){switch(a.keyCode){case igRF_.events.KeyCodes.DOWN:if(this.i.isOpen()){this.$f();a.preventDefault();return igRF_b}else if(!this.mb){this.update(igRF_b);a.preventDefault();return igRF_b}break;case igRF_.events.KeyCodes.UP:if(this.i.isOpen()){this.ag();a.preventDefault();return igRF_b}break;case igRF_.events.KeyCodes.TAB:if(this.i.isOpen()){this.update();if(this.i.Nb()&&this.Gh){a.preventDefault();return igRF_b}}else this.i.dismiss();break;
case igRF_.events.KeyCodes.ENTER:this.update();if(this.i.Nb()){a.preventDefault();return igRF_b}break;case igRF_.events.KeyCodes.ESC:if(this.i.isOpen()){this.i.dismiss();return igRF_b}break;case igRF_.events.KeyCodes.WIN_IME:if(!this.Ba){this.Ng();return igRF_b}break;default:if(this.k&&!this.Wg){this.k.stop();this.k.start()}}return this.Ld(a)};
igRF_.ui.AutoComplete.InputHandler.prototype.Ld=function(a){var b=this.mb&&a.charCode&&this.Ob.indexOf(String.fromCharCode(a.charCode))!=-1;this.yg&&b&&this.update();if(this.xg&&b)if(this.i.Nb()){a.preventDefault();return igRF_b}return igRF_d};igRF_.ui.AutoComplete.InputHandler.prototype.cg=function(){return igRF_d};igRF_.ui.AutoComplete.InputHandler.prototype.Id=function(){return igRF_d};
igRF_.ui.AutoComplete.InputHandler.prototype.Fe=function(){this.Bc.attach(this.h);this.q.listen(this.Bc,igRF_.events.KeyHandler.EventType.KEY,this.ge);this.cg()&&this.q.listen(this.h,igRF_.events.EventType.KEYUP,this.Id);igRF_.userAgent.IE&&this.q.listen(this.h,igRF_.events.EventType.KEYPRESS,this.de)};
igRF_.ui.AutoComplete.InputHandler.prototype.qg=function(){this.q.unlisten(this.Bc,igRF_.events.KeyHandler.EventType.KEY,this.ge);this.Bc.detach();this.q.unlisten(this.h,igRF_.events.EventType.KEYUP,this.Id);igRF_.userAgent.IE&&this.q.unlisten(this.h,igRF_.events.EventType.KEYPRESS,this.de);this.Ba&&this.Nc()};
igRF_.ui.AutoComplete.InputHandler.prototype.ce=function(a){this.Yb.nb();this.i&&this.i.ac();if(a.target!=this.h){this.h=a.target||igRF_c;if(this.k){this.k.start();this.q.listen(this.k,igRF_.Timer.TICK,this.ie)}this.Cc=this.Fa();this.Fe()}};igRF_.ui.AutoComplete.InputHandler.prototype.gg=function(){if(this.h){this.qg();this.h=igRF_c;if(this.k){this.k.stop();this.q.unlisten(this.k,igRF_.Timer.TICK,this.ie)}this.i&&this.i.Zc()}};igRF_.ui.AutoComplete.InputHandler.prototype.ie=function(){this.update()};
igRF_.ui.AutoComplete.InputHandler.prototype.hg=function(a){this.ce(a)};igRF_.ui.AutoComplete.InputHandler.prototype.ge=function(a){this.Qf=a.keyCode;this.i&&this.yf(a)};igRF_.ui.AutoComplete.InputHandler.prototype.ee=function(){this.Ba&&this.Qf!=igRF_.events.KeyCodes.WIN_IME&&this.Nc()};igRF_.ui.AutoComplete.InputHandler.prototype.fe=function(a){if(this.Ba&&(a.keyCode==igRF_.events.KeyCodes.ENTER||a.keyCode==igRF_.events.KeyCodes.M&&a.ctrlKey))this.Nc()};
igRF_.ui.AutoComplete.InputHandler.prototype.Ng=function(){if(!this.Ba){this.q.listen(this.h,igRF_.events.EventType.KEYUP,this.fe);this.q.listen(this.h,igRF_.events.EventType.KEYPRESS,this.ee);this.Ba=igRF_b}};igRF_.ui.AutoComplete.InputHandler.prototype.Nc=function(){if(this.Ba){this.Ba=igRF_d;this.q.unlisten(this.h,igRF_.events.EventType.KEYPRESS,this.ee);this.q.unlisten(this.h,igRF_.events.EventType.KEYUP,this.fe)}};igRF_.ui.AutoComplete.InputHandler.prototype.de=function(a){this.Ld(a)};
igRF_.ui.AutoComplete.InputHandler.prototype.update=function(a){if(a||this.h&&this.Fa()!=this.Cc){if(a||!this.Ic){a=this.ig();if(this.i){this.i.Hg(this.h);this.i.Ig(a,this.Fa())}}this.Cc=this.Fa()}this.Ic=igRF_d};igRF_.ui.AutoComplete.InputHandler.prototype.ig=function(){return this.jg()};igRF_.ui.AutoComplete.InputHandler.prototype.ag=function(){return this.Oc?this.i.Od():this.i.Pd()};igRF_.ui.AutoComplete.InputHandler.prototype.$f=function(){return this.Oc?this.i.Pd():this.i.Od()};
igRF_.ui.AutoComplete.InputHandler.prototype.jg=function(){var a=this.jd(),b=this.Fa();return this.Tg(this.Mc(b)[this.Ed(b,a)])};igRF_.ui.AutoComplete.InputHandler.prototype.Tg=function(a){return this.Ug?String(a).replace(this.Ug,""):a};igRF_.ui.AutoComplete.InputHandler.prototype.Ed=function(a,b){var c=this.Mc(a);if(b==a.length)return c.length-1;for(var d=a=0,e=0;d<c.length&&e<b;d++){e+=c[d].length;a=d}return a};
igRF_.ui.AutoComplete.InputHandler.prototype.Mc=function(a){if(!this.mb)return[a];a=String(a).split("");for(var b=[],c=[],d=0,e=igRF_d;d<a.length;d++)if(this.Tf&&this.Tf.indexOf(a[d])!=-1){if(this.af&&!e){b.push(c.join(""));c.length=0}c.push(a[d]);e=!e}else if(!e&&this.Ob.indexOf(a[d])!=-1){c.push(a[d]);b.push(c.join(""));c.length=0}else c.push(a[d]);b.push(c.join(""));return b};igRF_.math.Box=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};igRF_.math.Box.boundingBox=function(){for(var a=new igRF_.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),b=1;b<arguments.length;b++){var c=arguments[b];a.top=Math.min(a.top,c.y);a.right=Math.max(a.right,c.x);a.bottom=Math.max(a.bottom,c.y);a.left=Math.min(a.left,c.x)}return a};igRF_.math.Box.prototype.clone=function(){return new igRF_.math.Box(this.top,this.right,this.bottom,this.left)};
if(igRF_.DEBUG)igRF_.math.Box.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};igRF_.math.Box.prototype.contains=function(a){return igRF_.math.Box.contains(this,a)};igRF_.math.Box.prototype.expand=function(a,b,c,d){if(igRF_.isObject(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};
igRF_.math.Box.equals=function(a,b){if(a==b)return igRF_b;if(!a||!b)return igRF_d;return a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left};igRF_.math.Box.contains=function(a,b){if(!a||!b)return igRF_d;if(b instanceof igRF_.math.Box)return b.left>=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom;return b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};
igRF_.math.Box.distance=function(a,b){if(b.x>=a.left&&b.x<=a.right){if(b.y>=a.top&&b.y<=a.bottom)return 0;return b.y<a.top?a.top-b.y:b.y-a.bottom}if(b.y>=a.top&&b.y<=a.bottom)return b.x<a.left?a.left-b.x:b.x-a.right;return igRF_.math.Coordinate.distance(b,new igRF_.math.Coordinate(b.x<a.left?a.left:a.right,b.y<a.top?a.top:a.bottom))};igRF_.math.Box.intersects=function(a,b){return a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom};igRF_.math.Rect=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};igRF_.math.Rect.prototype.clone=function(){return new igRF_.math.Rect(this.left,this.top,this.width,this.height)};igRF_.math.Rect.createFromBox=function(a){return new igRF_.math.Rect(a.left,a.top,a.right-a.left,a.bottom-a.top)};if(igRF_.DEBUG)igRF_.math.Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
igRF_.math.Rect.equals=function(a,b){if(a==b)return igRF_b;if(!a||!b)return igRF_d;return a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height};igRF_.math.Rect.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a){this.left=b;this.top=d;this.width=c-b;this.height=a-d;return igRF_b}}return igRF_d};
igRF_.math.Rect.intersection=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new igRF_.math.Rect(c,e,d-c,a-e)}return igRF_c};igRF_.math.Rect.intersects=function(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height};igRF_.math.Rect.prototype.intersects=function(a){return igRF_.math.Rect.intersects(this,a)};
igRF_.math.Rect.difference=function(a,b){var c=igRF_.math.Rect.intersection(a,b);if(!c||!c.height||!c.width)return[a.clone()];c=[];var d=a.top,e=a.height,f=a.left+a.width,g=a.top+a.height,h=b.left+b.width,i=b.top+b.height;if(b.top>a.top){c.push(new igRF_.math.Rect(a.left,a.top,a.width,b.top-a.top));d=b.top;e-=b.top-a.top}if(i<g){c.push(new igRF_.math.Rect(a.left,i,a.width,g-i));e=i-d}b.left>a.left&&c.push(new igRF_.math.Rect(a.left,d,b.left-a.left,e));h<f&&c.push(new igRF_.math.Rect(h,d,f-h,e));return c};
igRF_.math.Rect.prototype.difference=function(a){return igRF_.math.Rect.difference(this,a)};igRF_.math.Rect.prototype.Tc=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top};igRF_.math.Rect.Tc=function(a,b){if(!a||!b)return igRF_c;a=a.clone();a.Tc(b);return a};
igRF_.math.Rect.prototype.contains=function(a){return a instanceof igRF_.math.Rect?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};igRF_.math.Rect.prototype.hb=function(){return new igRF_.math.Size(this.width,this.height)};igRF_.style={};igRF_.style.setStyle=function(a,b,c){igRF_.isString(b)?igRF_.style.Gg(a,c,b):igRF_.object.forEach(b,igRF_.partial(igRF_.style.Gg,a))};igRF_.style.Gg=function(a,b,c){a.style[igRF_.style.toCamelCase(c)]=b};igRF_.style.getStyle=function(a,b){return a.style[igRF_.style.toCamelCase(b)]};igRF_.style.getComputedStyle=function(a,b){var c=igRF_.dom.o(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(a=c.defaultView.getComputedStyle(a,""))return a[b];return igRF_c};
igRF_.style.getCascadedStyle=function(a,b){return a.currentStyle?a.currentStyle[b]:igRF_c};igRF_.style.r=function(a,b){return igRF_.style.getComputedStyle(a,b)||igRF_.style.getCascadedStyle(a,b)||a.style[b]};igRF_.style.getComputedPosition=function(a){return igRF_.style.r(a,"position")};igRF_.style.getBackgroundColor=function(a){return igRF_.style.r(a,"backgroundColor")};igRF_.style.getComputedOverflowX=function(a){return igRF_.style.r(a,"overflowX")};
igRF_.style.getComputedOverflowY=function(a){return igRF_.style.r(a,"overflowY")};igRF_.style.getComputedZIndex=function(a){return igRF_.style.r(a,"zIndex")};igRF_.style.getComputedTextAlign=function(a){return igRF_.style.r(a,"textAlign")};igRF_.style.getComputedCursor=function(a){return igRF_.style.r(a,"cursor")};
igRF_.style.setPosition=function(a,b,c){var d,e=igRF_.userAgent.GECKO&&(igRF_.userAgent.MAC||igRF_.userAgent.X11)&&igRF_.userAgent.isVersion("1.9");if(b instanceof igRF_.math.Coordinate){d=b.x;b=b.y}else{d=b;b=c}a.style.left=typeof d=="number"?(e?Math.round(d):d)+"px":d;a.style.top=typeof b=="number"?(e?Math.round(b):b)+"px":b};igRF_.style.getPosition=function(a){return new igRF_.math.Coordinate(a.offsetLeft,a.offsetTop)};
igRF_.style.getClientViewportElement=function(a){a=a?a.nodeType==igRF_.dom.NodeType.DOCUMENT?a:igRF_.dom.o(a):igRF_.dom.da();if(igRF_.userAgent.IE&&!igRF_.dom.$(a).xa())return a.body;return a.documentElement};igRF_.style.bf=function(a){var b=a.getBoundingClientRect();if(igRF_.userAgent.IE){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b};
igRF_.style.getOffsetParent=function(a){if(igRF_.userAgent.IE)return a.offsetParent;var b=igRF_.dom.o(a),c=igRF_.style.r(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=igRF_.style.r(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return igRF_c};
igRF_.style.getVisibleRectForElement=function(a){var b=new igRF_.math.Box(0,Infinity,Infinity,0),c=igRF_.dom.$(a),d=c.da().body,e=c.kd(),f;for(a=a;a=igRF_.style.getOffsetParent(a);)if((!igRF_.userAgent.IE||a.clientWidth!=0)&&(!igRF_.userAgent.WEBKIT||a.clientHeight!=0||a!=d)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&igRF_.style.r(a,"overflow")!="visible"){var g=igRF_.style.getPageOffset(a),h=igRF_.style.getClientLeftTop(a);g.x+=h.x;g.y+=h.y;b.top=Math.max(b.top,g.y);b.right=
Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.x);f=f||a!=e}d=e.scrollLeft;e=e.scrollTop;if(igRF_.userAgent.WEBKIT){b.left+=d;b.top+=e}else{b.left=Math.max(b.left,d);b.top=Math.max(b.top,e)}if(!f||igRF_.userAgent.WEBKIT){b.right+=d;b.bottom+=e}c=c.tc();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,e+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:igRF_c};
igRF_.style.scrollIntoContainerView=function(a,b,c){var d=igRF_.style.getPageOffset(a),e=igRF_.style.getPageOffset(b),f=igRF_.style.getBorderBox(b),g=d.x-e.x-f.left;d=d.y-e.y-f.top;e=b.clientWidth-a.offsetWidth;a=b.clientHeight-a.offsetHeight;if(c){b.scrollLeft+=g-e/2;b.scrollTop+=d-a/2}else{b.scrollLeft+=Math.min(g,Math.max(g-e,0));b.scrollTop+=Math.min(d,Math.max(d-a,0))}};
igRF_.style.getClientLeftTop=function(a){if(igRF_.userAgent.GECKO&&!igRF_.userAgent.isVersion("1.9")){var b=parseFloat(igRF_.style.getComputedStyle(a,"borderLeftWidth"));if(igRF_.style.isRightToLeft(a)){var c=a.offsetWidth-a.clientWidth-b-parseFloat(igRF_.style.getComputedStyle(a,"borderRightWidth"));b+=c}return new igRF_.math.Coordinate(b,parseFloat(igRF_.style.getComputedStyle(a,"borderTopWidth")))}return new igRF_.math.Coordinate(a.clientLeft,a.clientTop)};
igRF_.style.getPageOffset=function(a){var b,c=igRF_.dom.o(a),d=igRF_.style.r(a,"position"),e=igRF_.userAgent.GECKO&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),f=new igRF_.math.Coordinate(0,0),g=igRF_.style.getClientViewportElement(c);if(a==g)return f;if(a.getBoundingClientRect){b=igRF_.style.bf(a);a=igRF_.dom.$(c).eb();f.x=b.left+a.x;f.y=b.top+a.y}else if(c.getBoxObjectFor&&!e){b=c.getBoxObjectFor(a);a=c.getBoxObjectFor(g);f.x=
b.screenX-a.screenX;f.y=b.screenY-a.screenY}else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;if(b!=a){f.x+=b.clientLeft||0;f.y+=b.clientTop||0}if(igRF_.userAgent.WEBKIT&&igRF_.style.getComputedPosition(b)=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(igRF_.userAgent.OPERA||igRF_.userAgent.WEBKIT&&d=="absolute")f.y-=c.body.offsetTop;for(b=a;(b=igRF_.style.getOffsetParent(b))&&b!=c.body&&b!=g;){f.x-=b.scrollLeft;if(!igRF_.userAgent.OPERA||b.tagName!="TR")f.y-=
b.scrollTop}}return f};igRF_.style.getPageOffsetLeft=function(a){return igRF_.style.getPageOffset(a).x};igRF_.style.getPageOffsetTop=function(a){return igRF_.style.getPageOffset(a).y};igRF_.style.getFramedPageOffset=function(a,b){var c=new igRF_.math.Coordinate(0,0),d=igRF_.dom.ib(igRF_.dom.o(a));a=a;do{var e=d==b?igRF_.style.getPageOffset(a):igRF_.style.getClientPosition(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&(a=d.frameElement)&&(d=d.parent));return c};
igRF_.style.translateRectForAnotherFrame=function(a,b,c){if(b.da()!=c.da()){var d=b.da().body;c=igRF_.style.getFramedPageOffset(d,c.ib());c=igRF_.math.Coordinate.difference(c,igRF_.style.getPageOffset(d));if(igRF_.userAgent.IE&&!b.xa())c=igRF_.math.Coordinate.difference(c,b.eb());a.left+=c.x;a.top+=c.y}};igRF_.style.getRelativePosition=function(a,b){a=igRF_.style.getClientPosition(a);b=igRF_.style.getClientPosition(b);return new igRF_.math.Coordinate(a.x-b.x,a.y-b.y)};
igRF_.style.getClientPosition=function(a){var b=new igRF_.math.Coordinate;if(a.nodeType==igRF_.dom.NodeType.ELEMENT)if(a.getBoundingClientRect){var c=igRF_.style.bf(a);b.x=c.left;b.y=c.top}else{c=igRF_.dom.$(a).eb();a=igRF_.style.getPageOffset(a);b.x=a.x-c.x;b.y=a.y-c.y}else{b.x=a.clientX;b.y=a.clientY}return b};
igRF_.style.setPageOffset=function(a,b,c){var d=igRF_.style.getPageOffset(a);if(b instanceof igRF_.math.Coordinate){c=b.y;b=b.x}b=b-d.x;c=c-d.y;igRF_.style.setPosition(a,a.offsetLeft+b,a.offsetTop+c)};igRF_.style.setSize=function(a,b,c){if(b instanceof igRF_.math.Size){c=b.height;b=b.width}else{if(c==undefined)igRF_a(Error("missing height argument"));c=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof c=="number"?Math.round(c)+"px":c};
igRF_.style.hb=function(a){var b=igRF_.userAgent.OPERA&&!igRF_.userAgent.isVersion("10");if(igRF_.style.r(a,"display")!="none")return b?new igRF_.math.Size(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new igRF_.math.Size(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=
d;c.position=f;c.visibility=e;return new igRF_.math.Size(b,a)};igRF_.style.getBounds=function(a){var b=igRF_.style.getPageOffset(a);a=igRF_.style.hb(a);return new igRF_.math.Rect(b.x,b.y,a.width,a.height)};igRF_.style.Pg={};igRF_.style.toCamelCase=function(a){return igRF_.style.Pg[a]||(igRF_.style.Pg[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};igRF_.style.Rg={};igRF_.style.toSelectorCase=function(a){return igRF_.style.Rg[a]||(igRF_.style.Rg[a]=a.replace(/([A-Z])/g,"-$1").toLowerCase())};
igRF_.style.getOpacity=function(a){var b=a.style;a="";if("opacity"in b)a=b.opacity;else if("MozOpacity"in b)a=b.MozOpacity;else if("filter"in b)if(b=b.filter.match(/alpha\(opacity=([\d.]+)\)/))a=String(b[1]/100);return a==""?a:Number(a)};igRF_.style.setOpacity=function(a,b){a=a.style;if("opacity"in a)a.opacity=b;else if("MozOpacity"in a)a.MozOpacity=b;else if("filter"in a)a.filter=b===""?"":"alpha(opacity="+b*100+")"};
igRF_.style.setTransparentBackgroundImage=function(a,b){a=a.style;if(igRF_.userAgent.IE&&!igRF_.userAgent.isVersion("8"))a.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="crop")';else{a.backgroundImage="url("+b+")";a.backgroundPosition="top left";a.backgroundRepeat="no-repeat"}};igRF_.style.clearTransparentBackgroundImage=function(a){a=a.style;if("filter"in a)a.filter="";else a.backgroundImage="none"};
igRF_.style.showElement=function(a,b){a.style.display=b?"":"none"};igRF_.style.isElementShown=function(a){return a.style.display!="none"};igRF_.style.installStyles=function(a,b){b=igRF_.dom.$(b);var c=igRF_c;if(igRF_.userAgent.IE){c=b.da().createStyleSheet();igRF_.style.setStyles(c,a)}else{var d=b.Pa("head")[0];if(!d){c=b.Pa("body")[0];d=b.oa("head");c.parentNode.insertBefore(d,c)}c=b.oa("style");igRF_.style.setStyles(c,a);b.appendChild(d,c)}return c};
igRF_.style.uninstallStyles=function(a){a=a.ownerNode||a.owningElement||a;igRF_.dom.removeNode(a)};igRF_.style.setStyles=function(a,b){if(igRF_.userAgent.IE)a.cssText=b;else{var c=igRF_.userAgent.WEBKIT?"innerText":"innerHTML";a[c]=b}};igRF_.style.setPreWrap=function(a){a=a.style;if(igRF_.userAgent.IE&&!igRF_.userAgent.isVersion("8")){a.whiteSpace="pre";a.wordWrap="break-word"}else a.whiteSpace=igRF_.userAgent.GECKO?"-moz-pre-wrap":igRF_.userAgent.OPERA?"-o-pre-wrap":"pre-wrap"};
igRF_.style.setInlineBlock=function(a){a=a.style;a.position="relative";if(igRF_.userAgent.IE&&!igRF_.userAgent.isVersion("8")){a.zoom="1";a.display="inline"}else a.display=igRF_.userAgent.GECKO?igRF_.userAgent.isVersion("1.9a")?"inline-block":"-moz-inline-box":"inline-block"};igRF_.style.isRightToLeft=function(a){return"rtl"==igRF_.style.r(a,"direction")};igRF_.style.te=igRF_.userAgent.GECKO?"MozUserSelect":igRF_.userAgent.WEBKIT?"WebkitUserSelect":igRF_c;
igRF_.style.isUnselectable=function(a){if(igRF_.style.te)return a.style[igRF_.style.te].toLowerCase()=="none";else if(igRF_.userAgent.IE||igRF_.userAgent.OPERA)return a.getAttribute("unselectable")=="on";return igRF_d};
igRF_.style.setUnselectable=function(a,b,c){c=!c?a.getElementsByTagName("*"):igRF_c;var d=igRF_.style.te;if(d){b=b?"none":"";a.style[d]=b;if(c){a=0;for(var e;e=c[a];a++)e.style[d]=b}}else if(igRF_.userAgent.IE||igRF_.userAgent.OPERA){b=b?"on":"";a.setAttribute("unselectable",b);if(c)for(a=0;e=c[a];a++)e.setAttribute("unselectable",b)}};igRF_.style.getBorderBoxSize=function(a){return new igRF_.math.Size(a.offsetWidth,a.offsetHeight)};
igRF_.style.setBorderBoxSize=function(a,b){var c=igRF_.dom.o(a),d=igRF_.dom.$(c).xa();if(igRF_.userAgent.IE&&(!d||!igRF_.userAgent.isVersion("8"))){c=a.style;if(d){d=igRF_.style.getPaddingBox(a);a=igRF_.style.getBorderBox(a);c.pixelWidth=b.width-a.left-d.left-d.right-a.right;c.pixelHeight=b.height-a.top-d.top-d.bottom-a.bottom}else{c.pixelWidth=b.width;c.pixelHeight=b.height}}else igRF_.style.Ag(a,b,"border-box")};
igRF_.style.getContentBoxSize=function(a){var b=igRF_.dom.o(a),c=igRF_.userAgent.IE&&a.currentStyle;if(c&&igRF_.dom.$(b).xa()&&c.width!="auto"&&c.height!="auto"&&!c.boxSizing){b=igRF_.style.fb(a,c.width,"width","pixelWidth");a=igRF_.style.fb(a,c.height,"height","pixelHeight");return new igRF_.math.Size(b,a)}else{c=igRF_.style.getBorderBoxSize(a);b=igRF_.style.getPaddingBox(a);a=igRF_.style.getBorderBox(a);return new igRF_.math.Size(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-
a.bottom)}};igRF_.style.setContentBoxSize=function(a,b){var c=igRF_.dom.o(a),d=igRF_.dom.$(c).xa();if(igRF_.userAgent.IE&&(!d||!igRF_.userAgent.isVersion("8"))){c=a.style;if(d){c.pixelWidth=b.width;c.pixelHeight=b.height}else{d=igRF_.style.getPaddingBox(a);a=igRF_.style.getBorderBox(a);c.pixelWidth=b.width+a.left+d.left+d.right+a.right;c.pixelHeight=b.height+a.top+d.top+d.bottom+a.bottom}}else igRF_.style.Ag(a,b,"content-box")};
igRF_.style.Ag=function(a,b,c){a=a.style;if(igRF_.userAgent.GECKO)a.MozBoxSizing=c;else if(igRF_.userAgent.WEBKIT)a.WebkitBoxSizing=c;else if(igRF_.userAgent.OPERA&&!igRF_.userAgent.isVersion("9.50"))c?a.setProperty("box-sizing",c):a.removeProperty("box-sizing");else a.boxSizing=c;a.width=b.width+"px";a.height=b.height+"px"};
igRF_.style.fb=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);else{var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}};igRF_.style.mc=function(a,b){return igRF_.style.fb(a,igRF_.style.getCascadedStyle(a,b),"left","pixelLeft")};
igRF_.style.cf=function(a,b){if(igRF_.userAgent.IE){var c=igRF_.style.mc(a,b+"Left"),d=igRF_.style.mc(a,b+"Right"),e=igRF_.style.mc(a,b+"Top");a=igRF_.style.mc(a,b+"Bottom");return new igRF_.math.Box(e,d,a,c)}else{c=igRF_.style.getComputedStyle(a,b+"Left");d=igRF_.style.getComputedStyle(a,b+"Right");e=igRF_.style.getComputedStyle(a,b+"Top");a=igRF_.style.getComputedStyle(a,b+"Bottom");return new igRF_.math.Box(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))}};
igRF_.style.getPaddingBox=function(a){return igRF_.style.cf(a,"padding")};igRF_.style.getMarginBox=function(a){return igRF_.style.cf(a,"margin")};igRF_.style.If={thin:2,medium:4,thick:6};igRF_.style.lc=function(a,b){if(igRF_.style.getCascadedStyle(a,b+"Style")=="none")return 0;b=igRF_.style.getCascadedStyle(a,b+"Width");if(b in igRF_.style.If)return igRF_.style.If[b];return igRF_.style.fb(a,b,"left","pixelLeft")};
igRF_.style.getBorderBox=function(a){if(igRF_.userAgent.IE){var b=igRF_.style.lc(a,"borderLeft"),c=igRF_.style.lc(a,"borderRight"),d=igRF_.style.lc(a,"borderTop");a=igRF_.style.lc(a,"borderBottom");return new igRF_.math.Box(d,c,a,b)}else{b=igRF_.style.getComputedStyle(a,"borderLeftWidth");c=igRF_.style.getComputedStyle(a,"borderRightWidth");d=igRF_.style.getComputedStyle(a,"borderTopWidth");a=igRF_.style.getComputedStyle(a,"borderBottomWidth");return new igRF_.math.Box(parseFloat(d),parseFloat(c),
parseFloat(a),parseFloat(b))}};igRF_.style.getFontFamily=function(a){var b=igRF_.dom.o(a),c="";if(b.createTextRange){c=b.body.createTextRange();c.moveToElementText(a);c=c.queryCommandValue("FontName")}if(!c){c=igRF_.style.r(a,"fontFamily");if(igRF_.userAgent.OPERA&&igRF_.userAgent.LINUX)c=c.replace(/ \[[^\]]*\]/,"")}a=c.split(",");if(a.length>1)c=a[0];return igRF_.string.stripQuotes(c,"\"'")};igRF_.style.Ch=/[^\d]+$/;
igRF_.style.getLengthUnits=function(a){return(a=a.match(igRF_.style.Ch))&&a[0]||igRF_c};igRF_.style.Yg={cm:1,"in":1,mm:1,pc:1,pt:1};igRF_.style.$g={em:1,ex:1};
igRF_.style.getFontSize=function(a){var b=igRF_.style.r(a,"fontSize"),c=igRF_.style.getLengthUnits(b);if(b&&"px"==c)return parseInt(b,10);if(igRF_.userAgent.IE)if(c in igRF_.style.Yg)return igRF_.style.fb(a,b,"left","pixelLeft");else if(a.parentNode&&a.parentNode.nodeType==igRF_.dom.NodeType.ELEMENT&&c in igRF_.style.$g){a=a.parentNode;c=igRF_.style.r(a,"fontSize");return igRF_.style.fb(a,b==c?"1em":b,"left","pixelLeft")}c=igRF_.dom.oa("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});
igRF_.dom.appendChild(a,c);b=c.offsetHeight;igRF_.dom.removeNode(c);return b};igRF_.style.parseStyleAttribute=function(a){var b={};igRF_.array.forEach(a.split(/\s*;\s*/),function(c){c=c.split(/\s*:\s*/);if(c.length==2)b[igRF_.style.toCamelCase(c[0].toLowerCase())]=c[1]});return b};igRF_.style.toStyleAttribute=function(a){var b=[];igRF_.object.forEach(a,function(c,d){b.push(igRF_.style.toSelectorCase(d),":",c,";")});return b.join("")};
igRF_.style.setFloat=function(a,b){a.style[igRF_.userAgent.IE?"styleFloat":"cssFloat"]=b};igRF_.style.getFloat=function(a){return a.style[igRF_.userAgent.IE?"styleFloat":"cssFloat"]||""};igRF_.style.getScrollbarWidth=function(){var a=igRF_.dom.createElement("div");a.style.cssText="visibility:hidden;overflow:scroll;position:absolute;top:0;width:100px;height:100px";igRF_.dom.appendChild(igRF_.dom.da().body,a);var b=a.offsetWidth-a.clientWidth;igRF_.dom.removeNode(a);return b};igRF_.ui.AutoComplete.Renderer=function(a,b,c,d){this.ke=a||igRF_.dom.da().body;this.ca=igRF_.dom.$(this.ke);this.Lh=!a;this.c=igRF_c;this.ua="";this.m=[];this.Mg=this.xc=-1;this.rb=igRF_d;this.className="ac-renderer";this.rowClassName="ac-row";this.Rf="active";this.activeClassName="ac-active";this.highlightedClassName="ac-highlighted";this.ab=b||igRF_c;this.Vh=d!=igRF_c?d:igRF_b;this.Mh=c!=igRF_c?c:igRF_d;this.Xd=igRF_c;this.Wb=igRF_d};igRF_.inherits(igRF_.ui.AutoComplete.Renderer,igRF_.events.EventTarget);
igRF_.ui.AutoComplete.Renderer.eg=0;igRF_.ui.AutoComplete.Renderer.DELAY_BEFORE_MOUSEOVER=300;igRF_.ui.AutoComplete.Renderer.prototype.wa=function(){return this.c};igRF_.ui.AutoComplete.Renderer.prototype.Jg=function(a){this.Wb=a};igRF_.ui.AutoComplete.Renderer.prototype.ug=function(a,b,c){this.ua=b;this.m=a;this.xc=0;this.Mg=igRF_.now();this.u=c;this.Mb=[];this.redraw()};
igRF_.ui.AutoComplete.Renderer.prototype.dismiss=function(){this.u&&igRF_.dom.a11y.setActiveDescendant(this.u,igRF_c);if(this.rb){this.rb=igRF_d;igRF_.style.showElement(this.c,igRF_d)}};igRF_.ui.AutoComplete.Renderer.prototype.show=function(){if(!this.rb){this.rb=igRF_b;igRF_.style.showElement(this.c,igRF_b)}};igRF_.ui.AutoComplete.Renderer.prototype.Nf=function(){return this.rb};
igRF_.ui.AutoComplete.Renderer.prototype.Qd=function(a){this.Ff();this.xc=a;if(a>=0&&a<this.c.childNodes.length){a=this.Mb[a];igRF_.dom.classes.add(a,this.activeClassName,this.Rf);this.u&&igRF_.dom.a11y.setActiveDescendant(this.u,a);igRF_.style.scrollIntoContainerView(a,this.c)}};igRF_.ui.AutoComplete.Renderer.prototype.Ff=function(){this.xc>=0&&igRF_.dom.classes.remove(this.Mb[this.xc],this.activeClassName,this.Rf)};
igRF_.ui.AutoComplete.Renderer.prototype.qa=function(a){if(a==-1)this.Qd(-1);else for(var b=0;b<this.m.length;b++)if(this.m[b].id==a){this.Qd(b);return}};igRF_.ui.AutoComplete.Renderer.prototype.Dg=function(a){igRF_.dom.classes.add(a,this.className)};
igRF_.ui.AutoComplete.Renderer.prototype.Zf=function(){if(!this.c){var a=this.ca.oa("div",{style:"display:none"});this.c=a;this.Dg(a);igRF_.dom.a11y.setRole(a,igRF_.dom.a11y.Role.LISTBOX);a.id="goog-acr-"+igRF_.ui.AutoComplete.Renderer.eg++;if(this.u){igRF_.dom.a11y.setRole(this.u,igRF_.dom.a11y.Role.COMBOBOX);igRF_.dom.a11y.setState(this.u,igRF_.dom.a11y.State.AUTOCOMPLETE,"list");igRF_.dom.a11y.setState(this.u,igRF_.dom.a11y.State.HASPOPUP,igRF_b)}this.ca.appendChild(this.ke,a);igRF_.events.listen(a,
igRF_.events.EventType.CLICK,this.Gd,igRF_d,this);igRF_.events.listen(a,igRF_.events.EventType.MOUSEDOWN,this.Jd,igRF_d,this);igRF_.events.listen(this.ca.da(),igRF_.events.EventType.CLICK,this.Hd,igRF_d,this);igRF_.events.listen(a,igRF_.events.EventType.MOUSEOVER,this.Kd,igRF_d,this)}};
igRF_.ui.AutoComplete.Renderer.prototype.redraw=function(){this.Zf();if(this.Wb)this.c.style.visibility="hidden";this.Mb.length=0;this.ca.Kb(this.c);if(this.ab&&this.ab.render)this.ab.render(this,this.c,this.m,this.ua);else{var a=igRF_c;igRF_.iter.forEach(this.m,function(b){b=this.tg(b,this.ua);this.Wb?this.c.insertBefore(b,a):this.ca.appendChild(this.c,b);a=b},this)}if(this.m.length==0)this.dismiss();else{this.show();this.mg(this.c);this.reposition();igRF_.style.setUnselectable(this.c,igRF_b)}};
igRF_.ui.AutoComplete.Renderer.prototype.reposition=function(){if(this.u&&this.Lh){var a=igRF_.style.getPageOffset(this.u),b=igRF_.style.hb(this.u),c=igRF_.style.hb(igRF_.style.getClientViewportElement(this.u)),d=igRF_.style.hb(this.c);a.y=this.Wb?a.y-d.height:a.y+b.height;if((this.Mh||a.x+d.width>c.width)&&this.Xd!="LEFT"){a.x=a.x+b.width-d.width;this.Xd="RIGHT"}else this.Xd="LEFT";igRF_.style.setPageOffset(this.c,a);if(this.Wb)this.c.style.visibility="visible"}};
igRF_.ui.AutoComplete.Renderer.prototype.d=function(){igRF_.ui.AutoComplete.Renderer.aa.d.call(this);if(this.c){igRF_.events.unlisten(this.c,igRF_.events.EventType.CLICK,this.Gd,igRF_d,this);igRF_.events.unlisten(this.c,igRF_.events.EventType.MOUSEDOWN,this.Jd,igRF_d,this);igRF_.events.unlisten(this.ca.da(),igRF_.events.EventType.CLICK,this.Hd,igRF_d,this);igRF_.events.unlisten(this.c,igRF_.events.EventType.MOUSEOVER,this.Kd,igRF_d,this);this.ca.removeNode(this.c);this.c=igRF_c;this.rb=igRF_d}delete this.ke};
igRF_.ui.AutoComplete.Renderer.prototype.mg=function(a){if(igRF_.userAgent.GECKO&&igRF_.userAgent.MAC){a.style.width="";a.style.overflow="visible";a.style.width=a.offsetWidth;a.style.overflow="auto"}};igRF_.ui.AutoComplete.Renderer.prototype.sg=function(a,b,c){c.innerHTML=igRF_.string.htmlEscape(a.data.toString())};
igRF_.ui.AutoComplete.Renderer.prototype.wc=function(a,b){if(a.nodeType==igRF_.dom.NodeType.TEXT){var c,d=igRF_c;if(igRF_.isArray(b)){c=b.length>0?b[0]:"";if(b.length>1)d=igRF_.array.slice(b,1)}else c=b;if(c.length!=0){var e=a.nodeValue;c=igRF_.string.regExpEscape(c);c=new RegExp("(.*?)(^|\\W+)("+c+")","gi");b=[];for(var f=0,g=c.exec(e);g;){b.push(g[1]);b.push(g[2]);b.push(g[3]);f=c.lastIndex;g=c.exec(e)}b.push(e.substring(f));if(b.length>1){a.nodeValue=b[0]+b[1];d=this.ca.createElement("b");d.className=
this.highlightedClassName;this.ca.appendChild(d,this.ca.createTextNode(b[2]));d=a.parentNode.insertBefore(d,a.nextSibling);for(e=b.length-1;e>=3;e--)a.parentNode.insertBefore(this.ca.createTextNode(b[e]),d.nextSibling)}else d&&this.wc(a,d)}}else for(a=a.firstChild;a;){d=a.nextSibling;this.wc(a,b);a=d}};
igRF_.ui.AutoComplete.Renderer.prototype.tg=function(a,b){var c=this.ca.oa("div",{className:this.rowClassName,id:"goog-acri-"+igRF_.ui.AutoComplete.Renderer.eg++});igRF_.dom.a11y.setRole(c,igRF_.dom.a11y.Role.OPTION);this.ab&&this.ab.Lb?this.ab.Lb(a,b,c):this.sg(a,b,c);b&&this.Vh&&this.wc(c,b);igRF_.dom.classes.add(c,this.rowClassName);this.Mb.push(c);return c};
igRF_.ui.AutoComplete.Renderer.prototype.Cd=function(a){for(;a&&a!=this.c&&!igRF_.dom.classes.has(a,this.rowClassName);)a=a.parentNode;return a?igRF_.array.indexOf(this.Mb,a):-1};igRF_.ui.AutoComplete.Renderer.prototype.Gd=function(a){var b=this.Cd(a.target);b>=0&&this.dispatchEvent({type:igRF_.ui.AutoComplete.EventType.SELECT,row:this.m[b].id});a.stopPropagation()};
igRF_.ui.AutoComplete.Renderer.prototype.Jd=function(a){this.dispatchEvent(igRF_.ui.AutoComplete.EventType.CANCEL_DISMISS);a.stopPropagation();a.preventDefault()};igRF_.ui.AutoComplete.Renderer.prototype.Hd=function(){this.dispatchEvent(igRF_.ui.AutoComplete.EventType.DISMISS)};
igRF_.ui.AutoComplete.Renderer.prototype.Kd=function(a){a=this.Cd(a.target);if(a>=0)igRF_.now()-this.Mg<igRF_.ui.AutoComplete.Renderer.DELAY_BEFORE_MOUSEOVER||this.dispatchEvent({type:igRF_.ui.AutoComplete.EventType.HILITE,row:this.m[a].id})};igRF_.ui.AutoComplete.Renderer.CustomRenderer=function(){};igRF_.ui.AutoComplete.Renderer.CustomRenderer.prototype.render=function(){};igRF_.ui.AutoComplete.Renderer.CustomRenderer.prototype.Lb=function(){};igRF_.ui.AutoComplete.Basic=function(a,b,c,d){a=new igRF_.ui.AutoComplete.ArrayMatcher(a,!d);d=new igRF_.ui.AutoComplete.Renderer;c=new igRF_.ui.AutoComplete.InputHandler(igRF_c,igRF_c,!!c);igRF_.ui.AutoComplete.call(this,a,d,c);c.Qc(this);c.Ya(b)};igRF_.inherits(igRF_.ui.AutoComplete.Basic,igRF_.ui.AutoComplete);igRF_.structs.ia=function(a){if(typeof a.ia=="function")return a.ia();if(igRF_.isArrayLike(a)||igRF_.isString(a))return a.length;return igRF_.object.ia(a)};igRF_.structs.j=function(a){if(typeof a.j=="function")return a.j();if(igRF_.isString(a))return a.split("");if(igRF_.isArrayLike(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return igRF_.object.j(a)};
igRF_.structs.l=function(a){if(typeof a.l=="function")return a.l();if(typeof a.j!="function"){if(igRF_.isArrayLike(a)||igRF_.isString(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return igRF_.object.l(a)}};igRF_.structs.contains=function(a,b){if(typeof a.contains=="function")return a.contains(b);if(typeof a.Ca=="function")return a.Ca(b);if(igRF_.isArrayLike(a)||igRF_.isString(a))return igRF_.array.contains(a,b);return igRF_.object.Ca(a,b)};
igRF_.structs.p=function(a){if(typeof a.p=="function")return a.p();if(igRF_.isArrayLike(a)||igRF_.isString(a))return igRF_.array.p(a);return igRF_.object.p(a)};igRF_.structs.clear=function(a){if(typeof a.clear=="function")a.clear();else igRF_.isArrayLike(a)?igRF_.array.clear(a):igRF_.object.clear(a)};
igRF_.structs.forEach=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(igRF_.isArrayLike(a)||igRF_.isString(a))igRF_.array.forEach(a,b,c);else for(var d=igRF_.structs.l(a),e=igRF_.structs.j(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};
igRF_.structs.filter=function(a,b,c){if(typeof a.filter=="function")return a.filter(b,c);if(igRF_.isArrayLike(a)||igRF_.isString(a))return igRF_.array.filter(a,b,c);var d,e=igRF_.structs.l(a),f=igRF_.structs.j(a),g=f.length;if(e){d={};for(var h=0;h<g;h++)if(b.call(c,f[h],e[h],a))d[e[h]]=f[h]}else{d=[];for(h=0;h<g;h++)b.call(c,f[h],undefined,a)&&d.push(f[h])}return d};
igRF_.structs.map=function(a,b,c){if(typeof a.map=="function")return a.map(b,c);if(igRF_.isArrayLike(a)||igRF_.isString(a))return igRF_.array.map(a,b,c);var d,e=igRF_.structs.l(a),f=igRF_.structs.j(a),g=f.length;if(e){d={};for(var h=0;h<g;h++)d[e[h]]=b.call(c,f[h],e[h],a)}else{d=[];for(h=0;h<g;h++)d[h]=b.call(c,f[h],undefined,a)}return d};
igRF_.structs.some=function(a,b,c){if(typeof a.some=="function")return a.some(b,c);if(igRF_.isArrayLike(a)||igRF_.isString(a))return igRF_.array.some(a,b,c);for(var d=igRF_.structs.l(a),e=igRF_.structs.j(a),f=e.length,g=0;g<f;g++)if(b.call(c,e[g],d&&d[g],a))return igRF_b;return igRF_d};
igRF_.structs.every=function(a,b,c){if(typeof a.every=="function")return a.every(b,c);if(igRF_.isArrayLike(a)||igRF_.isString(a))return igRF_.array.every(a,b,c);for(var d=igRF_.structs.l(a),e=igRF_.structs.j(a),f=e.length,g=0;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return igRF_d;return igRF_b};igRF_.structs.Map=function(a){this.w={};this.a=[];var b=arguments.length;if(b>1){if(b%2)igRF_a(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.Ee(a)};igRF_.structs.Map.prototype.b=0;igRF_.structs.Map.prototype.qb=0;igRF_.structs.Map.prototype.ia=function(){return this.b};igRF_.structs.Map.prototype.j=function(){this.$a();for(var a=[],b=0;b<this.a.length;b++){var c=this.a[b];a.push(this.w[c])}return a};
igRF_.structs.Map.prototype.l=function(){this.$a();return this.a.concat()};igRF_.structs.Map.prototype.na=function(a){return igRF_.structs.Map.Qa(this.w,a)};igRF_.structs.Map.prototype.Ca=function(a){for(var b=0;b<this.a.length;b++){var c=this.a[b];if(igRF_.structs.Map.Qa(this.w,c)&&this.w[c]==a)return igRF_b}return igRF_d};
igRF_.structs.Map.prototype.equals=function(a,b){if(this===a)return igRF_b;if(this.b!=a.ia())return igRF_d;b=b||igRF_.structs.Map.defaultEquals;this.$a();for(var c,d=0;c=this.a[d];d++)if(!b(this.get(c),a.get(c)))return igRF_d;return igRF_b};igRF_.structs.Map.defaultEquals=function(a,b){return a===b};igRF_.structs.Map.prototype.p=function(){return this.b==0};igRF_.structs.Map.prototype.clear=function(){this.w={};this.qb=this.b=this.a.length=0};
igRF_.structs.Map.prototype.remove=function(a){if(igRF_.structs.Map.Qa(this.w,a)){delete this.w[a];this.b--;this.qb++;this.a.length>2*this.b&&this.$a();return igRF_b}return igRF_d};
igRF_.structs.Map.prototype.$a=function(){if(this.b!=this.a.length){for(var a=0,b=0;a<this.a.length;){var c=this.a[a];if(igRF_.structs.Map.Qa(this.w,c))this.a[b++]=c;a++}this.a.length=b}if(this.b!=this.a.length){var d={};for(b=a=0;a<this.a.length;){c=this.a[a];if(!igRF_.structs.Map.Qa(d,c)){this.a[b++]=c;d[c]=1}a++}this.a.length=b}};igRF_.structs.Map.prototype.get=function(a,b){if(igRF_.structs.Map.Qa(this.w,a))return this.w[a];return b};
igRF_.structs.Map.prototype.set=function(a,b){if(!igRF_.structs.Map.Qa(this.w,a)){this.b++;this.a.push(a);this.qb++}this.w[a]=b};igRF_.structs.Map.prototype.Ee=function(a){var b;if(a instanceof igRF_.structs.Map){b=a.l();a=a.j()}else{b=igRF_.object.l(a);a=igRF_.object.j(a)}for(var c=0;c<b.length;c++)this.set(b[c],a[c])};igRF_.structs.Map.prototype.clone=function(){return new igRF_.structs.Map(this)};
igRF_.structs.Map.prototype.transpose=function(){for(var a=new igRF_.structs.Map,b=0;b<this.a.length;b++){var c=this.a[b],d=this.w[c];a.set(d,c)}return a};igRF_.structs.Map.prototype.__iterator__=function(a){this.$a();var b=0,c=this.a,d=this.w,e=this.qb,f=this,g=new igRF_.iter.Iterator;g.next=function(){for(;;){if(e!=f.qb)igRF_a(Error("The map has changed since the iterator was created"));if(b>=c.length)igRF_a(igRF_.iter.StopIteration);var h=c[b++];return a?h:d[h]}};return g};
igRF_.structs.Map.Qa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};igRF_.debug.Error=function(a){this.stack=(new Error).stack||"";if(a)this.message=String(a)};igRF_.inherits(igRF_.debug.Error,Error);igRF_.debug.Error.prototype.name="CustomError";igRF_.asserts={};igRF_.asserts.ENABLE_ASSERTS=igRF_.DEBUG;igRF_.asserts.AssertionError=function(a,b){b.unshift(a);igRF_.debug.Error.call(this,igRF_.string.subs.apply(igRF_c,b));b.shift();this.messagePattern=a};igRF_.inherits(igRF_.asserts.AssertionError,igRF_.debug.Error);igRF_.asserts.AssertionError.prototype.name="AssertionError";igRF_.asserts.Ka=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else if(a){e+=": "+a;f=b}igRF_a(new igRF_.asserts.AssertionError(""+e,f||[]))};
igRF_.asserts.assert=function(a,b){igRF_.asserts.ENABLE_ASSERTS&&!a&&igRF_.asserts.Ka("",igRF_c,b,Array.prototype.slice.call(arguments,2))};igRF_.asserts.fail=function(a){if(igRF_.asserts.ENABLE_ASSERTS)igRF_a(new igRF_.asserts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};igRF_.asserts.assertNumber=function(a,b){igRF_.asserts.ENABLE_ASSERTS&&!igRF_.isNumber(a)&&igRF_.asserts.Ka("Expected number but got %s.",[a],b,Array.prototype.slice.call(arguments,2));return a};
igRF_.asserts.assertString=function(a,b){igRF_.asserts.ENABLE_ASSERTS&&!igRF_.isString(a)&&igRF_.asserts.Ka("Expected string but got %s.",[a],b,Array.prototype.slice.call(arguments,2));return a};igRF_.asserts.assertFunction=function(a,b){igRF_.asserts.ENABLE_ASSERTS&&!igRF_.isFunction(a)&&igRF_.asserts.Ka("Expected function but got %s.",[a],b,Array.prototype.slice.call(arguments,2));return a};
igRF_.asserts.assertObject=function(a,b){igRF_.asserts.ENABLE_ASSERTS&&!igRF_.isObject(a)&&igRF_.asserts.Ka("Expected object but got %s.",[a],b,Array.prototype.slice.call(arguments,2));return a};igRF_.asserts.assertArray=function(a,b){igRF_.asserts.ENABLE_ASSERTS&&!igRF_.isArray(a)&&igRF_.asserts.Ka("Expected array but got %s.",[a],b,Array.prototype.slice.call(arguments,2));return a};
igRF_.asserts.assertInstanceof=function(a,b,c){igRF_.asserts.ENABLE_ASSERTS&&!(a instanceof b)&&igRF_.asserts.Ka("instanceof check failed.",igRF_c,c,Array.prototype.slice.call(arguments,3))};igRF_.uri={};igRF_.uri.utils={};igRF_.uri.utils.sb={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63};igRF_.uri.utils.buildFromEncodedParts=function(a,b,c,d,e,f,g){var h=[];a&&h.push(a,":");if(c){h.push("//");b&&h.push(b,"@");h.push(c);d&&h.push(":",d)}e&&h.push(e);f&&h.push("?",f);g&&h.push("#",g);return h.join("")};igRF_.uri.utils.Oh=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");
igRF_.uri.utils.ComponentIndex={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};igRF_.uri.utils.split=function(a){return a.match(igRF_.uri.utils.Oh)};igRF_.uri.utils.dc=function(a){return a&&decodeURIComponent(a)};igRF_.uri.utils.db=function(a,b){return igRF_.uri.utils.split(b)[a]||igRF_c};igRF_.uri.utils.rc=function(a){return igRF_.uri.utils.db(igRF_.uri.utils.ComponentIndex.SCHEME,a)};
igRF_.uri.utils.getUserInfoEncoded=function(a){return igRF_.uri.utils.db(igRF_.uri.utils.ComponentIndex.USER_INFO,a)};igRF_.uri.utils.sc=function(a){return igRF_.uri.utils.dc(igRF_.uri.utils.getUserInfoEncoded(a))};igRF_.uri.utils.getDomainEncoded=function(a){return igRF_.uri.utils.db(igRF_.uri.utils.ComponentIndex.DOMAIN,a)};igRF_.uri.utils.yb=function(a){return igRF_.uri.utils.dc(igRF_.uri.utils.getDomainEncoded(a))};
igRF_.uri.utils.zb=function(a){return Number(igRF_.uri.utils.db(igRF_.uri.utils.ComponentIndex.PORT,a))||igRF_c};igRF_.uri.utils.getPathEncoded=function(a){return igRF_.uri.utils.db(igRF_.uri.utils.ComponentIndex.PATH,a)};igRF_.uri.utils.gb=function(a){return igRF_.uri.utils.dc(igRF_.uri.utils.getPathEncoded(a))};igRF_.uri.utils.Ad=function(a){return igRF_.uri.utils.db(igRF_.uri.utils.ComponentIndex.QUERY_DATA,a)};
igRF_.uri.utils.getFragmentEncoded=function(a){var b=a.indexOf("#");return b<0?igRF_c:a.substr(b+1)};igRF_.uri.utils.jc=function(a){return igRF_.uri.utils.dc(igRF_.uri.utils.getFragmentEncoded(a))};igRF_.uri.utils.getHost=function(a){a=igRF_.uri.utils.split(a);return igRF_.uri.utils.buildFromEncodedParts(a[igRF_.uri.utils.ComponentIndex.SCHEME],a[igRF_.uri.utils.ComponentIndex.USER_INFO],a[igRF_.uri.utils.ComponentIndex.DOMAIN],a[igRF_.uri.utils.ComponentIndex.PORT])};
igRF_.uri.utils.getPathAndAfter=function(a){a=igRF_.uri.utils.split(a);return igRF_.uri.utils.buildFromEncodedParts(igRF_c,igRF_c,igRF_c,igRF_c,a[igRF_.uri.utils.ComponentIndex.PATH],a[igRF_.uri.utils.ComponentIndex.QUERY_DATA],a[igRF_.uri.utils.ComponentIndex.FRAGMENT])};igRF_.uri.utils.removeFragment=function(a){var b=a.indexOf("#");return b<0?a:a.substr(0,b)};
igRF_.uri.utils.haveSameDomain=function(a,b){a=igRF_.uri.utils.split(a);b=igRF_.uri.utils.split(b);return a[igRF_.uri.utils.ComponentIndex.DOMAIN]==b[igRF_.uri.utils.ComponentIndex.DOMAIN]&&a[igRF_.uri.utils.ComponentIndex.SCHEME]==b[igRF_.uri.utils.ComponentIndex.SCHEME]&&a[igRF_.uri.utils.ComponentIndex.PORT]==b[igRF_.uri.utils.ComponentIndex.PORT]};
igRF_.uri.utils.hh=function(a){if(igRF_.DEBUG&&(a.indexOf("#")>=0||a.indexOf("?")>=0))igRF_a(Error("goog.uri.utils: Fragment or query identifiers are not supported: ["+a+"]"))};igRF_.uri.utils.QueryValue=igRF_.typedef;igRF_.uri.utils.QueryArray=igRF_.typedef;igRF_.uri.utils.Pc=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");if(c>=0){a.push(b.substr(c));a[0]=b=b.substr(0,c)}c=b.indexOf("?");if(c<0)a[1]="?";else if(c==b.length-1)a[1]=undefined}return a.join("")};
igRF_.uri.utils.Ke=function(a,b,c){if(igRF_.isArray(b)){b=b;for(var d=0;d<b.length;d++)c.push("&",a,"=",igRF_.string.urlEncode(b[d]))}else b!=igRF_c&&c.push("&",a,"=",igRF_.string.urlEncode(b))};igRF_.uri.utils.Uc=function(a,b,c){igRF_.asserts.assert(Math.max(b.length-(c||0),0)%2==0,"goog.uri.utils: Key/value lists must be even in length.");for(c=c||0;c<b.length;c+=2)igRF_.uri.utils.Ke(b[c],b[c+1],a);return a};igRF_.uri.utils.buildQueryData=function(a,b){a=igRF_.uri.utils.Uc([],a,b);a[0]="";return a.join("")};
igRF_.uri.utils.Me=function(a,b){for(var c in b)igRF_.uri.utils.Ke(c,b[c],a);return a};igRF_.uri.utils.buildQueryDataFromMap=function(a){a=igRF_.uri.utils.Me([],a);a[0]="";return a.join("")};igRF_.uri.utils.appendParams=function(a){return igRF_.uri.utils.Pc(arguments.length==2?igRF_.uri.utils.Uc([a],arguments[1],0):igRF_.uri.utils.Uc([a],arguments,1))};igRF_.uri.utils.appendParamsFromMap=function(a,b){return igRF_.uri.utils.Pc(igRF_.uri.utils.Me([a],b))};
igRF_.uri.utils.appendParam=function(a,b,c){return igRF_.uri.utils.Pc([a,"&",b,"=",igRF_.string.urlEncode(c)])};igRF_.uri.utils.hc=function(a,b,c,d){b=b;for(var e=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var f=a.charCodeAt(b-1);if(f==igRF_.uri.utils.sb.AMPERSAND||f==igRF_.uri.utils.sb.QUESTION){f=a.charCodeAt(b+e);if(!f||f==igRF_.uri.utils.sb.EQUAL||f==igRF_.uri.utils.sb.AMPERSAND||f==igRF_.uri.utils.sb.HASH)return b}b+=e+1}return-1};igRF_.uri.utils.vc=/#|$/;
igRF_.uri.utils.hasParam=function(a,b){return igRF_.uri.utils.hc(a,0,b,a.search(igRF_.uri.utils.vc))>=0};igRF_.uri.utils.getParamValue=function(a,b){var c=a.search(igRF_.uri.utils.vc),d=igRF_.uri.utils.hc(a,0,b,c);if(d<0)return igRF_c;else{var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return igRF_.string.urlDecode(a.substr(d,e-d))}};
igRF_.uri.utils.getParamValues=function(a,b){for(var c=a.search(igRF_.uri.utils.vc),d=0,e,f=[];(e=igRF_.uri.utils.hc(a,d,b,c))>=0;){d=a.indexOf("&",e);if(d<0||d>c)d=c;e+=b.length+1;f.push(igRF_.string.urlDecode(a.substr(e,d-e)))}return f};igRF_.uri.utils.Ph=/[?&]($|#)/;
igRF_.uri.utils.removeParam=function(a,b){for(var c=a.search(igRF_.uri.utils.vc),d=0,e,f=[];(e=igRF_.uri.utils.hc(a,d,b,c))>=0;){f.push(a.substring(d,e));d=Math.min(a.indexOf("&",e)+1||c,c)}f.push(a.substr(d));return f.join("").replace(igRF_.uri.utils.Ph,"$1")};igRF_.uri.utils.setParam=function(a,b,c){return igRF_.uri.utils.appendParam(igRF_.uri.utils.removeParam(a,b),b,c)};
igRF_.uri.utils.appendPath=function(a,b){igRF_.uri.utils.hh(a);if(igRF_.string.endsWith(a,"/"))a=a.substr(0,a.length-1);if(igRF_.string.startsWith(b,"/"))b=b.substr(1);return igRF_.string.buildString(a,"/",b)};igRF_.uri.utils.StandardQueryParam={RANDOM:"zx"};igRF_.uri.utils.Vf=function(a){return igRF_.uri.utils.setParam(a,igRF_.uri.utils.StandardQueryParam.RANDOM,igRF_.string.getRandomString())};igRF_.Uri=function(a,b){var c;if(a instanceof igRF_.Uri){this.Ga(b==igRF_c?a.mf():b);this.Tb(a.rc());this.Ub(a.sc());this.Pb(a.yb());this.Sb(a.zb());this.Rb(a.gb());this.Lc(a.Ad().clone());this.Qb(a.jc())}else if(a&&(c=igRF_.uri.utils.split(String(a)))){this.Ga(!!b);this.Tb(c[igRF_.uri.utils.ComponentIndex.SCHEME]||"",igRF_b);this.Ub(c[igRF_.uri.utils.ComponentIndex.USER_INFO]||"",igRF_b);this.Pb(c[igRF_.uri.utils.ComponentIndex.DOMAIN]||"",igRF_b);this.Sb(c[igRF_.uri.utils.ComponentIndex.PORT]);
this.Rb(c[igRF_.uri.utils.ComponentIndex.PATH]||"",igRF_b);this.oe(c[igRF_.uri.utils.ComponentIndex.QUERY_DATA]||"",igRF_b);this.Qb(c[igRF_.uri.utils.ComponentIndex.FRAGMENT]||"",igRF_b)}else{this.Ga(!!b);this.z=new igRF_.Uri.QueryData(igRF_c,this,this.ka)}};igRF_.Uri.RANDOM_PARAM=igRF_.uri.utils.StandardQueryParam.RANDOM;igRF_.Uri.prototype.sa="";igRF_.Uri.prototype.Wa="";igRF_.Uri.prototype.Ma="";igRF_.Uri.prototype.Ua=igRF_c;igRF_.Uri.prototype.Ta="";igRF_.Uri.prototype.Na="";
igRF_.Uri.prototype.Lf=igRF_d;igRF_.Uri.prototype.ka=igRF_d;
igRF_.Uri.prototype.toString=function(){if(this.fa)return this.fa;var a=[];this.sa&&a.push(igRF_.Uri.xb(this.sa,igRF_.Uri.pg),":");if(this.Ma){a.push("//");this.Wa&&a.push(igRF_.Uri.xb(this.Wa,igRF_.Uri.pg),"@");a.push(igRF_.Uri.th(this.Ma));this.Ua!=igRF_c&&a.push(":",String(this.zb()))}this.Ta&&a.push(igRF_.Uri.xb(this.Ta,igRF_.Uri.Jh));var b=String(this.z);b&&a.push("?",b);this.Na&&a.push("#",igRF_.Uri.xb(this.Na,igRF_.Uri.Ih));return this.fa=a.join("")};
igRF_.Uri.prototype.resolve=function(a){var b=this.clone(),c=a.Df();if(c)b.Tb(a.rc());else c=a.Ef();if(c)b.Ub(a.sc());else c=a.Md();if(c)b.Pb(a.yb());else c=a.Bf();var d=a.gb();if(c)b.Sb(a.zb());else if(c=a.Nd()){if(d.charAt(0)!="/")if(this.Md()&&!this.Nd())d="/"+d;else{var e=b.gb().lastIndexOf("/");if(e!=-1)d=b.gb().substr(0,e+1)+d}d=igRF_.Uri.removeDotSegments(d)}if(c)b.Rb(d);else c=a.Cf();if(c)b.oe(a.ff());else c=a.Af();c&&b.Qb(a.jc());return b};
igRF_.Uri.prototype.clone=function(){return igRF_.Uri.create(this.sa,this.Wa,this.Ma,this.Ua,this.Ta,this.z.clone(),this.Na,this.ka)};igRF_.Uri.prototype.rc=function(){return this.sa};igRF_.Uri.prototype.Tb=function(a,b){this.ga();delete this.fa;if(this.sa=b?igRF_.Uri.bb(a):a)this.sa=this.sa.replace(/:$/,"");return this};igRF_.Uri.prototype.Df=function(){return!!this.sa};igRF_.Uri.prototype.sc=function(){return this.Wa};
igRF_.Uri.prototype.Ub=function(a,b){this.ga();delete this.fa;this.Wa=b?igRF_.Uri.bb(a):a;return this};igRF_.Uri.prototype.Ef=function(){return!!this.Wa};igRF_.Uri.prototype.yb=function(){return this.Ma};igRF_.Uri.prototype.Pb=function(a,b){this.ga();delete this.fa;this.Ma=b?igRF_.Uri.bb(a):a;return this};igRF_.Uri.prototype.Md=function(){return!!this.Ma};igRF_.Uri.prototype.zb=function(){return this.Ua};
igRF_.Uri.prototype.Sb=function(a){this.ga();delete this.fa;if(a){a=Number(a);if(isNaN(a)||a<0)igRF_a(Error("Bad port number "+a));this.Ua=a}else this.Ua=igRF_c;return this};igRF_.Uri.prototype.Bf=function(){return this.Ua!=igRF_c};igRF_.Uri.prototype.gb=function(){return this.Ta};igRF_.Uri.prototype.Rb=function(a,b){this.ga();delete this.fa;this.Ta=b?igRF_.Uri.bb(a):a;return this};igRF_.Uri.prototype.Nd=function(){return!!this.Ta};igRF_.Uri.prototype.Cf=function(){return this.z.toString()!==""};
igRF_.Uri.prototype.Lc=function(a,b){this.ga();delete this.fa;if(a instanceof igRF_.Uri.QueryData){this.z=a;this.z.ue=this;this.z.Ga(this.ka)}else{b||(a=igRF_.Uri.xb(a,igRF_.Uri.Kh));this.z=new igRF_.Uri.QueryData(a,this,this.ka)}return this};igRF_.Uri.prototype.oe=function(a,b){return this.Lc(a,b)};igRF_.Uri.prototype.ff=function(){return this.z.Qg()};igRF_.Uri.prototype.Ad=function(){return this.z};igRF_.Uri.prototype.Eg=function(a,b){this.ga();delete this.fa;this.z.set(a,b);return this};
igRF_.Uri.prototype.rf=function(a){return this.z.get(a)};igRF_.Uri.prototype.jc=function(){return this.Na};igRF_.Uri.prototype.Qb=function(a,b){this.ga();delete this.fa;this.Na=b?igRF_.Uri.bb(a):a;return this};igRF_.Uri.prototype.Af=function(){return!!this.Na};igRF_.Uri.prototype.Vf=function(){this.ga();this.Eg(igRF_.Uri.RANDOM_PARAM,igRF_.string.getRandomString());return this};igRF_.Uri.prototype.removeParameter=function(a){this.ga();this.z.remove(a);return this};igRF_.Uri.prototype.ga=function(){if(this.Lf)igRF_a(Error("Tried to modify a read-only Uri"))};
igRF_.Uri.prototype.Ga=function(a){this.ka=a;this.z&&this.z.Ga(a)};igRF_.Uri.prototype.mf=function(){return this.ka};igRF_.Uri.parse=function(a,b){return a instanceof igRF_.Uri?a.clone():new igRF_.Uri(a,b)};igRF_.Uri.create=function(a,b,c,d,e,f,g,h){h=new igRF_.Uri(igRF_c,h);a&&h.Tb(a);b&&h.Ub(b);c&&h.Pb(c);d&&h.Sb(d);e&&h.Rb(e);f&&h.Lc(f);g&&h.Qb(g);return h};igRF_.Uri.resolve=function(a,b){a instanceof igRF_.Uri||(a=igRF_.Uri.parse(a));b instanceof igRF_.Uri||(b=igRF_.Uri.parse(b));return a.resolve(b)};
igRF_.Uri.removeDotSegments=function(a){if(a==".."||a==".")return"";else if(!igRF_.string.contains(a,"./")&&!igRF_.string.contains(a,"/."))return a;else{var b=igRF_.string.startsWith(a,"/");a=a.split("/");for(var c=[],d=0;d<a.length;){var e=a[d++];if(e==".")b&&d==a.length&&c.push("");else if(e==".."){if(c.length>1||c.length==1&&c[0]!="")c.pop();b&&d==a.length&&c.push("")}else{c.push(e);b=igRF_b}}return c.join("/")}};igRF_.Uri.bb=function(a){return a?decodeURIComponent(a):""};
igRF_.Uri.th=function(a){if(igRF_.isString(a))return encodeURIComponent(a);return igRF_c};igRF_.Uri.sh=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;igRF_.Uri.xb=function(a,b){var c=igRF_c;if(igRF_.isString(a)){c=a;igRF_.Uri.sh.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,igRF_.Uri.rh)}return c};igRF_.Uri.rh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};igRF_.Uri.pg=/[#\/\?@]/g;igRF_.Uri.Jh=/[\#\?]/g;igRF_.Uri.Kh=/[\#\?@]/g;igRF_.Uri.Ih=/#/g;
igRF_.Uri.haveSameDomain=function(a,b){a=igRF_.uri.utils.split(a);b=igRF_.uri.utils.split(b);return a[igRF_.uri.utils.ComponentIndex.DOMAIN]==b[igRF_.uri.utils.ComponentIndex.DOMAIN]&&a[igRF_.uri.utils.ComponentIndex.PORT]==b[igRF_.uri.utils.ComponentIndex.PORT]};igRF_.Uri.QueryData=function(a,b,c){this.va=a||igRF_c;this.ue=b||igRF_c;this.ka=!!c};
igRF_.Uri.QueryData.prototype.ha=function(){if(!this.f){this.f=new igRF_.structs.Map;if(this.va)for(var a=this.va.split("&"),b=0;b<a.length;b++){var c=a[b].indexOf("="),d=igRF_c,e=igRF_c;if(c>=0){d=a[b].substring(0,c);e=a[b].substring(c+1)}else d=a[b];d=igRF_.string.urlDecode(d);d=this.Ea(d);this.add(d,e?igRF_.string.urlDecode(e):"")}}};
igRF_.Uri.QueryData.createFromMap=function(a,b,c){var d=igRF_.structs.l(a);if(typeof d=="undefined")igRF_a(Error("Keys are undefined"));return igRF_.Uri.QueryData.createFromKeysValues(d,igRF_.structs.j(a),b,c)};igRF_.Uri.QueryData.createFromKeysValues=function(a,b,c,d){if(a.length!=b.length)igRF_a(Error("Mismatched lengths for keys/values"));c=new igRF_.Uri.QueryData(igRF_c,c,d);for(d=0;d<a.length;d++)c.add(a[d],b[d]);return c};igRF_.Uri.QueryData.prototype.f=igRF_c;
igRF_.Uri.QueryData.prototype.b=igRF_c;igRF_.Uri.QueryData.Ia=igRF_c;igRF_.Uri.QueryData.prototype.ia=function(){this.ha();return this.b};igRF_.Uri.QueryData.prototype.add=function(a,b){this.ha();this.jb();a=this.Ea(a);if(this.na(a)){var c=this.f.get(a);igRF_.isArray(c)?c.push(b):this.f.set(a,[c,b])}else this.f.set(a,b);this.b++;return this};
igRF_.Uri.QueryData.prototype.remove=function(a){this.ha();a=this.Ea(a);if(this.f.na(a)){this.jb();var b=this.f.get(a);if(igRF_.isArray(b))this.b-=b.length;else this.b--;return this.f.remove(a)}return igRF_d};igRF_.Uri.QueryData.prototype.clear=function(){this.jb();this.f&&this.f.clear();this.b=0};igRF_.Uri.QueryData.prototype.p=function(){this.ha();return this.b==0};igRF_.Uri.QueryData.prototype.na=function(a){this.ha();a=this.Ea(a);return this.f.na(a)};
igRF_.Uri.QueryData.prototype.Ca=function(a){var b=this.j();return igRF_.array.contains(b,a)};igRF_.Uri.QueryData.prototype.l=function(){this.ha();for(var a=this.f.j(),b=this.f.l(),c=[],d=0;d<b.length;d++){var e=a[d];if(igRF_.isArray(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};
igRF_.Uri.QueryData.prototype.j=function(a){this.ha();if(a){a=this.Ea(a);if(this.na(a)){var b=this.f.get(a);if(igRF_.isArray(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.f.j();a=[];for(var c=0;c<b.length;c++){var d=b[c];igRF_.isArray(d)?igRF_.array.extend(a,d):a.push(d)}}return a};igRF_.Uri.QueryData.prototype.set=function(a,b){this.ha();this.jb();a=this.Ea(a);if(this.na(a)){var c=this.f.get(a);if(igRF_.isArray(c))this.b-=c.length;else this.b--}this.f.set(a,b);this.b++;return this};
igRF_.Uri.QueryData.prototype.get=function(a,b){this.ha();a=this.Ea(a);if(this.na(a)){a=this.f.get(a);return igRF_.isArray(a)?a[0]:a}else return b};
igRF_.Uri.QueryData.prototype.toString=function(){if(this.va)return this.va;if(!this.f)return"";for(var a=[],b=0,c=this.f.l(),d=0;d<c.length;d++){var e=c[d],f=igRF_.string.urlEncode(e);e=this.f.get(e);if(igRF_.isArray(e))for(var g=0;g<e.length;g++){b>0&&a.push("&");a.push(f,"=",igRF_.string.urlEncode(e[g]));b++}else{b>0&&a.push("&");a.push(f,"=",igRF_.string.urlEncode(e));b++}}return this.va=a.join("")};
igRF_.Uri.QueryData.prototype.Qg=function(){if(!this.Ia)this.Ia=igRF_.Uri.bb(this.toString());return this.Ia};igRF_.Uri.QueryData.prototype.jb=function(){delete this.Ia;delete this.va;this.ue&&delete this.ue.fa};igRF_.Uri.QueryData.prototype.clone=function(){var a=new igRF_.Uri.QueryData;if(this.Ia)a.Ia=this.Ia;if(this.va)a.va=this.va;if(this.f)a.f=this.f.clone();return a};igRF_.Uri.QueryData.prototype.Ea=function(a){a=String(a);if(this.ka)a=a.toLowerCase();return a};
igRF_.Uri.QueryData.prototype.Ga=function(a){var b=a&&!this.ka;if(b){this.ha();this.jb();igRF_.structs.forEach(this.f,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.ka=a};igRF_.Uri.QueryData.prototype.extend=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];igRF_.structs.forEach(b,function(c,d){this.add(d,c)},this)}};igRF_.finance={};igRF_.finance.autocomplete={};igRF_.finance.autocomplete.Matcher={};
(function(){var a=igRF_.finance.autocomplete;a.Matcher=function(b,c){this.Eh=b;this.Ah=c;this.Wf=function(){};this.$e="";if(c)this.$e="www.google."+this.uf(window.location.href);this.za=[];this.ub={};this.Hc()};a.Matcher.prototype.uf=function(b){b=new igRF_.Uri(b);b=b.rf("parent");return(b=igRF_.Uri.parse(b).yb().match(/google\.(.+)/i))&&b.length>1&&b[1]?b[1]:"com"};a.Matcher.prototype._clearCache=function(){this.ub={}};a.Matcher.prototype._DIVIDER="\u000c";a.Matcher.prototype.Hc=function(){this.He=
igRF_d;this.Ec=this.$b=""};a.Matcher.prototype.Gc=function(b,c,d){this.Wf=d;this.Ib=c;this.pf(b,c)};a.Matcher.prototype.xd=function(b){this.cachedPatternToken=this.cachedPatternToken||"";this.cachedPattern=this.cachedPattern||igRF_c;if(b=="")return igRF_c;if(b!=this.cachedPatternToken){var c=b.replace(/([\^*+\-\$\\\{\}\(\)\[\]\#?\.])/g,"\\$1");c=new RegExp("(.*?[\\s])??([.]?"+c+")(.*)","i");this.cachedPatternToken=b;this.cachedPattern={re:c,preTokenIndex:1,tokenIndex:2,postTokenIndex:3}}return this.cachedPattern};
a.Matcher.prototype.be=function(b){for(var c=this.xd(b),d=[],e=0;e<this.za.length;e++){var f=this.za[e];if(f.sugg)for(var g=1;g<f.sugg.length;++g)if(f.sugg[g].match(c.re)){d.push(f);break}if(d.length>=this.Ib)break}this.Wf(b,d)};a.Matcher.prototype.pf=function(b){if(b==""){this.Hc();this.za=[]}else if(b!=this.Ec)if(this.He&&b.substring(0,this.$b.length)==this.$b)this.za=this.ub[this.$b];else if(this.ub[b])this.za=this.ub[b];else{this.Hc();this.ng(b);this.Ec=b;return}this.Ec=b;this.be(b)};a.Matcher.prototype.ng=
function(b){if(b.length==0)this.za=[];else{var c=this.of(b),d=this;if(this.Ah){var e=function(g){d.Wd(b,g)};_IG_FetchContent("http://"+this.$e+c,e)}else{var f=igRF_E?new ActiveXObject(igRF_E):new XMLHttpRequest;igRF_G(f,c,function(){d.De(b,f)})}}};a.Matcher.prototype.of=function(b){return b="/finance/match?matchtype="+this.Eh+"&q="+escape(b)+"&basetkr="+escape(this.baseTicker)};a.Matcher.prototype.De=function(b,c){c.readyState==4&&c.status==200&&this.Wd(b,c.responseText)};a.Matcher.prototype.Wd=function(b,
c){try{if(b==this.Ec){var d=eval("("+c+")");this.za=[];for(c=0;c<d.matches.length;c++){var e=d.matches[c],f=e.e&&e.t?e.e+":"+e.t:e.t;e.matchValue=f&&f.length>0?f:e.n;e.toString=function(){return this.matchValue};this.za.push(e)}this.ub[b]=this.za;this.He=d.all;this.$b=b;this.be(b)}}catch(g){}}})();igRF_.finance.autocomplete.InputHandler={};(function(){var a=igRF_.finance.autocomplete;a.InputHandler=function(b,c,d){igRF_.ui.AutoComplete.InputHandler.call(this,b,c,d)};igRF_.inherits(igRF_.finance.autocomplete.InputHandler,igRF_.ui.AutoComplete.InputHandler)})();igRF_.finance.autocomplete.Renderer={};
(function(){var a=igRF_.finance.autocomplete;a.Renderer=function(b){this.render=igRF_c;this.Sa=b};igRF_.inherits(igRF_.finance.autocomplete.Renderer,igRF_.ui.AutoComplete.Renderer.CustomRenderer);a.Renderer.prototype.Lb=function(b,c,d){c=this.Sa.xd(c);if(!c||!c.re)d.innerHTML="";else{b=b.data;for(var e=["tick","cname","local","pinyin","isin","altname"],f=b.sugg[0].split(","),g="",h=igRF_d,i=1;i<b.sugg.length;++i){var j=e[f[i-1]-1];if(j=="cname"&&i!=b.sugg.length-1)j+="_w";j="<span class="+j+">";var k=
b.sugg[i],l=k.match(c.re);if(l){k=(l[1]||"")+"<b>"+l[2]+"</b>"+l[3];h=igRF_b}g+=j+" "+k+"</span>"}d.innerHTML=h?g:""}}})();igRF_.finance.autocomplete.AutoComplete={};igRF_f("google.finance.autocomplete");
(function(){function a(f,g){if(!igRF_.global.Db)igRF_.global.Db=[];f=new d.AutoComplete(f,g,igRF_b);e[g.id]=f;igRF_.global.Db.push(f)}function b(f,g){if(!igRF_.global.Db)igRF_.global.Db=[];f=new d.AutoComplete(f,g,igRF_b);f.qc().Jg(igRF_b);f.nf().Kg(igRF_b);f.ne.call(f,4);e[g.id]=f;igRF_.global.Db.push(f)}var c=igRF_e.global,d=igRF_.finance.autocomplete,e={};d.MATCH_PUBLIC="matchpublic";d.MATCH_ALL="matchall";d.MATCH_PORTFOLIO="matchportfolio";d.AutoComplete=function(f,g,h){this.Sa=new d.Matcher(f,
h);f=new d.Renderer(this.Sa);this.ra=new igRF_.ui.AutoComplete.Renderer(igRF_c,f,igRF_d,igRF_d);this.yc=new d.InputHandler(igRF_c,igRF_c,igRF_d);igRF_.ui.AutoComplete.call(this,this.Sa,this.ra,this.yc);this.yc.Qc(this);this.yc.Ya(g);this.ne.call(this,10);this.zg.call(this,igRF_d)};d.AutoComplete.inherits(igRF_.ui.AutoComplete);d.AutoComplete.prototype.qc=function(){return this.ra};d.AutoComplete.prototype.nf=function(){return this.yc};igRF_.exportProperty(c.google.finance,"InitAutoComplete",a);igRF_.exportProperty(c.google.finance,
"InitAutoCompleteTopAlign",b);igRF_.exportProperty(c.google.finance.autocomplete,"MATCH_PUBLIC",d.MATCH_PUBLIC);igRF_.exportProperty(c.google.finance.autocomplete,"MATCH_ALL",d.MATCH_ALL);igRF_.exportProperty(c.google.finance.autocomplete,"MATCH_PORTFOLIO",d.MATCH_PORTFOLIO)})();igRF_.finance.quote={};
(function(){var a=igRF_e.global.google.finance;a.OPEN="op";a.HIGH="hi";a.LOW="lo";a.SYMBOL="s";a.TICKER="t";a.EXCHANGE="e";a.LAST="l";a.VOLUME="vo";a.AVG_VOLUME="avvo";a.HIGH_52W="hi52";a.LOW_52W="lo52";a.CHANGE="c";a.CHANGE_PCT="cp";a.LAST_TRADE_TIME="ltt";a.LAST_TRADE_DATETIME="lt";a.LAST_TRADE_DATE="ltd";a.EXT_LAST="el";a.EXT_VOLUME="evo";a.EXT_CHANGE="ec";a.EXT_CHANGE_PCT="ecp";a.EXT_LAST_TRADE_TIME="elt";a.MARKET_CAP="mc";a.PE="pe";a.FORWARD_PE="fwpe";a.BETA="beta";a.EPS="eps"})();igRF_.finance.quote.DOMQuoteListener={};
(function(){var a=igRF_.finance.quote,b=igRF_e.global.google.finance;a.QUOTE_KEYS=[b.OPEN,b.HIGH,b.LOW,b.SYMBOL,b.EXCHANGE,b.LAST,b.VOLUME,b.CHANGE,b.CHANGE_PCT,b.TICKER,b.LAST_TRADE_TIME,b.LAST_TRADE_DATETIME,b.LAST_TRADE_DATE,b.EXT_LAST,b.EXT_VOLUME,b.EXT_CHANGE,b.EXT_CHANGE_PCT,b.EXT_LAST_TRADE_TIME,b.AVG_VOLUME,b.HIGH_52W,b.LOW_52W,b.MARKET_CAP,b.PE,b.FORWARD_PE,b.BETA,b.EPS];a.DOMQuoteListener=function(){this.Jb=igRF_c;this.Rd=[];this.Za={chg:"financelib_up",chr:"financelib_down"}};a.DOMQuoteListener.prototype.Bg=
function(c,d){this.Za.chg=c;this.Za.chr=d};a.DOMQuoteListener.prototype.Cg=function(c){this.Rd=c};a.DOMQuoteListener.prototype.Ne=function(c,d,e){var f=this.Jb[c];if(!f){f={};this.Jb[c]=f}c=f[d];if(!c){c=[];f[d]=c}c.push(e)};a.DOMQuoteListener.prototype.kf=function(c,d){return(c=this.Jb[c])?c[d]:igRF_c};a.DOMQuoteListener.prototype.lg=function(){if(!this.Jb){this.Jb={};if(document.getElementsByTagName)for(var c=document.getElementsByTagName("span"),d=0;d<c.length;++d){var e=c[d];if(e.id&&e.id.length>
2)for(var f=0;f<this.Rd.length;++f){var g=this.Rd[f];if(e.id.substring(0,g.length)==g){var h=e.id.substring(g.length+1);h&&this.Ne(g,h,e)}}}}};a.DOMQuoteListener.prototype.listen=function(c,d){this.lg();for(var e=0;e<a.QUOTE_KEYS.length;++e){var f=a.QUOTE_KEYS[e],g=c[f];if(g){var h=this.kf(d,f);if(h){var i=igRF_c,j=f==b.CHANGE||f==b.CHANGE_PCT,k=f==b.EXT_CHANGE||f==b.EXT_CHANGE_PCT;if(j||k){if(j&&c.ccol)i=this.Za[c.ccol];else if(k&&c.eccol)i=this.Za[c.eccol];if(!i&&g.length&&g.length>0)i="-"==g.charAt(0)?
this.Za.chr:this.Za.chg}if(f==b.CHANGE_PCT||f==b.EXT_CHANGE_PCT)g="("+g+"%)";for(f=0;f<h.length;++f)if(j=h[f]){if(i)j.className=i;j.innerHTML=g}}}}}})();igRF_.finance.quote.QuotePoller={};
(function(){function a(d,e){d="("+d.substring(d.indexOf("["))+")";try{var f=eval(d);if(igRF_.isObject(f))for(d=0;d<f.length;++d){var g=f[d],h=g[c.TICKER];if(h){var i=g[c.EXCHANGE];g[c.SYMBOL]=i?i+":"+h:h;var j=e.qe[g[c.SYMBOL]];j||(j=e.qe[h]);for(var k=0;k<e.v.length;++k)e.v[k](g,j)}}}catch(l){}}var b=igRF_.finance.quote,c=igRF_e.global.google.finance;b.QuotePoller=function(d){this.se=[];this.v=[];this.Xh=igRF_b;this.fc=this.La=igRF_c;this.Zd=d;this.$d=b.QuotePoller.getModuleSettings(d);this.qe=""};
b.QuotePoller.getModuleSettings=function(d){if(!igRF_.isDefAndNotNull(d))for(var e in c.modules)if(igRF_.isDefAndNotNull(c.modules[e].token)){d=e;break}e={token:"",synd:"",msh:""};if(igRF_.isDefAndNotNull(d)&&igRF_.isDefAndNotNull(c.modules[d]))e=c.modules[d];return e};b.QuotePoller.prototype.Zb=function(d){igRF_.array.contains(this.v,d)||this.v.push(d)};b.QuotePoller.prototype.Fc=function(d){igRF_.array.remove(this.v,d)};b.QuotePoller.prototype.cd=function(d){if(this.fc!=igRF_c){this.Fc(this.fc);
this.La=igRF_c}if(this.La==igRF_c){this.La=new igRF_.finance.quote.DOMQuoteListener;this.fc=igRF_.bind(this.La.listen,this.La);var e=igRF_.structs.j(d);this.La.Cg(e);igRF_.isDefAndNotNull(this.Zd)&&this.La.Bg("financelib_up financelib_up"+this.Zd,"financelib_down financelib_down"+this.Zd)}this.qe=d;this.Zb(this.fc)};b.QuotePoller.prototype.Kf=function(d){return d=!this.se||this.se.join(",")!=d.join(",")};b.QuotePoller.prototype.Bd=function(d,e,f){e||(e="en");f||(f="us");igRF_.isArray(d)||(d=[d.toString()]);
if(igRF_.object.ia(d)>0){var g=this.Kf(d),h=d.join(",");this.se=d;d=[c.getApiHost(),"/finance/api?q=",h,g?"&infotype=infoquoteall":"",c.isNewRequest(h)?"":"&auto=1","&client=ig","&token=",this.$d.token,"&synd=",this.$d.synd,"&msh=",this.$d.locked_domain,"&hl=",e,"&gl=",f];_IG_FetchContent(d.join(""),_IG_Callback(a,this,g),{refreshInterval:5})}}})();igRF_f("google.finance");
(function(){function a(f){var g=igRF_d,h=igRF_.now();if(f!=e.query&&h-e.time>1E3){e.query=f;e.time=h;g=igRF_b}return g}function b(){return c.host?c.host:"http://www.google.com"}var c=igRF_e.global.google.finance,d={},e={query:"",time:0};igRF_.exportSymbol("google.finance.Quote",igRF_.finance.quote.QuotePoller);igRF_.exportSymbol("google.finance.Quote.prototype.enableDomUpdates",igRF_.finance.quote.QuotePoller.prototype.cd);igRF_.exportSymbol("google.finance.Quote.prototype.getQuotes",igRF_.finance.quote.QuotePoller.prototype.Bd);
igRF_.exportSymbol("google.finance.Quote.prototype.addListener",igRF_.finance.quote.QuotePoller.prototype.Zb);igRF_.exportSymbol("google.finance.Quote.prototype.removeListener",igRF_.finance.quote.QuotePoller.prototype.Fc);igRF_.exportSymbol("google.finance.isNewRequest",a);igRF_.exportSymbol("google.finance.getApiHost",b);igRF_.exportProperty(c,"modules",d)})();
