function Buttery_LayerSwap()
{
	var i,p,v,obj,args=Buttery_LayerSwap.arguments;

	for(i=0;i<(args.length-2);i+=3)
		with(document)
			if(getElementById&&((obj=getElementById(args[i]))!=null))
			{
				v=args[i+2];
				if(obj.style){
					obj=obj.style;
					v=(v=='show')?'visible':(v=='hide')?'hidden':v;
				}
				obj.visibility=v;
			}
}

function Buttery_timelineGoto(tmLnName,fNew,numGotos)
{
	var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
	if(document.Buttery_Time==null)
		Buttery_initTimelines();
		
	tmLn=document.Buttery_Time[tmLnName];
	if(numGotos!=null)
		if(tmLn.gotoCount==null)
			tmLn.gotoCount=1;
		else if(tmLn.gotoCount++>=numGotos){
			tmLn.gotoCount=0;
			return;
		}
		
	jmpFwd=(fNew>tmLn.curFrame);
	
	for(i=0;i<tmLn.length;i++)
	{
		sprite=(jmpFwd)?tmLn[i]:tmLn[(tmLn.length-1)-i];
		if(sprite.charAt(0)=="s")
		{
			numKeyFr=sprite.keyFrames.length;
			firstKeyFr=sprite.keyFrames[0];
			lastKeyFr=sprite.keyFrames[numKeyFr-1];
			if((jmpFwd&&fNew<firstKeyFr)||(!jmpFwd&&lastKeyFr<fNew))
				continue;
			
			//for(keyFrm=1;keyFrm<numKeyFr&&fNew>=sprite.keyFrames[keyFrm];keyFrm++);
			for(j=0;j<sprite.values.length;j++)
			{
				props=sprite.values[j];
				if(numKeyFr==props.length)
					propNum=keyFrm-1;
				else 
					propNum=Math.min(Math.max(0,fNew-firstKeyFr),props.length-1);
				
				if(sprite.obj!=null){
					if(props.prop2==null)
						sprite.obj[props.prop]=props[propNum];
					else 
						sprite.obj[props.prop2][props.prop]=props[propNum];
				}
			}
		}
		else if(sprite.charAt(0)=='b'&&fNew==sprite.frame)
			eval(sprite.value);
	}
	
	tmLn.curFrame=fNew;
	if(tmLn.ID==0)
		eval('Buttery_timelinePlay(tmLnName)');
		
}

