/*****************************************************************************
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=0
oCMenu.offlineUrl="file:///f|/websites/dev4/icpt/"
oCMenu.onlineUrl="" // This doesn't work sometimes.


oCMenu.pagecheck=1
oCMenu.checkscroll=2
oCMenu.resizecheck=1 
oCMenu.wait=1000 

oCMenu.usebar=1 
oCMenu.barcolor="#000000" 
oCMenu.barwidth="590" 
oCMenu.barheight="menu" 
if (bw.ns6) {
	oCMenu.barx = (toppage.x2 < 1024) ? toppage.x50-306 : toppage.x50-300+1
}
else {
	oCMenu.barx=toppage.x50-300
}
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

oCMenu.rows=1
oCMenu.fromleft=0
oCMenu.fromtop=70 
oCMenu.pxbetween=0

// avail="("+oCMenu.barx/5+"+(toppage.x2-410)/7)" 
// avail = oCMenu.barx+"+600/7"
// oCMenu.menuplacement=new Array(oCMenu.barx,avail,avail+"*2",avail+"*3",avail+"*4",avail+"*5",avail+"*6")
oCMenu.menuplacement=new Array(oCMenu.barx,oCMenu.barx+60,oCMenu.barx+200,oCMenu.barx+300,oCMenu.barx+375,oCMenu.barx+450,oCMenu.barx+550)

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=120 
oCMenu.level[0].height=15 
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="white"
oCMenu.level[0].hovercolor="#ff9900"
oCMenu.level[0].style="font-family:arial,helvetica; font-size:11px; font-weight:normal"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="1"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=130
oCMenu.level[1].height=18
oCMenu.level[1].bgcoloroff="#cccccc"
oCMenu.level[1].bgcoloron="#666666"
oCMenu.level[1].textcolor="#333333"
oCMenu.level[1].hovercolor="#ffffff"
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:normal"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#333333"
oCMenu.level[1].NS4font="arial,helvetica"
oCMenu.level[1].NS4fontSize="1"
oCMenu.level[1].NS4fontColor="black"

oCMenu.makeMenu('top0','','&nbsp;home','http://www.icpt.com/','')
	
oCMenu.makeMenu('top1','','&nbsp;destinations/hotels','http://www.icpt.com/destinations.asp?id=pcb')
	oCMenu.makeMenu('sub100','top1','Panama City Beach','http://www.icpt.com/destinations.asp?id=pcb')
	oCMenu.makeMenu('sub101','top1','Daytona Beach','http://www.icpt.com/destinations.asp?id=dab')
	oCMenu.makeMenu('sub102','top1','South Padre Island','http://www.icpt.com/destinations.asp?id=spi')
	oCMenu.makeMenu('sub103','top1','South Beach-Miami','http://www.icpt.com/destinations.asp?id=sbm')
	oCMenu.makeMenu('sub104','top1','Key West','http://www.icpt.com/destinations.asp?id=key')
	oCMenu.makeMenu('sub105','top1','Orlando','http://www.icpt.com/destinations.asp?id=orl')
	oCMenu.makeMenu('sub106','top1','Ft. Lauderdale','http://www.icpt.com/destinations.asp?id=ftl')
	oCMenu.makeMenu('sub107','top1','Cancun','http://www.icpt.com/destinations.asp?id=cun')





	oCMenu.makeMenu('sub108','top1','Jamaica','http://www.icpt.com/destinations.asp?id=jam')
	oCMenu.makeMenu('sub109','top1','Acapulco','http://www.icpt.com/destinations.asp?id=aca')
	oCMenu.makeMenu('sub110','top1','Mazatlan','http://www.icpt.com/destinations.asp?id=maz')
	oCMenu.makeMenu('sub111','top1','Bahamas','http://www.icpt.com/destinations.asp?id=bah')
	oCMenu.makeMenu('sub112','top1','Bahamas Party Cruise','http://www.icpt.com/destinations.asp?id=bpc')
	

oCMenu.makeMenu('top2','','&nbsp;reservations','http://www.icpt.com/e_reservations.asp')
	oCMenu.makeMenu('sub200','top2','Online Reservation', 'http://www.icpt.com/e_reservations.asp')
	oCMenu.makeMenu('sub201','top2','Print Reservation Form', 'http://www.icpt.com/print_form.asp')
	oCMenu.makeMenu('sub202','top2','Contact Us', 'http://www.icpt.com/contact_us.asp')
	oCMenu.makeMenu('sub203','top2','Reservation Phone Order', 'http://www.icpt.com/phone_order.asp')
	oCMenu.makeMenu('sub204','top2','Sales Agent Access', 'http://www.icpt.com/agent/')
	oCMenu.makeMenu('sub205','top2','My Trip Reservation', 'http://www.icpt.com/resinfo/')

oCMenu.makeMenu('top3','','&nbsp;parties/meals','http://www.icpt.com/parties.asp')
	oCMenu.makeMenu('sub310','top3','Party Information','http://www.icpt.com/parties.asp')
//	oCMenu.makeMenu('sub311','top3','Example Schedules','http://www.icpt.com/party_schedules.asp')
	oCMenu.makeMenu('sub312','top3','Photo Gallery','http://www.icpt.com/photo_gallery.asp')
	oCMenu.makeMenu('sub313','top3','Special Events','http://www.icpt.com/special_offers.asp')
	oCMenu.makeMenu('sub314','top3','Party Excursions','http://www.icpt.com/pcb_events.asp')
	oCMenu.makeMenu('sub315','top3','Meal Plans','http://www.icpt.com/meal_plans.asp')
	
oCMenu.makeMenu('top4','','&nbsp;pricing','http://www.icpt.com/pricing.asp')
	oCMenu.makeMenu('sub400','top4','Pricing Info','http://www.icpt.com/pricing.asp')
	oCMenu.makeMenu('sub401','top4','Bus Pricing','http://www.icpt.com/bus_pricing.asp')

oCMenu.makeMenu('top5','','&nbsp;reps wanted','http://www.icpt.com/earn_free_trip.asp')
	oCMenu.makeMenu('sub500','top5','Campus Reps','http://www.icpt.com/earn_free_trip.asp')
	oCMenu.makeMenu('sub501','top5','On Location Staff','http://www.icpt.com/staff.asp')

oCMenu.makeMenu('top6','','&nbsp;about us','http://www.icpt.com/about_us.asp')

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)
}