navPreLoaded = false;
imageBox = new Object();

function PreLoad() {
	imageBox.btn = new Array();


	imageBox.btn['products'] = new Array();
	imageBox.btn['products']['on'] = new Image();
	imageBox.btn['products']['on'].src = '/intuit/graphics/gnav_intuit_products_off.gif';
	imageBox.btn['products']['off'] = new Image();
	imageBox.btn['products']['off'].src = '/intuit/graphics/gnav_intuit_products_off.gif';
	
	
	navPreLoaded = true;	
}

function ImageOn (name,tabFlag) {
	if (!navPreLoaded) return;
	if (!tabFlag) document.images[name].src = imageBox.btn[name]['on'].src;
}

function ImageOff (name,tabFlag) {
	if (!navPreLoaded) return;
	if (!tabFlag) document.images[name].src = imageBox.btn[name]['off'].src;
}


if (navigator.appName.indexOf("Mic") != -1) {
		var menus = [
		new ypSlideOutMenu("menu1", "down", 415, 31, 170, 59*5.8),
		new ypSlideOutMenu("menu2", "right", 155, 201, 170, 40*5.5),
		new ypSlideOutMenu("menu3", "right", 155, 229, 170, 97),
		new ypSlideOutMenu("menu4", "right", 155, 454, 170, 97)
	]
	}
	else {
		var menus = [
		new ypSlideOutMenu("menu1", "down", 415, 31, 170, 59*5.8),
		new ypSlideOutMenu("menu2", "right", 155, 201, 170, 40*5.5),
		new ypSlideOutMenu("menu3", "right", 155, 229, 170, 97),
		new ypSlideOutMenu("menu4", "right", 155, 454, 170, 97)
	]
	}
	
	for (var i = 0; i < menus.length; i++) {
		menus[i].onactivate = new Function("document.getElementById('act" + i + "').className='active';");
		menus[i].ondeactivate = new Function("document.getElementById('act" + i + "').className='';");
	}

  ypSlideOutMenu.writeCSS();
