var NumOfRoot=8,BgColor="#ff3300",FontColor="white",MouseOver="black",FontFamily="Verdana",FontSize=8,TopFrame="nav",TrgtFrame="space",BaseURL="/",Timer=null;
Menu1=new Array("Home","main.htm",0,20,60);
Menu2=new Array("About Us","abtus/aboutus2.htm",3,20,80);
Menu2_1=new Array("Mission Statement","abtus/mission.htm",0,20,120);	
Menu2_2=new Array("History","abtus/history2.htm",0,20,120);
Menu2_3=new Array("Facilities","abtus/facilities.htm",0,20,120);
Menu3=new Array("Capabilities","cpb/overview.htm",7,20,100);
Menu3_1=new Array("Innovations","cpb/innovations.htm",0,20,150);	
Menu3_2=new Array("Product Development","cpb/product_develop.htm",0,20,150);	
Menu3_3=new Array("Technical Services","cpb/technical_serv.htm",0,20,150);	
Menu3_4=new Array("Technologies","cpb/Tech/overview.htm",5,20,150);	
Menu3_4_1=new Array("Molding","cpb/Tech/molding.htm",0,20,100);
Menu3_4_2=new Array("Lining","cpb/Tech/lining.htm",0,20,100);	
Menu3_4_3=new Array("Decorating","cpb/Tech/decorating.htm",0,20,135);	
Menu3_4_4=new Array("Assembly","cpb/Tech/assembly.htm",0,20,100);	
Menu3_4_5=new Array("Extrusion","cpb/Tech/extrusion.htm",0,20,135);				
Menu3_5=new Array("Distribution & Inventory","cpb/dist.htm",0,20,150);	
Menu3_6=new Array("Customer Services","cpb/custserv.htm",0,20,150);	
Menu3_7=new Array("Major Markets","cpb/major_markets.htm",0,20,150);	
Menu4=new Array("Products","",3,20,80);
Menu4_1=new Array("OverView","prod/prod_overview.htm",0,20,150);	
Menu4_2=new Array("Advanced Search","pmsearch/pmsearch.aspx",0,20,150);
Menu4_3=new Array("Special Offers","prod/overstocklist.htm",0,20,150);
Menu5=new Array("News","",2,20,60);
Menu5_1=new Array("Captions","news/captions.htm",0,20,80);
Menu5_2=new Array("Articles","news/articles.htm",0,20,80);
Menu6=new Array("Resources","resources/resources.htm",0,20,75);
Menu7=new Array("Careers","",4,20,75);
Menu7_1=new Array("Working at Phoenix","careers/working_pci.htm",0,20,135);
Menu7_2=new Array("Benefits","careers/benefits.htm",0,20,135);
Menu7_3=new Array("Positions Available","careers/jobs.htm",0,20,135);
Menu7_4=new Array("Submit Your Resume","careers/submit_resume.htm",0,20,135);
Menu8=new Array("Contact Us","",3,20,80);
Menu8_1=new Array("Address & Phone","contactus/address_phone.htm",0,20,110);
Menu8_2=new Array("E-Mail Us","contactus/emailus.htm",0,20,110);
Menu8_3=new Array("Directions","directions.htm",0,20,110);

function UnLdd(){
	if(CloseTmr)clearTimeout(CloseTmr);
	Ldd=0;Crtd=0;SetMenu="0";
	if(IsIE){var M=FrstCntnr?FrstCntnr.FrstMbr:null;
		while(M!=null){if(M.CCn){MakeNull(M.CCn);M.CCn=null}M=M.PrvMbr}}
	LdTmr=setInterval("ChckLdd()",100)}
function UnLddTotal(){MakeNull(FrstCntnr);FrstCntnr=TopFrm=TrgtFrm=SLdAgnWin=CurOvr=CloseTmr=Trigger=null}
function MakeNull(P){
	var M=P.FrstMbr,Mi;
	while(M!=null){Mi=M;
		if(M.CCn){MakeNull(M.CCn);M.CCn=null}
		M.Cntnr=null;M=M.PrvMbr;Mi.PrvMbr=null;Mi=null}
	P.FrstMbr=null}
function ChckLdd(){
	if(!IsIE){if(TrgtFrm.document.body){clearInterval(LdTmr);Go()}}
	else if(TrgtFrm.document.readyState=="complete"){if(LdTmr)clearInterval(LdTmr);Go()}}
