function onClickEditProfile(){
var _1=document.getElementById("epAboutMe").value;
var _2=document.getElementById("epWebPage").value;
if(_2.indexOf("://")==-1&&_2.length>0){
_2="http://"+_2;
}
var _3=document.getElementsByName("epTripType");
var _4="";
for(var i=0;i<_3.length/2;i++){
if(_3[i].checked){
_4+="&tripType"+_3[i].value+"=1";
}
}
callAjaxPage("/src/server/ajax/profileServices.php","action=editProfile&aboutMe="+encodeURIComponent(_1)+"&webPage="+encodeURIComponent(_2)+_4);
}
function cancelStatus(){
var _6=document.getElementById("enterStatusDiv");
_6.style.display="none";
originalStatus=document.getElementById("statusTextHereDiv").innerHTML;
if((originalStatus=="")||(originalStatus=="is ")){
var _7=document.getElementById("noStatusDiv");
_7.style.display="block";
}else{
var _8=document.getElementById("myStatusDiv");
_8.style.display="block";
}
document.getElementById("myStatusUpdate").value=originalStatus;
}
function setStatus(_9){
var _a=document.getElementById("myStatusUpdate");
if(_9==null){
_9=_a.value;
}else{
_a.value=_9;
}
document.getElementById("statusTextHereDiv").innerHTML=_9;
var _b=document.getElementById("profileStatusTime");
_b.innerHTML="(just updated)";
var _c=document.getElementById("myStatusDiv");
if(_9==""||_9=="is "){
_9="is ";
var _d=document.getElementById("noStatusDiv");
_d.style.display="block";
_c.style.display="none";
}else{
_c.style.display="block";
}
var _e=document.getElementById("enterStatusDiv");
_e.style.display="none";
callAjaxPage("/src/server/ajax/statusServices.php","actionName=setStatus&id=&myStatus="+encodeURIComponent(_9));
}
function editStatus(){
var _f=document.getElementById("noStatusDiv");
_f.style.display="none";
var _10=document.getElementById("myStatusDiv");
_10.style.display="none";
var _11=document.getElementById("enterStatusDiv");
_11.style.display="block";
var _12=document.getElementById("myStatusUpdate");
_12.focus();
_12.select();
}
function setCityNameToSentence(_13){
var _14=document.getElementById(_13+"CitySelect");
if(_14==null){
return;
}
var _15=_14.options[_14.selectedIndex];
var _16=document.getElementById(_13+"WhereAreYou");
if(_16!=null){
_16.innerHTML=_15.innerHTML;
}
}
function pulsateTripRecord(){
pulsateDiv("tripRecordReminder");
setTimeout("fadeTripReminderIntoStatus()",7000);
}
function fadeTripReminderIntoStatus(){
var x=toggleDivWithEffects("tripRecordReminder");
setTimeout(displayWholeStatusDiv,1000);
}
function displayWholeStatusDiv(){
document.getElementById("wholeStatusDiv").style.display="block";
}
function expandFold(_18){
var _19=document.getElementById("expandFold"+_18);
if(_19==null){
return;
}
var _1a=document.getElementById(_18+"Children");
if(_19.style.backgroundImage.indexOf("minus")!=-1){
_1a.style.display="none";
if(_19.style.backgroundImage.indexOf("bottom")!=-1){
_19.style.backgroundImage="url(/img/ui/plusbottom.gif)";
}else{
_19.style.backgroundImage="url(/img/ui/plus.gif)";
}
}else{
_1a.style.display="block";
if(_19.style.backgroundImage.indexOf("bottom")!=-1){
_19.style.backgroundImage="url(/img/ui/minusbottom.gif)";
}else{
_19.style.backgroundImage="url(/img/ui/minus.gif)";
}
}
}
function handleAcceptFriendship(_1b){
var _1c=_1b["friendUrlId"];
window.location.href="/user/"+_1c;
}
function handleSetTrip(_1d){
if(_1d["error"]){
alert(_1d["errorStr"]);
return;
}
ttReload("lastAction=tripSet"+"&id="+_1d["id"]+"&add="+_1d["add"]);
}
function handleSetTripRecord(_1e){
if(_1e["error"]){
alert(_1e["errorStr"]);
return;
}
ttReload("lastAction=tripRecordSet"+"&id="+_1e["id"]+"&add="+_1e["add"]);
}
function handleSetStatus(_1f){
if(_1f["error"]){
alert(_1f["errorStr"]);
return;
}
var _20=document.getElementById("SetStatus"+_1f["id"]+"Widget");
if(_20!=null){
_20.style.display="none";
ttReload("lastAction=statusSet"+"&id="+_1f["id"]);
}
}
function handleSetBlog(_21){
if(_21["error"]){
alert(_21["errorStr"]);
return;
}
ttReload("lastAction=blogSet"+"&id="+_21["id"]+"&add="+_21["add"]);
}
function blogBodyLessText(id,len){
var _24=document.getElementById("Blog"+id+"BodyText");
var _25=document.getElementById("Blog"+id+"BodyMoreLink");
var _26=document.getElementById("Blog"+id+"BodyLessLink");
_24.innerHTML=_24.innerHTML.substr(0,len);
_25.style.display="inline";
_26.style.display="none";
}
function handleGetBlog(_27){
var _28=document.getElementById("Blog"+_27["id"]+"BodyText");
var _29=document.getElementById("Blog"+_27["id"]+"BodyMoreLink");
var _2a=document.getElementById("Blog"+_27["id"]+"BodyLessLink");
_28.innerHTML=_27["blogBody"];
_29.style.display="none";
_2a.style.display="inline";
}
function onChangeSetTripDate(id,_2c){
if(_2c=="FromDate"){
var _2d=document.getElementById("tripSet"+id+"FromDate");
_2d.focus();
setTripDateChangeText("tripSet"+id+"FromDate","tripSet"+id+"DepartLabel","I left","I'm leaving");
openDateChangeDecisionDiv("tripSet"+id,"FromDate","ToDate");
var _2e=_2d.value;
var _2f=calcTimeForTripOtherDate("tripSet"+id+"FromDate","tripSet"+id+"ToDate");
}else{
var _30=document.getElementById("tripSet"+id+"ToDate");
_30.focus();
setTripDateChangeText("tripSet"+id+"ToDate","tripSet"+id+"ToDateLabel","and came back home on","and will be back home on");
setTripDateChangeText("tripSet"+id+"ToDate","tripSet"+id+"NotComingBackText","did not come back to","Not coming back to");
openDateChangeDecisionDiv("tripSet"+id,"ToDate","FromDate");
var _2f=_30.value;
var _2e=calcTimeForTripOtherDate("tripSet"+id+"ToDate","tripSet"+id+"FromDate");
}
var _31=document.getElementById("tripSet"+id+"DateChangeDecisionDates1");
_31.innerHTML=_2e+"-"+_2f;
_31=document.getElementById("tripSet"+id+"DateChangeDecisionDates2");
_31.innerHTML=_2e+"-"+_2f;
}
function calcTimeForTripOtherDate(_32,_33){
var _34=document.getElementById(_32);
var _35=document.getElementById(_33);
var _36=_34.getAttribute("origValue");
if(_36==""){
return;
}
var _37=_36.split("/");
var _38=new Date(_37[2],_37[1]-1,_37[0]);
if(_34.value==""){
return;
}
var _37=_34.value.split("/");
var _39=new Date(_37[2],_37[1]-1,_37[0]);
var _3a=_39.getTime()-_38.getTime();
var _3b=_35.getAttribute("origValue");
if(_3b==""){
return;
}
var _37=_3b.split("/");
var _3c=new Date(_37[2],_37[1]-1,_37[0]);
var _3d=new Date();
_3d.setTime(_3c.getTime()+_3a);
var day=_3d.getDate();
if(day<10){
day="0"+day;
}
var _3f=_3d.getMonth()+1;
if(_3f<10){
_3f="0"+_3f;
}
return day+"/"+_3f+"/"+(_3d.getYear()+1900);
}
function setTripDateChangeText(_40,_41,_42,_43){
var _44=document.getElementById(_41);
if(_44==null){
return;
}
var _45=document.getElementById(_40);
if(_45.value==""){
_44.innerHTML=_43;
return;
}
var _46=new Date();
var _47=_46.getDate();
var _48=_46.getMonth()+1;
var _49=_46.getFullYear();
var _4a=_45.value.split("/");
var _4b=parseInt(_4a[0]);
var _4c=parseInt(_4a[1]);
var _4d=parseInt(_4a[2]);
if(_4d<_49||(_4d==_49&&_4c<_48)||(_4d==_49&&_4c==_48&&_4b<_47)){
_44.innerHTML=_42;
}else{
_44.innerHTML=_43;
}
}
function openDateChangeDecisionDiv(_4e,_4f,_50){
var div=document.getElementById(_4e+"DateChangeDecisionDiv");
div.style.display="block";
var CO=document.getElementById(_4e+"dateChangeDecisionCO");
CO.checked=true;
CO.onclick=function(){
var _53=document.getElementById(_4e+_50);
_53.value=_53.getAttribute("origValue");
return true;
};
var SW=document.getElementById(_4e+"dateChangeDecisionSW");
SW.onclick=function(){
var _55=document.getElementById(_4e+_50);
_55.value=calcTimeForTripOtherDate(_4e+_4f,_4e+_50);
return true;
};
var ST=document.getElementById(_4e+"dateChangeDecisionST");
ST.onclick=function(){
var _57=document.getElementById(_4e+_50);
_57.value=calcTimeForTripOtherDate(_4e+_4f,_4e+_50);
return true;
};
}
function runDatePickerInputTextOnClick(){
var _58=document.getElementById(this._relative);
_58.onchange();
}

