<!--

var timeout = 180;
var childLayerWidth = 110;
var vertical_position = 82;
var horisontal_position = 43;
var childCellHeight = 20;
var leftNavCellHeight = 20;
var childBackGroundColor = '#B2B2B2';
var childBorderColor = '#9F9F9F';
var runChildSelectHighlited = false;


function getTheSection(){
	firstPosition = currentSection.indexOf('\/');	
	secondPosition = currentSection.indexOf('\/', firstPosition + 1);
	theSection = currentSection.substring(firstPosition + 1,secondPosition);
	return theSection;
}


function makeArray(len) {
    for (var i = 0; i < len; i++) this[i] = null;
	this.length = len;
}

function showLayer(id,number){
	if (browser.ns4){ 
		document.layers[id].left= detWidth(number);
		document.layers[id].visibility='show';		
	}else if(browser.ns5){	
		document.getElementById(id).style.visibility='visible';		
	}else if ((!browser.WinOs) && (browser.ie)){
		document.all[id].style.visibility='visible';
	}else{
		document.all[id].style.visibility='visible';
	}	
}

function hideLayer(id){
	if (document.all) document.all[id].style.visibility='hidden';
	else if (browser.ns4) document.layers[id].visibility='hide';
	else if (browser.ns5) document.getElementById(id).style.visibility='hidden';
}

function hover(number,on,color,parentId) {
	if (!browser.ie4){
		if (browser.ns4){
			var menu = "child" + parentId;
			var layer = "div" + number;
			var obj = document.layers[menu].layers[layer];
			(on)?obj.visibility='show':obj.visibility='hide';
		}else{
			var obj = document.getElementById("div" + number).style;
			on?obj.backgroundColor=color:obj.backgroundColor=childBackGroundColor;
		}	
	}
}

//BEGIN FUNCTIONS THAT RUN THE DROP DOWN MENUS
function restoreChildLayers(){
	var tempchildid="";
	for (var i=0; i< menus; i++){
		tempchildid='child'+i;
		hideLayer(tempchildid);
	}
}

function highlightParent(id){
	if (!browser.ns5){
		setTimeout("imgOn('"+ mainNavRollovers[id] +"')",1);	
	}
}

function restoreParents(mainid){
	for (var i = 0; i < menus; i++) {			
		if (getTheSection() != parentRolloverArray[i]){
			if (mainid != i){
				if (!browser.ns5){
					setTimeout("imgOff('"+ mainNavRollovers[i] +"')",1);
				}
			}
		}		
	}
}

function onParent(id,childexists){
	var childid='child'+id;
	if (timerID) clearTimeout(timerID);
			highlightParent(id);
			restoreParents(id);
			restoreChildLayers();
	if (childexists) showLayer(childid,id);
}

var timerID;
function offParent(childexists){ 
	if (childexists){ 
		timerID = setTimeout('timeup()',timeout); 
	} else { 
		restoreParents();
	} 
}

function onChild(){ clearTimeout(timerID); }

function offChild(id){ timerID = setTimeout('timeup()',timeout); }

function timeup(){
	restoreChildLayers();
	restoreParents();
}
//END FUNCTIONS THAT RUN THE DROP DOWN MENUS

function parentTableRow(parentlink,parenturl,width,height,alt,i,childexists){	
	if (getTheSection() == parentlink){
		return '<a onMouseOver="onParent(' + i +','+ childexists +');" onMouseOut="offParent('+ childexists +')" href="'+ parenturl +'"><img src="'+ oImgPath['shared'] + parentlink +'_on.gif" width="'+ width +'" height="'+ height +'" border="0" alt="'+ alt +'" name="'+ parentlink +'"></a>';
	}else{
		return '<a onMouseOver="onParent(' + i +','+ childexists +');" onMouseOut="offParent('+ childexists +')" href="'+ parenturl +'"><img src="'+ oImgPath['shared'] + parentlink +'_off.gif" width="'+ width +'" height="'+ height +'" border="0" alt="'+ alt +'" name="'+ parentlink +'"></a>';
	}
	
}


