if(document.layers){
	origWidth=innerWidth;
	origHeight=innerHeight;
	onresize=NetscapeResizeFix;
	}

function NetscapeResizeFix(){
	if(innerWidth!=origWidth||innerHeight!=origHeight){
		location.reload(true);
		}
	}

function Browser(){
	this.author="Guy Shahar";
	this.authorEmail="";
	this.lastModified="";
	this.lastModifiedBy=this.author;
	http="";this.Usage_URL=http+"";
	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_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=8,0,2,0";
	this.Flash="Not Detected";
	this.QuickTime="Not Detected";
	this.QuickTime_Codebase=http+"www.apple.com/qtactivex/qtplugin.cab";
	this.RealPlayer="Not Detected";
	this.loaded=false;
	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.Display=DetectDisplay;
	Browser.prototype.DetectFlash=DetectFlash;
	Browser.prototype.EmbedFlash=DetectEmbedFlash;
	Browser.prototype.DetectQuickTime=DetectQuickTime;
	Browser.prototype.EmbedQuickTime=DetectEmbedQuickTime;
	Browser.prototype.DetectRealPlayer=DetectRealPlayer;
	Browser.prototype.EmbedStyleSheet=DetectEmbedStyleSheet;
	Browser.prototype.AlternateCSS=DetectAlternateCSS;
	Browser.prototype.FixPrint=DetectFixPrint;
	Browser.prototype.Help=DetectHelp;
	Browser.prototype.Usage=DetectHelp;
	}

function DetectFlash(){if(this.Flash!="Not Detected"){return;}
	ActiveX='<SCRIPT LANGUAGE="VBScript">\n';
	ActiveX+='Function GetFlashValue\n';
	ActiveX+='on error resume next\n';
	ActiveX+='dim tmpobj, FlashInstalled\n';
	ActiveX+='FlashInstalled = 0\n';
	
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.3")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 3\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.4")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 4\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.5")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 5\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.6")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 6\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.7")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 7\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.8")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 8\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.9")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 9\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.10")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 10\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.11")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 11\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.12")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 12\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.13")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 13\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.14")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 14\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.15")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 15\n';
	ActiveX+='tmpobj = 0\n';
	ActiveX+='set tmpobj = CreateObject("ShockwaveFlash.ShockwaveFlash.16")\n';
	ActiveX+='if IsObject(tmpobj) then FlashInstalled = 16\n';
	
	ActiveX+='GetFlashValue = FlashInstalled\n';
	ActiveX+='End Function\n';
	ActiveX+='<\/SCRIPT>\n';
	
	if(navigator.plugins&&navigator.plugins.length>0) {
		nparray=navigator.plugins;
		nparraylen=nparray.length;
		for(i=0;i<nparraylen;i++) {
			npplugin=nparray[i];
			npname=npplugin.name;
			npdesc=npplugin.description;
			if(npdesc.indexOf("Shockwave Flash 3")!=-1) {this.Flash=3;}
			if(npdesc.indexOf("Shockwave Flash 4")!=-1){this.Flash=4;}
			if(npdesc.indexOf("Shockwave Flash 5")!=-1){this.Flash=5;}
			if(npdesc.indexOf("Shockwave Flash 6")!=-1){this.Flash=6;}
			if(npdesc.indexOf("Shockwave Flash 7")!=-1){this.Flash=7;}
			if(npdesc.indexOf("Shockwave Flash 8")!=-1){this.Flash=8;}
			if(npdesc.indexOf("Shockwave Flash 9")!=-1){this.Flash=9;}
			if(npdesc.indexOf("Shockwave Flash 10")!=-1){this.Flash=10;}
			if(npdesc.indexOf("Shockwave Flash 11")!=-1){this.Flash=11;}
			if(npdesc.indexOf("Shockwave Flash 12")!=-1){this.Flash=12;}
			if(npdesc.indexOf("Shockwave Flash 13")!=-1){this.Flash=13;}
			if(npdesc.indexOf("Shockwave Flash 14")!=-1){this.Flash=14;}
			if(npdesc.indexOf("Shockwave Flash 15")!=-1){this.Flash=15;}
			if(npdesc.indexOf("Shockwave Flash 16")!=-1){this.Flash=16;}
			}
		}
	else if(this.ie){
		if(!this.mac||(this.mac&&this.ie&&this.v>=5)){
			document.write(ActiveX);
			this.Flash=GetFlashValue();
			if(!this.Flash){
				this.Flash=false;
				}
			}
		else{
			this.Flash=-1;
			}
		}
	
	disableFlash=document.URL.toLowerCase().indexOf("flash=false")>document.URL.indexOf("?");
	
	if(disableFlash){
		this.Flash=false;
		}
	}

function DetectEmbedFlash(file,width,height,fVersion,autostart,force) {
	force = 1;
	if(this.Flash=="Not Detected"){this.DetectFlash();}
	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 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=best>\n');
	insHTML+=('<PARAM NAME=AUTOSTART VALUE='+autostart+'> \n');
	insHTML+= ('<PARAM NAME=WMODE VALUE=TRANSPARENT>\n');
	insHTML+=('<EMBED src="'+file+'" quality=high width='+width+' height='+height+' type="application/x-shockwave-flash" pluginspage="'+this.Flash_Download+'" autostart="'+autostart+'" '+' wmode="transparent"');
	insHTML+=('></EMBED>\n');
	
	insHTML+=('</OBJECT>\n');
	document.write(insHTML);
	return true;}
	
	else{return false;}}
