if(typeof (IXIGO)=="undefined"){IXIGO={}}IXIGO.HotelInfo=function(){var C=null;this.hotelImages=[];this.currentTab="hotelDescription";
this.currentImageCarousel=0;this.selectedImageCarousel=null;this.marker=[];this.mapView=null;this.mapViewMarker=[];
this.mapHotelDetail=null;this.receivedLandmarkMap=[];this.jsHotelResponse=null;this.hotelReqForm=null;
this.receivedRates=[];this.pollingURL=null;this.pollTimer=null;this.redirectParams=null;var F,D,G;var B,E;
var A,H;this.ixiTransferBox=$("#ixiTransferBox");this.ixiTransferTip=$("#ixiTransferTip");this.ixiTransferShadow=$("#ixiTransferBox_bl, #ixiTransferBox_left, #ixiTransferBox_bottom, #ixiTransferBox_br");
this.ixiAssign=0;this.CountryCodes=["AF","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AC","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CY","CZ","DK","DJ","DM","DO","TP","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GP","GE","DE","GH","GI","GR","GL","GD","GU","GT","GG","GN","GW","GY","HT","HM","HN","HK","HU","IS","IN","ID","IR","IQ","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MI","MD","MC","MN","MS","MA","MZ","MM","NA","NR","NP","NL","AN","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","IE","RE","RO","RU","RW","LC","SM","ST","SA","SN","CS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","KR","ES","LK","SH","KN","PM","VC","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TG","TK","TO","TT","TN","TR","TM","TC","TV","UM","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","WS","YE","YU","ZR","ZM","ZW"];
this.CountryNames=["Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antartica","Antigua and Barbuda","Argentina","Armenia","Aruba","Ascension Island","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia n Herzegovina","Botswana","Bouvet Island","Brazil","Brtsh Ind Ocean Territory","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Islands","Cocos Keeling Islands","Columbia","Comoros","Congo","Congo, Dem Rep of the","Cook Islands","Costa Rica","Cote D&quot;ivoire","Croatia / Hrvatska","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Island[Malvinas]","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Sthrn Territories","Gabon","Gambia","Gaudeloupe","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guam","Guatemala","Guernsey","Guinea","Guinea Bissau","Guyana","Haiti","Heard n Mcdonald Islands","Honduras","Hong Kong Sar","Hungary","Iceland","India","Indonesia","Iran","Iraq","Isle of Mann","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakstan","Kenya","Kiribati","Korea Dem Peoples Rep","Kuwait","Kyrgystan","Lao Peoples Dem Republic","Latvia","Lebanon","Lesotho","Liberia","Libyan Arab Jamahiriya","Liechtenstein","Lithuania","Luxembourg","Macau Sar","Macedonia Fmr Yugslv Rep","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia, Fed State of","MIDWAY ISLAND","Moldova, Republic of","Monaco","Mongolia","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Palestinian Trrtrs Occpd","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn Island","Poland","Portugal","Puerto Rico","Qatar","Republic of Ireland","Reunion Island","Romania","Russian Federation","Rwanda","Saint Lucia","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia Montenegro","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia","South Korea","Spain","Sri Lanka","St Helena","St Kitts and Nevis","St Pierre and Miquelon","St Vncnt n the Grenadines","Sudan","Surinam","Svalbard n Jan Meyen Isld","Swaziland","Sweden","Switzerland","Syrian Arab Republic","Taiwan","Tajikistan","Tanzania","Thailand","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","U.S. Min Outlyng Islands","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands[British]","Virgin Islands[U.S.]","Wallis and Futuna Islands","Western Sahara","Western Samoa","Yemen","Yugoslavia","Zaire","Zambia","Zimbabwe"];
this.init=function(O,N,M){C=this;C.jsHotelResponse=M;C.hotelImages=M.images;F=O;D=N;if(C.hotelImages[0]){C.loadPictures()
}$(document).click(function(P){C.hideSearchBox(P.target)});if($("#htl_where").val().indexOf("India")==-1){$("#searchHotelTGBlock").hide();
$("#searchHotelCTBlock").show()}$(window).bind("keypress",function(P){if(P.keyCode==27){C.hideSearchBox(P.target)
}});$(document).ready(function(){if($("#hotelContentDesc")[0]){$("#hotelContentDesc").html($("#hotelContentDesc").html().replace(/\n/g,"<br/>"))
}});$("#imageCarousel").click(function(P){C.loadImage(P)}).mouseover(function(P){C.changeThumbImageStyle(P)
}).mouseout(function(P){C.changeThumbImageStyle(P)});$("#moreImages").click(function(){C.selectTab("hotelPicture")
});$("#hotelOverviewButton").mouseover(function(P){IXIGO.buttonHover("#hotelOverviewButton","","")}).mouseout(function(P){IXIGO.buttonHover("#hotelOverviewButton","","")
});$("#hotelOverviewButton").click(function(S){var Q=$(this).attr("num");C.showSearchBox(Q);if(C.ixiAssign==0){C.ixiAssign++;
$("#htl_checkIn_2").click(function(T){T.stopPropagation();C.showCalendar("htl_checkIn_2")}).focus(function(){C.showCalendar("htl_checkIn_2")
}).keypress(function(T){return T.keyCode!=13}).change(function(){C.setWeekDay("#cal1HtlWeekDay_2","#htl_checkIn_2");
C.checkReturnDate("#htl_checkIn_2","#htl_checkOut_2","hotel")});$("#htl_checkOut_2").click(function(T){T.stopPropagation();
C.showCalendar("htl_checkOut_2")}).focus(function(){C.showCalendar("htl_checkOut_2")}).keypress(function(T){return T.keyCode!=13
}).change(function(){C.setWeekDay("#cal2HtlWeekDay_2","#htl_checkOut_2")});$("#htl_rooms_2").focus(function(){$.hideCalendar()
}).change(function(){C.showRoom("htl_rooms_2")});$("#checkAvailability_2").click(function(){var V=$("#htl_where_2").val();
var U=$("#htl_rooms_2");var T=""+"/search/result/hotel/"+V+"/"+$("#htl_checkIn_2").val().replace(new RegExp("/","g"),"")+"/"+$("#htl_checkOut_2").val().replace(new RegExp("/","g"),"")+"/"+$("#htl_adult1_2").val()+"/"+$("#htl_children1_2").val()+"/";
if(U.val()=="2"){T+=$("#htl_adult2_2").val()+"/"+$("#htl_children2_2").val()+"/0/0"}else{if(U.val()=="3"){T+=$("#htl_adult2_2").val()+"/"+$("#htl_children2_2").val()+"/"+$("#htl_adult3_2").val()+"/"+$("#htl_children3_2").val()
}else{T+="0/0/0/0"}}T+="?hid="+Q;window.location.href=T}).mouseover(function(T){IXIGO.buttonHover("#checkAvailability_2","","")
}).mouseout(function(T){IXIGO.buttonHover("#checkAvailability_2","","")});var R=Date.today(),P=Date.today();
P.setDate(P.getDate()+7);R.setDate(R.getDate()+12-R.getDay());if(R.sameDay(P)||R.before(P)){R.setDate(R.getDate()+7)
}$("#htl_checkIn_2").val(R.toPaddedDate());$("#htl_checkIn_2, #htl_checkOut_2").trigger("change")}S.stopPropagation()
});$("#checkAvailability").click(function(){C.otaClick();C.onClickPrices()}).mouseover(function(P){IXIGO.buttonHover("#checkAvailability","","")
}).mouseout(function(P){IXIGO.buttonHover("#checkAvailability","","")});$("#landmarkPositionMap").click(function(P){C.landmarkPositionMapLocate(P)
});$("#image_next").click(function(){C.nextCarousel()});$("#image_previous").click(function(){C.previousCarousel()
});$("#ixiTransferClose").click(function(P){C.hideSearchBox(P.target)});$("#ixiTransferBody").click(function(P){P.stopPropagation()
});$("#contentHotelDescriptionFull").hide();C.processDescripton();this.autoComp=new Autocompleter.Ajax();
var K={indicator:"htl_where",className:"autocomplete twoeightyfive",min_chars:"3",width:"200",nbResults:"5",callback:function(){if($("#htl_where").val().toLowerCase().indexOf("india")===-1&&$("#htl_where").val()!=="e.g. London, United Kingdom"&&$("#htl_where").val()!==""){$("#searchHotelTGBlock").css("display","none");
$("#searchHotelTG")[0].checked=false;$("#searchHotelCTBlock").css("display","block")}else{$("#searchHotelTGBlock").css("display","block");
$("#searchHotelCTBlock").css("display","none");$("#searchHotelCT")[0].checked=false}}};this.autoComp.initialize("htl_where","/action/content/intlcity?searchFor=city&value=",K);
this.hotelReqForm=document.forms.hotelRequestForm;$("#htl_checkIn").click(function(P){P.stopPropagation();
C.showCalendar("htl_checkIn")}).focus(function(){C.showCalendar("htl_checkIn")}).keypress(function(P){return P.keyCode!=13
}).change(function(){C.setWeekDay("#cal1HtlWeekDay","#htl_checkIn");C.checkReturnDate("#htl_checkIn","#htl_checkOut","hotel");
C.showNight()});$("#htl_checkOut").click(function(P){P.stopPropagation();C.showCalendar("htl_checkOut")
}).focus(function(){C.showCalendar("htl_checkOut")}).keypress(function(P){return P.keyCode!=13}).change(function(){C.setWeekDay("#cal2HtlWeekDay","#htl_checkOut");
C.showNight()});$("#htl_rooms").focus(function(){$.hideCalendar()}).change(function(){C.showRoom("htl_rooms")
});$("#htl_where").keypress(function(P){return P.keyCode!=13}).focus(function(){C.setWhereOnFocus()}).blur(function(){C.setWhereOnBlur()
});if(this.hotelReqForm.htl_where.value===""){this.hotelReqForm.htl_where.value="e.g. London, United Kingdom";
this.hotelReqForm.htl_where.style.color="#999999"}E=Date.today();E.setFullYear(E.getFullYear()+1);B=E.clone();
B.setMonth(B.getMonth()-1);var L=Date.today(),I=Date.today();I.setDate(I.getDate()+7);L.setDate(L.getDate()+12-L.getDay());
if(L.sameDay(I)||L.before(I)){L.setDate(L.getDate()+7)}this.hotelReqForm.htl_checkIn.value=L.toPaddedDate();
$("#htl_checkIn, #htl_checkOut").trigger("change");this.showAds();if(location.hostname.indexOf("ixigo")!==-1&&(C.jsHotelResponse.latitude!==null&C.jsHotelResponse.longitude!==null)){var J=document.createElement("script");
J.type="text/javascript";J.src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAaFkhHqRKxmIC55Cw5dS1cRSVVb5P-P-81vc8SJK_4LEGVkGjEhSfxXw_tms7NnWvDcBG8yfIUb1Mxw&async=2&callback=window.hotelinfo.initializeMap";
$("body")[0].appendChild(J)}};this.hotelCityCountryCode=function(K){var L=K.indexOf(",");var J="";K=K.substring(L+2);
K=K.replace("%20"," ");for(var I=0;I<this.CountryNames.length;I++){if(K==this.CountryNames[I]){J=this.CountryCodes[I];
break}}return J};this.otaClick=function(){var g=this.hotelReqForm;var Z="";if(($("#searchHotelTG")[0]&&$("#searchHotelTG")[0].checked)||($("#searchHotelCT")[0]&&$("#searchHotelCT")[0].checked)||($("#searchHotelTvl")[0]&&$("#searchHotelTvl")[0].checked)){var Y=g.htl_where.value.substring(0,g.htl_where.value.indexOf(","));
var a=g.htl_checkIn.value;var L=g.htl_checkOut.value;var T=(a.substring(0,2));var e=(a.substring(3,5));
var O=(a.substring(6));var b=(L.substring(0,2));var h=(L.substring(3,5));var d=(L.substring(6));var k=Date.fromPaddedDate(g.htl_checkOut.value).getTime();
var l=Date.fromPaddedDate(g.htl_checkIn.value).getTime();var I=(k-l)/(1000*60*60*24);var j=$("#htl_rooms").val()=="2"?2:$("#htl_rooms").val()=="3"?3:1;
var M=g.htl_adult1.value;var S=g.htl_children1.value;var K=g.htl_adult2.value;var Q=g.htl_children2.value;
var J=g.htl_adult3.value;var N=g.htl_children3.value;var i="http://www.cleartrip.com/hotels/results?city="+Y+"&state=&country="+this.hotelCityCountryCode(g.htl_where.value)+"&ckIn="+a+"&ckOut="+L+"&noOfRooms="+j+"&ad="+M+"&cd="+S+"&nri=false";
var P="http://www.yatra.com/Hotelv2/resultV2.html?adt1="+M+"&x=51&chdroom1="+S+"&room="+j+"&cityname="+Y+"&y=12&cidate="+a+"&codate="+L+"&";
var c="http://www.travelocity.co.in/site/travel/hotels/interstitial_page_frontier.html?skin=enin.travelocity.co.in&CATID=4&filterResultsBy=all&returnURL=http%3A%2F%2Fwww.travelocity.co.in%2Fsite%2Ftravel%2Fhotels%2Fhomepage_zuji_en_IN.html&errorURL=http%3A%2F%2Fwww.travelocity.co.in%2Fsite%2Ftravel%2Fhotels%2Ferror.html&preserveName-skin=enin.travelocity.co.in&preserveName-CATEGORY=hotels&preserveName-partnerId=5002&preserveName-SEARCH=basic&preserveName-CATID=4&preserveName-requestURL=%2Fsite%2Ftravel%2Fhotels%2Fhomepage_zuji_en_IN.html%3Fskin%3Denin.travelocity.co.in&lmnShowRestaurants=False&searchTypeName=cityName&lmnCountry=Any&lmnLocation1="+Y+"&method=hotelsFullSearch&lmnLocation="+Y+"&lmnLocation2=NONE&lmnCheckInDay="+T+"&lmnCheckInMonth="+e+"&lmnLengthOfStay="+I+"&lmnCheckOutDay="+b+"&lmnCheckOutMonth="+h+"&lmnRooms="+j+"&lmnAdultsRoom1="+M+"&lmnChildrenRoom1="+S+"&lmnRoom1ChildAge1=12&lmnRoom1ChildAge2=12&lmnRoom1ChildAge3=12&lmnRoom1ChildAge4=12&lmnAdultsRoom2="+K+"&lmnChildrenRoom2="+Q+"&lmnRoom2ChildAge1=12&lmnRoom2ChildAge2=12&lmnRoom2ChildAge3=12&lmnRoom2ChildAge4=12&lmnAdultsRoom3="+J+"&lmnChildrenRoom3="+N+"&lmnRoom3ChildAge1=12&lmnRoom3ChildAge2=12&lmnRoom3ChildAge3=12&lmnRoom3ChildAge4=12&x=&y=";
var X="http://hotels.travelguru.com/searchedhotelresult.do?modifySearch=N&strCity="+Y+"&strRooms="+j+"&strAdultsRoom1="+M+"&strChildrenRoom1="+S+"&strAdultsRoom2="+K+"&strChildrenRoom2="+Q+"&strAdultsRoom3="+J+"&strChildrenRoom3="+N+"&strAdultsRoom4=1&strChildrenRoom4=0&strAgeChild1Room1=0&strAgeChild2Room1=0&strAgeChild3Room1=0&strAgeChild4Room1=0&strAgeChild1Room2=0&strAgeChild2Room2=0&strAgeChild3Room2=0&strAgeChild4Room2=0&strAgeChild1Room3=0&strAgeChild2Room3=0&strAgeChild3Room3=0&strAgeChild4Room3=0&strAgeChild1Room4=0&strAgeChild2Room4=0&strAgeChild3Room4=0&strAgeChild4Room4=0&strGroupId=TGU&strAffiliateCode=00000080&strBookingType=H&strCurrency=INR&strDestinationRatePlansTypeId=ALL&strDestinationType=WI&strAdultsRoom5=1&strChildrenRoom5=0&strAdultsRoom6=1&strChildrenRoom6=0&strAdultsRoom7=1&strChildrenRoom7=0&strAdultsRoom8=1&strChildrenRoom8=0&strType=D&strCheckindate="+T+"&strCheckinmonth="+e+"&strCheckinyear="+O+"&strCheckoutdate="+b+"&strCheckoutmonth="+h+"&strCheckoutyear="+d;
if(Y!==""&&Y.indexOf("e.g.")===-1){if($("#searchHotelTvl")[0]&&$("#searchHotelTvl")[0].checked){var W=window.open("/track?url=http://www.s2d6.com/x/?x=c&z=s&v=1432942&k=ixigo_checkbox&affiliateid=15499&t="+c,"tvlHotel","width=1024,height=768,scrollbars=yes,resizable=yes,toolbar=yes,status=yes,location=yes,screenX=200,screenY=100,left=200,top=100");
if(W!==null){W.blur()}Z+="tvl-y:"}if($("#searchHotelTG")[0]&&$("#searchHotelTG")[0].checked&&$("#searchHotelTGBlock").css("display")!=="none"){var V=window.open("/track?url=http://www.s2d6.com/x/?x=c&z=s&v=767645&k=ixigo_checkbox&affiliateid=15499&t="+X,"tgHotel","width=1024,height=768,scrollbars=yes,resizable=yes,toolbar=yes,status=yes,location=yes,screenX=200,screenY=100,left=200,top=100");
if(V!==null){V.blur()}Z+="tg-y:"}if($("#searchHotelCT")[0]&&$("#searchHotelCT")[0].checked&&$("#searchHotelCTBlock").css("display")!=="none"){var U=window.open("/track?url=http://www.s2d6.com/x/?x=c&z=s&v=1172066&k=ixigo_checkbox&affiliateid=15499&t="+i,"ctHotel","width=1024,height=768,scrollbars=yes,resizable=yes,toolbar=yes,status=yes,location=yes,screenX=200,screenY=100,left=200,top=100");
if(U!==null){U.blur()}Z+="ct-y:"}}var R=new Date();R.setDate(R.getDate()+30);document.cookie="otaHotelClick="+Z+";expires="+R.toGMTString()+";path=/";
document.cookie="otaClick="+Z+";expires="+R.toGMTString()+";path=/"}if(($("#searchHotelTvl")[0]&&!$("#searchHotelTvl")[0].checked)||($("#searchHotelYatra")[0]&&!$("#searchHotelYatra")[0].checked)||($("#searchHotelCT")[0]&&!$("#searchHotelCT")[0].checked)||($("#searchHotelTG")[0]&&!$("#searchHotelTG")[0].checked)){Z="";
if(($("#searchHotelTvl")[0]&&!$("#searchHotelTvl")[0].checked)){Z+="tvl-n:"}else{Z+="tvl-y:"}if(($("#searchHotelYatra")[0]&&!$("#searchHotelYatra")[0].checked)){Z+="yatra-n:"
}else{Z+="yatra-y:"}if(($("#searchHotelTG")[0]&&!$("#searchHotelTG")[0].checked)){Z+="tg-n:"}else{Z+="tg-y:"
}if(($("#searchHotelCT")[0]&&!$("#searchHotelCT")[0].checked)){Z+="ct-n:"}else{Z+="ct-y:"}var R=new Date();
R.setDate(R.getDate()+30);document.cookie="otaHotelClick="+Z+";expires="+R.toGMTString()+";path=/"}};
this.showSearchBox=function(P){var K=$("#hotelOverviewButton"),O=this.ixiTransferBox.data("res");$("#ixiTransferBox").css("width","320px");
$("#ixiTransferHeader").css("width","318px");$("#ixiTransferBody").css("width","310px");$("#ixiTransferBody").css("padding","10px");
if(P!=O){this.ixiTransferBox.hide();this.ixiTransferTip.hide();this.ixiTransferShadow.hide();$("#hotelOverviewButton").css("opacity",1);
var J=$("#searchBox2").html();$("#ixiTransferHeader > div:first").html("search this hotel");var M=K.position();
var I={h:this.ixiTransferBox.height(),w:this.ixiTransferBox.width()};var N={l:M.left-I.w-2,t:M.top-(I.h/2)+10};
K.css("opacity",0.4);this.ixiTransferBox.css({"left":N.l+"px","top":N.t+"px"}).data("res",P);this.ixiTransferTip.css({"left":(N.l+I.w+2)+"px","top":(N.t+(I.h/2)-4)+"px"});
$("#ixiTransferBox_bl").css({"left":(N.l-20)+"px","top":(N.t+I.h-45)+"px"});$("#ixiTransferBox_left").css({"left":(N.l-20)+"px","top":(N.t+15)+"px"});
$("#ixiTransferBox_bottom").css({"left":(N.l+70)+"px","top":(N.t+I.h-10)+"px"});$("#ixiTransferBox_br").css({"left":(N.l+180)+"px","top":(N.t+I.h-45)+"px"});
this.ixiTransferBox.show();this.ixiTransferTip.show();if(!($.browser.msie&&parseInt($.browser.version,10)<7)){this.ixiTransferShadow.show()
}var L=IXIGO.getViewportDimensions();L.h=Math.max(L.h,$(document).height());$("#transparent_div").css({"width":L.w,"height":L.h}).show()
}};this.hideSearchBox=function(J){var I=$("#hotelOverviewButton");this.ixiTransferBox.hide().data("res","");
this.ixiTransferTip.hide();this.ixiTransferShadow.hide();I.css("opacity",1);$("#transparent_div").hide()
};this.setWhereOnFocus=function(){var I=document.forms.hotelRequestForm;if(I.htl_where.value=="e.g. London, United Kingdom"){I.htl_where.value="";
I.htl_where.style.color="#000000"}else{I.htl_where.style.color="#000000"}};this.setWhereOnBlur=function(){var I=document.forms.hotelRequestForm;
if(I.htl_where.value===""|I.htl_where.value=="e.g. London, United Kingdom"){I.htl_where.value="e.g. London, United Kingdom";
I.htl_where.style.color="#999999"}else{I.htl_where.style.color="#000000"}};this.loadPictures=function(){$("#imageCarousel").html("").css({"marginLeft":(C.hotelImages.length===1)?"135px":(C.hotelImages.length===2)?"90px":(C.hotelImages.length===3)?"45px":"","width":C.hotelImages.length*120+"px","left":"0pt"});
C.currentImageCarousel=0;$("#image_next").fadeTo(500,((C.hotelImages.length>4)?1:0.4));$("#image_previous").fadeTo(500,0.4);
$.each(C.hotelImages,function(K,J){imageCarouselNode=C.createCarousel(J.url,K,$("#imageCarousel"))});
if(C.hotelImages.length>0){this.selectedImageCarousel="imageCarouselId0";$("li#"+this.selectedImageCarousel).attr("class","imageCarouselSelected");
$("#hotelPicture1").html('<img src="'+IXIGO.getStaticPath()+'/img/redirect/redirect_wait.gif" style="margin:100px 150px 0 150px;" />');
var I=new Image();I.onload=function(){var K=I.width<310?I.width:310;var J=I.height<240?I.height:240;$("#hotelPicture1").html('<img style="border:1px solid #cccccc;padding:1px;" width="'+K+'" height="'+J+'" src='+I.src+"></img>")
};I.src=C.hotelImages[0].url;$("#showNumImage").html("showing ").append(C.hotelImages.length>3?"1-4":C.hotelImages.length>2?"1-3":C.hotelImages.length>1?"1-2":"1").append(" of "+C.hotelImages.length)
}};this.onHotelDetailTabClick=function(L,K){var I="";var J=K.target;while(J!==L&&!J.getAttribute("action")){J=J.parentNode
}if(J.getAttribute("action")){I=J.getAttribute("action");I=I.lastIndexOf("/")!==-1?I.substring(I.lastIndexOf("/")+1):I;
this.selectTab(I)}};this.selectTab=function(I){if(this.currentTab===I){return }this.hideTab(this.currentTab);
this.showTab(I);this.currentTab=I};this.hideTab=function(I){$("#"+I).hide();$("#"+I+"TabLink").attr("class","hotelDetailTabTitle")
};this.showTab=function(I){$("#"+I).show();$("#"+I+"TabLink").attr("class","hotelDetailTabTitleSelected")
};this.processDescripton=function(){if($("div#hotelContentDescp")[0]){var I=$("div#hotelContentDescp").html();
if(I.length>1150){I=I.substring(0,1150)+'<span id="hotelContentDescpFull" style="display:none;">'+I.substring(1150)+"</span>"+'... <span class="link" id="showHideMoreDescription" style="margin-left:10px;">more &#187;</span>';
$("div#hotelContentDescp").html(I)}$("#showHideMoreDescription").click(function(){C.showHideMoreDescription()
})}};this.showHideMoreDescription=function(){if($("#showHideMoreDescription").html().indexOf("more")!==-1){$("#hotelContentDescpFull").show();
$("#showHideMoreDescription").html("&#171; less")}else{if($("#showHideMoreDescription").html().indexOf("less")!==-1){$("#hotelContentDescpFull").hide();
$("#showHideMoreDescription").html("more &#187;")}}};this.returnThumbImageURL=function(I){if(I.indexOf("iximg.com")!==-1){var J=I.substring(I.lastIndexOf("/")+1);
I=I.substring(0,I.indexOf(J))+"thumbs/"+J.substring(0,J.lastIndexOf("."))+".jpg"}return I};this.createCarousel=function(N,J,I){var L=$("h1").html();
if(J%4==0){L+=" reservation"}else{if(J%4==1){L+=" booking"}else{if(J%4==2){L+=" online"}else{L+=" website"
}}}var K=$('<li class="imageCarousel" id="imageCarouselId'+J+'"></li>');var M='<image width="90px" alt="'+L+'" id="imageNo'+J+'" height="70px" src=" '+this.returnThumbImageURL(N)+'" />';
K.html(M).appendTo(I);return K};this.nextCarousel=function(){$("li#"+this.selectedImageCarousel).attr("class","imageCarousel");
var I=0;for(var J=0;J<4;J++){if($("#imageCarouselId"+(this.currentImageCarousel+4))[0]){I+=100;this.currentImageCarousel++
}}this.selectedImageCarousel="imageCarouselId"+this.currentImageCarousel;$("li#"+this.selectedImageCarousel).attr("class","imageCarouselSelected");
$("#hotelPicture1").html('<img src="'+IXIGO.getStaticPath()+'/img/redirect/redirect_wait.gif" style="margin:100px 150px 0 150px;" />');
var K=new Image();K.onload=function(){var M=K.width<310?K.width:310;var L=K.height<240?K.height:240;$("#hotelPicture1").html('<img style="border:1px solid #cccccc;padding:1px;" width="'+M+'" height="'+L+'" src='+K.src+"></img>")
};K.src=C.hotelImages[this.currentImageCarousel].url;$("#imageCarousel").animate({"left":"-="+I+"px"},"slow");
if($("#imageCarouselId"+(this.currentImageCarousel+3))[0]){$("#showNumImage").html("showing "+(this.currentImageCarousel+1)+"-"+(this.currentImageCarousel+4)+" of "+C.hotelImages.length)
}$("#image_next").fadeTo(500,(($("#imageCarouselId"+(this.currentImageCarousel+4))[0])?1:0.4));$("#image_previous").fadeTo(500,(($("#imageCarouselId"+(this.currentImageCarousel-1))[0])?1:0.4))
};this.previousCarousel=function(){$("li#"+this.selectedImageCarousel).attr("class","imageCarousel");
var I=0;for(var J=0;J<4;J++){if($("#imageCarouselId"+(this.currentImageCarousel-1))[0]){I+=100;this.currentImageCarousel--
}}this.selectedImageCarousel="imageCarouselId"+this.currentImageCarousel;$("li#"+this.selectedImageCarousel).attr("class","imageCarouselSelected");
$("#hotelPicture1").html('<img src="'+IXIGO.getStaticPath()+'/img/redirect/redirect_wait.gif" style="margin:100px 150px 0 150px;" />');
var K=new Image();K.onload=function(){var M=K.width<310?K.width:310;var L=K.height<240?K.height:240;$("#hotelPicture1").html('<img style="border:1px solid #cccccc;padding:1px;" width="'+M+'" height="'+L+'" src='+K.src+"></img>")
};K.src=C.hotelImages[this.currentImageCarousel].url;$("#imageCarousel").animate({"left":"+="+I+"px"},"slow");
if($("#imageCarouselId"+(this.currentImageCarousel+3))[0]){$("#showNumImage").html("showing "+(this.currentImageCarousel+1)+"-"+(this.currentImageCarousel+4)+" of "+C.hotelImages.length)
}$("#image_next").fadeTo(500,(($("#imageCarouselId"+(this.currentImageCarousel+4))[0])?1:0.4));$("#image_previous").fadeTo(500,(($("#imageCarouselId"+(this.currentImageCarousel-1))[0])?1:0.4))
};this.loadImage=function(K){var J=K.target;var L;if(J.id&&J.id.indexOf("imageNo")===0){if(this.selectedImageCarousel!==null){$("li#"+this.selectedImageCarousel).attr("class","imageCarousel")
}L=J.id.substring(J.id.indexOf("imageNo")+7);this.selectedImageCarousel="imageCarouselId"+L;$("li#"+this.selectedImageCarousel).attr("class","imageCarouselSelected");
$("#hotelPicture1").html('<img src="'+IXIGO.getStaticPath()+'/img/redirect/redirect_wait.gif" style="margin:100px 150px 0 150px;" />');
var I=new Image();I.onload=function(){var N=I.width<310?I.width:310;var M=I.height<240?I.height:240;$("#hotelPicture1").html('<img style="border:1px solid #cccccc;padding:1px;" width="'+N+'" height="'+M+'" src='+I.src+"></img>")
};I.src=C.hotelImages[L].url}};this.changeThumbImageStyle=function(J){var I=J.target;var K;if(I.id&&I.id.indexOf("imageNo")===0){K=I.id.substring(I.id.indexOf("imageNo")+7);
$("#imageCarouselId"+K).attr("class",($("#imageCarouselId"+K).attr("class")==="imageCarouselSelected")?"imageCarousel":"imageCarouselSelected");
if(("imageCarouselId"+K)===this.selectedImageCarousel){$("#imageCarouselId"+K).attr("class","imageCarouselSelected")
}}};this.showAds=function(){$("#side_sponsored").html("sponsored");var I=$("#ads_code_hotels").html();
I=I.replace(new RegExp("&lt;","g"),"<");I=I.replace(new RegExp("&gt;","g"),">");$("#ads_openX_hotels").html(I)
};this.getStars=function(K){var I="img/hotel/star.gif";var L="&#160;";if(K!==0){for(var J=0;J<K;J++){L+="<img src="+I+"></img>"
}}else{L='<span style="color:#888888;font-weight:normal;margin-left:5px;font-size:11px;">no rating</span>'
}return L};this.initializeMap=function(){if($("#map_canvas")[0]){this.mapHotelDetail=new GMap2(document.getElementById("map_canvas"),{size:new GSize(500,380)});
C.loadGMap()}};this.loadGMap=function(){var I=C.jsHotelResponse.starRating;C.receivedLandmarkMap=C.jsHotelResponse.landmarks;
getMarkerIcon=function(O){var N=new GIcon();N.image="/img/hotel/marker_"+O+".gif";N.shadow="/img/hotel/marker_shadow.png";
N.iconSize=new GSize(25,30);N.shadowSize=new GSize(40,30);N.iconAnchor=new GPoint(0,0);N.infoWindowAnchor=new GPoint(5,1);
N.infoShadowAnchor=new GPoint(18,25);markerOptions={icon:N};return markerOptions};calculateDistanceLandmark=function(P,T,O,S){var Q=6371;
var V=(O-P)*Math.PI/180;var N=(S-T)*Math.PI/180;var X=Math.sin(V*0.5)*Math.sin(V*0.5)+Math.cos(P*Math.PI/180)*Math.cos(O*Math.PI/180)*Math.sin(N/2)*Math.sin(N/2);
var W=2*Math.atan2(Math.sqrt(X),Math.sqrt(1-X));var U=Q*W;return U};showLandmarks=function(Q){var P=null;
var O="";for(var N=0;C.receivedLandmarkMap[N];N++){if(C.receivedLandmarkMap[N].type){O=C.receivedLandmarkMap[N].name;
P=createMarker(new GLatLng(C.receivedLandmarkMap[N].latitude,C.receivedLandmarkMap[N].longitude),getMarkerIcon(C.receivedLandmarkMap[N].type),O,N+1,C.receivedLandmarkMap[N].type);
Q.addOverlay(P)}}};createMarker=function(N,R,S,P,Q){var O=new GMarker(N,R);var T='<div align="left" >'+S+'</div><div align="left" style="color:gray;font-size:11px;margin:10px 0px 0px 0px;">placement on map is approximate</div>';
GEvent.addListener(O,"click",function(){O.openInfoWindowHtml(T,{maxWidth:"250"})});C.marker[P]=O;var U=calculateDistanceLandmark(C.receivedLandmarkMap[P-1].latitude,C.receivedLandmarkMap[P-1].longitude,C.jsHotelResponse.latitude,C.jsHotelResponse.longitude);
$("#landmarkPositionMap").append('<div style="margin:5px 0px 0px 0px;"><div style="float:left;"><img src="'+IXIGO.getStaticPath()+"/img/hotel/marker_small_"+Q+'.gif"/ ></div><div style="font-size:10px;height:30px;float:left;margin:0px 0px 0px 5px;" class="link" id="landmark'+P+'">'+S+'</div><div title="distance from the hotel" style="font-size:9px;float:left;color:#6B6B6B;margin-left:5px;margin-top:2px;">'+U.toFixed(2)+' km</div><div class="clear"/></div>');
return O};if(this.mapHotelDetail!==null&&(C.jsHotelResponse.latitude!==null&C.jsHotelResponse.longitude!==null)){$("#landmarkPositionMap").html("");
$("#map_canvas").show();this.mapHotelDetail=new GMap2(document.getElementById("map_canvas"),{size:new GSize(500,380)});
var M=C.jsHotelResponse.latitude;var K=C.jsHotelResponse.longitude;this.mapHotelDetail.setCenter(new GLatLng(M,K),15);
this.mapHotelDetail.addControl(new GSmallMapControl());this.mapHotelDetail.addControl(new GMapTypeControl());
var L='<table width="100%" border="0" cellspacing="3" cellpadding="3">'+"<tr>"+'<td  colspan="2" align="left">'+C.jsHotelResponse.name+"</td></tr>"+'<tr><td colspan="2" align="left"><span style="font-weight:bold;color:#666666;">rating:</span> '+C.getStars(I)+"</td>"+"</tr>"+'<tr><td colspan="2" align="left"><span style="color:gray;font-size:11px;">placement on map is approximate</span></td></tr>'+"</table>";
var J=new GMarker(new GLatLng(M,K),getMarkerIcon("hotel"));this.mapHotelDetail.addOverlay(J);J.openInfoWindowHtml(L,{maxWidth:"250"});
GEvent.addListener(J,"click",function(){J.openInfoWindowHtml(L,{maxWidth:"250"})});C.marker[0]=J;$("#landmarkPositionMap").html('<div style="margin:5px 0px 10px 0px;"><div style="float:left;"><img src="'+IXIGO.getStaticPath()+'/img/hotel/marker_small_hotel.gif"/ ></div><div align="left" style="font-size:10px;width:120px;float:left;margin:0px 0px 0px 5px;height:30px;" id="landmark0" class="link">'+C.jsHotelResponse.name+'</div><div class="clear"/></div>');
showLandmarks(this.mapHotelDetail)}};this.renderMapView=function(){var N=$("#hotelDistance").val()==="any"?0:parseFloat($("#hotelDistance").val());
var L;L=N===0.5?14:N===1?15:N===2?14:N==5?9:N==10?10:N==15?9:N==20?9:8;drawCircle=function(O,a,b,Y,f,d,Z,Q,e){var V=Math.PI/180;
var S=Y*0.014483;var T=S/Math.cos(a*V);var U=[];for(var W=0;W<33;W++){var R=Math.PI*(W/16);Cy=a+(S*Math.sin(R));
Cx=b+(T*Math.cos(R));var X=new GPoint(Cx,Cy);U.push(X)}var c=new GPolygon(U,f,d,Z,Q,e);O.addOverlay(c)
};createMarker=function(Y,T,P,U,X,O,R,W,V){var S=new GIcon();S.image="/img/hotel/"+P;S.shadow="/img/hotel/"+O;
S.iconSize=new GSize(U,X);S.shadowSize=new GSize(R,W);S.iconAnchor=new GPoint(0,0);S.infoWindowAnchor=new GPoint(0,0);
markerOptions={icon:S};var Q=new GMarker(Y,markerOptions);if(V){GEvent.addListener(Q,"click",function(){Q.openInfoWindowHtml(T,{maxWidth:"300"})
})}return Q};var J=0;var M=parseFloat(C.receivedLandmarkMap[J].latitude);var K=parseFloat(C.receivedLandmarkMap[J].longitude);
this.mapView.clearOverlays();this.mapView.setCenter(new GLatLng(M,K),L);this.mapView.addControl(new GSmallMapControl());
this.mapView.addControl(new GMapTypeControl());drawCircle(this.mapView,M,K,N,"#FF6600",2,0.75,"#FAD55A",0.2);
var I=createMarker(new GLatLng(M,K),C.receivedLandmarkMap[J].name,"push_pin.png",12,28,"push_pin_shadow.png",34,28,true);
this.mapView.addOverlay(I);this.mapViewMarker.push(I)};this.landmarkPositionMapLocate=function(J){var I=J.target;
var K;if(I.id&&I.id.indexOf("landmark")===0){K=I.id.substring(I.id.indexOf("landmark")+8);GEvent.trigger(C.marker[K],"click")
}};this.showCalendar=function(I){var J=Date.today();var K;if(I.indexOf("htl_checkIn")!==-1){$("#"+I).calendar({minDate:J,maxDate:B})
}else{if(I.indexOf("htl_checkOut")!==-1){K=Date.fromPaddedDate(this.hotelReqForm.htl_checkIn.value);K=K?K:J;
K=new Date(K.getFullYear(),K.getMonth(),K.getDate()+1);$("#"+I).calendar({minDate:K,maxDate:E})}}$("#ixiCalWrapper, #ixiCalFrame, #ixiCalTable").css("z-index","500");
$("#ixiCalLeft, #ixiCalRight, #ixiCalClose").css("z-index","510");$("#ixiCalWrapper").click(function(L){L.stopPropagation()
})};this.setWeekDay=function(I,K){var J=Date.fromPaddedDate($(K).val());if(!J){$(I).html("").fadeOut(200)
}else{$(I).html(J.getWeekDay()).fadeIn(200)}};this.checkReturnDate=function(M,J,L){var K=Date.fromPaddedDate($(M).val());
var I=Date.fromPaddedDate($(J).val());if(K&&(!I||I.before(K)||I.sameDay(K))){K.setDate(K.getDate()+2);
$(J).val(K.toPaddedDate()).trigger("change")}};this.showNight=function(){var I=Date.fromPaddedDate(this.hotelReqForm.htl_checkOut.value).getTime();
var J=Date.fromPaddedDate(this.hotelReqForm.htl_checkIn.value).getTime();A=(I-J)/(1000*60*60*24);H=(A>1)?A+" nights":A+" night";
$("#numNights").html("("+H+")")};this.showRoom=function(J){var I=J.indexOf("_2")!==-1?"_2":"";if($("#htl_rooms"+I).val()=="3"){$("#htl_guestOptions2"+I+", #htl_guestOptions3"+I).show()
}else{if($("#htl_rooms"+I).val()=="2"){$.showHide($("#htl_guestOptions2"+I),$("#htl_guestOptions3"+I))
}else{$("#htl_guestOptions2"+I+", #htl_guestOptions3"+I).hide()}}};this.onClickPrices=function(){var J=this.hotelReqForm;
var L=J.htl_where.value;var I=true;if(L=="e.g. London, United Kingdom"){I=false}var K=$("#htl_rooms");
G=""+"/search/result/hotel/"+L+"/"+J.htl_checkIn.value.replace(new RegExp("/","g"),"")+"/"+J.htl_checkOut.value.replace(new RegExp("/","g"),"")+"/"+J.htl_adult1.value+"/"+J.htl_children1.value+"/";
if(K.val()=="2"){G+=J.htl_adult2.value+"/"+J.htl_children2.value+"/0/0"}else{if(K.val()=="3"){G+=J.htl_adult2.value+"/"+J.htl_children2.value+"/"+J.htl_adult3.value+"/"+J.htl_children3.value
}else{G+="0/0/0/0"}}if(I){var M="";if(document.cookie.indexOf("otaClick=")!=-1){if($("#searchHotelTvl")[0]&&$("#searchHotelTvl")[0].checked){M+="tv-"
}if($("#searchHotelCT")[0]&&$("#searchHotelCT")[0].checked){M+="ct-"}if($("#searchHotelTG")[0]&&$("#searchHotelTG")[0].checked){M+="tg-"
}}window.location.href=G+"?hid="+$("#hotelOverviewButton").attr("num")+(M!==""?"&clk="+M.substring(0,M.length-1):"")
}else{$("#errorMsg").html("please enter city name")}};this.pollResponse=function(){this.xhr=$.ajax({type:"GET",url:this.pollingURL,dataType:"html",success:function(I){C.hotelResCallback(I)
},error:function(I){},beforeSend:function(I){I.setRequestHeader("Accept","text/javascript")}})};this.hotelResCallback=function(J){a_responseSet=Ajax.evalJSON(J);
var I=a_responseSet.rates;if(I.length>0){C.receivedRates=C.receivedRates.concat(I);C.receivedRates.sort(function(L,K){return L.roomPrices[0].price-K.roomPrices[0].price
});C.showPricesFromAllProviders()}if(!a_responseSet.stopSearch){this.pollTimer=setTimeout(function(){C.pollResponse()
},5000)}else{if(C.receivedRates.length==0){$.showHide($("#priceTable").html('<div style="font-size: 12px; font-weight: bold; margin: 10px 0 25px 0; text-align: center;"><span style="color: #666;">no availability for this hotel.&#160;</span><a href="'+G+'">search all hotels in '+D+"?</a></div>"),$("#priceLoader"))
}else{$("#imageIndicator2").hide()}}};this.showPricesFromAllProviders=function(){var O=F;var L=$("#htl_rooms").val();
var R=(L>1)?L+" rooms":L+" room";var Q="";var P=0;var S=this.receivedRates;Q+='<div class="hotelPriceDetailHeader">'+'<div id="hotelPriceTabHeaderProvider">provider</div>'+'<div id="hotelPriceTabHeaderRate">price*</div>'+'<div id="hotelPriceTabHeaderTax">taxes & fees*</div>'+'<div id="hotelPriceTabHeaderPrice"><div style="font-weight:bold;">total price</div><div style="font-size:10px;">('+H+", "+R+")</div></div>"+'<div id="hotelPriceTabHeaderRoom" style="float: right; margin: 0 5px 0 0; text-align: right"><div id="imageIndicator2"><img src="'+IXIGO.getStaticPath()+'/img/redirect/redirect_wait.gif"/></div></div>'+'<div class="clear"></div></div>';
var N=true;ellipse=function(W,V){W=W.trim();if(W.length>V){return W.substr(0,V)+"..."}else{if(W==="-"){return""
}else{return W}}};for(var M=0;S[M];M++){var U=!N;for(var K=0;S[M].roomPrices[K];K++){P=S[M].roomPrices[K].price-(S[M].roomPrices[K].tax?S[M].roomPrices[K].tax:0)-(S[M].roomPrices[K].fee?S[M].roomPrices[K].fee:0);
if(K==0){bg=N?"priceTabRowEven":"priceTabRowOdd";N=!N}else{bg=U?"priceTabRowEven":"priceTabRowOdd";U=!U
}var J=K>0?"prices-"+O+"-"+M:"";Q+='<div id="prices-'+O+"-"+M+"-"+K+(K===0?"-0":"")+'" class="'+bg+(K===0?"":" "+J)+'">';
Q+='<div class="priceTabRowProvider" id="provider_'+S[M].providerId+'"><img src="'+IXIGO.getStaticPath()+"/img/providers/smallLogo/provider_"+S[M].providerId+'_small.gif" /></div>';
Q+='<div class="priceTabRowRate" style="visibility:visible;">'+'<span class="priceTabcurrency">Rs.</span>'+P.toFixed(0)+"</div>"+'<div class="priceTabRowTax" style="visibility:visible;"> '+'<span class="priceTabcurrency">Rs.</span>'+(S[M].roomPrices[K].tax+S[M].roomPrices[K].fee).toFixed(0)+"</div>"+'<div class="priceTabRowFee" style="visibility:visible;"> '+'<span class="priceTabcurrency">Rs.</span>'+(S[M].roomPrices[K].price*A*L).toFixed(0)+(S[M].fareType===2?'<sup><div style="color:#666666;font-weight: bold; font-size: 9px;float:left;">*</div></sup>':"")+"</div>"+'<div style="float:left;width: 80px;" class="priceTabRowButton" style="visibility:visible;">'+'<div class="priceTabRowPriceButton"><div class="hotelSelectOverviewButton" id="hotelSelectOverviewButton-'+O+"-"+M+"-"+K+"-"+(K===0?"0":"")+'"><div class="sprite-button sprite-button-l" id="hotelSelectOverviewButton-'+O+"-"+M+"-"+K+"-"+(K===0?"0":"")+'Left"/><div class="sprite-button sprite-button-m" id="hotelSelectOverviewButton-'+O+"-"+M+"-"+K+"-"+(K===0?"0":"")+'Middle"><div class="selectButton">select</div></div><div class="sprite-button sprite-button-r" id="hotelSelectOverviewButton-'+O+"-"+M+"-"+K+"-"+(K===0?"0":"")+'Right"/><div class="clear"/></div></div>'+"</div>";
Q+='<div class="priceTabRowRoom" id="roomTypeCol-'+O+"-"+M+"-"+K+'" title="'+S[M].roomPrices[K].roomType+'">'+ellipse(S[M].roomPrices[K].roomType,35)+"</div>";
Q+='<div class="clear"></div>';Q+="</div>";if(K===0){J="prices-"+O+"-"+M;Q+='<div id="prices-'+O+"-"+M+"-"+K+'" class="'+bg+" "+J+'">';
Q+='<div class="priceTabRowProvider" id="provider_'+S[M].providerId+'"><img src="'+IXIGO.getStaticPath()+"/img/providers/smallLogo/provider_"+S[M].providerId+'_small.gif" /></div>';
Q+='<div class="priceTabRowRate" style="visibility:visible;">'+'<span class="priceTabcurrency">Rs.</span>'+P.toFixed(0)+"</div>"+'<div class="priceTabRowTax" style="visibility:visible;"> '+'<span class="priceTabcurrency">Rs.</span>'+(S[M].roomPrices[K].tax+S[M].roomPrices[K].fee).toFixed(0)+"</div>"+'<div class="priceTabRowFee" style="visibility:visible;"> '+'<span class="priceTabcurrency">Rs.</span>'+(S[M].roomPrices[K].price*A*L).toFixed(0)+(S[M].fareType===2?'<sup><div style="color:#666666;font-weight: bold; font-size: 9px;float:left;">*</div></sup>':"")+"</div>"+'<div style="float:left;width: 80px;" class="priceTabRowButton" style="visibility:visible;">'+'<div class="priceTabRowPriceButton"><div class="hotelSelectOverviewButton" id="hotelSelectOverviewButton-'+O+"-"+M+"-"+K+'-"><div class="sprite-button sprite-button-l" id="hotelSelectOverviewButton-'+O+"-"+M+"-"+K+'-Left"/><div class="sprite-button sprite-button-m" id="hotelSelectOverviewButton-'+O+"-"+M+"-"+K+'-Middle"><div class="selectButton">select</div></div><div class="sprite-button sprite-button-r" id="hotelSelectOverviewButton-'+O+"-"+M+"-"+K+'-Right"/><div class="clear"/></div></div>'+"</div>";
Q+='<div class="priceTabRowRoom" id="roomTypeCol-'+O+"-"+M+"-"+K+'" title="'+S[M].roomPrices[K].roomType+'">'+ellipse(S[M].roomPrices[K].roomType,35)+"</div>";
Q+='<div class="clear"></div>';Q+="</div>"}}}$.showHide($("#priceTable").html(Q),$("#priceLoader"));$("#priceAdtMsg").show();
for(var M=0;S[M];M++){if(S[M].roomPrices.length>1){var I="roomType-"+O+"-"+M+"-more";var T='<div id="'+I+'" provider="'+S[M].providerId+'" num1="'+O+'" num2="'+M+'" style="font-size: 7.5pt;margin-top:2px;" title="show all room types" class="link roomTypeMore">show all room types</div>';
$("#roomTypeCol-"+O+"-"+M+"-0").html(T);$(".prices-"+O+"-"+M).wrapAll($('<div id="'+I+'Prices" style="display: none; margin-bottom: 3px;"></div>'))
}}$(".roomTypeMore").click(function(Y){Y.stopPropagation();var X=$(this).attr("num1");var W=$(this).attr("num2");
$("#roomType-"+X+"-"+W+"-morePrices .priceTabRowProvider").css("visibility","hidden");$(this).toggleText("hide room types","show all room types");
$("#"+$(this).attr("id")+"Prices").slideFadeToggle("fast");var V=$("#prices-"+X+"-"+W+"-0-0");if(V.find(".priceTabRowRate").css("visibility")==="visible"){V.find(".priceTabRowRate, .priceTabRowTax, .priceTabRowFee, .priceTabRowButton").css("visibility","hidden")
}else{V.find(".priceTabRowRate, .priceTabRowTax, .priceTabRowFee, .priceTabRowButton").css("visibility","visible")
}var Z=$("#roomType-"+X+"-"+W+"-morePrices");Z.find(".priceTabRowOdd, .priceTabRowEven").css("border-bottom","0px solid #cccccc");
Z.css({"background":"#f5f5f5","border-bottom":"1px solid #cccccc"})});$("div.hotelSelectOverviewButton","#responseDetail").mouseover(function(V){IXIGO.buttonHover("#"+this.id,"","")
}).mouseout(function(V){IXIGO.buttonHover("#"+this.id,"","")}).click(function(){var W=$(this).attr("id").split("-");
var V=C.getRedirectionLink(W[2],parseInt(W[3],10));window.open(V)})};this.getRedirectionLink=function(K,J){if(J>0){J-=1
}var L="/redirect.ixi?&type=9";var M=C.receivedRates[K];var I=M.providerId;var N=IXIGO.Cookie.read("__utmz");
if(N){var O=N.indexOf("gclid");if(O!==-1){N=N.substring(O);L+="&"+N.substring(0,N.indexOf("|"))}}var P=M.roomPrices[J].key||M.redirectKey;
L+=""+this.redirectParams+"&hotelId="+F+"&city="+D+"&fare="+M.roomPrices[J].price+"&tax="+M.roomPrices[J].tax+"&currency=INR";
if(P){L+="&redirectKey="+escape(P)}if(M.subProviderId){L+="&provider="+I.substring(0,I.indexOf(M.subProviderId));
L+="&subProviderId="+M.subProviderId}else{L+="&provider="+I}return L}};