var Origurl=window.location.toString();
var url= Origurl.split("/",3);
url.shift();
url.shift();
var temp = Origurl.split("/")[4];
if(temp == 'forum')
	url += "/forum";
document.write('<style type="text/css">');
document.write('.logoAB a, .ci, .rc, .lc, .cc, .ic, .searchBox button, .dropIcon { background:url(http://www.chinese.cn/js/headerBg11.gif) no-repeat; }');
document.write('.ciPopTop, .rcPopTop, .lcPopTop, .ccPopTop, .icPopTop, .ciPopBom, .rcPopBom, .lcPopBom, .ccPopBom, .icPopBom { background:url(http://treasure.chinese.cn/image/navBg.png) no-repeat; }');
document.write('.logoAB a { background-position:2px -165px; }');
document.write('.ci { background-position:0 0; }');
document.write('.rc { background-position:-134px 0; }');
document.write('.lc { background-position:-231px 0; }');
document.write('.cc { background-position:-319px 0; }');
document.write('.ic { background-position:-400px 0; }');
document.write('.current0 { background-position:0 -72px!important; }');
document.write('.current1 { background-position:-134px -72px!important; }');
document.write('.current2 { background-position:-231px -72px!important; }');
document.write('.current3 { background-position:-319px -72px!important; }');
document.write('.current4 { background-position:-400px -72px!important; }');
document.write('.searchBox button { background-position:-396px -165px; }');
document.write('.dropIcon { background-position:-430px -186px; }');
document.write('.rcPopTop { background-position:0 -19px; }');
document.write('.lcPopTop { background-position:0 -39px; }');
document.write('.ccPopTop { background-position:0 -70px; }');
document.write('.icPopTop { background-position:0 -100px; }');
document.write('.ciPopBom { background-position:0 -125px; _background-position:0 -124px; }');
document.write('.rcPopBom { background-position:0 -140px; _background-position:0 -139px; }');
document.write('.lcPopBom { background-position:0 -155px; _background-position:0 -154px; }');
document.write('.ccPopBom { background-position:0 -170px; _background-position:0 -169px; }');
document.write('.icPopBom { background-position:0 -185px; _background-position:0 -184px; }');
document.write('#header {position:relative; z-index:888; width:100%; height:127px; border-bottom:1px dashed #dcdcdc; background-color:#FFFFFF;}');
document.write('.headerIn { width:980px; height:127px; margin:0 auto; }');
document.write('.logoAB { float:left; display:inline; width:227px; height:75px; margin:26px 0 0 2px; overflow:hidden; }');
document.write('.logoAB a { display:block; width:227px; height:75px; text-indent:-2000px; overflow:hidden; }');
document.write('.channelBox { float:left; display:inline; width:490px; height:65px; margin:25px 0 0 35px; }');
document.write('.channelBox li { position:relative; float:left; display:inline; height:66px; margin-right:30px; cursor:pointer; }');
document.write('.channelBox li.ci { width:105px; }');
document.write('.channelBox li.rc { width:54px; }');
document.write('.channelBox li.lc { width:51px; }');
document.write('.channelBox li.cc { width:46px; }');
document.write('.channelBox li.ic { width:62px; }');
document.write('.channelBox li a { display:block; text-indent:-2000px; overflow:hidden; }');
document.write('.channelBox li a.iconBox { height:40px; }');
document.write('.channelBox li a.textBox { height:14px; margin:13px 0 0 0; }');
document.write('.popBox { position:absolute; top:43px; overflow:hidden; display:none; }');
document.write('.popBox h3 { height:20px; margin:0 auto; padding:0 0 5px 0; font-size:14px; font-weight:700; text-align:center; }');
document.write('.popBox h3 a { text-indent:0; }');
document.write('.popBox li { float:none; display:block; height:18px; line-height:18px; margin:0; text-align:center; }');
document.write('.popBox li a { display:block; height:18px; line-height:18px; text-indent:0; }');
document.write('.popBox li a:hover { color:#fff!important; }');
document.write('.ciPop { width:153px; left:-20px; }');
document.write('.rcPop { width:142px; left:-40px; }');
document.write('.lcPop { width:137px; left:-45px; }');
document.write('.ccPop { width:132px; left:-42px; }');
document.write('.icPop { width:149px; left:-40px; }');
document.write('.ciPopTop, .rcPopTop, .lcPopTop, .ccPopTop, .icPopTop { display:block; height:17px; overflow:hidden; }');
document.write('.ciPopCon { overflow:hidden; background: url(http://treasure.chinese.cn/image/ciPopLine.png) repeat-y; }');
document.write('.rcPopCon { overflow:hidden; background: url(http://treasure.chinese.cn/image/rcPopLine.png) repeat-y; }');
document.write('.lcPopCon { overflow:hidden; background: url(http://treasure.chinese.cn/image/lcPopLine.png) repeat-y; }');
document.write('.ccPopCon { overflow:hidden; background: url(http://treasure.chinese.cn/image/ccPopLine.png) repeat-y; }');
document.write('.icPopCon { overflow:hidden; background: url(http://treasure.chinese.cn/image/icPopLine.png) repeat-y; }');
document.write('.ciPopCon h3 { width:148px; color:#2c718d; border-bottom:1px solid #c3d6e0; }');
document.write('.rcPopCon h3 { width:137px; color:#7c5736; border-bottom:1px solid #e4d1bf; }');
document.write('.lcPopCon h3 { width:132px; color:#4c7016; border-bottom:1px solid #d2dec2; }');
document.write('.ccPopCon h3 { width:127px; color:#bd6d6d; border-bottom:1px solid #eedad9; }');
document.write('.icPopCon h3 { width:144px; color:#bd5218; border-bottom:1px solid #f3d7c2; }');
document.write('.ciPopCon h3 a { color:#2c718d; }');
document.write('.rcPopCon h3 a { color:#7c5736; }');
document.write('.lcPopCon h3 a { color:#4c7016; }');
document.write('.ccPopCon h3 a { color:#bd6d6d; }');
document.write('.icPopCon h3 a { color:#bd5218; }');
document.write('.ciPopCon ul { width:130px; margin:0 auto; padding-bottom:5px; }');
document.write('.rcPopCon ul { width:120px; margin:0 auto; padding-bottom:5px; }');
document.write('.lcPopCon ul { width:115px; margin:0 auto; padding-bottom:5px; }');
document.write('.ccPopCon ul { width:115px; margin:0 auto; padding-bottom:5px; }');
document.write('.icPopCon ul { width:130px; margin:0 auto; padding-bottom:5px; }');
document.write('.ciPopCon li { border-bottom:1px solid #c3d6e0; }');
document.write('.rcPopCon li { border-bottom:1px solid #e4d1bf; }');
document.write('.lcPopCon li { border-bottom:1px solid #d2dec2; }');
document.write('.ccPopCon li { border-bottom:1px solid #eedad9; }');
document.write('.icPopCon li { border-bottom:1px solid #f3d7c2; }');
document.write('.ciPopCon li a { color:#2c718d; }');
document.write('.rcPopCon li a { color:#7c5736; }');
document.write('.lcPopCon li a { color:#4c7016; }');
document.write('.ccPopCon li a { color:#bd6d6d; }');
document.write('.icPopCon li a { color:#bd5218; }');
document.write('.ciPopCon li a:hover { background:#568da4; }');
document.write('.rcPopCon li a:hover { background:#96795e; }');
document.write('.lcPopCon li a:hover { background:#6c8a40; }');
document.write('.ccPopCon li a:hover { background:#c98787; }');
document.write('.icPopCon li a:hover { background:#ca7546; }');
document.write('.ciPopBom, .rcPopBom, .lcPopBom, .ccPopBom, .icPopBom { display:block; height:11px; overflow:hidden; }');
document.write('.otherBox { float:right; display:inline; width:224px; height:65px; margin:35px 0 0 0; }');
document.write('.lagSwitch { position:relative; z-index:88; height:21px; line-height:21px; margin-bottom:10px; }');
document.write('.lagSwitch .loginBox { float:left; }');
document.write('.lagSwitch .loginBox a { margin:0 5px; color:#707070; }');
document.write('.lagBox { position:relative; float:left; display:inline; width:117px; height:21px; margin:0 0 0 7px; }');
document.write('.sltIn { float:right; display:inline; width:83px; height:19px; padding:0 0 0 6px; line-height:19px; margin-left:2px; font-family:Arial, Helvetica, sans-serif; cursor:pointer; color:#707070; background:url(http://quyi.chinese.cn/image/arrow01.gif) no-repeat 76px center; }');
document.write('.sltInAdd{ background:url(http://quyi.chinese.cn/image/arrow02.gif) no-repeat 76px center;}');

