function historyClass(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11){
this.current_route_number=0;
this.on_submit=function(_12){
if(_12&&_12.history){
var _13="";
for(var i=0;i<_2.length;i++){
_13+=_2[i].join("\t")+"\n";
}
_12.history.value=_13;
}
return true;
};
this.render=function(_15){
var i,j,_18,_19,_1a,_1b,_1c,_1d,_1e,_1f,_20,_21;
var _22="";
for(i=0;i<_2.length;i++){
_1a=_2[i][0];
_18=_2[i][1];
_1e=_2[i][2];
_1f=_2[i][3];
_1b=_2[i][4].split(",");
_1c="";
for(j=0;j<_1b.length;j++){
_1c+="<img src=\""+_5+"/i2/"+_1b[j]+".gif\" border=\"0\" style=\"vertical-align:middle;\"> ";
}
_1d="#ffffff";
if(_1a==_3){
this.current_route_number=_18;
_1d="#CCFFFF";
}
_20="cursor:pointer;\" onClick=\"var url='"+_4+"?action=route&route_id="+_1a+"'; if(post_request(url)) {window.location = url;}";
_21=i<_2.length-1?" border-bottom:1px solid #E4E4E6;":"";
_22+="<div id=\""+_1a+"_r\" style=\"background:#ffffff; background-color:#ffffff; bgcolor:#ffffff;"+_21+" margin:0; padding:2px 0 2px 0;\">";
_22+="<div style=\"font-size:12px; background:"+_1d+"; background-color:"+_1d+"; bgcolor:"+_1d+"; margin:0; padding:2px;\">";
_22+="<table width=\"608\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr>";
_22+="<td align=\"left\" valign=\"middle\" width=\"96\" style=\"font:bold 13px Arial, Verdana; color:#4960AC; "+_20+"\">"+_b+" "+_18+"</td>";
_22+="<td align=\"left\" valign=\"middle\" width=\"202\" style=\""+_20+"\">"+(_1c!=""?_1c:"&nbsp;")+"</td>";
_22+="<td align=\"left\" valign=\"middle\" width=\"125\" style=\""+_20+"\">"+(_1e>0?"<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td><img src=\""+_5+"/i2/walk.gif\" border=\"0\"></td><td>&nbsp;</td><td>"+this.verb_time(_1e)+"</td></tr></table>":"&nbsp;")+"</td>";
_22+="<td align=\"left\" valign=\"middle\" width=\"125\" style=\""+_20+"\">"+(_1f>0?this.verb_time(_1f):"&nbsp;")+"</td>";
_22+="<td align=\"center\" valign=\"middle\" width=\"60\"><a href=\"#\" onClick=\""+_1+".remove('"+_1a+"'); return false;\"><img src=\""+_5+"/img/i14.gif\" width=\"13\" height=\"10\" border=\"0\" alt=\""+_c+" "+_18+"\"></a></td>";
_22+="</tr></table>";
_22+="</div>";
_22+="</div>"+"\n";
}
if(_22!=""){
if(_15==undefined){
var _23="";
_23+="<div id=\""+_1+"_caption\">";
_23+="<div class=\"c1\">"+_6+"</div>";
_23+="<div class=\"b1\" style=\"padding:9px 8px 5px 8px;\">";
_23+="<div style=\"font-size:12px; background:#ffffff; background-color:#ffffff; bgcolor:#ffffff; margin:0 0 0 0; padding:0px 2px 2px 2px;\">";
_23+="<table width=\"608\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr>";
_23+="<td align=\"left\" valign=\"top\" width=\"96\">&nbsp;</td>";
_23+="<td align=\"left\" valign=\"top\" width=\"202\" style=\"font-size:11px; color:#383838; border-bottom:1px solid #E4E4E6;\">"+_7+"</td>";
_23+="<td align=\"left\" valign=\"top\" width=\"125\" style=\"font-size:11px; color:#383838; border-bottom:1px solid #E4E4E6;\">"+_8+"</td>";
_23+="<td align=\"left\" valign=\"top\" width=\"125\" style=\"font-size:11px; color:#383838; border-bottom:1px solid #E4E4E6;\">"+_9+"</td>";
_23+="<td align=\"center\" valign=\"top\" width=\"60\" style=\"font-size:11px; color:#383838; border-bottom:1px solid #E4E4E6;\">"+_a+"</td>";
_23+="</tr></table>";
_23+="</div>"+"\n";
document.write(_23+_22+"</div></div>");
}else{
var _23="";
_23+="<div id=\""+_1+"_caption\">";
_23+="<div style=\"padding:8px 0px 4px 8px; font-size: 15px; color:#737373;\"><b>"+_6+"</b><span style=\"font-size: 12px;\">&nbsp;&nbsp;-&nbsp;&nbsp;Alternate&nbsp;route?&nbsp;Try&nbsp;<a style=\"cursor:pointer;\" onclick=\"gotoAnchor('Reroute');\">reroute</a>,&nbsp;<a style=\"cursor:pointer;\" onclick=\"gotoAnchor('Reroute');\">use&nbsp;another&nbsp;stop</a>,&nbsp;or&nbsp;<a style=\"cursor:pointer;\" onclick=\"gotoAnchor('Options');\">search&nbsp;with&nbsp;other&nbsp;options</a></span></div>";
_23+="<div style=\"padding:0px 8px 8px;\">";
_23+="<div style=\"font-size:12px; background:#ffffff; background-color:#ffffff; bgcolor:#ffffff; margin:0 0 0 0; padding:0px 2px 2px 2px;\">";
_23+="<table width=\"608\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr>";
_23+="<td align=\"left\" valign=\"top\" width=\"96\">&nbsp;</td>";
_23+="<td align=\"left\" valign=\"top\" width=\"202\" style=\"font-size:11px; color:#383838; border-bottom:1px solid #E4E4E6;\">"+_7+"</td>";
_23+="<td align=\"left\" valign=\"top\" width=\"125\" style=\"font-size:11px; color:#383838; border-bottom:1px solid #E4E4E6;\">"+_8+"</td>";
_23+="<td align=\"left\" valign=\"top\" width=\"125\" style=\"font-size:11px; color:#383838; border-bottom:1px solid #E4E4E6;\">"+_9+"</td>";
_23+="<td align=\"center\" valign=\"top\" width=\"60\" style=\"font-size:11px; color:#383838; border-bottom:1px solid #E4E4E6;\">"+_a+"</td>";
_23+="</tr></table>";
_23+="</div>"+"\n";
document.write(_23+_22+"</div></div>");
}
}
};
this.remove=function(_24){
var div;
if(div=document.getElementById(_24+"_r")){
div.style.display="none";
}
for(var i=0;i<_2.length;i++){
if(_2[i][0]==_24){
_2.splice(i--,1);
}
}
if(_2.length==0){
if(div=document.getElementById(_1+"_caption")){
div.style.display="none";
}
}
};
this.verb_time=function(_27){
var _28=Math.floor(_27/3600);
_27-=_28*3600;
var _29=Math.floor(_27/60);
_27-=_29*60;
if(_27>=30){
_29++;
}
if(_29==60){
_28++;
_29=0;
}
_27="";
if(_28>0){
_27+=_28==1?_28+" "+_d+" ":_28+" "+_e+" ";
}
_27+=_29+(_29==1?" "+_f:" "+_10);
return _27;
};
};


