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 =-101;	
         } 
		  else if (is_chrome == true) 
        { 
			if(pageWidth==1280)		
			
				var posLeft =-91;	
			else
            	var posLeft =-91;	
         } 
		  else if (safari)
        {     
        	 var posLeft =-90;	
        } 
		  else if (opera)
        {     
			
        	 var posLeft =-90;	
        } 
		
		 else if (moz)
        {     
        	 var posLeft =-100;	
        } 
		
	var posTop =123;
	var menuType = "horizontal";
	var subMenuType = "vertical";
	var xPos = 0;
	var yPos = 0;
	var MainBg = "#369200";
	var ManeBgHover = "#7bbe58";
	var fontFamily = "Verdana, Arial, Helvetica, Geneva, Swiss, SunSans-Regular";
	var fontSize = 10;
	var fontWeight = "bold";
	var fontWeightHover = "bold";
	var fontColor = "#ffffff";
	var fontColorHover = "#102500";
	var borderSize = 0;
	var borderColor = "#c3c3c3";
	var paddingTopLeft = 0;
	var rollOverArrows = "rollover:images/tri.gif:images/tri.gif";
	var UnfoldsOnClick = false;
	var MenuSlide = 27;
	
	menus[0] = new menu(42, 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("http://www.drresnik.com/", "", 59, "left", "rollover:../../images/home-off.jpg:../../images/home-on.jpg", 0);	
	menus[0].addItem("http://www.drresnik.com/resnik-skin-institute.html", "", 100, "left", "rollover:../../images/our-practice-off.jpg:../../images/our-practice-on.jpg", 1);	
	menus[0].addItem("http://www.drresnik.com/medical-therapies.html", "", 93, "left", "rollover:../../images/patient-info-off.jpg:../../images/patient-info-on.jpg", 2);		
	menus[0].addItem("http://www.drresnik.com/press-room.html", "", 61, "left", "rollover:../../images/media-off.jpg:../../images/media-on.jpg", 4);
	menus[0].addItem("http://www.drresnik.com/general.html", "", 113, "left", "rollover:../../images/appointments-off.jpg:../../images/appointments-on.jpg", 3);
	menus[0].addItem("http://www.drresnik.com/faq.html", "", 133, "left", "rollover:../../images/patient-resources-off.jpg:../../images/patient-resources-on.jpg", 0);
	menus[0].addItem("http://www.drresnik.com/contact-us.html", "", 94, "left", "rollover:../../images/contact-us-off-new.jpg:../../images/contact-us-on-new.jpg", 0);
	menus[0].floatMenu(800, 600, 0, 0);

	menus[1] = new menu(240, 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("http://www.drresnik.com/resnik-skin-institute.html", "", 20, "left", ":: Resnik Skin Institute", 0);
	menus[1].addItem("http://www.drresnik.com/meet-the-doctor.html", "", 20, "left", ":: Meet The Doctor", 0);
	menus[1].addItem("http://www.drresnik.com/philanthropy.html", "", 20, "left", ":: Philanthropy", 0);	
	menus[1].addItem("http://www.drresnik.com/staff.html", "", 20, "left", ":: Staff", 0);
	menus[1].addItem("http://www.drresnik.com/our-practice.html", "", 20, "left", ":: Our Practice", 0);
	//menus[1].addItem("http://www.drresnik.com/press-room.html", "", 20, "left", ":: The Press Room", 0);
	//menus[1].addItem("http://www.drresnik.com/video.html", "", 20, "left", ":: Video Clips", 0);
	//menus[1].addItem("http://www.drresnik.com/publications.html", "", 20, "left", ":: Publications", 0);
	//menus[1].addItem("http://www.drresnik.com/privacy-policy.html", "", 20, "left", ":: Privacy Policy", 0);
	//menus[1].addItem("http://www.drresnik.com/hipaa.html", "", 20, "left", ":: HIPAA Policy", 0);	
	menus[1].addItem("http://www.drresnik.com/ordering-information.html", "", 20, "left", ":: Ordering Information", 0); 
	//menus[1].addItem("http://www.drresnik.com/community-links.html", "", 20, "left", ":: Community Links", 0);	
	menus[1].addItem("http://www.drresnik.com/contact-us.html", "", 20, "left", ":: Practice Location", 0);
	menus[1].addItem("http://www.drresnik.com/contact-us.html", "", 20, "left", ":: Contact Us", 0);
	
	menus[2] = new menu(240, 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("http://www.drresnik.com/medical-therapies.html", "", 20, "left", ":: Medical Therapies", 0);
	menus[2].addItem("http://www.drresnik.com/cosmetic-therapies.html", "", 20, "left", ":: Cosmetic Therapies", 0);
	menus[2].addItem("http://www.drresnik.com/skin-conditions.html", "", 20, "left", ":: Skin Conditions", 0);
	menus[2].addItem("http://www.drresnik.com/patient-testimonials.html", "", 20, "left", ":: Patient Testimonials", 0);	
	menus[2].addItem("http://www.drresnik.com/subscribe-newsletter.html", "", 20, "left", ":: Subscribe to Newsletter", 0);		
	menus[2].addItem("http://www.drresnik.com/cgi-bin/ccp51/cp-app.cgi?&pg=store", "", 20, "left", ":: Shop RSI Boutique", 0);
	menus[2].addItem("http://www.drresnik.com/payment-policies.html", "", 20, "left", ":: Payment Policies", 0);	
	menus[2].addItem("http://www.drresnik.com/industry-resources-and-links.html", "", 20, "left", ":: Patient Information Weblinks", 0);	
	menus[2].addItem("http://www.drresnik.com/links.html", "", 20, "left", ":: Useful Links", 0);
	
	menus[3] = new menu(260, 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("http://www.drresnik.com/general.html", "", 20, "left", ":: Make an Appointment by Phone", 0);
	menus[3].addItem("http://www.drresnik.com/online.html", "", 20, "left", ":: Make an Appointment Online", 0);
	menus[3].addItem("http://www.drresnik.com/patient-forms.html", "", 20, "left", ":: Patient Forms", 0);

	menus[4] = new menu(200, 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[4].addItem("http://www.drresnik.com/press-room.html", "", 20, "left", ":: In the News", 0);
	menus[4].addItem("http://www.drresnik.com/publications.html", "", 20, "left", ":: Publications", 0);
	menus[4].addItem("http://www.drresnik.com/press-room.html", "", 20, "left", ":: The Press Room", 0);
	menus[4].addItem("http://www.drresnik.com/video.html", "", 20, "left", ":: Video Clips", 0);	
	menus[4].addItem("http://www.drresnik.com/gallery.html", "", 20, "left", ":: Photo Gallery", 0);
}

