function Browser(param,param2)
{ http="http:/\/";
  this.Usage_URL=http+"www.guyshahar.com/detect/usage.html";
  this.v=parseFloat(navigator.appVersion);
  this.uA=navigator.userAgent;
  this.ns=false;
  this.ns6=false;
  this.ie=false;
  this.ie5=false;
  this.opera=false;
  this.AOL=false;
  this.mac=false;
  this.pc=false;
  this.dhtml=false;
  this.Java=false;
  this.Flash=false;
  this.Flash_Download=http+"www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";
  this.Flash_Codebase=http+"download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0";
  this.QuickTime=false;
  this.RealPlayer=false;
  this.loaded=false;
  this.author="Guy Shahar";
  this.lastModified="V2.5 09/21/01 2:30PM";
  this.lastModifiedBy=this.author;navigator.appVersion.indexOf('Mac')!=-1?(this.mac=true):(this.pc=true);
  var ns6pos=this.uA.indexOf('Netscape6/');
  var iepos=this.uA.indexOf('MSIE');
  var oppos=this.uA.indexOf('Opera');
  var AOLpos=this.uA.toUpperCase().indexOf('AOL');
  if(oppos>0)
  { this.v=parseFloat(this.uA.substring(oppos+6,this.uA.length));
    this.opera=true;
  }
  else{navigator.appName.indexOf('Netscape')!=-1?(this.ns=true):(this.ie=true);}
  if(iepos!=-1)
  { ie5cut=this.uA.substring(iepos+5,this.uA.length);
    this.v=parseFloat(ie5cut.substring(0,ie5cut.indexOf('\;')));
    if(this.v>=5)this.ie5=true;
  }
  this.guy=true;
  if(ns6pos!=-1)
  { this.v=parseFloat(this.uA.substring(ns6pos+10,this.uA.length));
    this.ns6=true;
  }
  if(AOLpos!=-1){ this.AOL=parseFloat(this.uA.substring((AOLpos+3),this.uA.length));}
  if(this.v>=4)
  { this.dhtml=this.opera?false:true;
    this.Java=navigator.javaEnabled();
  }
  Browser.prototype.Detect=Detect;
  Browser.prototype.Display=DetectDisplay;
  Browser.prototype.EmbedFlash=DetectEmbedFlash;
  Browser.prototype.embedQuickTime=DetectembedQuickTime;
  Browser.prototype.embedStyleSheet=DetectembedStyleSheet;
  Browser.prototype.CSS=DetectCSS;
  Browser.prototype.FixPrint=DetectFixPrint;
  Browser.prototype.Help=DetectHelp;
  Browser.prototype.Usage=DetectHelp;
  if(param==1)
  { this.Detect();
    this.FixPrint();
  }
  if(document.layers)
  { this.origwidth=innerWidth;
    this.origheight=innerHeight;
  }
}
function Detect()
{
	//this function not used
	return;
}
function DetectDisplay()
{ if(this.mac){font_size=12;}
  else{font_size=10.5;}document.write('<style type="text/css">\<\!--td {font-family: arial; font-size:'+font_size+'pt;}--\></style>');
  bn=this.ns?"Netscape":"IE";
  if(this.opera){bn="Opera"}
  pn=this.mac?"Mac":"PC";
  if(this.Flash){flash_installed=" with Flash "+this.Flash;}
  else{flash_installed="";}
  if(this.QuickTime){qt_installed=", QuickTime";}
  else{qt_installed="";}
  if(this.RealPlayer){rp_installed=", RealPlayer";}
  else{rp_installed="";}
  document.writeln('<blockquote><table border="0" cellspacing="1" cellpadding="1">');
  document.writeln('<tr><td colspan="2"><b>'+bn+' '+this.v+' / '+pn+flash_installed+qt_installed+rp_installed+'</b><hr /></td></tr>');
  document.writeln('<tr><td><b>appName</b>: </td><td>'+navigator.appName+'</td></tr>');
  document.writeln('<tr><td><b>appVersion</b>: </td><td>'+navigator.appVersion+'</td></tr>');
  document.writeln('<tr><td><b>userAgent</b>: </td><td>'+navigator.userAgent+'</td></tr>');
  document.writeln('<tr><td><b>platform</b>: </td><td>'+navigator.platform+'</td></tr>');
  document.writeln('<tr><td colspan="2">&nbsp;</td></tr>');
  document.writeln('<tr><td><b>ns</b>: </td><td>'+this.ns+'</td></tr>');
  document.writeln('<tr><td><b>ns6</b>: </td><td>'+this.ns6+'</td></tr>');
  document.writeln('<tr><td><b>ie</b>: </td><td>'+this.ie+'</td></tr>');
  document.writeln('<tr><td><b>ie5</b>: </td><td>'+this.ie5+'</td></tr>');
  document.writeln('<tr><td><b>opera</b>: </td><td>'+this.opera+'</td></tr>');
  document.writeln('<tr><td><b>pc</b>: </td><td>'+this.pc+'</td></tr>');
  document.writeln('<tr><td><b>mac</b>: </td><td>'+this.mac+'</td></tr>');
  document.writeln('<tr><td><b>AOL</b>: </td><td>'+this.AOL+'</td></tr>');
  document.writeln('<tr><td><b>dhtml</b>: </td><td>'+this.dhtml+'</td></tr>');
  document.writeln('<tr><td><b>Java</b>: </td><td>'+this.Java+'</td></tr>');
  document.writeln('<tr><td><b>Flash</b>: </td><td>'+this.Flash+'</td></tr>');
  document.writeln('<tr><td><b>QuickTime</b>: </td><td>'+this.QuickTime+'</td></tr>');
  document.writeln('<tr><td><b>RealPlayer</b>: </td><td>'+this.RealPlayer+'</td></tr>');
  if(document.layers)
  { document.writeln('<tr><td><b>width</b>: </td><td>'+this.origwidth+'</td></tr>');
    document.writeln('<tr><td><b>height</b>: </td><td>'+this.origheight+'</td></tr>');
  }
  document.writeln('<tr><td><br /></td><td><br /></td></tr>');
  document.writeln('<tr><td><b>Author</b>: </td><td>'+this.author+'</td></tr>');
  document.writeln('<tr><td><b>Last Revision</b>: </td><td>'+this.lastModified+' by '+this.lastModifiedBy+'</td></tr>');
  document.writeln('<tr><td colspan=2><br /><a href="'+this.Usage_URL+'">Usage</a></td></tr>');
  document.writeln('</table></blockquote>');
}
function DetectEmbedFlash(file,width,height,fVersion,autostart,force)
{ var insHTML="";
  var override=document.URL.indexOf("flash=false")>document.URL.indexOf("?");
  var force_flash=document.URL.indexOf("flash=true")>document.URL.indexOf("?");
  if(!fVersion){fVersion=3;}
  if(!width){width=10;}
  if(!height){height=10;}
  if(!autostart){autostart=false;}
  file_ID=(file.indexOf(".")==0||file.indexOf("/")==0)?"Flashfile":file.substring(0,file.indexOf('.'));
  if((this.Flash>=parseFloat(fVersion)&&!override)||(force&&this.mac&&this.ie&&this.v<5)||force_flash)
  { insHTML=('<object alt="Flash movie. This movie displays brief statements in which you can click on statement and go to the item document." classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+this.Flash_Codebase+'" height='+height+' width='+width+' id='+file_ID+'>\n');
    insHTML+=('<param name=movie value="'+file+'">\n');
    insHTML+=('<param name=quality value=high>\n');
    insHTML+=('<param name=AUTOSTART value='+autostart+'> \n');
    insHTML+=('<embed src="'+file+'" quality=high width='+width+' height='+height+' type="application/x-shockwave-flash" pluginspage="'+this.Flash_Download+'" autostart="'+autostart+'" ');
    insHTML+=('></embed>\n');
    insHTML+=('</object>\n');
    document.write(insHTML);
    return true;
  }
  else{return false;}
}
function DetectembedQuickTime(file,width,height)
{ var insHTML="";
  var QuickTime_Download_URL="http://www.apple.com/quicktime/download/";
  var override=document.URL.toLowerCase().indexOf("quicktime=false")>document.URL.indexOf("?");
  if(!override&&this.QuickTime==true)
  { insHTML='<embed src="'+file+'"';
    if(width&&height){insHTML+=' width='+width+' height='+height+' ';}
    insHTML+='></embed>\n';document.write(insHTML);
    return true;
  }
}
function DetectembedStyleSheet(file,elsefile)
{ var args=DetectembedStyleSheet.arguments;
  var conditions=0;
  var embed_file;
  for(i=2;i<args.length;i++){ if(args[i]==true){conditions++;}}
  if(conditions==(args.length-2)||args.length<=2){embed_file=file;}
  else if(elsefile){embed_file=elsefile;}
  if(embed_file){document.writeln('<link rel="stylesheet" type="text/css" href="'+embed_file+'" />');}
}
function DetectCSS(CSS_ns,CSS_mac)
{ if(document.layers){this.embedStyleSheet(CSS_ns);}
  if(this.mac&&!this.ns6&&!(this.ie&&this.v>=5)){this.embedStyleSheet(CSS_mac);}
}
window.print=window.print;
function DetectFixPrint()
{ 
}
function DetectHelp()
{ window.open("' + this.Usage_URL + '");
}