function MM_showHideLayers() { //v9.0



  var i,p,v,obj,args=MM_showHideLayers.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; }



}







var theImages = new Array() // do not change this



 



<!-- Edit the url images to match yours

theImages[0] = 'http://www.chinatour.com/images/home_banner590.jpg'

/*theImages[1] = 'http://www.chinatour.com/images/home_banner95.jpg'*/
theImages[1] = 'http://www.chinatour.com/images/home_banner124.jpg'

theImages[2] = 'http://www.chinatour.com/images/home_banner0106.jpg'

theImages[3] = 'http://www.chinatour.com/images/home_banner36.jpg'






/*theImages[3] = 'http://www.chinatour.com/images/home_banner59.jpg'*/

/*theImages[3] = 'http://www.chinatour.com/images/home_banner21.jpg'*/
/*theImages[3] = 'http://www.chinatour.com/images/home_banner0107.jpg'*/


/*theImages[4] = 'http://www.chinatour.com/images/home_banner9.jpg'



theImages[5] = 'http://www.chinatour.com/images/home_banner1.jpg'



theImages[6] = 'http://www.chinatour.com/images/home_banner13.jpg'*/



/*

theLink[0]='http://www.chinatour.com/cityPackage/Beijing.htm';



theLink[1]='http://www.chinatour.com/package/1/Best_of_China_12_Days.htm';



theLink[2]='http://www.chinatour.com/cityPackage/Luoyang.htm';



theLink[3]='http://www.chinatour.com/package/2/Majectic_Yangtze_15_Days.htm';



theLink[4]='http://www.chinatour.com/cityPackage/Guilin.htm';



theLink[5]='http://www.chinatour.com/newpage/deluxe.htm';



theLink[6]='http://www.chinatour.com/newpage/premier.htm';

*/

   



var theLink=new Array()






theLink[0]='http://www.chinatour.com/2012/premier.htm';
theLink[1]='http://www.chinatour.com/2012/deluxe.htm';
/*theLink[1]='http://www.chinatour.com/package/package.htm';*/
/*theLink[1]='http://www.chinatour.com/2012-package/100/Majectic-Yangtze-15-Days.htm';*/

theLink[2]='http://www.chinatour.com/2012-package/118/Xizang-&-Nepal-for-Explores-Tour-13-Days.htm';

theLink[3]='http://www.chinatour.com/package/educational.htm';

/*theLink[1]='http://www.chinatour.com/2012-package/118/Xizang-&-Nepal-for-Explores-Tour-13-Days.htm';*/





/*theLink[3]='http://www.chinatour.com/professionalTours/21/Chinese_Culture_Educational_Tour_11_days.htm';*/



/*theLink[4]='http://www.chinatour.com/flashdeal/flashdeal.htm';



theLink[5]='http://www.chinatour.com/package/1/Best_of_China_12_Days.htm';



theLink[6]='http://www.chinatour.com/cityPackage/13/Beijing_4_Days_3_Nights_Regular_Package.htm';*/





/*theLink[0]='http://www.chinatour.com/cityPackage/Beijing.htm';



theLink[1]='http://www.chinatour.com/package/1/Best_of_China_12_Days.htm';



theLink[2]='http://www.chinatour.com/cityPackage/Luoyang.htm';



theLink[3]='http://www.chinatour.com/package/2/Majectic_Yangtze_15_Days.htm';



theLink[4]='http://www.chinatour.com/cityPackage/Guilin.htm';



theLink[5]='http://www.chinatour.com/newpage/deluxe.htm';



theLink[6]='http://www.chinatour.com/newpage/premier.htm';*/









var imageAlt=new Array()







imageAlt[0]='2012 China Travel Packages';



imageAlt[1]='Educational Tours, Students Exchange Program,Music Exchange Program';



imageAlt[2]='Luoyang travel, Luoyang tour,, Luoyang travel information, Luoyang introduction';



