/*
Filename: pulldown_menus.js
Desc:     Pulldown menu definitiosn for Stone Ridge Capital
Author:   Relevant Arts Enterprise, Inc. <http://www.relevantarts.com/>
          John A. Lock <jlock@relevantarts.com>
Created:  2002-Mar-14
Modified: 2007-May-07
*/

menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}

effect = "Alpha(style=0,opacity=100)" // Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters

timegap=500						// The time delay for menus to remain visible
followspeed=5					// Follow Scrolling speed
followrate=40					// Follow Scrolling Rate
suboffset_top=10;			// Sub menu offset Top position 
suboffset_left=0;			// Sub menu offset Left position

MenuStyle1=[					// Menu Text Properties Array
"ffffff",							// Off Font Color
"B49543",							// Off Back Color
"000000",							// On Font Color
"ffffff",							// On Back Color
"000000",							// Border Color
12,										// Font Size
"normal",							// Font Style
"bold",								// Font Weight
"verdana,arial,helvetica,sans-serif",	// Font Face
2,										// Padding
"img/arrow.gif",			// Sub Menu Arrow
,						        	// 3D Border & Separator
, 				        		// 3D High Color
,					         		// 3D Low Color
];

/*
addmenu(menu=[				// This is a sample array that contains menu properties and details
"samplemenu",					// Menu Name
76,										// Top X position
307,									// Left Y postion
160,									// Width
1,										// Border Width
,											// Screen Position - here you can use "center;left;right;middle;top;bottom"
MenuStyle1,						// Properties Array - this is set higher up, as above
,											// Always Visible - allows the menu item to be visible at all time
,											// Alignment - sets the menu elements alignment, HTML values are valid here for example: left, right or center
effect,											// Filter - Text variable for setting transitional effects on menu activation
,											// Follow Scrolling - Tells the menu item to follow the user down the screen
, 										// Horizontal Menu - Tells the menu to be horizontal instead of top to bottom style
,											// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page
,											// Position of sub image left:center:right:middle:top:bottom
,											// Show an image on top menu bars indicating a sub menu exists below
,											// Reserved for future use
,											// Reserved for future use
,											// Reserved for future use
,											// Reserved for future use
,											// Reserved for future use
,											// Reserved for future use
// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"Menu Item 1","firstitem.html",,,1
,"Menu Item 2","show-menu=submenuname",,,1
,"Menu Item 3","thirditem.pdf target=NewWin",,,1
]);
*/

// Set some default values
var RealWidth = 0;

// Get the actual window width depending on browser
(navigator.appName.indexOf("Netscape") != -1) ? RealWidth = window.innerWidth + 6 : RealWidth = document.body.scrollWidth;

// Set the X coordinate of the menu based on window width
Offset = 402;
forsaleX = ((RealWidth - 895) / 2) + Offset;
if (forsaleX < Offset) { forsaleX = Offset }
aboutX = forsaleX + 76;
servicesX = aboutX + 66;
clientsX = servicesX + 77;

addmenu(menu=["forsale",33,forsaleX,135,1,,MenuStyle1,,,effect,,,,,,,,,,,,
,"2600 Prado Lane","forsale/2600prado_marietta.html",,,1
]);

addmenu(menu=["about",33,aboutX,95,1,,MenuStyle1,,,effect,,,,,,,,,,,,
,"company","about.html",,,1
,"founder","founder.html",,,1
,"transactions","transactions.php",,,1
]);

addmenu(menu=["services",33,servicesX,85,1,,MenuStyle1,,,effect,,,,,,,,,,,,
,"overview","services.html",,,1
,"philosophy","mission.html",,,1
]);

addmenu(menu=["clients",33,clientsX,95,1,,MenuStyle1,,,effect,,,,,,,,,,,,
,"testimonials","clients.html",,,1
,"transactions","transactions.php",,,1
,"client login","login.php",,,1
]);

dumpmenus();