function Buttery_timelinePlay(tmLnName,myID){
	var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
	
	if(document.Buttery_Time==null)
		Buttery_initTimelines();
	
	tmLn=document.Buttery_Time[tmLnName];
	
	if(myID==null){
		myID=++tmLn.ID;
		firstTime=true;
	}
	
	if(myID==tmLn.ID){
		setTimeout('Buttery_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
		fNew=++tmLn.curFrame;
		
		for(i=0;i<tmLn.length;i++){
			sprite=tmLn[i];
			if(sprite.charAt(0)=='s'){
				if(sprite.obj){
					numKeyFr=sprite.keyFrames.length;
					firstKeyFr=sprite.keyFrames[0];
					if(fNew>=firstKeyFr&&fNew<=sprite.keyFrames[numKeyFr-1]){
						keyFrm=1;
						for(j=0;j<sprite.values.length;j++)
						{
							props=sprite.values[j];
							if(numKeyFr!=props.length){
								if(props.prop2==null)
									sprite.obj[props.prop]=props[fNew-firstKeyFr];
								else 
									sprite.obj[props.prop2][props.prop]=props[fNew-firstKeyFr];
							}
							else
							{
								while(keyFrm<numKeyFr&&fNew>=sprite.keyFrames[keyFrm])
									keyFrm++;
								
								if(firstTime||fNew==sprite.keyFrames[keyFrm-1])
								{	
									if(props.prop2==null)
										sprite.obj[props.prop]=props[keyFrm-1];
									else 
										sprite.obj[props.prop2][props.prop]=props[keyFrm-1];
								}
							}
						}
					}
				}
			}
			else if(sprite.charAt(0)=='b'&&fNew==sprite.frame)
				eval(sprite.value);
			
			if(fNew>tmLn.lastFrame)tmLn.ID=0;
		}
	}
}

function Buttery_initTimelines()
{
	var ns=navigator.appName=="Netscape";
	var ns4=(ns&&parseInt(navigator.appVersion)==4);
	var ns5=(ns&&parseInt(navigator.appVersion)>4);
	var macIE5=(navigator.platform?(navigator.platform=="MacPPC"):false)&&(navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4);
	
	document.Buttery_Time=new Array(1);
	document.Buttery_Time[0]=new Array(14);
	document.Buttery_Time["subnav"]=document.Buttery_Time[0];
	document.Buttery_Time[0].Buttery_Name="subnav";
	document.Buttery_Time[0].fps=1;
	document.Buttery_Time[0][0]=new String("behavior");
	document.Buttery_Time[0][0].frame=10;
	document.Buttery_Time[0][0].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][1]=new String("behavior");
	document.Buttery_Time[0][1].frame=100000;
	document.Buttery_Time[0][1].value="Buttery_LayerSwap('homenav','','show','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][2]=new String("behavior");
	document.Buttery_Time[0][2].frame=200000;
	document.Buttery_Time[0][2].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','show','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][3]=new String("behavior");
	document.Buttery_Time[0][3].frame=300000;
	document.Buttery_Time[0][3].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','show','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][4]=new String("behavior");
	document.Buttery_Time[0][4].frame=400000;
	document.Buttery_Time[0][4].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','show','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][5]=new String("behavior");
	document.Buttery_Time[0][5].frame=500000;
	document.Buttery_Time[0][5].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','show','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][6]=new String("behavior");
	document.Buttery_Time[0][6].frame=600000;
	document.Buttery_Time[0][6].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','show','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][7]=new String("behavior");
	document.Buttery_Time[0][7].frame=700000;
	document.Buttery_Time[0][7].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','show','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][8]=new String("behavior");
	document.Buttery_Time[0][8].frame=800000;
	document.Buttery_Time[0][8].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','show','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][9]=new String("behavior");
	document.Buttery_Time[0][9].frame=900000;
	document.Buttery_Time[0][9].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','show','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][10]=new String("behavior");
	document.Buttery_Time[0][10].frame=1000000;
	document.Buttery_Time[0][10].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','show','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][11]=new String("behavior");
	document.Buttery_Time[0][11].frame=1100000;
	document.Buttery_Time[0][11].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','show','blognav','','hide','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][12]=new String("behavior");
	document.Buttery_Time[0][12].frame=1200000;
	document.Buttery_Time[0][12].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','show','destinationsnav','','hide','storesnav','','hide')";
	document.Buttery_Time[0][13]=new String("behavior");
	document.Buttery_Time[0][13].frame=1300000;
	document.Buttery_Time[0][13].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','show','storesnav','','hide')";
	document.Buttery_Time[0][14]=new String("behavior");
	document.Buttery_Time[0][14].frame=1400000;
	document.Buttery_Time[0][14].value="Buttery_LayerSwap('homenav','','hide','flightsnav','','hide','vacationsnav','','hide','cruisesnav','','hide','toursnav','','hide','hotelsnav','','hide','carsnav','','hide','railnav','','hide','specialistsnav','','hide','businessnav','','hide','insurancenav','','hide','blognav','','hide','destinationsnav','','hide','storesnav','','show')";
	document.Buttery_Time[0].lastFrame=1500000;
	
	for(i=0;i<document.Buttery_Time.length;i++){
		document.Buttery_Time[i].ID=null;
		document.Buttery_Time[i].curFrame=0;
		document.Buttery_Time[i].delay=1000/document.Buttery_Time[i].fps;
	}
}