function newLoadMenus(StoreID) {	startMenuBar(193,8);	Img_menuLabel(1, 'img/index_topmenu_nutcracker_f2.jpg', 'img/index_topmenu_nutcracker.jpg', 'nutcrackers.aspx?'+StoreID, 'left');	Img_menuSeparator('img/dot1.jpg')	Img_menuLabel(2, 'img/index_topmenu_clocks_f2.jpg', 'img/index_topmenu_clocks.jpg', 'clocks.aspx?'+StoreID, 'left');	Img_menuSeparator('img/dot1.jpg')	Img_menuLabel(3, 'img/index_topmenu_pyramids_f2.jpg', 'img/index_topmenu_pyramids.jpg', 'pyramids.aspx?'+StoreID, 'left');	Img_menuSeparator('img/dot1.jpg')	Img_menuLabel(4, 'img/index_topmenu_dolls_f2.jpg', 'img/index_topmenu_dolls.jpg', 'dolls.aspx?'+StoreID, 'left');	Img_menuSeparator('img/dot1.jpg')
	Img_menuLabel(5, 'img/index_topmenu_toys_f2.jpg', 'img/index_topmenu_toys.jpg', 'toys.aspx?'+StoreID, 'left');
	Img_menuSeparator('img/dot1.jpg')	Img_menuLabel(6, 'img/index_topmenu_ornaments_f2.jpg', 'img/index_topmenu_ornaments.jpg', 'ornaments.aspx?'+StoreID, 'left');	Img_menuSeparator('img/dot1.jpg')	Img_menuLabel(7, 'img/index_topmenu_advent_f2.jpg', 'img/index_topmenu_advent.jpg', 'advent.aspx?'+StoreID, 'left');	Img_menuSeparator('img/dot1.jpg')
    Img_menuLabel(8, 'img/index_topmenu_other_f2.jpg', 'img/index_topmenu_other.jpg', 'shopNewItems.aspx?cat=Z'+StoreID, 'left');
	endMenuBar();		// desde aca coloco la lista de opciones del menu	startMenu(1, 153);	menuItem('Ulbricht', null, 154, coloron, coloroff, 'ulbricht.aspx?' + StoreID, 'right');	menuItem('Steinbach', null, 154, coloron, coloroff, 'steinbach.aspx?' + StoreID, 'right');	menuItem('Erzgebirge', null, 154, coloron, coloroff, 'erzgebirge.aspx?' + StoreID, 'right');	menuItem('Incense', null, 154, coloron, coloroff, 'shopNewItems.aspx?cat=W' + StoreID, 'right');	menuItem('New Items', null, 154, coloron, coloroff, 'shopNewItems.aspx?cat=A,B,D,E,G,H&item=!' + StoreID, 'right');	endMenu();
	startMenu(2, 100);	menuItem('Cuckoo&nbsp;Clocks', null, 100, coloron, coloroff, 'shopNewItems.aspx?cat=I' + StoreID, 'right');	menuItem('Chalet&nbsp;Clocks', null, 100, coloron, coloroff, 'shopNewItems.aspx?cat=J' + StoreID, 'right');	menuItem('New&nbsp;Items', null, 100, coloron, coloroff, 'shopNewItems.aspx?cat=I,J,K&item=!' + StoreID, 'right');	endMenu();	
	startMenu(3, 85);	menuItem('Pyramids', null, 85, coloron, coloroff, 'shopNewItems.aspx?cat=L' + StoreID, 'right');	menuItem('Candles', null, 85, coloron, coloroff, 'shopNewItems.aspx?cat=M' + StoreID, 'right');		menuItem('New&nbsp;Items', null, 85, coloron, coloroff, 'shopNewItems.aspx?cat=L,M&item=!' + StoreID, 'right');	endMenu();	
	startMenu(4, 90);	menuItem('Collection', null, 90, coloron, coloroff, 'shopNewItems.aspx?cat=N' + StoreID, 'right');	menuItem('New&nbsp;Items', null, 90, coloron, coloroff, 'shopNewItems.aspx?cat=N&item=!' + StoreID, 'right');	endMenu();

	startMenu(5, 100);	menuItem('Wooden', null, 100, coloron, coloroff, 'shopNewItems.aspx?cat=O' + StoreID, 'right');	menuItem('Tin', null, 100, coloron, coloroff, 'shopNewItems.aspx?cat=P' + StoreID, 'right');	menuItem('Snow&nbsp;Globes', null, 100, coloron, coloroff, 'shopNewItems.aspx?cat=R' + StoreID, 'right');	menuItem('Rocking&nbsp;horses', null, 100, coloron, coloroff, 'shopNewItems.aspx?cat=S' + StoreID, 'right');	menuItem('New Items', null, 100, coloron, coloroff, 'shopNewItems.aspx?cat=O,P,Q,R,S&item=!' + StoreID, 'right');	endMenu();

    startMenu(6, 77);	menuItem('Steinbach', null, 80, coloron, coloroff, 'shopNewItems.aspx?cat=F' + StoreID, 'right');	menuItem('Ulbricht', null, 80, coloron, coloroff, 'shopNewItems.aspx?cat=C' + StoreID, 'right');	menuItem('Erzgebirge', null, 80, coloron, coloroff, 'shopNewItems.aspx?cat=Y' + StoreID, 'right');	menuItem('Tin', null, 80, coloron, coloroff, 'shopNewItems.aspx?cat=T' + StoreID, 'right');	menuItem('Pewter', null, 80, coloron, coloroff, 'shopNewItems.aspx?cat=U' + StoreID, 'right');	menuItem('Glass', null, 80, coloron, coloroff, 'shopNewItems.aspx?cat=V' + StoreID, 'right');	menuItem('New Items', null, 80, coloron, coloroff, 'shopNewItems.aspx?cat=C,F,T,U,V,Y&item=!' + StoreID, 'right');	endMenu();

	startMenu(7, 82);	menuItem('Calendar', null, 82, coloron, coloroff, 'shopNewItems.aspx?cat=X' + StoreID, 'right');	menuItem('New&nbsp;Items', null, 82, coloron, coloroff, 'shopNewItems.aspx?cat=X&item=!' + StoreID, 'right');	endMenu();		startMenu(8, 82);	menuItem('Other Items', null, 82, coloron, coloroff, 'shopNewItems.aspx?cat=Z' + StoreID, 'right');	endMenu();	}
