var pageWidth=0;
function getScrollXY() {
  pageWidth=document.body.clientWidth || innerWidth;
}
function init()
{
	  var moz = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined');
	  var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
      var ie = (typeof window.ActiveXObject != 'undefined');
	 
				
  if (ie) 
        { 
		
            var posLeft = -111;	
         } 
		  else if (is_chrome == true) 
        { 
		 	if(pageWidth==1280)		
			
				var posLeft =-100;	
			else
			
            var posLeft = -101;	
         } 
		
		else if (safari)
		{
			
			
			 var posLeft = -101;	
		}
		
		else if (opera)
        {     
			
        	 var posLeft = -100;	
        } 
		
		
		else if (moz)
        {     
		
        	 var posLeft = -110;	
			 
			 
		}
		
	var posTop =159;
	var menuType = "horizontal";
	var subMenuType = "vertical";
	var xPos = 0;
	var yPos = 0;
	var MainBg = "#201c1a";
	var ManeBgHover = "#68430b";
	var fontFamily = "Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular";
	var fontSize = 10;
	var fontWeight = "bold";
	var fontWeightHover = "bold";
	var fontColor = "#f5eee3";
	var fontColorHover = "#f5eee3";
	var borderSize = 0;
	var borderColor = "#744617";
	var paddingTopLeft = 4;
	var rollOverArrows = "";
	var UnfoldsOnClick = false;
	var MenuSlide = 27;

	menus[0] = new menu(46, menuType, posLeft, posTop, xPos, yPos, MainBg, ManeBgHover, fontFamily, fontSize, fontWeight, fontWeightHover, fontColor, fontColorHover, borderSize, borderColor, 0, rollOverArrows, UnfoldsOnClick, true, true, true, MenuSlide, true, 0, 0, "black");
	menus[0].addItem("index.html", "", 133, "left", "rollover:images/home-off.jpg:images/home-on.jpg", 0);
	menus[0].addItem("bhuvaneshwar-machani.html", "", 151, "left", "rollover:images/my-practice-off.jpg:images/my-practice-on.jpg", 1);
	menus[0].addItem("shoulder.html", "", 151, "left", "rollover:images/patient-info-off.jpg:images/patient-info-on.jpg", 2);
	menus[0].addItem("services.html", "", 120, "left", "rollover:images/services-off.jpg:images/services-on.jpg", 0);
	menus[0].addItem("general.html", "", 173, "left", "rollover:images/appointments-off.jpg:images/appointments-on.jpg", 3);
	menus[0].addItem("faq.html", "", 103, "left", "rollover:images/faq-off.jpg:images/faq-on.jpg", 0);
	menus[0].addItem("contact-us.html", "", 169, "left", "rollover:images/contact-us-off.jpg:images/contact-us-on.jpg", 0);
	menus[0].floatMenu(800, 600, 0, 0);

	menus[1] = new menu(180, subMenuType, posLeft, posTop, xPos, yPos, MainBg, ManeBgHover, fontFamily, fontSize, fontWeight, fontWeightHover, fontColor, fontColorHover, 1, borderColor, paddingTopLeft, rollOverArrows, UnfoldsOnClick, true, false, true, MenuSlide, true, 0, 0, "black" );
	menus[1].addItem("bhuvaneshwar-machani.html", "", 20, "left", ":: Mr. Bhuvaneshwar Machani", 0);
	menus[1].addItem("staff.html", "", 20, "left", ":: Staff", 0);
	menus[1].addItem("contact-us.html", "", 20, "left", ":: Practice Locations", 0);
	menus[1].addItem("contact-us.html", "", 20, "left", ":: Contact Us", 0);
	
	menus[2] = new menu(230, subMenuType, posLeft, posTop, xPos, yPos, MainBg, ManeBgHover, fontFamily, fontSize, fontWeight, fontWeightHover, fontColor, fontColorHover, 1, borderColor, paddingTopLeft, rollOverArrows, UnfoldsOnClick, true, false, true, MenuSlide, true, 0, 0, "black" );
	menus[2].addItem("shoulder.html", "", 20, "left", ":: Shoulder", 0);
	menus[2].addItem("elbow.html", "", 20, "left", ":: Elbow", 0);
	menus[2].addItem("hand-wrist.html", "", 20, "left", ":: Hand &amp; Wrist", 0);
	menus[2].addItem("surgery-procedure.html", "", 20, "left", ":: Preparing for Surgery &amp; Procedures", 0);
	menus[2].addItem("patient-forms.html", "", 20, "left", ":: Patient Forms", 0);
	menus[2].addItem("multimedia.html", "", 20, "left", ":: Multimedia Patient Education", 0);
	menus[2].addItem("links.html", "", 20, "left", ":: Useful Links", 0);	
	
	menus[3] = new menu(173, subMenuType, posLeft, posTop, xPos, yPos, MainBg, ManeBgHover, fontFamily, fontSize, fontWeight, fontWeightHover, fontColor, fontColorHover, 1, borderColor, paddingTopLeft, rollOverArrows, UnfoldsOnClick, true, false, true, MenuSlide, true, 0, 0, "black" );
	menus[3].addItem("general.html", "", 20, "left", ":: General Appointment", 0);
	menus[3].addItem("online.html", "", 20, "left", ":: Online Appointment", 0);
	
	
}

