/*** google analytics ***/

 var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16624533-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

/*** end google analytics ***/

document.write('<style type="text/css">');
document.write('TABLE	{ margin: 1em;  }');
document.write('TABLE.one { border: thin solid #bbbbbb; border-spacing: 0.1em; margin: 0.1em;  }');
document.write('TABLE.two { border: thin solid #860F11; border-spacing: 0.1em; margin: 0.1em;  }');
document.write('TABLE.three { border: medium solid #860F11; border-spacing: 0.1em; margin: 0.1em;  }');
document.write('</style>');


function jointour ()
{
	alert("The following tours are looking for other guests to join them, and will thus reduce the price.  Please e-mail book@thechinaguide.com to enquire:  <br><br>")
}


function footercontent()
{
document.write('<style type="text/css">');
document.write('.jsOutWrapper{width:650px; border:1px solid #bbbbbb; padding:9px}');
document.write('.jsWhiteLink{color:#ffffff;}');
document.write('.jsCenterContent{text-align:center;}');
document.write('.jsFloatLeft{float:left}');
document.write('.jsFloatRight{float:right}');
document.write('.jsCommonFont{font-family:Arial;line-height:19px}');
document.write('.jsCommonColor{color:#efeeaae}');
document.write('.jsNormalTxt{font-size:16px;}');
document.write('.jsBigTxt{font-size:19px;}');
document.write('.jsSmallRTxt{font-size:12px;}');
document.write('.jsRedTxt{color:#ff0000;}');
document.write('.clearboth{clear:both}');
document.write('.redborder{border:2px solid #860F11}');
document.write('.redborder1{border:2px solid #860F11;padding:9px}');
document.write('.wborder{border:1px solid #bbbbbb}');
document.write('.w609{width:609px; padding:15px;}');
document.write('.w650{width:650px; padding:15px;}');
document.write('.w260{width:260px; padding:9px;}');
document.write('.w500{width:500px; padding:9px;}');
document.write('a img{border:0}');
document.write('.flagWrapper{width:350px;}');
document.write('.flag{width:65px;}');
document.write('.subscribe{width:300px}');
document.write('.copyright{font-family:Arial;font-size:15px;color:#efeeaa;}');
document.write('.copyright a{color:red;}');
document.write('</style>');


document.write('<div class="jsOutWrapper">');
document.write('<br class="clearboth"/>');

//document.write('<div class="jsCommonFont jsCommonColor jsNormalTxt  redborder w609" >');

//document.write('<p align=left><font face="Arial" color="#efeeaa"><font size="-1"><font color="Red">The China Guide</font> is independently managed by Americans in Beijing. Our aim is to give you western standard service and an experience which is extraordinary. Your satisfaction is our priority. All our guides, drivers and vehicles are carefully selected, certified for tourism and fully insured.  Our tours have no unscheduled or mandatory shopping stops so you spend your time and money wisely. </font><p>	<img src="http://www.thechinaguide.com/nightlife/hohai3.jpg" alt="Personal Beijing Tours and Guides" border="0"><br class="clearboth"/><br/>');
//document.write('	<div align="center"><font color="Red" face="Comic Sans MS">Interactively<br></font><font size="+1">');
//document.write('	<a href="http://www.chinatourbuilder.com/tour">Build Your Own Tour</a>');
//document.write('	</font><br><font color="Red" face="Comic Sans MS">Database driven instantaneous price.</font></div> ');
//document.write('	<p align="left">Choose your tour excursions, meals, museums, spas, theatre, nightlife and shopping or not - as you wish. &nbsp; We take you where you select. &nbsp; No surprise shopping stops or cut corners. &nbsp; Family options. ');
//document.write('	<p align="left">Also feel free to <a href="mailto:book@thechinaguide.com?subject=Personal Tour Enquiry for The China Guide" class="jsWhiteLink">E-mail</a> or talk on the phone with our Beijing based American & Australian travel agents to help you develop an itinerary.  We can advise and customize, let us know your needs.'); 
//document.write('	</p>');
//document.write('</div>');





//document.write('<br class="clearboth"/>');
//document.write('<div class="jsCommonFont jsCommonColor jsSmallRTxt w500" >');
//document.write('	<div class="jsFloatLeft"><strong>Change Language:</strong></div>');
//document.write('	<div class="flagWrapper jsFloatRight">');
//document.write('		<div class="jsFloatLeft  flag"><a href="http://www.thechinaguide.com/chinese/index.html" class="jsWhiteLink"><img src="http://www.thechinaguide.com/language/chinese_flag.jpg" alt="Chinese Language China Tourist Information"></a><br/><a href="http://www.thechinaguide.com/chinese/index.html" class="jsWhiteLink">Chinese</a></div>');
//document.write('		<div class="jsFloatLeft  flag"><a href="http://www.thechinaguide.com/francais/index.html" class="jsWhiteLink"><img src="http://www.thechinaguide.com/language/french_flag.jpg" alt="French Language China Tourist Information"></a><br/><a href="http://www.thechinaguide.com/francais/index.html" class="jsWhiteLink">Francais</a></div>');
//document.write('		<div class="jsFloatLeft  flag"><a href="http://www.thechinaguide.com/deutsche/index.html" class="jsWhiteLink"><img src="http://www.thechinaguide.com/language/german_flag.jpg" alt="German Language China Tourist Information"></a><br/><a href="http://www.thechinaguide.com/deutsche/index.html" class="jsWhiteLink">Deutsch</a></div>');
//document.write('		<div class="jsFloatLeft  flag"><OBJECT  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="45"HEIGHT="30" id="flags-english" ALIGN=""> <PARAM NAME=movie VALUE="http://www.thechinaguide.com/language/flags-english.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="http://www.thechinaguide.com/language/flags-english.swf" quality=high bgcolor=#FFFFFF  WIDTH="45" HEIGHT="30" NAME="flags-english" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT><br/><a href="http://www.thechinaguide.com/index.html" class="jsWhiteLink">English</a></div>');
//document.write('	</div>');
//document.write('	<br class="clearboth"/>');
//document.write('</div>');
document.write('<br class="clearboth"/>');

document.write('<div class="jsCommonFont jsCommonColor jsSmallRTxt jsCenterContent">');
document.write('<FORM METHOD="GET" ACTION="http://www.google.com/search" ENCTYPE="x-www-form-encoded"><font size=-1>  <INPUT NAME="q" SIZE="28" MAXLENGTH="255" TYPE="text" value="Search The China Guide" class="search_type" onfocus="this.value=\'\';"><INPUT type=hidden name=ie value="UTF-8"><INPUT type=hidden name=oe value="UTF-8"><input type="hidden" name="sitesearch" value="thebeijingguide.com">&nbsp;&nbsp;&nbsp;<INPUT TYPE="submit" VALUE="Go!"></FORM>');
document.write('</div>');


document.write('<font face="Arial" color="#efeeaa"><br class="clearboth"/>');

document.write('<div class="jsCommonFont jsCommonColor jsSmallRTxt jsCenterContent">');
document.write(' Currently in Beijing:<br>');
document.write(' <img src="http://banners.wunderground.com/weathersticker/miniDial_both/language/www/global/stations/54511.gif" border=0 alt="Click for Beijing, Beijing Forecast" height=50 width=150 hspace=3 vspace=5><img src="http://banners.wunderground.com/weathersticker/sunandmoon150_both/language/www/global/stations/54511.gif" border=0 alt="Click for Beijing, Beijing Forecast" height=50 width=150 hspace=3 vspace=5>');
document.write('</div>');

document.write('<br class="clearboth"/>');
document.write('<div class="subscribe jsCommonFont jsCommonColor jsSmallRTxt jsCenterContent redborder w500">');
document.write('	<form action="http://www.thebeijingguide.com/odyssey/mojo/mojo.cgi" method=POST>  ');
document.write('		Subscribe to The China Guide Newletter:<p> <input type="text" name="email" value="Your e-mail address" onfocus="if(this.value==\'Your e-mail address\')this.value=\'\'" onblur="if(this.value==\'\')this.value=\'Your e-mail address\'" size="24"> <input type="hidden" name="list" value="odyssey"> <input type="submit" value="Submit"><br> <input type="radio" name="flavor" value="subscribe" checked> Subscribe <input type="radio" name="flavor" value="unsubscribe"> Unsubscribe ');
document.write('	</form>');
document.write('</div>');


document.write('<br class="clearboth"/>');
document.write('<div align="center">');
document.write('<a href="http://www.addthis.com/bookmark.php" onclick="addthis_url   = location.href; addthis_title = document.title; return addthis_click(this);" target="_blank"><img src="http://s9.addthis.com/button0-share.gif" width="83" height="16" border="0" alt="Bookmark and Share" /></a> <script type="text/javascript">var addthis_pub = \'thechinaguide\';</script><script type="text/javascript" src="http://s9.addthis.com/js/widget.php?v=10"></script>');  
document.write('</div>');




document.write('</div>');
}


