// Define url of navigation
// to use server variables ("http://"+location.host)
// to hard code "http://www.photospin.com"
// NonSecure URL
var ns = ("http://"+location.host);
// Secure URL
var s = ("https://"+location.host);

// To output variables display below
// document.write (ns+"<br>");
// document.write (s);

BLANK_IMAGE = '/menu/b.gif';

var STYLE = {
	border:0,			// item's border width, pixels; zero means "none"
	shadow:0,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#666666",	// color of the item border, if any
		shadow:"#DBD8D1",	// color of the item shadow, if any
		bgON:"#7B6BA5",		// background color for the items
		bgOVER:"#FDFDFD"	// background color for the item which is under mouse right now
	},
	css:{
		ON:"clsCMOn",		// CSS class for items
		OVER:"clsCMOver"	// CSS class  for item which is under mouse
	}
};

var SUB_STYLE = {
	border:0,			// item's border width, pixels; zero means "none"
	shadow:0,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#666666",	// color of the item border, if any
		shadow:"#DBD8D1",	// color of the item shadow, if any
		bgON:"transparent",		// background color for the items
		bgOVER:"transparent"	// background color for the item which is under mouse right now
	},
	css:{
		ON:"subMenu",	// CSS class for items
		OVER:"subMenuOver"	// CSS class  for item which is under mouse
	}
};

var MENU_ITEMS = [
	{pos:[0,0], itemoff:[0,97], leveloff:[18,0], style:STYLE, size:[18,99]},
	{code:"Search",url:ns+'/search/?page=home&amp;location=navbar&amp;source=nonsubscriber',format:{size:[18,97]}},
	{code:"Browse",url:ns+'/search/?page=volume&amp;location=navbar&amp;source=nonsubscriber',format:{itemoff:[0,97],size:[18,99]},
		sub:[
			{itemoff:[18,0],style:SUB_STYLE,size:[18,99]},
			{code:"Photos",url:ns+'/search/?page=volume&amp;category=1&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Illustrations",url:ns+'/search/?page=volume&amp;category=2&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Fonts",url:ns+'/search/?page=volume&amp;category=3&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Audio",url:ns+'/search/?page=results&amp;category=4&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Video",url:ns+'/search/?page=results&amp;category=5&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Inspiration",url:ns+'/search/?page=inspire&amp;location=navbar&amp;source=nonsubscriber'}
		]
	},
	{code:"Subscribe",url:s+'/join/?page=join&amp;location=navbar&amp;source=nonsubscriber',format:{itemoff:[0,99],size:[18,99]},
		sub:[
			{itemoff:[18,0],style:SUB_STYLE,size:[18,97]},
			{code:"Single",url:s+'/join/?page=join&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Multiple",url:s+'/join/?page=multiple&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Newsletters",url:ns+'/mail/?page=join&amp;location=navbar&amp;source=nonsubscriber'}
		]
	},
	{code:"Log-in",url:s+'/myspin/?page=login&amp;location=navbar&amp;source=nonsubscriber'},
	{code:"Lightbox",url:ns+'/lightbox/?page=home&amp;location=navbar&amp;source=nonsubscriber'},
	{code:"Store",url:s+'/store/?page=cart&amp;location=navbar&amp;source=nonsubscriber',format:{itemoff:[0,99],size:[18,97]},
		sub:[
			{itemoff:[18,0],style:SUB_STYLE,size:[18,97]},
			{code:"View Cart",url:s+'/store/?page=cart&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Checkout",url:s+'/store/?page=checkout&amp;location=navbar&amp;source=nonsubscriber'}
		]
	},
	{code:"Company",url:ns+'/about/',format:{itemoff:[0,97],size:[18,97]},
		sub:[
			{itemoff:[18,0],style:SUB_STYLE,size:[18,97]},
			{code:"Free Tips",url:ns+'/press/?page=archives&amp;name=Brushes%20as%20Stencils&amp;location=navbar&amp;source=nonsubscriber'},
            {code:"Articles",url:ns+'/press/?page=articles&amp;name=Royalty%20free%20stock%20subscription&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Press &amp;amp; News",url:ns+'/press/?page=press&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"International",url:ns+'/about/?page=international&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Partners",url:ns+'/about/?page=partners&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"About Us",url:ns+'/about/?page=company&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Privacy",url:ns+'/about/?page=privacy&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Agreement",url:ns+'/help/?page=agreement&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Terms of Use",url:ns+'/about/?page=legal&amp;location=navbar&amp;source=nonsubscriber'}
		]
	},
	{code:"Help",url:ns+'/help/?page=faq&amp;location=navbar&amp;source=nonsubscriber',format:{itemoff:[0,97],size:[18,97]},
		sub:[
			{itemoff:[18,0],style:SUB_STYLE,size:[18,97]},
			{code:"F.A.Q.",url:ns+'/help/?page=faq&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Suggestions",url:ns+'/help/?page=suggestions&amp;location=navbar&amp;source=nonsubscriber'},
			{code:"Contact",url:ns+'/help/?page=contact&amp;location=navbar&amp;source=nonsubscriber'}
		]
	}
];