function childMenu(tablerows,childnumber,position,child_width,horizontal_position,numberOfChildren,child_menu_height){
	//alert(child_menu_height);
	var childtable = (browser.ns4)? tablerows :'\n<table width="'+ child_width +'" cellpadding="0" cellspacing="0" border="0" bgcolor="'+ childBackGroundColor +'">\n<tbody>\n<tr>\n\t<td colspan="3" bgcolor="'+ childBorderColor +'" height="1"><spacer type="block" height="1" width="1"></td>\n</tr>\n'+ tablerows + '<tr>\n\t<td colspan="3" bgcolor="'+ childBorderColor +'" height="1"><spacer type="block" height="1" width="1"></td>\n</tr>\n</tbody>\n</table>\n';
	var childlayerstart = (browser.ns4)? '<layer height="'+ child_menu_height +'" width="'+ child_width +'" bgcolor="'+ childBorderColor +'" id="child'+ childnumber +'" z-index="'+ eval(7+childnumber) +'" left="0" top="'+ position +'" visibility="hidden" onmouseover="onChild('+ childnumber +');" onmouseout="offChild('+ childnumber +');">' : '<div id="child'+ childnumber +'" onmouseover="onChild();" onmouseout="offChild();">';
	var childlayerend = (browser.ns4)? '</layer>\n\n' : '</div>\n\n';
	return childlayerstart + childtable + childlayerend;
}

