anchor.diff:          bcString += curPage + ";";            
       }
   }
  +
  +//Get maxsize for attachment uploads
  +int maxSize = TextUtil.getIntegerProperty( engine.getWikiProperties(), 
  +                                           AttachmentManager.PROP_MAXSIZE,
  +                                           Integer.MAX_VALUE );
   %>
   
  -<script type="text/javascript">
  -
  -var beginApplet  = "<applet code='org.wikiwizard.FlashSplash'\n"; 
  -    beginApplet += "        archive='applets/wikiwizard.jar'\n";
  -    beginApplet += "        name='WikiWizard'\n";
  -    beginApplet += "        width='100%'\n";
  -    beginApplet += "        height='";
  -
  -var endApplet    = "%'\n";
  -    endApplet   += "        MAYSCRIPT>\n";
  -
  -if ( browser == "Netscape Navigator" ) {
  -    document.write(beginApplet + "100" + endApplet);
  -} else {
  -    document.write(beginApplet + "70" + endApplet);
  -}
  +<applet id='WikiWizard'
  +        code='org.wikiwizard.FlashSplash' 
  +        archive='applets/wikiwizard.jar'
  +        name='WikiWizard'
  +        width='100%'
  +        height='70%'
  +        mayscript>
           
  -</script>
  -
   	<param name="attachments" value="<%=attString%>" />
  +	<param name="attachpermission" value="<wiki:Permission permission="upload">true</wiki:Permission>" />
  +	<param name="attachmaxsize" value="<%=maxSize%>" />
  +	<param name="attachURL" value="<wiki:Link format="url" jsp="attach" absolute="true" />" />
   	<param name="user" value="<wiki:UserName />" /> 
   	<param name="breadcrumbs" value="<%=bcString%>" />
  -	<param name="encoding" value="<%=context.getEngine().getContentEncoding()%>" />
  -	<param name="page" value="<%=context.getPage().getName()%>" />
  +	<param name="encoding" value="<wiki:ContentEncoding />" />
  +	<param name="page" value="<wiki:PageName />" />
  +	<param name="pageexists" value="<wiki:PageExists>true</wiki:PageExists>" />
   	<param name="lang" value="<%=context.getHttpRequest().getHeader("Accept-Language")%>" />
   	Applets are currently not supported by your browser.  Please <a href="http://www.java.com/">download Java</a>, so you can use
   	the WikiWizard editor.
  -  
   </applet>
   
      <wiki:CheckRequestContext context="comment">
  
positive.code: <script type='text/javascript' src='scripts/wikiwizard-jspwiki.js' language='Javascript'></script>
  <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  <%@ page import="java.io.Serializable"%>
  <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki"%>
  <%@ page import="com.ecyrd.jspwiki.*" %>
  <%@ page import="com.ecyrd.jspwiki.ui.*" %>
  
negative.code: --%>
  
  <noscript>
    <br />
    <div class="error">You need to enable Javascript in your browser to use the WikiWizard editor</div>
  </noscript>
  
  