document.write('.dropList { position:absolute; left:28px; top:21px; z-index:8888; width:89px; display:none; background:#fff url(http://quyi.chinese.cn/image/dropBg.gif) no-repeat left bottom; }');
document.write('.dropList li { width:65px; height:20px; margin:0 auto; padding:0 0 0 15px; line-height:20px; border-bottom:1px solid #ccc; }');
document.write('.dropListAdd{ background:#c5dcf7 url(http://quyi.chinese.cn/image/arrow03.gif) no-repeat 5px 6px;}');
document.write('.dropList li a { color:#707070; }');
document.write('.dropList li.lagEnd{ border:none;}');
document.write('.dropList li a:hover{ color:#768494!important;}');
document.write('.searchBox legend { display:none; }');
document.write('.searchBox input { float:left; display:inline; width:159px; height:16px; margin:0 6px 0 0; _margin:0 3px 0 0; border:1px solid #adadad; }');
document.write('.searchBox button { width:55px; height:18px; border:none; cursor:pointer; }');
document.write('#foot { width:100%; border-top:1px dashed #d9d9d9; overflow:hidden; }');
document.write('.footerIn { width:980px; margin:0 auto; padding:25px 0 15px 0; }');
document.write('.linksList { padding:0 0 3px 0; overflow:hidden; border-bottom:1px dashed #d9d9d9; }');
document.write('.linksList p { line-height:22px; text-align:center; color:#8a8a8a; }');
document.write('.linksList p a { margin:0 3px; display:inline; color:#8a8a8a; }');
document.write('.copyRight { height:26px; line-height:26px; color:#b0b0b0; text-align:center; }');
document.write('</style>');