function childTableRow(link,url,lastOne,divMenu,childRolloverColor,parentId,topPosition){
	if (browser.ns4){
		//alert(topPosition);
		if (lastOne){
			if (runChildSelectHighlited && (currentSection == url)){
				return '\n<layer Name="div'+ divMenu +'" width="'+ (childLayerWidth - 2) +'" height="'+ childCellHeight +'" bgcolor="'+ childRolloverColor +'" top="'+ topPosition +'" left="1"><table cellspacing="0" cellpadding="0" border="0" height="'+ childCellHeight +'"><tr><td valign="middle">&nbsp;&nbsp;<a class="menuText">'+ link +'</a></td></tr></table></layer>';
			}else{
				return '\n<layer Name="div'+ divMenu +'a" width="'+ (childLayerWidth - 2) +'" height="'+ childCellHeight +'" bgcolor="'+ childBackGroundColor +'" top="'+ topPosition +'" left="1" onMouseOver="hover(\''+ divMenu +'b\',true,\''+ childRolloverColor +'\','+ parentId +');" onMouseOut="hover(\''+ divMenu +'b\',false,\''+ childRolloverColor +'\','+ parentId +');"><table cellspacing="0" cellpadding="0" border="0" height="'+ childCellHeight +'"><tr><td valign="middle">&nbsp;&nbsp;<a class="menuText" href="'+ url +'">'+ link +'</a></td></tr></table></layer>' +
				       '\n<layer visibility="hidden" Name="div'+ divMenu +'b" width="'+ (childLayerWidth - 2) +'" height="'+ childCellHeight +'" bgcolor="'+ childRolloverColor +'" top="'+ topPosition +'" left="1" onMouseOver="hover(\''+ divMenu +'b\',true,\''+ childRolloverColor +'\','+ parentId +');" onMouseOut="hover(\''+ divMenu +'b\',false,\''+ childRolloverColor +'\','+ parentId +');"><table cellspacing="0" cellpadding="0" border="0" height="'+ childCellHeight +'"><tr><td valign="middle">&nbsp;&nbsp;<a class="menuText" href="'+ url +'">'+ link +'</a></td></tr></table></layer>';
			}			
		}else{
			if (runChildSelectHighlited && (currentSection == url)){
				return '\n<layer Name="div'+ divMenu +'" width="'+ (childLayerWidth - 2) +'" height="'+ childCellHeight +'" bgcolor="'+ childRolloverColor +'" top="'+ topPosition +'" left="1"><table cellspacing="0" cellpadding="0" border="0" height="'+ childCellHeight +'"><tr><td valign="middle">&nbsp;&nbsp;<a class="menuText">'+ link +'</a></td></tr></table></layer>\n<layer width="'+ (childLayerWidth - 2) +'" height="1" bgcolor="#FFFFFF" top="'+ (topPosition + 20) +'" left="1"><spacer type="block" height="1" width="1"></layer>';
			}else{
				return '\n<layer Name="div'+ divMenu +'a" width="'+ (childLayerWidth - 2) +'" height="'+ childCellHeight +'" bgcolor="'+ childBackGroundColor +'" top="'+ topPosition +'" left="1" onMouseOver="hover(\''+ divMenu +'b\',true,\''+ childRolloverColor +'\','+ parentId +');" onMouseOut="hover(\''+ divMenu +'b\',false,\''+ childRolloverColor +'\','+ parentId +');"><table cellspacing="0" cellpadding="0" border="0" height="'+ childCellHeight +'"><tr><td valign="middle">&nbsp;&nbsp;<a class="menuText" href="'+ url +'">'+ link +'</a></td></tr></table></layer>\n<layer width="'+ (childLayerWidth - 2) +'" height="1" bgcolor="#FFFFFF" top="'+ (topPosition + 20) +'" left="1"><spacer type="block" height="1" width="1"></layer>' +
				       '\n<layer visibility="hidden" Name="div'+ divMenu +'b" width="'+ (childLayerWidth - 2) +'" height="'+ childCellHeight +'" bgcolor="'+ childRolloverColor +'" top="'+ topPosition +'" left="1" onMouseOver="hover(\''+ divMenu +'b\',true,\''+ childRolloverColor +'\','+ parentId +');" onMouseOut="hover(\''+ divMenu +'b\',false,\''+ childRolloverColor +'\','+ parentId +');"><table cellspacing="0" cellpadding="0" border="0" height="'+ childCellHeight +'"><tr><td valign="middle">&nbsp;&nbsp;<a class="menuText" href="'+ url +'">'+ link +'</a></td></tr></table></layer>\n<layer width="'+ (childLayerWidth - 2) +'" height="1" bgcolor="#FFFFFF" top="'+ (topPosition + 20) +'" left="1"><spacer type="block" height="1" width="1"></layer>';
			}			
		}	
	}else{
		if (lastOne){
			if (runChildSelectHighlited && (currentSection == url)){
				return '<tr>\n\t<td width="1" bgcolor="'+ childBorderColor +'" height="'+ childCellHeight +'"><spacer type="block" height="'+ childCellHeight +'" width="1"></td>\n\t<td class="menuText" bgcolor="'+ childRolloverColor +'">&nbsp;&nbsp;'+ link +'</td>\n\t<td width="1" bgcolor="'+ childBorderColor +'"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
			}else{
				return '<tr>\n\t<td width="1" bgcolor="'+ childBorderColor +'" height="'+ childCellHeight +'"><spacer type="block" height="'+ childCellHeight +'" width="1"></td>\n\t<td class="menuText" id="div'+ divMenu +'" onmouseover="hover('+ divMenu +',true,\''+ childRolloverColor +'\')" onmouseout="hover('+ divMenu +',false)" onclick=\'location.href="'+ url +'";\' >&nbsp;&nbsp;<a class="menuText" href="'+ url +'">'+ link +'</a></td>\n\t<td width="1" bgcolor="'+ childBorderColor +'"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
			}			
		}else{
			if (runChildSelectHighlited && (currentSection == url)){
				return '<tr>\n\t<td width="1" bgcolor="'+ childBorderColor +'" height="'+ childCellHeight +'"><spacer type="block" height="'+ childCellHeight +'" width="1"></td>\n\t<td class="menuText" bgcolor="'+ childRolloverColor +'">&nbsp;&nbsp;'+ link +'</td>\n\t<td width="1" bgcolor="'+ childBorderColor +'"><spacer type="block" height="1" width="1"></td>\n</tr>\n<tr>\n\t<td width="1" bgcolor="'+ childBorderColor +'"><spacer type="block" height="1" width="1"></td>\n\t<td height="1" bgcolor="#E3E3E3" width="'+ (childLayerWidth - 2) +'"><spacer type="block" height="1" width="1"></td>\n\t<td width="1" bgcolor="'+ childBorderColor +'"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
			}else{
				return '<tr>\n\t<td width="1" bgcolor="'+ childBorderColor +'" height="'+ childCellHeight +'"><spacer type="block" height="'+ childCellHeight +'" width="1"></td>\n\t<td class="menuText" id="div'+ divMenu +'" onmouseover="hover('+ divMenu +',true,\''+ childRolloverColor +'\')" onmouseout="hover('+ divMenu +',false)" onclick=\'location.href="'+ url +'";\' >&nbsp;&nbsp;<a class="menuText" href="'+ url +'">'+ link +'</a></td>\n\t<td width="1" bgcolor="'+ childBorderColor +'"><spacer type="block" height="1" width="1"></td>\n</tr>\n<tr>\n\t<td width="1" bgcolor="'+ childBorderColor +'"><spacer type="block" height="1" width="1"></td>\n\t<td height="1" bgcolor="#E3E3E3" width="'+ (childLayerWidth - 2) +'"><spacer type="block" height="1" width="1"></td>\n\t<td width="1" bgcolor="'+ childBorderColor +'"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
			}
		}	
	}	
}