function callAjaxPage(_1,_2){
var _3=this;
var _4=zXmlHttp.createRequest();
_4.onreadystatechange=function(){
if(_4.readyState==4){
if((_4.status==200)||(_4.status==0)){
var _5=eval("("+_4.responseText+")");
if(_5["sessionNotOk"]){
alert("Page as been inactive for too long.\nPress OK to start over...");
ttReload("");
}
var _6=document.getElementById("ajaxLoader");
if(_6!=null){
_6.style.visibility="hidden";
}
switch(_5.actionName){
case "emailCreds":
forgotPasswordResponse(_5);
break;
case "getTable":
replaceTable(_5);
break;
case "ajaxFetchMail":
onAjaxFetchMailResponse(_5);
break;
case "registerGetCountryValues":
onRegisterGetCountryValuesResponse(_5);
break;
case "locationChooserGetCountryValues":
onLocationChooserGetCountryValuesResponse(_5);
break;
case "ajaxGetStateValues":
onGetStateValuesResponse(_5);
break;
case "getWeather":
onGetWeatherResponse(_5);
break;
case "ajaxRegister":
handleRegisterPageResponse(_5);
break;
case "composeMessage":
alert("Your message has been sent");
break;
case "replyToMessage":
alert("Your message has been sent");
break;
case "sendMessage":
alert("Your message has been sent");
break;
case "inviteFriends":
alert("Success! you can now invite more friends to TripTouch if you wish");
ttReload("");
break;
case "valueValidation":
handleValueValidationResponse(_5);
break;
case "acceptFriendship":
handleAcceptFriendship(_5);
break;
case "setTrip":
handleSetTrip(_5);
break;
case "setTripRecord":
handleSetTripRecord(_5);
break;
case "setStatus":
handleSetStatus(_5);
break;
case "setBlog":
handleSetBlog(_5);
break;
case "getBlog":
handleGetBlog(_5);
break;
case "snsUpdateShareStatus":
handleUpdateSNShare(_5);
break;
case "runSql":
onRunSqlResponse(_5);
break;
case "editProfile":
if(_5["errMsg"]!=null){
alert(_5["errMsg"]);
}
case "resizeMap":
case "deleteLocation":
case "deletePhoto":
ttReload("");
return;
}
}else{
alert("There was an error: ( callAjaxPage - "+_4.status+") "+_4.statusText+". please let us know - info@triptouch.com");
}
}
};
if(_1!="/src/server/ajax/ajaxFetchMail.php"){
var _7=document.getElementById("ajaxLoader");
if(_7!=null){
_7.style.visibility="visible";
}
}
_4.open("POST",_1,true);
_4.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_4.send(_2);
}
function showSubNav(_8){
var _9=document.getElementById("SubNav"+_8);
var _a=document.getElementById("NavLink"+_8);
_a.className="navSelected";
_9.style.display="block";
}
function hideSubNav(_b){
var _c=document.getElementById("SubNav"+_b);
var _d=document.getElementById("NavLink"+_b);
_d.className="nav";
_c.style.display="none";
}
function ttReload(_e){
var _f="";
_f+=getUrlParam("uid");
_f+=getUrlParam("trip");
_f+=getUrlParam("urlId");
_f=_f.replace(/&/,"?");
window.location.href=unescape(window.location.pathname+_f);
}
function getUrlParam(_10){
_10=_10.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
var _11="[\\?&]"+_10+"=([^&#]*)";
var _12=new RegExp(_11);
var _13=_12.exec(window.location.href);
if(_13==null){
return "";
}
return "&"+_10+"="+_13[1];
}
function isdefined(_14){
return (typeof (window[_14])=="undefined")?false:true;
}
function isObjDefined(obj){
if(typeof (obj)!="undefined"){
return true;
}else{
return false;
}
}
function tabButtonClicked(_16,_17,_18){
for(var i=0;i<_16;i++){
divTemp=document.getElementById("Div_Tab_"+_17+(i+1));
buttonTemp=document.getElementById("Button_"+_17+(i+1));
if((divTemp==null)||(buttonTemp==null)){
return;
}
if(_18-1==i){
divTemp.className="";
buttonTemp.className="ttButton bluettButton";
}else{
divTemp.className="hidden_tab";
buttonTemp.className="ttButton";
}
}
return false;
}
function weatherUnitChange(_1a,_1b){
var _1c="dummy=1";
if(_1a==0){
_1c+="&unit=C";
}else{
_1c+="&unit=F";
}
_1c+="&locId="+_1b;
callAjaxPage("/src/server/ajax/getWeather.php",_1c);
}
function onGetWeatherResponse(_1d){
var _1e=document.getElementById("Div_WeatherD");
_1e.innerHTML=_1d.text;
}
function focusOn(_1f){
var _20=document.getElementById(_1f);
_20.focus();
}
function populateSelectByString(_21,_22){
var _23=document.getElementById(_21);
if(_23.length==0){
return 0;
}
var _24=_23.options[0].value;
if(_22!=0){
_24=_22;
}
var _25=_23.options[0].text;
var _26=_25.split(":");
_23.length=0;
var res=1;
for(var i=0;i<_26.length-1;i+=2){
var _29=document.createElement("OPTION");
_29.value=_26[i];
_29.innerHTML=_26[i+1];
_23.appendChild(_29);
if(_29.value==_24){
_29.setAttribute("selected",true);
_29.selected=true;
}
}
return res;
}
function populateSelectWithNumberRange(_2a,_2b,to){
var _2d=document.getElementById(_2a);
for(var i=_2b;i<=to;i++){
var _2f=document.createElement("OPTION");
_2f.value=i;
_2f.innerHTML=i;
_2d.appendChild(_2f);
}
}
function replaceTable(_30){
var div=document.getElementById(_30["containerDivName"]);
div.innerHTML=_30["html"];
}
function handleValueValidationResponse(_32){
var _33=document.getElementById(_32["attrId"]);
if(_32["errMsgElemId"]!=""){
var _34=document.getElementById(_32["errMsgElemId"]);
}
if(_32["valueIsOk"]){
_33.isValid=true;
if(_34!=null){
_34.innerHTML="&nbsp;";
}
}else{
_33.isValid=false;
if(_34!=null){
_34.innerHTML="&nbsp;"+_32["errorStr"];
}
}
var i=0;
}
function renameWidget(_36,_37){
var _38=document.getElementById(_36);
var _39=_38.getElementsByTagName("h1")[0];
_39.innerHTML=_37;
}
function toggleSliderWidgets(_3a){
var div=document.getElementById(_3a+"_head");
toggleDivWithEffects(_3a);
if(div!=null){
toggleDivWithEffects(_3a+"_head");
scroll(0,0);
}
}
function closeWelcomeMessage(){
var _3c=document.getElementById("welcomeDiv");
_3c.style.display="none";
var _3d=document.getElementById("LocationChangeWidget_head");
_3d.style.display="block";
var _3e=document.getElementById("LocationChangeWidget");
_3e.style.display="block";
}
function pulsateDiv(_3f){
var div=document.getElementById(_3f);
new Effect.Pulsate(div,{duration:1,from:0,pulses:1});
}
function toggleDivWithEffects(_41){
var div=document.getElementById(_41);
if(div.style.display=="none"){
new Effect.Appear(div);
}else{
new Effect.Fade(div);
}
}
function callFunctionIfEnter(e,_44,_45,p1,p2,p3){
var _49;
var _4a;
var _4b;
if(window.event){
_49=e.keyCode;
}else{
if(e.which){
_49=e.which;
}
}
if(_49==13){
switch(_45){
case 0:
_44();
break;
case 1:
_44(p1);
break;
case 2:
_44(p1,p2);
break;
case 3:
_44(p1,p2,p3);
break;
}
}
}
function getTimeStampFromEuropeDateStr(_4c){
return new Date(_4c.substring(6,10),_4c.substring(3,5)-1,_4c.substring(0,2));
}
function trimStr(_4d){
return _4d.replace(/^\s+|\s+$/g,"");
}
function onRunSqlResponse(_4e){
switch(_4e["function"]){
case "deleteEventByAdmin":
var id="eventId"+_4e["id"];
var tr=document.getElementById(id);
tr.style.display="none";
}
}

function forgotPasswordResponse(_1){
if(_1.error==0){
var _2=document.getElementById("pfEmailDiv");
_2.style.display="none";
var _3=document.getElementById("pfSentSuccess");
_3.style.display="block";
var _3=document.getElementById("pfSentFailed");
_3.style.display="none";
}else{
var _3=document.getElementById("pfSentFailed");
_3.style.display="block";
_3.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"+_1.errorMsg;
}
}
function hideFpResponse(){
var _4=document.getElementById("pfSentSuccess");
_4.style.display="none";
var _4=document.getElementById("pfSentFailed");
_4.style.display="none";
}
function openAccountNewPass(){
var _5=document.getElementById("accountNewPass");
_5.style.display="block";
}
function closeAccountNewPass(){
var _6=document.getElementById("accountNewPass");
_6.style.display="none";
}
function closePolicyWindow(){
var _7=document.getElementById("policyDiv");
_7.style.display="none";
}
function accountOnSubmit(_8){
if(_8){
var _9=document.getElementById("accountOldPass");
if(_9.value==""){
alert("Password is required. Please try again.");
return;
}
}
var _a="dummy=1";
var _b;
var _c=document.getElementById("registrationForm");
var _d=_c.getElementsByTagName("INPUT");
var _a="dummy=1";
for(var i=0;i<_d.length;i++){
_b=_d.item(i);
if(_b.type=="checkbox"){
if(_b.checked){
_b.value="1";
}else{
_b.value="0";
}
}
_a+="&"+_b.name+"="+_b.value;
}
var _f=document.getElementById("profileForm");
var _d=_f.getElementsByTagName("SELECT");
for(var i=0;i<_d.length;i++){
_b=_d.item(i);
if(_b.selectedIndex!=-1){
_a+="&"+_b.name+"="+_b.options[_b.selectedIndex].value;
}
}
if(_8){
var _d=_f.getElementsByTagName("INPUT");
for(var i=0;i<_d.length;i++){
_b=_d.item(i);
if(_b.checked){
_b.value="1";
}else{
_b.value="0";
}
_a+="&"+_b.name+"="+_b.value;
}
}
callAjaxPage("/src/server/ajax/ajaxRegister.php",_a);
}
function handleRegisterPageResponse(_10){
var _11=document.getElementById("MyAccount");
onAccountPost(_10);
}
function onAccountPost(_12){
var _13=document.getElementById("regResultMessage");
_13.style.color="#0094C5";
if(_12["userStr"]){
var str="<br/>"+_12["userStr"];
_13.innerHTML=str;
_13.style.display="block";
if(!_12["userIsOk"]){
_13.style.color="red";
}
}
if(_12["userIsOk"]){
if(_12["userJustRegistered"]){
window.location.href="/src/server/services/regPhaseTwo.php";
}else{
var _15=document.getElementById("registrationForm");
_15.style.display="none";
var _16=document.getElementById("profileForm");
_16.style.display="none";
var _17=document.getElementById("regButtons");
_17.style.display="none";
setTimeout("window.location.href = \"/\";",2000);
}
}
}

function onRegisterCountryChange(_1,_2){
var _3=document.getElementById("registerHomeCountrySelect");
var _4=_3.options[_3.selectedIndex].value;
if(_4==0){
var _5=document.getElementById("regStatesRow");
_5.style.visibility="hidden";
}
var _6="dummy=1";
_6+="&currentFileName="+encodeURIComponent(_1);
_6+="&countryId="+_4;
_6+="&withCities=0";
_6+="&chosenStateId="+_2;
_6+="&actionName=registerGetCountryValues";
_6+="&prefix=reg";
_6+="&cityBySelect=0";
_6+="&addAllStatesOption=0";
callAjaxPage("/src/server/ajax/ajaxGetCountryValues.php",_6);
}
function onRegisterGetCountryValuesResponse(_7){
var _8=document.getElementById("regStatesRow");
var _9=document.getElementById("registerHomeStateSelect");
_9.length=0;
if(_7.statesType!="0"){
_8.style.visibility="visible";
populateStateSelect(_7,false,_8,_9);
}else{
_8.style.visibility="hidden";
}
}
function changeLocationChooserCountryState(_a,_b,_c,_d,_e,_f){
var _10=document.getElementById(_c+"CountrySelect");
_10.options[_10.selectedIndex].value=_d;
onLocationChooserCountryChange(_a,_b,_c,_e,0,0,_f,0);
}
function onLocationChooserCountryChange(_11,_12,_13,_14,_15,_16,_17,_18){
var _19=document.getElementById(_13+"CountrySelect");
var _1a="dummy=1";
_1a+="&currentFileName="+encodeURIComponent(_11);
_1a+="&countryId="+_19.options[_19.selectedIndex].value;
_1a+="&withCities=1";
_1a+="&chosenStateId="+_14;
_1a+="&actionName=locationChooserGetCountryValues";
_1a+="&calledFromLocationEditor="+_12;
_1a+="&prefix="+_13;
_1a+="&cityBySelect="+_15;
_1a+="&ignoreStates="+_16;
_1a+="&addAllStatesOption="+_17;
_1a+="&addAllCitiesOption="+_18;
callAjaxPage("/src/server/ajax/ajaxGetCountryValues.php",_1a);
}
function onLocationChooserGetCountryValuesResponse(_1b){
var _1c=document.getElementById(_1b.prefix+"StatesRow");
var _1d=document.getElementById(_1b.prefix+"StatesRowTitle");
if(_1d==null){
_1d=_1c;
}
var _1e=document.getElementById(_1b.prefix+"StateSelect");
_1e.length=0;
var _1f=document.getElementById(_1b.prefix+"CitySelect");
var _20=document.getElementById(_1b.prefix+"CitiesRowTitle");
if(_1b.statesType!="0"){
if(_1b.cityBySelect==1){
_1c.style.display="inline";
_1d.style.display="inline";
}else{
_1c.style.visibility="visible";
_1d.style.visibility="visible";
}
populateStateSelect(_1b,true,_1c,_1e);
}else{
if(_1b.cityBySelect==1){
_1c.style.display="none";
_1d.style.display="none";
}else{
_1c.style.visibility="hidden";
_1d.style.visibility="hidden";
}
populateCitySelect(_1b);
}
}
function onLocationChooserStateChange(_21,_22,_23,_24,_25){
var _26=document.getElementById(_23+"StateSelect");
stateId=_26.options[_26.selectedIndex].value;
if((stateId!="")&&(stateId>0)){
var _27="dummy=1";
_27+="&currentFileName="+encodeURIComponent(_21);
_27+="&stateId="+_26.options[_26.selectedIndex].value;
_27+="&calledFromLocationEditor="+_22;
_27+="&prefix="+_23;
_27+="&cityBySelect="+_24;
_27+="&addAllCitiesOption="+_25;
callAjaxPage("/src/server/ajax/ajaxGetStateValues.php",_27);
}
}
function onGetStateValuesResponse(_28){
var _29=document.getElementById(_28.prefix+"CitySelect");
var _2a=document.getElementById(_28.prefix+"CitiesRowTitle");
populateCitySelect(_28);
}
function populateStateSelect(_2b,_2c,_2d,_2e){
for(var i=0;i<_2b.statesArr.length;i++){
var _30=document.createElement("OPTION");
_30.value=_2b.statesArr[i].id;
_30.innerHTML=_2b.statesArr[i].name;
_2e.appendChild(_30);
if(_30.value==_2b.defaultState){
_30.setAttribute("selected",true);
_30.selected=true;
}
}
if(_2c){
onLocationChooserStateChange(_2b.currentFileName,_2b.calledFromLocationEditor,_2b.prefix,_2b.cityBySelect,_2b.addAllCitiesOption);
}
}
function populateCitySelect(_31){
var _32=_31.citiesArr;
var _33=_31.defaultCity;
var _34=_31.calledFromLocationEditor;
var _35=_31.prefix;
if(_31.cityBySelect==1){
var _36=document.getElementById(_35+"CitySelect");
_36.length=0;
allOfCountry=false;
for(var i=0;i<_32.length;i++){
var _38=document.createElement("OPTION");
_38.value=_32[i].id;
_38.innerHTML=_32[i].name;
_36.appendChild(_38);
if(_32[i].name=="All cities"){
allOfCountry=true;
}
if((_38.value==_33)&&(!allOfCountry)){
_38.setAttribute("selected",true);
_38.selected=true;
}
}
setCityNameToSentence(_35);
return;
}
var _39=document.getElementById(_35+"CityLinks");
if(_39==null){
return;
}
var _3a=_39.firstChild;
var tr=_3a.firstChild;
var _3c=5;
var _3d=_32.length;
var _3e=Math.max(_3c,Math.ceil(_3d/4));
var _3f=0;
for(var td=tr.childNodes[1];tr.childNodes.length>2;td=tr.childNodes[1]){
tr.removeChild(td);
}
while(_3f<_3d){
var td=document.createElement("td");
td.vAlign="top";
var div=document.createElement("div");
div.style.width="175px";
td.appendChild(div);
for(var i=0;(i<_3e)&&(_3f<_3d);i++,_3f++){
if(_32[_3f].urlName==""){
continue;
}
var a=document.createElement("a");
a.href=_32[_3f].urlName+_31.currentFileName;
if(_34=="1"){
a.href="/admin/locationEditor/cityEditor.php?city="+_32[_3f].id;
}else{
var _43=location.href.indexOf(".php");
if(_43!=-1){
var _44=location.href.substring(0,_43+4);
var _45=_44.substring(_44.lastIndexOf("/"));
a.href+=_45;
}
}
if(_32[_3f].id==_33){
a.style.fontWeight="bold";
}
a.innerHTML=_32[_3f].name;
div.appendChild(a);
var br=document.createElement("br");
div.appendChild(br);
}
tr.insertBefore(td,tr.lastChild);
}
}

