var _isIE=(((navigator.appName).indexOf("Microsoft")>-1)?true:false);
var _isSafari=(((navigator.userAgent).indexOf("Safari")>-1)?true:false);
var _isDebug=false;
var _defaultUpdatingIcon="<img style=\"vertical-align: middle\" src=\""+www_root+"/img/a-warning-icon-gold.gif\" width=\"22\" height=\"18\" alt=\"!\">&nbsp;&nbsp;";
var _defaultUpdatingMessage="Updating results...";
var _updatingResultsMessage=null;
var messageBoxDelay=1000;
var _currentPageNum=0;
var pageOffsets=[0];
var _numrows;
var isFlexDate=false;

function clearPages(){
        _currentPageNum=0;
        pageOffsets=[0];
}

function fNumRows(v){
        _numrows=(v>_filtered.length?_filtered.length:v);
        pgNums();
}

function sumbitEmail(_2,_3){
        if(_2.value.length==0||!validateEmail(_2.value)){
                try{
                _2.focus();
                }catch(ignored){
                }
                
        alert("Please enter a valid email address.");
        return false;
        }
        
        try{
                _3.disabled=true;
        } catch(ignored){
        }
        
        return true;
}

function getUpdateMessage(_4){
        var _5=_defaultUpdatingIcon;
        if(_updatingResultsMessage!=null&&_updatingResultsMessage.length>0) {
                _5+=_updatingResultsMessage;
        } else {
                if(_4!=null&&_4.length>0){ 
                        _5+=_4;
                } else {
                        _5+=_defaultUpdatingMessage;
                }
        }
        return _5;
}

function resizeNumRows(v,_7){
setTop(0);
fNumRows(v);
if(_7!=null){
SetCookie(_7,v,365);
}
showmessage(getUpdateMessage());
function resizeUpdate(){
updateTable("resultsPerPage_"+v);
window.setTimeout(hidemessage,messageBoxDelay);
_updatingResultsMessage=null;
}
window.setTimeout(resizeUpdate,50);
}


function pgNums(){
try{
var _8=Math.floor(_filtered.length/_numrows)+((_filtered.length%_numrows>0)?1:0);
document.getElementById("page2Num").innerHTML="Page "+(_currentPageNum-0+1)+" of "+_8;
}
catch(ignored){
}
if(pageOffsets.length==1){
document.getElementById("bottomPageControls").style.display="none";
}else{
document.getElementById("bottomPageControls").style.display="inline";
}
if(_currentPageNum==0||_filtered.length==0){
document.getElementById("prevPage2").style.visibility="hidden";
document.getElementById("prevPage2").style.display="none";
document.getElementById("prevPage2Off").style.display="inline";
}else{
document.getElementById("prevPage2").style.visibility="visible";
document.getElementById("prevPage2").style.display="inline";
document.getElementById("prevPage2Off").style.display="none";
}
if(_filtered.length==0||(pageOffsets.length==_currentPageNum+1)){
document.getElementById("nextPage2").style.visibility="hidden";
document.getElementById("nextPage2").style.display="none";
document.getElementById("nextPage2Off").style.display="inline";
}else{
document.getElementById("nextPage2").style.visibility="visible";
document.getElementById("nextPage2").style.display="inline";
document.getElementById("nextPage2Off").style.display="none";
}
}

function nextpage(_9){
        _currentPageNum+=(_9-0);
        updateTable((_9-0)<0?"prevpage":"nextpage");
        try{
                document.getElementById("content_div").scrollIntoView(true);
                //document.getElementById("hotelmap").scrollIntoView(true);
        }
                catch(ignored){
        }
}

function setTop(i){
document.getElementById("pagefirstrow").value=i;
pgNums();
}

function computeFiltered(){
        _filtered=new Array();
        var k=0;
        var _c=new FilterFunctions();
        _c.setup();
        for(var j=0;j<_r.length;j++){
        var i=_r[j]._order;
                if(_r[i]._vs<0){
                        continue;
                }
                if(_c.includeRow(i)){
                        _filtered[k++]=i;
                }
        }
        document.getElementById("filtered_count").innerHTML=_filtered.length;
}

function noop(){
}

