////////////////////////////////////////////////////////////
//
// MENU SCRIPT     (scroll to the bottom for menu content)
//
////////////////////////////////////////////////////////////



var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

function getRef(id) {
  if (isDOM) return document.getElementById(id);
  if (isIE4) return document.all[id];
  if (isNS4) return document.layers[id];
}


function loadPage(id,nestref,url) {
    // change the 550 value to make the layer wider or smaller
    content_width = 550;
    if (isNS4) {
	var lyr = (nestref)? eval('document.'+nestref+'.document.'+id) : document.layers[id]
	    lyr.load(url,content_width)
    }
    else if(isIE4) parent.content.location = url;
    else if(isDOM) document.getElementById('contentFrame').src = url;
}

function showPage(id) {
    if (isIE4) {
	document.all[id].innerHTML = parent.contentFrame.document.body.innerHTML;
    }
    else if(isDOM) {
	document.getElementById(id).innerHTML = window.frames['contentFrame'].document.getElementById('theBody').innerHTML;
    }
}


function getSty(id) {
  return (isNS4 ? getRef(id) : getRef(id).style);
}


var menuArray = new Array();
for (var i = 0; i<10; i++) menuArray[i]=null;

var numOfMenus = 0;

function registerMenu(menuToAdd) {
   menuArray[numOfMenus] = menuToAdd;
   litNow[numOfMenus] = new Array();
   numOfMenus++;
}

// Hide timeout.
var popTimer = 0;

// Array showing highlighted menu items.
var litNow = new Array();

function popOver(i, menuNum, itemNum) {
  hideAllOtherMenus(i);
  var menu = menuArray[i];
  //alert(menu[menuNum][itemNum].target);
  clearTimeout(popTimer);
  hideAllBut(i, menuNum);
  litNow[i] = getTree(i, menuNum, itemNum);
  changeCol(i, litNow[i], true);
  targetNum = menu[menuNum][itemNum].target;
  if (targetNum > 0) {
    thisX = parseInt(menu[menuNum][0].ref.left) + parseInt(menu[menuNum][itemNum].ref.left);
    thisY = parseInt(menu[menuNum][0].ref.top) + parseInt(menu[menuNum][itemNum].ref.top);
    testH = thisY+parseInt(menu[targetNum][0].ref.height);
    if (parseInt(navigator.appVersion)>3) {
	if (navigator.appName=="Netscape") {
	    winH = window.innerHeight;
	}
	if (navigator.appName.indexOf("Microsoft")!=-1) {
	    winH = document.body.offsetHeight;
	}
    }
    if (testH>winH) {
	thisY = thisY - parseInt(menu[targetNum][0].ref.height)+parseInt(menu[menuNum][itemNum].ref.height);
    }
    with (menu[targetNum][0].ref) {
      left = parseInt(thisX + menu[targetNum][0].x);
      top = parseInt(thisY + menu[targetNum][0].y);
      visibility = 'visible';
    }
  }
}

function hideAllOtherMenus(i) {
  for (var x = 0; x<numOfMenus; x++) {
    if (x!=i) {
      var menu = menuArray[x];
      for (count = 1; count < menu.length; count++)
        menu[count][0].ref.visibility='hidden';
      changeCol(x,litNow[x],false);
    }
  }
}

function popOut(i, menuNum, itemNum) {
 
  var menu = menuArray[i];
  if ((menuNum == 0) && !menu[menuNum][itemNum].target) {
      hideAllBut(i,0);
       showDropDowns();
  }
  else
      popTimer = setTimeout('hideAll();showDropDowns()', 500);
}


function getTree(i, menuNum, itemNum) {
  // Array index is the menu number. The contents are null (if that menu is not a parent)
  // or the item number in that menu that is an ancestor (to light it up).
  var menu = menuArray[i];
  //alert(menu.length);
  itemArray = new Array(menu.length);
  while(1) {
      itemArray[menuNum] = itemNum;
      // If we've reached the top of the hierarchy, return.
      if (menuNum == 0) return itemArray;
      itemNum = menu[menuNum][0].parentItem;
      menuNum = menu[menuNum][0].parentMenu;
  }
}


