
function setbuttons(){
	f = gid("pinfeatures");	
	if(!und(f)){
		var fd = gid("productfeatures");
		f.div = fd;
		addEvent(f,"click",selected);
	}
	
	s = gid("pinspecs");
	if(!und(s)){
		var sd = gid("productspecs");
		s.div = sd;
		addEvent(s,"click",selected);
	}
	e1 = gid("pinsequipment");
	if(!und(e1)){
		var ed1 = gid("productequipment");
		e1.div = ed1;
		addEvent(e1,"click",selected);
	}
	e2 = gid("pinoequipment");
	if(!und(e2)){
		var ed2 = gid("productequipment2");
		e2.div = ed2;
		addEvent(e2,"click",selected);
	}
	if(!und(f)){
		fd.style.display="";
	}else if(!und(s)){
		sd.style.display="";
	}else if(!und(e1)){
		ed1.style.display="";
	}else if(!und(e2)){
		ed2.style.display="";
	}

}
function selected(event){
	var xe = new myevent(event);
	var btn = xe.target;
	if(!hasClass(btn,"MainNavSelected")){
		if(!und(f)){
			removeClass(f,"MainNavSelected");
			f.div.style.display="none"
		}		
		if(!und(s)){
			removeClass(s,"MainNavSelected");
			s.div.style.display="none"
		}
		if(!und(e1)){
			removeClass(e1,"MainNavSelected");
			e1.div.style.display="none"
		}
		if(!und(e2)){
			removeClass(e2,"MainNavSelected");
			e2.div.style.display="none"
		}
		addClass(btn,"MainNavSelected");
		btn.div.style.display="";
	}
}
function openmoredtail(id,title){
	window.open('productfeatures2.jsp?fid='+id+'&title='+title, '_blank', 'scrollbars=yes,titlebar=no,toolbar=no,status=no,menubar=no,resizable=yes,location=no,width=700,height=800');
}
function opentour(url){
	window.open(url, '_blank', 'scrollbars=yes,titlebar=no,toolbar=no,status=no,menubar=no,resizable=yes,location=no,width=760,height=500');
}
function opencomp(id){
	//var loc = "/redirect.jsp"
	var url = "http://wizportal.catmms.com/wizportal/comsocc/jsp/comparableProducts.jsp?product_id="+id+"&marketing_org=10280336&unit_of_measure=Both&lang_id=en";
	//loc += "?url="+url;
	var newwin = window.open(url, '_blank', 'scrollbars=yes,titlebar=no,toolbar=no,status=no,menubar=no,resizable=yes,location=no,width=760,height=500');
	//newwin = window.open(url, '_blank', 'scrollbars=yes,titlebar=no,toolbar=no,status=no,menubar=no,resizable=yes,location=no,width=760,height=500');
	
	
}
	