function DetectQuickTime(){if(this.QuickTime!="Not Detected"){return;}ActiveX='<SCRIPT LANGUAGE="VBScript">\n';ActiveX+='Function GetQuickTime\n';ActiveX+='On Error Resume Next\n';ActiveX+='Set theObject = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1")\n';ActiveX+='On Error goto 0\n';ActiveX+='If IsObject(theObject) Then\n';ActiveX+='If theObject.IsQuickTimeAvailable(0) Then\n';ActiveX+='QTime = true\n';ActiveX+='End If\n';ActiveX+='End If\n';ActiveX+='GetQuickTime = QTime\n';ActiveX+='End Function\n';ActiveX+='<\/SCRIPT>\n';if(navigator.plugins&&navigator.plugins.length>0){nparray=navigator.plugins;nparraylen=nparray.length;for(i=0;i<nparraylen;i++){npplugin=nparray[i];npname=npplugin.name;npdesc=npplugin.description;if(npname.indexOf("QuickTime")!=-1){this.QuickTime=true;}}}else if(this.ie){if(!this.mac||(this.mac&&this.ie&&this.v>=5)){document.write(ActiveX);this.QuickTime=GetQuickTime();if(!this.QuickTime){this.QuickTime=false;}}else{this.QuickTime=-1;}}disableQuickTime=document.URL.toLowerCase().indexOf("quicktime=false")>document.URL.indexOf("?");if(disableQuickTime){this.QuickTime=false;}}
function DetectEmbedQuickTime(file,width,height,controller,autostart){if(this.QuickTime=="Not Detected"){this.DetectQuickTime();}var insHTML="";if(controller==null)controller=false;if(autostart==null)autostart=true;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=('<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="'+this.QuickTime_Codebase+'" HEIGHT='+height+' WIDTH='+width+'>\n');insHTML+=('<PARAM NAME=src VALUE="'+file+'">\n');insHTML+=('<PARAM NAME=controller VALUE='+controller+'>\n');insHTML+=('<PARAM NAME=autoplay VALUE='+autostart+'> \n');insHTML+=('<EMBED src="'+file+'" WIDTH='+width+' HEIGHT='+height+' PLUGINSPAGE="'+QuickTime_Download_URL+'" autoplay='+autostart+' controller='+controller+'></EMBED>\n');insHTML+=('</OBJECT>\n');document.write(insHTML);return true;}}
function DetectRealPlayer(){if(this.RealPlayer!="Not Detected"){return;}ActiveX='<SCRIPT LANGUAGE="VBScript">\n';ActiveX+='Function GetRealPlayer\n';ActiveX+='On Error Resume Next\n';ActiveX+='RealPlayerG2 = (NOT IsNull(CreateObject("rmocx.RealPlayer G2 Control")))\n';ActiveX+='GetRealPlayer = RealPlayerG2\n';ActiveX+='End Function\n';ActiveX+='<\/SCRIPT>\n';if(navigator.plugins&&navigator.plugins.length>0){nparray=navigator.plugins;nparraylen=nparray.length;for(i=0;i<nparraylen;i++){npplugin=nparray[i];npname=npplugin.name;npdesc=npplugin.description;if(npname.indexOf("RealPlayer")!=-1){this.RealPlayer=true;}}}else if(this.ie){if(!this.mac||(this.mac&&this.ie&&this.v>=5)){document.write(ActiveX);this.RealPlayer=GetRealPlayer();if(!this.RealPlayer){this.RealPlayer=false;}}else{this.RealPlayer=-1;}}disableRealPlayer=document.URL.toLowerCase().indexOf("realplayer=false")>document.URL.indexOf("?");if(disableRealPlayer){this.RealPlayer=false;}}
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&&this.Flash!="Not Detected"){flash_installed=" with Flash "+this.Flash;}else{flash_installed="";}if(this.QuickTime&&this.QuickTime!="Not Detected"){qt_installed=", QuickTime";}else{qt_installed="";}if(this.RealPlayer&&this.RealPlayer!="Not Detected"){rp_installed=", RealPlayer";}else{rp_installed="";}document.writeln('<blockquote><table border="0" cellspacing="1" cellpadding="1">');document.writeln('<tr><td colspan="2"><font color="#003399"><b>'+bn+' '+this.v+' / '+pn+flash_installed+qt_installed+rp_installed+'</b></font><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 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 DetectAlternateCSS(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(){if(this.ie){if(this.pc){document.write('<OBJECT ID="thePrinter" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT><SCRIPT LANGUAGE="VBScript">\nsub PrintThis\nOn Error Resume Next\nthePrinter.ExecWB 6, 1\nend sub\n</SCRIPT>');window.print=new Function("PrintThis()");}else{window.print=new Function("alert('This function is disabled by your browser.\\n\\nClick OK, then press Command-P to Print.')");}}}function DetectHelp(){window.open("' + this.Usage_URL + '");}