// Pass an array and a boolean to specify colour change, true = over colour.
function changeCol(i, changeArray, isOver) {
    //  alert("ChangeCol\ni: "+i+"\nchangeArray:"+changeArray+"\nisOver:"+isOver);
  var menu = menuArray[i];
  for (menuCount = 0; menuCount < changeArray.length; menuCount++) {
    if (changeArray[menuCount]) {
      newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol;
      // Change the colours of the div/layer background.
      with (menu[menuCount][changeArray[menuCount]].ref) {
      if (isNS4) bgColor = newCol;
        else backgroundColor = newCol;
      }
	}
  }
}


function hideAllBut(i, menuNum) {
  var menu = menuArray[i];
  var keepMenus = getTree(i, menuNum, 1);
  for (count = 0; count < menu.length; count++)
    if (!keepMenus[count])
      menu[count][0].ref.visibility = 'hidden';
  changeCol(i, litNow[i], false);
}

function hideAll() {
  for (var i = 0; i< numOfMenus; i++) {
    var menu = menuArray[i];
    var keepMenus = getTree(i, 0, 1);
    for (count = 0; count < menu.length; count++)
      if (!keepMenus[count])
        menu[count][0].ref.visibility = 'hidden';
      changeCol(i, litNow[i], false);
  }
}

// *** MENU CONSTRUCTION FUNCTIONS ***

function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {
  // True or false - a vertical menu?
  this.isVert = isVert;
  // The popout indicator used (if any) for this menu.
  this.popInd = popInd
  // Position and size settings.
  this.x = x;
  this.y = y;
  this.width = width;
  // Colours of menu and items.
  this.overCol = overCol;
  this.backCol = backCol;
  // The stylesheet class used for item borders and the text within items.
  this.borderClass = borderClass;
  this.textClass = textClass;
  // Parent menu and item numbers, indexed later.
  this.parentMenu = null;
  this.parentItem = null;
  // Reference to the object's style properties (set later).
  this.ref = null;
}

function Item(text, href, frame, length, spacing, target) {
  this.text = text;
  this.href = href;
  this.frame = frame;
  this.length = length;
  this.spacing = spacing;
  this.target = target;
  // Reference to the object's style properties (set later).
  this.ref = null;
}