function checkbusqueda() {
    if (document.forms[0].search.value == "" || document.forms[0].search.value == "Search") {
        alert("Please enter a search string\r");
    } else {
        window.open('page.aspx?search=' + document.forms[0].search.value + document.forms[0].StoreID.value, '_top')
    }
}function openMe(newin) {
        flyout=window.open(newin,"flyout","")}
function menuOver() {
	clearTimeout(timeOn);}
function menuOut() {
	timeOn = setTimeout("hideAllMenus()", 500);}
function showMenuBlank(m_No, eventObj) {
	hideAllMenus();	if (imageMenu[m_No] == false) {	    if(!ns4) {			var menuBox = getStyleObject('labelBox'+m_No);			menuBox.backgroundColor = onColours[m_No];		    } else  {			myStyle[m_No].bgColor=onColours[m_No];		    } 	}
	menuActive[m_No] = true;}
function showMenu(m_No, eventObj, align) {
	hideAllMenus();
    if(!ns4) {		var x = 10;				var menuTop = 100;		var menu = getStyleObject('menu'+m_No);		x = getElementLeft('menuLabel'+m_No);		menuTop = getElementTop('menuLabel'+m_No);		if (op5) {			if (imageMenu[m_No] == true) menuTop = getElementTop('menuLabel'+m_No) + getElementHeight('menuLabel'+m_No);			else menuTop = getElementTop('menuLabel'+m_No) + 14;
			menu.pixelTop=menuTop; 			menu.pixelLeft=x;		} else {
			if (align == 'left') {				menu.top=(1+menuTop+getElementHeight('menuLabel'+m_No)) +'px'; 				menu.left=x +'px';			}
			if (align == 'centre') {				menu.top=(1+menuTop+getElementHeight('menuLabel'+m_No)) +'px'; 				menu.left=((getElementWidth('menuLabel'+m_No)-getElementWidth('menu'+m_No))/2) + x +'px';			}
			if (align == 'right') {				menu.top=(1+menuTop+getElementHeight('menuLabel'+m_No)) +'px'; 				menu.left=(x + getElementWidth('menuLabel'+m_No)-getElementWidth('menu'+m_No)) + 1 +'px';			}
		}
		var menuBox = getStyleObject('labelBox'+m_No);		menuBox.backgroundColor = onColours[m_No];	
    } else  {
		var menu = getStyleObject('menu'+m_No);
		if (imageMenu[m_No]==true) {			var img = getImage('menuLabel' + m_No);			y = getImagePageTop(img) + getImagePageHeight(img);		} else {			var img = getImage('label' + m_No);			myStyle[m_No].bgColor=onColours[m_No];				y = getImagePageTop(img) + 14;		}
		x = getImagePageLeft(img);		menu.top = y; 		menu.left = x-1;    } 
    var menuId = 'menu' + m_No;	menuActive[m_No] = true;    if(changeObjectVisibility(menuId, 'visible')) {		return true;    } else {		return false;    }}
function showSideMenu(m_No, eventObj) {
	hideAllMenus();
    if(!ns4) {
		var x = 10;
		var menuTop = 100;
		var menu = getStyleObject('menu'+m_No);
		x = getElementLeft('menuLabel'+m_No);
		menuTop = getElementTop('menuLabel'+m_No);
		if (op5) {
			if (imageMenu[m_No] == true) {
				menuTop = getElementTop('menuLabel'+m_No);
				x = getElementLeft('menuLabel'+m_No) + getElementWidth('menuLabel'+m_No);
			} else {
				menuTop = getElementTop('label'+m_No);
				x = getElementLeft('label'+m_No);
			}
			menu.pixelTop=menuTop;
 			menu.pixelLeft=x;
		} else {
			menu.top=menuTop +'px';
 			menu.left=(x + getElementWidth('menuLabel'+m_No)) +'px';
		}
		var menuBox = getStyleObject('labelBox'+m_No);
		menuBox.backgroundColor = onColours[m_No];	
    } else  {
		var menu = getStyleObject('menu'+m_No);
		if (imageMenu[m_No]==true) {
			var img = getImage('menuLabel' + m_No);
			x = getImagePageLeft(img) + getImagePageWidth(img);
		} else {
			var img = getImage('label' + m_No);
			myStyle[m_No].bgColor=onColours[m_No];	
			x = getImagePageLeft(img) + 2;
		}
		y = getImagePageTop(img);
		menu.top = y;
 		menu.left=x+2;
    } 
    var menuId = 'menu' + m_No;
	menuActive[m_No] = true;
    if(changeObjectVisibility(menuId, 'visible')) {
		return true;
    } else {
		return false;
    }
}


function showSubMenu(m_No, eventObj, tier, myAlign) {
   	hideAllMenusTier(tier);
    if(!ns4) {
		var x = 10;
		var menuTop = 100;
		var menu = getStyleObject('menu'+m_No);
		if (myAlign=='right') {
			x = getElementLeft('label'+m_No) + getElementWidth('label'+m_No);;
			menuTop = getElementTop('label'+m_No);
			if(imageMenu[m_No]==1) x = x; 
			if (op5) {
				menu.pixelTop=menuTop;
 				menu.pixelLeft= x;
			} else {
				menu.top = menuTop +'px';
 				menu.left = x +'px';
			}
		} else {
			x = getElementLeft('label'+m_No);
			menuTop = getElementTop('label'+m_No);
			if (op5) {
				menu.pixelTop = menuTop ;
 				menu.pixelLeft = (x - menuWidths[m_No] - mIBW);
			} else {
				menu.top = menuTop + 'px';
	 			menu.left = (x - menuWidths[m_No] - mIBW) + 'px';
			}
		}
		var menuBox = getStyleObject('labelBox'+m_No);
		menuBox.backgroundColor = onColours[m_No];	
    } else  {
		var img = getImage('label' + m_No);
 		var x = getImagePageLeft(img) + getImagePageWidth(img);
 		var y = getImagePageTop(img);
		var menu = getStyleObject('menu'+m_No);
		if (myAlign=='right') {
			menu.left = x;
 			menu.top = y-2;
		} else {
			menu.left = x - menu.clip.right;
 			menu.top = y-2;
		}
		if (imageMenu[m_No] == false) myStyle[m_No].bgColor=onColours[m_No];		
    } 
	menuActive[m_No] = true;
    var menuId = 'menu' + m_No;
    if(changeObjectVisibility(menuId, 'visible')) {
		return true;
    } else {
		return false;
    }
}


