

/*
Notes:

Dropship main contents menu v4.01



*/

function contentSpacer()
{
// create space for use between menu sections
	
	document.write("<tr><td height='4'></td></tr>");
}

function bigSpacer()
{
// create large space for use between menu sections
	
	document.write("<tr><td height='10'></td></tr>");
}

//function sectionlink(text, href, str_dir, target, title, cSt){
function sectionlink(text, href, str_dir, target, title, cSt){
	document.write("<tr><td align='left' height='15'><a title='"+title+"' href='"+href+"' class='leftitem' target='"+target+"' onClick='cSt("+cSt+");'>"+text+"</a></td></tr>");
	document.write("<tr><td height='4'></td></tr>");
}

function subpagelink(text){
	document.write("<tr border='0'><td class='subhead'><b>"+text+"</b></td></tr>");
	document.write("<tr><td height='4'></td></tr>");
}

function externallink(text){
	document.write("<tr><td class='subhead'><b>"+text+"</b></td></tr>");
	document.write("<tr><td height='4'></td></tr>");
}


function topmenuitem(href, text, title, target, cSt){
	document.write("<tr id='cat");
	document.write(cSt);
	document.write("'><td align='left' height='15'><a CLASS='leftitem' href='"+href+"' target='"+target+"' class='lCat' onClick='cSt("+cSt+");' onMouseOver='mFX("+cSt+");' onMouseOut='mFXOut("+cSt+");' title='"+title+"'>"+text+"</a></td></tr>");
	
}

function botmenuitem(href, text, title, target, cSt){
	document.write("<tr id='cat");
	document.write(cSt);
	document.write("'><td align='left' height='15'><a href='"+href+"' target='"+target+"' class='leftitem' title='"+title+"'>"+text+"</a></td></tr>");
	
}

function externalmenuitem(href, text, title, target, cSt){
	document.write("<tr id='cat");
	document.write(cSt);
	document.write("'><td><a CLASS='leftitem' href='"+href+"' target='"+target+"'  title='"+title+"'>"+text+"</a></td></tr>");
	
}

// Main contents menu definition
function generatemenu(val_tree){

// val_tree is the number of levels below the homepage the calling file is 

	var str_dir=""
	if (val_tree==1) 
  		{str_dir="../"}
	else if(val_tree==2)
  		{str_dir="../../"}
	else if(val_tree==3) 
   		{str_dir="../../../"}
	else if(val_tree==4) 
   		{str_dir="../../../../"} 
  	else
  		{str_dir=""}

document.write("<table class='menu' WIDTH='100%'>");
document.write("<tr><td valign='top'><table border='0' cellspacing='0'><tr>");
document.write("<td align='left' height='18'></td></tr>");
    

sectionlink("Dropship home", str_dir+"default.asp", str_dir, "_self", "return to Dropship homepage","0");
contentSpacer();

sectionlink("About the author", str_dir+"about.asp", str_dir, "_self", "Author biography", 1);
contentSpacer();
sectionlink("Latest updates", str_dir+"whatsnew.asp", str_dir, "_self", "Latest updates & additions to the site", 2);
contentSpacer();
//sectionlink("Carl's Workbench Blog", str_dir+"workbench.asp", str_dir, "_self", "General rambling ruminations from the workshop", 3);
//contentSpacer();
sectionlink("Legal statement", str_dir+"legals.asp", str_dir, "_self", "Copyright and intellectual property details", 4);

bigSpacer();

subpagelink("Galleries");
sectionlink("Warhammer 40,000", str_dir+"40K/40kmain.asp", str_dir, "_self", "Warhammer 40,000 Galleries", 5);
contentSpacer();
sectionlink("Epic Armageddon", str_dir+"epic/epicmain.asp", str_dir, "_self", "Epic Armageddon Galleries", 6);
contentSpacer();
sectionlink("Starship Troopers", str_dir+"sst/sstmain.asp", str_dir, "_self", "Starship Troopers", 7);
contentSpacer();
sectionlink("Babylon 5", str_dir+"acta/actamain.asp", str_dir, "_self", "A Call to Arms", 8);
//gapSubsection();
//botmenuitem("about/gpm/gpm_wrk.htm", "group property management", "about group property management", "_self", 9);
//gapSubsection();
//botmenuitem("about/fin/fin_wrk.htm", "finance", "about finance", "_self", 10);
//gapSubsection();
//botmenuitem("about/dro/dro_wrk.htm", "divisional risk office", "about it & operations divisional risk office", "_self", 10);
bigSpacer();


externallink("Quick links");
externalmenuitem("http://uk.games-workshop.com/", "Games Workshop", "Visit the main Games Workshop site", "_blank", 11);
externalmenuitem("http://www.specialist-games.com/", "Specialist Games", "visit the Specialist Games site", "_blank", 12);
externalmenuitem("http://www.forgeworld.co.uk/", "Forge World", "visit the Forge World site", "_blank", 13);
externalmenuitem("http://www.blacklibrary.com/", "Black Library", "visit the Black Library site", "_blank", 13);
externalmenuitem("http://www.mongoosepublishing.com", "Mongoose Publishing", "visit the Mongoose site", "_blank", 13);
externalmenuitem("http://drop-pod.blogspot.com", "Drop-Pod Blog", "Carl's workbench blog", "_blank", 14);

//end of editable contents menu


document.write("</table></tr></table>");
}