function noshopping()
{
	alert('What is the meaning of "no shopping"?  Most tour operators will not tell you in advance, but will take you to many overpriced commission factories (silk, jade, etc) where you spend hours looking at overpriced souveniers and eating second rate Chinese food.  This is a way for them to make the trip cheaper and make extra money through commissions.  We prefer to charge a little more, not cheat you one shopping and let you spend more time on tour.  If you do want to shop, our guides can take you to places where you can buy goods at a fair price and we do not make a commission.')
}

function footer()
{
/*document.write('<br><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="760" height="525" id="MY1" align="middle">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="movie" value="http://www.thechinaguide.com/bottomMenu_secure.swf?chinaguideurl=http://www.thechinaguide.com" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#510707" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="http://www.thechinaguide.com/bottomMenu_secure.swf?chinaguideurl=http://www.thechinaguide.com" quality="high" bgcolor="#510707" wmode="transparent" width="760" height="525" name="MY1" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
*/


document.write('<p><table width="400" cellpadding=8 class="three" bgcolor="#390203"><tr><td>	<font face="Arial" color="#efeeaa"><font color="#ffbf36">Enquire or Book a Tour:</font><br>E-mail: <a href="mailto:book@thechinaguide.com">book@thechinaguide.com</a><br><br><font color="#ffbf36">Beijing Office</font> <br>(+8610) 8532-1860 or 8532-5002 <br>(+86) 15910740785 <font size=-1>(after hours mobile)</font><br><font face="Arial" size=-1 color="#efeeaa"> Office hours Mon-Fri, 10am to 6pm, current time:</font> <br><iframe src="http://free.timeanddate.com/clock/i201icvv/n33/fs12/fcefeeaa/tct/pct/ahl/avb/tt0/tw1/tm1/ts1" frameborder="0" width="201" height="16" allowTransparency="true"></iframe><br></td></tr><tr><td colspan=2><font face="Arial" size=-1 color="#efeeaa"><a href="../about/guides.html">Our Guides</a> | <a href="../about/contact.html">Our Office Staff</a> | <a href="../about/about_the_china_guide.html">About the Company</a><br>  <a href="../about/references.html">References</a> |  <a href="../vehicles">Vehicles</a> |  <a href="../about/office_location.html">Find our Office</a> |  <a href="https://thechinaguide.com/tcg2/tours/cc/">Credit Card Form</a></td></tr></table>')

document.write('<a name="noshopping"></a><br class="clearboth"/>');
document.write('<div align="center"><font face="Arial">');


/*document.write('<p><center><font size=+1 color="red"><i>References</i> </font></center>');
document.write('<a href="facebook/">Facebook</a><i><font size=-1 color="#efeeaa"> <br>  reviews and photos directly from our clients, you don\'t need to be a member</font></i> <br>');
document.write('<a href="references/Linda_and_Klaus_thechinaguide.com.pdf">Trip Journal and Photos of a recent client</a><i><font size=-1 color="#efeeaa"> <br>PDF format, a great read!</font></i> <br>');
document.write('<a href="about/references.html">From our Feedback Forms</a><i><font size=-1 color="#efeeaa"><br>a selection from client feedback forms</font></i> <br>');
document.write('<a href="http://www.thestar.com/Travel/article/618907">The Toronto Star newspaper</a><i><font size=-1 color="#efeeaa"><br>a trip review and video</font></i> <br>');

document.write('<p><font face="Arial" color="red">Private <A HREF="#noshopping" onclick="noshopping();">no shopping</A> no shopping China Tours:</font><br>');
document.write('<a href="tours_past_pdf/index.html">Custom Long Tour Itineraries</a> <br>');
document.write('<a href="../tours_multi_city/beijing-xian-shanghai-1.html">Beijing, Xi\'an and Shanghai</a> <i><font size=-1 color="#e1da33">- by plane</font></i> <br>');
document.write('<a href="../tours_multi_city/beijing-xian-shanghai-2.html">Beijing, Xi\'an and Shanghai</a> <i><font size=-1 color="#e1da33">- by train and plane</font></i> <br>');
document.write('<a href="../tours_multi_city/beijing-xian-guilin-shanghai.html">Beijing, Xi\'an, Guilin, Yangshuo and Shanghai</a>  <br>');
document.write('<a href="http://www.thechinaguide.com/tours_multi_city/beijing-guilin-shanghai-1.html">Beijing, Guilin, Yangshuo and Shanghai</a> <br>');

document.write('<a href="http://www.thechinaguide.com/tour_pdf/Suzhou_One_Day_Tour.pdf">One Day Suzhou Tour</a><i><font size=-1 color="#e1da33"> - from Shanghai</font></i> <br>');
document.write('<a href="http://www.thechinaguide.com/tour_pdf/Suzhou_and_Tongli_One_Day_Tour.pdf">One Day Suzhou and Tongli Tour</a><i><font size=-1 color="#e1da33"> - from Shanghai</font></i> <br>');
document.write('<a href="http://www.thechinaguide.com/tour_pdf/Two_Water_Towns_One_Day_Tour.pdf">One Day Two Water Towns + China\'s famous Sex History Museum Tour</a><i><font size=-1 color="#e1da33"> - from Shanghai</font></i> <br>');
document.write('<a href="http://www.thechinaguide.com/tour_pdf/Suzhou_and_Water_Town_Tour.pdf">Suzhou and Water Town Two Day Tour</a><i><font size=-1 color="#e1da33"> - from Shanghai</font></i> <br>');
document.write('<a href="http://www.thechinaguide.com/tour_pdf/Suzhou_and_Two_Water_Towns_Complete_Tour.pdf">Suzhou and Two Water Towns Complete Three Day Tour</a><i><font size=-1 color="#e1da33"> - from Shanghai</font></i> <br>');


document.write('<a href="http://www.thechinaguide.com/tours_multi_city/custom_itinerary.html">Form to Build your own Itinerary</a><i><font size=-1 color="#e1da33"> - custom tour</font></i> <br>');
document.write('<p><font face="Arial" color="red">Lijiang / Tiger Leaping Gorge Tours:</font><br>');
document.write('<a href="../lijiang/lijiang_3_day_tour.html">Three Day Lijiang Private Tour</a><br>');
document.write('<a href="../lijiang/lijiang_4_day_tour.html">Four Day Lijiang Private Tour</a><br>');
document.write('<a href="../lijiang/lijiang_7_day_tour.html">Seven Day Lijiang Private Tour</a><br>');
document.write('<p><font face="Arial" color="#efeeaa">Shanghai to Beijing return one day Tours:</font><br>');
document.write('<a href="tour_pdf/SHA-BJ-1_Day-plane.pdf"target="12">Shanghai to Beijing One Day Tour</a><font face="Arial" color="#efeeaa"> - by plane</font> <br>');
document.write('<a href="tour_pdf/SHA-BJ-1_Day-train.pdf"target="12">Shanghai to Beijing One Day Tour</a><font face="Arial" color="#efeeaa"> - by train</font> <br>');
document.write('<p><font face="Arial" color="red">Yangtze River Cruise:</font><br>');
document.write('<a href="../yangtze/yangtze_4_day_cruise.html">Chongqing-Yichang (down stream) 4 days, 3 nights</a><br>');
document.write('<a href="../yangtze/yangtze_5_day_cruise.html">Yichang-Chongqing (up stream) 5 days, 4 nights</a><br><br>');
document.write('<font face="Arial" color="red">China Humor:</font><br>');
document.write('<a href="http://www.chinareallysucks.com" target=crs>The lighter side of China</a><br><br>');*/

document.write('</object>');
/*footercontent();*/

document.write('<style type="text/css">');
document.write('.copyright{font-family:Arial;font-size:15px;color:#efeeaa;}');
document.write('.copyright a{color:red;}');
document.write('</style>');

document.write('</div>');
document.write('<p><div align="center" class="copyright">Copyright <a href="http://www.thechinaguide.com">The China Guide</a> 2010</div><br><br>');
}


