function mmLoadMenus() {
  if (window.mm_menu_0) return;
  window.mm_menu_0 = new Menu("root",127,17,"Verdana, Arial, Helvetica, sans-serif",12,"#BF0B22","#FFFFFF","#CCCCCC","#000000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
   mm_menu_0.addMenuItem("showrooms","location='showrooms.asp'");  
  mm_menu_0.addMenuItem("our pricing policy","location='pricing.asp'");
   mm_menu_0.addMenuItem("about Accessibility","location='aboutus.asp'");
   mm_menu_0.hideOnMouseOut=true;
   mm_menu_0.menuBorder=1;
   mm_menu_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0.menuBorderBgColor='#BF0B22';
   mm_menu_0.bgColor='#FFFFFF';


  window.mm_menu_1 = new Menu("root",160,17,"Verdana, Arial, Helvetica, sans-serif",12,"#BF0B22","#FFFFFF","#CCCCCC","#000000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1.addMenuItem("tell me about scooters","location='aboutscooters.asp'");
  mm_menu_1.addMenuItem("which scooter for me","location='whichscooter.asp'");
  mm_menu_1.addMenuItem("driving a scooter","location='driving.asp'");  
  mm_menu_1.addMenuItem("battery care","location='batterycare.asp'");    
   mm_menu_1.hideOnMouseOut=true;
   mm_menu_1.menuBorder=1;
   mm_menu_1.menuLiteBgColor='#FFFFFF';
   mm_menu_1.menuBorderBgColor='#BF0B22';
   mm_menu_1.bgColor='#FFFFFF';

   
   window.mm_menu_2 = new Menu("root",190,17,"Verdana, Arial, Helvetica, sans-serif",12,"#BF0B22","#FFFFFF","#CCCCCC","#000000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_2.addMenuItem("road scooters","location='road.asp'");
  mm_menu_2.addMenuItem("pavement scooters","location='pavement.asp'");
  mm_menu_2.addMenuItem("lightweight/micro scooters","location='lightweight.asp'");
  mm_menu_2.addMenuItem("manual wheelchairs","location='selfpropwchr.asp'");
  mm_menu_2.addMenuItem("powered wheelchairs","location='poweredwchr.asp'");
  mm_menu_2.addMenuItem("accessories","location='accessories.asp'");
  mm_menu_2.addMenuItem("spare parts","location='spares.asp'");
  mm_menu_2.addMenuItem("arrange a test drive","location='testdrive.asp'");
   mm_menu_2.hideOnMouseOut=true;
   mm_menu_2.menuBorder=1;
  mm_menu_2.menuLiteBgColor='#FFFFFF';
   mm_menu_2.menuBorderBgColor='#BF0B22';
   mm_menu_2.bgColor='#FFFFFF';

   window.mm_menu_3 = new Menu("root",140,17,"Verdana, Arial, Helvetica, sans-serif",12,"#BF0B22","#FFFFFF","#CCCCCC","#000000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_3.addMenuItem("scooter insurance","location='insurance.asp'");  
  mm_menu_3.addMenuItem("spares&nbsp;&amp;&nbsp;repairs","location='sparesrepairs.asp'");
  mm_menu_3.addMenuItem("routine maintenance","location='maintenance.asp'");
  mm_menu_3.addMenuItem("warranty/breakdowns","location='warranty.asp'");  
    mm_menu_3.hideOnMouseOut=true;
   mm_menu_3.menuBorder=1;
  mm_menu_3.menuLiteBgColor='#FFFFFF';
   mm_menu_3.menuBorderBgColor='#BF0B22';
   mm_menu_3.bgColor='#FFFFFF';

  window.mm_menu_4 = new Menu("root",114,17,"Verdana, Arial, Helvetica, sans-serif",12,"#BF0B22","#FFFFFF","#CCCCCC","#000000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_4.addMenuItem("whitening","location='aboutBleaching.asp'");
  mm_menu_4.addMenuItem("bridges","location='aboutBridges.asp'");
  mm_menu_4.addMenuItem("caries&nbsp;&amp;&nbsp;fillings","location='aboutFillings.asp'");
  mm_menu_4.addMenuItem("children","location='aboutChildren.asp'");
  mm_menu_4.addMenuItem("cosmetic","location='aboutCosmetic.asp'");
  mm_menu_4.addMenuItem("crowns","location='aboutCrowns.asp'");
  mm_menu_4.addMenuItem("dentures","location='aboutDentures.asp'");
  mm_menu_4.addMenuItem("gum disease","location='aboutGumDisease.asp'");
  mm_menu_4.addMenuItem("orthodontics","location='aboutOrthodontics.asp'");
  mm_menu_4.addMenuItem("root&nbsp;canals","location='aboutRootCanals.asp'");
  mm_menu_4.addMenuItem("wisdom&nbsp;teeth","location='aboutWisdom.asp'");
   mm_menu_4.hideOnMouseOut=true;
   mm_menu_4.menuBorder=1;
  mm_menu_4.menuLiteBgColor='#FFFFFF';
   mm_menu_4.menuBorderBgColor='#BF0B22';
   mm_menu_4.bgColor='#FFFFFF';


  mm_menu_1.writeMenus()
} // mmLoadMenus()

var counter, path, spath;
counter = 2;
path = ("images/street" + counter + ".jpg");
spath = "st" + (counter-1);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
		var j = 0
        var i = 1
        images = new Array
        images[1] = "images/street1.jpg"
        images[2] = "images/street2.jpg"
        images[3] = "images/street3.jpg"
        images[4] = "images/street4.jpg"
		
        description = new Array
        description[1] = "1 of 4"
        description[2] = "2 of 4"
        description[3] = "3 of 4"
        description[4] = "4 of 4"

function setGallery(){
        if (i == 1){
                document.gallery.desc.value = description[1]}
}

function previmg(){
        if (i != 1) {
                i --
                document.img.src = images[i];
                document.gallery.desc.value = description[i]}
}

function nextimg(){
        if (i != 4) {
                i ++
                image = images[i]
                document.img.src = image
                document.gallery.desc.value = description[i];}
}

function zoom(){
        if (j == 0) {
                j ++
                document.getElementById('zoomImg').src = "images/zoom.gif"
                document.map.btnZoom.value = "zoom out"}
	    else if (j == 1) {
                j --
                document.getElementById('zoomImg').src = "images/map.gif"
                document.map.btnZoom.value = "zoom in"}
}

function GP_AdvOpenWindow(theURL,winName,features,popWidth,popHeight,winAlign,ignorelink,alwaysOnTop,autoCloseTime,borderless) { //v2.0
  var leftPos=0,topPos=0,autoCloseTimeoutHandle, ontopIntervalHandle, w = 480, h = 340;  
  if (popWidth > 0) features += (features.length > 0 ? ',' : '') + 'width=' + popWidth;
  if (popHeight > 0) features += (features.length > 0 ? ',' : '') + 'height=' + popHeight;
  if (winAlign && winAlign != "" && popWidth > 0 && popHeight > 0) {
    if (document.all || document.layers || document.getElementById) {w = screen.availWidth; h = screen.availHeight;}
		if (winAlign.indexOf("center") != -1) {topPos = (h-popHeight)/2;leftPos = (w-popWidth)/2;}
		if (winAlign.indexOf("bottom") != -1) topPos = h-popHeight; if (winAlign.indexOf("right") != -1) leftPos = w-popWidth; 
		if (winAlign.indexOf("left") != -1) leftPos = 0; if (winAlign.indexOf("top") != -1) topPos = 0; 						
    features += (features.length > 0 ? ',' : '') + 'top=' + topPos+',left='+leftPos;}
  if (document.all && borderless && borderless != "" && features.indexOf("fullscreen") != -1) features+=",fullscreen=1";
  if (window["popupWindow"] == null) window["popupWindow"] = new Array();
  var wp = popupWindow.length;
  popupWindow[wp] = window.open(theURL,winName,features);
  if (popupWindow[wp].opener == null) popupWindow[wp].opener = self;  
  if (document.all || document.layers || document.getElementById) {
    if (borderless && borderless != "") {popupWindow[wp].resizeTo(popWidth,popHeight); popupWindow[wp].moveTo(leftPos, topPos);}
    if (alwaysOnTop && alwaysOnTop != "") {
    	ontopIntervalHandle = popupWindow[wp].setInterval("window.focus();", 50);
    	popupWindow[wp].document.body.onload = function() {window.setInterval("window.focus();", 50);}; }
    if (autoCloseTime && autoCloseTime > 0) {
    	popupWindow[wp].document.body.onbeforeunload = function() {
  			if (autoCloseTimeoutHandle) window.clearInterval(autoCloseTimeoutHandle);
    		window.onbeforeunload = null;	}  
   		autoCloseTimeoutHandle = window.setTimeout("popupWindow["+wp+"].close()", autoCloseTime * 1000); }
  	window.onbeforeunload = function() {for (var i=0;i<popupWindow.length;i++) popupWindow[i].close();}; }   
  document.MM_returnValue = (ignorelink && ignorelink != "") ? false : true;
}

function moveToContact() {
  parent.opener.location = "contact.asp";
  window.close();
} 

function changeText() {
  var obj=document.getElementById('main');
  obj.style.fontSize = 14;
}
// more dynamic functions to change styles, delete if not used
function setStyle(obj,style,value){
  getRef(obj).style[style]= value;
}
	
function getRef(obj){
  return (typeof obj == "string") ? document.getElementById(obj) : obj;
}

 var isDHTML = 0;
 var isLayers = 0;
 var isAll = 0;
 var isID = 0;
 if (document.getElementById) {isID = 1; isDHTML = 1;}
 else {
   if (document.all) {isAll = 1; isDHTML = 1;}
   else {
      browserVersion = parseInt(navigator.appVersion);
   if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
}}

 function findDOM (objectID, withStyle) {
   if (withStyle == 1) {
     if (isID) {return (document.getElementById(objectID).style);}
     else {
     if (isAll) {return (document.all[objectID].style);}
   else {
     if (isLayers) {return (document.layers[objectID]);}
   };}
}
else {
   if (isID) {return (document.getElementById(objectID));}
   else {
    if (isAll) {return (document.all[objectID]);}
   else {
    if (isLayers) {return (document.layers[objectID]);}
   };}
 }
}

  function findLeft(objectID) {
    var domStyle = findDOM(objectID,1);
	var dom = findDOM(objectID,0);
	 if (domStyle.left)
	   return domStyle.left;
	 if (domStyle.pixelLeft)
	   return domStyle.pixelLeft;
	 if (dom.offsetLeft)
	   return dom.offsetLeft;
	 return(null);
 }
    var leftPos;
   function showPos(objectID) {
    leftPos = findLeft(objectID);
 }
 
 // This function highlites the left nav item with an id of leftNavId
// It relies on the class definition for highlite.
function leftNavHighlite(leftNavId) {
	var leftNavItem	//Used to store the element with id leftNavId
	//Test the getElementByID function is supported.
	if(document.getElementById != null) leftNavItem = document.getElementById(leftNavId)
	//Test that the element was returned.
	if(leftNavItem != null) leftNavItem.id = "highlite"
}


var picnum = 1

function genNumber () {
  
    picnum = Math.random()*10; 
    picnum = Math.round(picnum);
	if(picnum<1){picnum = picnum + 1}
	return picnum     
}


function changeImagea()
	  	  	   {			  
			   image = "url(Images/img" + picnum + ".jpg)";	   
		       document.getElementById('image10').style.backgroundImage = image;
		}
		
function changeImageb()
	  	  	   {
				picnum = picnum + 10   
			   image = "url(Images/img" + picnum + ".jpg)";	   
		       document.getElementById('image20').style.backgroundImage = image;
		}	

function changeImagec()
	  	  	   {	
			   picnum = picnum + 10
			   image = "url(Images/img" + picnum + ".jpg)";	   
		       document.getElementById('image30').style.backgroundImage = image;
		}	

function selectImage()
	  	  	   {				   
			   image = "url(Images/topphotos" + photonum + ".jpg)";	   
		       document.getElementById('image30').style.backgroundImage = image;
		}	
