/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //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.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	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.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=0
oCMenu.frame="frmMain"
oCMenu.useNS4links=1
oCMenu.checkselect=1
oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/"
oCMenu.onlineUrl="http://www.WisdomTips.com/"

oCMenu.pagecheck=1
oCMenu.checkscroll=1
oCMenu.resizecheck=1
oCMenu.wait=500

oCMenu.usebar=0
oCMenu.barcolor="#5382CB"
oCMenu.barwidth="100%"
oCMenu.barheight="menu"
oCMenu.barx=0
oCMenu.bary="menu"
oCMenu.barinheritborder=0

oCMenu.rows=1
oCMenu.fromleft=157
oCMenu.fromtop=86
oCMenu.pxbetween=0

//avail="190+((toppage.x2-210)/6)"
//oCMenu.menuplacement=new Array(190,avail,avail+"*2",avail+"*3",avail+"*4",avail+"*5")
oCMenu.menuplacement=0

oCMenu.level[0]=new Array()
oCMenu.level[0].width=100
oCMenu.level[0].height=16
oCMenu.level[0].bgcoloroff="#5382CB"
oCMenu.level[0].bgcoloron="#E9B261"
oCMenu.level[0].textcolor="WHITE"
oCMenu.level[0].hovercolor=""
oCMenu.level[0].style="padding:2px; font-family:Verdana,Arial,Helvetica; font-size:10px; font-weight:bold"
oCMenu.level[0].border=1
oCMenu.level[0].bordercolor="E9B261"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=-1
oCMenu.level[0].NS4font="Verdana,Arial,Helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="White"
oCMenu.level[0].align="bottom"
oCMenu.level[0].clip=1 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCMenu.level[0].clippx=15 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px 
oCMenu.level[0].cliptim=50 //This is the speed of the timer for the clip effect. Play with this and the clippx to get the desired speed for the clip effect (be carefull though and try and keep this value as high or possible or you can get problems with NS4). - Value: milliseconds

oCMenu.level[1]=new Array()
oCMenu.level[1].width=120
oCMenu.level[1].height=18
oCMenu.level[1].bgcoloroff="#5382CB"
oCMenu.level[1].bgcoloron="#E9B261"
oCMenu.level[1].textcolor="WHITE"
oCMenu.level[1].hovercolor=""
oCMenu.level[1].style="padding:2px; font-family:Verdana,Arial,Helvetica; font-size:10px; font-weight:bold"
oCMenu.level[1].align="bottom"
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1
oCMenu.level[1].bordercolor="#E9B261"
oCMenu.level[1].NS4font="Verdana,Arial,Helvetica"
oCMenu.level[1].NS4fontSize="1"
oCMenu.level[1].NS4fontColor="White"

oCMenu.level[2]=new Array()
oCMenu.level[2].width=150
oCMenu.level[2].height=18
oCMenu.level[2].style="padding:2px; font-family:Verdana,Arial,Helvetica; font-size:10px; font-weight:bold"
oCMenu.level[2].align="bottom"
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1
oCMenu.level[2].bordercolor="#E9B261"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="White"
oCMenu.level[2].bgcoloroff="#5382CB"
oCMenu.level[2].bgcoloron="#E9B261"
oCMenu.level[2].textcolor="White"
oCMenu.level[2].hovercolor=""

oCMenu.makeMenu('top0','','&nbsp;WisdomTips','','',80)
	oCMenu.makeMenu('sub00','top0',"Today's WisdomTips",'ConsejoDelDia.asp','',150)
		oCMenu.makeMenu('sub001','sub00','The Last 7 WisdomTips Sent By E-mail.','ConsejoDelDia.asp','',170,30)
	oCMenu.makeMenu('sub01','top0','Random WisdomTip','ConsejoAlAzar.asp','',150)
		oCMenu.makeMenu('sub011','sub01','Random WisdomTip.','ConsejoAlAzar.asp','',130,20)
	oCMenu.makeMenu('sub02','top0','Categories','Clasificaciones.asp','',150)
		oCMenu.makeMenu('sub021','sub02','All our wisdom tips classified and sorted by range.','Clasificaciones.asp','',210,30)
	oCMenu.makeMenu('sub03','top0','The Latest WisdomTips','LosUltimosConsejos.asp','',150)
		oCMenu.makeMenu('sub031','sub03','The last 50 WisdomTips entered.','LosUltimosConsejos.asp','',200,20)
	oCMenu.makeMenu('sub04','top0','Search wisdomtips','BuscarConsejo.asp','',150)
		oCMenu.makeMenu('sub041','sub04','Search for your favorite wisdomtip. Enter one or more keywords.','BuscarConsejo.asp','',220,30)