function Go(){
	if(!Ldd){
		Crtd=0;Ldd=1; 
		TopFrm=parent.frames[TopFrame];
		TrgtFrm=parent.frames[TrgtFrame];
		FWinW=IsIE?TopFrm.document.body.clientWidth:TopFrm.innerWidth;
		FWinH=IsIE?TopFrm.document.body.clientHeight:TopFrm.innerHeight;
		SWinW=IsIE?TrgtFrm.document.body.clientWidth:TrgtFrm.innerWidth;
		SWinH=IsIE?TrgtFrm.document.body.clientHeight:TrgtFrm.innerHeight;
		if(FrstCreat)FrstCntnr=CreateMenu("Menu",NumOfRoot,null);
		else ReCreateMenu();
		PosMenu(FrstCntnr,0,0);
		IniFlg=1;Initiate();Crtd=1;
		SLdAgnWin=IsIE?TrgtFrm.document.body:TrgtFrm;SLdAgnWin.onunload=UnLdd;
		if(IsIE)Trigger.onunload=UnLddTotal;
		FrstCreat=0;}}
function PosMenu(Ct,Tp,Lt){
	var Ti,Li,Hi,Mb=Ct.FrstMbr,CStl=Ct.style,MStl=Mb.style,MWt=parseInt(MStl.width)+3,MHt=parseInt(MStl.height),CWt=parseInt(CStl.width),CHt=parseInt(CStl.height),CCw,CCh,STp,SLt;
	RLvl++;
	if(RLvl==1)Tp=FWinH-CHt;
	if(RLvl==2)Tp=0;
	CStl.top=RLvl==1?Tp+"px":0;Ct.OrgTop=Tp;
	CStl.left=RLvl==1?Lt+"px":0;Ct.OrgLeft=Lt;
	if(RLvl==1){Hi=1;Li=CWt-MWt;Ti=0}
	else{Hi=Li=0;Ti=CHt-MHt}
	while(Mb!=null){
		MStl.left=Li+"px";
		MStl.top=Ti+"px";
		if(Mb.CCn){
			if(Hi){STp=Ti+MHt;SLt=Li}
			else{SLt=Li+0.8*MWt;    // submenu overlap .2
				STp=RLvl==1?Ti:Ti+0.2*MHt}  // submenu v overlap .2
			PosMenu(Mb.CCn,STp,SLt)}
		Mb=Mb.PrvMbr;
		if(Mb){	MStl=Mb.style;
			MWt=parseInt(MStl.width)+3;
			MHt=parseInt(MStl.height);
			Hi?Li-=MWt:Ti-=MHt}}
	RLvl--}
function Initiate(){
	if(IniFlg){Init(FrstCntnr);IniFlg=0;ShwFlg=0}}
function Init(CPt){
	var Mb=CPt.FrstMbr,MCSt=CPt.style;
	RLvl++;MCSt.visibility=RLvl==1?"visible":"hidden";CPt.Shw=RLvl==1?1:0;
	while(Mb!=null){if(Mb.MOver){Mb.MOver=0;Mb.style.color=FontColor};if(Mb.CCn)Init(Mb.CCn);Mb=Mb.PrvMbr}
	RLvl--}
function ClrAllChlds(Pt){
	var PSt,Pc;
	while(Pt){if(Pt.MOver){Pc=Pt;if(Pc!=CurOvr){Pt.MOver=0;Pt.style.color=FontColor}
		if(Pt.CCn){PSt=Pt.CCn.style;if(Pc!=CurOvr){PSt.visibility="hidden";Pt.CCn.Shw=0}ClrAllChlds(Pt.CCn.FrstMbr)}
		break}
	Pt=Pt.PrvMbr}}
function OpenLnk(){
	if(this.Arr[1]){this.MOver=0;this.style.color=FontColor;IniFlg=1;Initiate();
		this.Arr[1].indexOf("javascript:")!=-1?eval(this.Arr[1]):TrgtFrm.location.href=BaseURL+this.Arr[1]}}
function OpenMenu(){
	if(!Ldd||!Crtd)return;
	if(Timer)clearTimeout(Timer);
	var CCnt=this.CCn;
	CurOvr=this;IniFlg=0;ClrAllChlds(this.Ctnr.FrstMbr);
	if(!this.MOver){this.style.color=MouseOver;this.MOver=1}
	if(CCnt!=null&&!CCnt.Shw)Timer=setTimeout("UnFold()",800)}