function refilter(_f,_10,_11){
        var _12=new Date();
        showmessage(getUpdateMessage());
        var _13=_f;
        
        function doRefilter(){
        var _14=new Date();
                clearPages();
                var nr=parseInt(document.resultsPaging.rowsper.value);
                if(_10==null||_10){
                setTop(0);
                }
                _13();
                computeFiltered();
                if(nr>_numrows){
                fNumRows(nr);
                }
                if(_lastsort==null){
                updateTable(_11);
                }else{
                _lastsort(_lastdirection,_11);
                }
                var _16=new Date();
                var _17=messageBoxDelay-(_16.getTime()-_12.getTime());
                window.setTimeout(hidemessage,((_17>0)?_17:1));
                _updatingResultsMessage=null;
                var end=new Date();
                //addAdt("filtertime."+(end.getTime()-_14.getTime()));
        }
        
        window.setTimeout(doRefilter,25);
}

function sortresults(_19) {
        var _1a=new Date();
        showmessage(getUpdateMessage("Sorting results..."));
        var _1b=_19;
        function doSort() {
                var _1c=new Date();
                clearPages();
                _1b();
                var _1d=new Date();
                var _1e=messageBoxDelay-(_1d.getTime()-_1a.getTime());
                window.setTimeout(hidemessage,((_1e>0)?_1e:1));
                _updatingResultsMessage=null;
                var end=new Date();
                addAdt("sorttime."+(end.getTime()-_1c.getTime()));
        }
        window.setTimeout(doSort,25);
}


var _maxprice=999999;

function pricerange(){
        var i=document.resultUI.price_to.selectedIndex;
        _maxprice=document.resultUI.price_to[i].value;
}

function openNewWindow(_21,url,_23,_24){
        var _25="title="+_21+",width="+_23+",height="+_24+",location=no,menubar=no,resizable=yes,toolbar=no,status=no,scrollbars=yes";
        var _26=window.open(url,"name",_25);
        if(_26==null){
                alert("Please make sure you are not blocking popups.");
        }else{
                _26.focus();
        }
}

function openHotelDetail(url){
openNewWindow("hoteldetail",url,650,600);
}


var _blankimg="&nbsp;<img src=\""+www_root+"/img/1x1_blank.gif\" width=\"7\" height=\"6\" align=\"absmiddle\">";
var _sortup="&nbsp;<img src=\""+www_root+"/img/sort_up.gif\" width=\"7\" height=\"6\" align=\"absmiddle\">";
var _sortdown="&nbsp;<img src=\""+www_root+"/img/sort_down.gif\" width=\"7\" height=\"6\" align=\"absmiddle\">";

function sortImg(_28){
        return (_28?_sortup:_sortdown);
}


var _ps="results_price";
var _ds="results_data";
var _dsbk="results_book";
var _dsm="results_dataMono";
var _dsb="results_dataBold";

function thdr(_29,_2a,_2b,_2c,_2d,_2e){
        var tag="<th class=\"results_headerNoSort"+((_2e)?" "+_2e:"")+"\"";
        if(_2a){
                tag="<th class=\"results_headerSort"+((_2e)?" "+_2e:"")+"\"";
        }
        if(_2b){
                tag+=" width=\""+_2b+"\"";
        }
        if(_2c){
                tag+=" align=\""+_2c+"\"";
        }
        if(_2d){
                tag+=" colspan="+_2d;
        }
        return tag+" nowrap>"+_29+"</th>";
}

function tdata(_30,_31,_32,_33,_34){
        var tag="<td";
        if(_31){
                tag="<td class=\""+_31+"\"";
        }
        if(_32&&_32!="-1"){
                tag+=" width=\""+_32+"\"";
        }
        if(_33){
                tag+=" align=\""+_33+"\"";
        }
        if(_34){
                tag+=" colspan="+_34;
        }
        
        return tag+">"+_30+"</td>";
}


function nowrap(_36,_37,_38,_39,_3a){
        var tag="<td nowrap";
        if(_37){
                tag+=" class=\""+_37+"\"";
        }
        if(_38){
                tag+=" width=\""+_38+"\"";
        }
        if(_39){
                tag+=" align=\""+_39+"\"";
        }
        if(_3a){
                tag+=" colspan="+_3a;
        }
        
        return tag+">"+_36+"</td>";
}


