// Detect Netscape 6
if (navigator.userAgent.indexOf('Netscape6') != -1) {
document.write("<div class=detectbrowser>The Netscape version that you are running is not compatible with SKY-click, please update your browser version to Netscape 7+</div>")
}
// Detect Netscape 5
if (navigator.userAgent.indexOf('Netscape5') != -1) {
document.write("<div class=detectbrowser>The Netscape version that you are running is not compatible with SKY-click, please update your browser version to Netscape 7+</div>")
}
// Detect Netscape 4
if (navigator.userAgent.indexOf('Netscape4') != -1) {
document.write("<div class=detectbrowser>The Netscape version that you are running is not compatible with SKY-click, please update your browser version to Netscape 7+</div>")
}

//detect Firefox <1.0
if(navigator.userAgent.indexOf("Firefox")!=-1){
var versionindex=navigator.userAgent.indexOf("Firefox")+8
if (parseInt(navigator.userAgent.charAt(versionindex))<1.0)
document.write("<div class=detectbrowser>The Firefox version that you are running is not compatible with SKY-click, please update your browser version to Firefox 1.0+</div>")
}
//detect safari <2
if(navigator.userAgent.indexOf("safari")!=-1){
var versionindex=navigator.userAgent.indexOf("safari")+8
if (parseInt(navigator.userAgent.charAt(versionindex))<2)
document.write("<div class=detectbrowser>The Safari version that you are running is not compatible with SKY-click, please update your browser version to Safari 2.0+</div>")
}

//Detect <IE6
 function msieversion()
   {
      var ua = window.navigator.userAgent
      var msie = ua.indexOf ( "MSIE " )

      if ( msie > 0 )      // If Internet Explorer, return version number
         return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
      else                 // If another browser, return 8...
         return 8

   }
 if ( msieversion() < 6 )  // la version

      document.write ( "<div class=detectbrowser>The Internet Explorer version that you are running is not compatible with SKY-click, please update your browser version to Internet Explorer 6.0+</div>" );

