function setTransition(){
   if (document.all){
      showarea.filters.revealTrans.apply();
   }
}

function playTransition(){
   if (document.all)
      showarea.filters.revealTrans.play()
}
function showimg(index){
   if(index==1){
       init++;
       if(init>=myimg.length) init=0;
   }
   else
   {
      init--;
       if(init<0) init=myimg.length-1;
   }
   setTransition();
   document.getElementById("showarea").src=myimg[init];
   playTransition();
   document.getElementById("showarea").alt=mytag[init];
}
function MM_jumpMenu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function TClick(index){
	var obj=document.getElementById("traveltour1");
	var hobj=document.getElementById("traveltourhead");
	if(parseInt(index)==1){		
		if(obj.style.display!="none"){
			obj.style.display="none";
			hobj.className="tth1";
		}
		else{
			obj.style.display="block";
			hobj.className="tth2";
		}
	}
	if(parseInt(index)==2){
		if(obj.style.display=="none"){			
			hobj.className="tth2";
		}		
	}
	if(parseInt(index)==3){
		if(obj.style.display=="none"){			
			hobj.className="tth1";
		}		
	}
}
function recommend(index){
	var tourobj=null;
	var linkobj=null;
	try{
		for(var i=1;i<5;i++){
			tourobj=document.getElementById("cotrecommend"+i);
			linkobj=document.getElementById("recommendlink"+i);
			if(i==index){
				tourobj.style.display="";
				linkobj.className="tourlink5"
			}
			else
			{
				tourobj.style.display="none";
				linkobj.className="";
			}
			tourobj.style.padding="0 0 0 10px";
			tourobj.style.margin="0px";
		}
	}
	catch(err)
	{
	}
}