function leftNavTable(tablerows){
	var leftNavTable = '<table width="126" cellpadding="0" cellspacing="0" border="0" bgcolor="#E7E7E7">\n<tbody>\n<tr>\n\t<td height="15" bgcolor="#FFFFFF" colspan="5"><spacer type="block" height="15" width="1"></td>\n</tr>\n'+ tablerows + '<tr>\n\t<td height="15" bgcolor="#FFFFFF" colspan="5"><spacer type="block" height="15" width="1"></td>\n</tr>\n</tbody>\n</table>\n';
	return leftNavTable;
}

function leftNavTableCell(link,url,lastOne,divMenu,childRolloverColor,parentId,topPosition){
	if (lastOne){
		if (currentSection == url){
			return '<tr>\n\t<td colspan="2" height="'+ leftNavCellHeight +'" bgcolor="'+ childRolloverColor +'" width="13"><img src="/images/shared/white_arrow.gif" width="9" height="5" border="0" hspace="2"></td>\n\t<td bgcolor="'+ childRolloverColor +'" width="2"><spacer type="block" height="1" width="2"></td>\n\t<td colspan="2" class="LeftNav" bgcolor="'+ childRolloverColor +'" width="111">'+ link +'</td>\n</tr>\n';
		}else{
			return '<tr>\n\t<td colspan="2" height="'+ leftNavCellHeight +'" width="13"><img src="./images/shared/blue_arrow.gif" width="9" height="5" border="0" hspace="2"></td>\n\t<td width="2"><spacer type="block" height="1" width="2"></td>\n\t<td colspan="2" class="LeftNavLink" width="111"><a class="LeftNavLink" href="'+ url +'">'+ link +'</a></td>\n</tr>\n';
		}			
	}else{
		if (currentSection == url){
			return '<tr>\n\t<td colspan="2" height="'+ leftNavCellHeight +'" bgcolor="'+ childRolloverColor +'" width="13"><img src="./images/shared/white_arrow.gif" width="9" height="5" border="0" hspace="2"></td>\n\t<td bgcolor="'+ childRolloverColor +'" width="2"><spacer type="block" height="1" width="2"></td>\n\t<td colspan="2" class="LeftNav" bgcolor="'+ childRolloverColor +'" width="111">'+ link +'</td>\n</tr>\n<tr>\n\t<td height="1" bgcolor="#FFFFFF" colspan="5"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
		}else{
			return '<tr>\n\t<td colspan="2" height="'+ leftNavCellHeight +'" width="13"><img src="./images/shared/blue_arrow.gif" width="9" height="5" border="0" hspace="2"></td>\n\t<td width="2"><spacer type="block" height="1" width="2"></td>\n\t<td colspan="2" class="LeftNavLink" width="111"><a class="LeftNavLink" href="'+ url +'">'+ link +'</a></td>\n</tr>\n<tr>\n\t<td height="1" bgcolor="#FFFFFF" colspan="5"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
		}
	}	
}