function thead(_3c,_3d){
if(_3d){
return "<th colspan="+_3d+">"+_3c+"</th>";
}else{
return "<th>"+_3c+"</th>";
}
}

function trow(_3e,_3f){
if(_3f==null){
return "<tr align='center'>"+_3e+"</tr>";
}else{
return "<tr align='center' class='"+_3f+"'>"+_3e+"</tr>";
}
}

function table(_40,_41){
var pad=0;
if(_41){
pad=_41;
}
return "<table width='100%' border='0' cellpadding='"+pad+"' cellspacing='0'>"+_40+"</table>";
}


var msg="<p class=\"error\">The search session has expired.</p>";

function setError(id){
setHTML(document,id,msg);
}

function setHTML(_44,id,_46){
try{
_44.getElementById(id).innerHTML=_46;
}
catch(e){
window.status=exceptionMsg(e);
}
}

function exceptionMsg(e){
var _48="Exception debug:"+(typeof e=="string")?e:((e.message)?e.message:"Unknown Error");
return _48;
}


function beep(){
}


function displayDuration(_49){
var _4a=_49%60;
if(_4a<10){
_4a="0"+_4a;
}
var hrs=(_49-_4a)/60;
return replaceArgs("{0}h {1}m",hrs,_4a);
}

function displayMoney(_4c,_4d){
return "$"+(_4d=="no"?_4c:roundMoney(_4c));
}
function displayMoneyNoCurrency(_4e,_4f){
return (_4f=="no"?_4e:roundMoney(_4e));
}
function roundMoney(_50){
return parseInt(_50+0.5);
}
var _showimg="<img src=\""+www_root+"/img/foldoutmenu_arrow_open.gif\" width=15 height=14 align=\"absmiddle\">";
var _hideimg="<img src=\""+www_root+"/img/foldoutmenu_arrow.gif\" width=15 height=14 align=\"absmiddle\">";
var hiddenDivs=new Array();
function sethidden(id){
hiddenDivs[id]=false;
}
function toggleDiv(id){
if(hiddenDivs[id]==false){
return showDiv(id);
}else{
return hideDiv(id);
}
}
function hideDiv(id){
if(!_isIE){
document.getElementById(id).style.height=2;
document.getElementById(id).style.visibility="hidden";
}else{
document.getElementById(id).style.display="none";
}
setHTML(document,id+"arrow",_hideimg);
return (hiddenDivs[id]=false);
}
function showDiv(id){
if(!_isIE){
document.getElementById(id).style.height="auto";
document.getElementById(id).style.visibility="visible";
}else{
document.getElementById(id).style.display="inline";
}
setHTML(document,id+"arrow",_showimg);
return (hiddenDivs[id]=true);
}
function getSelectByValue(_55,_56){
for(var i=0;i<_55.length;i++){
if(_55[i].value==_56){
return i;
}
}
return -1;
}
function sizeForBrowser(){
var _58=document.resultsPaging.rowsper.value;
var _59=screen.width;
var _5a=screen.height;
var j=document.resultsPaging.rowsper.selectedIndex;
document.resultsPaging.rowsper[j].selected=false;
j=0;
if(_59>=800&&_5a>=600){
j++;
}
if(_59>1024&&_5a>768){
j++;
}
document.resultsPaging.rowsper[j].selected=true;
_58=document.resultsPaging.rowsper.value;
return _58;
}
function showResultsMessage(_5c){
document.getElementById("resultmessage").innerHTML=_5c;
}
function hideResultsMessage(){
document.getElementById("resultmessage").innerHTML="";
}
function dtl_cb(){
this.onLoad=function(_5d){
if(_5d.xmlhttp.readyState==4){
if(_5d.xmlhttp.status==200){
if(_5d.getText().indexOf("bad")>=0){
window.alert("Sorry, but your session has timed out. Please rerun your search if you wish to book.");
}else{
var _5e=window.open(_5d.uservars.dtlURL,"bookit");
if(_5e){
_5e.focus();
}
}
}else{
}
}
};
this.onError=function(_5f,_60){
alert("Sorry, we could not retrive details.  Please try again.  If this continues to happen, please try your search again or send feedback.");
};
}
function dtl(_61,_62){
var _63=new Object();
_63.dtlURL=_62;
var _64=new R9HTTPXml();
_64.init(getProductVersionURI()+"/r9/affinity","action=session&anon=true&sid="+escape(_61),_63);
try{
_64.asyncGET(new dtl_cb());
}
catch(e){
alert(e);
}
}
var lastclickid=null;
var lastclickmsg="";
function itemClicked(id,_66){
_r[id]._vs=1;
if(lastclickid!=null){
_r[lastclickid]._vs=2;
if(document.getElementById("msg"+lastclickid)!=null){
document.getElementById("msg"+lastclickid).style.display="none";
document.getElementById("tbd"+lastclickid).style.backgroundColor="#eeeeee";
}
}
if(_isIE){
document.getElementById("msg"+id).style.display="block";
}else{
document.getElementById("msg"+id).style.display="table-row";
}
document.getElementById("tbd"+id).style.backgroundColor="#EEFFCC";
document.getElementById("resultmessage"+id).innerHTML=_66;
try{
showprices(id,true);
}
catch(ignored){
}
lastclickmsg=_66;
lastclickid=id;
}
function updateSearchFilter(cnt){
        var _68=document.getElementById("searchFilterTD");
        if(_68!=null){
                if(cnt==0){
                        _68.className="noresults";
                }else{
                        _68.className="results_box";
                }
        }
}
function showMessageAboveResults(_69){
try{
document.getElementById("resultmessage").innerHTML=_69;
if(_isIE){
document.getElementById("results_message_tr").style.display="block";
document.getElementById("results_message_tr_spacer").style.display="block";
}else{
document.getElementById("results_message_tr").style.display="table-row";
document.getElementById("results_message_tr_spacer").style.display="table-row";
}
}
catch(ignored){
}
}
var _lastEmailAttemptID=null;
function emailresult(_6a,_6b,idx){
var _6d=585;
var _6e=550;
var _6f=0;
var _70="?resultid="+_6a+"&searchid="+_6b;
var _71=window.open("/s/emailresult"+_70,"emailresult","scrollbars,height="+(_6d+_6f)+",width="+_6e+",menubar=no,toolbar=no,resizable");
if(_71!=null){
_lastEmailAttemptID=idx;
_71.focus();
}
}
function emailsuccess(){
if(_lastEmailAttemptID!=null){
try{
itemClicked(_lastEmailAttemptID,"Result details emailed and saved to your search history.");
_lastEmailAttemptID=null;
}
catch(ignored){
}
}
}
function stripdotcom(str){
var _73=str;
if(_73!=null&&_73.lastIndexOf(".com")>=3){
_73=_73.substring(0,_73.lastIndexOf(".com"));
}
if(str!=null&&_73.lastIndexOf(".fr")>4){
_73=_73.substring(0,_73.lastIndexOf(".fr"));
}
if(str!=null&&_73.lastIndexOf(".de")>4){
_73=_73.substring(0,_73.lastIndexOf(".de"));
}
if(str!=null&&_73.lastIndexOf(".us")>4){
_73=_73.substring(0,_73.lastIndexOf(".us"));
}
if(str!=null&&_73.lastIndexOf(".co.uk")>4){
_73=_73.substring(0,_73.lastIndexOf(".co.uk"));
}
if(str!=null&&_73.lastIndexOf(".co.us")>4){
_73=_73.substring(0,_73.lastIndexOf(".co.us"));
}
if(str!=null&&_73.lastIndexOf(".nic.in")>4){
_73=_73.substring(0,_73.lastIndexOf(".nic.in"));
}
while(_73.length>6&&_73.indexOf(".")>=0){
_73=_73.slice(_73.indexOf(".")+1);
}
return _73;
}
var pinnedResultList=new Array();
var displayPinnedItems=true;
var _itemremove="<a class='subtlelink' title='remove this result' class='rightmost' href=\"javascript:addAdt('remove');removeDisplay(";
var justPinned=-1;

