/*****************************************************************************
Default browsercheck
******************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.ns4=(!this.dom && document.layers)?1:0;
	this.op=window.opera 
	this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ie=this.agent.indexOf("msie")>-1 && !this.op
	if(this.op){
		this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
		this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
		this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
	}else if(this.moz) this.ns6 = 1
	else if(this.ie){
		this.ie4 = !this.dom && document.all
  	this.ie5 = (this.agent.indexOf("msie 5")>-1)
  	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  	this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
	}
	this.mac=(this.agent.indexOf("mac")>-1)
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
  this.usedom= this.ns6||this.op7//Use dom creation
  this.reuse = this.ie||this.op7||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
	}
/*{ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
        this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6||this.ie7||this.ie8
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.ns7=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.bw=(this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom || this.ns7 )

	return this
}*/
/*{ //Browsercheck (needed) this.ver=navigator.appVersion; 
this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.ns4=(!this.dom && document.layers)?1:0;
	this.op=window.opera 
	this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ie=this.agent.indexOf("msie")>-1 && !this.op
	if(this.op){
		this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
		this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
		this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
	}else if(this.moz) this.ns6 = 1
	else if(this.ie){
		this.ie4 = !this.dom && document.all
  	this.ie5 = (this.agent.indexOf("msie 5")>-1)
  	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  	this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
	}
	this.mac=(this.agent.indexOf("mac")>-1)
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
  this.usedom= this.ns6||this.op7//Use dom creation
  this.reuse = this.ie||this.op7||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
}*/

var bw=new lib_bwcheck()
var mDebugging=2

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=0
oCMenu.frame=""
oCMenu.useNS4links=1
oCMenu.NS4padding=2
oCMenu.checkselect=0
oCMenu.offlineUrl="file:///C|/thebest12/scripts/coolmenus3/"
oCMenu.onlineUrl="http://simplythebest.net/scripts/coolmenus3/"

oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1
oCMenu.wait=500

oCMenu.usebar=0
oCMenu.barcolor="#EAF1F4"
oCMenu.barwidth="menu"
oCMenu.barheight="menu"
oCMenu.barx="menu"
oCMenu.bary="menu"
oCMenu.barinheritborder=0

oCMenu.rows=1
oCMenu.fromleft=32
oCMenu.fromtop=98
oCMenu.pxbetween=0
oCMenu.menuplacement=1
oCMenu.NS4hover=1

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=98
oCMenu.level[0].height=21
oCMenu.level[0].bgcoloroff=""
oCMenu.level[0].bgcoloron="" 
oCMenu.level[0].textcolor="#FCCE55"
oCMenu.level[0].hovercolor="#ffffff" 
oCMenu.level[0].style="font-family:arial,helvetica; font-size:12px"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="#FFFFFF" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-0 
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom"

//dynamic effect (controllable for each level)
oCMenu.level[0].clip=1
oCMenu.level[0].clippx=2
oCMenu.level[0].cliptim=2

//special animation filters (IE5.5+ only, controllable for each level).
oCMenu.level[0].filter=0

//menu definitions
oCMenu.level[1]=new Array() 
oCMenu.level[1].width=105
oCMenu.level[1].height=18
oCMenu.level[1].bgcoloroff="#EAF1F4"
oCMenu.level[1].bgcoloron="#DADEE0"
oCMenu.level[1].textcolor="#333333"
oCMenu.level[1].hovercolor="#666666"
oCMenu.level[1].style="padding:2px; font-family:tahoma; font-size:10px"
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=5
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#BEC8CD"
oCMenu.level[1].NS4font="arial,helvetica"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"


//----- end of my new variables
oCMenu.makeMenu('top0','','<img src="images/in_05.gif"   name=ii onMouseover=this.src='+'"images/in_05-over.gif"  onMouseout=this.src='+'"images/in_05.gif" >')
	oCMenu.makeMenu('sub00','top0','Vision','http://www.hsanctuary.com/about_us.asp#vision')
	oCMenu.makeMenu('sub01','top0','About us','http://www.hsanctuary.com/about_us.asp#abtus')

oCMenu.makeMenu('top1','','<img src="images/in_06.gif"   name=ii onMouseover=this.src='+'"images/in_06-over.gif"  onMouseout=this.src='+'"images/in_06.gif" >','product_services.htm')
	oCMenu.makeMenu('sub10','top1','Weight Management','http://www.hsanctuary.com/weight_management.asp')
	oCMenu.makeMenu('sub11','top1','Skin Treatments','http://www.hsanctuary.com/skin_treatment.asp')
        oCMenu.makeMenu('sub12','top1','Cosmetic Surgery','http://www.hsanctuary.com/Services/cosmeticsurgery.htm')
        oCMenu.makeMenu('sub13','top1','Laser Hair Reduction','http://www.hsanctuary.com/laser_hair_reduction.asp')
	oCMenu.makeMenu('sub14','top1','Ayurveda','http://www.hsanctuary.com/ayurveda.asp')
	oCMenu.makeMenu('sub15','top1','Oxygen Bar','http://www.hsanctuary.com/oxygen_bar.asp')
        oCMenu.makeMenu('sub16','top1','De-Stress Techniques','http://www.hsanctuary.com/de-stress_techniques.htm')
        oCMenu.makeMenu('sub17','top1','Health Products','http://www.hsanctuary.com/health_beauty_products.asp')
	oCMenu.makeMenu('sub18','top1','Tailored Diet Plans','http://www.hsanctuary.com/TailoredDiets/TDiets.htm')
        
	
//---

oCMenu.makeStyle(); oCMenu.construct()		

//menu activation
oCMenu.makeStyle(); oCMenu.construct()		