function ThirdLevelTableCell(link,url,lastOne){
	if (lastOne){
		if (currentSection == url){
			return '<tr>\n\t<td height="'+ leftNavCellHeight +'" width="1"><spacer type="block" height="1" width="1"></td>\n\t<td bgcolor="#FFFFFF" width="12"><spacer type="block" height="1" width="12"></td>\n\t<td bgcolor="#FFFFFF" width="2"><spacer type="block" height="1" width="2"></td>\n\t<td bgcolor="#FFFFFF" width="110" class="ThirdLevelNav">'+ link +'</td>\n\t<td width="1"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
		}else{
			return '<tr>\n\t<td height="'+ leftNavCellHeight +'" width="1"><spacer type="block" height="1" width="1"></td>\n\t<td width="12" bgcolor="#FFFFFF"><spacer type="block" height="1" width="12"></td>\n\t<td width="2" bgcolor="#FFFFFF"><spacer type="block" height="1" width="2"></td>\n\t<td class="ThirdLevelNavLink" width="110" bgcolor="#FFFFFF"><a class="ThirdLevelNavLink" href="'+ url +'">'+ link +'</a></td>\n\t<td width="1"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
		}			
	}else{
		if (currentSection == url){
			return '<tr>\n\t<td height="'+ leftNavCellHeight +'" width="1"><spacer type="block" height="1" width="1"></td>\n\t<td bgcolor="#FFFFFF" width="12"><spacer type="block" height="1" width="12"></td>\n\t<td bgcolor="#FFFFFF" width="2"><spacer type="block" height="1" width="2"></td>\n\t<td bgcolor="#FFFFFF" width="110" class="ThirdLevelNav">'+ link +'</td>\n\t<td width="1"><spacer type="block" height="1" width="1"></td>\n</tr>\n<tr>\n\t<td height="1" bgcolor="#E7E7E7" colspan="5"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
		}else{
			return '<tr>\n\t<td height="'+ leftNavCellHeight +'" width="1"><spacer type="block" height="1" width="1"></td>\n\t<td width="12" bgcolor="#FFFFFF"><spacer type="block" height="1" width="12"></td>\n\t<td width="2" bgcolor="#FFFFFF"><spacer type="block" height="1" width="2"></td>\n\t<td class="ThirdLevelNavLink" width="110" bgcolor="#FFFFFF"><a class="ThirdLevelNavLink" href="'+ url +'">'+ link +'</a></td>\n\t<td width="1"><spacer type="block" height="1" width="1"></td>\n</tr>\n<tr>\n\t<td height="1" bgcolor="#E7E7E7" colspan="5"><spacer type="block" height="1" width="1"></td>\n</tr>\n';
		}
	}	
}