function panofooter(){ footer(); }
function panofoote2r(){ footer(); }


/*function panofooter()
{
	document.write('<table class="one" cellpadding="18"><tr><td><font face="Arial" color="#eeeeee" size="-1">');
	document.write('<b>Panorama Usage:</b><p>');
	document.write('Look for the red hot spots in the panorama and click them to travel.  <br>');
	document.write('To move press and hold your mouse on the panorama and go left, right, up or down.<br>');
	document.write('You may use the controls on the lower left to zoom and pan.');
	document.write('</td></tr></table>');
}


function panofooter2()
{
document.write('<div align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="760" height="525" id="MY1" align="middle">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="movie" value="http://www.thechinaguide.com//bottomMenu_secure.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#510707" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="http://www.thechinaguide.com//bottomMenu_secure.swf" quality="high" bgcolor="#510707" wmode="transparent" width="760" height="525" name="MY1" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object></div>');
footercontent();
document.write('<p><div align="center" class="copyright">Copyright <a href="http://www.peterdanford.com">Peter Danford</a> 2009</div><br><br>');

}*/


function openpage(file)
{
	var left=0;
	var topp=0;
	var params='scrollbars=no,top='+topp+',left='+left+',width='+(screen.width-9)+',height='+(screen.height-54);

	window.open(file, 'file', params);
}