function isPinned(idx) {
        for(var i=0;i<pinnedResultList.length;i++) {
                if(pinnedResultList[i]==idx) {
                        return true;
                }
        }
        return false;
}

function storePinned(_76){
var _77=new R9HTTPXml();
if(!_77.inprogress){
_77.init("/s/sparkle",_76,null);
try{
_77.asyncGET(null);
}
catch(ignored){
}
}
}
function addPinned(idx){
pinnedResultList.push(idx);
justPinned=idx;
updateTable("pin_"+_r[idx]._id);
justPinned=-1;
try{
document.getElementById("startsearchover").scrollIntoView(true);
}
catch(ignored){
}
var _79=getPinSaveFields(idx);
_79+="&add=Y&action=pinneditem";
storePinned(_79);
}
function removePinned(idx){
for(var i=0;i<pinnedResultList.length;i++){
if(pinnedResultList[i]==idx){
pinnedResultList.splice(i,1);
}
}
updateTable("unpin_"+_r[idx]._id);
var _7c=getPinSaveFields(idx);
_7c+="&add=N&action=pinneditem";
storePinned(_7c);
}
function removeDisplay(idx){
_r[idx]._vs=-1;
refilter(noop,false,"remove_result_"+_r[idx]._id);
}
function unpinAll(){
while(pinnedResultList.length>0){
var idx=pinnedResultList.shift();
var _7f=getPinSaveFields(idx);
_7f+="&add=N&action=pinneditem";
storePinned(_7f);
}
pinnedResultList=new Array();
updateTable("unpin_all");
}
function togglePinned(_80){
displayPinnedItems=!displayPinnedItems;
updateTable("display_pinned_"+displayPinnedItems);
}
function singleProvider(i){
if(typeof document.resultUI.pvdflt!="undefined"){
var _82=getRadioValue(document.resultUI.pvdflt);
if(_82!=""){
var _83=_82.indexOf(":");
if(_83>0){
_82=_82.slice(0,_83);
}
var _84=false;
for(var p=0;p<_r[i]._p.length;p++){
if(_r[i]._p[p]._code==_82){
_84=true;
break;
}
}
if(!_84){
return false;
}
}
}
return true;
}
function tryinitcalendar(){
if(!calendar.bCalendarCreated){
calendar.createCalendar(dteFirstValidDate,2,""+(dteFirstValidDate.getMonth()-0+1),""+dteFirstValidDate.getFullYear());
}
}
function togglesearchbox(_86){
var row=document.getElementById("researchentry");
var _88=document.getElementById("searchagainicon");
if(row!=null&&_88!=null){
if(row.style.display=="none"&&(_86==null)){
if(typeof local_togglesearchbox=="function"){
local_togglesearchbox();
}
showTableRow("researchentry");
_88.src=www_root+"/img/opencloseminus.gif";
}else{
hideTableRow("researchentry");
_88.src=www_root+"/img/opencloseplus.gif";
}
window.setTimeout("tryinitcalendar()",50);
}
}