var parentRolloverArray = new Array();
var tempHeader = "";
var showThirdLevel = false;
var childLinkArray = new Array();
var childLinkArrayLoop = 0;
var parent_htmlstring = ""; var child_htmlstring = ""; var leftNav_HtmlString = ""; var CSSstring = ""; var menus = 0; var menusCount = 0; var numberOfChildren = 0; var loopForChildren = 0;var divMenu = 0; var topPosition = 1;
function writenavMenus(){	
	horizontal_position = 0;	
	var i = 0; var cur_child_tablerows = ""; var childexists; var left_nav_tablerows = "";
	for (var parentlink in navMenus){			
		menusCount++;
	}
	mainNavRollovers = new makeArray(menusCount);
	for (var parentlink in navMenus){
		parentRolloverArray[menus] = parentlink;
		for (var parenturl in navMenus[parentlink]){
			for (var mainImageWidth in navMenus[parentlink][parenturl]){
				for (var mainImageHeight in navMenus[parentlink][parenturl][mainImageWidth]){
					for (var mainImageAlt in navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight]){
						for (var childRolloverColor in navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt]){
							for (var childLink in navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor]){													
								numberOfChildren = numberOfChildren + 1;
								childLinkArray[childLinkArrayLoop] = false;								
								for (var childUrl in navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink]){																		
									for (var ThirdLevelLink in navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink][childUrl]){
										
										childLinkArray[childLinkArrayLoop] = true;
										//alert(currentSection);
											//alert(navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink][childUrl][ThirdLevelLink]);
										if (currentSection == navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink][childUrl][ThirdLevelLink]){
											//alert(currentSection);
											//alert(navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink][childUrl][ThirdLevelLink]);
											showThirdLevel = true;
										}	
									}
																					
								}	
								//alert(showThirdLevel);						
								childLinkArrayLoop = childLinkArrayLoop + 1;								
							}	
							for (var childLink in navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor]){													
								for (var childUrl in navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink]){									
									//-------------------------------------
									if (currentSection == childUrl){
										//tempHeader = childLink;
									}
									//-------------------------------------
									loopForChildren = loopForChildren + 1;
									if (numberOfChildren == loopForChildren){
										cur_child_tablerows += childTableRow(childLink,childUrl,true,divMenu,childRolloverColor,menus,topPosition);
									}else{
										cur_child_tablerows += childTableRow(childLink,childUrl,false,divMenu,childRolloverColor,menus,topPosition);
									}	
									//alert(childLink);
									//alert(childLinkArray[divMenu]);
									if (getTheSection() == parentlink){
										if ((numberOfChildren == loopForChildren) || ((currentSection == childUrl) && childLinkArray[divMenu])){
											//left_nav_tablerows += leftNavTableCell(childLink,childUrl,true,divMenu,childRolloverColor,menus,topPosition);
										}else{
											//left_nav_tablerows += leftNavTableCell(childLink,childUrl,false,divMenu,childRolloverColor,menus,topPosition);
										}	
									}
									if (((currentSection == childUrl) && (childLinkArray[divMenu])) || showThirdLevel){
										for (var ThirdLevelLink in navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink][childUrl]){
											//left_nav_tablerows += ThirdLevelTableCell(ThirdLevelLink,navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink][childUrl][ThirdLevelLink],false)
											//------------------------------------
											if (currentSection == navMenus[parentlink][parenturl][mainImageWidth][mainImageHeight][mainImageAlt][childRolloverColor][childLink][childUrl][ThirdLevelLink]){
												//tempHeader = ThirdLevelLink;
											}
											//------------------------------------
										}
									}
									
									divMenu = divMenu + 1;	
									topPosition = topPosition + (childCellHeight + 1);													
								}		
							}
							if (cur_child_tablerows!=''){ childexists=true; } else { childexists=false; }
							cacheImg(parentlink,oImgPath['shared'],true);
							//parent_htmlstring += parentTableRow(parentlink,parenturl,mainImageWidth,mainImageHeight,mainImageAlt,i,childexists);
							
							mainNavRollovers[i] = parentlink;
							
							CSSstring += eval('cssStr(\'child\','+ i +','+ (7+i) +','+ vertical_position +','+ detWidth(i) +')');
							child_htmlstring += childMenu(cur_child_tablerows,i,vertical_position,childLayerWidth,horizontal_position,numberOfChildren,topPosition);
							
							cur_child_tablerows = "";										
						}							
					}					
				}
			}
		}	
		topPosition = 1;
		loopForChildren = 0;
		numberOfChildren = 0;
		i++;
		menus++;		
	}
	leftNav_HtmlString = leftNavTable(left_nav_tablerows);
	
	
}

function detWidth(offset) {	
	
	x=horisontal_position+offset*145;
	if (offset == 0){	x = 195;	}	
	if (offset == 1){	x = 305;	}	
	if (offset == 2){	x = 415;	}	
	if (offset == 3){	x = 525;	}
	return x;	
}

function cssStr(type,id,z, position,left_position,layerWidth) {
	switch(type){
		case "start": return '<style type="text/css">\n';
		case "end": return '</style>';
		case "child": return (browser.ns4)? '\n' : '\t#child'+ id +' { position:absolute; visibility:hidden; left:' + left_position + 'px; top:'+ position +'px; z-index:'+ z +'}\n';		
		default: return '\n'
	}
}

function writeCSS(str,showAlert) {
	if (!browser.ns4){
		str = cssStr('start')+str+cssStr('end');
		document.write(str);
		if (showAlert) alert(str);
	}
}

function writeChildMenus(){ if (child_htmlstring) document.write(child_htmlstring); }
function writeParentMenu(){ if (parent_htmlstring) document.write(parent_htmlstring); }


//-->