/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.41 24 December 2001	          *
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
***********************************************************************************/

	var NoOffFirstLineMenus=7;			// Number of first level items
	var LowBgColor='#646946';			// Background color when mouse is not over
	var LowSubBgColor='#CCCC99';			// Background color when mouse is not over on subs
	var HighBgColor='#858B5E';			// Background color when mouse is over
	var HighSubBgColor='#858B5E';			// Background color when mouse is over on subs
	var FontLowColor='#FFFFFF';			// Font color when mouse is not over
	var FontSubLowColor='#000000';			// Font color subs when mouse is not over
	var FontHighColor='white';			// Font color when mouse is over
	var FontSubHighColor='white';			// Font color subs when mouse is over
	var BorderColor='#3E2529';			// Border color
	var BorderSubColor='#3E2529';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=1;				// Border between elements 1 or 0
	var FontFamily="arial,verdana"	// Font family menu items
	var FontSize=8;					// Font size menu items
	var FontBold=1;					// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';			// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=0;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=0;			// vertical overlap child/ parent
	//var StartTop=108;				// Menu offset x coordinate
	var StartTop=180;
	var StartLeft=11;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=4;				// Left padding
	var TopPaddng=3;				// Top padding
	var FirstLineHorizontal=0;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;			// delay before menu folds in
	var TakeOverBgColor=1;				// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// span id for relative positioning
	var HideTop=0;					// Hide first level when loading new document 1 or 0
	var MenuWrap=1;					// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;				// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;				// menu tree checking on or off 1 or 0
	var ShowArrow=0;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=['tri.gif',5,10,'tridown.gif',10,5,'trileft.gif',5,10];	// Arrow source, width and height

function about() {
//var location = "./includes/about.php";
//window.open(location, 'foo', 'width=400,height=250,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
window.showModalDialog("./includes/about.php", 'foo', "dialogWidth=400px; dialogHeight=250px; resizable: no; help: no; status: no; scroll: no;");
}

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

// Extract Query Strings Generated by PHP
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
  //alert('Query Variable ' + variable + ' not found');
}


// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"

// Get the Sort Order Query Strings

 var LG = getQueryVariable("lg");
 var AT = getQueryVariable("aid");
 var PN = getQueryVariable("pid");
 
 if(AT == undefined) {
 	var AT = "00";
 }
 if(LG == undefined) {
 	var LG = "en";
 }
 
 var DEF = '?lg=' + LG + '&aid=' + AT; 
 //var DEF = '?lg=' + LG + '&aid=' + AT + '&pid=' + PN;
 var HomeString = 'index.php?lg=' + LG + '&aid=' + AT; 

 if(PN == 1) {
 	var thisPage = 'main.php';
 }
 if(PN == 2) {
 	var thisPage = 'portfolio.php';
 }
  if(PN == "2a") {
 	var thisPage = 'portfolio2.php';
 }
 if(PN == "2b") {
 	var thisPage = 'spotlight050104_01.php';
}  
 if(PN == "3") {
 	var thisPage = 'about.php';
 }  
if(PN == "4") {
 	var thisPage = 'swtraining.php';
 }
if(PN == "5a") {
 	var thisPage = 'webdesign.php';
}
if(PN == "5b") {
 	var thisPage = 'programming.php';
}  
if(PN == "5c") {
 	var thisPage = 'maps.php';
} 
if(PN == "5d") {
 	var thisPage = 'mtrans.php';
}
if(PN == "6") {
 	var thisPage = 'products.php';
}
if(PN == "7a") {
 	var thisPage = 'privacy.php';
} 
if(PN == "DMS") {
 	var thisPage = 'DMS4.php';
}  
if(PN == "GTS") {
 	var thisPage = 'gt_support.php';
}  

Menu1=new Array("Home","index.php"+DEF+'&pid=1',"",0,20,138);
 
Menu2=new Array("About","about.php"+DEF+'&pid=3',"",0,20,138);
	
Menu3=new Array("Services","","",4,20,138);
	Menu3_1=new Array("Web Design & Hosting","webdesign.php"+DEF+'&pid=5a',"",0,20,138);
	Menu3_2=new Array("Custom Programming","programming.php"+DEF+'&pid=5b',"",0,20,138);
	Menu3_3=new Array("Map Graphics","maps.php"+DEF+'&pid=5c',"",0,20,138);
	Menu3_4=new Array("On Location Assistance","ola.php"+DEF+'&pid=5c',"",0,20,138);
							
Menu4=new Array("Solutions","solutions.php"+DEF+'&pid=6',"",0,20,138);

Menu5=new Array("Portfolio","portfolio.php"+DEF+'&pid=2',"",0,20,138);
//	Menu5_1=new Array("Extended Listing","portfolio2.php"+DEF+'&pid=2a',"",0,20,138);
//	Menu5_2=new Array("Spotlight - May 2004","spotlight050104_01.php"+DEF+'&pid=2b',"",0,20,138);
//	Menu5_3=new Array("Spotlight - October 2004","spotlight100104_01.php"+DEF+'&pid=2b',"",0,20,138);
	
//Menu6=new Array("Support","","",2,20,138);
//	Menu6_1=new Array("Tech Support","gt_support.php"+DEF+'&pid=GTS&contact=tech',"",0,20,138);
//	Menu6_2=new Array("Website & Email Support","http://www.coppocktech.net","",0,20,138);
//	Menu6_3=new Array("Knowledge Center","","",0,20,138);

//Menu6=new Array("Contact","contact_other.php"+DEF,"",2,20,138);
//	Menu6_1=new Array("General","contact_gen.php","",0,20,138);
//	Menu6_2=new Array("Request for Quote - RFQ","RFQ1.php","",0,20,138);

Menu6=new Array("Contact","contact_gen.php"+DEF,"",0,20,138);	

Menu7=new Array("Other Stuff","","",2,20,138);
Menu7_1=new Array("FAQ's","faqs.php","",0,20,100);
Menu7_2=new Array("Downloads","downloads.php"+DEF,"",4,20,100);
	Menu7_2_1=new Array("Perl Scripts","downloads.php"+DEF,"",0,20,150);
	Menu7_2_2=new Array("Desktops/Wallpapers","downloads2.php"+DEF,"",0,20,100);
	Menu7_2_3=new Array("Software & Documents","downloads3.php"+DEF,"",0,20,100);
	Menu7_2_4=new Array("Galactic Arena Archives","downloads4.php"+DEF,"",0,20,100);

//Menu8=new Array("Miscellaneous","","",2,20,138);
//	Menu8_1=new Array("News","career_wbs.php","",0,20,100);
//	Menu8_1=new Array("Privacy Policy","privacy.php"+DEF+'&pid=7a',"",0,20,100);
//	Menu8_2=new Array("Site Map","site_map.php"+DEF,"",0,20,100);
	
//Menu9=new Array("En Espaņol","index.php?lg=sp&aid=00","",0,20,138);