var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight)
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="right" id="dragbar"><img src="images/close.gif" onClick="closepreview()" style="cursor:hand" border="0"></div><div align="center" id="imageview"><img src="'+which+'"></div>'
crossobj.style.visibility="visible"
return false
}
else
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")

/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "inline"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "inline";
		}else{
			el.style.display = "none";
		}
	}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate

intImage = 2;
function swapImage() {
switch (intImage) {
 case 1:
   IMG1.src = "../media/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG1.src = "../media/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

function swapImage2() {
switch (intImage) {
 case 1:
   IMG3.src = "Design%20Files/images/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG3.src = "Design%20Files/images/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

function swapImage3() {
switch (intImage) {
 case 1:
   IMG5.src = "Design%20Files/images/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG5.src = "Design%20Files/images/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

function swapImage4() {
switch (intImage) {
 case 1:
   IMG7.src = "Design%20Files/images/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG7.src = "Design%20Files/images/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

function swapImage5() {
switch (intImage) {
 case 1:
   IMG9.src = "Design%20Files/images/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG9.src = "Design%20Files/images/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

<!-- ********************************** Menu Settings & Styles ********************************** -->

function imenus_data0(){


	this.unlock = "wkvmcnh"
	this.enable_visual_design_mode = false

	this.main_is_horizontal = true
	this.menu_showhide_delay = 150


   /*---------------------------------------------
   Optional Box Animation Settings
   ---------------------------------------------*/


	//set to... "pointer", "center", "top", "left"
	this.box_animation_type = "center"

	this.box_animation_frames = 15
	this.box_animation_styles = "border-style:solid; border-color:#999999; border-width:1px; "



   /*---------------------------------------------
   Images (expand and pointer icons)
   ---------------------------------------------*/


	this.main_expand_image_width = '7'
	this.main_expand_image_height = '5'
	this.main_expand_image_offx = '0'
	this.main_expand_image_offy = '5'

	this.sub_expand_image = '../media/arrow_right.gif'
	this.sub_expand_image_hover = '../media/arrow_right.gif'
	this.sub_expand_image_width = '7'
	this.sub_expand_image_height = '11'
	this.sub_expand_image_offx = '12'
	this.sub_expand_image_offy = '2'

	this.main_pointer_image = '../media/arrow_down.gif'
	this.main_pointer_image_width = '11'
	this.main_pointer_image_height = '7'
	this.main_pointer_image_offx = '-3'
	this.main_pointer_image_offy = '-1'

	this.sub_pointer_image = '../media/arrow_right.gif'
	this.sub_pointer_image_width = '7'
	this.sub_pointer_image_height = '11'
	this.sub_pointer_image_offx = '0'
	this.sub_pointer_image_offy = '-5'




   /*---------------------------------------------
   Global Menu Styles
   ---------------------------------------------*/

	//Main Menu

	this.main_container_styles = "background-color:#000000; border-style:none; border-color:#000000; border-width:0px; padding:0px; margin:0px; "
	this.main_item_styles = "color:#ffffff; text-align:center; font-family:Arial; font-size:12px; font-weight:normal; text-decoration:none; border-style:solid; border-color:#dddddd; border-width:0px; padding:8px 0px 5px; margin:0px; "
	this.main_item_hover_styles = "background-color:#000000; color:#6acb8e; text-decoration:none; "
	this.main_item_active_styles = "background-color:#efefef; text-decoration:none; "



	//Sub Menu

	this.subs_container_styles = "filter:progid:DXImageTransform.Microsoft.Fade(duration=0.3); background-color:#000000; border-style:solid; border-color:#000000; border-width:1px; padding:0px; margin:0px; "
	this.subs_item_styles = "color:#ffffff; text-align:right; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-color:#ffffff; border-width:1px; padding:2px 5px; "
	this.subs_item_hover_styles = "background-color:#6acb8e; color:#000000; text-decoration:none; "
	this.subs_item_active_styles = "background-color:#ffffff; "



}
/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function onloadfunction(){
if (persistmenu=="yes"){
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=get_cookie(cookiename)
if (cookievalue!="")
document.getElementById(cookievalue).style.display="block"
}
}

function savemenustate(){
var inc=1, blockid=""
while (document.getElementById("sub"+inc)){
if (document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc
break
}
inc++
}
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
document.cookie=cookiename+"="+cookievalue
}

if (window.addEventListener)
window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById)
window.onunload=savemenustate

intImage = 2;
function swapImage() {
switch (intImage) {
 case 1:
   IMG1.src = "../media/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG1.src = "../media/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

function swapImage2() {
switch (intImage) {
 case 1:
   IMG3.src = "Design%20Files/images/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG3.src = "Design%20Files/images/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

function swapImage3() {
switch (intImage) {
 case 1:
   IMG5.src = "Design%20Files/images/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG5.src = "Design%20Files/images/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

function swapImage4() {
switch (intImage) {
 case 1:
   IMG7.src = "Design%20Files/images/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG7.src = "Design%20Files/images/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

function swapImage5() {
switch (intImage) {
 case 1:
   IMG9.src = "Design%20Files/images/submenu_rightarrow.gif"
   intImage = 2
   return(false);
case 2:
   IMG9.src = "Design%20Files/images/submenu_downarrow.gif"
   intImage = 1
   return(false);
 }
}

<!-- ********************************** Menu Settings & Styles ********************************** -->

function imenus_data0(){


	this.unlock = "wkvmcnh"
	this.enable_visual_design_mode = false

	this.main_is_horizontal = true
	this.menu_showhide_delay = 150


   /*---------------------------------------------
   Optional Box Animation Settings
   ---------------------------------------------*/


	//set to... "pointer", "center", "top", "left"
	this.box_animation_type = "center"

	this.box_animation_frames = 15
	this.box_animation_styles = "border-style:solid; border-color:#999999; border-width:1px; "



   /*---------------------------------------------
   Images (expand and pointer icons)
   ---------------------------------------------*/


	this.main_expand_image_width = '7'
	this.main_expand_image_height = '5'
	this.main_expand_image_offx = '0'
	this.main_expand_image_offy = '5'

	this.sub_expand_image = '../media/arrow_right.gif'
	this.sub_expand_image_hover = '../media/arrow_right.gif'
	this.sub_expand_image_width = '7'
	this.sub_expand_image_height = '11'
	this.sub_expand_image_offx = '12'
	this.sub_expand_image_offy = '2'

	this.main_pointer_image = '../media/arrow_down.gif'
	this.main_pointer_image_width = '11'
	this.main_pointer_image_height = '7'
	this.main_pointer_image_offx = '-3'
	this.main_pointer_image_offy = '-1'

	this.sub_pointer_image = '../media/arrow_right.gif'
	this.sub_pointer_image_width = '7'
	this.sub_pointer_image_height = '11'
	this.sub_pointer_image_offx = '0'
	this.sub_pointer_image_offy = '-5'




   /*---------------------------------------------
   Global Menu Styles
   ---------------------------------------------*/

	//Main Menu

	this.main_container_styles = "background-color:#000000; border-style:none; border-color:#000000; border-width:0px; padding:0px; margin:0px; "
	this.main_item_styles = "color:#ffffff; text-align:center; font-family:Arial; font-size:12px; font-weight:normal; text-decoration:none; border-style:solid; border-color:#dddddd; border-width:0px; padding:8px 0px 5px; margin:0px; "
	this.main_item_hover_styles = "background-color:#000000; color:#6acb8e; text-decoration:none; "
	this.main_item_active_styles = "background-color:#efefef; text-decoration:none; "



	//Sub Menu

	this.subs_container_styles = "filter:progid:DXImageTransform.Microsoft.Fade(duration=0.3); background-color:#000000; border-style:solid; border-color:#000000; border-width:1px; padding:0px; margin:0px; "
	this.subs_item_styles = "color:#ffffff; text-align:right; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-color:#ffffff; border-width:1px; padding:2px 5px; "
	this.subs_item_hover_styles = "background-color:#6acb8e; color:#000000; text-decoration:none; "
	this.subs_item_active_styles = "background-color:#ffffff; "



}


document.write('<link rel="STYLESHEET" type="text/css" href="../Controls/menu_left.css">');
document.write('<div id="masterdiv" align="left">');
document.write('<div class="menutitle" onclick="SwitchMenu(&#39;sub1&#39;), swapImage();">');
document.write('<table width="100%">');
document.write('<tbody>');
document.write('<tr width="100%">');
document.write('<td align="left">ServMan Enterprise</td>');
document.write('<td align="right"><img id="IMG1" name="IMG1" src="/media/submenu_rightarrow.gif" /></td>');
document.write('</tr>');
document.write('</tbody>');
document.write('</table>');
document.write('</div>');

document.write('<span class="submenu" id="sub1"><img src="/media/bullet.gif" /><a href="/product_overview.aspx">&nbsp;Overview</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/work_order_management.aspx">&nbsp;Work Order Management</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/client_management.aspx">&nbsp;Client Management</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/inventory_management.aspx">&nbsp;Inventory Management</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/dispatch.aspx">&nbsp;Dispatch Board</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/complete_accounting.aspx">&nbsp;Complete Accounting</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/sync_server.aspx">&nbsp;Synchronization Server</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/maint_tasking.aspx">&nbsp;Maintenance Tasking</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/contract_management.aspx">&nbsp;Contract Management</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/autoroute.aspx">&nbsp;Route Efficiency</a><br />');
document.write('<img src="/media/bullet.gif" /><a href="/features/customization.aspx">&nbsp;Customization Module</a><br />');
document.write('</span>'); 
document.write('<div class="menutitle">');
document.write('<table width="100%">');
document.write('<tbody>');
document.write('<tr width="100%">');
document.write('<td align="left"><a href="/mobile.aspx">ServMan Mobile</a></td>');
document.write('<td align="right">');
<!--<img id="IMG3" name="IMG3" src="Design%20Files/images/submenu_rightarrow.gif"/>--></td>
document.write('</tr>');
document.write('</tbody>');
document.write('</table>');
document.write('</div>');

document.write('<div class="menutitle">');
document.write('<table width="100%">');
document.write('<tbody>');
document.write('<tr width="100%">');
document.write('<td align="left"><a href="/internet.aspx">ServMan Web</a></td>');
document.write('<td align="right">');
<!--<img id="IMG5" name="IMG5" src="Design%20Files/images/submenu_rightarrow.gif"/>--></td>
document.write('</tr>');
document.write('</tbody>');
document.write('</table>');
document.write('</div>');

document.write('<div class="menutitle">');
document.write('<table width="100%">');
document.write('<tbody>');
document.write('<tr width="100%">');
document.write('<td align="left"><a href="/wireless_warehouse.aspx">Wireless Warehouse</a></td>');
document.write('<td align="right">');
<!--<img id="IMG7" name="IMG7" src="Design%20Files/images/submenu_rightarrow.gif"/>--></td>
document.write('</tr>');
document.write('</tbody>');
document.write('</table>');
document.write('</div>');

document.write('<div class="menutitle">');
document.write('<table width="100%">');
document.write('<tbody>');
document.write('<tr width="100%">');
document.write('<td align="left"><a href="/pricing.aspx">Pricing</a></td>');
document.write('<td align="right">');
<!--<img id="IMG9" name="IMG9" src="Design%20Files/images/submenu_rightarrow.gif"/>--></td>
document.write('</tr>');
document.write('</tbody>');
document.write('</table>');
document.write('</div>');

document.write('<div class="bottom"><img src="/media/submenu_bottom.gif" width="209" height="29" /></div>');
document.write('</div>');