document.write('<div id="header">');
document.write('<div class="headerIn">');
document.write('<div class="logoAB">');
document.write('<h1><a href="http://www.chinese.cn/" target="_self">Confucius Institute Online</a></h1>');
document.write('</div>');
document.write('<ul class="channelBox">');
document.write('<li class="channelList ci"><a class="iconBox">Confucius Institute</a><a href="http://college.chinese.cn/en"  target="_self" class="textBox">Confucius Institute</a>');
document.write('<div class="popBox ciPop"> <span class="ciPopTop"></span>');
document.write('<div class="ciPopCon">');
document.write('<h3><a href="http://college.chinese.cn/en" target="_self">Confucius Institute</a></h3>');
document.write('<ul>');
document.write('<li><a href="http://college.chinese.cn/en/node_1981.htm" target="_self">Bulletin</a></li>');
document.write('<li><a href="http://college.chinese.cn/en/article/2009-08/29/content_22308.htm" target="_self">Headquarters</a></li>');
document.write('<li><a href="http://college.chinese.cn/en/node_1979.htm" target="_self">Worldwide</a></li>');
document.write('<li><a href="http://blog.chinese.cn/en" target="_self">Campus Center</a></li>');
document.write('<li><a href="http://college.chinese.cn/en/node_1978.htm" target="_self">Campus Show</a></li>');
document.write('<li><a href="http://college.chinese.cn/en/node_1976.htm" target="_self">Lecture Hall</a></li>');
document.write('<li><a href="http://college.chinese.cn/en/node_1975.htm" target="_self">People</a></li>');
document.write('<li><a href="http://college.chinese.cn/en/node_1973.htm" target="_self">Teachers</a></li>');
document.write('<li><a href="http://college.chinese.cn/en/node_1972.htm" target="_self">Volunteers</a></li>');
document.write('<li><a href="http://college.chinese.cn/en/node_1974.htm" target="_self">Publication</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<span class="ciPopBom"> </span> </div>');
document.write('</li>');
document.write('<li class="channelList rc"><a class="iconBox">Resource Center</a><a  href="http://resource.chinese.cn/en/" target="_self" class="textBox">Resource Center</a>');
document.write('<div class="popBox rcPop"> <span class="rcPopTop"></span>');
document.write('<div class="rcPopCon">');
document.write('<h3><a href="http://resource.chinese.cn/en/" target="_self">Resource Center</a></h3>');
document.write('<ul>');
document.write('<li><a href="http://resource.chinese.cn/en/node_4278.htm" target="_self">Teaching Resources</a></li>');
document.write('<li><a href="http://resource.chinese.cn/en/node_4145.htm" target="_self">Digital Library</a></li>');
document.write('');
document.write('<li><a href="http://music.chinese.cn/en" target="_self">Music</a></li>');
document.write('<li><a href="http://video.chinese.cn/en" target="_self">Video</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<span class="rcPopBom"> </span> </div>');
document.write('</li>');
document.write('<li class="channelList lc"><a class="iconBox">Learning Center</a><a  href="http://learning.chinese.cn/en" target="_self" class="textBox">Learning Center</a>');
document.write('<div class="popBox lcPop"> <span class="lcPopTop"></span>');
document.write('<div class="lcPopCon">');
document.write('<h3><a href="http://learning.chinese.cn/en" target="_self">Learning Center</a></h3>');
document.write('<ul>');
document.write('<li><a href="http://adult.chinese.cn/en/" target="_self">Adults</a></li>');
document.write('<li><a href="http://kid.chinese.cn/en/" target="_self">Kids</a></li>');
document.write('<li><a href="http://teacher.chinese.cn/" target="_self">Teachers</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<span class="lcPopBom"> </span> </div>');
document.write('</li>');
document.write('<li class="channelList cc"><a class="iconBox">Cultural Center</a><a href="http://culture.chinese.cn/en" target="_self" class="textBox">Cultural Center</a>');
document.write('<div class="popBox ccPop"> <span class="ccPopTop"></span>');
document.write('<div class="ccPopCon">');
document.write('<h3><a href="http://culture.chinese.cn/en" target="_self">Culture Center</a></h3>');
document.write('<ul>');
document.write('<li><a href="http://food.chinese.cn/en" target="_self">Food</a></li>');
document.write('<li><a href="http://quyi.chinese.cn/en" target="_self">Qu Yi</a></li>');
document.write('<li><a href="http://kungfu.chinese.cn/en" target="_self">Kung Fu</a></li>');
document.write('<li><a href="http://travel.chinese.cn/en" target="_self">Travel</a></li>');
document.write('<li><a href="http://people.chinese.cn/en" target="_self">People</a></li>');
document.write('<li><a href="http://treasure.chinese.cn/en" target="_self">Treasure</a></li>');
document.write('<li><a href="http://tcm.chinese.cn/en" target="_self">T C M</a></li>');
document.write('<li><a href="http://cul.chinese.cn/en" target="_self">Amazing Culture</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<span class="ccPopBom"> </span> </div>');
document.write('</li>');
document.write('<li class="channelList ic"><a class="iconBox">Interactive</a><a href="http://my.chinese.cn/en" target="_self" class="textBox">Interactive</a>');
document.write('<div class="popBox icPop"> <span class="icPopTop"></span>');
document.write('<div class="icPopCon">');
document.write('<h3><a href="http://my.chinese.cn/en" target="_self">Interactive Center</a></h3>');
document.write('<ul>');
document.write('<li><a href="http://blog.chinese.cn/en" target="_self">Blog</a></li>');
document.write('<li><a href="http://friends.chinese.cn/en" target="_self">Friends</a></li>');
document.write('<li><a href="http://www.chinese.cn/forum/en/" target="_self">Forum</a></li>');
document.write('<li><a href="http://photo.chinese.cn/en/" target="_self">Photo</a></li>');
document.write('<li><a href="http://album.chinese.cn/en/" target="_self">Albums</a></li>');
document.write('<li><a href="http://group.chinese.cn/en" target="_self">Group</a></li>');
document.write('<li><a href="http://bridge.chinese.cn/?local=en_US" target="_self">Chinese Bridge</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<span class="icPopBom"> </span> </div>');
document.write('</li>');
document.write('</ul>');
document.write('<div class="otherBox">');
document.write('<div class="lagSwitch">');
document.write('<div class="loginBox"><a href="http://my.chinese.cn/en/do.php?ac=a861483dd5344dbb58f6b5c1496301d6" target="_self">Login</a><a href="http://my.chinese.cn/en/do.php?ac=4fc0c6534a6e78acefa38ca0ce8f8102" target="_self">Register</a></div>');
document.write('<div class="lagBox">');
document.write('<div class="sltIn"> LANGUAGE </div>');
document.write('<ul class="dropList">');
document.write('<li><a href="http://'+url+'" target="_self" >中文</a></li>');
document.write('<li class="lagEnd"><a href="http://'+url+'/en" target="_self" >English</a></li></ul>');
document.write('</div>');
document.write('</div>');
document.write('<div class="searchBox">');
document.write('<form action="http://www.chinese.cn/result.html" id="cse-search-box">');
document.write('<fieldset>');
document.write('<legend>search</legend>');
document.write('<input type="hidden" value="017426221642983874604:poxpu2lwopo" name="cx" style="display:none"/>');
document.write('<input type="hidden" value="FORID:10" name="cof" style="display:none"/>');
document.write('<input type="hidden" value="UTF-8" name="ie" style="display:none"/>');
document.write('<input name="q" type="text" />');
document.write('<button type="submit" name="sa"></button>');
document.write('</fieldset>');
document.write('</form>');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');