function openwin(file, wid, ht)
{
	var left=(screen.width-wid)/2;
	var topp=(screen.height-ht)/2;

	if (screen.height <= 480)
		{
		topp = 0;
		if (ht > 430)
			ht = 430;
		if (wid < 600)
			{
			wid += 25;
			left=(screen.width-wid)/2;
			}
		var params='scrollbars=no,top='+topp+',left='+left+',width='+wid+',height='+ht;
		}
	else
		{
		if (screen.height <= 600)
			topp = topp / 3;
		var params='scrollbars,top='+topp+',left='+left+',width='+wid+',height='+ht;
		}
	window.open(file, 'popup', params);
}

function donada()
{
	return;
}

var timerID ;

function tzone(tz, os, ds, cl)
{
	this.ct = new Date(0) ;		// datetime
	this.tz = tz ;		// code
	this.os = os ;		// GMT offset
	this.ds = ds ;		// has daylight savings
	this.cl = cl ;		// font color
}

function UpdateClocks()
{
	// www.timeanddate.com/worldclock
	var ct = new Array(
		new tzone('<font face="Arial" color="white">', +8, 1, 'white'),
		new tzone('TYO: ', +9, 0, 'violet'),
		new tzone('HKG: ', +8, 0, 'cyan'),
		new tzone('BKK: ', +7, 0, 'yellow'),
		new tzone('NYC: ', -5, 1, '#FFAA00'),
		new tzone('LON: ',  0, 1, 'silver'),
		new tzone('SVO: ', +3, 0, 'pink'),
		new tzone('KTM: ', +5.75, 0, 'red')
	) ;

	var dt = new Date() ;	// [GMT] time according to machine clock
	
	var startDST = new Date(dt.getFullYear(), 3, 1) ;
	while (startDST.getDay() != 0)
		startDST.setDate(startDST.getDate() + 1) ;

	var endDST = new Date(dt.getFullYear(), 9, 31) ;
	while (endDST.getDay() != 0)
		endDST.setDate(endDST.getDate() - 1) ;

	var ds_active ;		// DS currently active
	if (startDST < dt && dt < endDST)
		ds_active = 1 ;
	else
		ds_active = 0 ;

	// Adjust each clock offset if that clock has DS and in DS.
	for(n=0 ; n<ct.length ; n++)
		if (ct[n].ds == 1 && ds_active == 1) ct[n].os++ ;

	// compensate time zones
	gmdt = new Date() ;

	for (n=0 ; n<ct.length ; n++)
		ct[n].ct = new Date(gmdt.getTime() + ct[n].os * 3600 * 1000) ;

	document.all.Clock0.innerHTML =
		'<font color="' + ct[0].cl + '" size=-1>' + ct[0].tz + ClockString(ct[0].ct) + '</font>' ;

	timerID = window.setTimeout("UpdateClocks()", 1001) ;
}

