//    //Normalize height for AJAX rounded panels 
//    
//    //Initialize 
//    
////    if (document.location.toString().indexOf("productsearch.aspx") > 0)
////    {
////        window.onload=function(){ 
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty00"}, null, null, $get("ctl00_MainContent_ctl00_MainContent_pnlProductSearchMenuPanel"));
////                });
////        }        
////    }
//    
//    
////    if (document.location.toString().indexOf("bookingitinerary.aspx") > 0)
////    {
////        window.onload=function(){ 
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty00"}, null, null, $get("ctl00_MainContent_pnlPassenger2Air"));
////                });
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty01"}, null, null, $get("ctl00_MainContent_pnlPassenger1Air"));
////                });
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty02"}, null, null, $get("ctl00_MainContent_pnlPassenger2ArrivalTransfers"));
////                });
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty03"}, null, null, $get("ctl00_MainContent_pnlPassenger1ArrivalTransfers"));
////                });
////               
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty04"}, null, null, $get("ctl00_MainContent_pnlPassenger2DepartureTransfers"));
////                });
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty05"}, null, null, $get("ctl00_MainContent_pnlPassenger1DepartureTransfers"));
////                });
////        
////        Sys.Application.add_init(function() { 
////        $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty06"}, null, null, $get("ctl00_MainContent_pnlPastGuest1")); 
////               });
////               
////         Sys.Application.add_init(function() { 
////        $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty07"}, null, null, $get("ctl00_MainContent_pnlPastGuest2")); 
////               });
////               
////        Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty08"}, null, null, $get("ctl00_MainContent_pnlPassenger2BookingPromos"));
////                });
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty09"}, null, null, $get("ctl00_MainContent_pnlPassenger1BookingPromos"));
////                });         
////        }
////    }

//    function onRequestStart(sender, arguments)
//    {
//    

//              

//    };

//   

//    function onResponseEnd(sender, arguments)
//    {
//     try 
//     {
//     //Disabling the below, need to discuss upgrading Telerik controls to post Q2 build: http://www.telerik.com/community/forums/aspnet-ajax/combobox/highlight-multi-lines.aspx

////What’s New:
////Implemented OnClientTextChange event
////What’s Fixed:
////SelectedValue and get_value() properties of RadComboBox do not return the right value when combo is disabled on client side. This is now fixed.
////Changing the selection of the dropdown no longer throws an error: "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus"
////Fixed memory leaks in IE.
////JavaScript error when the combobox is disabled and its text is selected is now fixed.
////Fixed a case when DataBind() throws an exception “Selection out of range”.
////SelectedIndexChanged event no longer fires every time on postback if the first item is without Value and MarkFirstMatch= true
////RadComboBox's input now has the correct width under Safari when its container has white-space:nowrap.
////Office2007 skin drop-down backgrounds no longer expand when item text wraps.

////     if (document.location.toString().indexOf("productsearch.aspx") > 0)
////     {
////        window.onload=function(){ 
////         Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty00"}, null, null, $get("ctl00_MainContent_pnlProductSearchMenu"));
////                });
////        }   
////     }

