<!--
function copyright(newdiv){ 
var tmp=new Date();thisyr=tmp.getFullYear();
copyr="2007";if(thisyr > copyr)copyr=copyr+'-'+thisyr;
//newdiv to allow for over-riding the stylesheet definitons
if (newdiv) document.write(newdiv);
if (!newdiv) document.write('<div class="copyright">');
document.write('&copy;Copyright Mistress Ella Strictland '+copyr+'</div>');
}
//
var Menu='';
//
// Design the menu: Spacing, images, your own raw-HTML, and the clickable menu entries themselves
// Key words:  SPACE:(normally in pixels) IMAGE:file/URL,width,height HTML:your own html  ENTRY:clickable file/URL
//
////////////////////
//EXAMPLE: ADDING A NEW GALLERY:
//   Adding a new gallery involves defining the Menu entry below and
//   also defining the gallery itself in file gallerydata.js
// Below, you give the clickable text to appear on the displayed menu 
// followed by a call on the file galmomegen.htm will construct the gallery's home page.
// the parameter  "?Name" is a short unique identifier that matches the table of
// image data that use must build in gallerydata.js
// For example- you want a new gallery called "New Pictures"
//  - Put an entry here wherever you want the clickable text to appear on the main menu
//     Menu+="ENTRY:My New Pictures,galhomegen.htm?Newpictures'
//  - You may now go to look at galhomegen.htm to see the example table of images for 
//     this example of a new gallery creation.   
/////////////////////
// The following variable is the build of the left-hand main menu that will be built by a call of menugen()
Menu+='SPACE:2px'
Menu+='IMAGE:tinylick.gif,194,30,LickMyBoot.com'
Menu+='SPACE:4px'
Menu+='ENTRY:Home,main.htm'
Menu+='SPACE:14px'
Menu+='IMAGE:aboutme.gif,194,42,About Mistress Ella'
Menu+='SPACE:6px'
Menu+='ENTRY:Background,background.htm'
Menu+='ENTRY:Femdom Philosophy,philosophy.htm'
Menu+='ENTRY:Personal Gallery,galhomegen.htm?Personal'
Menu+='ENTRY:Lick My Boot Gallery,galhomegen.htm?Lick'
Menu+='SPACE:18px'
Menu+='IMAGE:servingme.gif,194,42,Serving Mistress Ella'
Menu+='SPACE:6px'
Menu+='ENTRY:At My Feet,sessions.htm'
Menu+='ENTRY:My Iron Gate Dungeon,galhomegen.htm?Dungeon'
Menu+='ENTRY:you <i>Will</i> Remember,remember.htm'
Menu+='ENTRY:Gifts,gifts.htm'
Menu+='ENTRY:Contact,contact.htm'
//
// Create the working set of data one time for all the menugen function calls
//
// now rework the array to create some unique (hopefully) separators by replacing the id strings with combos that are unique and  not likely to appear in the actual data.
var tmp=Menu.replace(/ENTRY:/g,'^ITEM^ENTRY^^^');
tmp=tmp.replace(/IMAGE:/g,'^ITEM^IMAGE^^^');
tmp=tmp.replace(/HTML:/g,'^ITEM^HTML^^^');
tmp=tmp.replace(/SPACE:/g,'^ITEM^SPACE^^^');
//
var Mitems=tmp.split('^ITEM^'); //now break the individual parameters out for each menu item
var nMitems=Mitems.length;
var allMitems = new Array();
var allparams = new Array();
for (i=1;i<nMitems;i++){
allMitems[i]=Mitems[i].split('^^^'); // separate the ITEM from its parameters 
allparams[i]=allMitems[i][1].split(','); // separate any parameters from each other
}
// we now have an array for each menu entry that consists of its name and parameters
//
// Set the fixed portions which will be used during the menugen() call to build each Menu item HTML using the parameters array
var notmea='<A HREF="'
var notmeb='"> ';
var notmec='</a>';
var mea='<span class="me">';
var meb='';
var mec='</span>';
var page='<div id="Menu">';
//
function menugen(menume,dir,options){
var options="review" //// force the review menu item temporarily
if(dir)notmea+=dir;
var submenu=null;
if(!menume)menume=document.title;
if(menume.indexOf(':')>=0){
var s=menume.indexOf(':')
submenu=menume.slice(s+1)
menume=menume.slice(0,s)
}
if(options){
 if(options == 'review'){
 optionfile = 'review.htm';
 optionmenu = 'For ES Review';
 } 
}
var nwrites=0;
var space='0';
//
for (i=1;i<nMitems;i++){
//
 if(allMitems[i][0]=='ENTRY'){
// it's an ENTRY
page+='<div style="padding-top:'+space+'">';
menuurl=allparams[i][1];
menuname=allparams[i][0];
if(menuname == menume){
   if(!submenu){page+=mea+menuname+mec}
   else{
page+=notmea+menuurl+notmeb+menuname+notmec+'<br>'+mea+submenu+mec
   }
  }
else{page+=notmea+menuurl+notmeb+menuname+notmec};
page+='</div>';
space='0';
}
//
 if(allMitems[i][0]=='IMAGE'){
// it's an IMAGE:
page+='<div style="padding-top:'+space+'"><img alt="'+allparams[i][3]+'" title="'+allparams[i][3]+'" src="'+allparams[i][0]+'" width="'+allparams[i][1]+'" height="'+allparams[i][2]+'" />';
page+='</div>';
space='0';
 }
//
 if(allMitems[i][0]=='HTML'){
// it's user HTML:
page+=allparams[i][0];
space='0';
 }
//Check for SPACE command
 if(allMitems[i][0]=='SPACE'){
space=allparams[i][0];
 }
}
page+='</div>';
//alert(page)
document.write(page);
}
//-->

