<!--                    
     var ag = navigator.userAgent;
                                   
     function is_ie()
     {
          if (ag.indexOf("IE")!=-1)
          {
               return true;                         
          }                
          else
          {         
               return false;                         
          }                         
     }                    
     
     function is_running_dotnet_in_ie()
     {
          if (ag.indexOf("NET CLR") != -1)
          {
               return true;
          }
          else
          {
               return false;                         
          }                         
     }
     
     function is_running_dotnet3_in_ie()
     {
          if (ag.indexOf("NET CLR 3") != -1)
          {
               return true;
          }
          else
          {
               return false;                         
          }       
     }
                         
     function xbap_compat()
     {                                                                                
          if (!is_ie())
          {
               document.writeln("<font color=\"#FF0000\" size=\"+1\"><br/><br/><br/><center><b>It has been detected that you are not currently using Internet Explorer as your browser to view this site.</b></font><br/>");
               document.writeln("<br/>To run XBAP applications you must <ul> <li> be running  <b>Microsoft Internet Explorer version 6 or higher</b>,</li><li> on the <b>Windows</b> platform, and </li><li>with <b>Version 3.0 of the.NET Framework</b> installed.</li></ul>");  
               document.writeln("<br/>These are inherent limitations of XBAP technology. If you are not on the Windows platform, there is currently no solution for you. <br/>");   
               document.writeln("On the other hand, if you are using Windows, just switch browsers to IE 6 or IE 7 when viewing this portion of TravelsWithCal. <br/>");   
               document.writeln("<br/>The remainder of <a href=\"http://www.travelswithcal.com/\">TravelsWithCal</a> does not use XBAP technology and can be viewed with any browser on any platform. </center>");                                                                                                
               return false;
          }
          else if (!is_running_dotnet3_in_ie())                                                                    
          {
               document.writeln("<center><font color=\"#FF0000\" size=\"+1\"><br/><br/><br/><b>It has been detected that you do not currently have the .NET Framework 3.0 installed.</b></font>");
               document.writeln("<br/><br/>This is an inherent requirement of XBAP technology. To download and install the the <b>.NET Framework 3.0</b> simply select the appropriate version from the following links:<br/>");
               document.writeln("<a href=\"http://go.microsoft.com/fwlink/?LinkId=70848\">.NET Framework 32bit Redistributable Package</a><br/>");
               document.writeln("<a href=\"http://go.microsoft.com/fwlink/?LinkId=70849\">.NET Framework 64bit Redistributable Package</a><br/></center>");                      
               return false;
          }
          else
          {                         
               return true;
          }                         
     }
//-->
