function themeholidaytabs(a){for(i=0;i<=3;i++){document.getElementById("themeholiday"+i).style.display="none";document.getElementById(a).style.display=""}}function btnon(a){for(i=0;i<=3;i++){document.getElementById("menuid"+i).className="";document.getElementById(a).className="themeholidaymenuon"}}function shodcal(){document.getElementById("CALFROM").style.display="none";document.getElementById("CALFROMH").style.display=""}function raahiCityGuideInd(b){if(document.raahiDestCityInd.raahiDestVal.value==""){return false}else{var a="utm_source=Yatra%2BDomestic%2BHome%2BPage%2B(home%2C%2Bflights%2C%2Bhotels%2C%2Bbuses%2C%2Bcars)&utm_medium=HTML%2Bunit%2B-%2BDiscover%2BIndia";document.raahiDestCityInd.action="http://www.raahi.com/index.php?option=com_destinationfinder&Itemid=88889026&task=show&d="+b+"&"+a;document.raahiDestCityInd.submit();return true}}function ddtabcontent(a){this.tabinterfaceid=a;this.tabs=document.getElementById(a).getElementsByTagName("a");this.enabletabpersistence=true;this.hottabspositions=[];this.currentTabIndex=0;this.subcontentids=[];this.revcontentids=[];this.selectedClassTarget="link"}ddtabcontent.getCookie=function(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return""};ddtabcontent.setCookie=function(a,b){document.cookie=a+"="+b+";path=/"};ddtabcontent.prototype={expandit:function(c){this.cancelautorun();var a="";try{if(typeof c=="string"&&document.getElementById(c).getAttribute("rel")){a=document.getElementById(c)}else{if(parseInt(c)!=NaN&&this.tabs[c].getAttribute("rel")){a=this.tabs[c]}}}catch(b){alert("Invalid Tab ID or position entered!")}if(a!=""){this.expandtab(a)}},cycleit:function(a,b){if(a=="next"){var c=(this.currentTabIndex<this.hottabspositions.length-1)?this.currentTabIndex+1:0}else{if(a=="prev"){var c=(this.currentTabIndex>0)?this.currentTabIndex-1:this.hottabspositions.length-1}}if(typeof b=="undefined"){this.cancelautorun()}this.expandtab(this.tabs[this.hottabspositions[c]])},setpersist:function(a){this.enabletabpersistence=a},setselectedClassTarget:function(a){this.selectedClassTarget=a||"link"},getselectedClassTarget:function(a){return(this.selectedClassTarget==("linkparent".toLowerCase()))?a.parentNode:a},urlparamselect:function(b){var a=window.location.search.match(new RegExp(b+"=(\\d+)","i"));return(a==null)?null:parseInt(RegExp.$1)},expandtab:function(c){var b=c.getAttribute("rel");var a=(c.getAttribute("rev"))?","+c.getAttribute("rev").replace(/\s+/,"")+",":"";this.expandsubcontent(b);this.expandrevcontent(a);for(var d=0;d<this.tabs.length;d++){this.getselectedClassTarget(this.tabs[d]).className=(this.tabs[d].getAttribute("rel")==b)?"selected":""}if(this.enabletabpersistence){ddtabcontent.setCookie(this.tabinterfaceid,c.tabposition)}this.setcurrenttabindex(c.tabposition)},expandsubcontent:function(a){for(var c=0;c<this.subcontentids.length;c++){var b=document.getElementById(this.subcontentids[c]);b.style.display=(b.id==a)?"block":"none"}},expandrevcontent:function(a){var b=this.revcontentids;for(var c=0;c<b.length;c++){document.getElementById(b[c]).style.display=(a.indexOf(","+b[c]+",")!=-1)?"block":"none"}},setcurrenttabindex:function(b){for(var a=0;a<this.hottabspositions.length;a++){if(b==this.hottabspositions[a]){this.currentTabIndex=a;break}}},autorun:function(){this.cycleit("next",true)},cancelautorun:function(){if(typeof this.autoruntimer!="undefined"){clearInterval(this.autoruntimer)}},init:function(a){var f=ddtabcontent.getCookie(this.tabinterfaceid);var d=-1;var e=this.urlparamselect(this.tabinterfaceid);this.automodeperiod=a||0;for(var b=0;b<this.tabs.length;b++){this.tabs[b].tabposition=b;if(this.tabs[b].getAttribute("rel")){var c=this;this.hottabspositions[this.hottabspositions.length]=b;this.subcontentids[this.subcontentids.length]=this.tabs[b].getAttribute("rel");this.tabs[b].onmouseover=function(){c.expandtab(this);c.cancelautorun();return false};if(this.tabs[b].getAttribute("rev")){this.revcontentids=this.revcontentids.concat(this.tabs[b].getAttribute("rev").split(/\s*,\s*/))}if(e==b||this.enabletabpersistence&&d==-1&&parseInt(f)==b||!this.enabletabpersistence&&d==-1&&this.getselectedClassTarget(this.tabs[b]).className=="selected"){d=b}}}if(d!=-1){this.expandtab(this.tabs[d])}else{this.expandtab(this.tabs[this.hottabspositions[0]])}if(parseInt(this.automodeperiod)>500&&this.hottabspositions.length>1){this.autoruntimer=setInterval(function(){c.autorun()},this.automodeperiod)}}};