if(typeof (IXIGO)=="undefined"){IXIGO={}}IXIGO.initKitchen=function(){var B=window.location.href.indexOf("#");
var A="#"+window.location.href.substr(B+1);$(A+"Tool").show();$("#largeBox").click(function(){$("#trainOrgs,#trainDess, span#trainRadio, span#trainTypeOpt").hide();
$("span#trainRadio").find("input").attr("checked",false);$("span#trainTypeOpt").find("input").attr("checked",false);
$("span#trainRadio").find("input").attr("checked","");$("span#trainTypeOpt").find("input").attr("checked","");
var C=$("input:checkbox[@checked]")[0].value;$("span#"+C+"Radio").find("input").attr("checked",true);
if($("input:checkbox[@checked]").length===3){$("#titleField").val("search cheap flights hotels buses")
}});$("#smallBox, #horizontalBox").click(function(){$("span#trainRadio").find("input").attr("checked",true);
$("span#trainTypeOpt").find("input").attr("checked",true);$("span#trainRadio").find("input").attr("checked","checked");
$("span#trainTypeOpt").find("input").attr("checked","checked");$("#trainOrgs,#trainDess, span#trainRadio, span#trainTypeOpt").show();
if($("input:checkbox[@checked]").length===4){$("#titleField").val("search cheap flights hotels buses trains")
}})};IXIGO.boxSelect=function(){$("#selectColor").css("display",($("#horizontalBox").attr("checked")?"none":"block"))
};IXIGO.viewSelect=function(A){if(A==="theme"){$("#showThemes").show();$("#showCustom").hide()}else{$("#showThemes").hide();
$("#showCustom").show()}};IXIGO.generateSearchBoxCode=function(){var E=$("#cbg").attr("class").substring(1);
var D=$("#cbr").attr("class").substring(1);var C=$("#cfb").attr("class").substring(1);var J=Math.floor(Math.random()*1000);
var I=Math.floor(Math.random()*1000);var H=Math.floor(Math.random()*1000);var B="";if($("#largeBox").attr("checked")){if($("#customSelect").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:600px;width:160px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_160_600.ixi?bgcolor='+E+"&borderColor="+D+"&fontColor="+C+"&clientId="+J+I+H
}else{if($("#whiteTheme").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:600px;width:160px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_160_600.ixi?bgcolor=d5d5d5&borderColor=f7f7f7&fontColor=666666&clientId='+J+I+H
}else{if($("#blueTheme").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:600px;width:160px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_160_600.ixi?bgcolor=ffffff&borderColor=3B5998&fontColor=3B5998&clientId='+J+I+H
}else{B='<iframe scrolling="no" style="border:0px;scrolling:no;height:600px;width:160px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_160_600.ixi?clientId='+J+I+H
}}}}else{if($("#smallBox").attr("checked")){if($("#customSelect").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:250px;width:300px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_300_250.ixi?bgcolor='+E+"&borderColor="+D+"&fontColor="+C+"&clientId="+J+I+H
}else{if($("#whiteTheme").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:250px;width:300px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_300_250.ixi?bgcolor=d5d5d5&borderColor=f7f7f7&fontColor=666666&clientId='+J+I+H
}else{if($("#blueTheme").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:250px;width:300px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_300_250.ixi?bgcolor=ffffff&borderColor=3B5998&fontColor=3B5998&clientId='+J+I+H
}else{B='<iframe scrolling="no" style="border:0px;scrolling:no;height:250px;width:300px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_300_250.ixi?clientId='+J+I+H
}}}}else{if($("#horizontalBox").attr("checked")){if($("#customSelect").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:90px;width:728px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_728_90.ixi?bgcolor='+E+"&borderColor="+D+"&fontColor="+C+"&clientId="+J+I+H
}else{if($("#whiteTheme").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:90px;width:728px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_728_90.ixi?bgcolor=d5d5d5&borderColor=f7f7f7&fontColor=666666&clientId='+J+I+H
}else{if($("#blueTheme").attr("checked")){B='<iframe scrolling="no" style="border:0px;scrolling:no;height:90px;width:728px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_728_90.ixi?bgcolor=ffffff&borderColor=3B5998&fontColor=3B5998&clientId='+J+I+H
}else{B='<iframe scrolling="no" style="border:0px;scrolling:no;height:90px;width:728px" src="http://www.ixigo.com/html/ads/ixigoSearchCombined_728_90.ixi?clientId='+J+I+H
}}}}}}var F;if($("input:checkbox[@checked]").length!=4){F="type="+IXIGO.typeSelected()+"&tab="+$("input[@name='tabRadiobutton']:checked").val();
var G="";for(var A=0;A<$("input:checkbox[@checked]").length;A++){if($("input:checkbox[@checked]")[A].value==="f"){G+="&flightOrg="+$("#originCity").val()+"&flightDes="+$("#destCity").val()
}else{if($("input:checkbox[@checked]")[A].value==="h"){G+="&hotelCity="+$("#hotelDest").val()}else{if($("input:checkbox[@checked]")[A].value==="b"){G+="&busOrg="+$("#busOriginCity").val()+"&busDes="+$("#busDestCity").val()
}else{if($("input:checkbox[@checked]")[A].value==="t"){G+="&trainOrg="+$("#trainOriginCity").val()+"&trainDes="+$("#trainDestCity").val()
}}}}}B+=G+"&"+F+'" ></iframe>'}else{F="type="+IXIGO.typeSelected()+"&tab="+$("input[@name='tabRadiobutton']:checked").val();
if($("#largeBox").attr("checked")){B+="&flightOrg="+$("#originCity").val()+"&flightDes="+$("#destCity").val()+"&hotelCity="+$("#hotelDest").val()+"&busOrg="+$("#busOriginCity").val()+"&busDes="+$("#busDestCity").val()+"&title="+$("#titleField").val()+"&"+F+'" ></iframe>'
}else{B+="&flightOrg="+$("#originCity").val()+"&flightDes="+$("#destCity").val()+"&hotelCity="+$("#hotelDest").val()+"&busOrg="+$("#busOriginCity").val()+"&busDes="+$("#busDestCity").val()+"&trainOrg="+$("#trainOriginCity").val()+"&trainDes="+$("#trainDestCity").val()+"&title="+$("#titleField").val()+"&"+F+'" ></iframe>'
}}$("#searchBoxURL").val(B).show();$("#searchBoxCopy").show()};IXIGO.typeSelected=function(){var B="";
for(var A=0;A<$("input:checkbox[@checked]").length;A++){B+=$("input:checkbox[@checked]")[A].value+"-"
}return B};IXIGO.typeCheck=function(B){var C="";if($("input:checkbox[@checked]").length!=4){$("#hotelId, #flightOrgs, #flightDess, #busOrgs, #busDess,#trainOrgs, #trainDess,#flightRadio,#hotelRadio,#busRadio,#trainRadio").hide();
for(var A=0;A<$("input:checkbox[@checked]").length;A++){if($("input:checkbox[@checked]")[A].value==="f"){C+="flights ";
$("#flightRadio,#flightOrgs, #flightDess").css("display","block")}else{if($("input:checkbox[@checked]")[A].value==="h"){C+="hotels ";
$("#hotelRadio, #hotelId").css("display","block")}else{if($("input:checkbox[@checked]")[A].value==="b"){C+="buses ";
$("#busRadio, #busOrgs, #busDess").css("display","block")}else{if($("input:checkbox[@checked]")[A].value==="t"&&!$("#largeBox").attr("checked")){C+="trains ";
$("#trainRadio, #trainOrgs, #trainDess").css("display","block")}}}}}if($("#flightRadio").css("display")==="block"){$("input[@name='tabRadiobutton']")[0].checked=true
}else{if($("#hotelRadio").css("display")==="block"){$("input[@name='tabRadiobutton']")[1].checked=true
}else{if($("#busRadio").css("display")==="block"){$("input[@name='tabRadiobutton']")[2].checked=true}else{if($("#trainRadio").css("display")==="block"&&!$("#largeBox").attr("checked")){$("input[@name='tabRadiobutton']")[3].checked=true
}}}}if($("input[@name='tabRadiobutton']")[1].checked&&!$("#hotelRadio").css("display")){$("input[@name='tabRadiobutton']")[0].checked=true
}if($("#trainRadio input").attr("checked")){$("#hotelRadio input").attr("checked","checked")}$("#titleField").val("search cheap "+C)
}else{$("#hotelRadio input").attr("checked","checked");if($("#largeBox").attr("checked")){$("#titleField").val("search cheap flights hotels buses");
$("#hotelId, #flightOrgs, #flightDess, #busOrgs, #busDess,#flightRadio,#hotelRadio,#busRadio").show();
$("#trainOrgs, #trainDess,#trainRadio").hide()}else{$("#titleField").val("search cheap flights hotels buses trains");
$("#hotelId, #flightOrgs, #flightDess, #busOrgs, #busDess,#trainOrgs, #trainDess,#flightRadio,#hotelRadio,#busRadio,#trainRadio").show()
}}};IXIGO.selectSearchBoxCode=function(){$("#searchBoxURL").focus().select()};IXIGO.preview=function(){var D="";
var C=$("#cbg").attr("class").substring(1);var B=$("#cbr").attr("class").substring(1);var A=$("#cfb").attr("class").substring(1);
var E=IXIGO.getViewportPosition();if($("#largeBox").attr("checked")){if($("#customSelect").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:600px;width:160px" src="/html/ads/ixigoSearchCombined_160_600.ixi?bgcolor='+C+"&borderColor="+B+"&fontColor="+A
}else{if($("#whiteTheme").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:600px;width:160px" src="/html/ads/ixigoSearchCombined_160_600.ixi?bgcolor=d5d5d5&borderColor=f7f7f7&fontColor=666666'
}else{if($("#blueTheme").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:600px;width:160px" src="/html/ads/ixigoSearchCombined_160_600.ixi?bgcolor=ffffff&borderColor=3B5998&fontColor=3B5998'
}else{D='<iframe scrolling="no" style="border:0px;scrolling:no;height:600px;width:160px" src="/html/ads/ixigoSearchCombined_160_600.ixi?'
}}}$("#preview").css({top:E.y+100+"px",left:"50%",marginLeft:"-80px"});$("#preview_close").css({top:E.y+90+"px",left:"50%",marginLeft:"74px"})
}else{if($("#smallBox").attr("checked")){if($("#customSelect").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:250px;width:300px" src="/html/ads/ixigoSearchCombined_300_250.ixi?bgcolor='+C+"&borderColor="+B+"&fontColor="+A
}else{if($("#whiteTheme").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:250px;width:300px" src="/html/ads/ixigoSearchCombined_300_250.ixi?bgcolor=d5d5d5&borderColor=f7f7f7&fontColor=666666'
}else{if($("#blueTheme").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:250px;width:300px" src="/html/ads/ixigoSearchCombined_300_250.ixi?bgcolor=ffffff&borderColor=3B5998&fontColor=3B5998'
}else{D='<iframe scrolling="no" style="border:0px;scrolling:no;height:250px;width:300px" src="/html/ads/ixigoSearchCombined_300_250.ixi?'
}}}$("#preview").css({top:E.y+150+"px",left:"50%",marginLeft:"-150px"});$("#preview_close").css({top:E.y+140+"px",left:"50%",marginLeft:"144px"})
}else{if($("#horizontalBox").attr("checked")){if($("#customSelect").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:90px;width:728px" src="/html/ads/ixigoSearchCombined_728_90.ixi?bgcolor='+C+"&borderColor="+B+"&fontColor="+A
}else{if($("#whiteTheme").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:90px;width:728px" src="/html/ads/ixigoSearchCombined_728_90.ixi?bgcolor=d5d5d5&borderColor=f7f7f7&fontColor=666666'
}else{if($("#blueTheme").attr("checked")){D='<iframe scrolling="no" style="border:0px;scrolling:no;height:90px;width:728px" src="/html/ads/ixigoSearchCombined_728_90.ixi?bgcolor=ffffff&borderColor=3B5998&fontColor=3B5998'
}else{D='<iframe scrolling="no" style="border:0px;scrolling:no;height:90px;width:728px" src="/html/ads/ixigoSearchCombined_728_90.ixi?'
}}}$("#preview").css({top:E.y+150+"px",left:"50%",marginLeft:"-364px"});$("#preview_close").css({top:E.y+138+"px",left:"50%",marginLeft:"360px"})
}}}var F="type="+IXIGO.typeSelected()+"&tab="+$("input[@name='tabRadiobutton']:checked").val();if($("#largeBox").attr("checked")){D+="&flightOrg="+$("#originCity").val()+"&flightDes="+$("#destCity").val()+"&hotelCity="+$("#hotelDest").val()+"&busOrg="+$("#busOriginCity").val()+"&busDes="+$("#busDestCity").val()+"&title="+$("#titleField").val()+"&"+F+'" />'
}else{D+="&flightOrg="+$("#originCity").val()+"&flightDes="+$("#destCity").val()+"&hotelCity="+$("#hotelDest").val()+"&busOrg="+$("#busOriginCity").val()+"&busDes="+$("#busDestCity").val()+"&trainOrg="+$("#trainOriginCity").val()+"&trainDes="+$("#trainDestCity").val()+"&title="+$("#titleField").val()+"&"+F+'" />'
}$("#preview").html(D);IXIGO.LightBox.show("#preview")};IXIGO.showColorTable=function(A){var D='<div><table cellpadding="2"  cellspacing="0" style="border: 1px black;">';
var B=new Array("#000000","#000033","#000066","#000099","#0000CC","#0000FF","#330000","#330033","#330066","#330099","#3300CC","#3300FF","#660000","#660033","#660066","#660099","#6600CC","#6600FF","#990000","#990033","#990066","#990099","#9900CC","#9900FF","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#003300","#003333","#003366","#003399","#0033CC","#0033FF","#333300","#333333","#333366","#333399","#3333CC","#3333FF","#663300","#663333","#663366","#663399","#6633CC","#6633FF","#993300","#993333","#993366","#993399","#9933CC","#9933FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#006600","#006633","#006666","#006699","#0066CC","#0066FF","#336600","#336633","#336666","#336699","#3366CC","#3366FF","#666600","#666633","#666666","#666699","#6666CC","#6666FF","#996600","#996633","#996666","#996699","#9966CC","#9966FF","#CC6600","#CC6633","#CC6666","#CC6699","#CC66CC","#CC66FF","#FF6600","#FF6633","#FF6666","#FF6699","#FF66CC","#FF66FF","#009900","#009933","#009966","#009999","#0099CC","#0099FF","#339900","#339933","#339966","#339999","#3399CC","#3399FF","#669900","#669933","#669966","#669999","#6699CC","#6699FF","#999900","#999933","#999966","#999999","#9999CC","#9999FF","#CC9900","#CC9933","#CC9966","#CC9999","#CC99CC","#CC99FF","#FF9900","#FF9933","#FF9966","#FF9999","#FF99CC","#FF99FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#66CC00","#66CC33","#66CC66","#66CC99","#66CCCC","#66CCFF","#99CC00","#99CC33","#99CC66","#99CC99","#99CCCC","#99CCFF","#CCCC00","#CCCC33","#CCCC66","#CCCC99","#CCCCCC","#CCCCFF","#FFCC00","#FFCC33","#FFCC66","#FFCC99","#FFCCCC","#FFCCFF","#00FF00","#00FF33","#00FF66","#00FF99","#00FFCC","#00FFFF","#33FF00","#33FF33","#33FF66","#33FF99","#33FFCC","#33FFFF","#66FF00","#66FF33","#66FF66","#66FF99","#66FFCC","#66FFFF","#99FF00","#99FF33","#99FF66","#99FF99","#99FFCC","#99FFFF","#CCFF00","#CCFF33","#CCFF66","#CCFF99","#CCFFCC","#CCFFFF","#FFFF00","#FFFF33","#FFFF66","#FFFF99","#FFFFCC","#FFFFFF");
var C=1;for(row=1;row<=12;row++){D=D+"<tr>";for(col=1;col<=18;col++){if(A==="#colorTable1"){D=D+"<td width=10px height=10px id="+'"'+row+col+'"'+'onclick="IXIGO.hideColorTable()" onmouseover="IXIGO.changeButton1Color('+row+col+')" class="'+B[C]+'" style="background-color:'+B[C]+'"></td>'
}else{if(A==="#colorTable2"){D=D+"<td width=10px height=10px id="+'"'+row+col+'"'+'onclick="IXIGO.hideColorTable()" onmouseover="IXIGO.changeButton2Color('+row+col+')" class="'+B[C]+'" style="background-color:'+B[C]+'"></td>'
}else{D=D+"<td width=10px height=10px id="+'"'+row+col+'"'+'onclick="IXIGO.hideColorTable()" onmouseover="IXIGO.changeButton3Color('+row+col+')" class="'+B[C]+'" style="background-color:'+B[C]+'"></td>'
}}C=C+1}}D=D+"</table></div>";$(A).html(D).toggle()};IXIGO.hideColorTable=function(){$("#colorTable1, #colorTable2, #colorTable3").hide()
};IXIGO.changeButton1Color=function(B,A){$("#cbg").css("backgroundColor",$("#"+B).css("backgroundColor")).attr("class",$("#"+B).attr("class"))
};IXIGO.changeButton2Color=function(B,A){$("#cbr").css("backgroundColor",$("#"+B).css("backgroundColor")).attr("class",$("#"+B).attr("class"))
};IXIGO.changeButton3Color=function(B,A){$("#cfb").css("backgroundColor",$("#"+B).css("backgroundColor")).attr("class",$("#"+B).attr("class"))
};IXIGO.ajaxCall=function(){var D=new Autocompleter.Ajax();var A={indicator:"hotelDest",className:"autocomplete onefortyfive",min_chars:"3",width:"168",nbResults:"5"};
D.initialize("hotelDest","/action/content/city?searchFor=city&value=",A);var B=new Autocompleter.Ajax();
var A={indicator:"busOriginCity",className:"autocomplete onefortyfive",min_chars:"2",width:"168",nbResults:"5"};
B.initialize("busOriginCity","/action/content/city?searchFor=buscity&value=",A);var F=new Autocompleter.Ajax();
var A={indicator:"busDestCity",className:"autocomplete onefortyfive",min_chars:"2",width:"168",nbResults:"5"};
F.initialize("busDestCity","/action/content/city?searchFor=buscity&value=",A);var C=new Autocompleter.Ajax();
var A={indicator:"trainDestCity",className:"autocomplete onefortyfive",min_chars:"2",width:"168",nbResults:"5"};
C.initialize("trainDestCity","/action/content/trainstation?searchFor=trainstations&value=",A);var E=new Autocompleter.Ajax();
var A={indicator:"trainOriginCity",className:"autocomplete onefortyfive",min_chars:"2",width:"168",nbResults:"5"};
E.initialize("trainOriginCity","/action/content/trainstation?searchFor=trainstations&value=",A)};IXIGO.RSSComponent=function(){var A=null;
this.defHtlWhr="Goa, India";this.baseUrl=["http://",document.location.host,"/rss/"].join("");this.rssMap={"rssURL":"","rssPlusMO":"http://plusmo.com/add?url=","rssNewsgator":"http://www.newsgator.com/ngs/subscriber/subext.aspx?url=","rssGoogle":"http://fusion.google.com/add?feedurl=","rssTechnorati":"http://technorati.com/faves?add=","rssNetvibes":"http://www.netvibes.com/subscribe.php?url="};
this.urlMap={"1":this.baseUrl+"flights///10","9":this.baseUrl+"hotels/"+this.defHtlWhr+"/0/6/10"};this.init=function(){A=this;
$("select").each(function(E,F){if(F.id==="productType"){$(F).change(function(){A.toggle()})}else{$(F).change(function(){A.generate()
})}});$("#htl_where").focus(function(){A.setWhereOnFocus()}).blur(function(){A.setWhereOnBlur()});var D=new Autocompleter.Ajax();
var B={indicator:"htl_where",className:"htlWhereFld",width:"192",callback:A.generate};var C="http://"+window.location.hostname+":"+window.location.port;
D.initialize("htl_where",C+"/action/content/intlcity?searchFor=city&value=",B);if($("#htl_where").val()===""){$("#htl_where").val(this.defHtlWhr).css("color","#999999")
}A.href(A.urlMap["1"])};this.toggle=function(){$("#hotelsWhere, #flightsWhere").toggle();A.href(A.urlMap[parseInt($("#productType").val(),10)])
};this.generate=function(){var B=[A.baseUrl];getCityText=function(D){return(D.value==="all"||D.value==="none")?"":D.text
};var C=$("#productType").val();switch(parseInt(C,10)){case 1:B.push("flights/");B.push(getCityText($("#originCity option:selected")[0]).replace(/ /,"-")+"/");
B.push(getCityText($("#destCity option:selected")[0]).replace(/ /,"-")+"/");break;case 9:B.push("hotels/");
B.push($("#htl_where").val().replace(/ /,"-")+"/");B.push($("#minStars").val()+"/");B.push($("#maxStars").val()+"/");
break;default:break}B.push($("#rssItem").val());A.urlMap[C]=B.join("");A.href(B.join("").toLowerCase())
};this.href=function(B){for(var C in A.rssMap){$("#"+C).attr("href",A.rssMap[C]+B)}};this.setWhereOnFocus=function(){if($("#htl_where").css("color")=="rgb(153, 153, 153)"){$("#htl_where").val("").css("color","#000000")
}};this.setWhereOnBlur=function(){if($("#htl_where").val()===""){$("#htl_where").val(this.defHtlWhr).css("color","#999999")
}else{$("#htl_where").css("color","#000000")}A.generate()}};