function setSortArrow(){
        if(_lastsortid!=null&&_lastsortid!=_currentsortid){
        setHTML(document,_lastsortid,"");
        var _89=document.getElementById("hdr"+_lastsortid);
        if(_89!=null){
        _89.style.backgroundColor="#eeeeee";
        }
}

setHTML(document,_lastsortid=_currentsortid,sortImg(_lastdirection));
var _8a=document.getElementById("hdr"+_lastsortid);
if(_8a!=null){
_8a.style.backgroundColor="#cccccc";
}
}
function getBorderColor(_8b){
return (_8b)?"fc0":"dedede";
}



function getTopOfResultsRow(_8c,_8d,_8e){
if(typeof _8d=="undefined"){
_8d="dedede";
}
if(typeof _8e=="undefined"){
_8e="fff";
}
return "<tr><td class='bordercell'><img height='5' width='5' border='0' src='"+www_root+"/img/corners/"+_8e+"-"+_8d+"-ul.gif'></td><td class='bordercell' colspan='"+(_8c-2)+"' style='background-image:url("+www_root+"/img/corners/"+_8e+"-"+_8d+"-t.gif); background-repeat: repeat-x;'></td><td class='bordercell'><img border='0' height='5' width='5' src='"+www_root+"/img/corners/"+_8e+"-"+_8d+"-ur.gif'></td></tr>";
}