function ClockString(dt)
{
	var stemp, ampm, monthstring ;
	var dt_year = dt.getUTCFullYear() ;
	var dt_month = dt.getUTCMonth() + 1 ;
	var dt_day = dt.getUTCDate() ;
	var dt_hour = dt.getUTCHours() ;
	var dt_minute = dt.getUTCMinutes() ;
	var dt_second = dt.getUTCSeconds() ;

	dt_year = dt_year.toString() ;
	if (0 <= dt_hour && dt_hour < 12)
	{
		ampm = 'AM' ;
		if (dt_hour == 0) dt_hour = 12 ;		
	} else {
		ampm = 'PM' ;
		dt_hour = dt_hour - 12 ;
		if (dt_hour == 0) dt_hour = 12 ;		
	}
	if (dt_minute < 10)
		dt_minute = '0' + dt_minute ;

	if (dt_second < 10)
		dt_second = '0' + dt_second ;
	
	if (dt_month == 1)
		monthstring = "January";
	if (dt_month == 2)
		monthstring = "February";
	if (dt_month == 3)
		monthstring = "March";
	if (dt_month == 4)
		monthstring = "April";
	if (dt_month == 5)
		monthstring = "May";
	if (dt_month == 6)
		monthstring = "June";
	if (dt_month == 7)
		monthstring = "July";
	if (dt_month == 8)
		monthstring = "August";
	if (dt_month == 9)
		monthstring = "September";
	if (dt_month == 10)
		monthstring = "October";
	if (dt_month == 11)
		monthstring = "November";
	if (dt_month == 12)
		monthstring = "December";

	stemp = dt_hour + ":" + dt_minute + ":" + dt_second + ' ' + ampm ;
	stemp = stemp + ' on ' + monthstring + ' ' + dt_day + ', ' + dt_year.substr(0,4) ;
	return stemp ;
}