function writeMenus(i)
{
  
  var menu = menuArray[i];
  if (!isDOM && !isIE4 && !isNS4) return;
  
  for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) {
    // Variable for holding HTML for items and positions of next item.
      var str = '', itemX = 0, itemY = 0, menuHeight=0;

    // Remember, items start from 1 in the array (0 is menu object itself, above).
    // Also use properties of each item nested in the other with() for construction.
    for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) {
      var itemID = i+'menu' + currMenu + 'item' + currItem;
      

      // The width and height of the menu item - dependent on orientation!
      var w = (isVert ? width : length);
      var h = (isVert ? length : width);
      if (isVert) menuHeight+= h * 2/3;

      // do some checking to make sure the menu fits on the screen (BUGGY)
      //if ((itemY+h) > self.height) itemY = itemY-h;
      //itemX = self.width;


      // Create a div or layer text string with appropriate styles/properties.
      // Thanks to Paul Maden (www.paulmaden.com) for helping debug this in IE4, apparently
      // the width must be a miniumum of 3 for it to work in that browser.
      if (isDOM || isIE4)
      	{
        str += '<div id="' + itemID + '" style="position: absolute; left: ' + itemX + '; top: ' + itemY + '; width: ' + w + '; height: ' + h + '; visibility: inherit;';
        if (backCol) str += 'background: ' + backCol + '; ';
        str += '" ';
	}
	if (isNS4)
	{

        str += '<layer id="' + itemID + '" left="' + itemX + '" top="' + itemY + '" width="' +  w + '" height="' + h + '" visibility="inherit" ';
        if (backCol) str += 'bgcolor="' + backCol + '" ';
	}
	if (borderClass) str += 'class="' + borderClass + '" ';

      // Add mouseover handlers and finish div/layer.


      if (href=='')
      {
         str += 'onMouseOver="popOver(' +i+',' + currMenu + ',' + currItem + ');hideDropDowns('+i+')" onMouseOut="popOut('+i+',' + currMenu + ',' + currItem + ')">';
      }
      else
      {
      	if (frame)
	      str += 'onClick="window.open(\''+href+'\')" onMouseOver="popOver('+i+','+currMenu+','+currItem + ');hideDropDowns('+i+')" onMouseOut="popOut('+i+',' + currMenu + ',' + currItem + ')">';
	    else
	      str += 'onClick="location.href=\'' + href + '\'" onMouseOver="hideDropDowns('+i+');popOver(' +i+',' + currMenu + ',' + currItem + ')" onMouseOut="popOut('+i+',' + currMenu + ',' + currItem + ')">';
	    
      }

      // Add contents of item (default: table with link inside).
      // In IE/NS6+, add padding if there's a border to emulate NS4's layer padding.
      // If a target frame is specified, also add that to the <a> tag.

      str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td align="left" valign="middle" height="' + (h - 7) + '">';
    
      //if (isNS4) 
      //	  //str+='<link class="' + textClass + '">'+text+'</link>';// onClick="location.href=\''+href+'\'">' + text + '</link>';
      //	  str+='<a class="'+textClass+'" href="'+href+'">'+text+'</a>';
      //else
      if (isDOM || !isNS4) str+='<span class="'+textClass+'">'+text+'</span>';
      //else if(frame=='') str+='<a href="'+href+'">'+text+'</a>';
      else str+=text;
      //str+='<font class="'+textClass+'">'+text+'</font>';
      //style="cursor: pointer; cursor:hand"
      //}
      //else
      //{
      //str+= '<a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a>';
      
      str+='</td>';

      if (target > 0) {

        // Set target's parents to this menu item.
        menu[target][0].parentMenu = currMenu;
        menu[target][0].parentItem = currItem;

        // Add a popout indicator.
        if (popInd) str += '<td class="' + textClass + '" align="right" valign="middle">' + popInd + '</td>';
      }
      str += '</tr></table>' + (isNS4 ? '</layer>' : '</div>');
      if (isVert){
	  itemY += length + spacing;
	  menuHeight+=spacing;
      }
      else itemX += length + spacing;

    }
    
    if (isDOM) {
      var newDiv = document.createElement('div');
      document.getElementsByTagName('body').item(0).appendChild(newDiv);
      newDiv.innerHTML = str;
      ref = newDiv.style;
      ref.position = 'absolute';
      ref.visibility = 'hidden';
      if (isVert) ref.height = menuHeight;
    }

    // Insert a div tag to the end of the BODY with menu HTML in place for IE4.
    if (isIE4) {
	strHTML = '<div id=i+"menu' + currMenu + 'div" ' + 'style="position: absolute; visibility: hidden;';
	if (isVert) strHTML += ' height: '+menuHeight+';';
	strHTML+='>' + str + '</div>';
	document.body.insertAdjacentHTML('beforeEnd', strHTML);
	ref = getSty(i+'menu' + currMenu + 'div');
    }

    // In NS4, create a reference to a new layer and write the items to it.
    if (isNS4) {
	//alert(str);
      ref = new Layer(0);
      ref.document.write(str);
      ref.document.close();
    }

   for (currItem = 1; currItem < menu[currMenu].length; currItem++) {
      itemName = i+'menu' + currMenu + 'item' + currItem;
      if (isDOM || isIE4) menu[currMenu][currItem].ref = getSty(itemName);
      if (isNS4) {
	  menu[currMenu][currItem].ref = ref.document.layers[currItem-1];
	  //alert(getSty(itemName));
      }
    }

  }
  //alert(str)
  with(menu[0][0]) {
    ref.left = x;
    ref.top = y;
    ref.visibility = 'visible';
  }
}


var popOldWidth = window.innerWidth;
nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()');

// This is a quick snippet that captures all clicks on the document and hides the menus
// every time you click. Use if you want.

if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = clickHandle;

function clickHandle(evt)
{
 if (isNS4) document.routeEvent(evt);
 hideAll();
}

function buildMenus() {
 for (var i = 0; i<numOfMenus; i++) {
      writeMenus(i);
      //alert(numOfMenus);
      //alert("Writing menu "+i);
  }
  //writeMenus(menuArray[0]);
}

