﻿// please keep these lines on when you copy the source  // made by: Nicolas - http://www.javascript-page.com;
var current = 0
var x = 0
var speed = 70
var speed2 = 2000
function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}}
typ = new initArray(3);
typ[0]='/cn/html/product/securities/ipo.aspx:#ED2123:最新IPO认购：一化控股(2121)';
typ[1]='/cn/html/product/securities/ipo.aspx:#ED2123:最新IPO认购：中国休闲食品(1262)';
typ[2]='/cn/html/product/securities/ipo.aspx:#ED2123:最新IPO认购：时代集团(1023)';
function typewrite() {
if(typ.length>0){
var m = typ[current];
document.getElementById('typewriter').href = m.substring(0,m.indexOf(':')); 
m = m.substring(m.indexOf(':') + 1); 
document.getElementById('typewriter').style.color = m.substring(0,m.indexOf(':'));  
m = m.substring(m.indexOf(':') + 1);
m = m.replace('&','and');
document.getElementById('typewriter').innerHTML = m.substring(0, x++) + '_';
if (x == m.length + 1) {
x = 0 
current++
if (current > typ.length - 1) {
current = 0 
}
setTimeout('typewrite()', speed2)
}
else { 
setTimeout('typewrite()', speed)
}}}

