/*****************************************************************************
Default browsercheck
******************************************************************************/
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()
var mDebugging=2

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=0
oCMenu.frame=""
oCMenu.useNS4links=1
oCMenu.NS4padding=2
oCMenu.checkselect=1
oCMenu.offlineUrl="file:///C|/thebest12/scripts/coolmenus3/"
oCMenu.onlineUrl="http://simplythebest.net/scripts/coolmenus3/"

oCMenu.pagecheck=1
oCMenu.checkscroll=2
oCMenu.resizecheck=1
oCMenu.wait=100

oCMenu.usebar=1
oCMenu.barcolor="whitea"
oCMenu.barwidth="100%"
oCMenu.barheight="menu"
oCMenu.barx=0
oCMenu.bary="menu"
oCMenu.barinheritborder=0

oCMenu.rows=1
oCMenu.fromleft=0
oCMenu.fromtop=0
oCMenu.pxbetween=0
oCMenu.menuplacement=0
oCMenu.NS4hover=1

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=95 
oCMenu.level[0].height=15 
oCMenu.level[0].bgcoloroff="#DEF7FA"
oCMenu.level[0].bgcoloron="black" 
oCMenu.level[0].textcolor="#000000"
oCMenu.level[0].hovercolor="#ffffff" 
oCMenu.level[0].style="font-family:arial,Verdana,helvetica; font-size:10px; font-weight:normal"
oCMenu.level[0].border=1 
oCMenu.level[0].bordercolor="black" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1 
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=0
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
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Barn(duration=0.5,orientation=horizontal)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Blinds(duration=0.5,bands=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.CheckerBoard(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=0.5,wipeStyle=0)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Iris(duration=0.5,irisStyle=STAR)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Iris(duration=0.5,irisStyle=CIRCLE)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Pixelate(duration=0.5,maxSquare=40)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Spiral(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Stretch(duration=0.5,stretchStyle=push)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Strips(duration=0.5,motion=rightdown)"

//menu definitions
oCMenu.level[1]=new Array() 
oCMenu.level[1].width=200
oCMenu.level[1].height=15
oCMenu.level[1].bgcoloroff="#D4D4D4"
oCMenu.level[1].bgcoloron="#F0F0F0"
oCMenu.level[1].textcolor="#000000"
oCMenu.level[1].hovercolor="red"
oCMenu.level[1].style="padding:2px; font-family:arial,verdana,helvetica; font-size:10px; font-weight:normal"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=0 
oCMenu.level[1].bordercolor="#D4D4D4"
oCMenu.level[1].NS4font="arial,helvetica"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"

oCMenu.level[2]=new Array()
oCMenu.level[2].width=180
oCMenu.level[2].height=18
oCMenu.level[2].style="padding:2px; font-family: 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=0 
oCMenu.level[2].bordercolor=""
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="black"
oCMenu.level[2].bgcoloroff="#D4D4D4"
oCMenu.level[2].bgcoloron="#F0F0F0"
oCMenu.level[2].textcolor="#000000"
oCMenu.level[2].hovercolor="red"

oCMenu.makeMenu('top0','','&nbsp;Company Intro','','')
	oCMenu.makeMenu('sub00','top0','Company Intro','http://www.asianbiketour.com/Motorcycle_tour_Asia_ASIAN_MOTORCYCLE_ADVENTURES_company_INTRODUCTION_A.htm')
	oCMenu.makeMenu('sub01','top0','Basics of an A.M.A. Tour','http://www.asianbiketour.com/Motorcycle_tour_Asia_BASICS_of_an_ASIAN_MOTORCYCLE_ADVENTURE_tour_B.htm')
	oCMenu.makeMenu('sub59','top0','Return to A.M.A. Home Page','http://www.asianbiketour.com/index.htm')		

oCMenu.makeMenu('top1','','&nbsp;Tour Offerings',
'http://www.asianbiketour.com/Motorcycle_tour_Asia_Tour_Offerings.htm')
	oCMenu.makeMenu('sub02','top1','Golden Triangle Tour, Northern Thailand','http://www.asianbiketour.com/Motorcycle_tour_Asia_Thailand_GOLDEN_Triangle_Tour_4.htm')
	oCMenu.makeMenu('sub03','top1','Beaches Tour, Southern Thailand','http://www.asianbiketour.com/Motorcycle_tour_Asia_Thailand_BEACHES_Tour_3.htm')
	oCMenu.makeMenu('sub69','top1','The All-Thailand Grand Tour','http://www.asianbiketour.com/Motorcycle_Tour_Asia_ALL_THAILAND.htm')
	oCMenu.makeMenu('sub04','top1','Laos','http://www.asianbiketour.com/Motorcycle_tour_Asia_LAOS_Tour_5.htm')
	oCMenu.makeMenu('sub05','top1','1-MONTH Thai-Cambodia Expedition','http://www.asianbiketour.com/Motorcycle_tour_Asia_30-Day_Thai-Cambodia_Expedition.htm ')
        oCMenu.makeMenu('sub55','top1','5-Day Golden Triangle Tours','http://www.asianbiketour.com/Motorcycle_tour_Asia_5-Day_Tours_North_Thailand_.htm ')
	oCMenu.makeMenu('sub06','top1','Angkor Wat, Cambodia','http://www.asianbiketour.com/Motorcycle_tour_Asia_ANGKOR_Wat_Cambodia_8.htm')
	oCMenu.makeMenu('sub07','top1','East Malaysia Tour','http://www.asianbiketour.com/Motorcycle_tour_Asia_BORNEO_East_Malaysia_Tour_6.htm')
        oCMenu.makeMenu('sub51','sub07','Sarawak, Sabah, Brunei','http://www.asianbiketour.com/Motorcycle_tour_Asia_BORNEO_East_Malaysia_Tour_6.htm')
	oCMenu.makeMenu('sub08','top1','Trans-Borneo Expedition','http://www.asianbiketour.com/Motorcycle_tour_Asia_TRANS-Borneo_Motorcycle_Expedition_7.htm')
	oCMenu.makeMenu('sub09','top1','Scuba-Drive Tour','http://www.asianbiketour.com/Motorcycle_tour_Asia_PHILIPPINES_Scuba_Tour_13.htm')
	oCMenu.makeMenu('sub52','sub09','The Philippines, Visaya Islands','http://www.asianbiketour.com/Motorcycle_tour_Asia_PHILIPPINES_Scuba_Tour_13.htm')
	oCMenu.makeMenu('sub10','top1','Peninsular Malaysia Tour','http://www.asianbiketour.com/Motorcycle_tour_Asia_PENINSULAR_Malaysia_Tour_2.htm')
	oCMenu.makeMenu('sub45','top1','Future Tour Destinations ','http://www.asianbiketour.com/FUTURE_tours.htm')
	oCMenu.makeMenu('sub56','top1','All tours: Summary & Comparison ','Comparison_&_Summary_of_AMA_tours.htm')
	oCMenu.makeMenu('sub68','top1','Touring Schedule ','http://www.asianbiketour.com/Motorcycle_tour_Asia_touring_schedule.htm')

oCMenu.makeMenu('top2','','&nbsp;&nbsp;Tour Schedule','')
	oCMenu.makeMenu('sub11','top2','Tours: dates and destinations','http://www.asianbiketour.com/Motorcycle_tour_Asia_touring_schedule.htm')

oCMenu.makeMenu('top3','','&nbsp;How To Sign Up','http://www.asianbiketour.com/Motorcycle_tour_Asia_HOW_to_sign_up_for_an_AMA_tour_C.htm')
	oCMenu.makeMenu('sub70','top3','Application Forms Home Page',
'http://www.asianbiketour.com/Motorcycle_tour_Asia_APPLICATION_FORM_Home_page.htm')
	oCMenu.makeMenu('sub12','top3','On-Line Application Form',
'http://www.asianbiketour.com/Motorcycle_tour_Asia_APPLICATION_FORM_Home_page.htm')
	oCMenu.makeMenu('sub63','top3','Rider Application Form for printing',
'http://www.asianbiketour.com/Motorcycle_tour_Asia_RIDER_PRINT_Application_Form.htm')
	oCMenu.makeMenu('sub62','top3','Pillion Application Form for printing',
'http://www.asianbiketour.com/Motorcycle_tour_Asia_PILLION_PRINT_Application_Form.htm')
	oCMenu.makeMenu('sub13','top3','Tour Application Procedure','http://www.asianbiketour.com/Motorcycle_tour_Asia_HOW_to_sign_up_for_an_AMA_tour_C.htm')	
	oCMenu.makeMenu('sub71','top3','How to Pay for Your Motorcycle Tour','http://www.asianbiketour.com/Motorcycle_tour_Asia_HOW_to_pay_for_your_motorcycle_tour.htm')
	oCMenu.makeMenu('sub14','top3','Reservations & Deposits','http://www.asianbiketour.com/Motorcycle_tour_Asia_HOW_to_sign_up_for_an_AMA_tour_C.htm#Reservations')
	oCMenu.makeMenu('sub15','top3','Terms & Conditions','http://www.asianbiketour.com/TERMS_&_CONDITIONS_INDEMNITY_&_RELEASE_form_printing.htm')
	oCMenu.makeMenu('sub16','top3','Indemnity & Release Form','http://www.asianbiketour.com/TERMS_&_CONDITIONS_INDEMNITY_&_RELEASE_form_printing.htm')
	
	oCMenu.makeMenu('top4','','&nbsp;Magazine Articles','http://www.asianbiketour.com/Motorcycle_tour_Asia_MAGAZINE_articles_HOMEPAGE_D.htm')
	oCMenu.makeMenu('sub18','top4','Laos','http://www.asianbiketour.com/Motorcycle_tour_Asia_MAGAZINE_articles_LAOS_HomePage_a.htm')
	oCMenu.makeMenu('sub19','top4','Borneo','http://www.asianbiketour.com/Motorcycle_tour_Asia_Magazine_BORNEO_articles_HomePage_b.htm')
	oCMenu.makeMenu('sub20','top4','Angkor Wat','http://www.asianbiketour.com/Motorcycle_tour_Asia_magazine_article_THE_ANCIENT_ROYAL_KYMER_ROAD.htm')
	oCMenu.makeMenu('sub21','top4','Burma','http://www.asianbiketour.com/Motorcycle_tour_Asia_magazine_article_BIKING_THROUGH_BURMA.htm')
	oCMenu.makeMenu('sub22','top4','Silk Road','http://www.asianbiketour.com/Motorcycle_tour_Asia_magazine_article_IF_MARCO_POLO_RODE_A_HARLEY.htm')
	oCMenu.makeMenu('sub23','top4','Rajasthan','http://www.asianbiketour.com/magazine_article_rajasthan.htm')
	oCMenu.makeMenu('sub53','top4','Thailand','http://www.asianbiketour.com/Motorcycle_tour_Asia_MAGAZINE_articles_golden_triangle_HomePage_a.htm')

oCMenu.makeMenu('top5','','&nbsp;Photos/Slide Show','http://www.asianbiketour.com/0_thumbnail_PHOTOGALLERY_Homepage.htm')
	oCMenu.makeMenu('sub67','top5','Photo Gallery Home Page','http://www.asianbiketour.com/0_thumbnail_PHOTOGALLERY_Homepage.htm')
	oCMenu.makeMenu('sub24','top5','Ho Chi Minh Trail Slide Show','http://www.asianbiketour.com/ama_ss2_0.htm')
	oCMenu.makeMenu('sub25','top5','Southern Laos Slide Show','http://www.asianbiketour.com/ama_ss1_0.htm')
	oCMenu.makeMenu('sub26','top5','Northern Laos Slide Show','')
	oCMenu.makeMenu('sub27','top5','North Vietnam Slide Show','http://www.asianbiketour.com/ama_ss3_0.htm')
	oCMenu.makeMenu('sub33','top5','IndoChina Expedition Slide Show','http://www.asianbiketour.com/ama_ss5_0.htm')
	oCMenu.makeMenu('sub58','top5','Scuba-Drive Tour, The Philippines S.S.','http://www.asianbiketour.com/ama_ss4_0.htm')
	oCMenu.makeMenu('sub28','top5','Burma Slide Show','http://asianbiketour.com/ama_ss6_0.htm')
	oCMenu.makeMenu('sub64','top5','Northern Laos Thumbnails','http://asianbiketour.com/2_thumbnail_LAOS.htm')
	oCMenu.makeMenu('sub29','top5','Golden Triangle Thumbnails','http://www.asianbiketour.com/3_thumbnail_GOLDEN_TRIANGLE.htm')
	oCMenu.makeMenu('sub30','top5','Beaches Tour Thumbnails','http://www.asianbiketour.com/4_thumbnail_S.THAILAND_BEACHES.htm')
	oCMenu.makeMenu('sub31','top5','Angkor Wat Thumbnails','http://www.asianbiketour.com/5_thumbnail_ANGKOR_WAT.htm')
	oCMenu.makeMenu('sub32','top5','Borneo Thumbnails','http://www.asianbiketour.com/6_thumbnail_BORNEO.htm')
	oCMenu.makeMenu('sub65','top5','Miscellaneous Thumbnails','http://www.asianbiketour.com/7_thumbnail_MISC..htm')


oCMenu.makeMenu('top6','','&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maps','http://www.asianbiketour.com/Motorcycle_tour_Asia_MAP_homepage.htm')
	oCMenu.makeMenu('sub66','top6','Map Home Page','http://www.asianbiketour.com/Motorcycle_tour_Asia_MAP_homepage.htm')
	oCMenu.makeMenu('sub34','top6','S.E. Asia','http://www.asianbiketour.com/images/map.14_SE-ASIA_RS.GIF')
	oCMenu.makeMenu('sub36','top6','Northern Thailand, Golden Triangle Tour','http://www.asianbiketour.com/images/map.28_GOLDENTRIANGLE_RS.GIF')
	oCMenu.makeMenu('sub37','top6','Southern Thailand, Beaches Tour','http://www.asianbiketour.com/images/map.21_BEACHES_RS.GIF')
	oCMenu.makeMenu('sub38','top6','Laos','http://www.asianbiketour.com/images/map.10_LAOS_new.gif')
	oCMenu.makeMenu('sub54','top6','IndoChina Expedition','xxxxxxxxxxxxxxxxxxxx')
	oCMenu.makeMenu('sub35','top6','Peninsular Malaysia','http://www.asianbiketour.com/images/map.12_PEN_MALAY_RS.GIF')
	oCMenu.makeMenu('sub39','top6','Borneo','http://www.asianbiketour.com/images/map.27_E.MALAY_RS.GIF')
	oCMenu.makeMenu('sub40','top6','East Malaysia','http://www.asianbiketour.com/images/map.27_E.MALAY_RS.GIF')
	oCMenu.makeMenu('sub41','top6','Angor Wat','http://www.asianbiketour.com/images/map.20_ANGKOR_RS.gif')
	oCMenu.makeMenu('sub42','top6','Cambodia','http://www.asianbiketour.com/images/map.25_CAMBODIA_RS.GIF')
	oCMenu.makeMenu('sub43','top6','Burma','http://www.asianbiketour.com/images/map.24_BURMA_RS.gif')
	oCMenu.makeMenu('sub44','top6','North Vietnam','')


oCMenu.makeMenu('top7','','&nbsp;Misc',
'http://www.asianbiketour.com/Motorcycle_tour_Asia_MISC_INFO_X.htm')
	oCMenu.makeMenu('sub61','top7','Links','http://www.asianbiketour.com/AMA-motorcycle-links.htm')
	oCMenu.makeMenu('sub60','top7','Rentals','http://www.asianbiketour.com/Motorcycle_tour_Asia_motorcycle_RENTAL_12.htm')
	oCMenu.makeMenu('sub46','top7','Attn : Private Groups and MC Clubs','http://www.asianbiketour.com/Motorcycle_tour_Asia_MISC_INFO_X.htm#clubs')
	oCMenu.makeMenu('sub47','top7','Attn : Tour Operators ','http://www.asianbiketour.com/Motorcycle_tour_Asia_MISC_INFO_X.htm#attn tour operators')
	oCMenu.makeMenu('sub48','top7','Frequent Rider Program','http://www.asianbiketour.com/Motorcycle_tour_Asia_MISC_INFO_X.htm#freq rider program')
	oCMenu.makeMenu('sub49','top7','Misc. Info','http://www.asianbiketour.com/Motorcycle_tour_Asia_MISC_INFO_X.htm#misc info')


//menu activation
oCMenu.makeStyle(); oCMenu.construct()		

//check scrolling routine
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)
}