function hideDropDowns(i) 
{
  
  if(i>0) 
    return;
    if (document.all)
     {
     if (document.all('SearchDrop1') != null)
	    document.all('SearchDrop1').style.visibility = "hidden";
     if (document.all('SearchDrop2') != null)
	    document.all('SearchDrop2').style.visibility = "hidden";
     if (document.all('FAQDropDown1') != null)
	    document.all('FAQDropDown1').style.visibility = "hidden";
	 if (document.all('ProductList') != null)
	    document.all('ProductList').style.visibility = "hidden";
     }
     else if(isNS4) {
	//if(document.ids.FAQDropDown1 != undefined){
	//	document.ids.FAQDropDown1.display = "none";
	//	document.layers['FAQDropDown1'].visibility = "hide";
	//}
     }
}

function showDropDowns() { 
  if(document.all) {
	if (document.all('SearchDrop1') != null)
		document.all('SearchDrop1').style.visibility = "visible";
	if (document.all('SearchDrop2')!= null)
		document.all('SearchDrop2').style.visibility = "visible";
	if (document.all('FAQDropDown1') != null)
		document.all('FAQDropDown1').style.visibility = "visible";
	if (document.all('ProductList') != null)
		document.all('ProductList').style.visibility = "visible";
  }
  
  else if(isNS4) {
	//if(document.ids.FAQDropDown1 != undefined){
	//	document.layers['FAQDropDown1'].visibility = "show";
	//}
  }
}

////////////////////////////////////////////////////////////
//
//Run Sample Functions
//
////////////////////////////////////////////////////////////

var vroot = "/officewriter/dotnet/wordwriter/"

function showExample(sample,caption) {
	document.write ("<div class='indent'>");
	document.write ("<h3>" + caption + "</h3>");
	document.write ("[<a target='_blank' href='" + vroot + 'Samples/' + sample + "'>Run Sample</a>] | ");
	document.write ("[<a target='_blank' href='" + vroot + 'util/viewsrc.asp?path=' + vroot + 'Samples/' + sample + "'>View Source</a>] ");
	document.write ("</div>");
}

function showFormBasedExampleDotnet(form,resp,caption) {
	document.write ("<div class='indent'>");
	document.write ("<h3>" + caption + "</h3>");
	document.write ("[<a target='_blank' href='" + vroot + 'Samples/' + form + "'>Run Sample</a>] | ");
	document.write ("[<a target='_blank' href='" + vroot + 'util/viewsrc.asp?path=' + vroot + 'Samples/' + form + "'>View Source: Form</a>] ");
	document.write ("[<a target='_blank' href='" + vroot + 'util/viewsrc.asp?path=' + vroot + 'Samples/' + resp + "'>View Source: Code-behind</a>] ");
	document.write ("</div>");
}

function showTemplate(template) {
	document.write ("<div class='indent'>");
	document.write ("[<a target='_blank' href='" + vroot + 'Samples/' + template + "'>View Template</a>] ");
	document.write ("</div>");
}
	
////////////////////////////////////////////////////////////
//
// MENU CONTENT
//
////////////////////////////////////////////////////////////

var menu2 = new Array();