function hideAllMenus() {
    for(counter = 1; counter <= numMenus; counter++) {
		if (menuActive[counter] == true) {
			changeObjectVisibility('menu' + counter, 'hidden');
			menuActive[counter] = false;
			if (imageMenu[counter] == false) {				
				if (ns4) {
					if (myStyle[counter]) myStyle[counter].bgColor=offColours[counter];
				} else {
					var menuBox = getStyleObject('labelBox'+counter);
					menuBox.backgroundColor = offColours[counter];	
				}
			} 
   		}
   }
}

function hideAllMenusTier(tierNum) {
    for(counter = 1; counter <= numMenus; counter++) {
		if (menuActive[counter] == true) {
			if (tier[counter] > tierNum) {
				changeObjectVisibility('menu' + counter, 'hidden');
				menuActive[counter] = false;
				if (imageMenu[counter] == false) {					
					if (ns4) {
						myStyle[counter].bgColor=offColours[counter];
					} else {
						var menuBox = getStyleObject('labelBox'+counter);
						menuBox.backgroundColor = offColours[counter];	
					}	
				}
			}
    	}
	}
}
function startMenuBar(width, numMenus) {
	currentMenuLabel = 0;	if (ns4) {		document.write('<table width="' + width + '" cellpadding="0" cellspacing="0" border="0">');		if (bC != null)	{			document.write('<tr><td bgColor="' + bC + '" colspan="' + ((numMenus*2) + 1) + '"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>');		}
		document.write('<tr>');
		if (bC != null)	{			document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>\n');			}
	} else {		document.write('<table width="' + width + '" cellpadding="0" cellspacing="0" border="0"><tr>');		}
}

function endMenuBar(numMenus) {
	document.write('</tr>');	if (ns4) {		if (bC != null)	{			document.write('<tr><td bgColor="' + bC + '" colspan="' + ((numMenus*2) + 1) + '"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>');		}	}	document.write('</table>\n');}
function startMenu(m_No, width) {	currentMenu = m_No;	menuWidths[m_No] = width;	currentMenuItem = 0;
	if (ns4) {		document.write('<div id="menu' + m_No + '" name="menu' + m_No + '" class="myMenu">');		document.write('<table ');		if (width != null) {		 	document.write('width="' + width + '" ');		}
		document.write('cellpadding="0" cellspacing="0" border="0">');
		if (bC != null) {		    document.write('<tr><td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');		    document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');		    document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');		}
		 document.write('</tr>\n');		} else {		document.write('<div id="menu' + m_No + '" name="menu' + m_No + '" class="myMenu">');		document.write('<table ');
		if (width != null) {		 	document.write('width="' + width + '" ');		}
		document.write('cellpadding="0" cellspacing="0" border="0">');
	}	}	function endMenu() {	document.write('</table></div>');}

function menuSpacer(width, offColour) {		
	var tier2 = tier[currentMenu];	currentMenuItem = currentMenuItem + 1;
	if(ns4) {		document.write('<tr>');		if (bC != null) {			document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');		}		document.write('<td ');		if (width != null) {		 	document.write('width="' + (width+3) + '" ');		} else {		 	document.write('width="100%" ');		}		document.write('valign="middle"><ilayer width="' + (width+3) + '">');		document.write('<layer ');		if (width != null) {		 	document.write('width="' + (width+3) + '" ');		} else {		 	document.write('width="100%" ');		}		document.write('onmouseover="menuOver();  hideAllMenusTier(' + tier2 + ');" ');		document.write('onmouseout="menuOut();" ');		document.write('bgcolor="' + offColour + '">');		document.write('<hr>');		document.write('</layer></ilayer></td>');		if (bC != null) {			document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');		}		document.write('</tr>');		if (bC != null) {			document.write('<tr><td bgColor="' + bC + '" colspan="3"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>\n');		}	} else {		document.write('<tr><td ');		document.write('onMouseover="menuOver(); hideAllMenusTier(' + tier2 + ');" ');		document.write('onMouseout = "menuOut();" ');		if (width != null) {			document.write('width="100%" ');		}		document.write('bgcolor="' + offColour + '" valign="middle" height="10" ');		if (bC != null) {			document.write('style="border: ' + bC + ' 1px solid;"');		}		document.write('><div>');		document.write('<hr>');		document.write('</div></td></tr>');	}		}

