					<!--  auto-adjust Div script
					function chk(){ 
					//width setting
					my_div=document.getElementById("adjustBox")
					left_space=document.getElementById("adjustBox").offsetLeft
					right_space=10
					//my_div.style.width=document.body.clientWidth-left_space-right_space
					
					//height setting
					my_div=document.getElementById("adjustBox")
					top_space=document.getElementById("adjustBox").offsetTop
					bottom_space=10
					//my_div.style.height=document.body.clientHeight-top_space-bottom_space
					}
					//-->
					    var topMenuSpacer = 1; // Horizontal space(pixels) between the main menu items	
						var activateSubOnClick = true; // if true-> Show sub menu items on click, if false, show submenu items onmouseover
						var leftAlignSubItems = true; 	// left align sub items t
						var activeMenuItem = false;	// Don't change this option. It should initially be false
					    var activeTabIndex =0;	// Index of initial active tab	(0 = first tab) - If the value below is set to true, it will override this one.
						var rememberActiveTabByCookie = false;	// Set it to true if you want to be able to save active tab as cookie
						
						function Get_Cookie(name) { 
						   var start = document.cookie.indexOf(name+"="); 
						   var len = start+name.length+1; 
						   if ((!start) && (name != document.cookie.substring(0,name.length))) return null; 
						   if (start == -1) return null; 
						   var end = document.cookie.indexOf(";",len); 
						   if (end == -1) end = document.cookie.length; 
						   return unescape(document.cookie.substring(len,end)); 
						} 
						// This function has been slightly modified
						function Set_Cookie(name,value,expires,path,domain,secure) { 
							expires = expires * 60*60*24*1000;
							var today = new Date();
							var expires_date = new Date( today.getTime() + (expires) );
						    var cookieString = name + "=" +escape(value) + 
						       ( (expires) ? ";expires=" + expires_date.toGMTString() : "") + 
						       ( (path) ? ";path=" + path : "") + 
						       ( (domain) ? ";domain=" + domain : "") + 
						       ( (secure) ? ";secure" : ""); 
						    document.cookie = cookieString; 
						}	
						
						function showHide()
						{
							if(activeMenuItem){
								activeMenuItem.className = 'inactiveMenuItem'; 	
								var theId = activeMenuItem.id.replace(/[^\d]/g,'');
								document.getElementById('submenu_'+theId).style.display='none';
							}
							activeMenuItem = this;		
							this.className = 'activeMenuItem';
							var theId = this.id.replace(/[^\d]/g,'');
							document.getElementById('submenu_'+theId).style.display='block';
							
							if(rememberActiveTabByCookie){
								Set_Cookie('dhtmlgoodies_tab_menu_tabIndex','index: ' + (theId-1),100);
							}
						}
						
						function initMenu()
						{
							var mainMenuObj = document.getElementById('mainMenu');
							var subMenuObj = document.getElementById('submenu'); //DD added line
							mainMenuObj.style.visibility=subMenuObj.style.visibility="visible" //DD added line
							var menuItems = mainMenuObj.getElementsByTagName('A');
							if(document.all){
								mainMenuObj.style.visibility = 'hidden';
								document.getElementById('submenu').style.visibility='hidden';
							}		
							if(rememberActiveTabByCookie){
								var cookieValue = Get_Cookie('dhtmlgoodies_tab_menu_tabIndex') + '';
								cookieValue = cookieValue.replace(/[^\d]/g,'');
								if(cookieValue.length>0 && cookieValue<menuItems.length){
									activeTabIndex = cookieValue/1;
								}			
							}
							
							var currentLeftPos = 0;
							for(var no=0;no<menuItems.length;no++){			
								if(activateSubOnClick)menuItems[no].onclick = showHide; else menuItems[no].onmouseover = showHide;
								menuItems[no].id = 'mainMenuItem' + (no+1);
								menuItems[no].style.left = currentLeftPos + 'px';
								currentLeftPos = currentLeftPos + menuItems[no].offsetWidth + topMenuSpacer; 
								if(no==activeTabIndex){
									menuItems[no].className='activeMenuItem';
									activeMenuItem = menuItems[no];
								}else menuItems[no].className='inactiveMenuItem';
								if(!document.all)menuItems[no].style.bottom = '-1px';
							}		
					
							var mainMenuLinks = mainMenuObj.getElementsByTagName('A');
							var subCounter = 1;
							var parentWidth = mainMenuObj.offsetWidth;
							while(document.getElementById('submenu_' + subCounter)){
								var subItem = document.getElementById('submenu_' + subCounter);
								
								if(leftAlignSubItems){
									// No action
								}else{							
									var leftPos = mainMenuLinks[subCounter-1].offsetLeft;
									document.getElementById('submenu_'+subCounter).style.paddingLeft =  leftPos + 'px';
									subItem.style.position ='absolute';
									if(subItem.offsetWidth > parentWidth){
										leftPos = leftPos - Math.max(0,subItem.offsetWidth-parentWidth); 	
									}
									subItem.style.paddingLeft =  leftPos + 'px';
									subItem.style.position ='static';
								}
								if(subCounter==(activeTabIndex+1)){
									subItem.style.display='block';
								}else{
									subItem.style.display='none';
								}
								subCounter++;
							}
							if(document.all){
								mainMenuObj.style.visibility = 'visible';
								document.getElementById('submenu').style.visibility='visible';
							}		
							document.getElementById('submenu').style.display='block';
						}
						
						
						
						<!--Show/Hide panels for tabs-->
					      var panels = new Array('panel1', 'panel2', 'panel3');
					      var selectedTab = null;
					      function showPanel(tab, name)
					      {
					        for(i = 0; i < panels.length; i++)
					          document.getElementById(panels[i]).style.display = (name == panels[i]) ? 'block':'none';
					        return false;
					      }
					    function handleError() {
					        return true;
					    }
					    window.onerror = handleError;
					
					
					    function openPopUnder() {
					
					        //check for popunder cookie return if found
					        if (document.cookie.indexOf("popunder") != -1) { return; }
					
					        //create a cookie name = popunder value = false cookie expires at end of session
					        document.cookie = "popunder=false;";
					                popUnderWindow = window.open('/popups/popunders/tnowPopunder.jsp','popunder','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=400,left=100,top=100');
					                 self.focus();
					    }
					    function deleteCookie(name) {
					        document.cookie = name + '=false; expires=Fri, 27 Jul 2001 02:47:11 UTC;path=/';
					    }
					
					function openWin()
					{
					    
					        thor = window.open('/components/processing.jsp?cid=260147','thor','top=200,left=220,width=500,height=250,resizable=1');
					    
					}
					
					function update(themonth,theday){
					    document.forms[fName].elements[formType+'Day'].options[theday - 1].selected = true;
					    document.forms[fName].elements[formType+'Month'].options[themonth].selected = true;
					    testWindow.close();
					}
					
					function loadCalendar(viewMonth) {
					
						testWindow.document.close();
						testWindow.document.open();
					
						var day_of_week = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
						var month_of_year = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
					
						var dateObj = new Date();
						var year = dateObj.getYear();	 // Returns year
						var month = dateObj.getMonth();  // Returns month (0-11)
						var today = dateObj.getDate();   // Returns day (1-31)
						var weekday = dateObj.getDay();  // Returns day (1-31)
					
						var DAYS_OF_WEEK = 7;   // "constant" for number of days in a week
						var DAYS_OF_MONTH = 31; // "constant" for number of days in a month
						var cal;                // Used for printing
					
						if (viewMonth < month) {
							year = year + 1;
						}
					
						if(year < 1900){
							year += 1900; //done to solve the problem of netscape and mozilla returning year in form 10X for years > 2000
						}
					
						month = viewMonth;
						dateObj.setDate(1);      // Start the calendar day at '1'
						dateObj.setMonth(month); // Start the calendar month at now
						dateObj.setYear((year));
					
						// VARIABLES FOR FORMATTING
						var TR_start = '<TR>';
						var TR_end = '</TR>';
						var highlight_start = '<TD WIDTH="30"><TABLE CELLSPACING=0 BORDER=1 BGCOLOR=DEDEFF BORDERCOLOR=CCCCCC><TR><TD WIDTH=20><B><CENTER>';
						var highlight_end   = '</CENTER></TD></TR></TABLE></B>';
						var TD_start = '<TD WIDTH="30"><CENTER>';
						var TD_end = '</CENTER></TD>';
						var prevM = month - 1;
						var nextM = month + 1;
					
						if (nextM == 12) {
							nextM = 0;
						}
					
						if (prevM == -1) {
							prevM = 11;
						}
					
						// BEGIN CODE FOR CALENDAR
						cal =  '<html><head><title>Calendar</title></head><body>';
						cal += "<style>a:link{cursor: hand}a:active{cursor: hand}a:hover{cursor: hand}a:visited{cursor: hand}body{cursor: default}</style>";
					
					    // NOTE:
					    // Update the calendar.js reference below to reference where you
					    // put the calendar.js file.
					
					    cal += '<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="0" BORDERCOLOR="#BBBBBB" width="100%" height="200"><TR><TD>';
						cal += '<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" width="100%">' + TR_start;
						cal += '<TD COLSPAN="' + DAYS_OF_WEEK + '" BGCOLOR="#EFEFEF"><CENTER><B>';
						cal += month_of_year[month]  + '   ' + year + '</B>' + TD_end + TR_end;
						cal += TR_start;
					
					    ///////////////////////////////////
					    // DO NOT EDIT BELOW THIS POINT  //
					    ///////////////////////////////////
					
						// LOOPS FOR EACH DAY OF WEEK
						for(index=0; index < DAYS_OF_WEEK; index++) {
					        // PRINTS DAY
					        cal += TD_start + day_of_week[index] + TD_end;
						}
					
						cal += TD_end + TR_end;
						cal += TR_start;
					
						// FILL IN BLANK GAPS UNTIL TODAY'S DAY
						for(index=0; index < dateObj.getDay(); index++) {
						    cal += TD_start + '  ' + TD_end;
					    }
					
						// LOOPS FOR EACH DAY IN CALENDAR
					    for(index=0; index < DAYS_OF_MONTH; index++) {
					        if( dateObj.getDate() > index ) {
					            // RETURNS THE NEXT DAY TO PRINT
					            week_day =dateObj.getDay();
					
					            // START NEW ROW FOR FIRST DAY OF WEEK
					            if(week_day == 0) {
					                cal += TR_start;
					            }
					
					            if(week_day != DAYS_OF_WEEK) {
					                // SET VARIABLE INSIDE LOOP FOR INCREMENTING PURPOSES
					                var day  = dateObj.getDate();
					
					                // PRINTS DAY
					                cal += TD_start + "<span onclick='window.opener.update(" + month + "," + day + ")' style='cursor:hand;font-weight:bold;background:#EFEFEF;width:22px;'>" + day + "</span>" + TD_end;
					            }
					
					            // END ROW FOR LAST DAY OF WEEK
					            if(week_day == DAYS_OF_WEEK) {
					                cal += TR_end;
					            }
					        }
					
					        // INCREMENTS UNTIL END OF THE MONTH
					        dateObj.setDate(dateObj.getDate()+1);
					
					    }// end for loop
					
						cal += '</center></td></TR></table></TABLE><br>';
					    cal += '<div align="center"><a href="javascript:" onClick="window.opener.loadCalendar(' + prevM + ');">&lt;&lt;</a>&nbsp;&nbsp;&nbsp;&nbsp;';
						cal += '<a href="javascript:" onClick="window.opener.loadCalendar(' + nextM + ');">&gt;&gt;</a><br><br></div>';
						cal += '<div align="right"><a href="javascript:window.close();">close</a></div>';
						cal += '</body></html>';
					
						//  PRINT CALENDAR
						testWindow.document.write(cal);
					}
					
					var testWindow;
					var formType;
					var fName;
					
					function openCalendar(formName,type) {
						formType=type;
						fName=formName;
						testWindow = window.open('','dates','width=360,height=300,resizable=1,status=1,menubar=0,location=0');
						loadCalendar(document.forms[fName].elements[formType+'Month'].selectedIndex);
					}
					
					ytObj = new YATRA.caldoy.Calendar2up("ytObj","YTContainer",(thisMonth+1)+"/"+thisYear,(thisMonth+1)+"/"+thisDay+"/"+thisYear);
					ytObj.title = " &nbsp;&nbsp;&nbsp;&nbsp;Select Your Date ";
					ytObj.setChildFunction("onSelect",setDate);
					ytObj.render();	
					
					    // NOTE: customize variables in this javascript block as appropriate.
					    var defaultAdults="2";
					    var cellStyle="";
					    var childHelp="Please indicate the age of the children per room. The infancy is needed on time of the travel start ";
					    var adultHelp="";
					    var textRooms="Room:";
					    var textAdults="Adults: (19+)";
					    var textChildren="Children: (0-18)";
					    var textChildError="Indicate please infancy";
					    var pad='<img src="http://travel.ian.com/images/p.gif" width="5" height="1">';
					    // NOTE: Question marks ("?") get replaced with a numeric value
					    var textRoomX="Room ?:";
					    var textChildX="Child ?:";
					
						function loadDates() {
					        var calendar = new Date();
					        var calendar2 = new Date();
					        var cal
					        var cal2
					        var date;
					        var month;
					        var year;
					        var date2;
					        var month2;
					        var year2;
					
					        //Here is the variable to change for to advance the arrival Date
					         var advanceArrival = 14;
					        //Here is the variable to change for to advance the departure Date
					         var advanceDeparture = 16;
					        //Set the arrival Days
					        calendar.setDate(calendar.getDate()+ advanceArrival);
					        date = calendar.getDate();
					        month = calendar.getMonth();
					        //Set the Departure Days
					        calendar2.setDate(calendar2.getDate()+advanceDeparture);
					        date2 = calendar2.getDate();
					        month2 = calendar2.getMonth();
					        document.forms['myform'].arrivalMonth.value=month;
					        document.forms['myform'].arrivalDay.value=date;
					        document.forms['myform'].departureMonth.value=month2;
					        document.forms['myform'].departureDay.value=date2;
					    }
					
					    //start new script code
					    // Checks if browser is Netscape 2.0x since the options array properties don't work with Netscape 2.0x
					    function isBrowserSupp() {
					        // Get the version of the browser
					        version =  parseFloat( navigator.appVersion );
					
					        if ( ( version >= 2.0 ) && ( version < 2.1 ) && ( navigator.appName.indexOf( "Netscape" ) != -1 ) ) {
					            return false;
					        } else {
					            return true;
					        }
					
					        return true;
					    }
					
					    function isLeapYear( yrStr ) {
					        var leapYear = false;
					        var year = parseInt( yrStr, 10 );
					        // every fourth year is a leap year
					        if ( year % 4 == 0 ) {
					            leapYear = true;
					            // unless it's a multiple of 100
					            if( year % 100 == 0 ) {
					                leapYear = false;
					                // unless it's a multiple of 400
					                if( year % 400 == 0 ) {
					                    leapYear=true;
					                }
					            }
					        }
					        return leapYear;
					    }
					
					    function getDaysInMonth( mthIdx, YrStr ) {
					        // all the rest have 31
					        var maxDays = 31
					        // expect Feb. (of course)
					        if( mthIdx == 1 ) {
					            if( isLeapYear( YrStr ) ) {
					                maxDays=29;
					            } else {
					                maxDays=28;
					            }
					        }
					
					        // thirty days hath...
					        if( mthIdx == 3 || mthIdx == 5 || mthIdx == 8 || mthIdx == 10 ) {
					            maxDays=30;
					        }
					        return maxDays;
					    }
					
					    //the function which does some magic to the date fields
					    // return non-zero if it is the last day of the month
					    function adjustDate( mthIdx, Dt ) {
					        var value = 0;
					
					        var today = new Date()
					        var theYear = parseInt( today.getYear(), 10 )
					
					        if( mthIdx < today.getMonth() ) {
					            theYear = ( parseInt( today.getYear(), 10 ) + 1 )
					        }
					        if( theYear < 100 ) {
					            theYear = "19" + theYear
					        } else {
					            if( ( theYear - 100 ) < 10 ) {
					                theYear = "0" + ( theYear - 100 )
					            } else {
					                theYear = ( theYear - 100 ) + ""
					            }
					            theYear = "20" + theYear
					        }
					
					        var numDays = getDaysInMonth( mthIdx, theYear );
					
					        if( mthIdx == 1 ) {
					            if( Dt.options.selectedIndex + 2 < numDays ) {
					                return 0;
					            } else {
					                if( Dt.options.selectedIndex + 1 > numDays) {
					                    Dt.options.selectedIndex=numDays - 1;
					                }
					                //check for leap year
					                if( (Dt.options.selectedIndex + 1) == numDays ) {
					                    return 1;
					                } else {
					                    return 4;
					                }
					            }
					        }
					
					        if( Dt.options.selectedIndex + 2 < numDays ) {
					            value = 0;
					        } else {
					            if ( Dt.options.selectedIndex + 1 > numDays ) {
					                Dt.options.selectedIndex--;
					                value = 3;
					            } else if ( Dt.options.selectedIndex + 1 == numDays ) {
					                //index is 31 or 30
					                value = 2;
					            } else {
					                value = 4;
					            }
					        }
					        return value;
					    }
					
					    //changes departure month when arrival month is changed
					    function amadChange( inM, inD, outM, outD ) {
					        if ( !isBrowserSupp() ) {
					            return;
					        }
					
					        var res = adjustDate( inM.options.selectedIndex, inD );
					        if( res != 0 ) {
					               outD.options.selectedIndex = 0;
					               if ( inM.options.selectedIndex == 11 ) {
					                    outM.options.selectedIndex = 0
					               } else if( res == 4 ) {
					                    outM.options.selectedIndex=inM.options.selectedIndex + 1;
					                    outD.options.selectedIndex = 0;
					               } else {
					                    outM.options.selectedIndex=inM.options.selectedIndex + 1;
					                    outD.options.selectedIndex = 1;
					               }
					        } else {
					            outM.options.selectedIndex = inM.options.selectedIndex;
					            if (outD.options.selectedIndex <= inD.options.selectedIndex) {
					                outD.options.selectedIndex = inD.options.selectedIndex + 2;
					            }
					        }
					        return;
					    }
					
					    function dmddChange( outM, outD ) {
					        if ( !isBrowserSupp() ) {
					            return;
					        }
					        adjustDate( outM.options.selectedIndex, outD );
					        return;
					    }	
					
					function setCityInformation(_city, _state, _country) {
							clearTextBox(document.forms["myform"].cityText);
							document.forms["myform"].city.value = _city;
							document.forms["myform"].stateProvince.value = _state;
							document.forms["myform"].country.value = _country;
						}
					
						function clearTextBox(_textbox) {
							_textbox.value = "";
						}
					
						function validate(form) {
							if (form.numberOfRooms.selectedIndex == 8) {
								window.location = "http://travel.ian.com/index.jsp?pageName=groups&cid=260147&locale=en_US";
								return false;
							}
					
							if (document.forms["myform"].cityText.value != "") {
								document.forms["myform"].stateProvince.value = "";
								document.forms["myform"].country.value = "";
								document.forms["myform"].city.value = document.forms["myform"].cityText.value;
							}
					
							return submitGuestInfoForm(form);
						}
					 function OpenWindow(file, name, width, height) {
					        OpenWindow(file, name, width, height, false);
					    }
					
					    function OpenWindow(file, name, width, height, showLeftTopScrollbar) {
					        var attr = "";
					        if(showLeftTopScrollbar) {
					            attr += "top=50,left=50,scrollbars=1,";
					        }
					        attr += "width=" + width + ",height=" + height + ",resizeable=1";
					        window.open(file, name, attr);
					    }
					   function loadCarDefaultDates() {
					        var carArrival = new Date();
					        var carDeparture = new Date();
					   
					        var carAdvanceArrival = 7;
					        var carAdvanceDeparture = 8;
					   
					       	carArrival.setDate( carArrival.getDate() + carAdvanceArrival );
					        carDeparture.setDate( carDeparture.getDate() + carAdvanceDeparture );
					       	document.forms['aForm'].pickUpMonth.value = carArrival.getMonth();
					        document.forms['aForm'].dropOffMonth.value = carDeparture.getMonth();
					        document.forms['aForm'].pickUpDay.value = carArrival.getDate();
					        document.forms['aForm'].dropOffDay.value = carDeparture.getDate();
					        document.forms['aForm'].pickUpTime.value = carArrival.getTime();
					        document.forms['aForm'].dropOffTime.value = carDeparture.getTime();
					    }
					
					   function loadAirDefaultDates() {
					        var airArrival = new Date();
					        var airDeparture = new Date();
					        var airAdvanceArrival = 14;
					        var airAdvanceDeparture = 16;
					        airArrival.setDate( airArrival.getDate() + airAdvanceArrival );
					        airDeparture.setDate( airDeparture.getDate() + airAdvanceDeparture );
					        document.forms['airForm'].departureMonth.value = airArrival.getMonth();
					        document.forms['airForm'].returnMonth.value = airDeparture.getMonth();
					        document.forms['airForm'].departureDay.value = airArrival.getDate();
					        document.forms['airForm'].returnDay.value = airDeparture.getDate();
					    }
					
					    function validateDepWindow(formName) {
					        if (document.forms[formName].tempDepTime[document.forms[formName].tempDepTime.selectedIndex].value==('M')) {
					            window.document.forms[formName].tripWindow.value='5';
					            window.document.forms[formName].departureTime.value='7AM';
					        } else if (document.forms[formName].tempDepTime[document.forms[formName].tempDepTime.selectedIndex].value==('A')) {
					            window.document.forms[formName].tripWindow.value='5';
					            window.document.forms[formName].departureTime.value='3PM';
					        } else if (document.forms[formName].tempDepTime[document.forms[formName].tempDepTime.selectedIndex].value==('E')) {
					            window.document.forms[formName].tripWindow.value='5';
					            window.document.forms[formName].departureTime.value='8PM';
					        } else if(document.forms[formName].tempDepTime[document.forms[formName].tempDepTime.selectedIndex].value==('ANT')) {
					            window.document.forms[formName].tripWindow.value='9';
					            window.document.forms[formName].departureTime.value='12PM';
					        } else {
					            window.document.forms[formName].tripWindow.value='5';
					            window.document.forms[formName].departureTime.value=document.forms[formName].tempDepTime.value;
					        }
					    }
					
					    function validateRetWindow(formName) {
					        if (document.forms[formName].tempRetTime[document.forms[formName].tempRetTime.selectedIndex].value==('M')) {
					            window.document.forms[formName].returnTime.value='7AM';
					        } else if (document.forms[formName].tempRetTime[document.forms[formName].tempRetTime.selectedIndex].value==('A')) {
					            window.document.forms[formName].returnTime.value='3PM';
					        } else if (document.forms[formName].tempRetTime[document.forms[formName].tempRetTime.selectedIndex].value==('E')) {
					            window.document.forms[formName].returnTime.value='8PM';
					        } else if(document.forms[formName].tempRetTime[document.forms[formName].tempRetTime.selectedIndex].value==('ANT')) {
					            window.document.forms[formName].returnTime.value='12PM';
					        } else {
					            window.document.forms[formName].returnTime.value=window.document.forms[formName].tempRetTime.value;
					        }
						   }