function runOnLoad(f){
if(runOnLoad.loaded){
f();
}else{
runOnLoad.funcs.push(f);
}
}
runOnLoad.funcs=[];
runOnLoad.loaded=false;
runOnLoad.run=function(){
if(runOnLoad.loaded){
return;
}
for(var i=0;i<runOnLoad.funcs.length;i++){
runOnLoad.funcs[i]();
}
runOnLoad.loaded=true;
delete runOnLoad.funcs;
delete runOnLoad.run;
};
if(window.addEventListener){
window.addEventListener("load",runOnLoad.run,false);
}else{
if(window.attachEvent){
window.attachEvent("onload",runOnLoad.run);
}else{
window.onload=runOnLoad.run;
}
}
function runOnUnload(f){
if(runOnUnload.unloaded){
f();
}else{
runOnUnload.funcs.push(f);
}
}
runOnUnload.funcs=[];
runOnUnload.unloaded=false;
runOnUnload.run=function(){
if(runOnUnload.unloaded){
return;
}
for(var i=0;i<runOnUnload.funcs.length;i++){
runOnUnload.funcs[i]();
}
runOnUnload.unloaded=true;
delete runOnUnload.funcs;
delete runOnUnload.run;
};
if(window.addEventListener){
window.addEventListener("unload",runOnUnload.run,false);
}else{
if(window.attachEvent){
window.attachEvent("onunload",runOnUnload.run);
}else{
window.onunload=runOnUnload.run;
}
}

runOnLoad(MapDefinitionsInit);
var currentMap;
var globalSmallMap;
var globalQuadMap;
var globalFullMap;
var iconArrow;
var iconBlue;
var iconRed;
var iconYellow;
var iconGreen;
var customIcons;
var colours;
function MapDefinitionsInit(){
if(!isdefined("GIcon")){
return;
}
iconArrow=new GIcon();
iconArrow.image="/img/ui/greenArrow.gif";
iconArrow.iconSize=new GSize(24,40);
iconArrow.iconAnchor=new GPoint(6,20);
iconArrow.infoWindowAnchor=new GPoint(5,1);
iconBlue=new GIcon();
iconBlue.image="http://labs.google.com/ridefinder/images/mm_20_blue.png";
iconBlue.shadow="http://labs.google.com/ridefinder/images/mm_20_shadow.png";
iconBlue.iconSize=new GSize(12,20);
iconBlue.iconAnchor=new GPoint(6,20);
iconBlue.infoWindowAnchor=new GPoint(5,1);
iconRed=new GIcon();
iconRed.image="http://labs.google.com/ridefinder/images/mm_20_red.png";
iconRed.shadow="http://labs.google.com/ridefinder/images/mm_20_shadow.png";
iconRed.iconSize=new GSize(12,20);
iconRed.iconAnchor=new GPoint(6,20);
iconRed.infoWindowAnchor=new GPoint(5,1);
iconYellow=new GIcon();
iconYellow.image="http://labs.google.com/ridefinder/images/mm_20_yellow.png";
iconYellow.shadow="http://labs.google.com/ridefinder/images/mm_20_shadow.png";
iconYellow.iconSize=new GSize(12,20);
iconYellow.iconAnchor=new GPoint(6,20);
iconYellow.infoWindowAnchor=new GPoint(5,1);
iconGreen=new GIcon();
iconGreen.image="http://labs.google.com/ridefinder/images/mm_20_green.png";
iconGreen.shadow="http://labs.google.com/ridefinder/images/mm_20_shadow.png";
iconGreen.iconSize=new GSize(20,30);
iconGreen.iconAnchor=new GPoint(6,20);
iconGreen.infoWindowAnchor=new GPoint(5,1);
iconHome=new GIcon();
iconHome.image="/img/ui/home.gif";
iconHome.iconSize=new GSize(20,20);
iconHome.iconAnchor=new GPoint(6,20);
iconHome.infoWindowAnchor=new GPoint(5,1);
iconFriend=new GIcon();
iconFriend.iconSize=new GSize(14,18);
iconFriend.iconAnchor=new GPoint(6,20);
iconFriend.infoWindowAnchor=new GPoint(5,1);
iconFriends=new GIcon();
iconFriends.iconSize=new GSize(21,20);
iconFriends.iconAnchor=new GPoint(6,20);
iconFriends.infoWindowAnchor=new GPoint(5,1);
iconFlag=new GIcon();
iconFlag.image="/img/ui/location.gif";
iconFlag.iconSize=new GSize(19,24);
iconFlag.iconAnchor=new GPoint(0,23);
iconFlag.infoWindowAnchor=new GPoint(5,1);
customIcons=[];
customIcons["address"]=iconArrow;
customIcons["location"]=iconBlue;
customIcons["friend"]=iconFriend;
customIcons["friends"]=iconFriends;
customIcons["tripRecord"]=iconFlag;
customIcons["tripRecords"]=iconRed;
customIcons["efLocation"]=iconYellow;
customIcons["efParentLocation"]=iconRed;
customIcons["event"]=iconRed;
customIcons["restaurant"]=iconBlue;
customIcons["hostel"]=iconYellow;
customIcons["affiliate"]=iconGreen;
customIcons["home"]=iconHome;
colours=["#4b0aef","#f43d0c","#0fa24d","#2644a4","#8c6703","#1decf4","#c91df4","#d96a6a","#226840"];
}
function createAndUpdateMap(_1,_2,_3,_4,_5,_6){
var _7=document.getElementById("ajaxLoader");
_7.style.visiblity="visible";
if(GBrowserIsCompatible()){
switch(_1){
case 1:
createCurrentMap(globalSmallMap,_1);
globalSmallMap=currentMap;
break;
case 2:
createCurrentMap(globalQuadMap,_1);
globalQuadMap=currentMap;
break;
case 3:
createCurrentMap(globalFullMap,_1);
globalFullMap=currentMap;
break;
}
currentMap.clearOverlays();
if(_5==0&&_6==-1){
showAddress(_3);
}else{
var _8=_4+"/getGeoInXml.php?uid="+_2+"&mapType="+_5;
if(_6>0){
_8+="&elementId="+_6;
}else{
var _9="";
_9+=getUrlParam("search");
_9+=getUrlParam("pageNum");
switch(_5){
case 1:
_9+=getUrlParam("hostelName");
_9+=getUrlParam("hostelAddress");
_9+=getUrlParam("hostelFacs");
_9+=getUrlParam("toBudget");
break;
case 2:
_9+=getUrlParam("toDate");
_9+=getUrlParam("fromDate");
_9+=getUrlParam("eventType");
_9+=getUrlParam("freeText");
break;
case 6:
_9+=getUrlParam("type");
_9+=getUrlParam("priceRange");
_9+=getUrlParam("freeText");
break;
}
_8+=_9;
}
addMarkersToMap(_8);
}
}
_7.style.visiblity="hidden";
}
function showAddress(_a){
var _b="";
var _c=document.getElementById("addressToLookup");
if(_c!=null){
_b=_c.value;
}
if(_b!=""&&_b!=_a){
if(currentMap.ttMarkers["address"]==null||currentMap.ttMarkers["address"].fullAddress!=_b){
var _d=new GClientGeocoder();
_d.getLatLng(_b,function(_e){
if(!_e){
if(_b!=undefined){
alert(_b+" was not found. Maybe you should try different spelling.");
}
if(currentMap.ttCenter==null){
currentMap.ttCenter=new GLatLng(latitude,longitude);
currentMap.setCenter(currentMap.ttCenter,13);
}
}else{
currentMap.ttCenter=_e;
currentMap.setCenter(currentMap.ttCenter,15);
currentMap.ttMarkers["address"]=new GMarker(_e,customIcons["address"]);
currentMap.ttMarkers["address"].fullAddress=_b;
currentMap.addOverlay(currentMap.ttMarkers["address"]);
currentMap.ttMarkers["address"].openInfoWindowHtml(_b);
}
});
}else{
currentMap.ttCenter=currentMap.ttMarkers["address"].getLatLng();
currentMap.setCenter(currentMap.ttCenter,15);
currentMap.addOverlay(currentMap.ttMarkers["address"]);
currentMap.ttMarkers["address"].openInfoWindowHtml(_b);
}
}
}
function createCurrentMap(_f,_10){
if(_f!=null){
return _f;
}
var _11=document.getElementById("map");
var _12;
switch(_10){
case 1:
_12=new GSmallMapControl();
break;
case 2:
_12=new GLargeMapControl();
break;
case 3:
_11.style.height="370px";
_12=new GLargeMapControl();
break;
}
currentMap=new GMap2(_11);
currentMap.addControl(new GMapTypeControl());
currentMap.addControl(_12);
currentMap.ttMarkers=[];
currentMap.ttPolylines=[];
}
function addMarkersToMap(url){
GDownloadUrl(url,function(_14){
var xml=GXml.parse(_14);
var _16=xml.documentElement.getElementsByTagName("center");
if(_16[0]!=null){
currentMap.ttCenter=new GLatLng(parseFloat(_16[0].getAttribute("lat")),parseFloat(_16[0].getAttribute("lng")));
currentMap.setCenter(currentMap.ttCenter,parseFloat(_16[0].getAttribute("zoom")));
}
var _17=xml.documentElement.getElementsByTagName("error");
if(_17[0]!=null){
var _18=_17[0].getAttribute("html");
alert(_18);
return;
}
var _19=xml.documentElement.getElementsByTagName("marker");
for(var i=0;i<_19.length;i++){
var _1b=_19[i].getAttribute("elementId");
var _18=_19[i].getAttribute("html");
var _1c=_19[i].getAttribute("image");
var _1d=_19[i].getAttribute("type");
var _1e=new GLatLng(parseFloat(_19[i].getAttribute("lat")),parseFloat(_19[i].getAttribute("lng")));
currentMap.ttMarkers[_1d+_1b]=createMarker(_1e,_1d,_18,_1c);
currentMap.addOverlay(currentMap.ttMarkers[_1d+_1b]);
}
var _1f=xml.documentElement.getElementsByTagName("line");
var _20=1;
var _21;
for(var a=0;a<_1f.length;a++){
var _1b=_1f[a].getAttribute("elementId");
var _1d=_1f[a].getAttribute("type");
var _23=_1f[a].getElementsByTagName("point");
var pts=[];
var _25=[];
var _26=_23.length-1;
if(_26==0){
continue;
}
var _27=0.95/(_26-1);
for(var i=0;i<_23.length;i++){
pts[1]=new GLatLng(parseFloat(_23[i].getAttribute("lat")),parseFloat(_23[i].getAttribute("lng")));
if(i>0){
if(i==1||i==(_23.length-1)){
_21="#2c2929";
opacity=0.2;
_20=1;
}else{
if(a<9){
_21=colours[a];
}else{
_21=colours[8];
}
opacity=0.1+(i-1)*_27;
_20=1;
}
currentMap.ttPolylines[_1d+_1b]=new GPolyline(pts,_21,_20,opacity,{geodesic:true});
currentMap.addOverlay(currentMap.ttPolylines[_1d+_1b]);
}
pts[0]=pts[1];
}
}
});
}
function createMarker(_28,_29,_2a,_2b){
if(_29=="friend"){
iconFriend.image=_2b;
}
if(_29=="friends"){
iconFriends.image=_2b;
}
var _2c=new GMarker(_28,customIcons[_29]);
GEvent.addListener(_2c,"click",function(){
_2c.openInfoWindowHtml(_2a);
});
return _2c;
}
function unloadMap(){
if(GBrowserIsCompatible()){
GUnload();
}
}
function closeMap(){
var _2d=document.getElementById("mapHolder");
_2d.style.display="none";
}
function showOnMap(_2e){
var _2f=document.getElementById("mapHolder");
_2f.style.display="block";
updateMapWrapper(_2e);
}