menu2[0] =  new Array();
menu2[0][0] = new Menu(true,'<img src="include/bluearrow.gif">',10,230,180,'#99ADC2','#5E7893','','itemText2');
menu2[0][1] = new Item('<SPAN class="MENU1">&nbsp;Welcome to<br>&nbsp;WordWriter for Windows</SPAN>','default.aspx.html','',40,2,0);
menu2[0][2] = new Item('<SPAN class="MENU1">&nbsp;Introduction</SPAN>','intro/default.aspx.html','',25,2,1);
menu2[0][3] = new Item('<SPAN class="MENU1">&nbsp;Quick Start</SPAN>','quickstart/default.aspx.html','',25,2,2);
menu2[0][4] = new Item('<SPAN class="MENU1">&nbsp;WordTemplate in Depth</SPAN>','features/template.aspx.html','',25,2,3);
menu2[0][5] = new Item('<SPAN class="MENU1">&nbsp;WordApplication in Depth</SPAN>','features/application.aspx.html','',25,2,4);
menu2[0][6] = new Item('<SPAN class="MENU1">&nbsp;WordWriter in ASP</SPAN>','features/asptoc.aspx.html','',25,2,9);
menu2[0][7] = new Item('<SPAN class="MENU1">&nbsp;Samples</SPAN>','http://windemo.softartisans.com/OfficeWriter/3.8.1','new',25,2,0);
menu2[0][8] = new Item('<SPAN class="MENU1">&nbsp;Programmer Reference</SPAN>','reference/default.aspx.html','',25,2,5);
menu2[0][9] = new Item('<SPAN class="MENU1">&nbsp;Installation</SPAN>','install/default.aspx.html','',25,2,6);
menu2[0][10] = new Item('<SPAN class="MENU1">&nbsp;External Links</SPAN>','','',25,2,7);
menu2[0][11] = new Item('<SPAN class="MENU1">&nbsp;ExcelWriter Documentation</SPAN>',"./../ExcelWriter/default.aspx.html",'',25,2,0);
menu2[0][12] = new Item('<SPAN class="MENU1">&nbsp;Reporting Services<br>&nbsp;Integration</SPAN>','','',40,2,10);

menu2[1] =  new Array();
menu2[1][0] = new Menu(true,'<img src="include/bluearrow.gif">',175,0,200,'#99ADC2','#dddddd','itemBorder','itemText2');
menu2[1][1] = new Item('<SPAN class="MENU2">&nbsp;What is WordWriter?</SPAN>','intro/whatiswordwriter.aspx.html','',20,0,0);
menu2[1][2] = new Item('<SPAN class="MENU2">&nbsp;Features & Benefits</SPAN>','intro/features.aspx.html','',20,0,0);
menu2[1][3] = new Item('<SPAN class="MENU2">&nbsp;WordWriter Editions</SPAN>','intro/versions.aspx.html','',20,0,0);
menu2[1][4] = new Item('<SPAN class="MENU2">&nbsp;New in Version 3.8.1</SPAN>','intro/new.aspx.html','',20,0,0);
menu2[1][5] = new Item('<SPAN class="MENU2">&nbsp;Requirements</SPAN>','intro/requirements.aspx.html','',20,0,0);
menu2[1][6] = new Item('<SPAN class="MENU2">&nbsp;Frequently Asked Questions</SPAN>','intro/faq.aspx.html','',20,0,0);