function bund2()
{
	window.open('http://www.thechinaguide.com/shanghai_bund/index.html','index2','height='&screen.height&',width='&screen.width&',top=0,left=0,scrollbars,resizable');
}


document.write('<style>');
document.write('/* CoolMenus 4 - default styles - do not edit */');
document.write('.clCMAbs{position:absolute; visibility:hidden; left:0; top:0}');
document.write('/* CoolMenus 4 - default styles - end */');
  
document.write('/*Style for the background-bar*/');
document.write('.clBar{text-align:left;position:absolute; width:10; height:10; background-color:#510707;   visibility:hidden}');

document.write('/*Styles for level 0*/');
document.write('.clLevel0,.clLevel0over{text-align:left; position:absolute; padding:2px; font-family:arial,helvetica; font-size:14px; font-weight:normal}');
document.write('.clLevel0{background-color:#510707;   color:#ffbf36; }');
document.write('.clLevel0over{ background-color:#510707;  color:#efeeaa; cursor:pointer; font-weight:normal}');
document.write('.clLevel0border{position:absolute; visibility:hidden; }');

document.write('/*Styles for level 1*/');
document.write('.clLevel1, .clLevel1over{text-align:left;position:absolute; padding:2px; font-family:arial,helvetica; font-size:14px; font-weight:normal}');
document.write('.clLevel1{background-color:#400A0B;  color:#ffbf36;}');
document.write('.clLevel1over{background-color:#651112;  color:#efeeaa; cursor:pointer; }');
document.write('.clLevel1border{position:absolute; visibility:hidden; background-color:#FFFFFF; }');

document.write('/*Styles for level 2*/');
document.write('.clLevel2, .clLevel2over{text-align:left;position:absolute; padding:2px; font-family:arial,helvetica; font-size:14px; font-weight:normal}');
document.write('.clLevel2{background-color:#651112;  color:#ffbf36;}');
document.write('.clLevel2over{background-color:#400A0B;  color:#efeeaa; cursor:pointer; }');
document.write('.clLevel2border{position:absolute; visibility:hidden; background-color:#FFFFFF; }');
document.write('</style>');


function setCookie(name, value, expires, path, domain, secure) {
   var curCookie = name + "=" + escape(value) +
       ((expires) ? "; expires=" + expires.toGMTString() : "") +
       ((path) ? "; path=" + path : "") +
       ((domain) ? "; domain=" + domain : "") +
       ((secure) ? "; secure" : "");
   document.cookie = curCookie;
 }
 
 function getCookie(name) {
   var dc = document.cookie;
   var prefix = name + "=";
   var begin = dc.indexOf("; " + prefix);
   if (begin == -1) {
     begin = dc.indexOf(prefix);
     if (begin != 0) return null;
   } else
     begin += 2;
   var end = document.cookie.indexOf(";", begin);
   if (end == -1)
     end = dc.length;
   return unescape(dc.substring(begin + prefix.length, end));
 }
 
 function deleteCookie(name, path, domain) {
   if (getCookie(name)) {
     document.cookie = name + "=" + 
     ((path) ? "; path=" + path : "") +
     ((domain) ? "; domain=" + domain : "") +
     "; expires=Thu, 01-Jan-70 00:00:01 GMT";
   }
 }
 
 function fixDate(date) {
   var base = new Date(0);
   var skew = base.getTime();
   if (skew > 0)
     date.setTime(date.getTime() - skew);
}






































function insert_ad_image(path)
{
	document.write('<div class="jsCommonFont jsCommonColor      jsSmallRTxt jsCenterContent"><font size=-1><i>Advertisement, more content below</i></font></div>');
var ad_index = getCookie("beijingguide_ad");
if (!ad_index)
	{
	var now = new Date();
    fixDate(now);
    now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 150);
	var ad_index = 0;
	}
