
// ============
function Is ()
// ============
{ 
  var b 

  if (navigator.appName == "Netscape") this.isNS=true;
  else if (navigator.appName == "Microsoft Internet Explorer")  this.isIE=true;
  else this.isOthers = true;

 // *** BROWSER VERSION ***
 this.version=0

 if (this.isNS)
  {//1
   b=true
    //detect Netscape 4.77+
    if (navigator.userAgent.indexOf("Netscape6")!=-1)
     {//2
      temp=navigator.userAgent.split("Netscape6")
      if (!isNaN(temp[1]))
       {//3
        this.version=parseFloat(temp[1])
        b=false
       }//3
     } 
    if (b)  
     {//4
        if (navigator.userAgent.indexOf("Netscape6/")!=-1) 
        { //5
         temp=navigator.userAgent.split("Netscape6/")
         if (!isNaN(temp[1]))
          {
           this.version=parseFloat(temp[1])
           b=false 
          }
        } //5
      }//4
     
      //detect Netscape 4.7-
     if (b) this.version=parseFloat(navigator.appVersion)
      b=false
    
  }//1
 else 
 {
  if (this.isIE)
  {
  //detect IE5.x
   if (navigator.appVersion.indexOf("MSIE")!=-1){
     temp=navigator.appVersion.split("MSIE")
     this.version=parseFloat(temp[1])
    b=false
   }
  }
 }

  if (b) this.version=parseFloat(navigator.appVersion)

  this.x=window.screen.width
  this.y=window.screen.height
}


var is = new Is();

////////////////////////////////////////////////////////////////////////// 

 function LoadImage (img) 
 { 
  if (CanHandleImage())  
   {
    var a=new Image();    
    a.src=img;    
    return a;  
   }  
  else   
   return (null); 
}

// ========================
 function CanHandleImage () 
// ========================
 {  
  return ((is.isNS && (is.version >= 3)) ||         
          (is.isIE && (is.version >= 4))) 
 }

// ========================
 function getJavaScript()
// ========================
 {
  if (is.isNS && (is.version < 6))
  { 
   document.write("<SCRIPT LANGUAGE='Javascript' SRC='applicationData/dsg/js/scripts1.js'></SCRIPT" + ">")
   document.write("<SCRIPT LANGUAGE='Javascript' SRC='applicationData/dsg/js/main1.js'></SCRIPT" + ">")
   
  } 
   else 
  {
   document.write("<SCRIPT LANGUAGE='Javascript' SRC='applicationData/dsg/js/scripts.js'></SCRIPT" + ">")
   document.write("<SCRIPT LANGUAGE='Javascript' SRC='applicationData/dsg/js/main.js'></SCRIPT" + ">")
  } 
}
////////////////////////////////////////////////////////////////////////// 

 function ChangeImage (img1name, img2) 
 { if (CanHandleImage() && (img2 != null))  
   {   
    document[img1name].src=img2.src;  
   }
 }



