// Initialize WebDDM
function initWebDDM ()
{
	
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
  winH = window.innerHeight;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
  winH = document.body.offsetHeight;
 }
}

	// Set arrow HTML
	var arrowDown = '<span style="position:relative;top:0;left:5;">'+
		
		'</span>';
	var arrowLeft = '<span style="position:relative;top:0;left:5;">'+
		
		'</span>';
		var menwid=148;

	//var menwid=screen.width*.15;
	// Begin base menu
	var menu = {
		'position':'relative',
		'top':0,
		'left':0,
		'width':menwid-7,
		'height':250,
		'expand_menu':'auto',

		'items':{
			'top':0,
			'left':0,
			'width':menwid-3,
			'height':275,
			
			// Background item
			'background-item':{
			'width':menwid-3, 'height':237, 'left':0, 'top':0,
			'class':'container'
			},
			
			1:{
				'content':'Home' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/">Home</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':3, 'offsetTop':3,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},

			2:{
				'content':'Restaurants' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/option/com_directory/Itemid/26/">Restaurants</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},
			3:{
				'content':'Food Sources' + arrowLeft,
				'content_menuopen':'<a class="mainmenu_rollover" href="#">Food Sources</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_menuopen':'mainmenu_rollover',
				
				'items':{
					'alphaTrans':{
					'maxOpacity':100, // Maximum opacity, 0-100
					'delta':5, // Change in opacity per update
					'delay':10, // Delay between changing opacity
					'inDelay':10, // Optional if delay is set; delay for fading in
					'outDelay':10, // Optional if delay is set; delay for fading in
					'direction':'both' // Direction of fading: in,out,both
				},
					'top':0,
					'left':menwid-5,
					'width':menwid-9,
					'height':70,

					// Background item
					'background-item':{
						'width':menwid-9, 'height':112, 'left':0, 'top': 0,
						'class':'container'
					},

					1:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/option/com_content/task/view/id/68/Itemid/107/">Personal Chefs</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/option/com_content/task/view/id/68/Itemid/107/">Personal Chefs</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':3, 'top':0,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					2:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/catering/go/">Catering</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/catering/go/">Catering</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					3:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/culinary/go/">Culinary Schools</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/culinary/go/">Culinary Schools</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					4:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/grocery/go/">Grocery Stores</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/grocery/go/">Grocery Stores</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					}
				}
			},
			4:{
				'content':'Foodsong Community' + arrowLeft,
				'content_menuopen':'<a class="mainmenu_rollover" href="#">Foodsong Community</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_menuopen':'mainmenu_rollover',

				'items':{
					'alphaTrans':{
					'maxOpacity':100, // Maximum opacity, 0-100
					'delta':5, // Change in opacity per update
					'delay':10, // Delay between changing opacity
					'inDelay':10, // Optional if delay is set; delay for fading in
					'outDelay':10, // Optional if delay is set; delay for fading in
					'direction':'both' // Direction of fading: in,out,both
				},
					'top':0,
					'left':menwid-5,
					'width':menwid-9,
					'height':128,

					// Background item
					'background-item':{
						'width':menwid-9, 'height':130, 'left':0, 'top': 0,
						'class':'container'
					},


					1:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/option/com_loudmouth/task/forum/id/1/Itemid/115/">Food Forum</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/option/com_loudmouth/task/forum/id/1/Itemid/115/">Food Forum</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':3, 'top':0,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					2:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/option/com_loudmouth/task/forum/id/2/Itemid/115/">Gourmet Food Forum</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/option/com_loudmouth/task/forum/id/2/Itemid/115/">Gourmet Food Forum</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					3:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/wine/yes/">Vino & Company</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/wine/yes/">Vino & Company</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					4:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/brewtalk/yes/">AZ Brew Talk</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/brewtalk/yes/">AZ Brew Talk</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					5:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/coffee/go/">Java Jen</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/coffee/go/">Java Jen</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					}
				}
			},
			5:{
				'content':'Recipes' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/recipes/go/">Recipes</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},
			6:{
				'content':'Events' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index.php?calendar">Events</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},
			7:{
				'content':'\'Round Town' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index.php?option=com_copperminevis&Itemid=138&place=gallery">\'Round Town</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},
			8:{
				'content':'Job Opps' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/avaljobs/go/">Job Opps</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},
			9:{
				'content':'History' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/option/com_content/task/view/id/17/Itemid/31/">History</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},
			10:{
				'content':'Bookstore' + arrowLeft,
				'content_menuopen':'<a class="mainmenu_rollover" href="#">Bookstore</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_menuopen':'mainmenu_rollover',

				'items':{
					'alphaTrans':{
					'maxOpacity':100, // Maximum opacity, 0-100
					'delta':5, // Change in opacity per update
					'delay':10, // Delay between changing opacity
					'inDelay':10, // Optional if delay is set; delay for fading in
					'outDelay':10, // Optional if delay is set; delay for fading in
					'direction':'both' // Direction of fading: in,out,both
				},
					'top':0,
					'left':menwid-5,
					'width':menwid-9,
					'height':108,

					// Background item
					'background-item':{
						'width':menwid-9, 'height':150, 'left':0, 'top': 0,
						'class':'container'
					},


					1:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/bookstore/cookbooks/">Cookbooks</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/bookstore/cookbooks/">Cookbooks</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':3, 'top':0,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					2:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/bookstore/family/">Cooking & Family</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/bookstore/family/">Cooking & Family</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					3:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/bookstore/dieting/">Dieting</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/bookstore/dieting/">Dieting</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					4:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/bookstore/wine/">Wine & Cheese</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/bookstore/wine/">Wine & Cheese</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					5:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/bookstore/chef/">Chef</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/bookstore/chef/">Chef</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					},
					6:{
						'content':'<aa><a class="mainmenu_off2" href="http://www.foodsong.com/index/bookstore/general/">General Interest</a></aa>',
						'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/bookstore/general/">General Interest</a>',
						'cursor': 'hand',
						'width':menwid-15, 'height':20, 'offsetLeft':0, 'offsetTop':22,
						'class':'mainmenu_off2',
						'class_rollover':'mainmenu_rollover',
						'css_rollover': 'font-weight: normal;'
					}
				}
			},
			11:{
				'content':'Community Charity' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/charity/">Community Charity</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			},
			12:{
				'content':'Suggestion Box' + arrowLeft,
				'content_rollover':'<a class="mainmenu_rollover" href="http://www.foodsong.com/index/suggestion/go/">Suggestion Box</a>',
				'cursor': 'hand',
				'width':menwid-9, 'height':20, 'offsetLeft':0, 'offsetTop':22,
				'class':'mainmenu_off',
				'class_rollover':'mainmenu_rollover'
			}
		}
	};
	
	var WebDDM_classic = new WebDDM('menu', menu);
}