function UnFold(){
	var P=CurOvr;
	var TS=IsIE?TrgtFrm.document.body.scrollTop:TrgtFrm.pageYOffset,LS=IsIE?TrgtFrm.document.body.scrollLeft:TrgtFrm.pageXOffset,CCnt=P.CCn,THt=parseInt(P.style.height),TWt=parseInt(P.style.width),TLt=parseInt(P.Ctnr.style.left),TTp=P.Lvl==1?0:parseInt(P.Ctnr.style.top);
	var CCW=parseInt(P.CCn.style.width),CCH=parseInt(P.CCn.style.height),CCSt=P.CCn.style,SLt=P.Lvl==1?CCnt.OrgLeft+TLt+LS:CCnt.OrgLeft+TLt,STp=P.Lvl==1?CCnt.OrgTop+TTp+TS:CCnt.OrgTop+TTp;
	if(!ShwFlg){ShwFlg=1;}
	CCSt.top=STp+"px";CCSt.left=SLt+"px";
	CCSt.visibility="visible"}
function CloseMenu(){
	if(!Ldd||!Crtd)return;
	if(this==CurOvr){if(Timer)clearTimeout(Timer);if(CloseTmr)clearTimeout(CloseTmr);IniFlg=1;CloseTmr=setTimeout("Initiate(CurOvr)",1000)}}
function MbrSetUp(MbC,PrMmbr,WMu,Wd,Ht){
	var DestFrame=RLvl==1?TopFrm:TrgtFrm;
	this.PrvMbr=PrMmbr;this.Ctnr=MbC;this.CCn=null;this.Lvl=RLvl;
	this.style.cursor=(this.Arr[1])?IsIE?"hand":"pointer":"default";
	this.value=this.Arr[0];
	this.style.color=FontColor;this.style.fontFamily=FontFamily;this.style.fontSize=FontSize+"pt";
	this.style.fontWeight=RLvl==1?"bold":"normal";this.style.fontStyle="normal";
	this.style.backgroundColor=BgColor;    
	this.style.textAlign="left";
	this.style.width=Wd-3+"px";this.style.height=Ht+"px";this.style.paddingLeft=3+"px";
	this.appendChild(DestFrame.document.createTextNode(this.Arr[0]));	
	if(IsIE){this.onmouseover=OpenMenu;this.onmouseout=CloseMenu;this.onclick=OpenLnk}
	else{this.addEventListener("mouseover",OpenMenu,false);this.addEventListener("mouseout",CloseMenu,false);
		this.addEventListener("click",OpenLnk,false)}}
function CreateMenu(MNm,No,Mcllr){
	RLvl++;
	var i,NOs,Mbr,W=0,H=0,PMb=null,WMnu=MNm+"1",MWd=eval(WMnu+"[4]"),MHt=eval(WMnu+"[3]"),DestFrame=RLvl==1?TopFrm:TrgtFrm;
	if(RLvl==1){for(i=1;i<No+1;i++){WMnu=MNm+eval(i);W=eval(WMnu+"[4]")?W+eval(WMnu+"[4]"):W+MWd}H=MHt}
	else{for(i=1;i<No+1;i++){WMnu=MNm+eval(i);H=eval(WMnu+"[3]")?H+eval(WMnu+"[3]"):H+MHt}W=MWd}
	var MbC=DestFrame.document.createElement("div");MbC.style.position="absolute";MbC.style.visibility="hidden";DestFrame.document.body.appendChild(MbC)
	MbC.style.width=W+"px";MbC.style.height=H+"px";
	if(IsIE){MbC.InnerString="";
		for(i=1;i<No+1;i++){WMnu=MNm+eval(i);MbC.InnerString+="<div id=\""+WMnu+"\" style=\"position:absolute;\"><\/div>"}
		MbC.innerHTML=MbC.InnerString}
	for(i=1;i<No+1;i++){WMnu=MNm+eval(i);NOs=eval(WMnu+"[2]");
		W=RLvl==1?eval(WMnu+"[4]")?eval(WMnu+"[4]"):MWd:MWd;
		H=RLvl==1?MHt:eval(WMnu+"[3]")?eval(WMnu+"[3]"):MHt;
		Mbr=DestFrame.document.createElement("div");	Mbr.style.position="absolute";Mbr.style.visibility="inherit";MbC.appendChild(Mbr)
		Mbr.Arr=eval(WMnu);
		Mbr.SetUp=MbrSetUp;Mbr.SetUp(MbC,PMb,WMnu,W,H);
		if(NOs)Mbr.CCn=CreateMenu(WMnu+"_",NOs,Mbr);
		PMb=Mbr}
	MbC.FrstMbr=Mbr;
	RLvl--;
	return(MbC)}
function ReCreateMenu(){
	var i,MenuStr,NumOfSub,Mbr=FrstCntnr.FrstMbr;RLvl++;
	for(i=NumOfRoot;i>0;i--){MenuStr="Menu"+eval(i);NumOfSub=eval(MenuStr+"[2]");if(NumOfSub)Mbr.CCn=CreateMenu(MenuStr+"_",NumOfSub,Mbr);Mbr=Mbr.PrvMbr}
	RLvl--}