if (ad_index == 0)	
	{
	document.write('<div class="redborder1 jsCommonFont jsCommonColor   jsNormalTxt jsCenterContent w500">');
	document.write('<p><a href="students/student_beijing_9_day.php"><img src="../student_photos/group1-300.jpg"  border=0 alt="China Student Study Abroad Tours and Trips"></a>');
	document.write('<br><a href="../students/student_beijing_9_day.php">Study Abroad Itineraries</a><br><font color="#fff600">Wholesale prices for suppliers!</font>');
	document.write('	</div>');
	document.write('	<br class="clearboth"/>');

//	document.write('<table class="two" cellpadding=12><tr><td><center><font face="Arial" color="#ffffff">Pingyao Ancient Walled City<br><font size=-1>Experience living history, a UNESCO World Heritage Site</font><p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/flash.cab#version=5,0,0,0" width="300" height="200" id="pingyao_home" align="middle"> 	<param name="allowScriptAccess" value="sameDomain" /> 	<param name="allowFullScreen" value="false" /> 	<param name="movie" value="../pingyao/pingyao_home.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" />	<embed src="../pingyao/pingyao_home.swf" quality="high" wmode="transparent" bgcolor="#000000" width="300" height="200" name="pingyao_home" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />	</object><p>Take a <a href="../pingyao">virtual visit to Pingyao</a> and check out <a href="../pingyao/pingyao_tour_two_day.html">our no shopping tours</a>! <br><font size=-1 color=red>(You will find good local shops naturally, we do not take you to commission tourist shops.)</font></td></tr></table>');
	ad_index = "1";
	}
	else
if (ad_index == 1)	
	{
	document.write('<div class="jsCommonFont jsCommonColor jsNormalTxt jsCenterContent redborder w609" >');
	document.write('	<img src="http://www.thechinaguide.com/nightlife/hohai3.jpg" alt="Personal Beijing Tours and Guides" border="0"><br class="clearboth"/><br/>');
	document.write('	<a href="http://www.chinatourbuilder.com/tour">Build Your Own Tour</a><br>Immediate pricing from our database.');
	document.write('	<p align="left">Let our staff work on an itinerary with you.  <a href="../about/contact.html">Judy Huang</a> is our Chinese Travel Manager and her staff includes Amy (China), Becky (Canada) and Jo (New Zealand). ');
	document.write('	<a href="mailto:book@thechinaguide.com?subject=Personal Tour Enquiry for The China Guide" class="jsWhiteLink">E-mail us</a>  about your private tour.'); 
	document.write(' &nbsp;	We are experienced at building custom tours to suit your time and budget. ');
	ad_index = "2";
	}
	else
if (ad_index == 2)	
	{
	document.write('<div class="redborder1 jsCommonFont jsCommonColor   jsNormalTxt jsCenterContent w500">');
	document.write('	<div>');
	document.write('		A once in a lifetime experience...');
	document.write('	</div>');
	document.write('	<br class="clearboth"/>');
	document.write('	<div>');
	document.write('		<img src="http://www.thechinaguide.com/great_wall_of_china/bw1.jpg" alt="" border="0"><br/>');
	document.write('	<a href="http://www.thechinaguide.com/sleeponthewall">Sleep On The Great Wall</a>');
	document.write('	<br>');
	document.write('		and wake up to watch the sunrise on a tower rooftop<br> to this view and have breakfast on the wall.');
	document.write('</div>');
	ad_index = "3";
	}
	else
if (ad_index == 3)	
	{
	document.write('<div class="redborder1 jsCommonFont jsCommonColor   jsNormalTxt jsCenterContent w500">');
	document.write('	<div>');
	document.write('	Kung Fu Show Discount Ticket Advanced Booking Service<br>	<img src="http://www.thechinaguide.com/shows/Kungfu_Show_Beijing_003.jpg" alt="" >');
	document.write('	</div>');
	document.write('	<br class="clearboth"/>');
	document.write('	<div>');
	document.write('		<a href="http://www.thechinaguide.com/shows/kungfu.html">Kung Fu Show</a>');
	document.write('	<br>');
	document.write('		Also discount tickets for the ');
	document.write('	<a href="http://www.thechinaguide.com/shows/acrobats.html">Acrobatic Show</a>');
	document.write('</div>');
	ad_index = "4";
	}
	else
if (ad_index == 4)	
	{	
	document.write('<div class="redborder1 jsCommonFont jsCommonColor   jsNormalTxt jsCenterContent w500">');
	document.write('	<div>');
	document.write('		<img src="http://www.thechinaguide.com/thexianguide/Terracotta_Warriors_Xian_11.jpg" alt="">');
	document.write('	</div>');
	document.write('	<br class="clearboth"/>');
	document.write('	<div>');
	document.write('<p>Xi\'an and the Terracotta Warriors:<br><font color="#f1d84b">Tour only:</font><a href="http://www.thexianguide.com/Xian%201%20Day%20Tour.pdf">1 Day</a> - <a href="http://www.thexianguide.com/Xian%202%20Day%20Tour.pdf">2 Day</a> / <font color="#f1d84b">With hotel:</font> <a href="../tour_pdf/Xian-2_Day-hotel.pdf" target="12">2 Day</a> - <a href="../tour_pdf/Xian-3_Day-hotel.pdf" target="13">3 Day</a>');
	document.write('</div>');
	ad_index = "5";
	}
