
///////////

var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};






var URL=location.href;
var pos_1=URL.lastIndexOf('/'); //position of last slash
	var sub1=URL.substring(0,pos_1); //substring, strip off filename
var fileName=URL.substring(pos_1+1,URL.length);

var NoOffFirstLineMenus=9;// Number of main menu  items			// Colorvariables:
	// Color variables take HTML predefined color names or "#rrggbb" strings
			//For transparency make colors and border color 	

var LowBgColor="#fff1ce";			// Background color when mouse is not over

var HighBgColor="#FFFFFF";		// Background color when mouse is over

var FontLowColor="#703B0B";		// Font color when mouse is not over

var FontHighColor="#703B0B";		// Font color when mouse is over

var BorderColor="#703B0B";		// Border color

var BorderWidth=0;				
// Border width
var BorderBtwnElmnts=0;			// Border between elements 1 or 0
var FontFamily="arial,sans-serif,verdana"	
// Font family menu items
var FontSize=8;		// Font size menu items
var FontBold=0;				// Bold menu items 1 or 0
var FontItalic=0;				// Italic menu items 1 or 0
var MenuTextCentered="left";		
// Item text position left, center or right
var MenuCentered="center";
// Menu horizontal position can be: left, center, right, justify,
				//  leftjustify, centerjustify or rightjustify. PartOfWindow determines part of window to use
var MenuVerticalCentered="top";		
// Menu vertical position top, middle,bottom or static
var ChildOverlap=0;				
// horizontal overlap child/ parent
	var ChildVerticalOverlap=0;			// vertical overlap child/ parent

if (fileName == "index.htm") 
var StartTop = 150;
else var StartTop = 150;
			

BrowserDetect.init();

if(BrowserDetect.browser == "Firefox")
{
	if(fileName == "index.htm")
	{
		var StartLeft=-7;
		
	}
	else
	{
		var StartLeft=-7;
	}
}
else
{
	if((BrowserDetect.version == "7") && ( (fileName == "index.htm") || (fileName == "") ) )
		var StartLeft=2;
	else
		var StartLeft=1;
}


// Menu offset x coordinate
				
// Menu offset y coordinate
var VerCorrect=0;				
// Multiple frames y correction
var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=2;				// Left padding
var TopPaddng=2;				// Top padding
var FirstLineHorizontal=1;			// First level items layout horizontal 1 or 0
var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
var DissapearDelay=1000;			// delay before menu folds in
var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
var FirstLineFrame="navig";			// Frame where first level appears
var SecLineFrame="space";			// Frame where sub levels appear
var DocTargetFrame="space";			// Frame where target documents appear
var TargetLoc="";				// span id for relative positioning
var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
var BaseHref="";				
// BaseHref lets you specify the root directory for relative links. 

		// The script precedes your relative links with BaseHref
						
		// For instance: 
						
		// when your BaseHref= "http://www.MyDomain/" and a link in the menu is "subdir/MyFile.htm",
						
		// the script renders to: "http://www.MyDomain/subdir/MyFile.htm"
						
		// Can also be used when you use images in the textfields of the menu
						
		// "MenuX=new Array("<img src=../home/%22%22%2BBaseHref%2B%22MyImage/%22>"
						
		// For testing on your harddisk use syntax like: BaseHref="file:///C|/MyFiles/Homepage/"
		//	var Arrws=[BaseHref+"tri.gif",5,10,BaseHref+"tridown.gif",10,5];
var Arrws=[BaseHref+"",0,0,BaseHref+"",0,0];
		// Arrow source, width and height.
						// If arrow images are not needed keep source ""

	var MenuUsesFrames=0;			// MenuUsesFrames is only 0 when Main menu, submenus,
						// document targets and script are in the same frame.
						// In all other cases it must be 1 
var PartOfWindow=.8;				// PartOfWindow: When MenuCentered is justify, sets part of window width to stretch to

						// Below some pretty useless effects, since only IE5+ supports them
						// I provided 3 effects: MenuSlide, MenuShadow and MenuOpacity
						// If you don't need MenuSlide just leave in the line var MenuSlide="";
						// delete the other MenuSlide statements
						// In general leave the MenuSlide you need in and delete the others.
						// Above is also valid for MenuShadow and MenuOpacity
						// You can also use other effects by specifying another filter for MenuShadow and MenuOpacity.
						// You can add more filters by concanating the strings
var MenuSlide="";//	var MenuSlide="progid:DXImageTransform.Microsoft.RevealTrans(duration=.5, transition=19)";	var MenuSlide="progid:DXImageTransform.Microsoft.GradientWipe(duration=.3, wipeStyle=1)";
var MenuShadow="";
//	var MenuShadow="progid:DXImageTransform.Microsoft.DropShadow(color=#888888, offX=2, offY=2, positive=1)";
//	var MenuShadow="progid:DXImageTransform.Microsoft.Shadow(color=#888888, direction=135, strength=3)";
var MenuOpacity="";
//	var MenuOpacity="progid:DXImageTransform.Microsoft.Alpha(opacity=90)";

function BeforeStart(){return}

function AfterBuild(){return}

function BeforeFirstOpen(){return}

function AfterCloseAll(){return}

// Menu tree:
// MenuX=new Array("ItemText","Link","background image",number of sub elements,height,width);

