function setBikeOptionsSelectListDefault(A,B){if(true==document.getElementById("bicycleOptionsRequired").checked){document.getElementById("bikeOptions").style.display="block";
var C=document.getElementById("bikePreference");
setBikeOptions(A,B,C.options[C.selectedIndex].value)
}else{document.getElementById("bikeOptions").style.display="none"
}}function setDrivingOptions(){if(true==document.getElementById("drive").checked||true==document.getElementById("driveToTransit").checked){document.getElementById("drivingOptions").style.display="inline"
}else{document.getElementById("drivingOptions").style.display="none"
}}function setBikeOptions(F,E,D){var B=document.getElementById("bikePreference");
if(B.length==3){B.remove(B.length-1)
}if(B.length==2){B.remove(B.length-1)
}if(document.getElementById("bus").checked==true){B.options[B.options.length]=new Option(E,"102")
}if(document.getElementById("train").checked==true){if(document.getElementById("bus").checked==false){B.options[B.options.length]=new Option(E,"102")
}B.options[B.options.length]=new Option(F,"101")
}for(var A=0;
A<B.options.length;
A++){var C=B.options[A];
if(C.value==D){C.selected=true
}}}function setOrigDest(){var A=location.search.substring(1).split("+").join(" ");
if(getParm(A,"origAddress")!=""){document.tripPlan.origAddress.value=getParm(A,"origAddress")
}if(getParm(A,"origCity")!=""){document.tripPlan.origCity.value=getParm(A,"origCity")
}if(getParm(A,"destAddress")!=""){document.tripPlan.destAddress.value=getParm(A,"destAddress")
}if(getParm(A,"destCity")!=""){document.tripPlan.destCity.value=getParm(A,"destCity")
}}function fixit(F){F=F.toLowerCase();
var D=F.split(" "),C,B;
for(C=0;
C<D.length;
C++){D[C]=(D[C].substring(0,1)).toUpperCase()+D[C].substring(1);
if(D[C].indexOf(".")!=-1||D[C].indexOf("-")!=-1||D[C].indexOf("/")!=-1){var A=D[C],E="";
for(B=0;
B<A.length;
B++){switch(A.charAt(B)){case".":E=E+"."+A.charAt(++B).toUpperCase();
break;
case"-":E=E+"-"+A.charAt(++B).toUpperCase();
break;
case"/":E=E+"/"+A.charAt(++B).toUpperCase();
break;
default:E=E+A.charAt(B);
break
}}D[C]=E
}}return D.join(" ")
}var xmlHttpRequest;
function loadData(B,A){if(arguments.length>2&&jQuery.isFunction(arguments[2])){var D=arguments[2]
}try{xmlHttpRequest=new XMLHttpRequest()
}catch(C){try{xmlHttpRequest=new ActiveXObject("Msxml2.XMLHTTP")
}catch(C){try{xmlHttpRequest=new ActiveXObject("Microsoft.XMLHTTP")
}catch(C){alert("Your browser is not supported.");
return false
}}}try{xmlHttpRequest.open("GET",B,true);
xmlHttpRequest.onreadystatechange=function(){processRequestChange(A,D)
};
xmlHttpRequest.send(null)
}catch(C){return false
}}function clearList(A){while(A.length>0){A.remove(0)
}}function addElementToList(E,D,B){var C=document.createElement("option"),A=document.createTextNode(B);
C.value=D;
C.appendChild(A);
E.appendChild(C)
}function openWindow(D,B,C,A){LeftPosition=(screen.width)?(screen.width-B)/2:100;
TopPosition=(screen.height)?(screen.height-C)/2:100;
settings="width="+B+",height="+C+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+A+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
return window.open(D,"pop",settings)
}function printing(){document.getElementById("printLink").style.display="none";
window.print();
document.getElementById("printLink").style.display=""
}function closePage(){document.getElementById("printLink").style.display="none";
self.close();
document.getElementById("printLink").style.display=""
}function getParm(C,D){var B=C.indexOf(D+"=");
if(B>-1){B=B+D.length+1;
var A=C.indexOf("&",B);
if(-1==A){A=C.length
}return unescape(C.substring(B,A))
}return""
}function changecss(G,C,F){var E=false,A;
if(document.all){A="rules"
}else{if(document.getElementById){A="cssRules"
}}for(var B=0;
B<document.styleSheets.length;
B++){for(var D=0;
D<document.styleSheets[B][A].length;
D++){if(document.styleSheets[B][A][D].selectorText==G){if(document.styleSheets[B][A][D].style[C]){document.styleSheets[B][A][D].style[C]=F;
E=true;
break
}}}if(!E){if(document.styleSheets[B].insertRule){document.styleSheets[B].insertRule(G+" { "+C+": "+F+"; }",document.styleSheets[B][A].length)
}else{if(document.styleSheets[B].addRule){document.styleSheets[B].addRule(G,C+": "+F+";")
}}}}};