var BLANK_IMAGE="/~wfcsur/images/b.gif";
//keywords
var code="code";var url="url";var sub="sub";
//styles
var color = {"border":"#e5e5e5",  shadow:"#666", "bgON":"white","bgOVER":"#B6BDD2"};
var css = {"ON":"clsCMOn", "OVER":"clsCMOver"};

var STYLE = {"border":1,  "shadow": 2, "color":color, "css":css};

var STYLE_INT = {"border":1,  "shadow": 2, "color":color, "css":css};

winW = (window.innerWidth-630)/2.;
if (!winW) winW=20;
if (winW < 10) winW=10;

var IMAGED_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:"white",// background color for the items
		bgOVER:"#B6BDD2"// background color for the item which is under mouse right now
	},
	css:{
		ON:"clsCMOnImaged",// CSS class for items
		OVER:"clsCMOverImaged"// CSS class  for item which is under mouse
	}
};


//items and formats
var MENU_ITEMS =
[
	{"pos":[150,96], "itemoff":[0,89], "leveloff":[21,0], "style":IMAGED_STYLE, "size":[22,90]},
	{code:"Home", url:"/~wfcsur/",format:{"size":[22,80]}},
	{code:"Science",format:{"itemoff":[0,79]},
		sub:[
			{"itemoff":[21,0], "leveloff":[21,0], "size":[22,120], "style": STYLE},
			{code:"WFS Overview", url:"/~wfcsur/science/overview"},
			{code:"Science Programs", url:"/~wfcsur/science/sciprog/"},
			{code:"Survey Fields", url:"/~wfcsur/science/fields"},
			{code:"Publications", url:"/~wfcsur/science/publications"}
		]
	},
	{code:"Data Access",
		sub:[
			{"itemoff":[21,0], "leveloff":[21,0], "style": STYLE},
			{code:"Archive", url:"/~wfcsur/archive/"},
			{code:"Release", url:"/~wfcsur/release/"},
			{code:"Cookbook", url:"/~wfcsur/release/cookbook/"},
			{code:"DQC Interface", url:"/~wfcsur/data/dqc/"}
		]
	},
	{code:"Image Gallery", url:"/~wfcsur/gallery", format:{"size":[22,110]}},
	{code:"Technical",format:{"itemoff":[0,109]},
		sub:[
			{"itemoff":[21,0], "leveloff":[21,0], "size":[22,100], "style": STYLE},
			{code:"ING Home Page", url:"http://www.ing.iac.es", target: "other"},
			{code:"WFS obs notes", url:"/~wfcsur/technical/notes"},
			{code:"WFC CCD", url:"/~wfcsur/technical/ccd"},
			{code:"WFC foibles", url:"/~wfcsur/technical/foibles"},
			{code:"WFC filters", url:"/~wfcsur/technical/filters"},
			{code:"WFC pipeline", url:"/~wfcsur/technical/pipeline"},
			{code:"Observing logs", url:"/~wfcsur/technical/logs"},
			{code:"Photometry", url:"/~wfcsur/technical/photom",
				sub:[
					{"leveloff":[0,102], "size":[22,110], "style": STYLE},
					{code:"Colour Equations", url:"/~wfcsur/technical/photom/colours"},
					{code:"Zero Points", url:"/~wfcsur/technical/photom/zeros"}
				]
			},
			{code:"Flats+Biases", url:"/~wfcsur/technical/flats"},
			{code:"Defringing", url:"/~wfcsur/technical/defringing"},
			{code:"Astrometry", url:"/~wfcsur/technical/astrometry"}
		]
	},
	{code:"What's new", url:"/~wfcsur/news/"},
	{code:"Help",format:{"size":[22,80]},
		sub:[
			{"itemoff":[21,0], "leveloff":[21,0], "size": [22,90], "style": STYLE},
			{code: "Search Site", url:"/~wfcsur/sitesearch/"},
			{code: "F.A.Q.", url:"/~wfcsur/faq/"},
			{code: "Web Changes", url:"/~wfcsur/news/newpages.php"},
			{code: "About", url:"/~wfcsur/about/"}
		]
	}
];

/////////////////////////////////////////////////////////////////////////////

var MENU_ITEMS_INT =
[
	{"pos":[150,96], "itemoff":[0,89], "leveloff":[21,0], "style":IMAGED_STYLE, "size":[22,90]},
	{code:"Home", url:"/~wfcsur/",format:{"size":[22,80]},
		sub:[
			{"itemoff":[21,0], "leveloff":[26,0], "size":[22,120], "style": IMAGED_STYLE},
			{code: "Internal Pages", url:"/~wfcsur/internal"},
			{code: "BBClone", url:"/~wfcsur/bbclone"}
		]
},
	{code:"Science",format:{"itemoff":[0,79]},
		sub:[
			{"itemoff":[21,0], "leveloff":[21,0], "size":[22,120], "style": STYLE},
			{code:"WFS Overview", url:"/~wfcsur/science/overview"},
			{code:"Science Programs", url:"/~wfcsur/science/sciprog/"},
			{code:"Survey Fields", url:"/~wfcsur/science/fields"},
			{code:"Publications", url:"/~wfcsur/science/publications"}
		]
	},
	{code:"Data Access",
		sub:[
			{"itemoff":[21,0], "leveloff":[21,0], "style": STYLE},
			{code:"Archive", url:"/~wfcsur/archive/"},
			{code:"Release", url:"/~wfcsur/release/"},
			{code:"Cookbook", url:"/~wfcsur/release/cookbook/"},
			{code:"DQC Interface", url:"/~wfcsur/data/dqc/"}
		]
	},
	{code:"Image Gallery", url:"/~wfcsur/gallery", format:{"size":[22,110]}},
	{code:"Technical",format:{"itemoff":[0,109]},
		sub:[
			{"itemoff":[21,0], "leveloff":[21,0], "size":[22,100], "style": STYLE},
			{code:"ING Home Page", url:"http://www.ing.iac.es", target: "other"},
			{code:"WFS obs notes", url:"/~wfcsur/technical/notes"},
			{code:"WFC CCD", url:"/~wfcsur/technical/ccd"},
			{code:"WFC foibles", url:"/~wfcsur/technical/foibles"},
			{code:"WFC filters", url:"/~wfcsur/technical/filters"},
			{code:"WFC pipeline", url:"/~wfcsur/technical/pipeline"},
			{code:"Observing logs", url:"/~wfcsur/technical/logs"},
			{code:"Photometry", url:"/~wfcsur/technical/photom",
				sub:[
					{"leveloff":[0,102], "size":[22,110], "style": STYLE},
					{code:"Colour Equations", url:"/~wfcsur/technical/photom/colours"},
					{code:"Zero Points", url:"/~wfcsur/technical/photom/zeros"}
				]
			},
			{code:"Flats+Biases", url:"/~wfcsur/technical/flats"},
			{code:"Defringing", url:"/~wfcsur/technical/defringing"},
			{code:"Astrometry", url:"/~wfcsur/technical/astrometry"}
		]
	},
	{code:"What's new", url:"/~wfcsur/news/"},
	{code:"Help",format:{"size":[22,80]},
		sub:[
			{"itemoff":[21,0], "leveloff":[21,0], "size": [22,90], "style": STYLE},
			{code: "Search Site", url:"/~wfcsur/sitesearch/"},
			{code: "F.A.Q.", url:"/~wfcsur/faq/"},
			{code: "Web Changes", url:"/~wfcsur/news/newpages.php"},
			{code: "About", url:"/~wfcsur/about/"}
		]
	}
];

