if(typeof (IXIGO)=="undefined"){IXIGO={}}Date.fromPaddedDate=function(F){var C=null;var D=/^([0123]?\d)\/([01]?\d)\/([2]\d\d\d)$/;
var B=D.exec(F);var E;var A;var G;if(B&&B.length>3){E=parseInt(B[1],10);A=parseInt(B[2],10)-1;G=parseInt(B[3],10);
C=new Date(G,A,E);E=((E>9)?"":"0")+E;A=A+1;A=((A>9)?"":"0")+A;if(C&&C.toPaddedDate()!==(E+"/"+A+"/"+G)){C=null
}}return C};Date.fromFlatDate=function(F){var C=null;var D=/^(\d\d)(\d\d)([2]\d\d\d)$/;var B=D.exec(F);
var E;var A;var G;if(B&&B.length>3){E=parseInt(B[1],10);A=parseInt(B[2],10)-1;G=parseInt(B[3],10);C=new Date(G,A,E)
}return C};Date.prototype.toPaddedDate=function(){var B=this.getDate();var A=this.getMonth()+1;var C=this.getFullYear();
return((B>9)?"":"0")+B+"/"+((A>9)?"":"0")+A+"/"+C};Date.prototype.toPaddedTime=function(){var B=this.getHours();
var A=this.getMinutes();return((B>9)?"":"0")+B+":"+((A>9)?"":"0")+A};Date.prototype.serialize=function(){var A=function(D,C){while((""+D).length<C){D="0"+D;
return D}};var B=""+this.getFullYear();B+=A(this.getMonth()+1,2);B+=A(this.getDate(),2);B+=A(this.getHours(),2);
B+=A(this.getMinutes(),2);return B};Date.prototype.toDDMMYY=function(){var B=this.getDate();var A=this.getMonth()+1;
var C=(""+this.getFullYear()).substring(2);return((B>9)?"":"0")+B+((A>9)?"":"0")+A+C};Date.prototype.toDDMMYYYY=function(){var B=this.getDate();
var A=this.getMonth()+1;var C=this.getFullYear();return((B>9)?"":"0")+B+((A>9)?"":"0")+A+C};Date.prototype.between=function(B,A){return(this.after(B)&&this.before(A))||this.sameDay(B)||this.sameDay(A)
};Date.prototype.sameDay=function(A){return(this.getFullYear()==A.getFullYear()&&this.getMonth()==A.getMonth()&&this.getDate()==A.getDate())
};Date.prototype.before=function(A){return(this.getTime()<A.getTime())};Date.prototype.after=function(A){return(this.getTime()>A.getTime())
};Date.prototype.clone=function(){var A=new Date();A.setTime(this.getTime());return A};Date.prototype.daysInMonth=function(){var A=new Date(this);
A.setMonth(A.getMonth()+1);A.setDate(0);return A.getDate()};Date.prototype.getWeekDay=function(){var A=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
return A[this.getDay()]};Date.prototype.getSmallMonthName=function(){var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
return A[this.getMonth()]};Date.prototype.toStr=function(){var A=this.toString();return A.substr(0,A.lastIndexOf(":"))
};Date.getDifference=function(B,A){return Math.round((A-B)/86400000)};Range=function(A,B){this.start=A;
this.end=B;this.contains=function(C){return(C>=this.start)&&(C<=this.end)}};String.compare=function(B,A){if(B==A){return 0
}else{if(B>A){return 1}}return -1};String.compareIgnoreCase=function(B,A){if(B){B=B.toLowerCase()}if(A){A=A.toLowerCase()
}return String.compare(B,A)};String.prototype.trim=function(){return(this.replace(/^\s+/,"").replace(/\s+$/,""))
};IXIGO.getViewportPosition=function(){var C={x:0,y:0};var B=document.documentElement;var A=document.body;
if(B&&(B.scrollTop||B.scrollLeft)){C.x=B.scrollLeft;C.y=B.scrollTop}else{if(A){C.x=A.scrollLeft;C.y=A.scrollTop
}}return C};IXIGO.getViewportDimensions=function(){var C={w:0,h:0};var B=window;var A=document.body;if(B.innerWidth){C.w=B.innerWidth;
C.h=B.innerHeight}else{if(A&&A.parentElement&&A.parentElement.clientWidth){C.w=A.parentElement.clientWidth;
C.h=A.parentElement.clientHeight}else{if(A&&A.clientWidth){C.w=A.clientWidth;C.h=A.clientHeight}}}return C
};IXIGO.isChild=function(B){var A;while(B){for(A=1;arguments[A];A++){if(B==arguments[A]){return true}}B=B.parentNode
}return false};IXIGO.Cookie={};IXIGO.Cookie.data="data";IXIGO.Cookie.set=function(D,B){var A=new Date();
A.setYear(A.getFullYear()+20);var C=D+"="+B+";expires="+A.toGMTString()+";path=/";document.cookie=C};
IXIGO.Cookie.getCurrency=function(){return IXIGO.Cookie.read(IXIGO.Cookie.data)};IXIGO.Cookie.setCurrency=function(A){IXIGO.Cookie.set(IXIGO.Cookie.data,A)
};IXIGO.Cookie.read=function(D){var B=D+"=";var A=document.cookie.split(";");var E;for(var C=0;C<A.length;
C++){E=A[C].trim();if(E.indexOf(B)===0){return E.substring(B.length,E.length)}}return null};IXIGO.Cookie.Delete=function(B){var A=B+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/";
document.cookie=A};IXIGO.ExpandableBox={};IXIGO.ExpandableBox.register=function(B){var A=IXIGO.ExpandableBox;
$(B+"ColExp").click(function(){A.toggle(B)})};IXIGO.ExpandableBox.toggle=function(C){var A=IXIGO.ExpandableBox;
$(C+"Content").slideToggle(300);var B=$(C+"ColExp");B.toggleClass("sprite-icon-expand").toggleClass("sprite-icon-collapse").attr("title",(B.attr("class").indexOf("sprite-icon-expand")>-1)?"expand":"collapse")
};IXIGO.GALoad={};IXIGO.GALoad.GoogleInterval=0;IXIGO.GALoad.TrackerId=0;IXIGO.GALoad.PageViewName;IXIGO.GALoad.Load=function(B,C){var A=IXIGO.GALoad;
A.TrackerId=(B)?B:1;if(C){A.PageViewName=C}A.AddGoogleTracking()};IXIGO.GALoad.AddGoogleTracking=function(){var B=IXIGO.GALoad;
var C=document.createElement("script");C.type="text/javascript";var A=("https:"==document.location.protocol)?"https://ssl.":"http://www.";
C.src=A+"google-analytics.com/ga.js";document.getElementsByTagName("head").item(0).appendChild(C);B.GoogleInterval=setInterval(B.ActivateGoogle,500)
};IXIGO.GALoad.trackEvent=function(D,E){var B=IXIGO.GALoad;var C=_gat._getTracker("UA-949229-"+B.TrackerId);
if(B.TrackerId==="1"){C._setDomainName("ixigo.com")}C._initData();var A=C._createEventTracker("testing");
A._trackEvent(D,E)};IXIGO.GALoad.ActivateGoogle=function(){var B=IXIGO.GALoad;if(typeof _gat!="undefined"){clearInterval(B.GoogleInterval);
var C=_gat._getTracker("UA-949229-"+B.TrackerId);if(B.TrackerId==="1"){C._setDomainName("ixigo.com")}C._initData();
if(B.PageViewName){C._trackPageview(B.PageViewName)}else{C._trackPageview()}var A=_gat._getTracker("UA-949229-25");
A._initData();A._setDomainName("ixigo.com");if(B.PageViewName){A._trackPageview(B.PageViewName)}else{A._trackPageview()
}}};IXIGO.TrackPageView=function(C){var B=IXIGO.GALoad;if(typeof _gat!="undefined"){clearInterval(B.GoogleInterval);
var A=["25",B.TrackerId];var E;for(var D=0;A[D];D++){var F=A[D];E=_gat._getTracker("UA-949229-"+F);if(B.TrackerId==="1"){E._setDomainName("ixigo.com")
}E._initData();E._trackPageview(C)}}};IXIGO.LightBox={};IXIGO.LightBox.init=function(){var A=IXIGO.getViewportDimensions();
A.h=Math.max(A.h,$(document).height());$("#transparent_div").css({"width":A.w,"height":A.h})};IXIGO.LightBox.show=function(B){var A=IXIGO.LightBox;
A.current=B;A.init();if(!IXIGO.isAffiliate){$("#transparent_div").show()}if(!A.current){return }$("#hotelDistance, #hotelDistanceFrom, #currencyOption, #maxStops, div#adContainer,select.returnDayTimeSelect, select.leaveDayTimeSelect, select#trainClass").css("visibility","hidden");
$(A.current).show(200,function(){$(A.current+"_close").show();if($(A.current+"_close_img")[0]&&!$(A.current+"_close_img").attr("src")){$(A.current+"_close_img").attr("src","/img/closebox_orange.png");
IXIGO.elFixPng($(A.current+"_close_img")[0])}var F,D;var E=A.current;if($(A.current+"_bl").length>0){F=navigator.appVersion.split("MSIE");
D=parseFloat(F[1]);if((D>=5.5)&&(D<7)&&(document.body.filters)){$(A.current+"_ieshadow").show()}else{$(E+"_bl, "+E+"_br, "+E+"_tl, "+E+"_tr, "+E+"_left, "+E+"_right, "+E+"_top, "+E+"_bottom").show()
}}});$(window).bind("keypress",function(C){if(C.keyCode==27){IXIGO.LightBox.hide()}})};IXIGO.LightBox.hide=function(){var A=IXIGO.LightBox;
if(A.current){$(A.current).hide(500,function(){$("#transparent_div").hide(100);$("#hotelDistance, #hotelDistanceFrom, #currencyOption, #maxStops, div#adContainer,select.returnDayTimeSelect, select.leaveDayTimeSelect, select#trainClass").css("visibility","visible")
})}else{return }var B=A.current;if($(A.current+"_bl")[0]){if($(A.current+"_bl").css("display")=="block"){$(B+"_bl, "+B+"_br, "+B+"_tl, "+B+"_tr, "+B+"_left, "+B+"_right, "+B+"_top, "+B+"_bottom").hide()
}else{$(A.current+"_ieshadow").hide()}}$(A.current+"_close").hide();$("#map_canvas").html("").hide();
$(window).unbind("keypress")};$("div#transparent_div").click(function(){IXIGO.LightBox.hide()});IXIGO.Round={};
IXIGO.Round.init=function(){if($.browser.msie){document.execCommand("BackgroundImageCache",false,true)
}$(".round_all").corner();$(".round_top").corner("top");$(".round_bottom").corner("bottom");$(".round_top_l").corner("tl");
$(".round_top_r").corner("tr");$(".round_bottom_l").corner("bl");$(".round_bottom_r").corner("br")};IXIGO.buttonHover=function(C,B,D){if($(C+"Left").length!=0){var A=($(C+"Left").attr("class").indexOf("hover")===-1)?"-hover":"";
$.each({l:"Left",m:"Middle",r:"Right"},function(E,F){$(C+F).attr("class",[B+"sprite-button"+D,B+"sprite-button-"+E+A].join(" "))
})}};IXIGO.createBookmarkLink=function(){var B=document.title;var A=document.URL;if(window.sidebar){window.sidebar.addPanel(B,A,"")
}else{if(window.external){window.external.AddFavorite(A,B)}else{if(window.opera&&window.print){return true
}}}};IXIGO.printPreview=function(){window.print()};IXIGO.bgFixPng=function(C){var F=navigator.appVersion.split("MSIE");
var A=parseFloat(F[1]);if((A>=5.5)&&(A<7)&&(document.body.filters)){var G="img/x.gif";var E="scale";var B=C.currentStyle.backgroundImage;
var D=B.substring(5,B.length-2);if(C.currentStyle.backgroundRepeat=="no-repeat"){E="crop"}C.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+D+"', sizingMethod='"+E+"')";
C.style.backgroundImage="url("+G+")";C.style.backgroundPositionX=C.currentStyle.backgroundPositionX;C.style.backgroundPositionY=C.currentStyle.backgroundPositionY
}};IXIGO.elFixPng=function(B){var D=navigator.appVersion.split("MSIE");var A=parseFloat(D[1]);if((A>=5.5)&&(A<7)&&(document.body.filters)){var E="img/x.gif";
var C=B.src;B.style.width=B.width+"px";B.style.height=B.height+"px";B.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+C+"', sizingMethod='scale')";
B.src=E}};IXIGO.isArray=function(A){return Object.prototype.toString.call(A)==="[object Array]"};IXIGO.isValidEmail=function(B){var A=/^([a-zA-Z0-9_\.\-])+(\+[a-zA-Z0-9]+)*\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
return A.test(B)};IXIGO.Toggle=function(){this.name=null;var A=this;this.init=function(B){this.name=B;
$("div#"+B+"QuestionsAll ."+B+"Question").click(function(C){A.toggle(this,C)})};this.toggle=function(C,B){$($(C.parentNode).children("."+this.name+"Answer")[0]).toggle();
B.stopPropagation()}};Ajax={};Ajax.evalJSON=function(data){try{return eval("("+data+")")}catch(e){return null
}};IXIGO.Alert={};IXIGO.Alert.init=function(){if(!$("body > #ixiAlertWrapper")[0]){var A=""+'<div class="ixiAlert info" id="ixiAlertWrapper" tabindex="0">'+'<div class="ixiAlert-img"><table><tr><td valign="middle"><div class="ixiAlert-img-body"></div></td></tr></table></div>'+'<div class="ixiAlert-msg">'+'<table><tr><td><div class="ixiAlert-msg-header">info</div></td></tr></table>'+'<div class="ixiAlert-msg-body"></div>'+'<div class="ixiAlert-btn"><button name="ok">ok</button><button name="cancel">cancel</button></div>'+'</div><div class="clear" />'+"</div>";
$("body").append(A)}this.wrapper=$("#ixiAlertWrapper");this.header=this.wrapper.find(".ixiAlert-msg-header");
this.body=this.wrapper.find(".ixiAlert-msg-body");this.button=this.wrapper.find(".ixiAlert-btn");this.imgTD=this.wrapper.find("div.ixiAlert-img td");
this.trnsprntDiv=$("#transparent_div")};IXIGO.Alert.show=function(C,D){this.wrapper.attr("class","ixiAlert "+C.type);
this.header.html((C.type==="warn"?"warning":C.type));this.body.html(C.msg);var A="";$.each(C.buttons,function(F,E){if(E.name){A+='<button name="'+E.name+'">'+E.val+"</button>"
}else{A+='<button name="'+E+'">'+E+"</button>"}});this.button.html(A);this.button.find("button").click(function(){IXIGO.Alert.trnsprntDiv.hide();
IXIGO.Alert.wrapper.hide();if(D){D.call(IXIGO.Alert,this.name)}});this.imgTD.css("height","").height(this.wrapper.height());
var B=IXIGO.getViewportDimensions();B.h=Math.max(B.h,$(document).height());this.trnsprntDiv.css({"width":B.w,"height":B.h}).show();
if($.browser.msie){this.wrapper.css("width",(C.width||"350px"))}this.wrapper.css({"left":(B.w-this.wrapper.width())/2+"px","top":"120px"}).show()
};IXIGO.getStaticPath=function(){var A=$("#jQueryPath").attr("src");if(A&&A.indexOf("http://edge")!=-1){return A.substring(0,A.indexOf(".com")+4)
}return""};$(document).ready(function(){IXIGO.Round.init();IXIGO.Cookie.Delete("otaClick");IXIGO.Cookie.Delete("otaFlightClick");
IXIGO.Cookie.Delete("otaHotelClick");IXIGO.Cookie.Delete("otaTrainClick");$("#tellFriend, #recommendFriend").click(function(){var A="/html/info/tell-a-friend.ixi?provider=email&channel=email&id=200811273770";
A+="&link="+encodeURIComponent(location.href);A+="&title="+encodeURIComponent(document.title);window.open(A,"iXiGO","scrollbars=no,menubar=no,width=490,height=520,resizable=no,toolbar=no,location=no,status=no,screenX=200,screenY=100,left=200,top=100");
return false});$("div#footerLinks a").css("text-decoration","none");$("div#footerAllLinks a:not(.footerLinkHeader)").css("color","#888888");
$("div#footerAllLinks a").css("text-decoration","none");$("div#footerAllLinks a:not(.footerLinkHeader)").mouseover(function(){$(this).css("color","#333333")
});$("div#footerAllLinks a:not(.footerLinkHeader)").mouseout(function(){$(this).css("color","#888888")
});$(".footerGreyLink").css("text-decoration","none").css("color","#888888").mouseover(function(){$(this).css("color","#333333")
}).mouseout(function(){$(this).css("color","#888888")})});