function MM_checkPlugin(plgIn, theURL, altURL, autoGo) 
{
 var ok=false; 
 var url="";
 document.MM_returnValue = false; 
 
 with (navigator) 
 if ((appName.indexOf('Microsoft')==-1) || (plugins && plugins.length))
 {
	ok=(plugins && plugins[plgIn]);
 } 
 else
 { 
	if (appVersion.indexOf('3.1')==-1) 
	{
	   if ((plgIn.indexOf("Flash")!=-1) && (window.MM_flash!=null)) 
	   {	  
		  ok=window.MM_flash;
	   }
	   else
	   { 
		  if ((plgIn.indexOf("Director")!=-1) && (window.MM_dir!=null)) 
		  {    
		      ok=window.MM_dir;
		  }
		  else
		  {
			  ok=autoGo;
		  }
	   } 
	}
 }
 if (!ok) url=altURL; 
 if (url.indexOf(altURL)>-1) 
	window.location=url;
}
