var Cititic={ name:"Cititic", namecn:"城市镜像", version:"2009", echo:function(s){document.write(s);}, echoa:function(href,text,target){ var s1='';if(target.length>1){ s1=' target='+target+' '; } var sl=''+text+''; document.write(sl);}, cititicYmdhis:function(){var td=new Date();var tY= td.getFullYear();var tM= td.getMonth()+1;var tD= td.getDate();var th=td.getHours();var tm=td.getMinutes();var ts=td.getSeconds();return tY+'-'+tM+'-'+tD+' '+th+':'+tm+':'+ts;}, timedist:function(tend){var endtime=new Date(tend);var nowtime = new Date();var dhis={};if(nowtime>=endtime){return false;}var leftsecond=parseInt((endtime.getTime()-nowtime.getTime())/1000);if(leftsecond<0){leftsecond=0;};_d=parseInt(leftsecond/3600/24);_h=parseInt((leftsecond/3600)%24);_m=parseInt((leftsecond/60)%60);_s=parseInt(leftsecond%60);dhis.d=_d;dhis.h=_h;dhis.i=_m;dhis.s=_s;return dhis;}, endofclass:'' };var cititic=Cititic; //function window.onload(){if(top.location!=self.location)top.location=self.location;return;//if(top.location!=self.location){var a=window.parent.document.getElementsByTagName('iframe');for(var i=0;i255)len+=2;else len++;return len;} String.prototype.haveunicode=function(){var i;for(i=0;i255)return true;else continue;return false;} String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g, "");} function ge(s){return getElementById(s);} function inserttext(etxt,text){ if(etxt.createTextRange&&etxt.care){ var care=etxt.care; care.text=care.text.charAt(care.text.length-1)==''?text+'':text; }else{ etxt.value=text; } } function ge(s){return document.getElementById(s)} function bookmark(t,u){ if(''==u)u="http://www.cititic.com"; if(''==t)t=cititic.namecn; if(document.all) window.external.AddFavorite(u,t); else if(window.sidebar)//ff window.sidebar.addPanel(t,u,""); } function showitem(s,f){var o=ge(s);if(f==1){o.style.display='block';}else{o.style.display='none';}} function fheadlogr1(con){var so=new SWFObject("/img/as/svw8b.swf", "headlogr1", "500", "86", "9", "#000000");so.addParam("wmode", "opaque");so.addParam("quality", "best");so.addParam("scale", "noScale");so.write(con);} function citicopytext(){var citiurl=location.href;if(-1==citiurl.indexOf('cititic.com'))citiurl='http://www.cititic.com/';setTimeout(function(){var text=clipboardData.getData("text");if(text){text=text+"\r\n文章复制于[Cititic:"+cititic.namecn+"] 原文参见:"+citiurl+"\r\n";clipboardData.setData("text",text);}},200)} function copytxttoclip(str){clipboardData.setData("text",str);} function setcookie(name,value,expires,path,domain,secure){var today=new Date();today.setTime(today.getTime());if(expires)expires=expires*1000;var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+((expires)?";expires="+expires_date.toGMTString():"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+((secure)?";secure":"");}; function getcookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length)))return null;if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end));}; function delcookie(name,path,domain){if(getcookie(name))document.cookie=name+"="+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";}; function setwindowcenter(ow,w,h){ var wh=eval('({width:'+w+',height:'+h+'})');var pot=getwindowcenter(wh);ow.style.position="absolute";ow.style.top=pot.y+"px";ow.style.left=pot.x+"px";ow.style.width=w+"px";ow.style.height=h+"px";ow.style.display='block';} function getwindowsize(){var w=0;var h=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){w=document.documentElement.clientWidth;h=document.documentElement.clientHeight;}else{w=document.body.clientWidth;h=document.body.clientHeight;}}else{w=window.innerWidth;h=window.innerHeight;}return{width:w,height:h};}; function getwindowcenter(){var hWnd=(arguments[0]!=null)?arguments[0]:{width:0,height:0};var _x=0;var _y=0;var offsetX=0;var offsetY=0;if(!window.pageYOffset){if(!(document.documentElement.scrollTop==0)){offsetY=document.documentElement.scrollTop;offsetX=document.documentElement.scrollLeft;}else{offsetY=document.body.scrollTop;offsetX=document.body.scrollLeft;}}else{offsetX=window.pageXOffset;offsetY=window.pageYOffset;}_x=((getwindowsize().width-hWnd.width)/2)+offsetX;_y=((getwindowsize().height-hWnd.height)/2)+offsetY;return{x:_x,y:_y};} function cititicmicalput(){var dhis=cititic.timedist("4/3/2010 00:00:00");var sf='

离清明节还有'+dhis.d+'天'+dhis.h+'时'+dhis.i+'分'+dhis.s+'秒'; var st=''+cititic.cititicYmdhis()+'';var sa=st+sf;document.getElementById("cititicmical").innerHTML=st;} function cititicmicalSetup(){setInterval(cititicmicalput,1000);}; cititicmicalSetup(); function iscititic(){var ch=document.domain;if(('www.cititic.com'==ch||'cititic.com'==ch||'lh'==ch)){return true;}else{return false;}} var xmlHttp; function cititicxmlcomm(url,method,stateChangedFunc,params){function getXmlHttpObject(){var xmlobj=null;try{xmlobj=new XMLHttpRequest();}catch(e){ try{xmlobj=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){xmlobj=new ActiveXObject("Microsoft.XMLHTTP");}}return xmlobj;};if(undefined==params||''==params){params=null;}else{}xmlHttp=getXmlHttpObject();if(xmlHttp==null){alert("Browser does not support HTTP Request");return;};xmlHttp.onreadystatechange=eval(stateChangedFunc);xmlHttp.open(method,url,true); xmlHttp.send(params);} //xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",params.length);xmlHttp.setRequestHeader("Connection", "close");