if (loggedIn) { 
	loginStr = "Log Out";
	loginUrl = lfRoot + "logout.php";
} else {
	loginStr = "Log In&nbsp;";
	loginUrl = lfRoot + "login.php";
}

var isHorizontal=1;

var topDX = 0;  
var topDY = 0; 

var pathPrefix="";

var DX = 0; 
var DY = 0; 

var iconTopWidth  = 150;
var iconTopHeight = 22;
var subMenuAlign = "left";
var moveImage  = "";
var moveWidth      = 0;
var moveHeight      = 22;

var blankImage="";
var fontStyle="bold 11px Verdana";
var fontColor=["#FFFFFF","blue"];
var fontDecoration=["none","none"];

var itemBackColor=["",""];
var itemBorderWidth=0;
var itemAlign="left";
var itemBorderColor=["",""];
var itemBorderStyle=["solid","solid"];
var itemBackImage=["",""];

var menuBackImage="";
var menuBackColor="";
var menuBorderColor="#000000";
var menuBorderStyle="";
var menuBorderWidth=0;
var transparency=100;
var transition=-1;
var transDuration=0;
var shadowColor="";
var shadowLen=0;
var menuWidth="0px";  // NEW (NN% or NNpx. Default - 0px)

var statusString="link";
var iconWidth=0;
var iconHeight=22;
var arrowImageMain=["",""];
var arrowImageSub=["",""]; // NEW
var arrowWidth="1";
var arrowHeight="22";
var itemSpacing=0;
var itemPadding=0;
var itemWidth=0;

var separatorImage=lfSSLRoot + "img/menuSpine.jpg";
var separatorWidth="1";
var separatorHeight="22";
var separatorAlignment="";

var separatorVImage=lfSSLRoot + "img/menuSpine.jpg";
var separatorVWidth="1";
var separatorVHeight="22";

var movable=1;
var absolutePos=0;
var posX=20;
var posY=110;

var itemCursor = "hand";
var itemTarget = "_self";
var moveCursor = "move";

var floatable=0;
var floatIterations=5;

var pressedItem=-2;

var cssStyle=1;
ua = navigator.userAgent.toLowerCase(); 
if (ua.indexOf("safari")==-1) { 
var cssClass="topMenu";
} 


var itemStyles = [
   ["CSS=topItemNormal,topItemOver"],
   ["CSS=itemNormal,itemOver","itemWidth=150"],
   ["CSS=itemNormal,itemOver"],
];

var menuStyles = [
   ["CSS=topMenu"],
];

var menuItems = 
[
	["-"],
	["&nbsp;&nbsp;Pricing Info&nbsp;&nbsp;",lfRoot + "pricing/","","","Pricing Info",,"0",],
	["|&nbsp;&nbsp;&nbsp;Instant Pricing&nbsp;&nbsp;&nbsp;",lfRoot + "pricing/#1","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Turnaround Time",lfRoot + "pricing/#1a","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Custom Orders",lfRoot + "pricing/#2","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Prepress",lfRoot + "pricing/#3","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Corrections",lfRoot + "pricing/#4","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Re-Orders",lfRoot + "pricing/#5","","","",,"1",],		
	["|"],
	["-"],
	
	["&nbsp;&nbsp;&nbsp;Products&nbsp;&nbsp;&nbsp;",lfRoot + "products.php","","","Products",,"0",],
	["|&nbsp;&nbsp;&nbsp;Booklets",lfRoot + "products.php?cat=1&item=1","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Bookmarks",lfRoot + "products.php?cat=2&item=1","","","",,"1",],	
	["|&nbsp;&nbsp;&nbsp;Brochures",lfRoot + "products.php?cat=3&item=1","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Business Cards",lfRoot + "products.php?cat=4&item=1","","","",,"1",],	
	["|&nbsp;&nbsp;&nbsp;Calendars",lfRoot + "products.php?cat=5&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Catalogs",lfRoot + "products.php?cat=1&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Door Hangers",lfRoot + "products.php?cat=6&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Envelopes",lfRoot + "products.php?cat=7&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Flyers",lfRoot + "products.php?cat=3&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Greeting Cards",lfRoot + "products.php?cat=8&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Letterhead",lfRoot + "products.php?cat=9&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Newsletters",lfRoot + "products.php?cat=10&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Postcards",lfRoot + "products.php?cat=11&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Posters",lfRoot + "products.php?cat=12&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Presentation Folders",lfRoot + "products.php?cat=13&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Rack Cards",lfRoot + "products.php?cat=14&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Sell Sheets",lfRoot + "products.php?cat=3&item=1","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Statement Stuffers",lfRoot + "products.php?cat=15&item=1","","","",,"1",],		
	
	["-"],
	["&nbsp;&nbsp;&nbsp;Custom&nbsp;&nbsp;&nbsp;",lfRoot + "custom.php","","","Custom",,"0",],
	["|"],
		
	["-"],
	["&nbsp;&nbsp;&nbsp;Support&nbsp;&nbsp;&nbsp;",lfRoot +"help.php","","","Support",,"0",],
	["|&nbsp;&nbsp;&nbsp;How to Order",lfRoot + "support/howToOrder.php","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;File Prep Tips",lfRoot + "support/prepTips.php","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;FAQs",lfRoot + "support/faq.php","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;About Us",lfRoot + "about.php","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Glossary",lfRoot + "support/glossary.php","","","",,"1",],	
	["|&nbsp;&nbsp;&nbsp;Downloads",lfRoot + "support/downloads.php","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Contact Us&nbsp;&nbsp;&nbsp;",lfRoot + "contact.php","","","Contact Us",,"1",],
	["|"],
	
	["-"],
	["&nbsp;&nbsp;&nbsp;My Account&nbsp;&nbsp;&nbsp;",lfRoot + "account/","","","My Account",,"0",],
	["|&nbsp;&nbsp;&nbsp;View My Orders",lfRoot + "account/orders.php","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Upload Files",lfRoot + "upload.php","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Approve Proofs",lfRoot + "account/proofApprove.php","","","",,"1",],		
	["|&nbsp;&nbsp;&nbsp;Change My Password",lfRoot + "account/changePW.php","","","",,"1",],
	["|&nbsp;&nbsp;&nbsp;Edit My Account Info",lfRoot + "account/editInfo.php","","","",,"1",],
	["|"],

	["-"],
	["&nbsp;&nbsp;&nbsp;" + loginStr + "&nbsp;&nbsp;&nbsp;",loginUrl,"","",loginStr,,"0",],
];

apy_init();