function menuItemVieja(label, m_No, width, onColour, offColour, url, myAlign) {	
	if (m_No != null) {	
		offColours[m_No] = offColour;
		onColours[m_No] = onColour;
		tier[m_No] = tier[currentMenu] + 1;
	}
	var tier2 = tier[currentMenu];
	currentMenuItem = currentMenuItem + 1;
	mI_No = 'mI' + currentMenu + currentMenuItem;

	if(ns4) {
		document.write('<tr>');
		if (bC != null) {
			document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');
		}
		document.write('<td ');
		if (width != null) {
		 	document.write('width="' + width + '" ');
		} else {
		 	document.write('width="100%" ');
		}
		document.write('valign="middle">');
		document.write('<ilayer id="menuItemOuter' + mI_No + '" name="menuItemOuter' + mI_No + '">');
		document.write('<layer ');
		if (width != null) {
		 	document.write('width="' + width + '" ');
		} else {
		 	document.write('width="100%" ');
		}
		if (m_No != null) {
			document.write('onmouseover="menuOver(); return !showSubMenu(' + m_No + ', event, ' + tier2 + ', \'' + myAlign + '\');" ');
			document.write('onmouseout="menuOut();" ');
		} else {
			document.write('onmouseover="bgColor=\'' + onColour + '\'; menuOver();  hideAllMenusTier(' + tier2 + ');" ');
			document.write('onmouseout="bgColor=\'' + offColour + '\'; menuOut();" ');	
		}
		document.write('id="menuItem' + mI_No + '" name="menuItem' + mI_No + '" ');
		document.write('bgcolor="' + offColour + '">');
		if (m_No == null) document.write('<img src="images/shim.gif" width="1" height="1" border="0" align="right">\n');
		document.write('<a class="MenuItemLink" href="' + url + '" target="' + targetFrame + '">\n');
		if (uMIB == 1) {
			if (m_No != null ) document.write('<img src="' + sMBOff.src + '" width="' + sMBW + '" height="' + sMBH + '" border="0" align="left" name="menuBullet' + mI_No + '" id="menuBullet' + mI_No + '">\n');
			else document.write('<img src="' + mIBOff.src + '" width="' + mIBW + '" height="' + mIBH + '" border="0" align="left" name="menuBullet' + mI_No + '" id="menuBullet' + mI_No + '">\n');
		}
		if (m_No != null) document.write('<img src="' + sMA.src + '" width="' + sMAW + '" height="' + sMAH + '" border="0" align="right">');
		document.write(label + '</a>');
		document.write('</layer></ilayer>');
		if (m_No != null) document.write('<img src="images/shim.gif" width="1" height="1" border="0" align="' + myAlign + '" id="label' + m_No + '" name="label' + m_No + '">');
		document.write('</td>');
		if (bC != null) {
			document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');
		}
		document.write('</tr>');
		if (bC != null) {
			document.write('<tr><td bgColor="' + bC + '" colspan="3"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>\n');
		}
		if (m_No != null) myStyle[m_No] = eval('document.menu' + currentMenu + '.document.menuItemOuter' + mI_No + '.document.menuItem' + mI_No);
	} else {
		document.write('<tr><td ');
		if (width != null) {
		 	document.write('width="100%" ');
		}
		document.write('bgcolor="' + offColour + '" valign="middle" height="12" ');
		if (bC != null) {
			if (currentMenuItem == 1) {
				document.write('style="border: ' + bC + ' 1px solid;" ');
			} else {
				document.write('style="border-left: ' + bC + ' 1px solid;border-right: ' + bC + ' 1px solid;border-bottom: ' + bC + ' 1px solid;" ');
			}
		}
		document.write('id="labelBox' + m_No + '" name="labelBox' + m_No + '" ');
		if (m_No != null) {
			document.write('onmouseover="');
			if (uMIB == 1) {
				document.write('menuBullet' + mI_No + '.src=sMBOn.src; ');
			}
			document.write('menuOver(); return !showSubMenu(' + m_No + ', event, ' + tier2 + ', \'' + myAlign + '\');"  ');
			document.write('onmouseout="menuOut(); ');
		} else {
			document.write('onMouseover="this.style.backgroundColor = \'' + onColour + '\'; ');
			if (uMIB == 1) {
				document.write('menuBullet' + mI_No + '.src=mIBOn.src; ');
			}	
			document.write('menuOver(); hideAllMenusTier(' + tier2 + ');" ');
			document.write('onMouseout = "this.style.backgroundColor = \'' + offColour + '\'; menuOut(); ');	
		}
		if (uMIB == 1) {
			if (m_No != null) document.write('menuBullet' + mI_No + '.src=sMBOff.src;" ');
			else document.write('menuBullet' + mI_No + '.src=mIBOff.src;" ');
		} else {
			document.write('"');
		}
		if (targetType=='self') document.write('onClick="document.location.href=\'' + url + '\';" ');
		if (targetType=='new') document.write('onClick="openMe(\'' + url + '\'); return false;" ');
		if (targetType=='frame') document.write('onClick="parent.' + targetFrame + '.document.location.href=\'' + url + '\';" ');
		if (targetType=='iframe') document.write('onClick="' + targetFrame + '.location.href=\'' + url + '\';" ');
		document.write('<div id="menuItem' + mI_No + '" name="menuItem' + mI_No + '"');
		document.write('><a class="MenuItemLink" href="' + url + '" target="' + targetFrame + '">');
		if (uMIB == 1) {
			if (m_No != null) document.write('<img src="' + sMBOff.src + '" width="' + sMBW + '" height="' + sMBH + '" border="0" align="left" name="menuBullet' + mI_No + '" id="menuBullet' + mI_No + '">');
			else document.write('<img src="' + mIBOff.src + '" width="' + mIBW + '" height="' + mIBH + '" border="0" align="left" name="menuBullet' + mI_No + '" id="menuBullet' + mI_No + '">');
		}
		if(m_No != null) {
			if(myAlign=='right') {
				document.write('<img src="' + sMA.src + '" width="' + sMAW + '" height="' + sMAH + '" border="0" align="right" id="label' + m_No + '" name="label' + m_No + '">');
			} else {
				document.write('<img src="' + sMA.src + '" width="' + sMAW + '" height="' + sMAH + '" border="0" align="right">');
				document.write('<img src="images/shim.gif" width="1" align="top" height="1" border="0"  id="label' + m_No + '" name="label' + m_No + '">');
			} 
		} else {
			document.write('<img src="images/shim.gif" width="1" align="top" height="1" border="0">');
		}
		document.write('&nbsp;' + label);
		document.write('</a></div></td></tr>');
	}		
}
	function menuItem(label, m_No, width, onColour, offColour, url, myAlign) {	
	if (m_No != null) {			offColours[m_No] = offColour;		onColours[m_No] = onColour;		tier[m_No] = tier[currentMenu] + 1;	}
	var tier2 = tier[currentMenu];	currentMenuItem = currentMenuItem + 1;	mI_No = 'mI' + currentMenu + currentMenuItem;	if(ns4) {		document.write('<tr>');		if (bC != null) {			document.write('<td bgColor="' + bC + '">&nbsp;</td>');		}
		document.write('<td ');		if (width != null) {		 	document.write('width="' + width + '" ');		} else {		 	document.write('width="100%" ');		}
		document.write('valign="middle">');		document.write('<ilayer id="menuItemOuter' + mI_No + '" name="menuItemOuter' + mI_No + '">');		document.write('<layer ');		if (width != null) {		 	document.write('width="' + width + '" ');		} else {		 	document.write('width="100%" ');		}
		if (m_No != null) {			document.write('onmouseover="menuOver(); return !showSubMenu(' + m_No + ', event, ' + tier2 + ', \'' + myAlign + '\');" ');			document.write('onmouseout="menuOut();" ');		} else {			document.write('onmouseover="bgColor=\'' + onColour + '\'; menuOver();  hideAllMenusTier(' + tier2 + ');" ');			document.write('onmouseout="bgColor=\'' + offColour + '\'; menuOut();" ');			}
		document.write('id="menuItem' + mI_No + '" name="menuItem' + mI_No + '" ');		document.write('bgcolor="' + offColour + '">');
		if (m_No == null) document.write('&nbsp;\n');		document.write('<a class="MenuItemLink" href="' + url + '" target="' + targetFrame + '">\n');
		if (uMIB == 1) {			if (m_No != null ) document.write('<img src="' + sMBOff.src + '" width="' + sMBW + '" height="' + sMBH + '" border="0" align="left" name="menuBullet' + mI_No + '" id="menuBullet' + mI_No + '">\n');			else document.write('<img src="' + mIBOff.src + '" width="' + mIBW + '" height="' + mIBH + '" border="0" align="left" name="menuBullet' + mI_No + '" id="menuBullet' + mI_No + '">\n');		}
		if (m_No != null) document.write('<img src="' + sMA.src + '" width="' + sMAW + '" height="' + sMAH + '" border="0" align="right">');		document.write(label + '</a>');		document.write('</layer></ilayer>');
		if (m_No != null) document.write('<img src="images/shim.gif" width="1" height="1" border="0" align="' + myAlign + '" id="label' + m_No + '" name="label' + m_No + '">');		document.write('</td>');
		if (bC != null) {			document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');		}
		document.write('</tr>');		if (bC != null) {			document.write('<tr><td bgColor="' + bC + '" colspan="3"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>\n');		}
		if (m_No != null) myStyle[m_No] = eval('document.menu' + currentMenu + '.document.menuItemOuter' + mI_No + '.document.menuItem' + mI_No);
	} else {
		document.write('<tr><td ');
		if (width != null) {		 	document.write('width="100%" ');		}
		document.write('bgcolor="' + offColour + '" valign="middle" height="10" ');
		if (bC != null) {			if (currentMenuItem == 1) {				document.write('style="border: ' + bC + ' 0px solid;" ');			} else {				document.write('style="border-left: ' + bC + ' 0px solid;border-right: ' + bC + ' 0px solid;border-bottom: ' + bC + ' 0px solid;" ');			}
		}
		document.write('id="labelBox' + m_No + '" name="labelBox' + m_No + '" ');
		if (m_No != null) {			document.write('onmouseover="');			if (uMIB == 1) {				document.write('menuBullet' + mI_No + '.src=sMBOn.src; ');			}
			document.write('menuOver(); return !showSubMenu(' + m_No + ', event, ' + tier2 + ', \'' + myAlign + '\');"  ');			document.write('onmouseout="menuOut(); ');		} else {			document.write('onMouseover="this.style.backgroundColor = \'' + onColour + '\'; ');
			if (uMIB == 1) {				document.write('menuBullet' + mI_No + '.src=mIBOn.src; ');			}	
			document.write('menuOver(); hideAllMenusTier(' + tier2 + ');" ');			document.write('onMouseout = "this.style.backgroundColor = \'' + offColour + '\'; menuOut(); ');	
		}
		if (uMIB == 1) {
			if (m_No != null) document.write('menuBullet' + mI_No + '.src=sMBOff.src;" ');
			else document.write('menuBullet' + mI_No + '.src=mIBOff.src;" ');
		} else {
			document.write('"');
		}
		if (targetType=='self') document.write('onClick="document.location.href=\'' + url + '\';" ');
		if (targetType=='new') document.write('onClick="openMe(\'' + url + '\'); return false;" ');
		if (targetType=='frame') document.write('onClick="parent.' + targetFrame + '.document.location.href=\'' + url + '\';" ');
		if (targetType=='iframe') document.write('onClick="' + targetFrame + '.location.href=\'' + url + '\';" ');
		document.write('<div id="menuItem' + mI_No + '" name="menuItem' + mI_No + '"');
		document.write('><a class="MenuItemLink" href="' + url + '" target="' + targetFrame + '">');
		if (uMIB == 1) {
			if (m_No != null) document.write('<img src="' + sMBOff.src + '" width="' + sMBW + '" height="' + sMBH + '" border="0" align="left" name="menuBullet' + mI_No + '" id="menuBullet' + mI_No + '">');
			else document.write('<img src="' + mIBOff.src + '" width="' + mIBW + '" height="' + mIBH + '" border="0" align="left" name="menuBullet' + mI_No + '" id="menuBullet' + mI_No + '">');
		}
		if(m_No != null) {
			if(myAlign=='right') {
				document.write('<img src="' + sMA.src + '" width="' + sMAW + '" height="' + sMAH + '" border="0" align="right" id="label' + m_No + '" name="label' + m_No + '">');
			} else {
				document.write('<img src="' + sMA.src + '" width="' + sMAW + '" height="' + sMAH + '" border="0" align="right">');
				document.write('<img src="images/shim.gif" width="1" align="top" height="1" border="0"  id="label' + m_No + '" name="label' + m_No + '">');
			} 
		} 
//		document.write('&nbsp;' + label);		document.write(label);
		document.write('</a></div></td></tr>');	}		
}
function menuLabel(label, m_No, width, onColour, offColour, url, align) {		tier[m_No] = 0;		offColours[m_No] = offColour;		onColours[m_No] = onColour;		currentMenuLabel = currentMenuLabel + 1;				if(ns4) {			document.write('<td width="' + width + '" valign="middle" height="2" align="left"><ilayer id="menuLabelOuter' + m_No + '" name="menuLabelOuter' + m_No + '"><layer width="' + width + '" onmouseover="menuOver(); ');			if (align != null) document.write('return !showMenu(' + m_No + ', event, \'' + align + '\'); ');			else document.write('return !showMenuBlank(' + m_No + ', event, \'' + align + '\'); ');
			document.write('return false;" onmouseout="menuOut();" id="menuLabel' + m_No + '" name="menuLabel' + m_No + '" bgcolor="' + offColour + '"><a class="MenuItemLink" href="' + url + '" target="' + targetFrame + '">');			if (uMLB == 1) {				document.write('<img src="' + mLBOff.src + '" width="' + mLBW + '" height="' + mLBH + '" border="0" align="left" name="menuBullet' + m_No + '" id="menuBullet' + m_No + '">');			}			document.write(label + '</a></layer></ilayer><img src="images/shim.gif" width="1" height="1" border="0" align="left" id="label' + m_No + '" name="label' + m_No + '"></td>');			if (bC != null) {				document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>\n');			}			myStyle[m_No] = eval('document.menuLabelOuter' + m_No + '.document.menuLabel' + m_No);		} else {			document.write('<td width="'+width + '" bgcolor="' + offColour + '" valign="middle" height="12" ');			if (bC != null) {				if (currentMenuLabel == 1) {					document.write('style="border: ' + bC + ' 1px solid;" ');				} else {					document.write('style="border-top: ' + bC + ' 1px solid; border-bottom: ' + bC + ' 1px solid; border-right: ' + bC + ' 1px solid;" ');				}			}			document.write('id="labelBox' + m_No + '" name="labelBox' + m_No + '" align="left"><div id="menuLabel' + m_No + '" name="menuLabel' + m_No + '" onmouseover="');			if (uMLB == 1) {				document.write('label' + m_No + '.src=mLBOn.src; ');			}			if (align != null) document.write('menuOver(); return !showMenu(' + m_No + ', event,  \'' + align + '\');"  onmouseout="');			else document.write('menuOver(); return !showMenuBlank(' + m_No + ', event,  \'' + align + '\');"  onmouseout="');			if (uMLB == 1) {				document.write('label' + m_No + '.src=mLBOff.src; ');			}			document.write('menuOut();" ');			if (targetType=='self') document.write('onClick="document.location.href=\'' + url + '\';" ');			if (targetType=='new') document.write('onClick="openMe(\'' + url + '\'); return false;" ');			if (targetType=='frame') document.write('onClick="parent.' + targetFrame + '.document.location.href=\'' + url + '\';" ');			if (targetType=='iframe') document.write('onClick="' + targetFrame + '.location.href=\'' + url + '\';" ');			document.write('><a class="MenuItemLink" href="' + url + '" target="' + targetFrame + '">');			if (uMLB == 1) {				document.write('<img src="' + mLBOff.src + '" width="' + mLBW + '" height="' + mLBH + '" border="0" align="left" id="label' + m_No + '" name="label' + m_No + '">');			} else {				if (op5) {					document.write('<img src="images/shim.gif" width="1" height="1" border="0" align="left" id="label' + m_No + '" name="label' + m_No + '">');				}				document.write('<img src="images/shim.gif" width="1" height="1" border="0" align="left" id="label' + m_No + '" name="label' + m_No + '">');			}			document.write('&nbsp;' + label + '</a></div></td>\n');		}			}

	function startSideMenuBar(width) {
		currentMenuLabel = 0;		if (ns4) {			document.write('<table width="' + width + '" cellpadding="0" cellspacing="0" border="0">');			if (bC != null) {				document.write('<tr><td bgColor="' + bC + '" colspan="3"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>\n');				}		}		else document.write('<table width="' + width + '" cellpadding="0" cellspacing="0" border="0">\n');		}
	function endSideMenuBar() {
		document.write('</table>\n');	}

	function sideMenuLabel(label, m_No, width, onColour, offColour, url, align) {
		tier[m_No] = 0;
		offColours[m_No] = offColour;
		onColours[m_No] = onColour;
		currentMenuLabel = currentMenuLabel + 1;
		
		if(ns4) {
			document.write('<tr>');
			if (bC != null) {
				document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');
			}
			document.write('<td width="' + width + '" valign="middle" height="2"><ilayer id="menuLabelOuter' + m_No + '" name="menuLabelOuter' + m_No + '"><layer width="' + width + '" onmouseover="menuOver(); ');
			if (align != null) document.write('return !showSideMenu(' + m_No + ', event);" '); 
			else document.write('return !showMenuBlank(' + m_No + ', event);" '); 
			document.write('onmouseout="menuOut();" id="menuLabel' + m_No + '" name="menuLabel' + m_No + '" bgcolor="' + offColour + '"><a class="MenuItemLink" href="' + url + '" target="' + targetFrame + '">\n');
			if (uMLB == 1) {
				document.write('<img src="' + mLBOff.src + '" width="' + mLBW + '" height="' + mLBH + '" border="0" align="left" name="menuBullet' + m_No + '" id="menuBullet' + m_No + '">\n');
			}
			document.write('' + label + '</a></layer></ilayer><img src="images/shim.gif" width="1" height="1" border="0" align="right" id="label' + m_No + '" name="label' + m_No + '"></td>');
			if (bC != null) {
				document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');
			}
			document.write('</tr>');
			if (bC != null) {
				document.write('<tr><td bgColor="' + bC + '" colspan="3"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>\n');
			}
			myStyle[m_No] = eval('document.menuLabelOuter' + m_No + '.document.menuLabel' + m_No);
		} else {
			document.write('<tr><td width="' + width + '" align="left" bgcolor="' + offColour + '" valign="middle" height="12" ');
			if (bC != null) {
				if (currentMenuLabel == 1) {
					document.write('style="border: ' + bC + ' 1px solid;" ');
				} else {
					document.write('style="border-left: ' + bC + ' 1px solid; border-bottom: ' + bC + ' 1px solid; border-right: ' + bC + ' 1px solid;" ');
				}
			}
			document.write('id="labelBox' + m_No + '" name="labelBox' + m_No + '"><div id="menuLabel' + m_No + '" name="menuLabel' + m_No + '" onmouseover="');
			if (uMLB == 1) {
				document.write('menuBullet' + m_No + '.src=mLBOn.src; ');
			}
			if (align != null) document.write('menuOver(); return !showSideMenu(' + m_No + ', event);"  onmouseout="');
			else document.write('menuOver(); return !showMenuBlank(' + m_No + ', event);"  onmouseout="');
			if (uMLB == 1) {
				document.write('menuBullet' + m_No + '.src=mLBOff.src; ');
			}
			document.write('menuOut();" ');
			if (targetType=='self') document.write('onClick="document.location.href=\'' + url + '\';" ');
			if (targetType=='new') document.write('onClick="openMe(\'' + url + '\'); return false;" ');
			if (targetType=='frame') document.write('onClick="parent.' + targetFrame + '.document.location.href=\'' + url + '\';" ');
			if (targetType=='iframe') document.write('onClick="' + targetFrame + '.location.href=\'' + url + '\';" ');
			document.write('><a class="MenuItemLink" href="' + url + '" target="' + targetFrame + '">');
			if (uMLB == 1) {
				document.write('<img src="' + mLBOff.src + '" width="' + mLBW + '" height="' + mLBH + '" border="0" align="top" name="menuBullet' + m_No + '" id="menuBullet' + m_No + '">');
			}
			document.write('&nbsp;' + label + '<img src="images/shim.gif" width="1" height="1" border="0" align="right" id="label' + m_No + '" name="label' + m_No + '"></a></div></td></tr>\n');
		}		
	}	
	function Img_menuItem(m_No, onImage, offImage, url, myAlign) {			if (m_No != null) {		imageMenu[m_No] = true;		tier[m_No] = tier[currentMenu] + 1;	}	var tier2 = tier[currentMenu];	currentMenuItem = currentMenuItem + 1;	mI_No = 'mI' + currentMenu + currentMenuItem;	if (m_No != null) {		document.write('<script language="javascript">on' + m_No + '= new Image();');		document.write('on' + m_No + '.src="' + onImage + '";');		document.write('off' + m_No + '= new Image();');		document.write('off' + m_No + '.src="' + offImage + '";</script>');	} else {		document.write('<script language="javascript">');		document.write('on' + mI_No + '= new Image();');		document.write('on' + mI_No + '.src="' + onImage + '";');		document.write('off' + mI_No + '= new Image();');		document.write('off' + mI_No + '.src="' + offImage + '";');		document.write('</script>');	}	document.write('<tr>');
	if (bC != null && ns4) {		document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');	} 
	document.write('<td');	if (bC != null && !ns4) {		if (currentMenuItem == 1) {			document.write(' style="border: ' + bC + ' 1px solid;" ');		} else {			document.write(' style="border-left: ' + bC + ' 1px solid;border-right: ' + bC + ' 1px solid;border-bottom: ' + bC + ' 1px solid;" ');		}	}	document.write('>');	if (m_No != null) {		document.write('<a href="' + url + '" target="' + targetFrame + '" onmouseover="menuOver(); label' + m_No + '.src = on' + m_No + '.src;  return !showSubMenu(' + m_No + ', event, ' + tier2 + ', \'' + myAlign + '\');"  onmouseout="menuOut(); label' + m_No + '.src = off' + m_No + '.src;">');			document.write('<img src="' + offImage + '" border="0" id="label' + m_No + '" name="label' + m_No + '"></a></td>');	} else {		document.write('<a href="' + url + '" target="' + targetFrame + '" onmouseover="menuItem' + mI_No + '.src = on' + mI_No + '.src; menuOver(); hideAllMenusTier(' + tier2 + ');" onmouseout="menuItem' + mI_No + '.src = off' + mI_No + '.src; menuOut();">');					document.write('<img src="' + offImage + '" border="0" id="menuItem' + mI_No + '" name="menuItem' + mI_No + '"></a></td>');	}			if (bC != null && ns4) {		document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');	}	document.write('</tr>');	if (bC != null && ns4) {		document.write('<tr><td bgColor="' + bC + '" colspan="3"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>\n');	}		}
function Img_menuLabel(m_No, onImage, offImage, url, align) {	tier[m_No] = 0;	imageMenu[m_No] = true;	document.write('<script language="javascript">on' + m_No + '= new Image();');	document.write('on' + m_No + '.src="' + onImage + '";');	document.write('off' + m_No + '= new Image();');	document.write('off' + m_No + '.src="' + offImage + '";</script>');
	document.write('<td');	if (bC != null && !ns4) {		document.write(' style="border: ' + bC + ' 1px solid;"');	}
	document.write('>');	document.write('<a href="' + url + '" target="' + targetFrame + '" onmouseover="menuLabel' + m_No + '.src = on' + m_No + '.src; menuOver(); ');	if (align != null) document.write('return !showMenu(' + m_No + ', event,  \'' + align + '\');" ');	else document.write('return !showMenuBlank(' + m_No + ', event,  \'' + align + '\');" ');	document.write('onmouseout="menuLabel' + m_No + '.src = off' + m_No + '.src; menuOut();">');	document.write('<img src="' + offImage + '" border="0" id="menuLabel' + m_No + '" name="menuLabel' + m_No + '"></a></td>');
    if (bC != null && ns4) {		document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>\n');	}}
function Img_menuSeparator(Image) {	document.write('<td');	if (bC != null && !ns4) {		document.write(' style="border: ' + bC + ' 0px solid;"');	}
	document.write('>');	document.write('<img src="' + Image + '" border="0"></td>');
}

function Img_sideMenuLabel(m_No, onImage, offImage, url, align) {
	tier[m_No] = 0;	imageMenu[m_No] = true;
	document.write('<script language="javascript">on' + m_No + '= new Image();');	document.write('on' + m_No + '.src="' + onImage + '";');	document.write('off' + m_No + '= new Image();');	document.write('off' + m_No + '.src="' + offImage + '";</script>');	document.write('<tr>');	if (bC != null && ns4) {		document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');	}
	document.write('<td');	if (bC != null && !ns4) {		document.write(' style="border: ' + bC + ' 0px solid;"');	}	document.write('>');	document.write('<a href="' + url + '" target="' + targetFrame + '" onmouseover="menuLabel' + m_No + '.src = on' + m_No + '.src; menuOver(); ');	if (align != null) document.write('return !showSideMenu(' + m_No + ', event);" ');	else document.write('return !showMenuBlank(' + m_No + ', event);" ');	document.write('onmouseout="menuLabel' + m_No + '.src = off' + m_No + '.src; menuOut();">');				document.write('<img src="' + offImage + '" border="0" id="menuLabel' + m_No + '" name="menuLabel' + m_No + '"></a></td>');
	if (bC != null && ns4) {		document.write('<td bgColor="' + bC + '"><img src="images/shim.gif" width="1" height="1" border="0"></td>');	}
	document.write('</tr>');	if (bC != null && ns4) {		document.write('<tr><td bgColor="' + bC + '" colspan="3"><img src="images/shim.gif" width="1" height="1" border="0"></td></tr>\n');	}}
window.onload = initializeHacks;
function initializeHacks() {
    if ((navigator.appVersion.indexOf('MSIE 5') != -1) 	&& (navigator.platform.indexOf('Mac') != -1) && getStyleObject('blankDiv')) {		window.onresize = explorerMacResizeFix;    }
    resizeBlankDiv();	createFakeEventObj();}

function createFakeEventObj() {
    if (!window.event) {	    window.event = false;    }} 
function resizeBlankDiv() {
    if ((navigator.appVersion.indexOf('MSIE 5') != -1) 
	&& (navigator.platform.indexOf('Mac') != -1)
	&& getStyleObject('blankDiv')) {
	getStyleObject('blankDiv').width = document.body.clientWidth - 20;
	getStyleObject('blankDiv').height = document.body.clientHeight - 20;
    }
}

function explorerMacResizeFix () {
    location.reload(false);
}

function getStyleObject(objectId, doc) {
    if(document.getElementById && document.getElementById(objectId)) {
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
		return getObjNN4(document,objectId);
    } else {
	return false;
    }
} 

function changeObjectVisibility(objectId, newVisibility) {
    var styleObject = getStyleObject(objectId, document);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	return false;
    }
} 

function getElementHeight(Elem) {
	var elem;
	if(document.getElementById) {
		var elem = document.getElementById(Elem);
	} else if (document.all){
		var elem = document.all[Elem];
	}
	if ((navigator.userAgent.indexOf("Opera 5")!=-1) ||(navigator.userAgent.indexOf("Opera/5")!=-1)) {
		xPos = elem.style.pixelHeight;
	} else {
		xPos = elem.offsetHeight;
	}
	return xPos;
}

function getElementWidth(Elem) {
	var elem;
	if(document.getElementById) {
		var elem = document.getElementById(Elem);
	} else if (document.all){
		var elem = document.all[Elem];
	}
	if ((navigator.userAgent.indexOf("Opera 5")!=-1) ||(navigator.userAgent.indexOf("Opera/5")!=-1)) {
		xPos = elem.style.pixelWidth;
	} else {
		xPos = elem.offsetWidth;
	}
	return xPos;
}

function getElementLeft(Elem) {
	var elem;
	if(document.getElementById) {
		var elem = document.getElementById(Elem);
	} else if (document.all){
		var elem = document.all[Elem];
	}
	xPos = elem.offsetLeft;
	tempEl = elem.offsetParent;
  	while (tempEl != null) {
  		xPos += tempEl.offsetLeft;
  		tempEl = tempEl.offsetParent;
  	}
	return xPos;
}

function getElementTop(Elem) {
	if(document.getElementById) {
	
		var elem = document.getElementById(Elem);
	} else if (document.all) {
		var elem = document.all[Elem];
	}
	yPos = elem.offsetTop;
	tempEl = elem.offsetParent;
	while (tempEl != null) {
  		yPos += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
	return yPos;
}

function findImage(name, doc) {
	var i, img;
	for (i = 0; i < doc.images.length; i++) {
    	if (doc.images[i].name == name) {
			return doc.images[i];
		}
	}
	for (i = 0; i < doc.layers.length; i++) {
    	if ((img = findImage(name, doc.layers[i].document)) != null) {
			img.container = doc.layers[i];
			return img;
    	}
	}
	return null;
}

function getImage(name) {
	if (document.layers) {
    	return findImage(name, document);
	}
	return null;
}

function getImagePageLeft(img) {
	var x, obj;
	if (document.layers) {
    	if (img.container != null)
			return img.container.pageX + img.x;
		else
			return img.x;
  	}
	return -1;
}

function getImagePageTop(img) {
	var y, obj;
	if (document.layers) {
		if (img.container != null)
			return img.container.pageY + img.y;
		else
			return img.y;
	}
	return -1;
}

function getImagePageWidth(img) {
	var x, obj;
	if (document.layers) {
		return img.width;
	}
	return -1;
}

function getImagePageHeight(img) {
	var y, obj;
	if (document.layers) {
		return img.height;
	}
	return -1;
}

function getObjNN4(obj,name)
{
	var x = obj.layers;
	var foundLayer;
	for (var i=0;i<x.length;i++)
	{
		if (x[i].id == name)
		 	foundLayer = x[i];
		else if (x[i].layers.length)
			var tmp = getObjNN4(x[i],name);
		if (tmp) foundLayer = tmp;
	}
	return foundLayer;
}

function MM_preloadImages() { //v3.0
    var d = document; if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; }
    }
}

function MM_swapImgRestore() { //v3.0
    var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_findObj(n, d) { //v4.01
    var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
    }
    if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
    for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById) x = d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
    var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
        if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
}




// aca insertando
	var bC= '#FFFFFF';	var coloron='#ffffff';	var coloroff='#ffffff';
	var uMIB = 1; // use bullets on Menu Items
	var uMLB = 0; // use bullets on Menu Labels
	
	if (uMIB == 1) {
		var mIBOnSrc = "images/transparente.gif";
		var mIBOffSrc = "images/transparente.gif";

		var mIBW = 1;
		var mIBH = 18;
		
		mIBOff= new Image(mIBW,mIBH);
		mIBOff.src=mIBOffSrc;
		mIBOn= new Image(mIBW,mIBH);
		mIBOn.src=mIBOnSrc;
		
		var sMBOnSrc = "images/transparente.gif";
		var sMBOffSrc = "images/transparente.gif";
		var sMBW = 1;
		var sMBH = 19;		
	
		sMBOff= new Image(sMBW,sMBH);
		sMBOff.src=sMBOffSrc;
		sMBOn= new Image(sMBW,sMBH);
		sMBOn.src=sMBOnSrc;	
	}
		
	if (uMLB == 1) {
		var mLBOnSrc = "images/bullets/header_on.gif";
		var mLBOffSrc = "images/bullets/header_off.gif";
		var mLBW = 11;
		var mLBH = 11;
	
		mLBOff= new Image(mLBW,mLBH);
		mLBOff.src=mLBOffSrc;
		mLBOn= new Image(mLBW,mLBH);
		mLBOn.src=mLBOnSrc;
	}
	
	var sMASrc = "images/bullets/sub_menu.gif";
	var sMAW = 1;
	var sMAH = 19;	
	
	sMA= new Image(sMAW,sMAH);
	sMA.src=sMASrc;

	var ns4 = document.layers;
	var op5 = (navigator.userAgent.indexOf("Opera 5")!=-1) ||(navigator.userAgent.indexOf("Opera/5")!=-1);
	var currentMenu = 0;
	var currentMenuItem = 0;
	
	//var bC = '#000000';
	
	var timeOn = null;
	var numMenus = 40;
	var numTiers = 0;
	var tier = new Array(numMenus);
	var offColours = new Array(numMenus);
	var onColours = new Array(numMenus);
	var menuActive = new Array(numMenus);
	var imageMenu = new Array(numMenus);
    for(counter = 1; counter <= numMenus; counter++) {
		menuActive[counter] = false;
		imageMenu[counter] = false;
	}
	var myStyle = new Array(numMenus);
	var menuWidths = new Array(numMenus);
	
	var targetType = 'self';
	var targetFrame = '_self';