oCMenu.makeMenu('top1','','&nbsp;Submit a WisdomTip','EnviarConsejo.asp','',130)

oCMenu.makeMenu('top2','','&nbsp;Subscribe FREE','','',100)
	oCMenu.makeMenu('sub20','top2','Daily wisdomtip free via email','','_blank',180,0,'','','','','','','if(!bw.ns4)window.open("/scripts/subscription/tip_subscribe.asp" ,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,width=525,height=360,left=100,top=50")')
		oCMenu.makeMenu('sub201','sub20','You will get a wisdomtip everyday FREE by email.','','_blank',220,30,'','','','','','','if(!bw.ns4)window.open("/scripts/subscription/tip_subscribe.asp" ,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,width=525,height=360,left=100,top=50")')
	oCMenu.makeMenu('sub21','top2','Unsubscribe from WisdomTips','','_blank',180,0,'','','','','','','if(!bw.ns4)window.open("/scripts/subscription/tip_unsubscribe.asp" ,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,width=525,height=360,left=100,top=50")')
		oCMenu.makeMenu('sub211','sub21','Unsubscribe from WisdomTips.','','_blank',180,0,'','','','','','','if(!bw.ns4)window.open("/scripts/subscription/tip_unsubscribe.asp" ,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,width=525,height=360,left=100,top=50")')

oCMenu.makeMenu('top3','','&nbsp;Privacy','PrivacyPolicy.asp','',60)
	oCMenu.makeMenu('sub30','top3','We will never make your personal information available to others<br><br>Click Here','PrivacyPolicy.asp','',130,90)

oCMenu.makeMenu('top4','','&nbsp;Auto Signature','/Signature/SignatureInstruccion.asp','',100)
	oCMenu.makeMenu('sub40','top4','Free, automatically add a different quote / tip below your email signature, works with MS Outlook and MS Outlook Express only...<BR><BR>Click Here','/Signature/SignatureInstruccion.asp','',150,100)

oCMenu.makeMenu('top5','','&nbsp;WebMaster','/WebMaster','',80)
	oCMenu.makeMenu('sub50','top5','Publish WisdomTips pages in your web site FREE!...<br><br>Click Here.','/WebMaster','',120,70)

oCMenu.makeMenu('top6','','&nbsp;Espaņol','http://www.ConsejosSabios.com/','',60)

oCMenu.makeStyle(); oCMenu.construct()
function cm_checkScrolled(obj){
	if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset
	else obj.scrolledY=obj.win.document.body.scrollTop
	if(obj.scrolledY!=obj.lastScrolled){
		if(!obj.useframes){
			self.status=obj.scrolledY
			if(obj.scrolledY>119){
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.scrolledY)}
				if(obj.usebar) obj.oBar.moveY(obj.scrolledY)
			}else{
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.fromtop)}
				if(obj.usebar) obj.oBar.moveY(obj.fromtop)
			}

		}
		obj.lastScrolled=obj.scrolledY; page.y=obj.scrolledY; page.y2=page.y2orig+obj.scrolledY
		if(!obj.useframes || bw.ie){ clearTimeout(obj.tim); obj.isover=0; obj.hideSubs(1,0)}
	}
	if((bw.ns4 || bw.ns6) && !obj.useframes) setTimeout("cm_checkScrolled("+obj.name+")",200)
}