var db = document.all ? '<div style="width:100px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' : '&nbsp;';
var de = document.all ? '</div>' : '&nbsp;&nbsp;&nbsp;';
var f0 = db+'Big Brake Kits'+de;
var f1 = db+'Stage 1&2 Upgrades'+de;
var f2 = db+'High Performance Pads'+de;
var f3 = db+'Stainless Steel Lines'+de;
var f4 = db+'Direct Replacement Rotors'+de;
var f5 = db+'Brake Fluid'+de;
var f6 = db+'Brake Accessories & Services'+de;
var f7 = db+'StopTech Merchandise'+de;
var f8 = db+'Rotors'+de;
var f9 = db+'Performance Test Wins'+de;
var f10 = db+'Product Search'+de;
var f11 = db+'Pro Racing Successes'+de;
var f12 = db+'StopTech Patents'+de;
var f13 = db+'T&Uuml;V'+de;
var f14 = db+'Wheel Fitment'+de;
var f15 = db+'Technical White Papers'+de;
var f16 = db+'Installation Manuals'+de;
var f17 = db+'FAQs'+de;
var f18 = db+'Race Teams'+de;
var f19 = db+'Street Cars'+de;
var f20 = db+'Customer Quotes'+de;
var f21 = db+'Product Search'+de;
var f22 = db+'Log In or Register'+de;
var f23 = db+'Find a Local Reseller'+de;
var f24 = db+'Terms and Conditions'+de;
var f25 = db+'About StopTech'+de;
var f26 = db+'News'+de;
var f27 = db+'Contact Us'+de;
var f28 = db+'Employment Opportunities'+de;
var f29 = db+'Links'+de;
var f30 = db+'Privacy'+de;
var f31 = db+'Big Brake Kits'+de;
var f32 = db+'Pad Wear Sensor'+de;
var f33 = db+'View Shopping Cart'+de;
var f35 = db+'Rotor Drive Pins'+de;
var f36 = db+'Download Catalog'+de;
var f38 = db+'StopTech Racing Passion'+de;

var COOL_NODES = [
	
	['<img src="/menu/n0.gif" width=211 height=38 border=0>', "/", null,],
	
	['<img src="/menu/n1.gif" width=211 height=37 border=0>', null, null,
   	f([f0, "/Products/BBK/summary.shtml", null]), 	
		f([f1, "/Products/stage1_2_upgrades.shtml", null]),		
		f([f8, "/Products/rotors.shtml", null]),
		f([f2, "/Products/high_performance_pads.shtml", null]),
		f([f3, "/Products/stainless_steal_lines.shtml", null]),
		f([f5, "/Products/brake_fluid.shtml", null]),
		f([f6, "/Products/brake_accessories.shtml", null]),
		f([f7, "/Products/merchandise.shtml", null])
	],
	
	['<img src="/menu/n5.gif" width=211 height=38 border=0>', null, null,
		//f([f21, "/user/searchproducts.asp", null]),
		f([f21, "javascript: popupApp();", null]),
		f([f23, "/ordering/local_dealer.shtml", null]),
		f([f24, "/ordering/terms_conditions.shtml", null]),
		f([f36, "/ordering/download.shtml", null])
	],

	['<img src="/menu/n2.gif" width=211 height=38 border=0>', null, null,
		f([f9, "/proven_technology/test_wins.shtml", null]),
		f([f11, "/proven_technology/pro_racing_success.shtml", null]),
		f([f12, "/proven_technology/patents.shtml", null]),
		f([f13, "/proven_technology/tuev.shtml", null])
	],

	['<img src="/menu/n3.gif" width=211 height=38 border=0>', null, null,
		f([f14, "/tech_info/wheel_fitment.shtml", null]),
		f([f15, "/tech_info/tech_white_papers.shtml", null]),
		[f16, null, null,
			f([f31, "/tech_info/bbk_manuals.shtml", null]),
			f([f35, "/tech_info/rotor_drive_pin_manuals.shtml", null]),
			f([f32, "/tech_info/padwear_manuals.shtml", null])
 		],
		f([f17, "/tech_info/faqs.shtml", null])
	],

	['<img src="/menu/n4.gif" width=211 height=38 border=0>', null, null,
		f([f18, "/satisfied_customers/race_team.shtml", null]),
		f([f19, "/satisfied_customers/street_cars.shtml", null]),
		f([f20, "/satisfied_customers/customer_quotes.shtml", null])
	],

	['<img src="/menu/n6.gif" width=211 height=38 border=0>', null, null,
		f([f25, "/company_info/about.shtml", null]),
		f([f26, "/company_info/news.shtml", null]),
		f([f27, "/company_info/contact.shtml", null]),
		f([f38, "/company_info/racing.shtml", null]),
		f([f28, "/company_info/employment.shtml", null]),
		f([f29, "/company_info/links.shtml", null]),
		f([f30, "/company_info/privacy.shtml", null])
	],
	
	
];

function f(node) {
   if (location.href.indexOf(node[1].replace("../", "/")) > -1) node[0] = '<font style="color:#FF0000; background-color: #ffffff;">' + node[0] + '</font>';
   return node;
}

function func1(node) {
   if (location.href.indexOf("/user/Login.asp") > -1) node[0] = '<font style="color:#FF0000; background-color: #ffffff;">' + node[0] + '</font>';
   return node;
}

//-------------------------------------
//Parts App Popup
function popupApp() {
var winPos = ',top='+((screen.height / 2) - 200)+',left='+((screen.width / 2) - 300);
newWin=window.open("http://www.powerslot.com/partsapp/index.php?c=stoptech","partsapp","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=545,height=350"+winPos);
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}
//-------------------------------------