if(typeof (IXIGO)=="undefined"){IXIGO={}}IXIGO.HotelInfo=function(){var N=this,R=$("#reviewList"),P=$("#showMoreReviews"),C=$("#loadingMoreReviews"),D=$("#reviewRating .rvw-rating-rings"),A,K,F,Q,B,G,H,O,L=$("#ixiHotelReviewBox"),J={resource:"/action/content/hotels?searchFor=getAnalyzedHotelReviews",start:0,rows:10,total:0,aspect:null,sentiment:null},E=$("#htl_where"),I=[i18n_dictionary.jan,i18n_dictionary.feb,i18n_dictionary.mar,i18n_dictionary.apr,i18n_dictionary.may,i18n_dictionary.jun,i18n_dictionary.jul,i18n_dictionary.aug,i18n_dictionary.sep,i18n_dictionary.oct,i18n_dictionary.nov,i18n_dictionary.dec];
N.pos=(IXIGO.Web.handlers.pos.flag||"IN").toUpperCase();N.hotelImages=[];N.currentTab="hotelDescription";
N.currentImageCarousel=0;N.selectedImageCarousel=null;N.marker=[];N.mapView=null;N.mapViewMarker=[];N.mapHotelDetail=null;
N.receivedLandmarkMap=[];N.jsHotelResponse=null;N.hotelReqForm=null;N.receivedRates=[];N.pollingURL=null;
N.pollTimer=null;N.redirectParams=null;N.ixiTransferBox=$("#ixiTransferBox");N.ixiTransferTip=$("#ixiTransferTip");
N.ixiAssign=0;N.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"];
N.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"];
N.checkBoxConfigData=[];N.googleMapApiKey;N.init=function(S,T,U,V,b){N.jsHotelResponse=U;N.hotelImages=U.images;
N.googleMapApiKey=V;J.aspect=b.a||null;J.sentiment=b.s||null;J.total=+b.t,jhtl_checkIn=$("#htl_checkIn"),jhtl_checkOut=$("#htl_checkOut"),jhtl_checkInImg=jhtl_checkIn.closest(".ixi-input").find("span.calendar"),jhtl_checkOutImg=jhtl_checkOut.closest(".ixi-input").find("span.calendar"),jhtl_checkIn_2=$("#htl_checkIn_2"),jhtl_checkOut_2=$("#htl_checkOut_2"),jhtl_checkInImg_2=jhtl_checkIn_2.closest(".ixi-input").find("span.calendar"),jhtl_checkOutImg_2=jhtl_checkOut_2.closest(".ixi-input").find("span.calendar");
K=S;F=T;IXIGO.Result.Utils.handleFilterBlock();if($.browser.msie&&parseInt($.browser.version,10)<7){$("em").contents().unwrap()
}if(N.hotelImages[0]){N.loadPictures()}$(document).ready(function(){if($("#hotelContentDesc")[0]){$("#hotelContentDesc").html($("#hotelContentDesc").html().replace(/\n/g,"<br/>"))
}N.showMoreReviews()});$(".ixi-revb-close").click(function(){L.hide()});$(window).bind("keypress",function(c){if(c.keyCode==27){L.hide()
}});$("#htl_checkIn").click(function(c){c.stopPropagation();N.showCalendar("htl_checkIn")}).focus(function(){N.showCalendar("htl_checkIn")
}).keypress(function(c){return c.keyCode!=13}).change(function(){N.setWeekDay("#cal1HtlWeekDay","#htl_checkIn");
N.checkReturnDate("#htl_checkIn","#htl_checkOut","hotel");N.showNight()});$("#htl_checkOut").click(function(c){c.stopPropagation();
N.showCalendar("htl_checkOut")}).focus(function(){N.showCalendar("htl_checkOut")}).keypress(function(c){return c.keyCode!=13
}).change(function(){N.setWeekDay("#cal2HtlWeekDay","#htl_checkOut");N.showNight()});$("#htl_rooms").focus(function(){$.hideCalendar()
}).change(function(){N.showRoom("htl_rooms")});jhtl_checkInImg.click(function(c){c.stopPropagation();
N.showCalendar("htl_checkIn")});jhtl_checkOutImg.click(function(c){c.stopPropagation();N.showCalendar("htl_checkOut")
});$("#htl_where").keypress(function(c){return c.keyCode!=13});$("#priceTableBody").click(function(f){var d=this,c=$(f.target).closest("[invoke]"),g=c.attr("invoke"),e;
if(g){if(g==="selectHotel"){e=c.attr("rUrl");window.open(e)}}});P.click(function(){N.showMoreReviews()
});N.showRoom("htl_rooms");N.showRoom("htl_rooms_2");jhtl_checkIn_2.click(function(c){c.stopPropagation();
N.showCalendar("htl_checkIn_2")}).focus(function(){N.showCalendar("htl_checkIn_2")}).keypress(function(c){return c.keyCode!=13
}).change(function(){N.setWeekDay("#cal1HtlWeekDay_2","#htl_checkIn_2");N.checkReturnDate("#htl_checkIn_2","#htl_checkOut_2","hotel")
});jhtl_checkOut_2.click(function(c){c.stopPropagation();N.showCalendar("htl_checkOut_2")}).focus(function(){N.showCalendar("htl_checkOut_2")
}).keypress(function(c){return c.keyCode!=13}).change(function(){N.setWeekDay("#cal2HtlWeekDay_2","#htl_checkOut_2")
});jhtl_checkInImg_2.click(function(c){c.stopPropagation();N.showCalendar("htl_checkIn_2")});jhtl_checkOutImg_2.click(function(c){c.stopPropagation();
N.showCalendar("htl_checkOut_2")});$("#htl_rooms_2").focus(function(){$.hideCalendar()}).change(function(){N.showRoom("htl_rooms_2")
});N.showHotelCheckBox();$("#checkAvailability_2").click(function(){var c=document.forms.hotelAvailabilityForm,h=c.htl_where_2.value,g=$("#htl_rooms_2"),e=["/search/result/hotel",h,c.htl_checkIn_2.value.split("/").join(""),c.htl_checkOut_2.value.split("/").join(""),c.htl_adult1_2.value,c.htl_children1_2.value],d;
if(g.val()=="2"){e.push(c.htl_adult2_2.value,c.htl_children2_2.value,"0/0")}else{if(g.val()=="3"){e.push(c.htl_adult2_2.value,c.htl_children2_2.value,c.htl_adult3_2.value,c.htl_children3_2.value)
}else{e.push("0/0/0/0")}}d=e.join("/");d+="?hid="+window.hid;window.location.href=d});var W=Date.today(),Z=Date.today();
Z.setDate(Z.getDate()+7);W.setDate(W.getDate()+12-W.getDay());if(W.sameDay(Z)||W.before(Z)){W.setDate(W.getDate()+7)
}$("#htl_checkIn_2").val(W.toPaddedDate());$("#htl_checkIn_2, #htl_checkOut_2").trigger("change");try{A=IXIGO.JSON.parse(decodeURIComponent(document.forms.hotelPriceForm.jsonPriceData.value));
if(A){N.getRoomPrices()}}catch(X){}N.showUserRatingRings();if($("body").hasClass("ie6")){IXIGO.Utils.doPngFixOnBgImg($("#reviewListContainer .separator")[0])
}$("#imageCarousel").click(function(c){N.loadImage(c)}).mouseover(function(c){N.changeThumbImageStyle(c)
}).mouseout(function(c){N.changeThumbImageStyle(c)});$("#hotelOverviewButton").click(function(d){if($(this).attr("invoke")=="check"){window.hid=$(this).attr("num");
var c=$("#ixiTransferBox");IXIGO.LightBox.show(c);if(N.ixiAssign==0){N.ixiAssign++}d.stopPropagation()
}else{window.open($(this).attr("redirect"))}});$("#revRating").click(function(f){var d=$(this),c=d.attr("ratingkey");
N.showReviewTip(d,c)});$("#checkAvailability").click(function(){if(N.isValidGetAvailabilitySearch()){N.otaClick();
N.onClickPrices()}});$("#landmarkPositionMap").click(function(c){N.landmarkPositionMapLocate(c)});$("#image_next").click(function(){N.nextCarousel()
});$("#image_previous").click(function(){N.previousCarousel()});$("#ixiTransferClose").click(function(c){N.hideSearchBox(c.target)
});$("#ixiTransferBody").click(function(c){c.stopPropagation()});$("#contentHotelDescriptionFull").hide();
$("#showMoreLess").click(function(){N.showMoreDesc()});N.descHeight=parseInt($("#hotelContentDescp").css("height"));
$("#hotelContentDescp").addClass("less");$("#htl_where").autocomplete({source:function(d,c){IXIGO.Ajax.getJson("/action/content/city?searchFor=hotelCity&value="+d.term,function(f){var e=[];
jQuery.each(f.r,function(g,h){e[e.length]={label:h.c,value:h.c}});c(e)})},minLength:3,minWidth:220,callback:function(c,d){N.showHotelCheckBox(d)
}});N.hotelReqForm=document.forms.hotelRequestForm;G=Date.today();G.setFullYear(G.getFullYear()+1);B=G.clone();
B.setMonth(B.getMonth()-1);var W=Date.today(),Z=Date.today();Z.setDate(Z.getDate()+7);W.setDate(W.getDate()+12-W.getDay());
if(W.sameDay(Z)||W.before(Z)){W.setDate(W.getDate()+7)}if(N.hotelReqForm){N.hotelReqForm.htl_checkIn.value=W.toPaddedDate()
}$("#htl_checkIn, #htl_checkOut").trigger("change");$("#hotelCompareAll").click(function(){$(".ota-c-b input").each(function(){$(this).prop("checked",$("#hotelCompareAll").is(":checked"))
})});if(location.hostname.indexOf("ixigo")!==-1&&(N.jsHotelResponse.latitude!==null&N.jsHotelResponse.longitude!==null)){var Y=document.createElement("script");
Y.type="text/javascript";Y.src="http://maps.google.com/maps?file=api&v=2&key="+N.googleMapApiKey+"&async=2&callback=window.hotelinfo.initializeMap";
$("body")[0].appendChild(Y)}};N.showHotelCheckBox=function(S){if(!E.hasClass("inactive")){IXIGO.Ajax.getJson("/action/content/checkbox?searchFor=checkboxhotels&city="+(S||E.val())+"&pos="+N.pos,function(U){if(!U){return 
}try{N.hotelCheckBox=[];var W="";for(var T=0;T<U.length;T++){if($.browser.msie&&T>0&&T%4===0){W+='<div class="clear"></div>'
}W+='<div id="otahotel-'+U[T]["c"]+'" class="ota-c-b lfloat">'+"<input "+(U[T]["ch"]==true?'checked="checked"':"")+' type="checkbox" id="searchHotel-'+U[T]["c"]+'" />'+'<label for="searchHotel-'+U[T]["c"]+'">'+U[T]["n"]+"</label>"+"</div>";
N.hotelCheckBox[T]=U[T]}W+='<div class="clear" />';jotah=$("#checkBoxOtaHotelDiv");jotah.html(W);$("#otaHotelCheckboxes")[N.hotelCheckBox.length>0?"fadeIn":"hide"]()
}catch(V){}})}};N.showReviewTip=function(W,T){var b=W.position(),S={h:L.height(),w:L.width()},U=T.split("-"),V=U[1],X=U[2],c=U[3],Z,Y;
L.css({"left":b.left-S.w/2+20,"top":b.top+38}).fadeIn();L.find(".ixi-revb-h .rr").html(U[0]);L.find(".ixi-revb-h .rc").html(V);
Z=X/V*100;Y=c/V*100;L.find(".pos-review").css("width",Z+"%");L.find(".neg-review").css("width",Y+"%")
};N.getCountryCode=function(U){var T="";if(U.indexOf(",")!=-1){var V=U.indexOf(",");var T="";U=U.substring(V+2);
U=U.replace("%20"," ")}U=U.replace("%20"," ");for(var S=0;S<N.CountryNames.length;S++){if(U==N.CountryNames[S]){T=N.CountryCodes[S];
break}}return T};N.isValidGetAvailabilitySearch=function(){var X=document.forms.hotelRequestForm,Y,T=Date.today(),U=Date.fromPaddedDate(X.htl_checkIn.value),W=Date.fromPaddedDate(X.htl_checkOut.value);
var V=Date.today();V.setFullYear(V.getFullYear()+1);var S=V.clone();S.setMonth(S.getMonth()-1);if(!U){Y=i18n_dictionary.dateFormat
}else{if(!U.between(T,S)){Y=i18n_dictionary.chkInDateRange}else{if(!W){Y=i18n_dictionary.dateFormat}else{if(U&&W.before(U)){Y=i18n_dictionary.chkInDatePeriod
}else{if(!W.between(T,V)){Y=i18n_dictionary.chkInDateRangeYr}else{if(U.sameDay(W)){Y=i18n_dictionary.chkOutDateRange
}}}}}}if(Y){$("#errorMsg").html(Y).show();setTimeout("$('#errorMsg').fadeOut();",5000);return false}else{$("#errorMsg").html("").hide();
return true}};N.otaClick=function(){var e="",i=N.hotelReqForm,c=i.htl_where.value.substring(0,i.htl_where.value.indexOf(",")),g=i.htl_checkIn.value.split("/").join(""),W=i.htl_checkOut.value.split("/").join(""),k=Date.fromPaddedDate(i.htl_checkOut.value).getTime(),m=Date.fromPaddedDate(i.htl_checkIn.value).getTime(),j=($("#htl_rooms").val()=="2"?2:$("#htl_rooms").val()=="3"?3:1),h=i.htl_where.value.substring(i.htl_where.value.indexOf(",")+2),T=N.getCountryCode(h),X=i.htl_adult1.value,b=i.htl_children1.value,V=(j>=2?i.htl_adult2.value:0),Z=(j>=2?i.htl_children2.value:0),U=(j>2?i.htl_adult3.value:0),Y=(j>2?i.htl_children3.value:0);
for(a in N.hotelCheckBox){e+=N.hotelCheckBox[a]["c"]+"-"+($("#searchHotel-"+N.hotelCheckBox[a]["c"]).attr("checked")===true?"y":"n")+"|";
if($("#searchHotel-"+N.hotelCheckBox[a]["c"]).attr("checked")===true){var l=N.hotelCheckBox[a]["n"],S=N.hotelCheckBox[a]["c"],d=window.open("/checkbox/redirect.ixi?type=9&title="+l+"&countryCode="+T+"&country="+h+"&intl=false&product=hotel&adults1="+X+"&children1="+b+"&adults2="+V+"&children2="+Z+"&adults3="+U+"&children3="+Y+"&numRooms="+j+"&d1="+m+"&d2="+k+"&id="+S+"&city="+c+", "+h+"&checkin="+g+"&checkout="+W+"&code="+S,"hotel"+l,"width=1024,height=768,scrollbars=yes,resizable=yes,toolbar=yes,status=yes,location=yes,screenX=200,screenY=100,left=200,top=100");
if(d!==null){d.blur()}}}};N.showSearchBox=function(Z){var U=$("#hotelOverviewButton"),Y=N.ixiTransferBox.data("res");
if(Z!=Y){N.ixiTransferBox.hide();N.ixiTransferTip.hide();$("#hotelOverviewButton").css("opacity",1);var T=$("#searchBox2").html();
$("#ixiTransferHeader > div:first").html(i18n_dictionary.searchThisHotel);var W=U.position();var S={h:N.ixiTransferBox.height(),w:N.ixiTransferBox.width()};
var X={l:W.left-S.w-2,t:W.top-(S.h/2)+10};U.css("opacity",0.4);N.ixiTransferBox.css({"left":X.l+"px","top":X.t+"px"}).data("res",Z);
N.ixiTransferTip.css({"left":(X.l+S.w+2)+"px","top":(X.t+(S.h/2)-4)+"px"});N.ixiTransferBox.show();N.ixiTransferTip.show();
var V=IXIGO.Utils.getViewportDimensions();V.h=Math.max(V.h,$(document).height());$("#transparent_div").css({"opacity":0.6,"width":V.w,"height":V.h}).show()
}};N.hideSearchBox=function(T){var S=$("#hotelOverviewButton");N.ixiTransferBox.hide().data("res","");
N.ixiTransferTip.hide();S.css("opacity",1);$("#transparent_div").hide()};N.loadPictures=function(){$("#imageCarousel").html("").css({"marginLeft":(N.hotelImages.length===1)?"135px":(N.hotelImages.length===2)?"90px":(N.hotelImages.length===3)?"45px":"","width":N.hotelImages.length*120+"px","left":"0pt"});
N.currentImageCarousel=0;$("#image_next").fadeTo(500,((N.hotelImages.length>4)?1:0.4));$("#image_previous").fadeTo(500,0.4);
$.each(N.hotelImages,function(V,U){imageCarouselNode=N.createCarousel(U.url,V,$("#imageCarousel"))});
if(N.hotelImages.length>0){N.selectedImageCarousel="imageCarouselId0";$("li#"+N.selectedImageCarousel).attr("class","imageCarouselSelected");
$("#hotelPicture").html('<img src="'+IXIGO.Utils.getStaticPath()+'/img/redirect/redirect_wait.gif" style="margin:100px 150px 0 150px;" />');
var T=new Image();T.onload=function(){var V=Math.min(T.width,310),U=Math.min(T.height,240);$("#hotelPicture").html('<img style="border:1px solid #CCC; padding:1px;" width="'+V+'" height="'+U+'" src='+T.src+"></img>");
$("#hotelPictureSource").html(N.hotelImages[0].source?"source: "+N.hotelImages[0].source:"")};$("#hotelPictureCaption").html(N.hotelImages[0].label||"");
T.src=N.hotelImages[0].url;var S=i18n_dictionary.showing+" "+(N.hotelImages.length>3?"1-4":N.hotelImages.length>2?"1-3":N.hotelImages.length>1?"1-2":"1")+" of "+N.hotelImages.length;
$("#showNumImage").html(S)}};N.onHotelDetailTabClick=function(V,U){var S="",T=U.target;while(T!==V&&!T.getAttribute("action")){T=T.parentNode
}if(T.getAttribute("action")){S=T.getAttribute("action");S=S.lastIndexOf("/")!==-1?S.substring(S.lastIndexOf("/")+1):S;
N.selectTab(S)}};N.selectTab=function(S){if(N.currentTab===S){return }N.hideTab(N.currentTab);N.showTab(S);
N.currentTab=S};N.hideTab=function(S){$("#"+S).hide();$("#"+S+"TabLink").attr("class","hotelDetailTabTitle")
};N.showTab=function(S){$("#"+S).show();$("#"+S+"TabLink").attr("class","hotelDetailTabTitleSelected")
};N.showMoreDesc=function(){if($("#hotelContentDescp").hasClass("less")){$("#hotelContentDescp").animate({height:N.descHeight},1000,function(){$("#showMoreLess").html("<span class='link'>&#171; "+i18n_dictionary.less+"</span>")
})}else{$("#hotelContentDescp").animate({height:90},1000,function(){$("#showMoreLess").html("<span class='link'>"+i18n_dictionary.more+" &#187;</span>");
$("#showMoreLess").prepend("... ")})}$("#hotelContentDescp").toggleClass("less")};N.returnThumbImageURL=function(S){if(S.indexOf("iximg.com")!==-1){var T=S.substring(S.lastIndexOf("/")+1);
S=S.substring(0,S.indexOf(T))+"thumbs/"+T.substring(0,T.lastIndexOf("."))+".jpg"}return S};N.createCarousel=function(X,T,S){var V=$("h1").html();
if(T%4==0){V+=" reservation"}else{if(T%4==1){V+=" booking"}else{if(T%4==2){V+=" online"}else{V+=" website"
}}}var U=$('<li class="imageCarousel" id="imageCarouselId'+T+'"></li>');var W='<image width="90px" alt="'+V+'" id="imageNo'+T+'" height="70px" src=" '+N.returnThumbImageURL(X)+'" />';
U.html(W).appendTo(S);return U};N.nextCarousel=function(){$("li#"+N.selectedImageCarousel).attr("class","imageCarousel");
var S=0;for(var T=0;T<4;T++){if($("#imageCarouselId"+(N.currentImageCarousel+4))[0]){S+=100;N.currentImageCarousel++
}}N.selectedImageCarousel="imageCarouselId"+N.currentImageCarousel;$("li#"+N.selectedImageCarousel).attr("class","imageCarouselSelected");
$("#hotelPicture").html('<img src="'+IXIGO.Utils.getStaticPath()+'/img/redirect/redirect_wait.gif" class="h-img-load" />');
var U=new Image();U.onload=function(){var W=Math.min(U.width,310),V=Math.min(U.height,240);$("#hotelPicture").html('<img class="img-preview" width="'+W+'" height="'+V+'" src='+U.src+"></img>");
$("#hotelPictureSource").html(N.hotelImages[N.currentImageCarousel].source?"source: "+N.hotelImages[N.currentImageCarousel].source:"")
};$("#hotelPictureCaption").html(N.hotelImages[N.currentImageCarousel].label||"");U.src=N.hotelImages[N.currentImageCarousel].url;
$("#imageCarousel").animate({"left":"-="+S+"px"},"slow");if($("#imageCarouselId"+(N.currentImageCarousel+3))[0]){$("#showNumImage").html(i18n_dictionary.showing+" "+(N.currentImageCarousel+1)+"-"+(N.currentImageCarousel+4)+" "+i18n_dictionary.of+" "+N.hotelImages.length)
}$("#image_next").fadeTo(500,(($("#imageCarouselId"+(N.currentImageCarousel+4))[0])?1:0.4));$("#image_previous").fadeTo(500,(($("#imageCarouselId"+(N.currentImageCarousel-1))[0])?1:0.4))
};N.previousCarousel=function(){$("li#"+N.selectedImageCarousel).attr("class","imageCarousel");var S=0;
for(var T=0;T<4;T++){if($("#imageCarouselId"+(N.currentImageCarousel-1))[0]){S+=100;N.currentImageCarousel--
}}N.selectedImageCarousel="imageCarouselId"+N.currentImageCarousel;$("li#"+N.selectedImageCarousel).attr("class","imageCarouselSelected");
$("#hotelPicture").html('<img src="'+IXIGO.Utils.getStaticPath()+'/img/redirect/redirect_wait.gif" style="margin:100px 150px 0 150px;" />');
var U=new Image();U.onload=function(){var W=Math.min(U.width,310),V=Math.min(U.height,240);$("#hotelPicture").html('<img style="border:1px solid #CCC; padding:1px;" width="'+W+'" height="'+V+'" src='+U.src+"></img>");
$("#hotelPictureSource").html(N.hotelImages[N.currentImageCarousel].source?"source: "+N.hotelImages[N.currentImageCarousel].source:"")
};$("#hotelPictureCaption").html(N.hotelImages[N.currentImageCarousel].label||"");U.src=N.hotelImages[N.currentImageCarousel].url;
$("#imageCarousel").animate({"left":"+="+S+"px"},"slow");if($("#imageCarouselId"+(N.currentImageCarousel+3))[0]){$("#showNumImage").html(i18n_dictionary.showing+" "+(N.currentImageCarousel+1)+"-"+(N.currentImageCarousel+4)+" "+i18n_dictionary.of+" "+N.hotelImages.length)
}$("#image_next").fadeTo(500,(($("#imageCarouselId"+(N.currentImageCarousel+4))[0])?1:0.4));$("#image_previous").fadeTo(500,(($("#imageCarouselId"+(N.currentImageCarousel-1))[0])?1:0.4))
};N.loadImage=function(U){var T=U.target;var V;if(T.id&&T.id.indexOf("imageNo")===0){if(N.selectedImageCarousel!==null){$("li#"+N.selectedImageCarousel).attr("class","imageCarousel")
}V=T.id.substring(T.id.indexOf("imageNo")+7);N.selectedImageCarousel="imageCarouselId"+V;$("li#"+N.selectedImageCarousel).attr("class","imageCarouselSelected");
$("#hotelPicture").html('<img src="'+IXIGO.Utils.getStaticPath()+'/img/redirect/redirect_wait.gif" style="margin:100px 150px 0 150px;" />');
var S=new Image();S.onload=function(){var X=Math.min(S.width,310),W=Math.min(S.height,240);$("#hotelPicture").html('<img style="border:1px solid #CCC; padding: 1px;" width="'+X+'" height="'+W+'" src='+S.src+"></img>");
$("#hotelPictureSource").html(N.hotelImages[V].source?"source: "+N.hotelImages[V].source:"")};$("#hotelPictureCaption").html(N.hotelImages[V].label||"");
S.src=N.hotelImages[V].url}};N.changeThumbImageStyle=function(T){var S=T.target;var U;if(S.id&&S.id.indexOf("imageNo")===0){U=S.id.substring(S.id.indexOf("imageNo")+7);
$("#imageCarouselId"+U).attr("class",($("#imageCarouselId"+U).attr("class")==="imageCarouselSelected")?"imageCarousel":"imageCarouselSelected");
if(("imageCarouselId"+U)===N.selectedImageCarousel){$("#imageCarouselId"+U).attr("class","imageCarouselSelected")
}}};N.getStars=function(U){var S="img/hotel/star.gif";var V="&#160;";if(U!==0){for(var T=0;T<U;T++){V+="<img src="+S+"></img>"
}}else{V='<span style="color:#888888;font-weight:normal;margin-left:5px;font-size:11px;">'+i18n_dictionary.noRating+"</span>"
}return V};N.initializeMap=function(){if($("#map_canvas")[0]){N.mapHotelDetail=new GMap2(document.getElementById("map_canvas"),{size:new GSize(551,400)});
N.loadGMap()}};N.loadGMap=function(){var S=N.jsHotelResponse.starRating;N.receivedLandmarkMap=N.jsHotelResponse.landmarks;
getMarkerIcon=function(Y){var X=new GIcon();X.image="/img/hotel/marker_"+Y+".gif";X.shadow="/img/hotel/marker_shadow.png";
X.iconSize=new GSize(25,30);X.shadowSize=new GSize(40,30);X.iconAnchor=new GPoint(0,0);X.infoWindowAnchor=new GPoint(5,1);
X.infoShadowAnchor=new GPoint(18,25);markerOptions={icon:X};return markerOptions};calculateDistanceLandmark=function(Z,f,Y,e){var b=6371;
var h=(Y-Z)*Math.PI/180;var X=(e-f)*Math.PI/180;var j=Math.sin(h*0.5)*Math.sin(h*0.5)+Math.cos(Z*Math.PI/180)*Math.cos(Y*Math.PI/180)*Math.sin(X/2)*Math.sin(X/2);
var i=2*Math.atan2(Math.sqrt(j),Math.sqrt(1-j));var g=b*i;return g};showLandmarks=function(d){var b=null,Z,c;
var Y="";for(var X=0;N.receivedLandmarkMap[X];X++){Z=N.receivedLandmarkMap[X];if(Z.type){c=(Z.type==="A"?"airport":Z.type==="R"?"railway":Z.type==="H"?"hotel":"generic");
Y=Z.name;b=createMarker(new GLatLng(Z.latitude,Z.longitude),getMarkerIcon(c),Y,X+1,c);d.addOverlay(b)
}}};createMarker=function(X,c,d,Z,b){var Y=new GMarker(X,c);var e='<div align="left" >'+d+'</div><div align="left" style="color:gray;font-size:11px;margin:10px 0px 0px 0px;">placement on map is approximate</div>';
GEvent.addListener(Y,"click",function(){Y.openInfoWindowHtml(e,{maxWidth:"250"})});N.marker[Z]=Y;return Y
};if(N.mapHotelDetail!==null&&(N.jsHotelResponse.latitude!==null&N.jsHotelResponse.longitude!==null)){$("#map_canvas").show();
N.mapHotelDetail=new GMap2(document.getElementById("map_canvas"),{size:new GSize(551,400)});var W=N.jsHotelResponse.latitude;
var U=N.jsHotelResponse.longitude;N.mapHotelDetail.setCenter(new GLatLng(W,U),15);N.mapHotelDetail.addControl(new GSmallMapControl());
N.mapHotelDetail.addControl(new GMapTypeControl());var V='<table width="100%" border="0" cellspacing="3" cellpadding="3">'+"<tr>"+'<td  colspan="2" align="left">'+N.jsHotelResponse.name+"</td></tr>"+'<tr><td colspan="2" align="left"><span style="font-weight:bold;color:#666666;">'+i18n_dictionary.rating+":</span> "+N.getStars(S)+"</td>"+"</tr>"+'<tr><td colspan="2" align="left"><span style="color:gray;font-size:11px;">'+i18n_dictionary.mapInfo+"</span></td></tr>"+"</table>";
var T=new GMarker(new GLatLng(W,U),getMarkerIcon("hotel"));N.mapHotelDetail.addOverlay(T);T.openInfoWindowHtml(V,{maxWidth:"250"});
GEvent.addListener(T,"click",function(){T.openInfoWindowHtml(V,{maxWidth:"250"})});N.marker[0]=T;showLandmarks(N.mapHotelDetail)
}};N.renderMapView=function(){var X=$("#hotelDistance").val()==="any"?0:parseFloat($("#hotelDistance").val());
var V;V=X===0.5?14:X===1?15:X===2?14:X==5?9:X==10?10:X==15?9:X==20?9:8;drawCircle=function(Y,l,m,j,q,o,k,Z,p){var f=Math.PI/180;
var c=j*0.014483;var d=c/Math.cos(l*f);var e=[];for(var g=0;g<33;g++){var b=Math.PI*(g/16);Cy=l+(c*Math.sin(b));
Cx=m+(d*Math.cos(b));var h=new GPoint(Cx,Cy);e.push(h)}var n=new GPolygon(e,q,o,k,Z,p);Y.addOverlay(n)
};createMarker=function(j,e,Z,f,i,Y,c,h,g){var d=new GIcon();d.image="/img/hotel/"+Z;d.shadow="/img/hotel/"+Y;
d.iconSize=new GSize(f,i);d.shadowSize=new GSize(c,h);d.iconAnchor=new GPoint(0,0);d.infoWindowAnchor=new GPoint(0,0);
markerOptions={icon:d};var b=new GMarker(j,markerOptions);if(g){GEvent.addListener(b,"click",function(){b.openInfoWindowHtml(e,{maxWidth:"300"})
})}return b};var T=0;var W=parseFloat(N.receivedLandmarkMap[T].latitude);var U=parseFloat(N.receivedLandmarkMap[T].longitude);
N.mapView.clearOverlays();N.mapView.setCenter(new GLatLng(W,U),V);N.mapView.addControl(new GSmallMapControl());
N.mapView.addControl(new GMapTypeControl());drawCircle(N.mapView,W,U,X,"#FF6600",2,0.75,"#FAD55A",0.2);
var S=createMarker(new GLatLng(W,U),N.receivedLandmarkMap[T].name,"push_pin.png",12,28,"push_pin_shadow.png",34,28,true);
N.mapView.addOverlay(S);N.mapViewMarker.push(S)};N.landmarkPositionMapLocate=function(T){var S=T.target;
var U;if(S.id&&S.id.indexOf("landmark")===0){U=S.id.substring(S.id.indexOf("landmark")+8);GEvent.trigger(N.marker[U],"click")
}};N.showCalendar=function(S){var T=Date.today(),V,U;if(S.indexOf("htl_checkIn")!==-1){$("#"+S).calendar({minDate:T,maxDate:B})
}else{if(S.indexOf("htl_checkOut")!==-1){U=(S.indexOf("_2")>=0?$("#htl_checkIn_2").val():N.hotelReqForm.htl_checkIn.value);
V=Date.fromPaddedDate(U);V=V?V:T;V=new Date(V.getFullYear(),V.getMonth(),V.getDate()+1);$("#"+S).calendar({minDate:V,maxDate:G})
}}$("#ixiCalWrapper").click(function(W){W.stopPropagation()})};N.setWeekDay=function(S,U){var T=Date.fromPaddedDate($(U).val());
if(!T){$(S).html("").fadeOut(200)}else{$(S).html(T.getWeekDay()).fadeIn(200)}};N.checkReturnDate=function(W,T,V){var U=Date.fromPaddedDate($(W).val());
var S=Date.fromPaddedDate($(T).val());if(U&&(!S||S.before(U)||S.sameDay(U))){U.setDate(U.getDate()+2);
$(T).val(U.toPaddedDate()).trigger("change")}};N.showNight=function(){var S=Date.fromPaddedDate(N.hotelReqForm.htl_checkOut.value).getTime();
var T=Date.fromPaddedDate(N.hotelReqForm.htl_checkIn.value).getTime();H=(S-T)/(1000*60*60*24);O=(H>1)?H+" "+i18n_dictionary.nights:H+" "+i18n_dictionary.night;
$("#numNights").html("("+O+")")};N.showRoom=function(T){var S=T.indexOf("_2")!==-1?"_2":"";if($("#htl_rooms"+S).val()=="3"){$("#htl_guestOptions2"+S+", #htl_guestOptions3"+S).show()
}else{if($("#htl_rooms"+S).val()=="2"){$.showHide($("#htl_guestOptions2"+S),$("#htl_guestOptions3"+S))
}else{$("#htl_guestOptions2"+S+", #htl_guestOptions3"+S).hide()}}};N.onClickPrices=function(){var T=N.hotelReqForm;
var V=T.htl_where.value;var S=true;if(V=="e.g. London, United Kingdom"){S=false}var U=$("#htl_rooms");
Q=""+"/search/result/hotel/"+V+"/"+T.htl_checkIn.value.replace(new RegExp("/","g"),"")+"/"+T.htl_checkOut.value.replace(new RegExp("/","g"),"")+"/"+T.htl_adult1.value+"/"+T.htl_children1.value+"/";
if(U.val()=="2"){Q+=T.htl_adult2.value+"/"+T.htl_children2.value+"/0/0"}else{if(U.val()=="3"){Q+=T.htl_adult2.value+"/"+T.htl_children2.value+"/"+T.htl_adult3.value+"/"+T.htl_children3.value
}else{Q+="0/0/0/0"}}if(S){var W="";if(document.cookie.indexOf("otaClick=")!=-1){if($("#searchHotelTvl")[0]&&$("#searchHotelTvl")[0].checked){W+="tv-"
}if($("#searchHotelCT")[0]&&$("#searchHotelCT")[0].checked){W+="ct-"}if($("#searchHotelTG")[0]&&$("#searchHotelTG")[0].checked){W+="tg-"
}}window.location.href=Q+"?hid="+$("#hotelOverviewButton").attr("num")+(W!==""?"&clk="+W.substring(0,W.length-1):"")
}else{$("#errorMsg").html(i18n_dictionary.enterCity)}};N.getRoomPrices=function(){var U=false,V,X=A.providerResults,S,T,W,Y;
$.each(A.providerResults,function(b,Z){if(+Z.pid===22){U=true}return !U});if(U){V=A.searchString.split("-");
IXIGO.Ajax.getJson("/action/content/city?searchFor=roomprices&hotelId="+A.hid+"&providerId=22&city="+A.cnm+"&adults1="+V[3]+"&children1="+V[4]+"&adults2="+V[5]+"&children2="+V[6]+"&adults3="+V[7]+"&children3="+V[8]+"&checkin="+V[1]+"&checkout="+V[2],function(Z){if(IXIGO.Utils.isArray(Z)){$.each(Z,function(c,b){S=null;
$.each(X,function(d,e){if(+e.pid===22&&e.spid===b.spid){S=e;return false}});if(S){$.each(b.prices,function(d,e){T=null;
W=e.k||b.key;$.each(S.prices,function(f,g){Y=g.k||S.key;if(W===Y){T=g}});if(T){T.rt=e.rt}else{S.prices.push(e)
}})}})}N.showPricesFromAllProviders()})}else{N.showPricesFromAllProviders()}};N.showPricesFromAllProviders=function(){var m="",n=A.providerResults,S=A.searchString.split("-"),g=+Date.getDifference(Date.fromFlatDate(S[1]).getTime(),Date.fromFlatDate(S[2]).getTime()),x=1+(+S[5]+ +S[6]>0?1:0)+(+S[7]+ +S[8]>0?1:0);
m+='<div class="h-p-d-h sprite-bg-x f-b-h a-p-table">'+'<div id="hotelPriceTabHeaderProvider" class="lfloat wo-ap-provider"><h3>'+i18n_dictionary.provider+"</h3></div>"+'<div id="hotelPriceTabHeaderRate" class="lfloat wo-ap-price"><h3>'+i18n_dictionary.price+"*</h3></div>"+'<div id="hotelPriceTabHeaderPrice" class="lfloat wo-ap-totalprice text-center"><h3>'+i18n_dictionary.totalPrice+'</h3><div class="no-n-r gray">('+g+" "+(g>1?i18n_dictionary.nights:i18n_dictionary.night)+", "+x+" "+(x>1?i18n_dictionary.rooms:i18n_dictionary.room)+")</div></div>"+'<div id="hotelPriceTabHeaderRoom" class="rfloat wo-ap-roomtype"><h3>'+i18n_dictionary.roomTypes+"</h3></div>"+'<div class="clear" />'+"</div>";
$("#headerPriceCurrency").html(n[0].cur.s);$("#headerPrice").html((n[0].cur.f*(parseFloat(n[0].prices[0].b)+parseFloat(n[0].prices[0].f)+parseFloat(n[0].prices[0].t))).toFixed(0));
$("#headerFareProviderName").html(n[0].nm);var l=A.hid,c=A.searchString.split("-"),k=c[1],v=c[2],V=c[3],b=c[4],U=c[5],Z=c[6],T=c[7],Y=c[8],r=$("#htl_where").val(),o=$("#hotelDetails .h-name").text(),t=$("#cityId").val(),X="/redirect.ixi?type=9&city="+r+"&cityId="+t+"&checkin="+k+"&checkout="+v+"&adults1="+V+"&children1="+b+"&adults2="+U+"&children2="+Z+"&adults3="+T+"&children3="+Y+"&hotelId="+l+"&name="+o,d=X+"&fare="+n[0].prices[0].b.toFixed(0)+"&tax="+n[0].prices[0].t.toFixed(0)+"&currency="+n[0].cur.c+"&provider="+n[0].pid;
if(n[0].prices[0].k||n[0].key){d+="&redirectKey="+encodeURIComponent(n[0].prices[0].k||n[0].key)}if(n[0].spid){d+="&subProviderId="+n[0].spid
}$("#hotelOverviewButton").attr("redirect",d);m+='<div id="priceTableBody" class="dark-gray h-l-padd a-p-table">';
for(var s=0;s<n.length;s++){var w=n[s].pid,y=n[s].spid,f=n[s].prices,u=n[s].cur.s,h=n[s].cur.c,q=n[s].cur.f,e=((parseFloat(f[0].f.toFixed(0))+parseFloat(f[0].t.toFixed(0)))),W=((parseFloat(f[0].b.toFixed(0))+parseInt(e))*q).toFixed(0)*g*x,z=encodeURIComponent(f[0].k!=null?f[0].k:n[s].key);
m+='<div class="row">'+"<div>"+'<div class="lfloat wo-ap-provider"><img src="'+IXIGO.Utils.getStaticPath()+"/img/providers/smallLogo/provider_"+w+(y||"")+'_small.gif" /></div>'+'<div class="lfloat wo-ap-price parentProvider-'+s+'"><span class="currency">'+u+'</span><span class="price">'+((parseFloat(f[0].b.toFixed(0))*q)+(parseInt(e)*q)).toFixed(0)+"</span></div>"+'<div class="lfloat wo-ap-totalprice parentProvider-'+s+'">'+'<div class="lfloat fare"><span class="currency">'+u+'</span><span class="price">'+W+"</span></div>"+'<div class="lfloat parentProvider-'+s+'">'+'<div param="'+f[0].b.toFixed(0)+"\u22A5"+f[0].t.toFixed(0)+"\u22A5"+h+"\u22A5"+w+"\u22A5"+(z||"")+"\u22A5"+(y||"")+'" class="hotelSelectOverviewButton lfloat rnd-all sprite-bg-x btn-orange-small" id="hotelSelectOverviewButton-'+s+'">'+i18n_dictionary.select+"</div>"+"</div>"+"</div>";
if(f.length>1){m+='<div class="rfloat wo-ap-roomtype link allPrices"  num="'+s+'">'+i18n_dictionary.showAll+"</div>"
}else{m+='<div class="rfloat wo-ap-roomtype" title="'+f[0].rt+'">'+(f[0].rt.length>30?f[0].rt.substring(0,27)+"...":f[0].rt)+"</div>"
}m+='<div class="clear" />'+"</div>";m+='<div id="showAllPrices-'+s+'" class="s-a-p-border hide">';for(var p=0;
p<f.length;p++){var e=((parseFloat(f[p].f.toFixed(0))+parseFloat(f[p].t.toFixed(0)))),W=((parseFloat(f[p].b.toFixed(0))+parseInt(e))*q).toFixed(0)*g*x,z=encodeURIComponent(f[p].k!=null?f[p].k:n[s].key);
m+='<div class="show-all-prices">'+'<div class="lfloat wo-ap-provider">&#160;</div>'+'<div class="lfloat wo-ap-price"><span class="currency">'+u+'</span><span class="price">'+((parseFloat(f[p].b.toFixed(0))*q)+(parseInt(e)*q)).toFixed(0)+"</span></div>"+'<div class="lfloat wo-ap-totalprice">'+'<div class="lfloat fare"><span class="currency">'+u+'</span><span class="price">'+W+"</span></div>"+'<div class="lfloat priceTabRowButton rnd-all sprite-bg-x btn-orange-small">'+'<div param="'+f[p].b.toFixed(0)+"\u22A5"+f[p].t.toFixed(0)+"\u22A5"+h+"\u22A5"+w+"\u22A5"+(z||"")+"\u22A5"+(y||"")+'" class="hotelSelectOverviewButton" id="hotelSelectOverviewButton-'+s+"-"+p+'">'+i18n_dictionary.select+"</div>"+"</div>"+'<div class="clear" />'+"</div>"+'<div class="lfloat rfloat wo-ap-roomtype" title="'+f[p].rt+'">'+(f[p].rt.length>30?f[p].rt.substring(0,27)+"...":f[p].rt)+"</div>"+'<div class="clear"></div>'+"</div>"
}m+="</div>"+"</div>"}m+='<div class="gray">*'+i18n_dictionary.roomCharge+" ("+i18n_dictionary.inclusiveTax+")</div>"+"</div>";
$("#priceTable").html(m);$(".allPrices").click(function(){var i=$(this).attr("num");if($(this).html()==i18n_dictionary.showAll){$(".parentProvider-"+i).css("visibility","hidden")
}else{$(".parentProvider-"+i).css("visibility","visible")}$(this).toggleText(i18n_dictionary.hideAll,i18n_dictionary.showAll);
$("#showAllPrices-"+i).slideFadeToggle("fast")});$("div.hotelSelectOverviewButton").mouseover(function(i){IXIGO.Utils.onHoverButton("#"+this.id,"","")
}).mouseout(function(i){IXIGO.Utils.onHoverButton("#"+this.id,"","")}).click(function(){var i=$(this).attr("param").split("\u22A5"),j=X+"&fare="+i[0]+"&tax="+i[1]+"&currency="+i[2]+"&provider="+i[3];
if(i[4]){j+="&redirectKey="+i[4]}if(i[5]){j+="&subProviderId="+i[5]}window.open(j)});$("#hotelPrice").show()
};N.getRedirectionLink=function(U,T){if(T>0){T-=1}var V="/redirect.ixi?&type=9";var W=N.receivedRates[U];
var S=W.providerId;var X=IXIGO.Cookie.read("__utmz");if(X){var Y=X.indexOf("gclid");if(Y!==-1){X=X.substring(Y);
V+="&"+X.substring(0,X.indexOf("|"))}}var Z=W.roomPrices[T].key||W.redirectKey;V+=""+N.redirectParams+"&hotelId="+K+"&city="+F+"&fare="+W.roomPrices[T].price+"&tax="+W.roomPrices[T].tax+"&currency=INR";
if(Z){V+="&redirectKey="+encodeURIComponent(Z)}if(W.subProviderId){V+="&provider="+S.substring(0,S.indexOf(W.subProviderId));
V+="&subProviderId="+W.subProviderId}else{V+="&provider="+S}return V};N.showUserRatingRings=function(){if(!D){return 
}var U=(+D.attr("rating")).toFixed(1),T,S="";for(T=0;U>2;T++){S+='<div class="floatleft sprite-icon icon-ring-full'+(T===0?"-first":"")+' rvw-rating-ring" />';
U-=2}if(U>1){S+='<div class="floatleft sprite-icon icon-ring-half'+(T===0?"-first":"")+' rvw-rating-ring" />';
T++}for(;T<5;T++){S+='<div class="floatleft sprite-icon icon-ring-empty rvw-rating-ring" />'}S+='<div class="clear" />';
D.html(S)};var M=function(U){var T=new Date(),S;T.setTime(U);S=[T.getDate(),I[T.getMonth()],T.getFullYear()];
if(S[0]<10){S[0]="0"+S[0]}return S.join(" ")};N.showMoreReviews=function(){var S=[J.resource,"hotelId="+K,"start="+J.start,"rows="+J.rows].join("&");
if(J.aspect){S+="&aspect="+J.aspect}if(J.sentiment){S+="&sentiment="+J.sentiment}$.showHide(C,P);IXIGO.Ajax.getJson(S,function(T){var U="";
if(T){$.each(T.rl,function(W,V){U+=""+'<div class="review-list-item '+(V.p?"positive":"negative")+'">'+'<table cellspacing="0" cellpadding="0">'+"<tr>"+'<td class="rvw-icon"><div class="sprite-icon thumbs-'+(V.p?"up":"down")+'" /></td>'+'<td class="rvw-text">'+'<div><span class="rvw-quote">&#8220;</span>'+V.c+'<span class="rvw-quote">&#8221;</span></div>'+'<div class="rvw-provider"><a href="'+V.u+'" target="_blank">'+V.s+'</a><span class="sep">&#183;</span><span class="rvw-timestamp">'+M(+V.d)+"</span></div>"+"</td>"+"</tr>"+"</table>"+"</div>"
})}R.append(U);J.start+=J.rows;if(J.start>=J.total){C.hide()}else{$.showHide(P,C)}})}};