function submitLink(){
simpleLink();
}
function redirectLink(_1){
simpleRedirect(_1);
}
function submitBuzz(_2){
var ap=document.forms["buzz"].ap;
if((null==ap)||(null==ap.value)||""==ap.value){
alert("Missing 3 character airport code");
return false;
}
ap=ap.value;
var _4="http://triptouch.kayak.com/s/search/buzz?ap="+ap+"&ai="+_2;
redirectLink(_4);
}
function getObjStyle(_5){
var _6;
if(document.getElementById){
if(null==document.getElementById(_5)){
return null;
}
_6=document.getElementById(_5).style;
}else{
if(document.layers){
_6=document.divId;
}else{
if(null==document.all.divId){
return null;
}
_6=document.all.divId.style;
}
}
return _6;
}
function getObj(_7){
var _8;
if(document.getElementById){
_8=document.getElementById(_7);
}else{
if(document.layers){
_8=document.objId;
}else{
_8=document.all.objId;
}
}
return _8;
}
function selectLayer(_9){
var _a=_9.id.split("_");
var _b=_a[1];
for(var j=1;j<=4;j++){
var _d="btn_"+j;
var _e=getObj(_d);
if(null!=_e){
_e.className="btnOff";
}
var _f="pane_"+j;
var _10=getObjStyle(_f);
if(null!=_10){
_10.visibility="hidden";
_10.display="none";
}
}
var _e=getObj("btn_"+_b);
_9.className="btnOn";
var _10=getObjStyle("pane_"+_b);
_10.visibility="visible";
_10.display="inline";
}
function showLayer(_11){
var _12=_11.id.split("_");
var num=_12[1];
for(var j=1;j<=4;j++){
var _15="pane_"+j;
var _16=getObjStyle(_15);
if(null!=_16){
_16.visibility="hidden";
_16.display="none";
}
}
var _16=getObjStyle("pane_"+num);
_16.visibility="visible";
_16.display="inline";
}
function kayakSubmitForm(_17){
var ai=document.forms[_17].ai;
if((null==ai)||(null==ai.value)||""==ai.value){
alert("Missing affiliate id form variable ai");
return false;
}
if(_17=="flight"){
return submitFlight(ai.value);
}else{
if(_17=="hotel"){
return submitHotel(ai.value);
}else{
if(_17=="car"){
return submitCar(ai.value);
}else{
if(_17=="cruise"){
return submitCruise(ai.value);
}else{
if(_17=="buzz"){
return submitCar(ai.value);
}else{
alert("Unknown form "+_17);
return false;
}
}
}
}
}
}
function submitForm(_19){
var ai=document.forms[_19].ai;
if((null==ai)||(null==ai.value)||""==ai.value){
alert("Missing affiliate id form variable ai");
return false;
}
if(_19=="flight"){
return submitFlight(ai.value);
}else{
if(_19=="hotel"){
return submitHotel(ai.value);
}else{
if(_19=="car"){
return submitCar(ai.value);
}else{
if(_19=="cruise"){
return submitCruise(ai.value);
}else{
if(_19=="buzz"){
return submitCar(ai.value);
}else{
alert("Unknown form "+_19);
return false;
}
}
}
}
}
}
function submitFlight(ai){
document.forms["flight"].l1.value=document.forms["flight"].city_selector_name_air1.value;
var l1=document.forms["flight"].l1.value;
if((null==l1)||(l1.length<3)){
alert("Missing or Invalid Departure Airport");
return false;
}
document.forms["flight"].l2.value=document.forms["flight"].city_selector_name_air2.value;
var l2=document.forms["flight"].l2.value;
if((null==l2)||(l2.length<3)){
alert("Missing or Invalid Destination Airport");
return false;
}
var _1e="http://triptouch.kayak.com/s/search/air";
simpleSubmit("flight",_1e);
return true;
}
function submitHotel(ai){
document.forms["hotel"].crc.value=document.forms["hotel"].city_selector_name_hotel.value;
var l1=document.forms["hotel"].crc.value;
if((null==l1)||(l1.length<=3)){
alert("Missing or Invalid City.  Expecting something of form City,State or City,State,Country");
return false;
}
var _21="http://triptouch.kayak.com/s/search/hotel";
simpleSubmit("hotel",_21);
return true;
}
function submitCar(ai){
document.forms["car"].crc.value=document.forms["car"].city_selector_name_car.value;
var l1=document.forms["car"].crc.value;
if((null==l1)||(l1.length<3)){
alert("Missing or Invalid City.  Expecting something of form City,State or City,State,Country");
return false;
}
var _24="http://triptouch.kayak.com/s/search/car";
simpleSubmit("car",_24);
return true;
}
function submitCruise(ai){
var _26="http://triptouch.kayak.com/s/search/cruise";
simpleSubmit("cruise",_26);
return true;
}
function simpleSubmit(_27,_28){
var _29=_28+"?";
var _2a="";
for(i=0;i<document.forms[_27].elements.length;i++){
if((null!=document.forms[_27])&&(null!=document.forms[_27].elements[i])&&(""!=document.forms[_27].elements[i].name)&&(""!=document.forms[_27].elements[i].value)){
_2a=_2a+"&"+document.forms[_27].elements[i].name+"="+escape(document.forms[_27].elements[i].value);
}
}
if(_2a.match(/\//g)){
_2a=_2a.replace(/\//g,"%2F");
}
_29=_29+_2a;
if(_29.match(/\?\&/g)){
_29=_29.replace(/\?\&/g,"?");
}
openWindow(_29);
}
function simpleLink(){
var _2b="http://triptouch.kayak.com/s/search/air";
simpleRedirect(_2b);
}
function simpleRedirect(_2c){
openWindow(_2c);
}
function openWindow(url){
window.open(url);
}
function compareDates(_2e,_2f){
if(_2e==null||_2f==null){
return false;
}
if(_2e.getFullYear()<_2f.getFullYear()||(_2e.getFullYear()==_2f.getFullYear()&&(_2e.getMonth()<_2f.getMonth()||(_2e.getMonth()==_2f.getMonth()&&(_2e.getDate()<_2f.getDate()))))){
return false;
}else{
return true;
}
}
function showMonths(){
var _30=16;
var _31=["January","February","March","April","May","June","July","August","September","October","November","December"];
var _32=new Date();
for(var i=0;i<_30;i++){
var _34=(_32.getMonth()-0+1)+"/1/"+_32.getFullYear();
document.write("<option value=\"");
document.write(_34);
document.write("\"");
if(i==1&&_32.getDate()>15){
document.write(" selected");
}
document.write(">");
document.write(_31[_32.getMonth()]);
document.write(" ");
document.write(_32.getFullYear());
document.writeln("</option>");
if(_32.getDate()>28){
_32.setDate(28);
}
_32.setMonth(_32.getMonth()+1);
}
}

var config=new Object();
var tt_Debug=true;
var tt_Enabled=true;
var TagsToTip=true;
config.Above=false;
config.BgColor="#E4E7FF";
config.BgImg="";
config.BorderColor="#002299";
config.BorderStyle="solid";
config.BorderWidth=1;
config.CenterMouse=false;
config.ClickClose=false;
config.CloseBtn=false;
config.CloseBtnColors=["#990000","#FFFFFF","#DD3333","#FFFFFF"];
config.CloseBtnText="&nbsp;X&nbsp;";
config.CopyContent=true;
config.Delay=400;
config.Duration=0;
config.FadeIn=0;
config.FadeOut=0;
config.FadeInterval=30;
config.Fix=null;
config.FollowMouse=true;
config.FontColor="#000044";
config.FontFace="Verdana,Geneva,sans-serif";
config.FontSize="8pt";
config.FontWeight="normal";
config.Left=false;
config.OffsetX=14;
config.OffsetY=8;
config.Opacity=100;
config.Padding=3;
config.Shadow=false;
config.ShadowColor="#C0C0C0";
config.ShadowWidth=5;
config.Sticky=false;
config.TextAlign="left";
config.Title="";
config.TitleAlign="left";
config.TitleBgColor="";
config.TitleFontColor="#ffffff";
config.TitleFontFace="";
config.TitleFontSize="";
config.Width=0;
function Tip(){
tt_Tip(arguments,null);
}
function TagToTip(){
if(TagsToTip){
var _1=tt_GetElt(arguments[0]);
if(_1){
tt_Tip(arguments,_1);
}
}
}
var tt_aElt=new Array(10),tt_aV=new Array(),tt_sContent,tt_scrlX=0,tt_scrlY=0,tt_musX,tt_musY,tt_over,tt_x,tt_y,tt_w,tt_h;
function tt_Extension(){
tt_ExtCmdEnum();
tt_aExt[tt_aExt.length]=this;
return this;
}
function tt_SetTipPos(x,y){
var _4=tt_aElt[0].style;
tt_x=x;
tt_y=y;
_4.left=x+"px";
_4.top=y+"px";
if(tt_ie56){
var _5=tt_aElt[tt_aElt.length-1];
if(_5){
_5.style.left=_4.left;
_5.style.top=_4.top;
}
}
}
function tt_Hide(){
if(tt_db&&tt_iState){
if(tt_iState&2){
tt_aElt[0].style.visibility="hidden";
tt_ExtCallFncs(0,"Hide");
}
tt_tShow.EndTimer();
tt_tHide.EndTimer();
tt_tDurt.EndTimer();
tt_tFade.EndTimer();
if(!tt_op&&!tt_ie){
tt_tWaitMov.EndTimer();
tt_bWait=false;
}
if(tt_aV[CLICKCLOSE]){
tt_RemEvtFnc(document,"mouseup",tt_HideInit);
}
tt_AddRemOutFnc(false);
tt_ExtCallFncs(0,"Kill");
if(tt_t2t&&!tt_aV[COPYCONTENT]){
tt_t2t.style.display="none";
tt_MovDomNode(tt_t2t,tt_aElt[6],tt_t2tDad);
}
tt_iState=0;
tt_over=null;
tt_ResetMainDiv();
if(tt_aElt[tt_aElt.length-1]){
tt_aElt[tt_aElt.length-1].style.display="none";
}
}
}
function tt_GetElt(id){
return (document.getElementById?document.getElementById(id):document.all?document.all[id]:null);
}
function tt_GetDivW(el){
return (el?(el.offsetWidth||el.style.pixelWidth||0):0);
}
function tt_GetDivH(el){
return (el?(el.offsetHeight||el.style.pixelHeight||0):0);
}
function tt_GetScrollX(){
return (window.pageXOffset||(tt_db?(tt_db.scrollLeft||0):0));
}
function tt_GetScrollY(){
return (window.pageYOffset||(tt_db?(tt_db.scrollTop||0):0));
}
function tt_GetClientW(){
return (document.body&&(typeof (document.body.clientWidth)!=tt_u)?document.body.clientWidth:(typeof (window.innerWidth)!=tt_u)?window.innerWidth:tt_db?(tt_db.clientWidth||0):0);
}
function tt_GetClientH(){
return (document.body&&(typeof (document.body.clientHeight)!=tt_u)?document.body.clientHeight:(typeof (window.innerHeight)!=tt_u)?window.innerHeight:tt_db?(tt_db.clientHeight||0):0);
}
function tt_GetEvtX(e){
return (e?((typeof (e.pageX)!=tt_u)?e.pageX:(e.clientX+tt_scrlX)):0);
}
function tt_GetEvtY(e){
return (e?((typeof (e.pageY)!=tt_u)?e.pageY:(e.clientY+tt_scrlY)):0);
}
function tt_AddEvtFnc(el,_c,_d){
if(el){
if(el.addEventListener){
el.addEventListener(_c,_d,false);
}else{
el.attachEvent("on"+_c,_d);
}
}
}
function tt_RemEvtFnc(el,_f,_10){
if(el){
if(el.removeEventListener){
el.removeEventListener(_f,_10,false);
}else{
el.detachEvent("on"+_f,_10);
}
}
}
var tt_aExt=new Array(),tt_db,tt_op,tt_ie,tt_ie56,tt_bBoxOld,tt_body,tt_flagOpa,tt_maxPosX,tt_maxPosY,tt_iState=0,tt_opa,tt_bJmpVert,tt_t2t,tt_t2tDad,tt_elDeHref,tt_tShow=new Number(0),tt_tHide=new Number(0),tt_tDurt=new Number(0),tt_tFade=new Number(0),tt_tWaitMov=new Number(0),tt_bWait=false,tt_u="undefined";
function tt_Init(){
tt_MkCmdEnum();
if(!tt_Browser()||!tt_MkMainDiv()){
return;
}
tt_IsW3cBox();
tt_OpaSupport();
tt_AddEvtFnc(document,"mousemove",tt_Move);
if(TagsToTip||tt_Debug){
tt_SetOnloadFnc();
}
tt_AddEvtFnc(window,"scroll",function(){
tt_scrlX=tt_GetScrollX();
tt_scrlY=tt_GetScrollY();
if(tt_iState&&!(tt_aV[STICKY]&&(tt_iState&2))){
tt_HideInit();
}
});
tt_AddEvtFnc(window,"unload",tt_Hide);
tt_Hide();
}
function tt_MkCmdEnum(){
var n=0;
for(var i in config){
eval("window."+i.toString().toUpperCase()+" = "+n++);
}
tt_aV.length=n;
}
function tt_Browser(){
var n,nv,n6,w3c;
n=navigator.userAgent.toLowerCase(),nv=navigator.appVersion;
tt_op=(document.defaultView&&typeof (eval("w"+"indow"+"."+"o"+"p"+"er"+"a"))!=tt_u);
tt_ie=n.indexOf("msie")!=-1&&document.all&&!tt_op;
if(tt_ie){
var _17=(!document.compatMode||document.compatMode=="BackCompat");
tt_db=!_17?document.documentElement:(document.body||null);
if(tt_db){
tt_ie56=parseFloat(nv.substring(nv.indexOf("MSIE")+5))>=5.5&&typeof document.body.style.maxHeight==tt_u;
}
}else{
tt_db=document.documentElement||document.body||(document.getElementsByTagName?document.getElementsByTagName("body")[0]:null);
if(!tt_op){
n6=document.defaultView&&typeof document.defaultView.getComputedStyle!=tt_u;
w3c=!n6&&document.getElementById;
}
}
tt_body=(document.getElementsByTagName?document.getElementsByTagName("body")[0]:(document.body||null));
if(tt_ie||n6||tt_op||w3c){
if(tt_body&&tt_db){
if(document.attachEvent||document.addEventListener){
return true;
}
}else{
tt_Err("wz_tooltip.js must be included INSIDE the body section,"+" immediately after the opening <body> tag.");
}
}
tt_db=null;
return false;
}
function tt_MkMainDiv(){
if(tt_body.insertAdjacentHTML){
tt_body.insertAdjacentHTML("afterBegin",tt_MkMainDivHtm());
}else{
if(typeof tt_body.innerHTML!=tt_u&&document.createElement&&tt_body.appendChild){
tt_body.appendChild(tt_MkMainDivDom());
}
}
if(window.tt_GetMainDivRefs&&tt_GetMainDivRefs()){
return true;
}
tt_db=null;
return false;
}
function tt_MkMainDivHtm(){
return ("<div id=\"WzTtDiV\"></div>"+(tt_ie56?("<iframe id=\"WzTtIfRm\" src=\"javascript:false\" scrolling=\"no\" frameborder=\"0\" style=\"filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;\"></iframe>"):""));
}
function tt_MkMainDivDom(){
var el=document.createElement("div");
if(el){
el.id="WzTtDiV";
}
return el;
}
function tt_GetMainDivRefs(){
tt_aElt[0]=tt_GetElt("WzTtDiV");
if(tt_ie56&&tt_aElt[0]){
tt_aElt[tt_aElt.length-1]=tt_GetElt("WzTtIfRm");
if(!tt_aElt[tt_aElt.length-1]){
tt_aElt[0]=null;
}
}
if(tt_aElt[0]){
var css=tt_aElt[0].style;
css.visibility="hidden";
css.position="absolute";
css.overflow="hidden";
return true;
}
return false;
}
function tt_ResetMainDiv(){
var w=(window.screen&&screen.width)?screen.width:10000;
tt_SetTipPos(-w,0);
tt_aElt[0].innerHTML="";
tt_aElt[0].style.width=(w-1)+"px";
}
function tt_IsW3cBox(){
var css=tt_aElt[0].style;
css.padding="10px";
css.width="40px";
tt_bBoxOld=(tt_GetDivW(tt_aElt[0])==40);
css.padding="0px";
tt_ResetMainDiv();
}
function tt_OpaSupport(){
var css=tt_body.style;
tt_flagOpa=(typeof (css.filter)!=tt_u)?1:(typeof (css.KhtmlOpacity)!=tt_u)?2:(typeof (css.KHTMLOpacity)!=tt_u)?3:(typeof (css.MozOpacity)!=tt_u)?4:(typeof (css.opacity)!=tt_u)?5:0;
}
function tt_SetOnloadFnc(){
tt_AddEvtFnc(document,"DOMContentLoaded",tt_HideSrcTags);
tt_AddEvtFnc(window,"load",tt_HideSrcTags);
if(tt_body.attachEvent){
tt_body.attachEvent("onreadystatechange",function(){
if(tt_body.readyState=="complete"){
tt_HideSrcTags();
}
});
}
if(/WebKit|KHTML/i.test(navigator.userAgent)){
var t=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
clearInterval(t);
tt_HideSrcTags();
}
},10);
}
}
function tt_HideSrcTags(){
if(!window.tt_HideSrcTags||window.tt_HideSrcTags.done){
return;
}
window.tt_HideSrcTags.done=true;
if(!tt_HideSrcTagsRecurs(tt_body)){
tt_Err("To enable the capability to convert HTML elements to tooltips,"+" you must set TagsToTip in the global tooltip configuration"+" to true.");
}
}
function tt_HideSrcTagsRecurs(dad){
var a,ovr,_21;
a=dad.childNodes||dad.children||null;
for(var i=a?a.length:0;i;){
--i;
if(!tt_HideSrcTagsRecurs(a[i])){
return false;
}
ovr=a[i].getAttribute?a[i].getAttribute("onmouseover"):(typeof a[i].onmouseover=="function")?a[i].onmouseover:null;
if(ovr){
_21=ovr.toString().match(/TagToTip\s*\(\s*'[^'.]+'\s*[\),]/);
if(_21&&_21.length){
if(!tt_HideSrcTag(_21[0])){
return false;
}
}
}
}
return true;
}
function tt_HideSrcTag(_23){
var id,el;
id=_23.replace(/.+'([^'.]+)'.+/,"$1");
el=tt_GetElt(id);
if(el){
if(tt_Debug&&!TagsToTip){
return false;
}else{
el.style.display="none";
}
}else{
tt_Err("Invalid ID\n'"+id+"'\npassed to TagToTip()."+" There exists no HTML element with that ID.");
}
return true;
}
function tt_Tip(arg,t2t){
if(!tt_db){
return;
}
if(tt_iState){
tt_Hide();
}
if(!tt_Enabled){
return;
}
tt_t2t=t2t;
if(!tt_ReadCmds(arg)){
return;
}
tt_iState=1|4;
tt_AdaptConfig1();
tt_MkTipContent(arg);
tt_MkTipSubDivs();
tt_FormatTip();
tt_bJmpVert=false;
tt_maxPosX=tt_GetClientW()+tt_scrlX-tt_w-1;
tt_maxPosY=tt_GetClientH()+tt_scrlY-tt_h-1;
tt_AdaptConfig2();
tt_Move();
tt_ShowInit();
}
function tt_ReadCmds(a){
var i;
i=0;
for(var j in config){
tt_aV[i++]=config[j];
}
if(a.length&1){
for(i=a.length-1;i>0;i-=2){
tt_aV[a[i-1]]=a[i];
}
return true;
}
tt_Err("Incorrect call of Tip() or TagToTip().\n"+"Each command must be followed by a value.");
return false;
}
function tt_AdaptConfig1(){
tt_ExtCallFncs(0,"LoadConfig");
if(!tt_aV[TITLEBGCOLOR].length){
tt_aV[TITLEBGCOLOR]=tt_aV[BORDERCOLOR];
}
if(!tt_aV[TITLEFONTCOLOR].length){
tt_aV[TITLEFONTCOLOR]=tt_aV[BGCOLOR];
}
if(!tt_aV[TITLEFONTFACE].length){
tt_aV[TITLEFONTFACE]=tt_aV[FONTFACE];
}
if(!tt_aV[TITLEFONTSIZE].length){
tt_aV[TITLEFONTSIZE]=tt_aV[FONTSIZE];
}
if(tt_aV[CLOSEBTN]){
if(!tt_aV[CLOSEBTNCOLORS]){
tt_aV[CLOSEBTNCOLORS]=new Array("","","","");
}
for(var i=4;i;){
--i;
if(!tt_aV[CLOSEBTNCOLORS][i].length){
tt_aV[CLOSEBTNCOLORS][i]=(i&1)?tt_aV[TITLEFONTCOLOR]:tt_aV[TITLEBGCOLOR];
}
}
if(!tt_aV[TITLE].length){
tt_aV[TITLE]=" ";
}
}
if(tt_aV[OPACITY]==100&&typeof tt_aElt[0].style.MozOpacity!=tt_u&&!Array.every){
tt_aV[OPACITY]=99;
}
if(tt_aV[FADEIN]&&tt_flagOpa&&tt_aV[DELAY]>100){
tt_aV[DELAY]=Math.max(tt_aV[DELAY]-tt_aV[FADEIN],100);
}
}
function tt_AdaptConfig2(){
if(tt_aV[CENTERMOUSE]){
tt_aV[OFFSETX]-=((tt_w-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0))>>1);
}
}
function tt_MkTipContent(a){
if(tt_t2t){
if(tt_aV[COPYCONTENT]){
tt_sContent=tt_t2t.innerHTML;
}else{
tt_sContent="";
}
}else{
tt_sContent=a[0];
}
tt_ExtCallFncs(0,"CreateContentString");
}
function tt_MkTipSubDivs(){
var _2d="position:relative;margin:0px;padding:0px;border-width:0px;left:0px;top:0px;line-height:normal;width:auto;",_2e=" cellspacing=0 cellpadding=0 border=0 style=\""+_2d+"\"><tbody style=\""+_2d+"\"><tr><td ";
tt_aElt[0].innerHTML=(""+(tt_aV[TITLE].length?("<div id=\"WzTiTl\" style=\"position:relative;z-index:1;\">"+"<table id=\"WzTiTlTb\""+_2e+"id=\"WzTiTlI\" style=\""+_2d+"\">"+tt_aV[TITLE]+"</td>"+(tt_aV[CLOSEBTN]?("<td align=\"right\" style=\""+_2d+"text-align:right;\">"+"<span id=\"WzClOsE\" style=\"padding-left:2px;padding-right:2px;"+"cursor:"+(tt_ie?"hand":"pointer")+";\" onmouseover=\"tt_OnCloseBtnOver(1)\" onmouseout=\"tt_OnCloseBtnOver(0)\" onclick=\"tt_HideInit()\">"+tt_aV[CLOSEBTNTEXT]+"</span></td>"):"")+"</tr></tbody></table></div>"):"")+"<div id=\"WzBoDy\" style=\"position:relative;z-index:0;\">"+"<table"+_2e+"id=\"WzBoDyI\" style=\""+_2d+"\">"+tt_sContent+"</td></tr></tbody></table></div>"+(tt_aV[SHADOW]?("<div id=\"WzTtShDwR\" style=\"position:absolute;overflow:hidden;\"></div>"+"<div id=\"WzTtShDwB\" style=\"position:relative;overflow:hidden;\"></div>"):""));
tt_GetSubDivRefs();
if(tt_t2t&&!tt_aV[COPYCONTENT]){
tt_t2tDad=tt_t2t.parentNode||tt_t2t.parentElement||tt_t2t.offsetParent||null;
if(tt_t2tDad){
tt_MovDomNode(tt_t2t,tt_t2tDad,tt_aElt[6]);
tt_t2t.style.display="block";
}
}
tt_ExtCallFncs(0,"SubDivsCreated");
}
function tt_GetSubDivRefs(){
var aId=new Array("WzTiTl","WzTiTlTb","WzTiTlI","WzClOsE","WzBoDy","WzBoDyI","WzTtShDwB","WzTtShDwR");
for(var i=aId.length;i;--i){
tt_aElt[i]=tt_GetElt(aId[i-1]);
}
}
function tt_FormatTip(){
var css,w,_33,_34;
if(tt_aV[TITLE].length){
css=tt_aElt[1].style;
css.background=tt_aV[TITLEBGCOLOR];
css.paddingTop=(tt_aV[CLOSEBTN]?2:0)+"px";
css.paddingBottom="1px";
css.paddingLeft=css.paddingRight=tt_aV[PADDING]+"px";
css=tt_aElt[3].style;
css.color=tt_aV[TITLEFONTCOLOR];
css.fontFamily=tt_aV[TITLEFONTFACE];
css.fontSize=tt_aV[TITLEFONTSIZE];
css.fontWeight="bold";
css.textAlign=tt_aV[TITLEALIGN];
if(tt_aElt[4]){
css.paddingRight=(tt_aV[PADDING]<<1)+"px";
css=tt_aElt[4].style;
css.background=tt_aV[CLOSEBTNCOLORS][0];
css.color=tt_aV[CLOSEBTNCOLORS][1];
css.fontFamily=tt_aV[TITLEFONTFACE];
css.fontSize=tt_aV[TITLEFONTSIZE];
css.fontWeight="bold";
}
if(tt_aV[WIDTH]>0){
tt_w=tt_aV[WIDTH]+((tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1);
}else{
tt_w=tt_GetDivW(tt_aElt[3])+tt_GetDivW(tt_aElt[4]);
if(tt_w>400){
tt_w=400;
}
if(tt_aElt[4]){
tt_w+=tt_aV[PADDING];
}
}
_33=-tt_aV[BORDERWIDTH];
}else{
tt_w=0;
_33=0;
}
css=tt_aElt[5].style;
css.top=_33+"px";
if(tt_aV[BORDERWIDTH]){
css.borderColor=tt_aV[BORDERCOLOR];
css.borderStyle=tt_aV[BORDERSTYLE];
css.borderWidth=tt_aV[BORDERWIDTH]+"px";
}
if(tt_aV[BGCOLOR].length){
css.background=tt_aV[BGCOLOR];
}
if(tt_aV[BGIMG].length){
css.backgroundImage="url("+tt_aV[BGIMG]+")";
}
css.padding=tt_aV[PADDING]+"px";
css.textAlign=tt_aV[TEXTALIGN];
css=tt_aElt[6].style;
css.color=tt_aV[FONTCOLOR];
css.fontFamily=tt_aV[FONTFACE];
css.fontSize=tt_aV[FONTSIZE];
css.fontWeight=tt_aV[FONTWEIGHT];
css.background="";
css.textAlign=tt_aV[TEXTALIGN];
if(tt_aV[WIDTH]>0){
w=tt_aV[WIDTH]+((tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1);
}else{
w=tt_GetDivW(tt_aElt[6])+((tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1);
}
if(w>tt_w){
tt_w=w;
}
if(tt_w>500){
tt_w=500;
}
if(tt_aV[SHADOW]){
tt_w+=tt_aV[SHADOWWIDTH];
_34=Math.floor((tt_aV[SHADOWWIDTH]*4)/3);
css=tt_aElt[7].style;
css.top=_33+"px";
css.left=_34+"px";
css.width=(tt_w-_34-tt_aV[SHADOWWIDTH])+"px";
css.height=tt_aV[SHADOWWIDTH]+"px";
css.background=tt_aV[SHADOWCOLOR];
css=tt_aElt[8].style;
css.top=_34+"px";
css.left=(tt_w-tt_aV[SHADOWWIDTH])+"px";
css.width=tt_aV[SHADOWWIDTH]+"px";
css.background=tt_aV[SHADOWCOLOR];
}else{
_34=0;
}
tt_SetTipOpa(tt_aV[FADEIN]?0:tt_aV[OPACITY]);
tt_FixSize(_33,_34);
}
function tt_FixSize(_35,_36){
var wIn,_38,i;
tt_aElt[0].style.width=tt_w+"px";
tt_aElt[0].style.pixelWidth=tt_w;
_38=tt_w-((tt_aV[SHADOW])?tt_aV[SHADOWWIDTH]:0);
wIn=_38;
if(!tt_bBoxOld){
wIn-=((tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1);
}
tt_aElt[5].style.width=wIn+"px";
if(tt_aElt[1]){
wIn=_38-(tt_aV[PADDING]<<1);
if(!tt_bBoxOld){
_38=wIn;
}
tt_aElt[1].style.width=_38+"px";
tt_aElt[2].style.width=wIn+"px";
}
tt_h=tt_GetDivH(tt_aElt[0])+_35;
if(tt_aElt[8]){
tt_aElt[8].style.height=(tt_h-_36)+"px";
}
i=tt_aElt.length-1;
if(tt_aElt[i]){
tt_aElt[i].style.width=tt_w+"px";
tt_aElt[i].style.height=tt_h+"px";
}
}
function tt_DeAlt(el){
var _3b;
if(el.alt){
el.alt="";
}
if(el.title){
el.title="";
}
_3b=el.childNodes||el.children||null;
if(_3b){
for(var i=_3b.length;i;){
tt_DeAlt(_3b[--i]);
}
}
}
function tt_OpDeHref(el){
if(!tt_op){
return;
}
if(tt_elDeHref){
tt_OpReHref();
}
while(el){
if(el.hasAttribute("href")){
el.t_href=el.getAttribute("href");
el.t_stats=window.status;
el.removeAttribute("href");
el.style.cursor="hand";
tt_AddEvtFnc(el,"mousedown",tt_OpReHref);
window.status=el.t_href;
tt_elDeHref=el;
break;
}
el=el.parentElement;
}
}
function tt_ShowInit(){
tt_tShow.Timer("tt_Show()",tt_aV[DELAY],true);
if(tt_aV[CLICKCLOSE]){
tt_AddEvtFnc(document,"mouseup",tt_HideInit);
}
}
function tt_OverInit(e){
tt_over=e.target||e.srcElement;
tt_DeAlt(tt_over);
tt_OpDeHref(tt_over);
tt_AddRemOutFnc(true);
}
function tt_Show(){
var css=tt_aElt[0].style;
css.zIndex=Math.max((window.dd&&dd.z)?(dd.z+2):0,1010);
if(tt_aV[STICKY]||!tt_aV[FOLLOWMOUSE]){
tt_iState&=~4;
}
if(tt_aV[DURATION]>0){
tt_tDurt.Timer("tt_HideInit()",tt_aV[DURATION],true);
}
tt_ExtCallFncs(0,"Show");
css.visibility="visible";
tt_iState|=2;
if(tt_aV[FADEIN]){
tt_Fade(0,0,tt_aV[OPACITY],Math.round(tt_aV[FADEIN]/tt_aV[FADEINTERVAL]));
}
tt_ShowIfrm();
}
function tt_ShowIfrm(){
if(tt_ie56){
var _40=tt_aElt[tt_aElt.length-1];
if(_40){
var css=_40.style;
css.zIndex=tt_aElt[0].style.zIndex-1;
css.display="block";
}
}
}
function tt_Move(e){
e=window.event||e;
if(e){
tt_musX=tt_GetEvtX(e);
tt_musY=tt_GetEvtY(e);
}
if(tt_iState){
if(!tt_over&&e){
tt_OverInit(e);
}
if(tt_iState&4){
if(!tt_op&&!tt_ie){
if(tt_bWait){
return;
}
tt_bWait=true;
tt_tWaitMov.Timer("tt_bWait = false;",1,true);
}
if(tt_aV[FIX]){
tt_iState&=~4;
tt_SetTipPos(tt_aV[FIX][0],tt_aV[FIX][1]);
}else{
if(!tt_ExtCallFncs(e,"MoveBefore")){
tt_SetTipPos(tt_PosX(),tt_PosY());
}
}
tt_ExtCallFncs([tt_musX,tt_musY],"MoveAfter");
}
}
}
function tt_PosX(){
var x;
x=tt_musX;
if(tt_aV[LEFT]){
x-=tt_w+tt_aV[OFFSETX]-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0);
}else{
x+=tt_aV[OFFSETX];
}
if(x>tt_maxPosX){
x=tt_maxPosX;
}
return ((x<tt_scrlX)?tt_scrlX:x);
}
function tt_PosY(){
var y;
if(tt_aV[ABOVE]&&(!tt_bJmpVert||tt_CalcPosYAbove()>=tt_scrlY+16)){
y=tt_DoPosYAbove();
}else{
if(!tt_aV[ABOVE]&&tt_bJmpVert&&tt_CalcPosYBelow()>tt_maxPosY-16){
y=tt_DoPosYAbove();
}else{
y=tt_DoPosYBelow();
}
}
if(y>tt_maxPosY){
y=tt_DoPosYAbove();
}
if(y<tt_scrlY){
y=tt_DoPosYBelow();
}
return y;
}
function tt_DoPosYBelow(){
tt_bJmpVert=tt_aV[ABOVE];
return tt_CalcPosYBelow();
}
function tt_DoPosYAbove(){
tt_bJmpVert=!tt_aV[ABOVE];
return tt_CalcPosYAbove();
}
function tt_CalcPosYBelow(){
return (tt_musY+tt_aV[OFFSETY]);
}
function tt_CalcPosYAbove(){
var dy=tt_aV[OFFSETY]-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0);
if(tt_aV[OFFSETY]>0&&dy<=0){
dy=1;
}
return (tt_musY-tt_h-dy);
}
function tt_OnOut(){
tt_AddRemOutFnc(false);
if(!(tt_aV[STICKY]&&(tt_iState&2))){
tt_HideInit();
}
}
function tt_HideInit(){
tt_ExtCallFncs(0,"HideInit");
tt_iState&=~4;
if(tt_flagOpa&&tt_aV[FADEOUT]){
tt_tFade.EndTimer();
if(tt_opa){
var n=Math.round(tt_aV[FADEOUT]/(tt_aV[FADEINTERVAL]*(tt_aV[OPACITY]/tt_opa)));
tt_Fade(tt_opa,tt_opa,0,n);
return;
}
}
tt_tHide.Timer("tt_Hide();",1,false);
}
function tt_OpReHref(){
if(tt_elDeHref){
tt_elDeHref.setAttribute("href",tt_elDeHref.t_href);
tt_RemEvtFnc(tt_elDeHref,"mousedown",tt_OpReHref);
window.status=tt_elDeHref.t_stats;
tt_elDeHref=null;
}
}
function tt_Fade(a,now,z,n){
if(n){
now+=Math.round((z-now)/n);
if((z>a)?(now>=z):(now<=z)){
now=z;
}else{
tt_tFade.Timer("tt_Fade("+a+","+now+","+z+","+(n-1)+")",tt_aV[FADEINTERVAL],true);
}
}
now?tt_SetTipOpa(now):tt_Hide();
}
function tt_SetTipOpa(opa){
tt_SetOpa(tt_aElt[5].style,opa);
if(tt_aElt[1]){
tt_SetOpa(tt_aElt[1].style,opa);
}
if(tt_aV[SHADOW]){
opa=Math.round(opa*0.8);
tt_SetOpa(tt_aElt[7].style,opa);
tt_SetOpa(tt_aElt[8].style,opa);
}
}
function tt_OnCloseBtnOver(_4c){
var css=tt_aElt[4].style;
_4c<<=1;
css.background=tt_aV[CLOSEBTNCOLORS][_4c];
css.color=tt_aV[CLOSEBTNCOLORS][_4c+1];
}
function tt_Int(x){
var y;
return (isNaN(y=parseInt(x))?0:y);
}
function tt_AddRemOutFnc(_50){
var _51=_50?tt_AddEvtFnc:tt_RemEvtFnc;
if(_50!=tt_AddRemOutFnc.bOn){
_51(tt_over,"mouseout",tt_OnOut);
tt_AddRemOutFnc.bOn=_50;
if(!_50){
tt_OpReHref();
}
}
}
tt_AddRemOutFnc.bOn=false;
Number.prototype.Timer=function(s,iT,_54){
if(!this.value||_54){
this.value=window.setTimeout(s,iT);
}
};
Number.prototype.EndTimer=function(){
if(this.value){
window.clearTimeout(this.value);
this.value=0;
}
};
function tt_SetOpa(css,opa){
tt_opa=opa;
if(tt_flagOpa==1){
if(opa<100){
var _57=css.visibility!="hidden";
css.zoom="100%";
if(!_57){
css.visibility="visible";
}
css.filter="alpha(opacity="+opa+")";
if(!_57){
css.visibility="hidden";
}
}else{
css.filter="";
}
}else{
opa/=100;
switch(tt_flagOpa){
case 2:
css.KhtmlOpacity=opa;
break;
case 3:
css.KHTMLOpacity=opa;
break;
case 4:
css.MozOpacity=opa;
break;
case 5:
css.opacity=opa;
break;
}
}
}
function tt_MovDomNode(el,_59,_5a){
if(_59){
_59.removeChild(el);
}
if(_5a){
_5a.appendChild(el);
}
}
function tt_Err(_5b){
if(tt_Debug){
alert("Tooltip Script Error Message:\n\n"+_5b);
}
}
function tt_ExtCmdEnum(){
var s;
for(var i in config){
s="window."+i.toString().toUpperCase();
if(eval("typeof("+s+") == tt_u")){
eval(s+" = "+tt_aV.length);
tt_aV[tt_aV.length]=null;
}
}
}
function tt_ExtCallFncs(arg,_5f){
var b=false;
for(var i=tt_aExt.length;i;){
--i;
var fnc=tt_aExt[i]["On"+_5f];
if(fnc&&fnc(arg)){
b=true;
}
}
return b;
}
tt_Init();

var zXml={useActiveX:(typeof ActiveXObject!="undefined"),useDom:document.implementation&&document.implementation.createDocument,useXmlHttp:(typeof XMLHttpRequest!="undefined")};
zXml.ARR_XMLHTTP_VERS=["MSXML2.XmlHttp.6.0","MSXML2.XmlHttp.3.0"];
zXml.ARR_DOM_VERS=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.3.0"];
function zXmlHttp(){
}
zXmlHttp.createRequest=function(){
if(zXml.useXmlHttp){
return new XMLHttpRequest();
}else{
if(zXml.useActiveX){
if(!zXml.XMLHTTP_VER){
for(var i=0;i<zXml.ARR_XMLHTTP_VERS.length;i++){
try{
new ActiveXObject(zXml.ARR_XMLHTTP_VERS[i]);
zXml.XMLHTTP_VER=zXml.ARR_XMLHTTP_VERS[i];
break;
}
catch(oError){
}
}
}
if(zXml.XMLHTTP_VER){
return new ActiveXObject(zXml.XMLHTTP_VER);
}else{
throw new Error("Could not create XML HTTP Request.");
}
}else{
throw new Error("Your browser doesn't support an XML HTTP Request.");
}
}
};
zXmlHttp.isSupported=function(){
return zXml.useXmlHttp||zXml.useActiveX;
};
function zXmlDom(){
}
zXmlDom.createDocument=function(){
if(zXml.useDom){
var _2=document.implementation.createDocument("","",null);
_2.parseError={valueOf:function(){
return this.errorCode;
},toString:function(){
return this.errorCode.toString();
}};
_2.__initError__();
_2.addEventListener("load",function(){
this.__checkForErrors__();
this.__changeReadyState__(4);
},false);
return _2;
}else{
if(zXml.useActiveX){
if(!zXml.DOM_VER){
for(var i=0;i<zXml.ARR_DOM_VERS.length;i++){
try{
new ActiveXObject(zXml.ARR_DOM_VERS[i]);
zXml.DOM_VER=zXml.ARR_DOM_VERS[i];
break;
}
catch(oError){
}
}
}
if(zXml.DOM_VER){
return new ActiveXObject(zXml.DOM_VER);
}else{
throw new Error("Could not create XML DOM document.");
}
}else{
throw new Error("Your browser doesn't support an XML DOM document.");
}
}
};
zXmlDom.isSupported=function(){
return zXml.useDom||zXml.useActiveX;
};
var oMozDocument=null;
if(typeof XMLDocument!="undefined"){
oMozDocument=XMLDocument;
}else{
if(typeof Document!="undefined"){
oMozDocument=Document;
}
}
if(oMozDocument&&!window.opera){
oMozDocument.prototype.readyState=0;
oMozDocument.prototype.onreadystatechange=null;
oMozDocument.prototype.__changeReadyState__=function(_4){
this.readyState=_4;
if(typeof this.onreadystatechange=="function"){
this.onreadystatechange();
}
};
oMozDocument.prototype.__initError__=function(){
this.parseError.errorCode=0;
this.parseError.filepos=-1;
this.parseError.line=-1;
this.parseError.linepos=-1;
this.parseError.reason=null;
this.parseError.srcText=null;
this.parseError.url=null;
};
oMozDocument.prototype.__checkForErrors__=function(){
if(this.documentElement.tagName=="parsererror"){
var _5=/>([\s\S]*?)Location:([\s\S]*?)Line Number (\d+), Column (\d+):<sourcetext>([\s\S]*?)(?:\-*\^)/;
_5.test(this.xml);
this.parseError.errorCode=-999999;
this.parseError.reason=RegExp.$1;
this.parseError.url=RegExp.$2;
this.parseError.line=parseInt(RegExp.$3);
this.parseError.linepos=parseInt(RegExp.$4);
this.parseError.srcText=RegExp.$5;
}
};
oMozDocument.prototype.loadXML=function(_6){
this.__initError__();
this.__changeReadyState__(1);
var _7=new DOMParser();
var _8=_7.parseFromString(_6,"text/xml");
while(this.firstChild){
this.removeChild(this.firstChild);
}
for(var i=0;i<_8.childNodes.length;i++){
var _a=this.importNode(_8.childNodes[i],true);
this.appendChild(_a);
}
this.__checkForErrors__();
this.__changeReadyState__(4);
};
oMozDocument.prototype.__load__=oMozDocument.prototype.load;
oMozDocument.prototype.load=function(_b){
this.__initError__();
this.__changeReadyState__(1);
this.__load__(_b);
};
Node.prototype.__defineGetter__("xml",function(){
var _c=new XMLSerializer();
return _c.serializeToString(this,"text/xml");
});
Node.prototype.__defineGetter__("text",function(){
var _d="";
for(var i=0;i<this.childNodes.length;i++){
if(this.childNodes[i].hasChildNodes()){
_d+=this.childNodes[i].text;
}else{
_d+=this.childNodes[i].nodeValue;
}
}
return _d;
});
}
function zXslt(){
}
zXslt.transformToText=function(_f,_10){
if(typeof XSLTProcessor!="undefined"){
var _11=new XSLTProcessor();
_11.importStylesheet(_10);
var _12=_11.transformToDocument(_f);
var _13=_12.xml;
if(_13.indexOf("<transformiix:result")>-1){
_13=_13.substring(_13.indexOf(">")+1,_13.lastIndexOf("<"));
}
return _13;
}else{
if(zXml.useActiveX){
return _f.transformNode(_10);
}else{
throw new Error("No XSLT engine found.");
}
}
};
function zXPath(){
}
zXPath.selectNodes=function(_14,_15,_16){
if(typeof XPathEvaluator!="undefined"){
_16=_16||{};
var _17=function(_18){
return _16[_18];
};
var _19=new XPathEvaluator();
var _1a=_19.evaluate(_15,_14,_17,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);
var _1b=new Array;
if(_1a!=null){
var _1c=_1a.iterateNext();
while(_1c){
_1b.push(_1c);
_1c=_1a.iterateNext();
}
}
return _1b;
}else{
if(zXml.useActiveX){
if(_16){
var _1d="";
for(var _1e in _16){
_1d+="xmlns:"+_1e+"='"+_16[_1e]+"' ";
}
_14.ownerDocument.setProperty("SelectionNamespaces",_1d);
}
return _14.selectNodes(_15);
}else{
throw new Error("No XPath engine found.");
}
}
};
zXPath.selectSingleNode=function(_1f,_20,_21){
if(typeof XPathEvaluator!="undefined"){
_21=_21||{};
var _22=function(_23){
return _21[_23];
};
var _24=new XPathEvaluator();
var _25=_24.evaluate(_20,_1f,_22,XPathResult.FIRST_ORDERED_NODE_TYPE,null);
if(_25!=null){
return _25.singleNodeValue;
}else{
return null;
}
}else{
if(zXml.useActiveX){
if(_21){
var _26="";
for(var _27 in _21){
_26+="xmlns:"+_27+"='"+_21[_27]+"' ";
}
_1f.ownerDocument.setProperty("SelectionNamespaces",_26);
}
return _1f.selectSingleNode(_20);
}else{
throw new Error("No XPath engine found.");
}
}
};
function zXMLSerializer(){
}
zXMLSerializer.prototype.serializeToString=function(_28){
var _29="";
switch(_28.nodeType){
case 1:
_29="<"+_28.tagName;
for(var i=0;i<_28.attributes.length;i++){
_29+=" "+_28.attributes[i].name+"=\""+_28.attributes[i].value+"\"";
}
_29+=">";
for(var i=0;i<_28.childNodes.length;i++){
_29+=this.serializeToString(_28.childNodes[i]);
}
_29+="</"+_28.tagName+">";
break;
case 3:
_29=_28.nodeValue;
break;
case 4:
_29="<![CDATA["+_28.nodeValue+"]]>";
break;
case 7:
_29="<?"+_28.nodevalue+"?>";
break;
case 8:
_29="<!--"+_28.nodevalue+"-->";
break;
case 9:
for(var i=0;i<_28.childNodes.length;i++){
_29+=this.serializeToString(_28.childNodes[i]);
}
break;
}
return _29;
};

var DatePickerFormatter=Class.create();
DatePickerFormatter.prototype={initialize:function(_1,_2){
if(typeof (_1)=="undefined"){
_1=["yyyy","mm","dd"];
}
if(typeof (_2)=="undefined"){
_2="-";
}
this._format=_1;
this.separator=_2;
this._format_year_index=_1.indexOf("yyyy");
this._format_month_index=_1.indexOf("mm");
this._format_day_index=_1.indexOf("dd");
this._year_regexp=/^\d{4}$/;
this._month_regexp=/^0\d|1[012]|\d$/;
this._day_regexp=/^0\d|[12]\d|3[01]|\d$/;
},match:function(_3){
d=_3.split(this.separator);
if(d.length<3){
return false;
}
year=d[this._format_year_index].match(this._year_regexp);
if(year){
year=year[0];
}else{
return false;
}
month=d[this._format_month_index].match(this._month_regexp);
if(month){
month=month[0];
}else{
return false;
}
day=d[this._format_day_index].match(this._day_regexp);
if(day){
day=day[0];
}else{
return false;
}
return [year,month,day];
},current_date:function(){
var d=new Date;
return this.date_to_string(d.getFullYear(),d.getMonth()+1,d.getDate());
},date_to_string:function(_5,_6,_7,_8){
if(typeof (_8)=="undefined"){
_8=this.separator;
}
var a=[0,0,0];
a[this._format_year_index]=_5;
a[this._format_month_index]=this.leftpad_with_zeroes(_6,2);
a[this._format_day_index]=this.leftpad_with_zeroes(_7,2);
return a.join(_8);
},leftpad_with_zeroes:function(_a,_b){
var _c="";
for(var i=0;i<(_b-String(_a).length);i++){
_c+="0";
}
return _c+_a;
}};
var DatePicker=Class.create();
DatePicker.prototype={Version:"dev",_relative:null,_div:null,_zindex:1,_keepFieldEmpty:false,_daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],_language:"en",_language_month:$H({"en":["January","February","March","April","May","June","July","August","September","October","November","December"]}),_language_day:$H({"en":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}),_language_date_format:$H({"en":[["dd","mm","yyyy"],"/"]}),_todayDate:new Date(),_current_date:null,_clickCallback:Prototype.emptyFunction,_cellCallback:Prototype.emptyFunction,_id_datepicker:null,_topOffset:30,_leftOffset:0,_isPositionned:false,_relativePosition:true,_setPositionTop:0,_setPositionLeft:0,_showEffect:"appear",_showDuration:1,_enableShowEffect:true,_closeEffect:"fade",_closeEffectDuration:0.3,_datePickerToStartOnIfEmpty:null,_enableCloseEffect:true,_afterClose:Prototype.emptyFunction,getMonthLocale:function(_e){
return this._language_month.get(this._language)[_e];
},getLocaleClose:function(){
return "close";
},_initCurrentDate:function(){
this._df=new DatePickerFormatter(this._language_date_format.get(this._language)[0],this._language_date_format.get(this._language)[1]);
if($(this._relative).value==""){
if(this._datePickerToStartOnIfEmpty!=null){
this._current_date=$(this._datePickerToStartOnIfEmpty._relative).value;
}else{
this._current_date=$F(this._relative);
}
}else{
this._current_date=$F(this._relative);
}
if(!this._df.match(this._current_date)){
this._current_date=this._df.current_date();
this._current_date=this._df.current_date();
if(!this._keepFieldEmpty){
$(this._relative).value=this._current_date;
}
}
var _f=this._df.match(this._current_date);
this._current_year=Number(_f[0]);
this._current_mon=Number(_f[1])-1;
this._current_day=Number(_f[2]);
},initialize:function(h_p){
this._relative=h_p["relative"];
if(h_p["language"]){
this._language=h_p["language"];
}
this._zindex=(h_p["zindex"])?parseInt(Number(h_p["zindex"])):1;
if(typeof (h_p["keepFieldEmpty"])!="undefined"){
this._keepFieldEmpty=h_p["keepFieldEmpty"];
}
if(typeof (h_p["clickCallback"])=="function"){
this._clickCallback=h_p["clickCallback"];
}
if(typeof (h_p["leftOffset"])!="undefined"){
this._leftOffset=parseInt(h_p["leftOffset"]);
}
if(typeof (h_p["topOffset"])!="undefined"){
this._topOffset=parseInt(h_p["topOffset"]);
}
if(typeof (h_p["relativePosition"])!="undefined"){
this._relativePosition=h_p["relativePosition"];
}
if(typeof (h_p["showEffect"])!="undefined"){
this._showEffect=h_p["showEffect"];
}
if(typeof (h_p["enableShowEffect"])!="undefined"){
this._enableShowEffect=h_p["enableShowEffect"];
}
if(typeof (h_p["showDuration"])!="undefined"){
this._showDuration=h_p["showDuration"];
}
if(typeof (h_p["closeEffect"])!="undefined"){
this._closeEffect=h_p["closeEffect"];
}
if(typeof (h_p["datePickerToStartOnIfEmpty"])!="undefined"){
this._datePickerToStartOnIfEmpty=h_p["datePickerToStartOnIfEmpty"];
}
if(typeof (h_p["enableCloseEffect"])!="undefined"){
this._enableCloseEffect=h_p["enableCloseEffect"];
}
if(typeof (h_p["closeEffectDuration"])!="undefined"){
this._closeEffectDuration=h_p["closeEffectDuration"];
}
if(typeof (h_p["afterClose"])=="function"){
this._afterClose=h_p["afterClose"];
}
if(typeof (h_p["externalControl"])!="undefined"){
this._externalControl=h_p["externalControl"];
}
if(typeof (h_p["cellCallback"])=="function"){
this._cellCallback=h_p["cellCallback"];
}
this._setPositionTop=(h_p["setPositionTop"])?parseInt(Number(h_p["setPositionTop"])):0;
this._setPositionLeft=(h_p["setPositionLeft"])?parseInt(Number(h_p["setPositionLeft"])):0;
this._id_datepicker="datepicker-"+this._relative;
this._id_datepicker_prev=this._id_datepicker+"-prev";
this._id_datepicker_next=this._id_datepicker+"-next";
this._id_datepicker_hdr=this._id_datepicker+"-header";
this._id_datepicker_ftr=this._id_datepicker+"-footer";
this._div=Builder.node("div",{id:this._id_datepicker,className:"datepicker",style:"display: none; z-index: "+this._zindex},[Builder.node("div",{className:"datepicker-header"},[Builder.node("span",{id:this._id_datepicker_prev,style:"cursor: pointer;"}," << "),Builder.node("span",{id:this._id_datepicker_hdr}),Builder.node("span",{id:this._id_datepicker_next,style:"cursor: pointer;"}," >> ")]),Builder.node("div",{className:"datepicker-calendar"},[Builder.node("table",{id:this._id_datepicker+"-table"})]),Builder.node("div",{id:this._id_datepicker_ftr,className:"datepicker-footer"})]);
Event.observe(this._relative,"click",this.click.bindAsEventListener(this),false);
Event.observe(window,"load",this.load.bindAsEventListener(this),false);
if(h_p["afterDhtml"]){
this.load();
}
},load:function(){
if(this._externalControl){
Event.observe(this._externalControl,"click",this.click.bindAsEventListener(this),false);
}
if(this._relativePosition){
if($(this._relative).parentNode){
$(this._relative).parentNode.appendChild(this._div);
}
}else{
var _11=document.getElementsByTagName("body").item(0);
if(_11){
_11.appendChild(this._div);
}
if(this._setPositionTop||this._setPositionLeft){
this.setPosition(this._setPositionTop,this._setPositionLeft);
}
}
this._initCurrentDate();
$(this._id_datepicker_ftr).innerHTML=this.getLocaleClose();
Event.observe($(this._id_datepicker_prev),"click",this.prevMonth.bindAsEventListener(this),false);
Event.observe($(this._id_datepicker_next),"click",this.nextMonth.bindAsEventListener(this),false);
Event.observe($(this._id_datepicker_ftr),"click",this.close.bindAsEventListener(this),false);
},visible:function(){
return $(this._id_datepicker).visible();
},click:function(){
if(!this._isPositionned&&this._relativePosition){
var _12=Position.positionedOffset($(this._relative));
$(this._id_datepicker).setStyle({"left":Number(_12[0]+this._leftOffset)+"px","top":Number(_12[1]+this._topOffset)+"px"});
this._isPositionned=true;
}
if(!this.visible()){
this._initCurrentDate();
this._redrawCalendar();
}
eval(this._clickCallback());
if(this._enableShowEffect){
new Effect.toggle(this._id_datepicker,this._showEffect,{duration:this._showDuration});
}else{
$(this._id_datepicker).show();
}
},close:function(){
if(this._enableCloseEffect){
switch(this._closeEffect){
case "puff":
new Effect.Puff(this._id_datepicker,{duration:this._closeEffectDuration});
break;
case "blindUp":
new Effect.BlindUp(this._id_datepicker,{duration:this._closeEffectDuration});
break;
case "dropOut":
new Effect.DropOut(this._id_datepicker,{duration:this._closeEffectDuration});
break;
case "switchOff":
new Effect.SwitchOff(this._id_datepicker,{duration:this._closeEffectDuration});
break;
case "squish":
new Effect.Squish(this._id_datepicker,{duration:this._closeEffectDuration});
break;
case "fold":
new Effect.Fold(this._id_datepicker,{duration:this._closeEffectDuration});
break;
case "shrink":
new Effect.Shrink(this._id_datepicker,{duration:this._closeEffectDuration});
break;
default:
new Effect.Fade(this._id_datepicker,{duration:this._closeEffectDuration});
break;
}
}else{
$(this._id_datepicker).hide();
}
eval(this._afterClose());
},setPosition:function(t,l){
var _15={"top":"0px","left":"0px"};
if(typeof (t)!="undefined"){
_15["top"]=Number(t)+this._topOffset+"px";
}
if(typeof (l)!="undefined"){
_15["left"]=Number(l)+this._leftOffset+"px";
}
$(this._id_datepicker).setStyle(_15);
this._isPositionned=true;
},_leftpad_zero:function(str,_17){
var _18="";
for(var i=0;i<(_17-String(str).length);i++){
_18+="0";
}
return _18+str;
},_getMonthDays:function(_1a,_1b){
if(((0==(_1a%4))&&((0!=(_1a%100))||(0==(_1a%400))))&&(_1b==1)){
return 29;
}
return this._daysInMonth[_1b];
},_buildCalendar:function(){
var _1c=this;
var _1d=document.createElement("tbody");
var _1e=document.createElement("tr");
this._language_day.get(this._language).each(function(_1f){
var td=document.createElement("td");
td.innerHTML=_1f;
td.className="wday";
_1e.appendChild(td);
});
_1d.appendChild(_1e);
var a_d=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];
var d=new Date(this._current_year,this._current_mon,1,12);
var _23=(!d.getDay())?6:d.getDay()-1;
var _24=this._getMonthDays(this._current_year,this._current_mon);
var _25=1;
for(var j=_23;j<7;j++){
a_d[0][j]={d:_25,m:this._current_mon,y:this._current_year};
_25++;
}
var _27=this._prevMonthYear();
var _28=this._getMonthDays(_27[1],_27[0]);
for(var j=0;j<_23;j++){
a_d[0][j]={d:Number(_28-_23+j+1),m:Number(_27[0]),y:_27[1],c:"outbound"};
}
var _29=false;
var _2a=this._current_mon;
var _2b=this._current_year;
for(var i=1;i<6;i++){
for(var j=0;j<7;j++){
a_d[i][j]={d:_25,m:_2a,y:_2b,c:(_29)?"outbound":(((_25==this._todayDate.getDate())&&(this._current_mon==this._todayDate.getMonth())&&(this._current_year==this._todayDate.getFullYear()))?"today":null)};
_25++;
if(_25>_24){
_25=1;
_29=true;
if(this._current_mon+1>11){
_2a=0;
_2b+=1;
}else{
_2a+=1;
}
}
}
}
for(var i=0;i<6;i++){
var tr=document.createElement("tr");
for(var j=0;j<7;j++){
var _2e=a_d[i][j];
var td=document.createElement("td");
var id=$A([this._relative,this._df.date_to_string(_2e["y"],_2e["m"]+1,_2e["d"],"-")]).join("-");
td.setAttribute("id",id);
if(_2e["c"]){
td.className=_2e["c"];
}
td.onclick=function(){
$(_1c._relative).value=String($(this).readAttribute("id")).replace(_1c._relative+"-","").replace(/-/g,_1c._df.separator);
if(_1c._cellCallback){
_1c._cellCallback(this);
}
_1c.close();
};
td.innerHTML=_2e["d"];
tr.appendChild(td);
}
_1d.appendChild(tr);
}
return _1d;
},_nextMonthYear:function(){
var _31=this._current_mon;
var _32=this._current_year;
if(_31+1>11){
_31=0;
_32+=1;
}else{
_31+=1;
}
return [_31,_32];
},nextMonth:function(){
var _33=this._nextMonthYear();
this._current_mon=_33[0];
this._current_year=_33[1];
this._redrawCalendar();
},_prevMonthYear:function(){
var _34=this._current_mon;
var _35=this._current_year;
if(_34-1<0){
_34=11;
_35-=1;
}else{
_34-=1;
}
return [_34,_35];
},prevMonth:function(){
var _36=this._prevMonthYear();
this._current_mon=_36[0];
this._current_year=_36[1];
this._redrawCalendar();
},_redrawCalendar:function(){
this._setLocaleHdr();
var _37=$(this._id_datepicker+"-table");
try{
while(_37.hasChildNodes()){
_37.removeChild(_37.childNodes[0]);
}
}
catch(e){
}
_37.appendChild(this._buildCalendar());
},_setLocaleHdr:function(){
var _38=this._nextMonthYear();
$(this._id_datepicker_next).setAttribute("title",this.getMonthLocale(_38[0])+" "+_38[1]);
var _39=this._prevMonthYear();
$(this._id_datepicker_prev).setAttribute("title",this.getMonthLocale(_39[0])+" "+_39[1]);
$(this._id_datepicker_hdr).update("&nbsp;&nbsp;&nbsp;"+this.getMonthLocale(this._current_mon)+"&nbsp;"+this._current_year+"&nbsp;&nbsp;&nbsp;");
}};