menu2[2] =  new Array();
menu2[2][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',175,0,280,'#99ADC2','#dddddd','itemBorder','itemText2');
menu2[2][1] = new Item('<SPAN class="MENU2">&nbsp;Create a Document with WordTemplate</SPAN>','quickstart/WordTemplate.aspx.html','',20,0,0);
menu2[2][2] = new Item('<SPAN class="MENU2">&nbsp;Create a Document with WordApplication</SPAN>','quickstart/WordApp.aspx.html','',20,0,0);

menu2[3] =  new Array();
menu2[3][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',175,0,220,'#99ADC2','#dddddd','itemBorder','itemText2');
menu2[3][1] = new Item('<SPAN class="MENU2">&nbsp;Creating a Template</SPAN>','features/templates.aspx.html','',20,0,0);
menu2[3][2] = new Item('<SPAN class="MENU2">&nbsp;Merge Field Syntax</SPAN>','features/merge_fields.aspx.html','',20,0,0);
menu2[3][3] = new Item('<SPAN class="MENU2">&nbsp;Using an Array as a Data Source</SPAN>','features/array_datasource.aspx.html','',20,0,0);
menu2[3][4] = new Item('<SPAN class="MENU2">&nbsp;Using a Database as a Data Source</SPAN>','features/database_datasource.aspx.html','',20,0,0);
menu2[3][5] = new Item('<SPAN class="MENU2">&nbsp;Importing from Multiple<br>&nbsp;Data Sources</SPAN>','features/multiple_ds.aspx.html','',40,0,0);
menu2[3][6] = new Item('<SPAN class="MENU2">&nbsp;Importing Multiple Rows</SPAN>','features/multiple_rows.aspx.html','',20,0,0);
menu2[3][7] = new Item('<SPAN class="MENU2">&nbsp;Output Options</SPAN>','features/output_wordtemplate.aspx.html','',20,0,0);
menu2[3][8] = new Item('<SPAN class="MENU2">&nbsp;Inserting an Image</SPAN>','features/insert_image.aspx.html','',20,0,0);
menu2[3][9] = new Item('<SPAN class="MENU2">&nbsp;Formatting Merge Fields</SPAN>','features/format_fields.aspx.html','',20,0,0);
menu2[3][10] = new Item('<SPAN class="MENU2">&nbsp;Using WordWriter in ASP</SPAN>','features/aspsupport.aspx.html','',20,0,0);

menu2[4] =  new Array();
menu2[4][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',175,0,220,'#99ADC2','#dddddd','itemBorder','itemText2');
menu2[4][1] = new Item('<SPAN class="MENU2">&nbsp;Creating a Paragraph</SPAN>','features/paragraph.aspx.html','',20,0,0);
menu2[4][2] = new Item('<SPAN class="MENU2">&nbsp;Formatting Text</SPAN>','features/format.aspx.html','',20,0,0);
menu2[4][3] = new Item('<SPAN class="MENU2">&nbsp;Lists</SPAN>','features/list.aspx.html','',20,0,0);
menu2[4][4] = new Item('<SPAN class="MENU2">&nbsp;Tables</SPAN>','features/table.aspx.html','',20,0,0);
menu2[4][5] = new Item('<SPAN class="MENU2">&nbsp;Sections</SPAN>','features/section.aspx.html','',20,0,0);
menu2[4][6] = new Item('<SPAN class="MENU2">&nbsp;Images</SPAN>','features/image.aspx.html','',20,0,0);
menu2[4][7] = new Item('<SPAN class="MENU2">&nbsp;Watermarks</SPAN>','features/watermark.aspx.html','',20,0,0);
menu2[4][8] = new Item('<SPAN class="MENU2">&nbsp;Importing Data</SPAN>','features/import_data.aspx.html','',20,0,0);
menu2[4][9] = new Item('<SPAN class="MENU2">&nbsp;Output Options</SPAN>','features/output_wordapp.aspx.html','',20,0,0);

menu2[9] =  new Array();
menu2[9][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',175,0,200,'#99ADC2','#dddddd','itemBorder','itemText2');
menu2[9][1] = new Item('<SPAN class="MENU2">&nbsp;How to Use WordWriter in ASP</SPAN>','features/aspsupport.aspx.html','',20,0,0);
menu2[9][2] = new Item('<SPAN class="MENU2">&nbsp;ASP Reference</SPAN>','reference/reference_asp.aspx.html','',20,0,0);

menu2[5] =  new Array();
menu2[5][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',175,0,150,'#99ADC2','#dddddd','itemBorder','itemText2');
menu2[5][1] = new Item('<SPAN class="MENU2">&nbsp;WordTemplate</SPAN>','reference/wordtemplate.aspx.html','',23,0,8);
	menu2[8] =  new Array();
	menu2[8][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',150,0,180,'#99ADC2','#dddddd','itemBorder','itemText2');
	menu2[8][1] = new Item('<SPAN class="MENU2">&nbsp;BookmarkFieldMarkers Property</SPAN>','reference/bookmarkfieldmarkers.aspx.html','',20,0,0);
	menu2[8][2] = new Item('<SPAN class="MENU2">&nbsp;Bookmarks Property</SPAN>','reference/bookmarks.aspx.html','',20,0,0);
	menu2[8][3] = new Item('<SPAN class="MENU2">&nbsp;ContentType Property</SPAN>','reference/contenttype.aspx.html','',20,0,0);
	menu2[8][4] = new Item('<SPAN class="MENU2">&nbsp;CultureInfo Property</SPAN>','reference/cultureinfo.aspx.html','',20,0,0);
	menu2[8][5] = new Item('<SPAN class="MENU2">&nbsp;DataSourceSeparator Property</SPAN>','reference/DataSourceSeparator.aspx.html','',20,0,0);
	menu2[8][6] = new Item('<SPAN class="MENU2">&nbsp;DocumentsCreatedToday Property</SPAN>','reference/documentscreatedtoday.aspx.html','',20,0,0);
	menu2[8][7] = new Item('<SPAN class="MENU2">&nbsp;FieldMarkers Property</SPAN>','reference/fieldmarkers.aspx.html','',20,0,0);
	menu2[8][8] = new Item('<SPAN class="MENU2">&nbsp;LicenseKey Property</SPAN>','reference/licensekey.aspx.html','',20,0,0);
	menu2[8][9] = new Item('<SPAN class="MENU2">&nbsp;Open Method</SPAN>','reference/open.aspx.html','',20,0,0);
	menu2[8][10] = new Item('<SPAN class="MENU2">&nbsp;Process Method</SPAN>','reference/process.aspx.html','',20,0,0);
	menu2[8][11] = new Item('<SPAN class="MENU2">&nbsp;Save Method</SPAN>','reference/save.aspx.html','',20,0,0);
	menu2[8][12] = new Item('<SPAN class="MENU2">&nbsp;SetDataSource Method</SPAN>','reference/setdatasource.aspx.html','',20,0,0);
	menu2[8][13] = new Item('<SPAN class="MENU2">&nbsp;SetRepeatBlock Method</SPAN>','reference/setrepeatblock.aspx.html','',20,0,0);
	menu2[8][14] = new Item('<SPAN class="MENU2">&nbsp;Version Property</SPAN>','reference/version.aspx.html','',20,0,0);
menu2[5][2] = new Item('<SPAN class="MENU2">&nbsp;WordApplication</SPAN>','reference/objectmodel.aspx.html','',20,0,0);

menu2[6] =  new Array();
menu2[6][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',175,0,250,'#99ADC2','#dddddd','itemBorder','itemText2');
menu2[6][1] = new Item('<SPAN class="MENU2">&nbsp;Installing WordWriter</SPAN>','install/install.aspx.html','',20,0,0);
menu2[6][2] = new Item('<SPAN class="MENU2">&nbsp;ASP Installation</SPAN>','install/install_asp.aspx.html','',20,0,0);
menu2[6][3] = new Item('<SPAN class="MENU2">&nbsp;Removing WordWriter</SPAN>','install/remove.aspx.html','',20,0,0);
menu2[6][4] = new Item('<SPAN class="MENU2">&nbsp;Security Considerations</SPAN>','install/security.aspx.html','',20,0,0);

menu2[7] =  new Array();
menu2[7][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',175,0,220,'#99ADC2','#dddddd','itemBorder','');
menu2[7][1] = new Item('<SPAN class="MENU2"><img src="include/weblink.gif">&nbsp;OfficeWriter Online</SPAN>','http://officewriter.softartisans.com/','new',20,0,0);
menu2[7][2] = new Item('<SPAN class="MENU2"><img src="include/weblink.gif">&nbsp;SoftArtisans Forums</SPAN>','http://support.softartisans.com/Forums/ShowForum.aspx.html?ForumID=12','new',20,0,0);
menu2[7][3] = new Item('<SPAN class="MENU2"><img src="include/weblink.gif">&nbsp;SoftArtisans Technical Services</SPAN>','http://support.softartisans.com/','new',20,0,0);
menu2[7][4] = new Item('<SPAN class="MENU2"><img src="include/weblink.gif">&nbsp;SoftArtisans</SPAN>','http://www.softartisans.com/','new',20,0,0);
menu2[7][5] = new Item('<SPAN class="MENU2"><img src="include/mail.bmp">&nbsp;General Questions</SPAN>','mailto:info@softartisans.com','',20,0,0);
menu2[7][6] = new Item('<SPAN class="MENU2">Legal Information</SPAN>','legal_information.aspx.html','',20,0,0);

menu2[10] =  new Array();
menu2[10][0] = new Menu(true,'<IMG SRC="include/bluearrow.gif">',175,0,250,'#99ADC2','#dddddd','itemBorder','itemText2');
menu2[10][1] = new Item('<SPAN class="MENU2">&nbsp;Reporting Services 2005</SPAN>',"./../ReportingServices2005/default.aspx.html",'',20,0,0);
menu2[10][2] = new Item('<SPAN class="MENU2">&nbsp;Reporting Services 2000</SPAN>',"./../ReportingServices2000/default.aspx.html",'',20,0,0);

registerMenu(menu2);
