﻿document.domain = "jinti.com";
function LocationPage(ReUrl){
  if(ReUrl==""||ReUrl==null||ReUrl=="undefined"){
    window.location.href=window.location.href.replace("#","")
  }
  else{
    window.location.href=ReUrl;
  }
};

function Favorite(url,title){
  if(document.all)window.external.AddFavorite(url,title);
  else if(window.sidebar)window.sidebar.addPanel(title,url,"");
  else alert("对不起，您目前的浏览器无法进行此操作！");
};

function GroupFavorite(url,title){
  document.all?isFav=true:window.sidebar?isFav=true:isFav=false;
  if(isFav)document.write("<a href=\"javascript:;\" target=\"_self\" onclick=\"Favorite('"+url+"','"+title+"');\">[收藏]</a>");
}

function DoCopyValue(CopyUrl){
  copyValue(CopyUrl);
};

copyValue=function(strValue){
  if(isIE()){
    clipboardData.setData("Text",strValue);
  }
  else{
    copy(strValue);
  }
  alert("复制链接成功，你可以通过QQ、MSN或其它方式推荐给朋友！");
};

function isIE(number){
  if(typeof(number)!=number){
    return!!document.all;
  }
};

function copy(text2copy){
  var flashcopier='flashcopier';
  if(!document.getElementById(flashcopier)){
    var divholder=document.createElement('div');
    divholder.id=flashcopier;
    document.body.appendChild(divholder);
  }
  document.getElementById(flashcopier).innerHTML='';
  var divinfo='<embed src="http://s2.jtimg.com/cityindex/JS/_clipboard.swf" FlashVars="clipboard='+text2copy+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
  document.getElementById(flashcopier).innerHTML=divinfo;
};

function DrawImage(ImgD,w,h){
  var image=ImgD;
  if(image.width>0&&image.height>0){
    if(image.width/image.height>=w/h){
      if(image.width>w){
        ImgD.width=w;
      }
      else{
        ImgD.width=image.width;
        ImgD.height=image.height;
      }
    }
    else{
      if(image.height>h)
        ImgD.height=h;
      else{
      ImgD.width=image.width;
      ImgD.height=image.height;
      }
    }
  }
};

function CreateDate(){
  var today=new Date();
  var weekofday=today.getDay();
  document.write(today.getFullYear()+"年 "+(today.getMonth()+1)+"月"+today.getDate()+"日&nbsp;&nbsp;&nbsp;&nbsp;星期"+(weekofday==1?"一":weekofday==2?"二":weekofday==3?"三":weekofday==4?"四":weekofday==5?"五":weekofday==6?"六":"天")+"&nbsp;&nbsp;&nbsp;&nbsp;"+GetLunarDateString(new Date()));
};

function CreateSearch(){
  var searchInnerHTML = '<iframe id="SearchFrame" name="SearchFrame" src="http://s2.jtimg.com/cityindex/city/js/SiteSearch.html" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" height="24" width="100%"></iframe>';
  document.write(searchInnerHTML);
};

function iFrameReload(IframeID){
  var Obj = document.getElementById(IframeID);
  if(Obj){
    window.self[Obj.id].location = Obj.src;
  }
}

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('2 z=b M(1n,1m,1l,1o,1r,1q,1p,1g,1f,1e,1h,O,O,1k,1j,1i,1s,1C,1B,1A,1D,1G,1F,1E,1v,1u,1t,1w,1z,1y,1x,1d,X,W,Y,T,1c,15,19,1b,17,13,14,18,Z,U,V,1a,2a,28);2 E=b M(2b,Q,S,g,x,J,2d,g,K,J,g,2c,K,22,g,21,25,27,g,x,Q,S,g,x,26);d q(3){2 h=E[(3-k)>>1];e(((3-k)&1)==0)?(h>>4):(h&2e)}d m(3,6){2 t;2 w;2 j;t=0;w=29;j=16-6;a((6>q(3))&&(q(3)>0))j--;a((z[3-k]&(1<<j))>0)w++;a(6==q(3)){t=((z[3-k]&(1<<(j-1)))>0)?C:29}e w+(t<<16)}d y(3){2 c;2 5;c=0;2h(2 i=1;i<=12;i++){5=m(3,i);c=c+((5>>16)&u);c=c+(5&u);}e c}d A(3){2 o=b p("2g");2 v=b p("2f");2 s;s=o.f((3-4)%10,1);s=s+v.f((3-4)%12,1);e s+"2i"}d G(6){2 F=b p("1Z");2 r;a(6<=10){r=F.f(6-1,1)}l a(6==11)r="1N";l r="1M";e r+"1P"}d N(9){2 o=b p("1O");2 v=b p("1L");2 n;a((9!=20)&&(9!=C)){n=o.f((9-1)/10,1)+v.f((9-1)%10,1)}l a(9!=20){n=o.f(9/10,1)+"1I"}l{n="1H"}e n}d 1K(R){2 5;2 3;2 6;2 9;2 h=L;2 D=1J*B;2 H=D*B;2 P=H*24;2 8=1W.1V(R.1Y()/P)-1X;a(8<23){1U=1R;6=12;9=8+7}l{8=8-23;3=k;6=1;9=1;5=y(3);I(8>=5){8-=5;3++;5=y(3)}5=m(3,6)&u;I(8>=5){8-=5;a(6==q(3)){5=m(3,6)>>16;a(8<5){h=(5>0)?1Q:L;1T}8=8-5}6++;5=m(3,6)&u;}9+=8}e A(3)+(h?"1S":"")+G(6)+N(9)}',62,143,'||var|iLunarYear||tmp|iLunarMonth||iSpanDays|iLunarDay|if|new|Days|function|return|substr|0x00|Leap||Bit|2001|else|LunarMonthDays|strDay|szText1|String|GetLeapMonth|strMonth|strYear|High|0xffff|szText2|Low|0x50|LunarYearDays|LunarDaysOfMonth|FormatLunarYear|60|30|MinMilli|LunarLeapYear|szText|FormatLunarMonth|HrMilli|while|0x04|0x60|false|Array|FormatLunarDay|0xb550|DyMilli|0x02|SolarDate|0x07|0xd258|0xaa50|0xb528|0x4ad0|0x4ae8|0xa4d0|0xa4b0||||0x4ad8|0x49b0|0xd520||0x56d0|0xa4b8|0xdaa0|0x6d20|0xb5a0|0xd250|0x96d0|0xa950|0xc958|0x92d0|0xb4a0|0xa5b0|0x4ba0|0x55a8|0xda50|0xd4a0|0xd4a8|0x5aa8|0x25d0|0xaad8|0x56a0|0x52b8|0xd260|0xa4e0|0x9570|0xe930|0x6b50|0x5aa0|0xd530|0x74a8|0xa930|0x52b0|0x6aa0|0x4b60|0x4da8|0xad50|二十|十|1000|GetLunarDateString|一二三四五六七八九十|十二|十一|初十廿三|月|true|2000|闰|break|iYear|round|Math|11323|getTime|正二三四五六七八九十||0x30|0x05|||0xb0|0x03|0x06|0x55b0||0xada0|0x40|0x20|0x09|0x0f|子丑寅卯辰巳午未申酉戌亥|甲乙丙丁戊己庚辛壬癸|for|年'.split('|'),0,{}));