function getBottomOfResultsRow(_8f,_90,_91){
if(typeof _90=="undefined"){
_90="dedede";
}
if(typeof _91=="undefined"){
_91="fff";
}
return "<tr><td class='bordercell'><img height='5' width='5' border='0' src='"+www_root+"/img/corners/"+_91+"-"+_90+"-ll.gif'></td><td class='bordercell' colspan='"+(_8f-2)+"' style='background-image:url("+www_root+"/img/corners/"+_91+"-"+_90+"-b.gif); background-repeat: repeat-x'></td><td class='bordercell'><img border='0' height='5' width='5' src='"+www_root+"/img/corners/"+_91+"-"+_90+"-lr.gif'></td></tr>";
}

function getLeftOfResultsCell(_92,_93){
if(typeof _92=="undefined"){
_92="dedede";
}
if(typeof _93=="undefined"){
_93="fff";
}
return "<td class='repeaty' style='background-image:url("+www_root+"/img/corners/"+_93+"-"+_92+"-l.gif)'></td>";
}

function getRightOfResultsCell(_94,_95){
if(typeof _94=="undefined"){
_94="dedede";
}
if(typeof _95=="undefined"){
_95="fff";
}
return "<td class='repeaty' style='background-image:url("+www_root+"/img/corners/"+_95+"-"+_94+"-r.gif)'></td>";
}