imageAlt[3]='Yangtze river cruises are a specialty of ChinaTour.com. Our Yangtze River tour includes the Three Gorges Dam and much more. Visit our site today to book your Yangtze River Cruise and an experience to remember.';



/*imageAlt[4]='Guilin travel, Guilin tour, Guilin travel information, Guilin introduction';



imageAlt[5]='China deluxe group tour, Best choice for the middle-classes China Travel';



imageAlt[6]='China premier group tour, Particularly created for those who want to enjoy the luxury traveling experience in China.';*/



 



var j = 0



var p = theImages.length;



var preBuffer = new Array()



for (i = 0; i < p; i++){



preBuffer[i] = new Image()



preBuffer[i].src = theImages[i]



}



var whichImage = Math.round(Math.random()*(p-1));



function showImage(){



document.write('<a href="'+theLink[whichImage]+'" ><img src="'+theImages[whichImage]+'" border="0" alt="China Tours at ChinaTour.com" /></a>');



}







//



function showEarlyBirdInfo(){



	document.getElementById('earlyBirdInfo').style.display='block';



}



function closeEarlyBirdInfo(){



	document.getElementById('earlyBirdInfo').style.display='none';



}







function showChinatourNews(){



	if(document.getElementById('chinatourNews').style.display=='none'){



		var visible1=new visibleClass();



		visible1.startObjVisible('aboutUs');



		var visible2=new visibleClass();



		visible2.startObjVisible('chinatourNews');



		



	}



}



function closeChinatourNews(){



	if(document.getElementById('aboutUs').style.display=='none'){



		var visible1=new visibleClass();



		visible1.startObjVisible('chinatourNews');



		var visible2=new visibleClass();



		visible2.startObjVisible('aboutUs');



	}



	



}



//



function visibleClass(){



	var self=this;



	var intTimeStep=20;



	var isIe=(window.ActiveXObject)?true:false;



	var intAlphaStep=(isIe)?5:0.05;



	var curSObj=null;



	var curOpacity=null;



	



	this.startObjVisible=function (objId)



	{



		curSObj=document.getElementById(objId);



		this.setObjState();



	}



	this.setObjState=function (evTarget)



	{



		if (curSObj.style.display=="")



		{



			if(isIe)



			{



				curOpacity=100;



			}else



			{



				curOpacity=1;



			}



			this.setObjClose();



		}else{



			if(isIe)



			{



				curSObj.style.filter="alpha(opacity=0)";



			}else



			{



				curSObj.style.opacity=0;



			}



			curSObj.style.display='';



			curSObj.style.backgroundColor = "";



			curOpacity=0;



			this.setObjOpen();



		}



	}



	



	this.setObjOpen=function ()



	{



		



		if(isIe)



		{



			curOpacity+=intAlphaStep;



			curSObj.style.filter="alpha(opacity="+curOpacity+")";



			if (curOpacity<100) 



			{



				setTimeout(function(){self.setObjOpen();},intTimeStep);//D:ȷ



			}



		}else



		{



			curOpacity+=intAlphaStep;



			curSObj.style.opacity =curOpacity;







			if (curOpacity<1) {



				setTimeout(function(){self.setObjOpen();},intTimeStep);//D:ȷ







			}



		}



	}



	this.setObjClose=function ()



	{



		if(isIe)



		{



			curOpacity-=intAlphaStep;



			



		



			if (curOpacity>0) 



			{



				curSObj.style.filter="alpha(opacity="+curOpacity+")";



				setTimeout(function(){self.setObjClose();},intTimeStep);//D:ȷ



			}else 



			{



				curSObj.style.display="none";			



			}



		}else



		{



			curOpacity-=intAlphaStep;



			if (curOpacity>0)



			{



				curSObj.style.opacity =curOpacity;



				setTimeout(function(){self.setObjClose();},intTimeStep);//D:ȷ



			}else 



			{



				curSObj.style.display='none';



			}



		}



	}



}



//