////Fix for MS AJAX bug: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=277646
//    //Workaround: https://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=277646
//            
////    Sys.CultureInfo.prototype._getAbbrMonthIndex = function(value)
////    {
////    if (!this._upperAbbrMonths) {
////    this._upperAbbrMonths = this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);
////    }
////    return Array.indexOf(this._upperAbbrMonths, this._toUpper(value));
////    };
//     
//        if (document.location.toString().indexOf("bookingitinerary.aspx") > 0)
//        {
////            if ((arguments.get_eventTarget() == 'ctl00$MainContent$cmbAirGatewayPax1') ||
////               (arguments.get_eventTarget() == 'ctl00$MainContent$cmbAirYesNoPax1') ||
////               (arguments.get_eventTarget() == 'ctl00$MainContent$cmbAirGatewayPax2') ||
////               (arguments.get_eventTarget() == 'ctl00$MainContent$cmbAirYesNoPax2'))
////              
////               { 
//                   normalizePanels('ctl00_MainContent_pnlPassenger1Air','ctl00_MainContent_pnlPassenger2Air',arguments);
//                   
//               //} 
//                   
////            if (arguments.get_eventTarget() == 'ctl00_MainContent_gridPreExtensions_ctl00__0')
////            {
//                normalizePanels('ctl00_MainContent_pnlPassenger1ArrivalTransfers','ctl00_MainContent_pnlPassenger2ArrivalTransfers',arguments);    
//                normalizePanels('ctl00_MainContent_pnlPassenger1DepartureTransfers','ctl00_MainContent_pnlPassenger2DepartureTransfers',arguments);
//            //}
//           
//             //ctl00_MainContent_pnlPastGuest1
//             normalizePanels('ctl00_MainContent_pnlPastGuest1','ctl00_MainContent_pnlPastGuest2',arguments);
////            if ((arguments.get_eventTarget() == 'ctl00$MainContent$btnApplyDiscountPax1')  || 
////               (arguments.get_eventTarget() == 'ctl00$MainContent$btnApplyDiscountPax2')  || 
////               (arguments.get_eventTarget() == 'ctl00$MainContent$btnRemoveDiscountPax1') ||
////               (arguments.get_eventTarget() == 'ctl00$MainContent$btnRemoveDiscountPax2') ||
////               (arguments.get_eventTarget() == 'ctl00$MainContent$gridDiscountPax1') ||
////               (arguments.get_eventTarget() == 'ctl00$MainContent$gridDiscountPax2'))
//                   normalizePanels('ctl00_MainContent_pnlPassenger1BookingPromos','ctl00_MainContent_pnlPassenger2BookingPromos',arguments);
//        }
//      } //try
//     catch(Ex)
//     {
//     }
//     finally
//     {
//     }  
//    }
//    
//    function normalizePanels(panel1,panel2,arguments)
//    {
////        if ((arguments.get_eventTarget() == 'ctl00$MainContent$cmbAirGatewayPax1') 
////        || (arguments.get_eventTarget() == 'ctl00$MainContent$cmbAirYesNoPax1') || 
////        (arguments.get_eventTarget() == 'ctl00_MainContent_gridPreExtensions_ctl00__0'))
////         
////        { 
//            var div1Height = (document.getElementById(panel1).offsetHeight - 8  + 'px')
//            var div2Height = (document.getElementById(panel2).offsetHeight - 8 + 'px')
//             
//            if (document.getElementById(panel1).offsetHeight > document.getElementById(panel2).offsetHeight) 
//            {
//                document.getElementById(panel2).style.height = div1Height;
//            }
//            if (document.getElementById(panel1).offsetHeight < document.getElementById(panel2).offsetHeight) 
//            {
//                document.getElementById(panel1).style.height = div2Height;
//            }
//            
//           
//            
//        //} 
//       
////       if ((arguments.get_eventTarget() == 'ctl00$MainContent$cmbAirGatewayPax2') 
////       || (arguments.get_eventTarget() == 'ctl00$MainContent$cmbAirYesNoPax2') 
////       || (arguments.get_eventTarget() == 'ctl00_MainContent_gridPreExtensions_ctl00__0'))  
////       {
//           var div1Height = (document.getElementById(panel1).offsetHeight - 8  + 'px')
//           var div2Height = (document.getElementById(panel2).offsetHeight - 8 + 'px')
//            
//           if (document.getElementById(panel1).offsetHeight < document.getElementById(panel2).offsetHeight) 
//           {
//                document.getElementById(panel1).style.height = div2Height;
//                
//           }
//            
//           if (document.getElementById(panel1).offsetHeight > document.getElementById(panel2).offsetHeight) 
//           {
//                document.getElementById(panel2).style.height = div1Height;
//                
//           } 
////           
////           
////       } 
//      
////        try
////        {   
//////            if ($get(panel1) == 'undefined') 
//////            {
////                Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty" + panel1}, null, null, $get(panel1));
////                });
////            //}
//////            if ($get(panel2) == 'undefined') 
//////            {
////                Sys.Application.add_init(function() {
////                $create(MattBerseth.WebControls.AJAX.NiftyCornersControl.NiftyCornersBehavior, {"BlendFromColor":"#EAEAEA","BlendToColor":"#ffffff","Radius":10,"id":"aspnet_nifty" + panel2}, null, null, $get(panel2));
////                }); 
////            //}    
////       } 
////       catch(ex)
////       {
////         
////       }  
////       finally
////       {
////         
////       }   
//      
//    } 