else
if (ad_index == 5)	
	{
	document.write('<div class="redborder1 jsCommonFont jsCommonColor   jsNormalTxt jsCenterContent w500">');
	document.write('	<div>');
	document.write('		<img src="http://www.thechinaguide.com/shows/Acrobat_Show_Beijing_17.jpg" alt="Beijing Acrobats Discount Ticket Sales and Booking" >');
	document.write('	</div>');
	document.write('	<br class="clearboth"/>');
	document.write('	<div>');
	document.write('	<a href="http://www.thechinaguide.com/shows/acrobats.html">Acrobatic Show</a><br> Discount tickets and show photographs.');
	document.write('</div>');
	ad_index = "6";
	}
else
if (ad_index == "6")	
	{
	document.write('<div class="jsCenterContent w650">');
	document.write('		<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="650" height="363" id="wall" align="middle"><param name="allowScriptAccess" value="always" /><param name="movie" value="http://www.thechinaguide.com/sleeponthewall_secure.swf?xfile=sleeponthewall" /><param name="quality" value="high" /><param name="bgcolor" value="#510708" /><embed src="http://www.thechinaguide.com/sleeponthewall_secure.swf?xfile=sleeponthewall" quality="high" bgcolor="#510708" width="650" height="363" name="wall" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
document.write('<p><a href="http://www.thestar.com/Travel/article/618907" target=newww>In the Toronto Star</a> <i><font size=-1 color="#fff73b">Apr 18, 2009</font></i> <br>');
//document.write('	<p><font color="Red" size=-1>Visit our <a href="http://www.chinatourbuilder.com/tour/index.php?main_page=available_list&a=tcg">Beijing and Shanghai Tour Index</a><br>Select a pre-made tour or customize one to suit your needs. <p>Custom China wide tour itineraries.  <br><a href="mailto:book@thechinaguide.com">Send us your itinerary ideas</a> and we can work on it with you.<br>See our <a href="../tours_multi_city/beijing-xian-shanghai-1.html">Multi-City Tours</a> page.<br>Want to save money?  <a href="../tour_match/index.html">Share a tour</a>!</font></div>');
//	document.write('</div>');
	ad_index = "7";
	}
else
if (ad_index == "7")	
	{
	document.write('<div class="redborder1 jsCommonFont jsCommonColor   jsNormalTxt jsCenterContent w500">');
	document.write('	<div>');
	document.write('		');
	document.write('	<p>China Photography Tour <img src="../Anthony_Anderton.JPG" alt="China Photography Tour"><p align=left>Led by Australian professional photographer Anthony Anderton, this small group tour takes you to some of China\'s most scenic locales.  Photograpy workshops along the way improve your skills.  A local Chinese guide accompanies the group and caters to spouses and those who join in the group without being so involved in photography.<br><br><div align=center><a href="../tour_pdf/Photo_Tour.pdf" target="pt">14 Day Photography Trip Itinerary</a></div>');
	document.write('	</div>');
	document.write('	<br class="clearboth"/>');
	ad_index = "0";
	}
else ad_index = 0;
//	document.write('</font></div></div></center>');
document.write('</font></div>');
document.write('<p align=center><a href="mailto:book@thechinaguide.com">Send us your itinerary ideas</a> and our team will work on it for you.<br>');
var now = new Date();
fixDate(now);
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 150);
setCookie("beijingguide_ad", ad_index, now, "/");
}

function insert_ad_pano(path)
{
	insert_ad_image(path);
	return;
}	


function temperature()
{
var t1 = "   <nobr><b>36</b>&nbsp;&#176;F</nobr> / ";
var t2 = "   <nobr><b>36</b>&nbsp;&#176;F</nobr>";
var t2 = "   <nobr><b>2</b>&nbsp;&#176;C</nobr>";
document.write(t1,'\n',t2,'\n');
}


function draw_inner_link(){
	var html = '';
	//html += 'Recommended: <a href="../olympic_accommodation/Chinese_Economy_Hotel.html" class="redLink">Budget Chinese Hotel</a> | <a href="../Courtyard_hotel/Courtyard_hotel.html" class="redLink">Courtyard Hotel</a><br>';
	html += 'Other Hotels: <a href="../shan/3.html" class="redLink">4-Star</a> | <a href="../shan/1.html" class="redLink">3-Star</a> | <a href="../shan/2.html" class="redLink">3-Star</a> <br>';		
	document.write(html);}
