﻿try {
 var LocString=new String(window.document.location.href);
 function GetQueryString(str) {
  var rs=new RegExp("(^|)"+str+"/([^\/]*)(\/|$)","gi").exec(LocString),tmp;
  if(tmp=rs)return tmp[2];
  return null;
 }
 var cid=GetQueryString("com");
}
catch(e){}

document.write('<LINK href="http://resource.elong.com/Common/css/w_general.css" type=text/css rel=stylesheet>');
document.write('<DIV id=w_header><A href="http://travel.elong.com/hotels/Default.aspx?campaign_id=4000091"><IMG id=w_logo alt=艺龙旅行网 src="http://resource.elong.com/common/images/logo.gif"></A> ');
document.write('<DIV class=ban id=elong_header_banner></DIV>');
document.write('<UL id=w_nav>');
document.write('  <LI><A ');
if(cid == "hotels"){
document.write('class="action" ');
} 
document.write('id=nav_home href="http://travel.elong.com/hotels/Default.aspx?campaign_id=4000091"><SPAN>国内酒店</SPAN></A> </LI>');
document.write('  <LI><A ');
if(cid == "hotelreviews"){
document.write('class="action" ');
} 
document.write('id=nav_hotels href="http://travel.elong.com/hotelreviews/Default.aspx?campaign_id=4000091"><SPAN>酒店点评</SPAN></A> </LI>');
document.write('  <LI><A ');
if(cid == "Flights"){
document.write('class="action" ');
} 
document.write('id=nav_hotelsh href="http://travel.elong.com/Flights/Default.aspx?campaign_id=4000091"><SPAN>国内机票</SPAN></A> </LI>');
document.write('  <LI><A ');
if(cid == "flights"){
document.write('class="action" ');
} 
document.write('id=nav_hotelsw href="http://travel.elong.com/flights/Default2.aspx?campaign_id=4000091"><SPAN>国际机票</SPAN></A> </LI>');
document.write('  <LI><A ');
if(cid == "Mytrip"){
document.write('class="action" ');
} 
document.write('id=nav_flightsw href="http://travel.elong.com/Mytrip/index.aspx?campaign_id=4000091"><SPAN>我的帐户</SPAN></A> </LI>');
document.write('  <LI><A ');
if(cid == "HotelReviews"){
document.write('class="action" ');
} 
document.write('id=nav_dianping href="http://travel.elong.com/HotelReviews/citylist.aspx?campaign_id=4000091"><SPAN>城 市</SPAN></A> </LI>');
document.write('  <LI><A ');
if(cid == "mytrip"){
document.write('class="action" ');
} 
document.write('id=nav_dianping href="http://travel.elong.com/mytrip/login.aspx?campaign_id=4000091"><SPAN><B>会员登录</B></SPAN></A> </LI>');
document.write('  <LI><A ');
if(cid == "MYtrip"){
document.write('class="action" ');
} 
document.write('id=nav_flights href="http://travel.elong.com/MYtrip/userreg.aspx?campaign_id=4000091"><SPAN><B><FONT COLOR="#ffff00">注 册</FONT></B></SPAN></A> </LI>');
document.write('  <LI class=langs><A href="http://travel.elong.net/hotels/default.aspx?campaign_id=4000091"><IMG class=mimg alt=english src="http://resource.elong.com/common/images/ic_en.gif"></A>|');


     var str_url = window.location.href;
     if (str_url.toLowerCase().indexOf("big5") > 0)
	        document.write('<a href="ht' + 'tp:\/\/travel.elong.com\/hotels\/Default.aspx?campaign_id=4000091"><img src="http:\/\/resource.elong.com/common/images/ic_cngb.gif" class="mimg" alt="简体" \/><\/a>');
     else
	        document.write('<a href="http:\/\/big5.elong.com/gate\/big5\/travel.elong.com\/hotels\/Default.aspx?campaign_id=4000091"><img src="http:\/\/resource.elong.com/common/images/ic_cntw.gif" class="mimg" alt="繁体" \/><\/a>');


document.write('   </LI></UL>');
document.write('<DIV style="CLEAR: both"></DIV></DIV>');