$(function(){$("#changeDetails").click(function(){$("#availabilityCheck").hide();$("#editAvailabilityCheck").show()});$("#cancelHotelDetails").click(function(){$("#availabilityCheck").show();$("#editAvailabilityCheck").hide()});$("#showOptions").click(function(){$("#moreOptions").show();$("#showOptions").hide();$("#hideOptions").show()});$("#hideOptions").click(function(){$("#moreOptions").hide();$("#showOptions").show();$("#hideOptions").hide()});$("#chooseButton").click(function(){$("#countryDiv").hide("fast")});$(".countrySelect a").click(function(){$("#countryDiv").show("fast")});$(".closeCountry a").click(function(){$("#countryDiv").hide("fast")});$("#CountryArrow").click(function(){$("#countryDropdown").toggle()});$("#userCountryArrow").click(function(){$("#usercountryDropdown").toggle()});$("#signupCountryArrow").click(function(){$("#signupcountryDropdown").toggle()});$("#countryOption").click(function(){$("#usercountryDropdown").toggle()});$("#signupCountryOption").click(function(){$("#signupcountryDropdown").toggle()});$("#userChooseButton").click(function(){$("#countryDiv").hide("fast")});$(".userCountrySelect a").click(function(){$("#userCountryDiv").show("fast")});$(".userCloseCountry a").click(function(){$("#userCountryDiv").hide("fast")});$(".popUpClose").click(function(){var a=$("#conditionPopUp");disablePopup(a)});$(document).ready(function(){$(".rounded").corners()})});function displayPanel(c){if(c==3){if(document.getElementById("availChkBook")!=null){document.getElementById("availChkBook").style.display="none"}}else{if(document.getElementById("availChkBook")!=null){document.getElementById("availChkBook").style.display="block"}}if(c==4){if(document.getElementById("travellerReviewBookNow")!=null){document.getElementById("travellerReviewBookNow").style.display="block"}}else{if(document.getElementById("travellerReviewBookNow")!=null){document.getElementById("travellerReviewBookNow").style.display="none"}}var a=new Array("panel1","panel2","panel3","panel4");var b=new Array("tab1","tab2","tab3","tab4");if(document.getElementById(b[1])!=null){for(i=0;i<a.length;i++){if(document.getElementById(b[i])!=null&&document.getElementById(a[i])!=null){if(c-1==i){document.getElementById(a[i]).style.display="block";document.getElementById(b[i]).className="tabactive"}else{document.getElementById(a[i]).style.display="none";document.getElementById(b[i]).className=""}}}}else{if(c==3){document.getElementById(a[0]).style.display="none";document.getElementById(a[2]).style.display="block";document.getElementById(b[0]).className="";document.getElementById(b[2]).className="tabactive";if(document.getElementById(b[3])!=null&&document.getElementById(a[3])!=null){document.getElementById(a[3]).style.display="none";document.getElementById(b[3]).className=""}}if(c==1){document.getElementById(a[0]).style.display="block";document.getElementById(a[2]).style.display="none";document.getElementById(b[0]).className="tabactive";document.getElementById(b[2]).className="";if(document.getElementById(b[3])!=null&&document.getElementById(a[3])!=null){document.getElementById(a[3]).style.display="none";document.getElementById(b[3]).className=""}}if(c==4){document.getElementById(a[3]).style.display="block";document.getElementById(b[3]).className="tabactive";document.getElementById(a[0]).style.display="none";document.getElementById(a[2]).style.display="none";document.getElementById(b[0]).className="";document.getElementById(b[2]).className=""}}return false}function displayTab(c){var a=new Array("panel1","panel2");var b=new Array("tab1","tab2");for(i=0;i<a.length;i++){if(c-1==i){document.getElementById(a[i]).style.display="block";document.getElementById(b[i]).className="tabactive"}else{document.getElementById(a[i]).style.display="none";document.getElementById(b[i]).className=""}}return false}$(function(){$(".tabs-nav li").hover(function(){$(this).addClass("tabhover")},function(){$(this).removeClass("tabhover")})});