var isIE = (navigator.appName == "Microsoft Internet Explorer") ? true : false;
var tempId = document.getElementById('menu2Container')
var menuOffsetTop = (isIE) ? tempId.style.posTop : tempId.offsetTop;

var dropDownWidth2 = (isIE) ? 155 : 155;
		// the number you pass to initLeft doesn't matter since it will get
		// changed onactivate
if(isIE)
	tempId.style.paddingLeft = "0px";
else	
	tempId.style.paddingLeft = "244px";		

var myMenu2 = new ypSlideOutMenu("menu2", "down","", menuOffsetTop, dropDownWidth2, 50)

 ypSlideOutMenu.writeCSS();


var currheight;
window.onresize = function(){
	if(isIE){
		if(currheight != document.documentElement.clientHeight){
			tempId = document.getElementById('menu2Container');
			menuOffsetTop = tempId.style.posTop;
			myMenu2 = new ypSlideOutMenu("menu2", "down","", menuOffsetTop, 155, 50)
		}
		currheight = document.documentElement.clientHeight;

	}else{
		
		tempId = document.getElementById('menu2Container');
		menuOffsetTop = tempId.offsetTop;
		
		// the number you pass to initLeft doesn't matter since it will get
		// changed onactivate
				
		myMenu2 = new ypSlideOutMenu("menu2", "down","", menuOffsetTop, 155, 50);
		
	}
}