Menu1=new Array(" ","","menu_AboutUs.gif",7,16,69);
Menu1_1=new Array("About Skin Thera P","http://www.skintherap.com/about.htm","",0,20,185);
Menu1_2=new Array("Request a Consultation","request.htm","",0,20,185);
Menu1_3=new Array("About the Doctor","bio.htm","",0,20,0);
Menu1_4=new Array("Location / Hours of Operation","location.htm","",0,20,150);
Menu1_5=new Array("Photo Gallery of the Spa","gallery.htm","",0,20,0);
Menu1_6=new Array("Testimonials","Testimonials.htm","",0,20,0);
Menu1_7=new Array("Visit Our Blog","http://skintherap.com/blog","",0,20,185);


Menu2=new Array("","","menu_Services.gif",21,0,67);


Menu2_1=new Array("Needleless Mesotherapy, Fat-Cellulite Elimination","javascript:mesotherapy();","",0,20,250);
Menu2_2=new Array("Laser Hair Removal","new-york-laser-hair-removal.htm","",0,20,168);
Menu2_3=new Array("Cellulite Reduction","cellulite-reduction-NY.htm","",0,20,0);

Menu2_4=new Array("Facial Treatments","","",8,20,168);
Menu2_4_1=new Array("Facial & Skin Treatments","skin.htm","",0,20,180);
Menu2_4_2=new Array("Spot and Freckle Treatments","spot.htm","",0,20,0);
Menu2_4_3=new Array("Acne Treatments","acne.htm","",0,20,180);
Menu2_4_4=new Array("Medical Microdermabrasion","micro.htm","",0,20,0);
Menu2_4_5=new Array("Medical Grade Chemical Peels","peels.htm","",0,20,0);
Menu2_4_6=new Array("Skin Scan","skinScan.htm","",0,20,0);
Menu2_4_7=new Array("Vitalize Peel","vitalizePeel.htm","",0,20,0);
Menu2_4_8=new Array("Eyelash Extensions & Tinting","eyelash.htm","",0,20,0);

Menu2_5=new Array("Botox","botox-NY-dysport.htm","",0,20,0);
Menu2_6=new Array("Radiesse","Radiesse.htm","",0,20,0);
Menu2_7=new Array("Restylane","restylane.htm","",0,20,0);
Menu2_8=new Array("ReFirme","refirme.htm","",0,20,0);
Menu2_9=new Array("Restylift ","restylift.htm","",0,20,0);
Menu2_10=new Array("Juvederm ","juvederm-New-York.htm","",0,20,0);
Menu2_11=new Array("Spider and Vericose Veins","spider.htm","",0,20,0);
Menu2_12=new Array("Lip Enhancement","lip.htm","",0,20,0);
Menu2_13=new Array("Facial Rejuvenation","rejuvenation.htm","",0,20,0);
Menu2_14=new Array("Acupuncture Thera P","acupuncture.htm","",0,20,168);
Menu2_15=new Array("Zoom Teeth Whitening","zoom.htm","",0,20,0);
Menu2_16=new Array("Image Thera P","image.htm","",0,20,0);	
Menu2_17=new Array("Airbrush Tanning","tanning.htm","",0,20,0);	
Menu2_18=new Array("Mesoderm Facials","mesoderm_facial.htm","",0,20,168);
Menu2_19=new Array("Triniti Skin Series","triniti.htm","",0,20,168);
Menu2_20=new Array("Matrix IR","matrix.htm","",0,20,168);
Menu2_21=new Array("Artefill","artefill.htm","",0,20,168);



Menu3=new Array("","packages.htm","menu_Packages.gif",0,16,75);

Menu4=new Array("","","menu_Cosmecueticals.gif",6,16,109);
Menu4_1=new Array("Introduction","introduction.htm","",0,20,150);
Menu4_2=new Array("Obagi System","obagi.htm","",0,20,180);
Menu4_3=new Array("Neocutis","neocutis.htm","",0,20,0);
Menu4_4=new Array("Colore Science","colore.htm","",0,20,0);
Menu4_5=new Array("Skin Medica","skinmedica.htm","",0,20,0);
Menu4_6=new Array("Procyte Neova Therapy","procyteNeova.htm","",0,20,0);



Menu5=new Array("","specials.htm","menu_Specials.gif",0,16,74);

Menu6=new Array("","gift.htm","buya.gif",0,16,98);

Menu7=new Array("","gift.htm","giftcard.gif",0,16,108);

Menu8=new Array("","","menu_Press.gif",2,16,54);
Menu8_1=new Array("Skin Thera P Magazine Features","magazine.htm","",0,20,150);
Menu8_2=new Array("Additional Press","press.htm","",0,20,150);


Menu9=new Array("","","menu_ContactUs.gif",2,16,98);
//Menu9_1=new Array("General Contact Info","contact.htm","",0,16,160);	
Menu9_1=new Array("Join Mailing List","javascript:join();","",0,20,105);
Menu9_2=new Array("Our Partners","partners.htm","",0,20,0);
//Menu9_4=new Array("Request a Consultation","request.htm","",0,16,0);

function join()
{
	window.open('http://www.skintherap.com/form3.html','join','resizable=0,top=50,left=50,width=600,height=430,scrollbars=1');
}

function mesotherapy()
{
	window.open('http://new-york-mesotherapy.com','mesotherapy','resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes,resizable=yes');
}

function carecredit()
{
	window.open('http://www.skintherap.com/carecreditpage.htm','carecredit','resizable=yes,scrollbars=yes,location=yes,menubar=yes,toolbar=yes,resizable=yes');
}










