(function(C){C.ui=C.ui||{};C.extend(C.ui,{plugin:{add:function(E,F,H){var G=C.ui[E].prototype;for(var D in H){G.plugins[D]=G.plugins[D]||[];
G.plugins[D].push([F,H[D]])}},call:function(D,E,G){var H=D.plugins[E];if(!H){return }for(var F=0;F<H.length;
F++){if(D.options[H[F][0]]){H[F][1].apply(D.element,G)}}}},cssCache:{},css:function(D){if(C.ui.cssCache[D]){return C.ui.cssCache[D]
}var E=C('<div class="ui-resizable-gen">').addClass(D).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");
C.ui.cssCache[D]=!!((!/auto|default/.test(E.css("cursor"))||(/^[1-9]/).test(E.css("height"))||(/^[1-9]/).test(E.css("width"))||!(/none/).test(E.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(E.css("backgroundColor"))));
try{C("body").get(0).removeChild(E.get(0))}catch(F){}return C.ui.cssCache[D]},disableSelection:function(D){D.unselectable="on";
D.onselectstart=function(){return false};if(D.style){D.style.MozUserSelect="none"}},enableSelection:function(D){D.unselectable="off";
D.onselectstart=function(){return true};if(D.style){D.style.MozUserSelect=""}},hasScroll:function(G,E){var D=/top/.test(E||"top")?"scrollTop":"scrollLeft",F=false;
if(G[D]>0){return true}G[D]=1;F=G[D]>0?true:false;G[D]=0;return F}});C.each(["Left","Top"],function(E,D){if(!C.fn["scroll"+D]){C.fn["scroll"+D]=function(F){return F!=undefined?this.each(function(){this==window||this==document?window.scrollTo(D=="Left"?F:C(window)["scrollLeft"](),D=="Top"?F:C(window)["scrollTop"]()):this["scroll"+D]=F
}):this[0]==window||this[0]==document?self[(D=="Left"?"pageXOffset":"pageYOffset")]||C.boxModel&&document.documentElement["scroll"+D]||document.body["scroll"+D]:this[0]["scroll"+D]
}}});var B=C.fn.remove;C.fn.extend({position:function(){var F=this.offset();var E=this.offsetParent();
var D=E.offset();return{top:F.top-A(this[0],"marginTop")-D.top-A(E,"borderTopWidth"),left:F.left-A(this[0],"marginLeft")-D.left-A(E,"borderLeftWidth")}
},offsetParent:function(){var D=this[0].offsetParent;while(D&&(!/^body|html$/i.test(D.tagName)&&C.css(D,"position")=="static")){D=D.offsetParent
}return C(D)},mouseInteraction:function(D){return this.each(function(){new C.ui.mouseInteraction(this,D)
})},removeMouseInteraction:function(D){return this.each(function(){if(C.data(this,"ui-mouse")){C.data(this,"ui-mouse").destroy()
}})},remove:function(){jQuery("*",this).add(this).trigger("remove");return B.apply(this,arguments)}});
function A(D,E){return parseInt(C.curCSS(D.jquery?D[0]:D,E,true))||0}C.ui.mouseInteraction=function(F,E){var D=this;
this.element=F;C.data(this.element,"ui-mouse",this);this.options=C.extend({},E);C(F).bind("mousedown.draggable",function(){return D.click.apply(D,arguments)
});if(C.browser.msie){C(F).attr("unselectable","on")}C(F).mouseup(function(){if(D.timer){clearInterval(D.timer)
}})};C.extend(C.ui.mouseInteraction.prototype,{destroy:function(){C(this.element).unbind("mousedown.draggable")
},trigger:function(){return this.click.apply(this,arguments)},click:function(F){if(F.which!=1||C.inArray(F.target.nodeName.toLowerCase(),this.options.dragPrevention||[])!=-1||(this.options.condition&&!this.options.condition.apply(this.options.executor||this,[F,this.element]))){return true
}var E=this;var D=function(){E._MP={left:F.pageX,top:F.pageY};C(document).bind("mouseup.draggable",function(){return E.stop.apply(E,arguments)
});C(document).bind("mousemove.draggable",function(){return E.drag.apply(E,arguments)});if(!E.initalized&&Math.abs(E._MP.left-F.pageX)>=E.options.distance||Math.abs(E._MP.top-F.pageY)>=E.options.distance){if(E.options.start){E.options.start.call(E.options.executor||E,F,E.element)
}if(E.options.drag){E.options.drag.call(E.options.executor||E,F,this.element)}E.initialized=true}};if(this.options.delay){if(this.timer){clearInterval(this.timer)
}this.timer=setTimeout(D,this.options.delay)}else{D()}return false},stop:function(D){var E=this.options;
if(!this.initialized){return C(document).unbind("mouseup.draggable").unbind("mousemove.draggable")}if(this.options.stop){this.options.stop.call(this.options.executor||this,D,this.element)
}C(document).unbind("mouseup.draggable").unbind("mousemove.draggable");this.initialized=false;return false
},drag:function(D){var E=this.options;if(C.browser.msie&&!D.button){return this.stop.apply(this,[D])}if(!this.initialized&&(Math.abs(this._MP.left-D.pageX)>=E.distance||Math.abs(this._MP.top-D.pageY)>=E.distance)){if(this.options.start){this.options.start.call(this.options.executor||this,D,this.element)
}this.initialized=true}else{if(!this.initialized){return false}}if(E.drag){E.drag.call(this.options.executor||this,D,this.element)
}return false}})})(jQuery);(function(A){A.fn.extend({slider:function(C,D){var B=Array.prototype.slice.call(arguments,1);
if(C=="value"){return A.data(this[0],"slider").value(arguments[1])}return this.each(function(){if(typeof C=="string"){var E=A.data(this,"slider");
if(E){E[C].apply(E,B)}}else{if(!A.data(this,"slider")){D[this.id]=new A.ui.slider(this,C)}}})}});A.ui.slider=function(D,C){var B=this;
this.element=A(D);A.data(D,"slider",this);this.element.addClass("ui-slider");this.options=A.extend({},A.ui.slider.defaults,C);
var E=this.options;A.extend(E,{axis:E.axis||(D.offsetWidth<D.offsetHeight?"vertical":"horizontal"),max:!isNaN(parseInt(E.max,10))?{x:parseInt(E.max,10),y:parseInt(E.max,10)}:({x:E.max&&E.max.x||100,y:E.max&&E.max.y||100}),min:!isNaN(parseInt(E.min,10))?{x:parseInt(E.min,10),y:parseInt(E.min,10)}:({x:E.min&&E.min.x||0,y:E.min&&E.min.y||0})});
E.realMax={x:E.max.x-E.min.x,y:E.max.y-E.min.y};E.stepping={x:E.stepping&&E.stepping.x||parseInt(E.stepping,10)||(E.steps&&E.steps.x?E.realMax.x/E.steps.x:0),y:E.stepping&&E.stepping.y||parseInt(E.stepping,10)||(E.steps&&E.steps.y?E.realMax.y/E.steps.y:0)};
A(D).bind("setData.slider",function(G,F,H){B.options[F]=H}).bind("getData.slider",function(G,F){return B.options[F]
});this.handle=A(E.handle,D);if(!this.handle.length){B.handle=B.generated=A(E.handles||[0]).map(function(){var F=A("<div/>").addClass("ui-slider-handle").appendTo(D);
if(this.id){F.attr("id",this.id)}return F[0]})}A(this.handle).mouseInteraction({executor:this,delay:E.delay,distance:E.distance!=undefined?E.distance:1,dragPrevention:E.prevention?E.prevention.toLowerCase().split(","):["input","textarea","button","select","option"],start:this.start,stop:this.stop,drag:this.drag,condition:function(G,F){if(!this.disabled){if(this.currentHandle){this.blur(this.currentHandle)
}this.focus(F,1);return !this.disabled}}}).wrap('<a href="javascript:void(0)" style="cursor:default;"></a>').parent().bind("focus",function(F){B.focus(this.firstChild)
}).bind("blur",function(F){B.blur(this.firstChild)}).bind("keydown",function(F){if(/(37|38|39|40)/.test(F.keyCode)){B.moveTo({x:/(37|39)/.test(F.keyCode)?(F.keyCode==37?"-":"+")+"="+B.oneStep(1):null,y:/(38|40)/.test(F.keyCode)?(F.keyCode==38?"-":"+")+"="+B.oneStep(2):null},this.firstChild)
}});this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.element.bind("mousedown.slider",function(F){B.click.apply(B,[F]);
B.currentHandle.data("ui-mouse").trigger(F);B.firstValue=B.firstValue+1});A.each(E.handles||[],function(F,G){B.moveTo(G.start,F,true)
});if(!isNaN(E.startValue)){this.moveTo(E.startValue,0,true)}if(this.handle.length==1){this.previousHandle=this.handle
}if(this.handle.length==2&&E.range){this.createRange()}};A.extend(A.ui.slider.prototype,{plugins:{},createRange:function(){this.rangeElement=A("<div></div>").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.element);
this.updateRange()},updateRange:function(){var C=this.options.axis=="vertical"?"top":"left";var B=this.options.axis=="vertical"?"height":"width";
this.rangeElement.css(C,parseInt(A(this.handle[0]).css(C),10)+this.handleSize(0,this.options.axis=="vertical"?2:1)/2);
this.rangeElement.css(B,parseInt(A(this.handle[1]).css(C),10)-parseInt(A(this.handle[0]).css(C),10))},getRange:function(){return this.rangeElement?this.convertValue(parseInt(this.rangeElement.css(this.options.axis=="vertical"?"height":"width"),10)):null
},ui:function(B){return{instance:this,options:this.options,handle:this.currentHandle,value:this.options.axis!="both"||!this.options.axis?Math.round(this.value(null,this.options.axis=="vertical"?2:1)):{x:Math.round(this.value(null,1)),y:Math.round(this.value(null,2))},range:this.getRange()}
},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);this.element.triggerHandler(C=="slide"?C:"slide"+C,[B,this.ui()],this.options[C])
},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");
this.handle.removeMouseInteraction();this.generated&&this.generated.remove()},enable:function(){this.element.removeClass("ui-slider-disabled");
this.disabled=false},disable:function(){this.element.addClass("ui-slider-disabled");this.disabled=true
},focus:function(B,C){this.currentHandle=A(B).addClass("ui-slider-handle-active");if(C){this.currentHandle.parent()[0].focus()
}},blur:function(B){A(B).removeClass("ui-slider-handle-active");if(this.currentHandle&&this.currentHandle[0]==B){this.previousHandle=this.currentHandle;
this.currentHandle=null}},value:function(D,B){if(this.handle.length==1){this.currentHandle=this.handle
}if(!B){B=this.options.axis=="vertical"?2:1}var C=((parseInt(A(D!=undefined&&D!==null?this.handle[D]||D:this.currentHandle).css(B==1?"left":"top"),10)/(this.actualSize[B==1?"width":"height"]-this.handleSize(null,B)))*this.options.realMax[B==1?"x":"y"])+this.options.min[B==1?"x":"y"];
var E=this.options;if(E.stepping[B==1?"x":"y"]){C=Math.round(C/E.stepping[B==1?"x":"y"])*E.stepping[B==1?"x":"y"]
}return C},convertValue:function(C,B){if(!B){B=this.options.axis=="vertical"?2:1}return this.options.min[B==1?"x":"y"]+(C/(this.actualSize[B==1?"width":"height"]-this.handleSize(null,B)))*this.options.realMax[B==1?"x":"y"]
},translateValue:function(C,B){if(!B){B=this.options.axis=="vertical"?2:1}return((C-this.options.min[B==1?"x":"y"])/this.options.realMax[B==1?"x":"y"])*(this.actualSize[B==1?"width":"height"]-this.handleSize(null,B))
},handleSize:function(C,B){if(!B){B=this.options.axis=="vertical"?2:1}return A(C!=undefined&&C!==null?this.handle[C]:this.currentHandle)[B==1?"outerWidth":"outerHeight"]()
},click:function(C){var D=[C.pageX,C.pageY];var B=false;this.handle.each(function(){if(this==C.target){B=true
}});if(B||this.disabled||!(this.currentHandle||this.previousHandle)){return }if(this.previousHandle){this.focus(this.previousHandle,1)
}this.offset=this.element.offset();this.moveTo({y:this.convertValue(C.pageY-this.offset.top-this.currentHandle.outerHeight()/2),x:this.convertValue(C.pageX-this.offset.left-this.currentHandle.outerWidth()/2)},null,true);
this.propagate("change",C)},start:function(C,B){var D=this.options;if(!this.currentHandle){this.focus(this.previousHandle,true)
}this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:C.pageY-this.handleOffset.top,left:C.pageX-this.handleOffset.left};
this.firstValue=this.value();this.propagate("start",C);return false},stop:function(B){this.propagate("stop",B);
if(this.firstValue!=this.value()){this.propagate("change",B)}this.focus(this.currentHandle,true);return false
},oneStep:function(B){if(!B){B=this.options.axis=="vertical"?2:1}return this.options.stepping[B==1?"x":"y"]?this.options.stepping[B==1?"x":"y"]:(this.options.realMax[B==1?"x":"y"]/this.actualSize[B==1?"width":"height"])*5
},translateRange:function(D,B){if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&D>=this.translateValue(this.value(1),B)){D=this.translateValue(this.value(1,B)-this.oneStep(B),B)
}if(this.currentHandle[0]==this.handle[1]&&D<=this.translateValue(this.value(0),B)){D=this.translateValue(this.value(0,B)+this.oneStep(B))
}}if(this.options.handles){var C=this.options.handles[this.handleIndex()];if(D<this.translateValue(C.min,B)){D=this.translateValue(C.min,B)
}else{if(D>this.translateValue(C.max,B)){D=this.translateValue(C.max,B)}}}return D},handleIndex:function(){return this.handle.index(this.currentHandle[0])
},translateLimits:function(C,B){if(!B){B=this.options.axis=="vertical"?2:1}if(C>=this.actualSize[B==1?"width":"height"]-this.handleSize(null,B)){C=this.actualSize[B==1?"width":"height"]-this.handleSize(null,B)
}if(C<=0){C=0}return C},drag:function(E,D){var F=this.options;var B={top:E.pageY-this.offset.top-this.clickOffset.top,left:E.pageX-this.offset.left-this.clickOffset.left};
if(!this.currentHandle){this.focus(this.previousHandle,true)}B.left=this.translateLimits(B.left,1);B.top=this.translateLimits(B.top,2);
if(F.stepping.x){var C=this.convertValue(B.left,1);C=Math.round(C/F.stepping.x)*F.stepping.x;B.left=this.translateValue(C,1)
}if(F.stepping.y){var C=this.convertValue(B.top,2);C=Math.round(C/F.stepping.y)*F.stepping.y;B.top=this.translateValue(C,2)
}B.left=this.translateRange(B.left,1);B.top=this.translateRange(B.top,2);if(F.axis!="vertical"){this.currentHandle.css({left:B.left})
}if(F.axis!="horizontal"){this.currentHandle.css({top:B.top})}if(this.rangeElement){this.updateRange()
}this.propagate("slide",E);return false},moveTo:function(F,E,G){var H=this.options;if(E==undefined&&!this.currentHandle&&this.handle.length!=1){return false
}if(E==undefined&&!this.currentHandle){E=0}if(E!=undefined){this.currentHandle=this.previousHandle=A(this.handle[E]||E)
}if(F.x!==undefined&&F.y!==undefined){var B=F.x;var I=F.y}else{var B=F,I=F}if(B&&B.constructor!=Number){var D=/^\-\=/.test(B),C=/^\+\=/.test(B);
if(D){B=this.value(null,1)-parseInt(B.replace("-=",""),10)}else{if(C){B=this.value(null,1)+parseInt(B.replace("+=",""),10)
}}}if(I&&I.constructor!=Number){var D=/^\-\=/.test(I),C=/^\+\=/.test(I);if(D){I=this.value(null,2)-parseInt(I.replace("-=",""),10)
}else{if(C){I=this.value(null,2)+parseInt(I.replace("+=",""),10)}}}if(H.axis!="vertical"&&B){if(H.stepping.x){B=Math.round(B/H.stepping.x)*H.stepping.x
}B=this.translateValue(B,1);B=this.translateLimits(B,1);B=this.translateRange(B,1);this.currentHandle.css({left:B})
}if(H.axis!="horizontal"&&I){if(H.stepping.y){I=Math.round(I/H.stepping.y)*H.stepping.y}I=this.translateValue(I,2);
I=this.translateLimits(I,2);I=this.translateRange(I,2);this.currentHandle.css({top:I})}if(this.rangeElement){this.updateRange()
}if(!G){this.propagate("start",null);this.propagate("stop",null);this.propagate("change",null);this.propagate("slide",null)
}}});A.ui.slider.defaults={handle:".ui-slider-handle"}})(jQuery);if(typeof (IXIGO)=="undefined"){IXIGO={}
}IXIGO.Pager=function(H){var D=this,B=1,C=0,A=0,G=0,F=$(".resultPagerButtons"),E;this.perPage=H||10;this.lower=0;
this.upper=(H?(H-1):0);this.init=function(){F.click(function(I){D.onclickPager(this,I)});$(F[1]).addClass("pager-bottom").find("label").text("results per page: "+this.perPage)
};this.reset=function(){B=1};this.onclickPager=function(M,I){var K=I.target;I.stopPropagation();while(K!==M&&!K.getAttribute("invoke")){K=K.parentNode
}var L=K.getAttribute("invoke");if(L){if(L=="navigation"){var J=K.id.split("-");if(J[1]){if(isNaN(J[1])){if(J[1]=="next"){++B
}else{if(J[1]=="prev"){--B}else{if(J[1]=="first"){B=1}else{if(J[1]=="last"){B=G}}}}}else{B=parseInt(J[1],10)
}if($(K).parents(".resultPagerButtons.pager-bottom")[0]){$("html, body").animate({scrollTop:this.getContentContainer().scrollTop()},500)
}$(this).trigger("change")}}}};this.getContentContainer=function(){if(!E){E=$("#contentContainer")}return E
};this.show=function(){F.show()};this.hide=function(){F.hide()};this.update=function(){var I=function(){var N=""+'<span id="page-first-btn" title="first page"'+(B>1?' invoke="navigation"':' class="disable"')+">&#171;</span>"+'<span id="page-prev-btn" title="previous page"'+(B>1?' invoke="navigation"':' class="disable"')+">&#8249;</span>",O=Math.max(B-(4-(Math.min(G-B,2))),1),L=1;
for(;O<B;O++,L++){N+='<span id="page-'+O+'-btn" title="goto page '+O+'" invoke="navigation"'+(O>9?'class="narrow"':"")+">"+O+"</span>"
}N+='<span id="page-'+B+'-btn" title="page '+B+'" class="selected'+(O>9?" narrow":"")+'">'+B+"</span>";
var P=Math.min((G-B),(5-L)),O=B+1;for(var M=0;M<P;O++,M++){N+='<span id="page-'+O+'-btn" title="goto page '+O+'" invoke="navigation"'+(O>9?'class="narrow"':"")+">"+O+"</span>"
}N+=""+'<span id="page-next-btn" title="next page"'+(B<G?' invoke="navigation"':' class="disable"')+">&#8250;</span>"+'<span id="page-last-btn" title="last page"'+(B<G?' invoke="navigation"':' class="disable"')+">&#187;</span>";
return N};var J=C-A,K=[A,"of",C,"result"+(C==1?"":"s")];if(J>0){K[K.length]="("+J;K[K.length]="filtered)"
}F.find("table td").html(I());$(F[0]).find("label").text(K.join(" "))};this.setNbResults=function(I,J){C=Math.max(C,J);
A=I;G=Math.ceil(A/this.perPage);B=Math.min(B,G);B=Math.max(B,1);this.lower=(B-1)*this.perPage;this.upper=Math.min(this.lower+this.perPage-1,A-1);
this.update()}};IXIGO.Cache=function(){this.cacheValue="";this.setCurrencyCode=function(a_set){document.forms.cache.currencyCode.value=a_set
};this.getCurrencyCode=function(){return document.forms.cache.currencyCode.value};this.setCurrencySymbol=function(a_set){document.forms.cache.currencySymbol.value=a_set
};this.getCurrencySymbol=function(){return document.forms.cache.currencySymbol.value};this.setCurrencyFactor=function(a_set){document.forms.cache.currencyFactor.value=a_set
};this.getCurrencyFactor=function(){return document.forms.cache.currencyFactor.value};this.getValue=function(){var value=eval(document.forms.cache.responses.value);
return value};this.isCached=function(){return(document.forms.cache.responses.value!=="")};this.add=function(a_text){this.cacheValue+=","+a_text
};this.save=function(){if(this.cacheValue!==""){this.cacheValue="["+this.cacheValue.substring(1,this.cacheValue.length)+"]";
document.forms.cache.responses.value=this.cacheValue}};this.setComplete=function(complete){document.forms.cache.searchComplete.value=complete
};this.isComplete=function(){return(document.forms.cache.searchComplete.value==="true")};this.hasResults=function(){if(document.forms.cache.responses.value.indexOf("noResults")!==-1){return false
}return true};this.updateAirportMaps=function(a_req){if(document.forms.cache.airportMaps.value===""){document.forms.cache.airportMaps.value="["+a_req+"]"
}};this.getAirportMaps=function(){var value=eval(document.forms.cache.airportMaps.value);return value
}};IXIGO.Slider=function(){var A=null;this.filter=null;this.sliders={};this.init=function(B){A=this;this.filter=B
};this.create=function(B){var C=B.track;this.before(C);$("div#"+C).slider({animate:true,stepping:B.steps,min:B.min,max:B.max,range:true,slide:function(E,D){B.onSlide.call(A.filter,[$("div#"+C).slider("value",0),$("div#"+C).slider("value",1)])
},change:function(E,D){B.onChange.call(A.filter,[$("div#"+C).slider("value",0),$("div#"+C).slider("value",1)]);
$(A.filter).trigger("change")},handles:[{start:B.min,min:B.min,max:B.max},{start:B.max,min:B.min,max:B.max}]},this.sliders);
this.after(B)};this.before=function(B){if(this.sliders[B]){$("div#"+B+" .ui-slider-range").remove();$("div#"+B).slider("destroy");
this.sliders[B]=null}};this.after=function(B){B.onSlide.call(A.filter,[B.min,B.max])};this.reset=function(B){var C=$("div#"+B.track+" div.ui-slider-handle");
var D=B.params?B.params:[0,135,7.5,135];if(C[0]){$(C[0]).css("left",D[0]+"px");$(C[1]).css("left",D[1]+"px");
$("div#"+B.track+" div.ui-slider-range").css({"left":D[2]+"px","width":D[3]+"px"});B.onChange.call(A.filter,B.range)
}};this.moveTo=function(B){this.sliders[B.track].moveTo(B.val[0],0,true);this.sliders[B.track].moveTo(B.val[1],1,true)
}};IXIGO.getParameters=function(B){B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var A="[\\?&]"+B+"=([^&#]*)";
var D=new RegExp(A);var C=D.exec(window.location.href);if(C==null){return""}else{return C[1]}};IXIGO.getDomain=function(){var B=new RegExp("http://[^/]*");
var A=B.exec(window.location.href);if(A==null){return""}else{return A[0]}};IXIGO.CurrencyComponent=function(){var A=null,B=false;
this.result;this.options;this.currency=[];this.currentCountryCode;this.currentCountrySymbol;this.currencyFactor;
this.currencyArray=["USD","AUD","BRL","GBP","CAD","CNY","DKK","EUR","HKD","INR","JPY","MYR","MXN","NZD","NOK","SGD","ZAR","KRW","LKR","SEK","CHF","TWD","THB"];
this.countryArray=["US","AU","BR","GB","CA","CN","DK","EU","HK","IN","JP","MY","MX","NZ","NO","SG","ZA","KR","LK","SE","CH","TW","TH"];
this.wait={currFlag:false,geoipFlag:false};this.setup=function(){A=this;this.result=arguments[0];this.options=arguments[1];
this.currentCountryCode=this.result.cache.getCurrencyCode()!==""?this.result.cache.getCurrencyCode():"INR";
this.currentCountrySymbol=this.result.cache.getCurrencySymbol()!==""?this.result.cache.getCurrencySymbol():"Rs.";
this.currencyFactor=this.result.cache.getCurrencyFactor()!==""?this.result.cache.getCurrencyFactor():1;
$("#"+this.options.element).change(function(){A.currencyChange()});$.getJSON(IXIGO.data.baseURL+"/action/content/currency?searchFor=currency",function(E){A.fetchCurrencyCode(E)
});var D=IXIGO.Cookie.getCurrency();if(D){this.currentCountryCode=D;A.wait.geoipFlag=true}else{var C=document.createElement("script");
C.type="text/javascript";C.src="http://j.maxmind.com/app/geoip.js";C.onload=C.onreadystatechange=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){A.wait.geoipFlag=true
}};$("body")[0].appendChild(C)}};this.init=function(){if(B){return }this.wait.timer=setInterval(function(){if(A.wait.currFlag&&A.wait.geoipFlag){clearInterval(A.wait.timer);
A.initOnLoad()}},13);B=true};this.initOnLoad=function(){if(!this.currentCountryCode){for(var C=0;this.currencyArray[C];
C++){if(this.countryArray[C]===this.getCountryCode()){this.currentCountryCode=this.currencyArray[C];break
}}if(this.getCountryCode()!=="IN"&&this.currentCountryCode==="INR"){this.currentCountryCode="INR"}}this.currentCountrySymbol=this.currency[this.currentCountryCode].symbol;
this.currencyFactor=(this.currency[this.currentCountryCode].rate)/(this.currency.INR.rate);$("#"+this.options.element).val(this.currentCountryCode).trigger("change")
};this.fetchCurrencyCode=function(C){var E="";for(var D=0;C[D];D++){this.currency[C[D].code]=C[D];E+='<option value="'+C[D].code+'">'+C[D].code+"</option>"
}$("#"+this.options.element).append(E).val(this.currentCountryCode);this.wait.currFlag=true};this.getCountryCode=function(){return typeof (geoip_country_code)=="undefined"?"INR":geoip_country_code()
};this.currencyChange=function(){var C=$("select#"+this.options.element).val();this.currentCountryCode=C;
this.currentCountrySymbol=A.currency[C].symbol;this.currencyFactor=(A.currency[C].rate)/(A.currency.INR.rate);
IXIGO.Cookie.setCurrency(C);this.options.onChange.call(A.result)}};IXIGO.Set=function(){this.length=0;
this.items={};this.add=function(A){this.items[A]=true;this.length++};this.remove=function(A){delete this.items[A];
this.length--};this.contains=function(A){return this.items[A]?true:false};this.join=function(A){var C="";
for(var B in this.items){C+=","+B}if(C.length>0){C=C.substring(1)}return C}};IXIGO.OrderedMap=function(){this.length=0;
var C={};var B=[];var A={};this.put=function(E,F){C[E]=F;var D=A[E];if(D){B[D]=F}else{D=B.length;B[D]=F;
A[E]=D;this.length++}return D};this.get=function(D){return C[D]};this.valueAt=function(D){return B[D]
};this.sort=function(D){B.sort(D);A={};for(var E in B){A[B[E].getKey()]=E}};this.remove=function(F){delete C[F];
var D=A[F];B=B.splice(D,1);A={};for(var E in B){A[B[E].getKey()]=E}this.length--}};IXIGO.Map=function(){this.length=0;
this.items={};this.put=function(A,B){this.items[A]=B;this.length++};this.get=function(A){return this.items[A]
};this.remove=function(A){delete this.items[A];this.length--}};