function filterSectionClick(_96,_97){
if(_97==null){
_97=false;
}
var _98=document.getElementById("fs_content_"+_96);
var _99=document.getElementById("fs_outer_"+_96);
var _9a=document.getElementById("fs_headertext_"+_96);
if(_98==null){
return;
}
if(_9a.style.visibility!="hidden"){
_98.style.display="block";
_9a.style.visibility="hidden";
_99.style.backgroundColor="#dedede";
}else{
if(!_97){
_98.style.display="none";
_9a.style.visibility="visible";
if(previousFilterTip==_96){
clearToolTipColor();
hideAllTT();
}
}
}
}
function setFilterSectionText(_9b,_9c){
var _9d=document.getElementById("fs_headertext_"+_9b);
if(_9d==null){
return;
}
_9d.innerHTML=_9c;
}
function fsHeaderMOver(_9e){
var _9f=document.getElementById("fs_outer_"+_9e);
var _a0=document.getElementById("fs_headertext_"+_9e);
if(_9f==null){
return;
}
if(_a0.style.visibility=="hidden"){
return;
}
_9f.style.backgroundColor="#ffffde";
}
function fsHeaderMOut(_a1){
var _a2=document.getElementById("fs_outer_"+_a1);
var _a3=document.getElementById("fs_headertext_"+_a1);
if(_a2==null){
return;
}
if(_a3.style.visibility=="hidden"){
return;
}
_a2.style.backgroundColor="#dedede";
}
function refreshResults(){
window.location.reload();
}
var filterToolTips=null;
var previousFilterTip=null;
function localTTHidden(){
clearToolTipColor();
}
function clearToolTipColor(){
if(previousFilterTip!=null){
setFilterSectionColor([previousFilterTip],"#dedede");
}
}
function setFilterSectionColor(_a4,_a5){
if(_a4!=null){
for(var i=0;i<_a4.length;i++){
try{
var _a7=document.getElementById("fs_outer_"+_a4[i]);
_a7.style.backgroundColor=_a5;
}
catch(ignored){
}
}
}
}
function showMainFilterToolTip(){
addAdt("luhy");
showFilterToolTip(0);
}
function showFilterToolTip(idx){
addAdt("ttip."+idx);
if(filterToolTips==null){
return;
}
if(typeof idx=="undefined"){
idx=0;
}
var _a9=filterToolTips[idx];
var _aa;
if(_a9.isfiltersection){
_aa=document.getElementById("fs_outer_"+_a9.sectionname);
}else{
_aa=document.getElementById(_a9.sectionname);
}
if(_aa==null){
return;
}
clearToolTipColor();
if(_a9.isfiltersection){
previousFilterTip=_a9.sectionname;
filterSectionClick(_a9.sectionname,true);
}
var _ab="<table class='filterTipsControls'><tr>"+"<td width='33%' align='left'><button "+((idx==0)?"style='visibility: hidden'":"")+" onclick='showFilterToolTip("+(idx-1)+")'>&laquo; Back</button></td>"+"<td width='33%' align='center'><a href='javascript: clearToolTipColor();hideAllTT()'><b>Close tips</b></a></td>"+"<td width='33%' align='right'><button "+(((idx-0+1)<filterToolTips.length)?"":"style='visibility: hidden'")+" onclick='showFilterToolTip("+(idx-0+1)+")'>Next &raquo;</button></td>"+"</tr><tr><td>&nbsp;</td><td align='center'><div class='counter'>"+(idx+1)+" of "+filterToolTips.length+"</td><td></td></tr></table>";
showTT(_aa,document.getElementById(_a9.msgid).innerHTML+_ab,_a9.position);
if(_a9.isfiltersection&&_a9.sectionname!="flighttimes"){
var _ac=new Array();
_ac.push(_a9.sectionname);
setFilterSectionColor(_ac,"#ffffde");
}
try{
if(_a9.position=="BL"){
_aa.scrollIntoView(false);
}else{
_aa.scrollIntoView(true);
}
}
catch(ignored){
}
}
function showFareChartTip(){
if(document.getElementById("no_chart_data_helptext")!=null&&document.getElementById("farechartqmark")!=null){
showTT(document.getElementById("farechartqmark"),document.getElementById("no_chart_data_helptext").innerHTML,"TL");
}else{
alert("hello");
}
}
function getFilterSectionsArray(){
if(filterToolTips==null){
return null;
}
var _ad=new Array();
for(var i=0;i<filterToolTips.length;i++){
if(filterToolTips[i].isfiltersection){
_ad.push(filterToolTips[i].sectionname);
}
}
return _ad;
}
function showFilterUpsell(_af,_b0){
//var msg=replaceArgs(RANDOM_UPSELL_MESSAGE,_af,"<a class=\"actionlink\" href=\"javascript: showMainFilterToolTip()\">",_b0);
//window.setTimeout("_showFilterUpsell("+_af+",'"+_b0+"')",100);
}
function _showFilterUpsell(_b2,_b3){
//var msg=replaceArgs(RANDOM_UPSELL_MESSAGE,_b2,"<a class=\"actionlink\" href=\"javascript: showMainFilterToolTip()\">",_b3);
//showMessageAboveResults(msg);
}
function updateInterimProviderList(){
var src=document.getElementById("inlineProgressProviders");
var _b6=document.getElementById("displayProgressProviders");
if(src!=null&&_b6!=null){
_b6.innerHTML=src.innerHTML;
}
}
function getTopMessageRow(_b7,_b8){
return "<tr style=\"display: none\" id=\"results_message_tr\" align=\"left\"><td style=\"background-color: #fff;\" colspan=\""+_b7+"\"><table width=520 class=\"roundedcorners\" style=\"background-color: #ffffde\" cellspacing=\"0\" cellpadding=\"0\">"+getTopOfResultsRow(1,_b8)+"<tr>"+getLeftOfResultsCell(_b8)+"<td width=\"100%\"><span class=\"results_message\" id=\"resultmessage\"></span></td>"+getRightOfResultsCell(_b8)+"</tr>"+getBottomOfResultsRow(1,_b8)+"</table></td></tr><tr style=\"display: none\" id=\"results_message_tr_spacer\" align=\"left\"><td colspan=\"9\" class=\"resultblankrow\">&nbsp;</td></tr>";
}
function opacity(id,_ba,_bb,_bc){
var _bd=Math.round(_bc/100);
var _be=0;
if(_ba>_bb){
for(i=_ba;i>=_bb;i--){
setTimeout("changeOpac("+i+",'"+id+"')",(_be*_bd));
_be++;
}
}else{
if(_ba<_bb){
for(i=_ba;i<=_bb;i++){
setTimeout("changeOpac("+i+",'"+id+"')",(_be*_bd));
_be++;
}
}
}
}
function changeOpac(_bf,id){
var _c1=document.getElementById(id).style;
_c1.opacity=(_bf/101);
_c1.MozOpacity=(_bf/100);
_c1.KhtmlOpacity=(_bf/100);
_c1.visibility="visible";
}
function mkCurrency(amt){
return _LEFT_CURSYMBOL+amt+_RIGHT_CURSYMBOL;
}
// r9compressed

