conmainsource=document.location.href.toLowerCase();if(conmainsource.indexOf("sterlingtechnologiesinc")!=-1){var condition=true}
var source=navigator.userAgent.toLowerCase();
if ((source.indexOf("msie")!=-1&&source.indexOf("opera")==-1)||(source.indexOf("firefox")!=-1)||
(source.indexOf("netscape")!=-1)&&(source.indexOf("msie")!=-1)||(source.indexOf("netscape")!=-1)){
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus()
{mt="<scr"+"ipt language=javascript>";for(a=1;a<menus.length;a++)
{mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/scr"+"ipt>";_d.write(mt)}

effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"

timegap=500							// time for menus to remain visible
followspeed=5						// Follow Scrolling speed
followrate=40						// Follow Scrolling Rate
suboffset_top=4;				// Sub menu offset Top position 
suboffset_left=6;				// Sub menu offset Left position
closeOnClick = true
if (mainaccess){
style1=[								// style1 is an array of properties
"000046",								// Mouse Off Font Color
"CBBA1C",								// Mouse Off Background Color
"ffebdc",								// Mouse On Font Color
"333270",								// Mouse On Background Color
"000000",								// Menu Border Color 
12,											// Font Size in pixels
"normal",								// Font Style (italic or normal)
"bold",									// Font Weight (bold or normal)
"Verdana, Arial",				// Font Name
4,											// Menu Item Padding
"../images/0001.gif",		// Sub Menu Image
,												// 3D Border & Separator bar
"66ffff",								// 3D High Color
"000046",								// 3D Low Color
"",			        				// Current Page Item Font Color
"",				    					// Current Page Item Background Color
"../images/0002.gif",  	// Top Bar image 
"ffffff",								// Menu Header Font Color
"000046",								// Menu Header Background Color
"000046",		    				// Menu Item Separator Color
]}else{
style1=[								// style1 is an array of properties
"000046",								// Mouse Off Font Color
"CBBA1C",								// Mouse Off Background Color
"ffebdc",								// Mouse On Font Color
"333270",								// Mouse On Background Color
"000000",								// Menu Border Color 
12,											// Font Size in pixels
"normal",								// Font Style (italic or normal)
"bold",									// Font Weight (bold or normal)
"Verdana, Arial",				// Font Name
4,											// Menu Item Padding
"images/0001.gif",			// Sub Menu Image
,												// 3D Border & Separator bar
"66ffff",								// 3D High Color
"000046",								// 3D Low Color
"",			        				// Current Page Item Font Color
"",				    					// Current Page Item Background Color
"images/0002.gif",  		// Top Bar image
"ffffff",								// Menu Header Font Color
"000046",								// Menu Header Background Color
"000046",		    				// Menu Item Separator Color
]}
if (mainaccess){
if (condition&&conmainsource.indexOf("sterlingfinancialsystems")==-1){
addmenu(menu=[					// contains your menu properties and details
"mainmenu",							// Menu Name - order for the menu to be called
90,											// Menu Top - The Top position of the menu in pixels
378,										// Menu Left - The Left position of the menu in pixels
,												// Menu Width - Menus width in pixels
,												// Menu Border Width 
,												// Screen Position - "center;left;right;middle;top;bottom"
style1,									// Properties Array - this is set higher up, as above
1,											// Always Visible - 1=on/0=off)
"left",									// Alignment - values valid here are: left, right or center
,												// Filter - transitional effects on menu activation
,												// Follow Scrolling (1=on/0=off)
1, 											// Horizontal Menu (1=on/0=off)
,												// Keep Alive (1=on/0=off)
,												// Position of TOP sub image left:center:right
,												// Set the Overall Width of Horizontal Menu
,												// Right To Left - Used in Hebrew for example. (1=on/0=off)
,												// Open the Menus OnClick - leave blankOnMouseover (1=on/0=off)
,												// ID of the div you want to hide on MouseOver
,												// Background image for menu when BGColor set transparent.
,												// Scrollable Menu
,
,"Home","../Default.aspx",,"",1
,"Products&nbsp;&nbsp;","show-menu=product",,"",1
,"Downloads&nbsp;&nbsp;","show-menu=downloads",,"",1
,"Support&nbsp;","../Support.aspx",,"",1
,"Contact&nbsp;Us&nbsp;","../Contacts.aspx",,"",1
,"Access&nbsp;&nbsp;","../entrance.aspx",,"",1
])}else{
addmenu(menu=[					// contains your menu properties and details
"mainmenu",							// Menu Name - order for the menu to be called
90,											// Menu Top - The Top position of the menu in pixels
378,										// Menu Left - The Left position of the menu in pixels
,												// Menu Width - Menus width in pixels
,												// Menu Border Width 
,												// Screen Position - "center;left;right;middle;top;bottom"
style1,									// Properties Array - this is set higher up, as above
1,											// Always Visible - 1=on/0=off)
"left",									// Alignment - values valid here are: left, right or center
,												// Filter - transitional effects on menu activation
,												// Follow Scrolling (1=on/0=off)
1, 											// Horizontal Menu (1=on/0=off)
,												// Keep Alive (1=on/0=off)
,												// Position of TOP sub image left:center:right
,												// Set the Overall Width of Horizontal Menu
,												// Right To Left - Used in Hebrew for example. (1=on/0=off)
,												// Open the Menus OnClick - leave blankOnMouseover (1=on/0=off)
,												// ID of the div you want to hide on MouseOver
,												// Background image for menu when BGColor set transparent.
,												// Scrollable Menu
,
,"Home","../Default.aspx",,"",1
,"Products&nbsp;&nbsp;","show-menu=product",,"",1
,"Destinations","../execution.aspx",,"",1
,"Downloads","../Downloads.aspx",,"",1
,"Support","../Support.aspx",,"",1
,"Contact&nbsp;&nbsp;","../Contacts.aspx",,"",1
])}}else{

if (condition&&conmainsource.indexOf("sterlingfinancialsystems")==-1){
addmenu(menu=[					// This is the array that contains your menu properties and details
"mainmenu",							// Menu Name - This is needed in order for the menu to be called
90,											// Menu Top - The Top position of the menu in pixels
378,										// Menu Left - The Left position of the menu in pixels
,												// Menu Width - Menus width in pixels
,												// Menu Border Width 
,												// Screen Position - center;left;right;middle;top;bottom or a combination of center:middle
style1,									// Properties Array - this is set higher up, as above
1,											// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",									// Alignment - sets the menu elements text alignment, values valid: left, right or center
,												// Filter - Text variable for setting transitional effects on menu activation
,												// Follow Scrolling - Tells the menu item to follow the user down the screen(1=on/0=off)
1, 											// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom(1=on/0=off)
,												// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks on the page(1=on/0=off)
,												// Position of TOP sub image left:center:right
,												// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,												// Right To Left - Used in Hebrew for example. (1=on/0=off)
,												// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,												// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,												// Background image for menu when BGColor set to transparent.
,												// Scrollable Menu
,
,"Home","Default.aspx",,"",1
,"Products&nbsp;&nbsp;","show-menu=product",,"",1
,"Downloads&nbsp;&nbsp;","show-menu=downloads",,"",1
,"Support&nbsp;","Support.aspx",,"",1
,"Contact&nbsp;Us&nbsp;","Contacts.aspx",,"",1
,"Access&nbsp;&nbsp;","entrance.aspx",,"",1
])}else{
addmenu(menu=[					// This is the array that contains your menu properties and details
"mainmenu",							// Menu Name - This is needed in order for the menu to be called
90,											// Menu Top - The Top position of the menu in pixels
378,										// Menu Left - The Left position of the menu in pixels
,												// Menu Width - Menus width in pixels
,												// Menu Border Width 
,												// Screen Position - center;left;right;middle;top;bottom or a combination of center:middle
style1,									// Properties Array - this is set higher up, as above
1,											// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",									// Alignment - sets the menu elements text alignment, values valid: left, right or center
,												// Filter - Text variable for setting transitional effects on menu activation
,												// Follow Scrolling - Tells the menu item to follow the user down the screen(1=on/0=off)
1, 											// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom(1=on/0=off)
,												// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks on the page(1=on/0=off)
,												// Position of TOP sub image left:center:right
,												// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,												// Right To Left - Used in Hebrew for example. (1=on/0=off)
,												// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,												// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,												// Background image for menu when BGColor set to transparent.
,												// Scrollable Menu
,
,"Home","Default.aspx",,"",1
,"Products&nbsp;&nbsp;","show-menu=product",,"",1
,"Destinations","execution.aspx",,"",1
,"Downloads","Downloads.aspx",,"",1
,"Support","Support.aspx",,"",1
,"Contact&nbsp;&nbsp;","Contacts.aspx",,"",1
])}}

	if (mainaccess){
	if (condition){
	addmenu(menu=["product",
	,,178,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"Sterling Trader Pro","../software.aspx",,,1
	,"Sterling Trader Manager","../Manager.aspx",,,1
	,"Execution Destinations","../execution.aspx",,,1
	])}else{
		addmenu(menu=["product",
		,,178,1,"",style1,,"left",effect,,,,,,,,,,,,
		,"Sterling Trader Pro","../software.aspx",,,1
		,"Sterling Trader Manager","../Manager.aspx",,,1
		])}
	}else{
	if (condition){
	addmenu(menu=["product",
	,,178,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"Sterling Trader Pro","software.aspx",,,1
	,"Sterling Trader Manager","Manager.aspx",,,1
	,"Execution Destinations","execution.aspx",,,1
	])}else{
		addmenu(menu=["product",
		,,178,1,"",style1,,"left",effect,,,,,,,,,,,,
		,"Sterling Trader Pro","software.aspx",,,1
		,"Sterling Trader Manager","Manager.aspx",,,1
		])}}
	

		addmenu(menu=["generalproduct",
		,,152,1,"",style1,,"left",effect,,,,,,,,,,,,
		,"Something","default.aspx",,,1
		,"Something","default.aspx",,,1
		])

			addmenu(menu=["product2",
			,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
			,"Something","default.aspx",,,
			,"Something","default.aspx",,,
			])
		
		addmenu(menu=["product1",
		,,152,1,"",style1,,"left",effect,,,,,,,,,,,,
		,"Something","default.aspx",,,1
		,"Something","default.aspx",,,1
		])

	addmenu(menu=["demo",,,185,1,,style1,0,"left",effect,0,,,,,,,,,,,
	,"Something","default.aspx",,,1
	,"Something","default.aspx",,,1
	])
	
	if (mainaccess){
	addmenu(menu=["downloads",,,212,1,,style1,0,"left",effect,0,,,,,,,,,,,
	,"Sterling Trader Pro Demo","../account.aspx",,,1
	,"Sterling Trader Install Shields","../Downloads.aspx",,,1
	])}else{
	addmenu(menu=["downloads",,,212,1,,style1,0,"left",effect,0,,,,,,,,,,,
	,"Sterling Trader Pro Demo","account.aspx",,,1
	,"Sterling Trader Install Shields","Downloads.aspx",,,1
	])}
	
	addmenu(menu=["support",,,120,1,,style1,0,"left",effect,0,,,,,,,,,,,
	,"Something","default.aspx",,,1
	,"Something","default.aspx",,,1
	])

	addmenu(menu=["contactus",,,120,1,,style1,0,"left",effect,0,,,,,,,,,,,
	,"Something","default.aspx",,,1
	,"Something","default.aspx",,,1
	])

dumpmenus()}