// [8,342,18] published at 2010-06-21 17:24:20

/* sina flash class */
if(typeof(sina)!="object"){var sina={}}
sina.$=function(i){if(!i){return null}
return document.getElementById(i)};var sinaFlash=function(V,x,X,Z,v,z,i,c,I,l,o){var w=this;if(!document.createElement||!document.getElementById){return}
w.id=x?x:'';var O=function(I,i){for(var l=0;l<I.length;l++){if(I[l]==i){return l}}
return-1},C='8.0.42.0';if(O(['eladies.sina.com.cn','ent.sina.com.cn'],document.domain)>-1){w.ver=C}else{w.ver=v?v:C}
w.ver=w.ver.replace(/\./g,',');w.__classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";w.__codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+w.ver;w.width=X;w.height=Z;w.movie=V;w.src=w.movie;w.bgcolor=z?z:'';w.quality=c?c:"high";w.__pluginspage="http://www.macromedia.com/go/getflashplayer";w.__type="application/x-shockwave-flash";w.useExpressInstall=(typeof(i)=="boolean")?i:false;w.xir=I?I:window.location;w.redirectUrl=l?l:window.location;w.detectKey=(typeof(o)=="boolean")?o:true;w.escapeIs=false;w.__objAttrs={};w.__params={};w.__embedAttrs={};w.__flashVars=[];w.__flashVarsStr="";w.__forSetAttribute("id",w.id);w.__objAttrs["classid"]=w.__classid;w.__forSetAttribute("codebase",w.__codebase);w.__forSetAttribute("width",w.width);w.__forSetAttribute("height",w.height);w.__forSetAttribute("movie",w.movie);w.__forSetAttribute("quality",w.quality);w.__forSetAttribute("pluginspage",w.__pluginspage);w.__forSetAttribute("type",w.__type);w.__forSetAttribute("bgcolor",w.bgcolor)}
sinaFlash.prototype={getFlashHtml:function(){var I=this,i='<object ';for(var l in I.__objAttrs){i+=l+'="'+I.__objAttrs[l]+'"'+' '}
i+='>\n';for(var l in I.__params){i+='	<param name="'+l+'" value="'+I.__params[l]+'" \/>\n'}
if(I.__flashVarsStr!=""){i+='	<param name="flashvars" value="'+I.__flashVarsStr+'" \/>\n'}
i+='	<embed ';for(var l in I.__embedAttrs){i+=l+'="'+I.__embedAttrs[l]+'"'+' '}
i+='><\/embed>\n<\/object>';return i},__forSetAttribute:function(I,i){var l=this;if(typeof(I)=="undefined"||I==''||typeof(i)=="undefined"||i==''){return}
I=I.toLowerCase();switch(I){case "classid":break;case "pluginspage":l.__embedAttrs[I]=i;break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "codebase":l.__objAttrs[I]=i;break;case "src":case "movie":l.__embedAttrs["src"]=i;l.__params["movie"]=i;break;case "width":case "height":case "align":case "vspace":case "hspace":case "title":case "class":case "name":case "id":case "accesskey":case "tabindex":case "type":l.__objAttrs[I]=l.__embedAttrs[I]=i;break;default:l.__params[I]=l.__embedAttrs[I]=i}},__forGetAttribute:function(i){var I=this;i=i.toLowerCase();if(typeof I.__objAttrs[i]!="undefined"){return I.__objAttrs[i]}else if(typeof I.__params[i]!="undefined"){return I.__params[i]}else if(typeof I.__embedAttrs[i]!="undefined"){return I.__embedAttrs[i]}else{return null}},setAttribute:function(I,i){this.__forSetAttribute(I,i)},getAttribute:function(i){return this.__forGetAttribute(i)},addVariable:function(I,i){var l=this;if(l.escapeIs){I=escape(I);i=escape(i)}
if(l.__flashVarsStr==""){l.__flashVarsStr=I+"="+i}else{l.__flashVarsStr+="&"+I+"="+i}
l.__embedAttrs["FlashVars"]=l.__flashVarsStr},getVariable:function(I){var o=this,i=o.__flashVarsStr;if(o.escapeIs){I=escape(I)}
var l=new RegExp(I+"=([^\\&]*)(\\&?)","i").exec(i);if(o.escapeIs){return unescape(RegExp.$1)}
return RegExp.$1},addParam:function(I,i){this.__forSetAttribute(I,i)},getParam:function(i){return this.__forGetAttribute(i)},write:function(i){var I=this;if(typeof i=="string"){document.getElementById(i).innerHTML=I.getFlashHtml()}else if(typeof i=="object"){i.innerHTML=I.getFlashHtml()}}}

/* http://eladies.sina.com.cn/iframe/342/2009/0326/eladies.js */
//舍签
function SubShowClass(ID,eventType,defaultID,openClassName,closeClassName){this.parentObj=SubShowClass.$(ID);if(this.parentObj==null&&ID!="none"){throw new Error("SubShowClass(ID)参数错误:ID 对像存在!(value:"+ID+")")};if(!SubShowClass.childs){SubShowClass.childs=[]};this.ID=SubShowClass.childs.length;SubShowClass.childs.push(this);this.lock=false;this.label=[];this.defaultID=defaultID==null?0:defaultID;this.selectedIndex=this.defaultID;this.openClassName=openClassName==null?"selected":openClassName;this.closeClassName=closeClassName==null?"":closeClassName;this.mouseIn=false;var mouseInFunc=Function("SubShowClass.childs["+this.ID+"].mouseIn = true"),mouseOutFunc=Function("SubShowClass.childs["+this.ID+"].mouseIn = false");if(ID!="none"){if(this.parentObj.attachEvent){this.parentObj.attachEvent("onmouseover",mouseInFunc)}else{this.parentObj.addEventListener("mouseover",mouseInFunc,false)}};if(ID!="none"){if(this.parentObj.attachEvent){this.parentObj.attachEvent("onmouseout",mouseOutFunc)}else{this.parentObj.addEventListener("mouseout",mouseOutFunc,false)}};if(typeof(eventType)!="string"){eventType="onmousedown"};eventType=eventType.toLowerCase();switch(eventType){case "onmouseover":this.eventType="mouseover";break;case "onmouseout":this.eventType="mouseout";break;case "onclick":this.eventType="click";break;case "onmouseup":this.eventType="mouseup";break;default:this.eventType="mousedown"};this.autoPlay=false;this.autoPlayTimeObj=null;this.spaceTime=5000};SubShowClass.prototype.version="1.30";SubShowClass.prototype.author="mengjia";SubShowClass.prototype.addLabel=function(labelID,contID,parentBg,springEvent,blurEvent){if(SubShowClass.$(labelID)==null&&labelID!="none"){throw new Error("addLabel(labelID)参数错误:labelID 对像存在!(value:"+labelID+")")};var TempID=this.label.length;if(parentBg==""){parentBg=null};this.label.push([labelID,contID,parentBg,springEvent,blurEvent]);var tempFunc=Function('SubShowClass.childs['+this.ID+'].select('+TempID+')');if(labelID!="none"){if(SubShowClass.$(labelID).attachEvent){SubShowClass.$(labelID).attachEvent("on"+this.eventType,tempFunc)}else{SubShowClass.$(labelID).addEventListener(this.eventType,tempFunc,false)}};if(TempID==this.defaultID){if(labelID!="none"){SubShowClass.$(labelID).className=this.openClassName};if(SubShowClass.$(contID)){SubShowClass.$(contID).style.display=""};if(this.ID!="none"){if(parentBg!=null){this.parentObj.style.background=parentBg}};if(springEvent!=null){eval(springEvent)}}else{if(labelID!="none"){SubShowClass.$(labelID).className=this.closeClassName};if(SubShowClass.$(contID)){SubShowClass.$(contID).style.display="none"}};var mouseInFunc=Function("SubShowClass.childs["+this.ID+"].mouseIn = true"),mouseOutFunc=Function("SubShowClass.childs["+this.ID+"].mouseIn = false");if(SubShowClass.$(contID)){if(SubShowClass.$(contID).attachEvent){SubShowClass.$(contID).attachEvent("onmouseover",mouseInFunc)}else{SubShowClass.$(contID).addEventListener("mouseover",mouseInFunc,false)};if(SubShowClass.$(contID).attachEvent){SubShowClass.$(contID).attachEvent("onmouseout",mouseOutFunc)}else{SubShowClass.$(contID).addEventListener("mouseout",mouseOutFunc,false)}}};SubShowClass.prototype.select=function(num,force){if(typeof(num)!="number"){throw new Error("select(num)参数错误:num 不是 number 类型!(value:"+num+")")};if(force!=true&&this.selectedIndex==num){return};var i;for(i=0;i<this.label.length;i++){if(i==num){if(this.label[i][0]!="none"){SubShowClass.$(this.label[i][0]).className=this.openClassName};if(SubShowClass.$(this.label[i][1])){SubShowClass.$(this.label[i][1]).style.display=""};if(this.ID!="none"){if(this.label[i][2]!=null){this.parentObj.style.background=this.label[i][2]}};if(this.label[i][3]!=null){eval(this.label[i][3])}}else if(this.selectedIndex==i||force==true){if(this.label[i][0]!="none"){SubShowClass.$(this.label[i][0]).className=this.closeClassName};if(SubShowClass.$(this.label[i][1])){SubShowClass.$(this.label[i][1]).style.display="none"};if(this.label[i][4]!=null){eval(this.label[i][4])}}};this.selectedIndex=num};SubShowClass.prototype.random=function(){var O=this;if(arguments.length!=O.label.length){throw new Error("random()参数错误:参数数量与标签数量不符!(length:"+arguments.length+")")};var l=0,o;for(o=0;o<arguments.length;o++){l+=arguments[o]};var I=Math.random(),i=0;for(o=0;o<arguments.length;o++){i+=arguments[o]/l;if(I<i){O.select(o);break}}};SubShowClass.prototype.order=function(){var O=this;if(arguments.length!=O.label.length){throw new Error("order()参数错误:参数数量与标签数量不符!(length:"+arguments.length+")")};if(!(/^\d+$/).test(SubShowClass.sum)){return};var i=0,o;for(o=0;o<arguments.length;o++){i+=arguments[o]};var I=SubShowClass.sum%i;if(I==0){I=i};var l=0;for(o=0;o<arguments.length;o++){l+=arguments[o];if(l>=I){O.select(o);break}}};SubShowClass.prototype.play=function(spTime){if(typeof(spTime)=="number"){this.spaceTime=spTime};clearInterval(this.autoPlayTimeObj);this.autoPlayTimeObj=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime);this.autoPlay=true};SubShowClass.prototype.autoPlayFunc=function(){var i=this;if(i.autoPlay==false||i.mouseIn==true){return};i.nextLabel()};SubShowClass.prototype.nextLabel=function(){var index=this.selectedIndex;index++;if(index>=this.label.length){index=0};this.select(index);if(this.autoPlay==true){clearInterval(this.autoPlayTimeObj);this.autoPlayTimeObj=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime)}};SubShowClass.prototype.previousLabel=function(){var index=this.selectedIndex;index--;if(index<0){index=this.label.length-1};this.select(index);if(this.autoPlay==true){clearInterval(this.autoPlayTimeObj);this.autoPlayTimeObj=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime)}};SubShowClass.prototype.stop=function(){var i=this;clearInterval(i.autoPlayTimeObj);i.autoPlay=false};SubShowClass.$=function(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}};SubShowClass.readCookie=function(O){var o="",l=O+"=";if(document.cookie.length>0){var i=document.cookie.indexOf(l);if(i!=-1){i+=l.length;var I=document.cookie.indexOf(";",i);if(I==-1)I=document.cookie.length;o=unescape(document.cookie.substring(i,I))}};return o};SubShowClass.writeCookie=function(i,l,o,c){var O="",I="";if(o!=null){O=new Date((new Date).getTime()+o*3600000);O="; expires="+O.toGMTString()};if(c!=null){I=";domain="+c};document.cookie=i+"="+escape(l)+O+I};SubShowClass.sum=SubShowClass.readCookie("SSCSum");if((/^\d+$/).test(SubShowClass.sum)){SubShowClass.sum++}else{SubShowClass.sum=1};SubShowClass.writeCookie("SSCSum",SubShowClass.sum,12);

//checkForm.js
function checkForm(fm){for(var i=0;i<fm.length;i++){var title=fm[i].title;if(title=="")continue;var p=title.lastIndexOf("~");if(p<0)continue;var info=title.substring(0,p);var format=title.substring(p+1,title.length);var name=fm[i].name;if(name=="")continue;var value=trim(fm[i].value);if(fm[i].type=="radio"){if(checkRadio(fm,fm[i])){continue}else{return false}}if(fm[i].type=="checkbox"){if(checkCheckbox(fm,fm[i])){continue}else{return false}}if(fm[i].type=="select-one"){if(checkSelectOne(fm[i])){continue}else{return false}}if(fm[i].type=="select-multiple"){if(checkSelectMultiple(fm[i])){continue}else{return false}}var notNull=false;if(format.charAt(format.length-1)=="!"){notNull=true;format=format.substring(0,format.length-1)}if(notNull){if(value==""){alert(info+"\n"+name+"的内容不可以为空。");fm[i].focus();return false}}else{if(value=="")continue}var colonP=format.indexOf(":");if(colonP>0){if(format.charAt(colonP-1)=='f'){var lengthLimit=format.substring(0,colonP-1);if(!isNaN(lengthLimit)){if(value.length!=lengthLimit){alert(info+"\n"+name+"的长度为"+value.length+"位，必须为"+lengthLimit+"位");fm[i].focus();return false}}}else{var lengthLimit=format.substring(0,colonP);if(!isNaN(lengthLimit)){if(value.length>lengthLimit){alert(info+"\n"+name+"的长度("+value.length+")超过限制"+lengthLimit);fm[i].focus();return false}}}format=format.substring(colonP+1,format.length)}if(format=="email"){var found=value.match(/\w+@.+\..+/);if(found==null){alert(info+"\n"+name+"的格式不正确:\n\""+value+"\"不是一个Email地址");fm[i].focus();return false}}else if(format=="int"){var intVal=parseInt(value);if(isNaN(intVal)||intVal!=value){alert(info+"\n"+name+"的格式不正确:\n"+value+"不是一个整数。");fm[i].focus();return false}}else if(format=="float"){var floatVal=parseFloat(value);if(isNaN(floatVal)||floatVal!=value){alert(info+"\n"+name+"的格式不正确:\n"+value+"不是一个浮点数。");fm[i].focus();return false}}else if(format=="date"){var found=value.match(/(\d{1,5})-(\d{1,2})-(\d{1,2})/);if(found==null||found[0]!=value||found[2]>12||found[3]>31){alert(info+"\n"+name+"的格式不正确:\n\""+value+"\"不是一个日期\n提示：[2000-01-01]");fm[i].focus();return false}var year=trim0(found[1]);var month=trim0(found[2])-1;var date=trim0(found[3]);var d=new Date(year,month,date);if(d.getFullYear()!=year||d.getMonth()!=month||d.getDate()!=date){alert(info+"\n"+name+"的内容不正确:\n\""+value+"\"不是一个正确的日期\n提示：[2000-01-01]");fm[i].focus();return false}}else if(format=="time"){var found=value.match(/(\d{2}):(\d{2}):(\d{2})/);if(found==null||found[0]!=value||found[1]>23||found[2]>59||found[3]>59){alert(info+"\n"+name+"的格式不正确:\n\""+value+"\"不是一个时间\n提示：[05:38:00]");fm[i].focus();return false}}else if(format=="hasChinese"){var _hasChinese=false;for(var j=0;j<value.length;j++){if(value.charCodeAt(j)>255){_hasChinese=true;break}}if(!_hasChinese){alert(info+"\n"+name+"的内容需要中文:\n\""+value+"\"不含有任何中文字符");fm[i].focus();return false}}else if(format=="allChinese"){for(var j=0;j<value.length;j++){if(value.charCodeAt(j)<=255){alert(info+"\n"+name+"的内容要求全中文:\n\""+value+"\"含有非中文字符");fm[i].focus();return false}}}else if(format=="noChinese"){for(var j=0;j<value.length;j++){if(value.charCodeAt(j)>255){alert(info+"\n"+name+"的内容要求非中文:\n\""+value+"\"含有中文字符");fm[i].focus();return false}}}else if(format!=""){try{var found=value.match(eval(format));if(found==null||found[0]!=value){alert(info+"\n"+name+"的格式不不符合要求:\""+value+"\"\n提示：["+format+"]");fm[i].focus();return false}}catch(e){alert(e.name+":\n["+fm[i].name+"]不合法的正则式\""+format+"\"");return false}}}return true}function checkRadio(fm,opt){var title=opt.title;if(title=="")return true;var p=title.lastIndexOf("~");if(p<0)return true;var info=title.substring(0,p);var format=title.substring(p+1,title.length);var name=opt.name;if(name=="")return true;if(format=="!"){if(typeof(fm.all[name].length)=="undefined"){if(opt.checked){return true}else{alert(info+"\n必须选择"+name);opt.focus();return false}}else{var radios=fm[name];for(var j=0;j<radios.length;j++){if(radios[j].checked==true)return true}alert(info+"\n必须选择"+name+"的一个选项");opt.focus();return false}}else{return true}}function checkCheckbox(fm,opt){var title=opt.title;if(title=="")return true;var p=title.lastIndexOf("~");if(p<0)return true;var info=title.substring(0,p);var format=title.substring(p+1,title.length);var name=opt.name;if(name=="")return true;var min=format.match(/min:(\d+)\w*/);var max=format.match(/\w*max:(\d+)/);if(typeof(fm.all[name].length)=="undefined"){if(min!=null){if(min[1]==1&&!opt.checked){alert(info+"\n必须选上"+name+"选项");opt.focus();return false}}}else{var checkboxes=fm.all[name];var check_count=0;for(var j=0;j<checkboxes.length;j++){if(checkboxes[j].checked)check_count++}if(min!=null){if(min[1]>check_count){alert(info+"\n"+name+"至少需要选择"+min[1]+"个选项");opt.focus();return false}}if(max!=null){if(max[1]<check_count){alert(info+"\n"+name+"至多可以选择"+max[1]+"个选项");opt.focus();return false}}}return true}function checkSelectOne(sel){var title=sel.title;if(title=="")return true;var p=title.lastIndexOf("~");if(p<0)return true;var info=title.substring(0,p);var format=title.substring(p+1,title.length);var name=sel.name;if(name=="")return true;if(format=="!"&&sel.selectedIndex==0){alert(info+"\n"+name+"不可以选择第一个个选项");sel.focus();return false}return true}function checkSelectMultiple(sel){var title=sel.title;if(title=="")return true;var p=title.lastIndexOf("~");if(p<0)return true;var info=title.substring(0,p);var format=title.substring(p+1,title.length);var name=sel.name;if(name=="")return true;var min=format.match(/min:(\d+)\w*/);var max=format.match(/\w*max:(\d+)/);var select_count=0;for(var j=0;j<sel.length;j++){if(sel[j].selected)select_count++}if(min!=null){if(min[1]>select_count){alert(info+"\n"+name+"至少需要选择"+min[1]+"个选项");sel.focus();return false}}if(max!=null){if(max[1]<select_count){alert(info+"\n"+name+"至多可以选择"+max[1]+"个选项");sel.focus();return false}}return true}function trim(s){s=s.replace(/^ */,"");s=s.replace(/ *$/,"");return s}function trim0(s){if(s.length==0)return s;s=s.replace(/^0*/,"");if(s.length==0)s="0";return s}function getQueryString(fm){var qStr="";for(var i=0;i<fm.length;i++){if(!fm[i].disabled){var n=fm[i].name;if(n==null)continue;if(n.length==0)continue;if(fm[i].type=="select-multiple"){var _vs=fm[i].options;for(var _j=0;_j<_vs.length;_j++){var _opt=_vs(_j);if(_opt.selected){var v=_opt.value;qStr=qStr+"&"+n+"="+ec(v)}}}else{var v=fm[i].value;if(fm[i].type=="radio"||fm[i].type=="checkbox"){if(!fm[i].checked)continue}qStr=qStr+"&"+n+"="+ec(v)}}}if(qStr.length>0)qStr="?"+qStr.substr(1);return qStr}function ec(va){return va.replace(/\n/g,"%0D%0A")}

/* 改变className begin */
function chgClassName(ObjId,className){GetObj(ObjId).className=className}
/* 改变className end */

/* ========== 舌签切换 begin ========== */
function chgTabs(TabNum,preTabId,TabId,preConId,ConId){for(var i=0;i<TabNum;i++){GetObj(preConId+i).style.display="none";chgClassName(preTabId+TabId,"")}GetObj(preConId+ConId).style.display="block";chgClassName(preTabId+TabId,"on")}
/* ========== 舌签切换 end ========== */

/* 截字js代码 begin */
function cutString(str,len){
		if(typeof(str) != "string"){return null};
		if(!(/^[0-9]*[1-9][0-9]*$/).test(len)){return str};
		var sum = 0,newStr = "";
		for(var i=0;i<str.length;i++){
			if(str.charCodeAt(i) > 255){ sum += 2; }
			else{ sum ++; };
			if(sum <= len - 2){ newStr += str.charAt(i);
			}
			else{
				if(i==str.length-1){ newStr += str.charAt(i); }
				else{ newStr += "…"; };
				break;
			};
		};
		return newStr;
	}
/* 截字js代码 end */

/* 投票js begin */
/* http://eladies.sina.com.cn/iframe/367/2008/0924/vote.js */
var Data = null;
function create_js(id, src) {
	var js = document.getElementById(id);
	if(js != null && js.tagName.toLowerCase() == "script") {
		document.getElementsByTagName("head").item(0).removeChild(js);
	}
	js = document.createElement('script');
	js.type = "text/javascript";
	js.id = id;
	js.src = src;
	document.getElementsByTagName("head").item(0).appendChild(js);
}
function remove_js(id) {
	var js = document.getElementById(id);       
	if (js != null && js.tagName.toLowerCase() == "script") {
		js.src = "http://";
		//document.getElementsByTagName("head").item(0).removeChild(js);
	}
}
function ceil($value) {
	return Math.ceil($value);
}

function Vote(sDid,sUrl,sName,sBrand,sPic,sPrice,objName,sType,sTxt) {
	this.sDId = sDid;
	this.sUrl = sUrl;
	this.sBrand = sBrand;
	this.sName =sName;
	this.sPic = sPic;
	this.sPrice = sPrice;
	this.objName = objName;
	this.sType = sType;

	this.sHeight = 40;
	this.sParam = null;
	this.sItem = {"61":{"251":"kz", "252":"yb","253":"bxh"}, "62":{"254":"xy","255":"mxq"}};

	//因为其他有几个地方在使用n'人'的情行，只有新版女首不加单位，所以加个空字作为例外
	if (sTxt=="空" || sTxt=="") {
		this.sTxt = "";
	}
	else if ( !(sTxt) ) {
		//以前用的时候没有定义这个参数，使用'人'作为单位
		this.sTxt = "人";
	}
	else {
		this.sTxt = sTxt;
	}
}
Vote.prototype = {
	$: function(id)	{
		return document.getElementById(id);
	},
	loadScore: function() {
		var d = new Date().getTime();
		create_js("fpro_vote_score_"+this.objName+"_1", "http://mark.sina.com.cn/v2/GetResult.php?p_mark=hzp_yg&i_mark=fpro_" + this.sDId + "&prefix=fpro1&call_back="+this.objName+".loadScoreCallBack&t=" + d);

		create_js("fpro_vote_score_"+this.objName+"_2", "http://mark.sina.com.cn/v2/GetResult.php?p_mark=hzp_myg&i_mark=fpro_" + this.sDId + "&prefix=fpro2&call_back="+this.objName+".loadScoreCallBack&t=" + d);
	},
	loadScoreCallBack: function() {

		if (typeof(fpro1_Data) != "undefined" && typeof(fpro2_Data) != "undefined")	{

			Data = fpro2_Data;
			for(i in fpro1_Data) {
				Data[i] = fpro1_Data[i];
			}
			var obj = this.sItem;
			for(i in obj) {
				var total = 0;
				var s = Array();
				for(var j in Data[i]) {
					var t = ceil(Data[i][j]);
					total += t;
					s[j] = t;
				}

				for(var j in obj[i]) {
					var txt = this.$(obj[i][j] + "_" + this.objName);
					var img = this.$(obj[i][j] + "img_" + this.objName);

					txt.innerHTML = s[j] + this.sTxt;

					var col_height = 0;

					if (total>0) {
						col_height = ceil(this.sHeight * (s[j] / total));
					}

					img.style.height = col_height + "px";
				}

				if (i == "61") {
					//对使用过的评价计算好评率
					var txt_per = this.$("per_gd" + "_" + this.objName);
					var percent = 100;	//当没有投票时使用多少?
					if (total > 0){
						percent = ceil(fpro1_Data["61"]["251"] / total * 100);	//只有狂赞才是好评吗?
						txt_per.innerHTML = percent + "%";
					}
					else {
						txt_per.innerHTML = "<span style='font-size:14px;'>暂无</span>";
					}
				}

			}
		}
	},
	changeScore: function() {
		var s = this.sParam;
		var num = ceil(Data[s[0]][s[1]]);
		num++;
		Data[s[0]][s[1]] = num;
	},
	vote: function(item) {
		var obj = this.sItem;
		var s = false;
		for(i in obj) {
			for(var j in obj[i]) {
				if(obj[i][j] == item) {
					s = Array(i, j)
					break;
				}
			}
		}

		var pid = s[0] == "61" ? "yg" : "myg";

		var src = "http://mark.sina.com.cn/v2/DoData.php?p_mark=hzp_" + pid + "&i_mark=fpro_" + this.sDId + "&name="+ this.sName +"&question[]=" + s[0] + "&option_" + s[0] + "=" + s[1] + "&type=get&ext2="+this.sUrl+"&ext3="+this.sPic+"&ext4="+this.sPrice+"&ext5="+this.sBrand+"&ext1="+this.sType;

		success = null;
		create_js("fpro_vote", src + "&call_back="+this.objName+".voteCallBack");
		this.sParam = s;

		//加载PV统计页
		var d = new Date().getTime();
		if ( document.getElementById('productVotePV') ) {
			document.getElementById('productVotePV').src = "http://eladies.sina.com.cn/misc/2008/1015/2118.html?"+d;
		}

	},
	voteCallBack: function() {
		if(success) {
			error_msg = "感谢您的投票！";
			this.changeScore();
		}
		alert(error_msg);
		remove_js("fpro_vote");

		this.loadScore();		
		//this.loadScoreCallBack();
	},
	set_survey: function(action){
		action_arr = {"kz":"kz", "yb":"yb", "bxh":"bxh", "xy":"xy", "mxq":"mxq"};
		this.vote(action_arr[action]);
	}
}
/* 投票js end */

/* 回顾 begin */
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('(G(){I u=19.2O,3e$=19.$;I v=19.2O=19.$=G(a,b){H 2l v.16.4V(a,b)};I w=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,4W=/^.[^:#\\[\\.]*$/,11;v.16=v.3A={4V:G(a,b){a=a||R;7(a.12){6[0]=a;6.J=1;H 6}7(1i a=="1S"){I c=w.2C(a);7(c&&(c[1]||!b)){7(c[1])a=v.4g([c[1]],b);M{I d=R.4X(c[3]);7(d){7(d.2m!=c[3])H v().2o(a);H v(d)}a=[]}}M H v(b).2o(a)}M 7(v.1A(a))H v(R)[v.16.23?"23":"3B"](a);H 6.64(v.2b(a))},2O:"1.0.0",7I:G(){H 6.J},J:0,3f:G(a){H a==11?v.2b(6):6[a]},2D:G(a){I b=v(a);b.4Y=6;H b},64:G(a){6.J=0;2p.3A.1n.1s(6,a);H 6},O:G(a,b){H v.O(6,a,b)},4Z:G(a){I b=-1;H v.2E(a&&a.2O?a[0]:a,6)},1I:G(a,b,c){I d=a;7(a.1p==50)7(b===11)H 6[0]&&v[c||"1I"](6[0],a);M{d={};d[a]=b}H 6.O(G(i){P(a 1j d)v.1I(c?6.T:6,a,v.1g(6,d[a],c,i,a))})},1f:G(a,b){7((a==\'2c\'||a==\'1T\')&&2P(b)<0)b=11;H 6.1I(a,b,"24")},1q:G(a){7(1i a!="3C"&&a!=U)H 6.4h().3g((6[0]&&6[0].2q||R).51(a));I b="";v.O(a||6,G(){v.O(6.3h,G(){7(6.12!=8)b+=6.12!=1?6.65:v.16.1q([6])})});H b},52:G(b){7(6[0])v(b,6[0].2q).53().2Q(6[0]).2d(G(){I a=6;1B(a.1t)a=a.1t;H a}).3g(6);H 6},7J:G(a){H 6.O(G(){v(6).66().52(a)})},7K:G(a){H 6.O(G(){v(6).52(a)})},3g:G(){H 6.3D(17,L,Q,G(a){7(6.12==1)6.3E(a)})},67:G(){H 6.3D(17,L,L,G(a){7(6.12==1)6.2Q(a,6.1t)})},68:G(){H 6.3D(17,Q,Q,G(a){6.1b.2Q(a,6)})},54:G(){H 6.3D(17,Q,L,G(a){6.1b.2Q(a,6.2F)})},3i:G(){H 6.4Y||v([])},2o:G(b){I c=v.2d(6,G(a){H v.2o(b,a)});H 6.2D(/[^+>] [^+>]/.W(b)||b.1h("..")>-1?v.4i(c):c)},53:G(d){I e=6.2d(G(){7(v.14.1e&&!v.4j(6)){I a=6.69(L),55=R.3j("1u");55.3E(a);H v.4g([55.4k])[0]}M H 6.69(L)});I f=e.2o("*").56().O(G(){7(6[x]!=11)6[x]=U});7(d===L)6.2o("*").56().O(G(i){7(6.12==3)H;I a=v.K(6,"3k");P(I b 1j a)P(I c 1j a[b])v.V.1c(f[i],b,a[b][c],a[b][c].K)});H e},1C:G(b){H 6.2D(v.1A(b)&&v.3F(6,G(a,i){H b.1k(a,i)})||v.3l(b,6))},57:G(a){7(a.1p==50)7(4W.W(a))H 6.2D(v.3l(a,6,L));M a=v.3l(a,6);I b=a.J&&a[a.J-1]!==11&&!a.12;H 6.1C(G(){H b?v.2E(6,a)<0:6!=a})},1c:G(a){H 6.2D(v.4i(v.2R(6.3f(),1i a==\'1S\'?v(a):v.2b(a))))},3G:G(a){H!!a&&v.3l(a,6).J>0},7L:G(a){H 6.3G("."+a)},6a:G(b){7(b==11){7(6.J){I c=6[0];7(v.Y(c,"2r")){I d=c.58,59=[],15=c.15,2S=c.N=="2r-2S";7(d<0)H U;P(I i=2S?d:0,2e=2S?d+1:15.J;i<2e;i++){I e=15[i];7(e.2T){b=v.14.1e&&!e.7M.2s.7N?e.1q:e.2s;7(2S)H b;59.1n(b)}}H 59}M H(6[0].2s||"").1o(/\\r/g,"")}H 11}7(b.1p==4l)b+=\'\';H 6.O(G(){7(6.12!=1)H;7(b.1p==2p&&/5a|5b/.W(6.N))6.4m=(v.2E(6.2s,b)>=0||v.2E(6.2U,b)>=0);M 7(v.Y(6,"2r")){I a=v.2b(b);v("7O",6).O(G(){6.2T=(v.2E(6.2s,a)>=0||v.2E(6.1q,a)>=0)});7(!a.J)6.58=-1}M 6.2s=b})},2G:G(a){H a==11?(6[0]?6[0].4k:U):6.4h().3g(a)},6b:G(a){H 6.54(a).1U()},6c:G(i){H 6.3m(i,i+1)},3m:G(){H 6.2D(2p.3A.3m.1s(6,17))},2d:G(b){H 6.2D(v.2d(6,G(a,i){H b.1k(a,i,a)}))},56:G(){H 6.1c(6.4Y)},K:G(a,b){I c=a.1O(".");c[1]=c[1]?"."+c[1]:"";7(b===11){I d=6.5c("7P"+c[1]+"!",[c[0]]);7(d===11&&6.J)d=v.K(6[0],a);H d===11&&c[1]?6.K(c[0]):d}M H 6.1P("7Q"+c[1]+"!",[c[0],b]).O(G(){v.K(6,a,b)})},2V:G(a){H 6.O(G(){v.2V(6,a)})},3D:G(d,e,f,g){I h=6.J>1,3n;H 6.O(G(){7(!3n){3n=v.4g(d,6.2q);7(f)3n.7R()}I b=6;7(e&&v.Y(6,"1V")&&v.Y(3n[0],"4n"))b=6.3H("1W")[0]||6.3E(6.2q.3j("1W"));I c=v([]);v.O(3n,G(){I a=h?v(6).53(L)[0]:6;7(v.Y(a,"1l"))c=c.1c(a);M{7(a.12==1)c=c.1c(v("1l",a).1U());g.1k(b,a)}});c.O(6d)})}};v.16.4V.3A=v.16;G 6d(i,a){7(a.3I)v.3J({1a:a.3I,2W:Q,1J:"1l"});M v.5d(a.1q||a.6e||a.4k||"");7(a.1b)a.1b.2X(a)}G 1v(){H+2l 7S}v.1m=v.16.1m=G(){I a=17[0]||{},i=1,J=17.J,4o=Q,15;7(a.1p==7T){4o=a;a=17[1]||{};i=2}7(1i a!="3C"&&1i a!="G")a={};7(J==i){a=6;--i}P(;i<J;i++)7((15=17[i])!=U)P(I b 1j 15){I c=a[b],2t=15[b];7(a===2t)6f;7(4o&&2t&&1i 2t=="3C"&&!2t.12)a[b]=v.1m(4o,c||(2t.J!=U?[]:{}),2t);M 7(2t!==11)a[b]=2t}H a};I x="2O"+1v(),6g=0,5e={},6h=/z-?4Z|7U-?7V|1w|6i|7W-?1T/i,3K=R.3K||{};v.1m({7X:G(a){19.$=3e$;7(a)19.2O=u;H v},1A:G(a){H!!a&&1i a!="1S"&&!a.Y&&a.1p!=2p&&/^[\\s[]?G/.W(a+"")},4j:G(a){H a.1D&&!a.1d||a.2f&&a.2q&&!a.2q.1d},5d:G(a){a=v.3o(a);7(a){I b=R.3H("6j")[0]||R.1D,1l=R.3j("1l");1l.N="1q/4p";7(v.14.1e)1l.1q=a;M 1l.3E(R.51(a));b.2Q(1l,b.1t);b.2X(1l)}},Y:G(a,b){H a.Y&&a.Y.2u()==b.2u()},1X:{},K:G(a,b,c){a=a==19?5e:a;I d=a[x];7(!d)d=a[x]=++6g;7(b&&!v.1X[d])v.1X[d]={};7(c!==11)v.1X[d][b]=c;H b?v.1X[d][b]:d},2V:G(a,b){a=a==19?5e:a;I c=a[x];7(b){7(v.1X[c]){2Y v.1X[c][b];b="";P(b 1j v.1X[c])1Y;7(!b)v.2V(a)}}M{1Z{2Y a[x]}21(e){7(a.5f)a.5f(x)}2Y v.1X[c]}},O:G(a,b,c){I d,i=0,J=a.J;7(c){7(J==11){P(d 1j a)7(b.1s(a[d],c)===Q)1Y}M P(;i<J;)7(b.1s(a[i++],c)===Q)1Y}M{7(J==11){P(d 1j a)7(b.1k(a[d],d,a[d])===Q)1Y}M P(I e=a[0];i<J&&b.1k(e,i,e)!==Q;e=a[++i]){}}H a},1g:G(a,b,c,i,d){7(v.1A(b))b=b.1k(a,i);H b&&b.1p==4l&&c=="24"&&!6h.W(d)?b+"2Z":b},1E:{1c:G(b,c){v.O((c||"").1O(/\\s+/),G(i,a){7(b.12==1&&!v.1E.3L(b.1E,a))b.1E+=(b.1E?" ":"")+a})},1U:G(b,c){7(b.12==1)b.1E=c!=11?v.3F(b.1E.1O(/\\s+/),G(a){H!v.1E.3L(c,a)}).6k(" "):""},3L:G(a,b){H v.2E(b,(a.1E||a).6l().1O(/\\s+/))>-1}},6m:G(a,b,c){I d={};P(I e 1j b){d[e]=a.T[e];a.T[e]=b[e]}c.1k(a);P(I e 1j b)a.T[e]=d[e]},1f:G(b,c,d){7(c=="2c"||c=="1T"){I e,3M={30:"5g",5h:"1F",18:"3N"},31=c=="2c"?["5i","6n"]:["5j","6o"];G 5k(){e=c=="2c"?b.7Y:b.7Z;I a=0,2v=0;v.O(31,G(){a+=2P(v.24(b,"5l"+6,L))||0;2v+=2P(v.24(b,"2v"+6+"3O",L))||0});e-=25.80(a+2v)}7(v(b).3G(":4q"))5k();M v.6m(b,3M,5k);H 25.2e(0,e)}H v.24(b,c,d)},24:G(c,d,e){I f,T=c.T;G 3P(a){7(!v.14.2g)H Q;I b=3K.5m(a,U);H!b||b.5n("3P")==""}7(d=="1w"&&v.14.1e){f=v.1I(T,"1w");H f==""?"1":f}7(v.14.2H&&d=="18"){I g=T.5o;T.5o="0 81 82";T.5o=g}7(d.1G(/4r/i))d=A;7(!e&&T&&T[d])f=T[d];M 7(3K.5m){7(d.1G(/4r/i))d="4r";d=d.1o(/([A-Z])/g,"-$1").3p();I h=3K.5m(c,U);7(h&&!3P(c))f=h.5n(d);M{I j=[],2I=[],a=c,i=0;P(;a&&3P(a);a=a.1b)2I.6p(a);P(;i<2I.J;i++)7(3P(2I[i])){j[i]=2I[i].T.18;2I[i].T.18="3N"}f=d=="18"&&j[2I.J-1]!=U?"2J":(h&&h.5n(d))||"";P(i=0;i<j.J;i++)7(j[i]!=U)2I[i].T.18=j[i]}7(d=="1w"&&f=="")f="1"}M 7(c.4s){I k=d.1o(/\\-(\\w)/g,G(a,b){H b.2u()});f=c.4s[d]||c.4s[k];7(!/^\\d+(2Z)?$/i.W(f)&&/^\\d/.W(f)){I l=T.1x,6q=c.5p.1x;c.5p.1x=c.4s.1x;T.1x=f||0;f=T.83+"2Z";T.1x=l;c.5p.1x=6q}}H f},4g:G(h,k){I l=[];k=k||R;7(1i k.3j==\'11\')k=k.2q||k[0]&&k[0].2q||R;v.O(h,G(i,d){7(!d)H;7(d.1p==4l)d+=\'\';7(1i d=="1S"){d=d.1o(/(<(\\w+)[^>]*?)\\/>/g,G(a,b,c){H c.1G(/^(84|3Q|6r|85|4t|6s|86|3q|87|88|89)$/i)?a:b+"></"+c+">"});I e=v.3o(d).3p(),1u=k.3j("1u");I f=!e.1h("<8a")&&[1,"<2r 6t=\'6t\'>","</2r>"]||!e.1h("<8b")&&[1,"<6u>","</6u>"]||e.1G(/^<(8c|1W|8d|8e|8f)/)&&[1,"<1V>","</1V>"]||!e.1h("<4n")&&[2,"<1V><1W>","</1W></1V>"]||(!e.1h("<8g")||!e.1h("<8h"))&&[3,"<1V><1W><4n>","</4n></1W></1V>"]||!e.1h("<6r")&&[2,"<1V><1W></1W><6v>","</6v></1V>"]||v.14.1e&&[1,"1u<1u>","</1u>"]||[0,"",""];1u.4k=f[1]+d+f[2];1B(f[0]--)1u=1u.5q;7(v.14.1e){I g=!e.1h("<1V")&&e.1h("<1W")<0?1u.1t&&1u.1t.3h:f[1]=="<1V>"&&e.1h("<1W")<0?1u.3h:[];P(I j=g.J-1;j>=0;--j)7(v.Y(g[j],"1W")&&!g[j].3h.J)g[j].1b.2X(g[j]);7(/^\\s/.W(d))1u.2Q(k.51(d.1G(/^\\s*/)[0]),1u.1t)}d=v.2b(1u.3h)}7(d.J===0&&(!v.Y(d,"3R")&&!v.Y(d,"2r")))H;7(d[0]==11||v.Y(d,"3R")||d.15)l.1n(d);M l=v.2R(l,d)});H l},1I:G(c,d,e){7(!c||c.12==3||c.12==8)H 11;I f=!v.4j(c),3S=e!==11,1e=v.14.1e;d=f&&v.3M[d]||d;7(c.2f){I g=/5r|3I|T/.W(d);7(d=="2T"&&v.14.2g)c.1b.58;7(d 1j c&&f&&!g){7(3S){7(d=="N"&&v.Y(c,"4t")&&c.1b)6w"N 8i 8j\'t 8k 8l";c[d]=e}7(v.Y(c,"3R")&&c.6x(d))H c.6x(d).65;H c[d]}7(1e&&f&&d=="T")H v.1I(c.T,"8m",e);7(3S)c.8n(d,""+e);I h=1e&&f&&g?c.4u(d,2):c.4u(d);H h===U?11:h}7(1e&&d=="1w"){7(3S){c.6i=1;c.1C=(c.1C||"").1o(/6y\\([^)]*\\)/,"")+(3r(e)+\'\'=="8o"?"":"6y(1w="+e*6z+")")}H c.1C&&c.1C.1h("1w=")>=0?(2P(c.1C.1G(/1w=([^)]*)/)[1])/6z)+\'\':""}d=d.1o(/-([a-z])/8p,G(a,b){H b.2u()});7(3S)c[d]=e;H c[d]},3o:G(a){H(a||"").1o(/^\\s+|\\s+$/g,"")},2b:G(a){I b=[];7(a!=U){I i=a.J;7(i==U||a.1O||a.4v||a.1k)b[0]=a;M 1B(i)b[--i]=a[i]}H b},2E:G(a,b){P(I i=0,J=b.J;i<J;i++)7(b[i]===a)H i;H-1},2R:G(a,b){I i=0,S,32=a.J;7(v.14.1e){1B(S=b[i++])7(S.12!=8)a[32++]=S}M 1B(S=b[i++])a[32++]=S;H a},4i:G(a){I b=[],2w={};1Z{P(I i=0,J=a.J;i<J;i++){I c=v.K(a[i]);7(!2w[c]){2w[c]=L;b.1n(a[i])}}}21(e){b=a}H b},3F:G(a,b,c){I d=[];P(I i=0,J=a.J;i<J;i++)7(!c!=!b(a[i],i))d.1n(a[i]);H d},2d:G(a,b){I c=[];P(I i=0,J=a.J;i<J;i++){I d=b(a[i],i);7(d!=U)c[c.J]=d}H c.6A.1s([],c)}});I y=8q.8r.3p();v.14={5s:(y.1G(/.+(?:8s|8t|8u|8v)[\\/: ]([\\d.]+)/)||[])[1],2g:/6B/.W(y),2H:/2H/.W(y),1e:/1e/.W(y)&&!/2H/.W(y),3T:/3T/.W(y)&&!/(8w|6B)/.W(y)};I A=v.14.1e?"6C":"6D";v.1m({6E:!v.14.1e||R.6F=="6G",3M:{"P":"8x","8y":"1E","4r":A,6D:A,6C:A,8z:"8A",8B:"8C",8D:"8E"}});v.O({6H:G(a){H a.1b},8F:G(a){H v.4w(a,"1b")},8G:G(a){H v.33(a,2,"2F")},8H:G(a){H v.33(a,2,"4x")},8I:G(a){H v.4w(a,"2F")},8J:G(a){H v.4w(a,"4x")},8K:G(a){H v.5t(a.1b.1t,a)},8L:G(a){H v.5t(a.1t)},66:G(a){H v.Y(a,"8M")?a.8N||a.8O.R:v.2b(a.3h)}},G(c,d){v.16[c]=G(a){I b=v.2d(6,d);7(a&&1i a=="1S")b=v.3l(a,b);H 6.2D(v.4i(b))}});v.O({6I:"3g",8P:"67",2Q:"68",8Q:"54",8R:"6b"},G(b,c){v.16[b]=G(){I a=17;H 6.O(G(){P(I i=0,J=a.J;i<J;i++)v(a[i])[c](6)})}});v.O({8S:G(a){v.1I(6,a,"");7(6.12==1)6.5f(a)},8T:G(a){v.1E.1c(6,a)},8U:G(a){v.1E.1U(6,a)},8V:G(a){v.1E[v.1E.3L(6,a)?"1U":"1c"](6,a)},1U:G(a){7(!a||v.1C(a,[6]).r.J){v("*",6).1c(6).O(G(){v.V.1U(6);v.2V(6)});7(6.1b)6.1b.2X(6)}},4h:G(){v(">*",6).1U();1B(6.1t)6.2X(6.1t)}},G(a,b){v.16[a]=G(){H 6.O(b,17)}});v.O(["6J","3O"],G(i,b){I c=b.3p();v.16[c]=G(a){H 6[0]==19?v.14.2H&&R.1d["5u"+b]||v.14.2g&&19["5v"+b]||R.6F=="6G"&&R.1D["5u"+b]||R.1d["5u"+b]:6[0]==R?25.2e(25.2e(R.1d["4y"+b],R.1D["4y"+b]),25.2e(R.1d["2h"+b],R.1D["2h"+b])):a==11?(6.J?v.1f(6[0],c):U):6.1f(c,a.1p==50?a:a+"2Z")}});G 26(a,b){H a[0]&&3r(v.24(a[0],b,L),10)||0}I B=v.14.2g&&3r(v.14.5s)<8W?"(?:[\\\\w*3e-]|\\\\\\\\.)":"(?:[\\\\w\\8X-\\8Y*3e-]|\\\\\\\\.)",6K=2l 4z("^>\\\\s*("+B+"+)"),6L=2l 4z("^("+B+"+)(#)("+B+"+)"),6M=2l 4z("^([#.]?)("+B+"*)");v.1m({6N:{"":G(a,i,m){H m[2]=="*"||v.Y(a,m[2])},"#":G(a,i,m){H a.4u("2m")==m[2]},":":{8Z:G(a,i,m){H i<m[3]-0},90:G(a,i,m){H i>m[3]-0},33:G(a,i,m){H m[3]-0==i},6c:G(a,i,m){H m[3]-0==i},3s:G(a,i){H i==0},3U:G(a,i,m,r){H i==r.J-1},6O:G(a,i){H i%2==0},6P:G(a,i){H i%2},"3s-4A":G(a){H a.1b.3H("*")[0]==a},"3U-4A":G(a){H v.33(a.1b.5q,1,"4x")==a},"91-4A":G(a){H!v.33(a.1b.5q,2,"4x")},6H:G(a){H a.1t},4h:G(a){H!a.1t},92:G(a,i,m){H(a.6e||a.93||v(a).1q()||"").1h(m[3])>=0},4q:G(a){H"1F"!=a.N&&v.1f(a,"18")!="2J"&&v.1f(a,"5h")!="1F"},1F:G(a){H"1F"==a.N||v.1f(a,"18")=="2J"||v.1f(a,"5h")=="1F"},94:G(a){H!a.3V},3V:G(a){H a.3V},4m:G(a){H a.4m},2T:G(a){H a.2T||v.1I(a,"2T")},1q:G(a){H"1q"==a.N},5a:G(a){H"5a"==a.N},5b:G(a){H"5b"==a.N},5w:G(a){H"5w"==a.N},3W:G(a){H"3W"==a.N},5x:G(a){H"5x"==a.N},6Q:G(a){H"6Q"==a.N},6R:G(a){H"6R"==a.N},2x:G(a){H"2x"==a.N||v.Y(a,"2x")},4t:G(a){H/4t|2r|6S|2x/i.W(a.Y)},3L:G(a,i,m){H v.2o(m[3],a).J},95:G(a){H/h\\d/i.W(a.Y)},96:G(a){H v.3F(v.3X,G(b){H a==b.S}).J}}},6T:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2l 4z("^([:.#]*)("+B+"+)")],3l:G(a,b,c){I d,1y=[];1B(a&&a!=d){d=a;I f=v.1C(a,b,c);a=f.t.1o(/^\\s*,\\s*/,"");1y=c?b=f.r:v.2R(1y,f.r)}H 1y},2o:G(t,a){7(1i t!="1S")H[t];7(a&&a.12!=1&&a.12!=9)H[];a=a||R;I b=[a],2w=[],3U,Y;1B(t&&3U!=t){I r=[];3U=t;t=v.3o(t);I d=Q,3t=6K,m=3t.2C(t);7(m){Y=m[1].2u();P(I i=0;b[i];i++)P(I c=b[i].1t;c;c=c.2F)7(c.12==1&&(Y=="*"||c.Y.2u()==Y))r.1n(c);b=r;t=t.1o(3t,"");7(t.1h(" ")==0)6f;d=L}M{3t=/^([>+~])\\s*(\\w*)/i;7((m=3t.2C(t))!=U){r=[];I e={};Y=m[2].2u();m=m[1];P(I j=0,3u=b.J;j<3u;j++){I n=m=="~"||m=="+"?b[j].2F:b[j].1t;P(;n;n=n.2F)7(n.12==1){I f=v.K(n);7(m=="~"&&e[f])1Y;7(!Y||n.Y.2u()==Y){7(m=="~")e[f]=L;r.1n(n)}7(m=="+")1Y}}b=r;t=v.3o(t.1o(3t,""));d=L}}7(t&&!d){7(!t.1h(",")){7(a==b[0])b.4B();2w=v.2R(2w,b);r=b=[a];t=" "+t.6U(1,t.J)}M{I g=6L;I m=g.2C(t);7(m){m=[0,m[2],m[3],m[1]]}M{g=6M;m=g.2C(t)}m[2]=m[2].1o(/\\\\/g,"");I h=b[b.J-1];7(m[1]=="#"&&h&&h.4X&&!v.4j(h)){I k=h.4X(m[2]);7((v.14.1e||v.14.2H)&&k&&1i k.2m=="1S"&&k.2m!=m[2])k=v(\'[@2m="\'+m[2]+\'"]\',h)[0];b=r=k&&(!m[3]||v.Y(k,m[3]))?[k]:[]}M{P(I i=0;b[i];i++){I l=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];7(l=="*"&&b[i].Y.3p()=="3C")l="3q";r=v.2R(r,b[i].3H(l))}7(m[1]==".")r=v.5y(r,m[2]);7(m[1]=="#"){I o=[];P(I i=0;r[i];i++)7(r[i].4u("2m")==m[2]){o=[r[i]];1Y}r=o}b=r}t=t.1o(g,"")}}7(t){I p=v.1C(t,r);b=r=p.r;t=v.3o(p.t)}}7(t)b=[];7(b&&a==b[0])b.4B();2w=v.2R(2w,b);H 2w},5y:G(r,m,a){m=" "+m+" ";I b=[];P(I i=0;r[i];i++){I c=(" "+r[i].1E+" ").1h(m)>=0;7(!a&&c||a&&!c)b.1n(r[i])}H b},1C:G(t,r,b){I d;1B(t&&t!=d){d=t;I p=v.6T,m;P(I i=0;p[i];i++){m=p[i].2C(t);7(m){t=t.97(m[0].J);m[2]=m[2].1o(/\\\\/g,"");1Y}}7(!m)1Y;7(m[1]==":"&&m[2]=="57")r=4W.W(m[3])?v.1C(m[3],r,L).r:v(r).57(m[3]);M 7(m[1]==".")r=v.5y(r,m[2],b);M 7(m[1]=="["){I e=[],N=m[3];P(I i=0,3u=r.J;i<3u;i++){I a=r[i],z=a[v.3M[m[2]]||m[2]];7(z==U||/5r|3I|2T/.W(m[2]))z=v.1I(a,m[2])||\'\';7((N==""&&!!z||N=="="&&z==m[5]||N=="!="&&z!=m[5]||N=="^="&&z&&!z.1h(m[5])||N=="$="&&z.6U(z.J-m[5].J)==m[5]||(N=="*="||N=="~=")&&z.1h(m[5])>=0)^b)e.1n(a)}r=e}M 7(m[1]==":"&&m[2]=="33-4A"){I f={},e=[],W=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2C(m[3]=="6O"&&"2n"||m[3]=="6P"&&"2n+1"||!/\\D/.W(m[3])&&"98+"+m[3]||m[3]),3s=(W[1]+(W[2]||1))-0,d=W[3]-0;P(I i=0,3u=r.J;i<3u;i++){I g=r[i],1b=g.1b,2m=v.K(1b);7(!f[2m]){I c=1;P(I n=1b.1t;n;n=n.2F)7(n.12==1)n.4C=c++;f[2m]=L}I h=Q;7(3s==0){7(g.4C==d)h=L}M 7((g.4C-d)%3s==0&&(g.4C-d)/3s>=0)h=L;7(h^b)e.1n(g)}r=e}M{I j=v.6N[m[1]];7(1i j=="3C")j=j[m[2]];7(1i j=="1S")j=6V("Q||G(a,i){H "+j+";}");r=v.3F(r,G(a,i){H j(a,i,m,r)},b)}}H{r:r,t:t}},4w:G(a,b){I c=[],1y=a[b];1B(1y&&1y!=R){7(1y.12==1)c.1n(1y);1y=1y[b]}H c},33:G(a,b,c,d){b=b||1;I e=0;P(;a;a=a[c])7(a.12==1&&++e==b)1Y;H a},5t:G(n,a){I r=[];P(;n;n=n.2F){7(n.12==1&&n!=a)r.1n(n)}H r}});v.V={1c:G(e,f,g,h){7(e.12==3||e.12==8)H;7(v.14.1e&&e.4v)e=19;7(!g.27)g.27=6.27++;7(h!=11){I i=g;g=6.3Y(i,G(){H i.1s(6,17)});g.K=h}I j=v.K(e,"3k")||v.K(e,"3k",{}),1H=v.K(e,"1H")||v.K(e,"1H",G(){7(1i v!="11"&&!v.V.5z)H v.V.1H.1s(17.3Z.S,17)});1H.S=e;v.O(f.1O(/\\s+/),G(a,b){I c=b.1O(".");b=c[0];g.N=c[1];I d=j[b];7(!d){d=j[b]={};7(!v.V.2y[b]||v.V.2y[b].4D.1k(e)===Q){7(e.40)e.40(b,1H,Q);M 7(e.6W)e.6W("4E"+b,1H)}}d[g.27]=g;v.V.28[b]=L});e=U},27:1,28:{},1U:G(d,e,f){7(d.12==3||d.12==8)H;I g=v.K(d,"3k"),1K,4Z;7(g){7(e==11||(1i e=="1S"&&e.99(0)=="."))P(I h 1j g)6.1U(d,h+(e||""));M{7(e.N){f=e.2z;e=e.N}v.O(e.1O(/\\s+/),G(a,b){I c=b.1O(".");b=c[0];7(g[b]){7(f)2Y g[b][f.27];M P(f 1j g[b])7(!c[1]||g[b][f].N==c[1])2Y g[b][f];P(1K 1j g[b])1Y;7(!1K){7(!v.V.2y[b]||v.V.2y[b].4F.1k(d)===Q){7(d.6X)d.6X(b,v.K(d,"1H"),Q);M 7(d.6Y)d.6Y("4E"+b,v.K(d,"1H"))}1K=U;2Y g[b]}}})}P(1K 1j g)1Y;7(!1K){I i=v.K(d,"1H");7(i)i.S=U;v.2V(d,"3k");v.2V(d,"1H")}}},1P:G(a,b,c,d,f){b=v.2b(b);7(a.1h("!")>=0){a=a.3m(0,-1);I g=L}7(!c){7(6.28[a])v("*").1c([19,R]).1P(a,b)}M{7(c.12==3||c.12==8)H 11;I h,1K,16=v.1A(c[a]||U),V=!b[0]||!b[0].34;7(V){b.6p({N:a,2K:c,34:G(){},41:G(){},4G:1v()});b[0][x]=L}b[0].N=a;7(g)b[0].6Z=L;I i=v.K(c,"1H");7(i)h=i.1s(c,b);7((!16||(v.Y(c,\'a\')&&a=="4H"))&&c["4E"+a]&&c["4E"+a].1s(c,b)===Q)h=Q;7(V)b.4B();7(f&&v.1A(f)){1K=f.1s(c,h==U?b:b.6A(h));7(1K!==11)h=1K}7(16&&d!==Q&&h!==Q&&!(v.Y(c,\'a\')&&a=="4H")){6.5z=L;1Z{c[a]()}21(e){}}6.5z=Q}H h},1H:G(a){I b,1K,35,5A,4I;a=17[0]=v.V.70(a||19.V);35=a.N.1O(".");a.N=35[0];35=35[1];5A=!35&&!a.6Z;4I=(v.K(6,"3k")||{})[a.N];P(I j 1j 4I){I c=4I[j];7(5A||c.N==35){a.2z=c;a.K=c.K;1K=c.1s(6,17);7(b!==Q)b=1K;7(1K===Q){a.34();a.41()}}}H b},70:G(a){7(a[x]==L)H a;I b=a;a={9a:b};I c="9b 9c 9d 9e 2x 9f 42 5B 71 5C 9g K 9h 9i 4J 2z 5D 5E 9j 9k 5F 72 9l 9m 4K 9n 9o 9p 73 2K 4G 74 N 9q 9r 31".1O(" ");P(I i=c.J;i;i--)a[c[i]]=b[c[i]];a[x]=L;a.34=G(){7(b.34)b.34();b.9s=Q};a.41=G(){7(b.41)b.41();b.9t=L};a.4G=a.4G||1v();7(!a.2K)a.2K=a.73||R;7(a.2K.12==3)a.2K=a.2K.1b;7(!a.4K&&a.4J)a.4K=a.4J==a.2K?a.74:a.4J;7(a.5F==U&&a.5B!=U){I d=R.1D,1d=R.1d;a.5F=a.5B+(d&&d.2i||1d&&1d.2i||0)-(d.75||0);a.72=a.71+(d&&d.2j||1d&&1d.2j||0)-(d.76||0)}7(!a.31&&((a.42||a.42===0)?a.42:a.5D))a.31=a.42||a.5D;7(!a.5E&&a.5C)a.5E=a.5C;7(!a.31&&a.2x)a.31=(a.2x&1?1:(a.2x&2?3:(a.2x&4?2:0)));H a},3Y:G(a,b){b.27=a.27=a.27||b.27||6.27++;H b},2y:{23:{4D:G(){5G();H},4F:G(){H}},43:{4D:G(){7(v.14.1e)H Q;v(6).2L("5H",v.V.2y.43.2z);H L},4F:G(){7(v.14.1e)H Q;v(6).44("5H",v.V.2y.43.2z);H L},2z:G(a){7(D(a,6))H L;a.N="43";H v.V.1H.1s(6,17)}},45:{4D:G(){7(v.14.1e)H Q;v(6).2L("5I",v.V.2y.45.2z);H L},4F:G(){7(v.14.1e)H Q;v(6).44("5I",v.V.2y.45.2z);H L},2z:G(a){7(D(a,6))H L;a.N="45";H v.V.1H.1s(6,17)}}}};v.16.1m({2L:G(a,b,c){H a=="5J"?6.2S(a,b,c):6.O(G(){v.V.1c(6,a,c||b,c&&b)})},2S:G(b,c,d){I e=v.V.3Y(d||c,G(a){v(6).44(a,e);H(d||c).1s(6,17)});H 6.O(G(){v.V.1c(6,b,e,d&&c)})},44:G(a,b){H 6.O(G(){v.V.1U(6,a,b)})},1P:G(a,b,c){H 6.O(G(){v.V.1P(a,b,6,L,c)})},5c:G(a,b,c){H 6[0]&&v.V.1P(a,b,6[0],Q,c)},2A:G(b){I c=17,i=1;1B(i<c.J)v.V.3Y(b,c[i++]);H 6.4H(v.V.3Y(b,G(a){6.5K=(6.5K||0)%i;a.34();H c[6.5K++].1s(6,17)||Q}))},9u:G(a,b){H 6.2L(\'43\',a).2L(\'45\',b)},23:G(a){5G();7(v.36)a.1k(R,v);M v.46.1n(G(){H a.1k(6,v)});H 6}});v.1m({36:Q,46:[],23:G(){7(!v.36){v.36=L;7(v.46){v.O(v.46,G(){6.1k(R)});v.46=U}v(R).5c("23")}}});I C=Q;G 5G(){7(C)H;C=L;7(R.40&&!v.14.2H)R.40("77",v.23,Q);7(v.14.1e&&19==1Q)(G(){7(v.36)H;1Z{R.1D.9v("1x")}21(3v){47(17.3Z,0);H}v.23()})();7(v.14.2H)R.40("77",G(){7(v.36)H;P(I i=0;i<R.5L.J;i++)7(R.5L[i].3V){47(17.3Z,0);H}v.23()},Q);7(v.14.2g){I a;(G(){7(v.36)H;7(R.3w!="78"&&R.3w!="1L"){47(17.3Z,0);H}7(a===11)a=v("T, 6s[9w=9x]").J;7(R.5L.J!=a){47(17.3Z,0);H}v.23()})()}v.V.1c(19,"3B",v.23)}v.O(("9y,9z,3B,9A,4y,5J,4H,9B,"+"9C,9D,9E,5H,5I,9F,2r,"+"5x,9G,9H,9I,3v").1O(","),G(i,b){v.16[b]=G(a){H a?6.2L(b,a):6.1P(b)}});I D=G(a,b){I c=a.4K;1B(c&&c!=b)1Z{c=c.1b}21(3v){c=b}H c==b};v(19).2L("5J",G(){v("*").1c(R).44()});v.16.1m({79:v.16.3B,3B:G(c,d,e){7(1i c!=\'1S\')H 6.79(c);I f=c.1h(" ");7(f>=0){I g=c.3m(f,c.J);c=c.3m(0,f)}e=e||G(){};I h="37";7(d)7(v.1A(d)){e=d;d=U}M{d=v.3q(d);h="7a"}I i=6;v.3J({1a:c,N:h,1J:"2G",K:d,1L:G(a,b){7(b=="22"||b=="7b")i.2G(g?v("<1u/>").3g(a.4L.1o(/<1l(.|\\s)*?\\/1l>/g,"")).2o(g):a.4L);i.O(e,[a.4L,b,a])}});H 6},9J:G(){H v.3q(6.7c())},7c:G(){H 6.2d(G(){H v.Y(6,"3R")?v.2b(6.9K):6}).1C(G(){H 6.2U&&!6.3V&&(6.4m||/2r|6S/i.W(6.Y)||/1q|1F|3W/i.W(6.N))}).2d(G(i,b){I c=v(6).6a();H c==U?U:c.1p==2p?v.2d(c,G(a,i){H{2U:b.2U,2s:a}}):{2U:b.2U,2s:c}}).3f()}});v.O("7d,7e,7f,7g,7h,7i".1O(","),G(i,o){v.16[o]=G(f){H 6.2L(o,f)}});I E=1v();v.1m({3f:G(a,b,c,d){7(v.1A(b)){c=b;b=U}H v.3J({N:"37",1a:a,K:b,22:c,1J:d})},9L:G(a,b){H v.3f(a,U,b,"1l")},9M:G(a,b,c){H v.3f(a,b,c,"3x")},9N:G(a,b,c,d){7(v.1A(b)){c=b;b={}}H v.3J({N:"7a",1a:a,K:b,22:c,1J:d})},9O:G(a){v.1m(v.5M,a)},5M:{1a:5N.5r,28:L,N:"37",38:0,7j:"4M/x-9P-3R-9Q",7k:L,2W:L,K:U,5O:U,3W:U,4N:{2M:"4M/2M, 1q/2M",2G:"1q/2G",1l:"1q/4p, 4M/4p",3x:"4M/3x, 1q/4p",1q:"1q/9R",4O:"*/*"}},4P:{},3J:G(s){s=v.1m(L,s,v.1m(L,{},v.5M,s));I c,39=/=\\?(&|$)/g,1z,K,N=s.N.2u();7(s.K&&s.7k&&1i s.K!="1S")s.K=v.3q(s.K);7(s.1J=="4Q"){7(N=="37"){7(!s.1a.1G(39))s.1a+=(s.1a.1G(/\\?/)?"&":"?")+(s.4Q||"7l")+"=?"}M 7(!s.K||!s.K.1G(39))s.K=(s.K?s.K+"&":"")+(s.4Q||"7l")+"=?";s.1J="3x"}7(s.1J=="3x"&&(s.K&&s.K.1G(39)||s.1a.1G(39))){c="4Q"+E++;7(s.K)s.K=(s.K+"").1o(39,"="+c+"$1");s.1a=s.1a.1o(39,"="+c+"$1");s.1J="1l";19[c]=G(a){K=a;22();1L();19[c]=11;1Z{2Y 19[c]}21(e){}7(h)h.2X(i)}}7(s.1J=="1l"&&s.1X==U)s.1X=Q;7(s.1X===Q&&N=="37"){I d=1v();I f=s.1a.1o(/(\\?|&)3e=.*?(&|$)/,"$9S="+d+"$2");s.1a=f+((f==s.1a)?(s.1a.1G(/\\?/)?"&":"?")+"3e="+d:"")}7(s.K&&N=="37"){s.1a+=(s.1a.1G(/\\?/)?"&":"?")+s.K;s.K=U}7(s.28&&!v.4R++)v.V.1P("7d");I g=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;7(s.1J=="1l"&&N=="37"&&g.W(s.1a)&&g.2C(s.1a)[1]!=5N.9T){I h=R.3H("6j")[0];I i=R.3j("1l");i.3I=s.1a;7(s.7m)i.9U=s.7m;7(!c){I j=Q;i.9V=i.9W=G(){7(!j&&(!6.3w||6.3w=="78"||6.3w=="1L")){j=L;22();1L();h.2X(i)}}}h.3E(i);H 11}I k=Q;I l=19.7n?2l 7n("9X.9Y"):2l 7o();7(s.5O)l.7p(N,s.1a,s.2W,s.5O,s.3W);M l.7p(N,s.1a,s.2W);1Z{7(s.K)l.4S("9Z-a0",s.7j);7(s.5P)l.4S("a1-5Q-a2",v.4P[s.1a]||"a3, a4 a5 a6 5R:5R:5R a7");l.4S("X-a8-a9","7o");l.4S("aa",s.1J&&s.4N[s.1J]?s.4N[s.1J]+", */*":s.4N.4O)}21(e){}7(s.7q&&s.7q(l,s)===Q){s.28&&v.4R--;l.7r();H Q}7(s.28)v.V.1P("7i",[l,s]);I m=G(a){7(!k&&l&&(l.3w==4||a=="38")){k=L;7(n){7s(n);n=U}1z=a=="38"&&"38"||!v.7t(l)&&"3v"||s.5P&&v.7u(l,s.1a)&&"7b"||"22";7(1z=="22"){1Z{K=v.7v(l,s.1J,s.ab)}21(e){1z="5S"}}7(1z=="22"){I b;1Z{b=l.5T("7w-5Q")}21(e){}7(s.5P&&b)v.4P[s.1a]=b;7(!c)22()}M v.5U(s,l,1z);1L();7(s.2W)l=U}};7(s.2W){I n=4v(m,13);7(s.38>0)47(G(){7(l){l.7r();7(!k)m("38")}},s.38)}1Z{l.ac(s.K)}21(e){v.5U(s,l,U,e)}7(!s.2W)m();G 22(){7(s.22)s.22(K,1z);7(s.28)v.V.1P("7h",[l,s])}G 1L(){7(s.1L)s.1L(l,1z);7(s.28)v.V.1P("7f",[l,s]);7(s.28&&!--v.4R)v.V.1P("7e")}H l},5U:G(s,a,b,e){7(s.3v)s.3v(a,b,e);7(s.28)v.V.1P("7g",[a,s,e])},4R:0,7t:G(a){1Z{H!a.1z&&5N.ad=="5w:"||(a.1z>=7x&&a.1z<ae)||a.1z==7y||a.1z==af||v.14.2g&&a.1z==11}21(e){}H Q},7u:G(a,b){1Z{I c=a.5T("7w-5Q");H a.1z==7y||c==v.4P[b]||v.14.2g&&a.1z==11}21(e){}H Q},7v:G(a,b,c){I d=a.5T("ag-N"),2M=b=="2M"||!b&&d&&d.1h("2M")>=0,K=2M?a.ah:a.4L;7(2M&&K.1D.2f=="5S")6w"5S";7(c)K=c(K,b);7(b=="1l")v.5d(K);7(b=="3x")K=6V("("+K+")");H K},3q:G(a){I s=[];7(a.1p==2p||a.2O)v.O(a,G(){s.1n(3y(6.2U)+"="+3y(6.2s))});M P(I j 1j a)7(a[j]&&a[j].1p==2p)v.O(a[j],G(){s.1n(3y(j)+"="+3y(6))});M s.1n(3y(j)+"="+3y(v.1A(a[j])?a[j]():a[j]));H s.6k("&").1o(/%20/g,"+")}});v.16.1m({1M:G(b,c){H b?6.2k({1T:"1M",2c:"1M",1w:"1M"},b,c):6.1C(":1F").O(G(){6.T.18=6.5V||"";7(v.1f(6,"18")=="2J"){I a=v("<"+6.2f+" />").6I("1d");6.T.18=a.1f("18");7(6.T.18=="2J")6.T.18="3N";a.1U()}}).3i()},1N:G(a,b){H a?6.2k({1T:"1N",2c:"1N",1w:"1N"},a,b):6.1C(":4q").O(G(){6.5V=6.5V||v.1f(6,"18");6.T.18="2J"}).3i()},7z:v.16.2A,2A:G(a,b){H v.1A(a)&&v.1A(b)?6.7z.1s(6,17):a?6.2k({1T:"2A",2c:"2A",1w:"2A"},a,b):6.O(G(){v(6)[v(6).3G(":1F")?"1M":"1N"]()})},ai:G(a,b){H 6.2k({1T:"1M"},a,b)},aj:G(a,b){H 6.2k({1T:"1N"},a,b)},ak:G(a,b){H 6.2k({1T:"2A"},a,b)},al:G(a,b){H 6.2k({1w:"1M"},a,b)},am:G(a,b){H 6.2k({1w:"1N"},a,b)},an:G(a,b,c){H 6.2k({1w:b},a,c)},2k:G(g,h,i,j){I k=v.7A(h,i,j);H 6[k.3a===Q?"O":"3a"](G(){7(6.12!=1)H Q;I f=v.1m({},k),p,1F=v(6).3G(":1F"),48=6;P(p 1j g){7(g[p]=="1N"&&1F||g[p]=="1M"&&!1F)H f.1L.1k(6);7(p=="1T"||p=="2c"){f.18=v.1f(6,"18");f.3b=6.T.3b}}7(f.3b!=U)6.T.3b="1F";f.49=v.1m({},g);v.O(g,G(a,b){I e=2l v.29(48,f,a);7(/2A|1M|1N/.W(b))e[b=="2A"?1F?"1M":"1N":b](g);M{I c=b.6l().1G(/^([+-]=)?([\\d+-.]+)(.*)$/),2a=e.1y(L)||0;7(c){I d=2P(c[2]),2N=c[3]||"2Z";7(2N!="2Z"){48.T[a]=(d||1)+2N;2a=((d||1)/e.1y(L))*2a;48.T[a]=2a+2N}7(c[1])d=((c[1]=="-="?-1:1)*d)+2a;e.4a(2a,d,2N)}M e.4a(2a,b,"")}});H L})},3a:G(a,b){7(v.1A(a)||(a&&a.1p==2p)){b=a;a="29"}7(!a||(1i a=="1S"&&!b))H F(6[0],a);H 6.O(G(){7(b.1p==2p)F(6,a,b);M{F(6,a).1n(b);7(F(6,a).J==1)b.1k(6)}})},ao:G(a,b){I c=v.3X;7(a)6.3a([]);6.O(G(){P(I i=c.J-1;i>=0;i--)7(c[i].S==6){7(b)c[i](L);c.7B(i,1)}});7(!b)6.5W();H 6}});I F=G(a,b,c){7(a){b=b||"29";I q=v.K(a,b+"3a");7(!q||c)q=v.K(a,b+"3a",v.2b(c))}H q};v.16.5W=G(a){a=a||"29";H 6.O(G(){I q=F(6,a);q.4B();7(q.J)q[0].1k(6)})};v.1m({7A:G(a,b,c){I d=a&&a.1p==ap?a:{1L:c||!c&&b||v.1A(a)&&a,2B:a,4b:c&&b||b&&b.1p!=aq&&b};d.2B=(d.2B&&d.2B.1p==4l?d.2B:v.29.5X[d.2B])||v.29.5X.7C;d.5Y=d.1L;d.1L=G(){7(d.3a!==Q)v(6).5W();7(v.1A(d.5Y))d.5Y.1k(6)};H d},4b:{7D:G(p,n,a,b){H a+b*p},5Z:G(p,n,a,b){H((-25.ar(p*25.as)/2)+0.5)*b+a}},3X:[],4c:U,29:G(a,b,c){6.15=b;6.S=a;6.1g=c;7(!b.4d)b.4d={}}});v.29.3A={4T:G(){7(6.15.3c)6.15.3c.1k(6.S,6.1v,6);(v.29.3c[6.1g]||v.29.3c.4O)(6);7(6.1g=="1T"||6.1g=="2c")6.S.T.18="3N"},1y:G(a){7(6.S[6.1g]!=U&&6.S.T[6.1g]==U)H 6.S[6.1g];I r=2P(v.1f(6.S,6.1g,a));H r&&r>-at?r:2P(v.24(6.S,6.1g))||0},4a:G(b,c,d){6.60=1v();6.2a=b;6.3i=c;6.2N=d||6.2N||"2Z";6.1v=6.2a;6.32=6.4U=0;6.4T();I e=6;G t(a){H e.3c(a)}t.S=6.S;v.3X.1n(t);7(v.4c==U){v.4c=4v(G(){I a=v.3X;P(I i=0;i<a.J;i++)7(!a[i]())a.7B(i--,1);7(!a.J){7s(v.4c);v.4c=U}},13)}},1M:G(){6.15.4d[6.1g]=v.1I(6.S.T,6.1g);6.15.1M=L;6.4a(0,6.1y());7(6.1g=="2c"||6.1g=="1T")6.S.T[6.1g]="au";v(6.S).1M()},1N:G(){6.15.4d[6.1g]=v.1I(6.S.T,6.1g);6.15.1N=L;6.4a(6.1y(),0)},3c:G(a){I t=1v();7(a||t>6.15.2B+6.60){6.1v=6.3i;6.32=6.4U=1;6.4T();6.15.49[6.1g]=L;I b=L;P(I i 1j 6.15.49)7(6.15.49[i]!==L)b=Q;7(b){7(6.15.18!=U){6.S.T.3b=6.15.3b;6.S.T.18=6.15.18;7(v.1f(6.S,"18")=="2J")6.S.T.18="3N"}7(6.15.1N)6.S.T.18="2J";7(6.15.1N||6.15.1M)P(I p 1j 6.15.49)v.1I(6.S.T,p,6.15.4d[p])}7(b)6.15.1L.1k(6.S);H Q}M{I n=t-6.60;6.4U=n/6.15.2B;6.32=v.4b[6.15.4b||(v.4b.5Z?"5Z":"7D")](6.4U,n,0,1,6.15.2B);6.1v=6.2a+((6.3i-6.2a)*6.32);6.4T()}H L}};v.1m(v.29,{5X:{av:aw,ax:7x,7C:ay},3c:{2i:G(a){a.S.2i=a.1v},2j:G(a){a.S.2j=a.1v},1w:G(a){v.1I(a.S.T,"1w",a.1v)},4O:G(a){a.S.T[a.1g]=a.1v+a.2N}}});v.16.2h=G(){I b=0,1Q=0,S=6[0],3z;7(S)az(v.14){I c=S.1b,4e=S,1r=S.1r,1R=S.2q,61=2g&&3r(5s)<aA&&!/aB/i.W(y),1f=v.24,3d=1f(S,"30")=="3d";7(S.7E){I d=S.7E();1c(d.1x+25.2e(1R.1D.2i,1R.1d.2i),d.1Q+25.2e(1R.1D.2j,1R.1d.2j));1c(-1R.1D.75,-1R.1D.76)}M{1c(S.62,S.63);1B(1r){1c(1r.62,1r.63);7(3T&&!/^t(aC|d|h)$/i.W(1r.2f)||2g&&!61)2v(1r);7(!3d&&1f(1r,"30")=="3d")3d=L;4e=/^1d$/i.W(1r.2f)?4e:1r;1r=1r.1r}1B(c&&c.2f&&!/^1d|2G$/i.W(c.2f)){7(!/^aD|1V.*$/i.W(1f(c,"18")))1c(-c.2i,-c.2j);7(3T&&1f(c,"3b")!="4q")2v(c);c=c.1b}7((61&&(3d||1f(4e,"30")=="5g"))||(3T&&1f(4e,"30")!="5g"))1c(-1R.1d.62,-1R.1d.63);7(3d)1c(25.2e(1R.1D.2i,1R.1d.2i),25.2e(1R.1D.2j,1R.1d.2j))}3z={1Q:1Q,1x:b}}G 2v(a){1c(v.24(a,"7F",L),v.24(a,"7G",L))}G 1c(l,t){b+=3r(l,10)||0;1Q+=3r(t,10)||0}H 3z};v.16.1m({30:G(){I a=0,1Q=0,3z;7(6[0]){I b=6.1r(),2h=6.2h(),4f=/^1d|2G$/i.W(b[0].2f)?{1Q:0,1x:0}:b.2h();2h.1Q-=26(6,\'aE\');2h.1x-=26(6,\'aF\');4f.1Q+=26(b,\'7G\');4f.1x+=26(b,\'7F\');3z={1Q:2h.1Q-4f.1Q,1x:2h.1x-4f.1x}}H 3z},1r:G(){I a=6[0].1r;1B(a&&(!/^1d|2G$/i.W(a.2f)&&v.1f(a,\'30\')==\'aG\'))a=a.1r;H v(a)}});v.O([\'5i\',\'5j\'],G(i,b){I c=\'4y\'+b;v.16[c]=G(a){7(!6[0])H;H a!=11?6.O(G(){6==19||6==R?19.aH(!i?a:v(19).2i(),i?a:v(19).2j()):6[c]=a}):6[0]==19||6[0]==R?48[i?\'aI\':\'aJ\']||v.6E&&R.1D[c]||R.1d[c]:6[0][c]}});v.O(["6J","3O"],G(i,b){I c=i?"5i":"5j",3Q=i?"6n":"6o";v.16["5v"+b]=G(){H 6[b.3p()]()+26(6,"5l"+c)+26(6,"5l"+3Q)};v.16["aK"+b]=G(a){H 6["5v"+b]()+26(6,"2v"+c+"3O")+26(6,"2v"+3Q+"3O")+(a?26(6,"7H"+c)+26(6,"7H"+3Q):0)}})})();',62,667,'||||||this|if|||||||||||||||||||||||||||||||||||function|return|var|length|data|true|else|type|each|for|false|document|elem|style|null|event|test||nodeName|||undefined|nodeType||browser|options|fn|arguments|display|window|url|parentNode|add|body|msie|css|prop|indexOf|typeof|in|call|script|extend|push|replace|constructor|text|offsetParent|apply|firstChild|div|now|opacity|left|cur|status|isFunction|while|filter|documentElement|className|hidden|match|handle|attr|dataType|ret|complete|show|hide|split|trigger|top|doc|string|height|remove|table|tbody|cache|break|try||catch|success|ready|curCSS|Math|num|guid|global|fx|start|makeArray|width|map|max|tagName|safari|offset|scrollLeft|scrollTop|animate|new|id||find|Array|ownerDocument|select|value|copy|toUpperCase|border|done|button|special|handler|toggle|duration|exec|pushStack|inArray|nextSibling|html|opera|stack|none|target|bind|xml|unit|sinaUI|parseFloat|insertBefore|merge|one|selected|name|removeData|async|removeChild|delete|px|position|which|pos|nth|preventDefault|namespace|isReady|GET|timeout|jsre|queue|overflow|step|fixed|_|get|append|childNodes|end|createElement|events|multiFilter|slice|elems|trim|toLowerCase|param|parseInt|first|re|rl|error|readyState|json|encodeURIComponent|results|prototype|load|object|domManip|appendChild|grep|is|getElementsByTagName|src|ajax|defaultView|has|props|block|Width|color|br|form|set|mozilla|last|disabled|password|timers|proxy|callee|addEventListener|stopPropagation|charCode|mouseenter|unbind|mouseleave|readyList|setTimeout|self|curAnim|custom|easing|timerId|orig|offsetChild|parentOffset|clean|empty|unique|isXMLDoc|innerHTML|Number|checked|tr|deep|javascript|visible|float|currentStyle|input|getAttribute|setInterval|dir|previousSibling|scroll|RegExp|child|shift|nodeIndex|setup|on|teardown|timeStamp|click|handlers|fromElement|relatedTarget|responseText|application|accepts|_default|lastModified|jsonp|active|setRequestHeader|update|state|init|isSimple|getElementById|prevObject|index|String|createTextNode|wrapAll|clone|after|container|andSelf|not|selectedIndex|values|radio|checkbox|triggerHandler|globalEval|windowData|removeAttribute|absolute|visibility|Left|Top|getWH|padding|getComputedStyle|getPropertyValue|outline|runtimeStyle|lastChild|href|version|sibling|client|inner|file|submit|classFilter|triggered|all|clientX|ctrlKey|keyCode|metaKey|pageX|bindReady|mouseover|mouseout|unload|lastToggle|styleSheets|ajaxSettings|location|username|ifModified|Modified|00|parsererror|getResponseHeader|handleError|oldblock|dequeue|speeds|old|swing|startTime|safari2|offsetLeft|offsetTop|setArray|nodeValue|contents|prepend|before|cloneNode|val|replaceWith|eq|evalScript|textContent|continue|uuid|exclude|zoom|head|join|toString|swap|Right|Bottom|unshift|rsLeft|col|link|multiple|fieldset|colgroup|throw|getAttributeNode|alpha|100|concat|webkit|styleFloat|cssFloat|boxModel|compatMode|CSS1Compat|parent|appendTo|Height|quickChild|quickID|quickClass|expr|even|odd|image|reset|textarea|parse|substr|eval|attachEvent|removeEventListener|detachEvent|exclusive|fix|clientY|pageY|srcElement|toElement|clientLeft|clientTop|DOMContentLoaded|loaded|_load|POST|notmodified|serializeArray|ajaxStart|ajaxStop|ajaxComplete|ajaxError|ajaxSuccess|ajaxSend|contentType|processData|callback|scriptCharset|ActiveXObject|XMLHttpRequest|open|beforeSend|abort|clearInterval|httpSuccess|httpNotModified|httpData|Last|200|304|_toggle|speed|splice|def|linear|getBoundingClientRect|borderLeftWidth|borderTopWidth|margin|size|wrapInner|wrap|hasClass|attributes|specified|option|getData|setData|reverse|Date|Boolean|font|weight|line|noConflict|offsetWidth|offsetHeight|round|solid|black|pixelLeft|abbr|img|meta|hr|area|embed|opt|leg|thead|tfoot|colg|cap|td|th|property|can|be|changed|cssText|setAttribute|NaN|ig|navigator|userAgent|rv|it|ra|ie|compatible|htmlFor|class|readonly|readOnly|maxlength|maxLength|cellspacing|cellSpacing|parents|next|prev|nextAll|prevAll|siblings|children|iframe|contentDocument|contentWindow|prependTo|insertAfter|replaceAll|removeAttr|addClass|removeClass|toggleClass|417|u0128|uFFFF|lt|gt|only|contains|innerText|enabled|header|animated|substring|0n|charAt|originalEvent|altKey|attrChange|attrName|bubbles|cancelable|currentTarget|detail|eventPhase|newValue|originalTarget|prevValue|relatedNode|screenX|screenY|shiftKey|view|wheelDelta|returnValue|cancelBubble|hover|doScroll|rel|stylesheet|blur|focus|resize|dblclick|mousedown|mouseup|mousemove|change|keydown|keypress|keyup|serialize|elements|getScript|getJSON|post|ajaxSetup|www|urlencoded|plain|1_|host|charset|onload|onreadystatechange|Microsoft|XMLHTTP|Content|Type|If|Since|Thu|01|Jan|1970|GMT|Requested|With|Accept|dataFilter|send|protocol|300|1223|content|responseXML|slideDown|slideUp|slideToggle|fadeIn|fadeOut|fadeTo|stop|Object|Function|cos|PI|10000|1px|slow|600|fast|400|with|522|adobeair|able|inline|marginTop|marginLeft|static|scrollTo|pageYOffset|pageXOffset|outer'.split('|'),0,{}))
;(function($){var _remove=$.fn.remove,isFF2=$.browser.mozilla&&(parseFloat($.browser.version)<1.9);$.ui={version:"1.6rc4",plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var set=instance.plugins[name];if(!set){return}for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args)}}}},css:function(name){if($.ui.cssCache[name]){return $.ui.cssCache[name]}var tmp=$('<div class="ui-gen">').addClass(name).css({position:'absolute',top:'-5000px',left:'-5000px',display:'block'}).appendTo('body');$.ui.cssCache[name]=!!((!(/auto|default/).test(tmp.css('cursor'))||(/^[1-9]/).test(tmp.css('height'))||(/^[1-9]/).test(tmp.css('width'))||!(/none/).test(tmp.css('backgroundImage'))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))));try{$('body').get(0).removeChild(tmp.get(0))}catch(e){}return $.ui.cssCache[name]},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(isFF2){var attr=$.attr,removeAttr=$.fn.removeAttr,ariaNS="http://www.w3.org/2005/07/aaa",ariaState=/^aria-/,ariaRole=/^wairole:/;$.attr=function(elem,name,value){var set=value!==undefined;return(name=='role'?(set?attr.call(this,elem,name,"wairole:"+value):(attr.apply(this,arguments)||"").replace(ariaRole,"")):(ariaState.test(name)?(set?elem.setAttributeNS(ariaNS,name.replace(ariaState,"aaa:"),value):attr.call(this,elem,name.replace(ariaState,"aaa:"))):attr.apply(this,arguments)))};$.fn.removeAttr=function(name){return(ariaState.test(name)?this.each(function(){this.removeAttributeNS(ariaNS,name.replace(ariaState,""))}):removeAttr.call(this,name))}}$.fn.extend({remove:function(){$("*",this).add(this).each(function(){$(this).triggerHandler("remove")});return _remove.apply(this,arguments)}});$.extend($.expr[':'],{data:function(a,i,m){return!!$.data(a,m[3])}});function getter(namespace,plugin,method,args){function getMethods(type){var methods=$[namespace][plugin][type]||[];return(typeof methods=='string'?methods.split(/,?\s+/):methods)}var methods=getMethods('getter');if(args.length==1&&typeof args[0]=='string'){methods=methods.concat(getMethods('getterSetter'))}return($.inArray(method,methods)!=-1)}$.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&options.substring(0,1)=='_'){return this}if(isMethodCall&&getter(namespace,name,options,args)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined)}return this.each(function(){var instance=$.data(this,name);(!instance&&!isMethodCall&&$.data(this,name,new $[namespace][name](this,options)));(instance&&isMethodCall&&$.isFunction(instance[options])&&instance[options].apply(instance,args))})};$[namespace]=$[namespace]||{};$[namespace][name]=function(element,options){var self=this;this.namespace=namespace;this.widgetName=name;this.widgetEventPrefix=$[namespace][name].eventPrefix||name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({},$.widget.defaults,$[namespace][name].defaults,$.metadata&&$.metadata.get(element)[name],options);this.element=$(element).bind('setData.'+name,function(event,key,value){if(event.target==element){return self._setData(key,value)}}).bind('getData.'+name,function(event,key){if(event.target==element){return self._getData(key)}}).bind('remove',function(){return self.destroy()});this._init()};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);$[namespace][name].getterSetter='option'};$.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').removeAttr('aria-disabled')},option:function(key,value){var options=key,self=this;if(typeof key=="string"){if(value===undefined){return this._getData(key)}options={};options[key]=value}$.each(options,function(key,value){self._setData(key,value)})},_getData:function(key){return this.options[key]},_setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled'+' '+this.namespace+'-state-disabled').attr("aria-disabled",value)}},enable:function(){this._setData('disabled',false)},disable:function(){this._setData('disabled',true)},_trigger:function(type,event,data){var eventName=(type==this.widgetEventPrefix?type:this.widgetEventPrefix+type);event=event||$.event.fix({type:eventName,target:this.element[0]});return this.element.triggerHandler(eventName,[event,data],this.options[type])}};$.widget.defaults={disabled:false};$.ui.mouse={_mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(event){return self._mouseDown(event)}).bind('click.'+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false;return false}});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on')}this.started=false},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable))},_mouseDown:function(event){(this._mouseStarted&&this._mouseUp(event));this._mouseDownEvent=event;var self=this,btnIsLeft=(event.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(event.target).parents().add(event.target).filter(this.options.cancel).length:false);if(!btnIsLeft||elIsCancel||!this._mouseCapture(event)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(event)!==false);if(!this._mouseStarted){event.preventDefault();return true}}this._mouseMoveDelegate=function(event){return self._mouseMove(event)};this._mouseUpDelegate=function(event){return self._mouseUp(event)};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(!$.browser.safari)event.preventDefault();return true},_mouseMove:function(event){if($.browser.msie&&!event.button){return this._mouseUp(event)}if(this._mouseStarted){this._mouseDrag(event);return event.preventDefault()}if(this._mouseDistanceMet(event)&&this._mouseDelayMet(event)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,event)!==false);(this._mouseStarted?this._mouseDrag(event):this._mouseUp(event))}return!this._mouseStarted},_mouseUp:function(event){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=true;this._mouseStop(event)}return false},_mouseDistanceMet:function(event){return(Math.max(Math.abs(this._mouseDownEvent.pageX-event.pageX),Math.abs(this._mouseDownEvent.pageY-event.pageY))>=this.options.distance)},_mouseDelayMet:function(event){return this.mouseDelayMet},_mouseStart:function(event){},_mouseDrag:function(event){},_mouseStop:function(event){},_mouseCapture:function(event){return true}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(sinaUI);
(function($) {
$.extend($.ui, { datepicker: { version: "1.6rc4" } });
var PROP_NAME = 'datepicker';
function Datepicker() {
	this.debug = false; // 改为ture开始debugging
	this._curInst = null; // 
	this._keyEvent = false; // 
	this._disabledInputs = []; // 
	this._datepickerShowing = false; // 
	this._inDialog = false; // 
	//以下为各容器的id
	this._mainDivId = 'ui-datepicker-div';
	this._inlineClass = 'ui-datepicker-inline';
	this._appendClass = 'ui-datepicker-append';
	this._triggerClass = 'ui-datepicker-trigger';
	this._dialogClass = 'ui-datepicker-dialog';
	this._disableClass = 'ui-datepicker-disabled';
	this._unselectableClass = 'ui-datepicker-unselectable';
	this._currentClass = 'ui-datepicker-current-day';
	this._dayOverClass = 'ui-datepicker-days-cell-over';
	//以上为各容器的id
	this.regional = [];
	this.regional[''] = { // 默认语言设置
		clearText: '清除', // 显示文字：清除，支持HTML
		closeText: '关闭', // 显示文字：关闭，支持HTML
		prevText: '&lt;上月', // 显示文字：上月，支持HTML
		prevBigText: '&lt;&lt;', // 显示文字：上一年，支持HTML
		nextText: '下月&gt;', // 显示文字：下月，支持HTML
		nextBigText: '&gt;&gt;', // 显示文字：下一年，支持HTML
		currentText: '今天',
		monthNames: ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'], // 月份名，支持HTML
		monthNamesShort: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'], // 月份名，简写，支持HTML
		dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], // 星期名，支持HTML
		dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], // 星期名，简写，支持HTML
		dayNamesMin: ['日','一','二','三','四','五','六'], // 日历首列显示的星期名，最简，支持HTML
		dateFormat: 'mm/dd/yy', // 输出的日期格式
		firstDay: 0, // 每星期的起始日，周日 = 0, 周一 = 1, 以此类推…
		isRTL: false
	};
	this._defaults = { // 日历实例的全局默认设置
		showOn: 'focus', // focus：在出现焦点时触发；button：在点击按钮时触发；both：两种方式触发
		showAnim: 'slideDown', // 弹出效果，为jQuery动画效果的函数名，可用：show，slideDown，fadeIn
		showOptions: {}, // 效果的参数，详见：http://docs.jquery.com/Effects
		defaultDate: null, // 指定日期——格式：yyyy/mm/dd；使用此功能后，日历将停留在指定的月份，并在指定日期所在的td上增加className="ui-datepicker-days-cell-over"
		appendText: '', // 紧跟input的文字，如："查看日历"
		buttonText: '...', // 触发按钮的文字
		buttonImage: '', // 触发按钮的图片地址
		buttonImageOnly: false, // true：触发按钮始终使用图片；false：按钮
		hideIfNoPrevNext: false, // true：隐藏"上月"、"下月"链接
		navigationAsDateFormat: false, // 
		gotoCurrent: false, // 
		changeMonth: false, // 可更改的月份（select）
		changeYear: false, // 可更改的年份（select）
		showMonthAfterYear: false, // true：年份在月份之前；false：年份在月份之后
		yearRange: '-10:+10', //年份区间——格式1：-nn:+nn，表示动态获取当前年份的前nn年和后nn年，如：-10:+10；格式2：nnnn:nnnn，表示年份区间在nnnn年到nnnn年，如：1998:2009
		showOtherMonths: false, // true：在本月显示上月或下月的日期；false：不在本月显示上月或下月的日期
		calculateWeek: this.iso8601Week, // iso8601Week/noWeekends（正常/周末无连接）
		shortYearCutoff: '+10', // 
		minDate: null, // 最小日期——格式：yyyy,mm-1,dd，可以指定日历区间的起点，精确到日
		maxDate: null, // 最大日期——格式：yyyy,mm-1,dd，可以指定日历区间的终点，精确到日
		duration: 'normal', // 显示/收起效果的速度，分为slow/normal/fast三档
		beforeShowDay: null, // 
		beforeShow: null, // 日历显示之前的回调函数
		onSelect: null, // 选中某日时的回调函数
		onChangeMonthYear: null, // 修改年月时的回调函数
		onClose: null, // 关闭日历时的回电函数
		numberOfMonths: 1, // 同时显示n个月的日历，默认为1
		showCurrentAtPos: 0, // 
		stepMonths: 1, // 
		stepBigMonths: 12, // 
		altField: '', // 
		altFormat: '', // 
		constrainInput: true, // 
		showButtonPanel: false // true：显示按钮面板；false：隐藏按钮面板
	};
	$.extend(this._defaults, this.regional['']);
	this.dpDiv = $('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>');
}
$.extend(Datepicker.prototype,{markerClassName:'hasDatepicker',log:function(){if(this.debug)console.log.apply('',arguments)},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute('date:'+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=='div'||nodeName=='span');if(!target.id)target.id='dp'+(++this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=='input'){this._connectDatepicker(target,inst)}else if(inline){this._inlineDatepicker(target,inst)}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,'\\\\$1');return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);if(input.hasClass(this.markerClassName))return;var appendText=this._get(inst,'appendText');var isRTL=this._get(inst,'isRTL');if(appendText)input[isRTL?'before':'after']('<span class="'+this._appendClass+'">'+appendText+'</span>');var showOn=this._get(inst,'showOn');if(showOn=='focus'||showOn=='both')input.focus(this._showDatepicker);if(showOn=='button'||showOn=='both'){var buttonText=this._get(inst,'buttonText');var buttonImage=this._get(inst,'buttonImage');var trigger=$(this._get(inst,'buttonImageOnly')?$('<img/>').addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==''?buttonText:$('<img/>').attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?'before':'after'](trigger);trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target)$.datepicker._hideDatepicker();else $.datepicker._showDatepicker(target);return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName))return;divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id='dp'+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$('body').append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css('left',this._pos[0]+'px').css('top',this._pos[1]+'px');inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI)$.blockUI(this.dpDiv);$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=='input'){$target.siblings('.'+this._appendClass).remove().end().siblings('.'+this._triggerClass).remove().end().removeClass(this.markerClassName).unbind('focus',this._showDatepicker).unbind('keydown',this._doKeyDown).unbind('keypress',this._doKeyPress)}else if(nodeName=='div'||nodeName=='span')$target.removeClass(this.markerClassName).empty()},_enableDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=='input'){target.disabled=false;$target.siblings('button.'+this._triggerClass).each(function(){this.disabled=false}).end().siblings('img.'+this._triggerClass).css({opacity:'1.0',cursor:''})}else if(nodeName=='div'||nodeName=='span'){var inline=$target.children('.'+this._inlineClass);inline.children().removeClass('ui-state-disabled')}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=='input'){target.disabled=true;$target.siblings('button.'+this._triggerClass).each(function(){this.disabled=true}).end().siblings('img.'+this._triggerClass).css({opacity:'0.5',cursor:'default'})}else if(nodeName=='div'||nodeName=='span'){var inline=$target.children('.'+this._inlineClass);inline.children().addClass('ui-state-disabled')}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target)return true}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw'Missing instance data for this datepicker';}},_optionDatepicker:function(target,name,value){var settings=name||{};if(typeof name=='string'){settings={};settings[name]=value}var inst=this._getInst(target);if(inst){if(this._curInst==inst){this._hideDatepicker(null)}extendRemove(inst.settings,settings);var date=new Date();extendRemove(inst,{rangeStart:null,endDay:null,endMonth:null,endYear:null,selectedDay:date.getDate(),selectedMonth:date.getMonth(),selectedYear:date.getFullYear(),currentDay:date.getDate(),currentMonth:date.getMonth(),currentYear:date.getFullYear(),drawMonth:date.getMonth(),drawYear:date.getFullYear()});this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&&!inst.inline)this._setDateFromField(inst);return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is('.ui-datepicker-rtl');inst._keyEvent=true;if($.datepicker._datepickerShowing)switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,'');break;case 13:var sel=$('td.'+$.datepicker._dayOverClass+', td.'+$.datepicker._currentClass,inst.dpDiv);if(sel[0])$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0]);else $.datepicker._hideDatepicker(null,$.datepicker._get(inst,'duration'));return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,'duration'));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,'stepBigMonths'):-$.datepicker._get(inst,'stepMonths')),'M');break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,'stepBigMonths'):+$.datepicker._get(inst,'stepMonths')),'M');break;case 35:if(event.ctrlKey||event.metaKey)$.datepicker._clearDate(event.target);handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey)$.datepicker._gotoToday(event.target);handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey)$.datepicker._adjustDate(event.target,(isRTL?+1:-1),'D');handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey)$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,'stepBigMonths'):-$.datepicker._get(inst,'stepMonths')),'M');break;case 38:if(event.ctrlKey||event.metaKey)$.datepicker._adjustDate(event.target,-7,'D');handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey)$.datepicker._adjustDate(event.target,(isRTL?-1:+1),'D');handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey)$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,'stepBigMonths'):+$.datepicker._get(inst,'stepMonths')),'M');break;case 40:if(event.ctrlKey||event.metaKey)$.datepicker._adjustDate(event.target,+7,'D');handled=event.ctrlKey||event.metaKey;break;default:handled=false}else if(event.keyCode==36&&event.ctrlKey)$.datepicker._showDatepicker(this);else{handled=false}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,'constrainInput')){var chars=$.datepicker._possibleChars($.datepicker._get(inst,'dateFormat'));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<' '||!chars||chars.indexOf(chr)>-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!='input')input=$('input',input.parentNode)[0];if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input)return;var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,'beforeShow');extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,'');$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog)input.value='';if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css('position')=='fixed';return!isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:'absolute',display:'block',top:'-1000px'});$.datepicker._updateDatepicker(inst);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?'static':(isFixed?'fixed':'absolute')),display:'none',left:offset.left+'px',top:offset.top+'px'});if(!inst.inline){var showAnim=$.datepicker._get(inst,'showAnim')||'show';var duration=$.datepicker._get(inst,'duration');var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7)$('iframe.ui-datepicker-cover').css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})};if($.effects&&$.effects[showAnim])inst.dpDiv.show(showAnim,$.datepicker._get(inst,'showOptions'),duration,postProcess);else inst.dpDiv[showAnim](duration,postProcess);if(duration=='')postProcess();if(inst.input[0].type!='hidden')inst.input[0].focus();$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find('iframe.ui-datepicker-cover').css({width:dims.width,height:dims.height}).end().find('button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a').bind('mouseout',function(){$(this).removeClass('ui-state-hover')}).bind('mouseover',function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents('.ui-datepicker-calendar').find('a').removeClass('ui-state-hover');$(this).addClass('ui-state-hover')}}).end().find('.'+this._dayOverClass+' a').trigger('mouseover').end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass('ui-datepicker-multi-'+cols).css('width',(width*cols)+'em')}else{inst.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width('')}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?'add':'remove')+'Class']('ui-datepicker-multi');inst.dpDiv[(this._get(inst,'isRTL')?'add':'remove')+'Class']('ui-datepicker-rtl');if(inst.input&&inst.input[0].type!='hidden'&&inst==$.datepicker._curInst)$(inst.input[0]).focus()},_checkOffset:function(inst,offset,isFixed){var pos=inst.input?this._findPos(inst.input[0]):null;var browserWidth=window.innerWidth||(document.documentElement?document.documentElement.clientWidth:document.body.clientWidth);var browserHeight=window.innerHeight||(document.documentElement?document.documentElement.clientHeight:document.body.clientHeight);var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;if(this._get(inst,'isRTL')||(offset.left+inst.dpDiv.width()-scrollX)>browserWidth)offset.left=Math.max((isFixed?0:scrollX),pos[0]+(inst.input?inst.input.width():0)-(isFixed?scrollX:0)-inst.dpDiv.width()-(isFixed&&$.browser.opera?document.documentElement.scrollLeft:0));else offset.left-=(isFixed?scrollX:0);if((offset.top+inst.dpDiv.height()-scrollY)>browserHeight)offset.top=Math.max((isFixed?0:scrollY),pos[1]-(isFixed?scrollY:0)-(this._inDialog?0:inst.dpDiv.height())-(isFixed&&$.browser.opera?document.documentElement.scrollTop:0));else offset.top-=(isFixed?scrollY:0);return offset},_findPos:function(obj){while(obj&&(obj.type=='hidden'||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME)))return;if(inst.stayOpen)this._selectDate('#'+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,'duration'));var showAnim=this._get(inst,'showAnim');var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=''&&$.effects&&$.effects[showAnim])inst.dpDiv.hide(showAnim,$.datepicker._get(inst,'showOptions'),duration,postProcess);else inst.dpDiv[(duration==''?'hide':(showAnim=='slideDown'?'slideUp':(showAnim=='fadeIn'?'fadeOut':'hide')))](duration,postProcess);if(duration=='')this._tidyDialog(inst);var onClose=this._get(inst,'onClose');if(onClose)onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():''),inst]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:'absolute',left:'0',top:'-100px'});if($.blockUI){$.unblockUI();$('body').append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar')},_checkExternalClick:function(event){if(!$.datepicker._curInst)return;var $target=$(event.target);if(($target.parents('#'+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI))$.datepicker._hideDatepicker(null,'')},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset,period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,'gotoCurrent')&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst['selected'+(period=='M'?'Month':'Year')]=inst['draw'+(period=='M'?'Month':'Year')]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie)inst.input[0].focus();inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$('a',td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,'')},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input)inst.input.val(dateStr);this._updateAlternate(inst);var onSelect=this._get(inst,'onSelect');if(onSelect)onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);else if(inst.input)inst.input.trigger('change');if(inst.inline)this._updateDatepicker(inst);else if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,'duration'));this._lastInput=inst.input[0];if(typeof(inst.input[0])!='object')inst.input[0].focus();this._lastInput=null}},_updateAlternate:function(inst){var altField=this._get(inst,'altField');if(altField){var altFormat=this._get(inst,'altFormat')||this._get(inst,'dateFormat');var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),'']},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null)throw'Invalid arguments';value=(typeof value=='object'?value.toString():value+'');if(value=='')return null;var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches)iFormat++;return matches};var getNumber=function(match){lookAhead(match);var origSize=(match=='@'?14:(match=='y'?4:(match=='o'?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>='0'&&value.charAt(iValue)<='9'){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize)throw'Missing number at position '+iValue;return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++)size=Math.max(size,names[j].length);var name='';var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++)if(name==names[i])return i+1;size--}throw'Unknown name at position '+iInit;};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat))throw'Unexpected literal at position '+iValue;iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal)if(format.charAt(iFormat)=="'"&&!lookAhead("'"))literal=false;else checkLiteral();else switch(format.charAt(iFormat)){case'd':day=getNumber('d');break;case'D':getName('D',dayNamesShort,dayNames);break;case'o':doy=getNumber('o');break;case'm':month=getNumber('m');break;case'M':month=getName('M',monthNamesShort,monthNames);break;case'y':year=getNumber('y');break;case'@':var date=new Date(getNumber('@'));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'"))checkLiteral();else literal=true;break;default:checkLiteral()}}if(year==-1)year=new Date().getFullYear();else if(year<100)year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100);if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim)break;month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day)throw'Invalid date';return date},ATOM:'yy-mm-dd',COOKIE:'D, dd M yy',ISO_8601:'yy-mm-dd',RFC_822:'D, d M y',RFC_850:'DD, dd-M-y',RFC_1036:'D, d M y',RFC_1123:'D, d M yy',RFC_2822:'D, d M yy',RSS:'D, d M y',TIMESTAMP:'@',W3C:'yy-mm-dd',formatDate:function(format,date,settings){if(!date)return'';var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches)iFormat++;return matches};var formatNumber=function(match,value,len){var num=''+value;if(lookAhead(match))while(num.length<len)num='0'+num;return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output='';var literal=false;if(date)for(var iFormat=0;iFormat<format.length;iFormat++){if(literal)if(format.charAt(iFormat)=="'"&&!lookAhead("'"))literal=false;else output+=format.charAt(iFormat);else switch(format.charAt(iFormat)){case'd':output+=formatNumber('d',date.getDate(),2);break;case'D':output+=formatName('D',date.getDay(),dayNamesShort,dayNames);break;case'o':var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--)doy+=this._getDaysInMonth(date.getFullYear(),m);output+=formatNumber('o',doy,3);break;case'm':output+=formatNumber('m',date.getMonth()+1,2);break;case'M':output+=formatName('M',date.getMonth(),monthNamesShort,monthNames);break;case'y':output+=(lookAhead('y')?date.getFullYear():(date.getYear()%100<10?'0':'')+date.getYear()%100);break;case'@':output+=date.getTime();break;case"'":if(lookAhead("'"))output+="'";else literal=true;break;default:output+=format.charAt(iFormat)}}return output},_possibleChars:function(format){var chars='';var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++)if(literal)if(format.charAt(iFormat)=="'"&&!lookAhead("'"))literal=false;else chars+=format.charAt(iFormat);else switch(format.charAt(iFormat)){case'd':case'm':case'y':case'@':chars+='0123456789';break;case'D':case'M':return null;case"'":if(lookAhead("'"))chars+="'";else literal=true;break;default:chars+=format.charAt(iFormat)}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,'dateFormat');var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,'defaultDate'),new Date());var minDate=this._getMinMaxDate(inst,'min',true);var maxDate=this._getMinMaxDate(inst,'max');date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||'d'){case'd':case'D':day+=parseInt(matches[1],10);break;case'w':case'W':day+=parseInt(matches[1],10)*7;break;case'm':case'M':month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case'y':case'Y':year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=='string'?offsetString(date,this._getDaysInMonth):(typeof date=='number'?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=='Invalid Date'?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date)return null;date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear)this._notifyChange(inst);this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?'':this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=='')?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,'isRTL');var showButtonPanel=this._get(inst,'showButtonPanel');var hideIfNoPrevNext=this._get(inst,'hideIfNoPrevNext');var navigationAsDateFormat=this._get(inst,'navigationAsDateFormat');var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,'showCurrentAtPos');var stepMonths=this._get(inst,'stepMonths');var stepBigMonths=this._get(inst,'stepBigMonths');var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,'min',true);var maxDate=this._getMinMaxDate(inst,'max');var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}var prevText=this._get(inst,'prevText');prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="sinaUI.datepicker._adjustDate(\'#'+inst.id+'\', -'+stepMonths+', \'M\');"'+' title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?'e':'w')+'">'+prevText+'</span></a>':(hideIfNoPrevNext?'':'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?'e':'w')+'">'+prevText+'</span></a>'));var nextText=this._get(inst,'nextText');nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="sinaUI.datepicker._adjustDate(\'#'+inst.id+'\', +'+stepMonths+', \'M\');"'+' title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?'w':'e')+'">'+nextText+'</span></a>':(hideIfNoPrevNext?'':'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?'w':'e')+'">'+nextText+'</span></a>'));var currentText=this._get(inst,'currentText');var gotoDate=(this._get(inst,'gotoCurrent')&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls='<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="sinaUI.datepicker._hideDatepicker();">'+this._get(inst,'closeText')+'</button>';var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:'')+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="sinaUI.datepicker._gotoToday(\'#'+inst.id+'\');"'+'>'+currentText+'</button>':'')+(isRTL?'':controls)+'</div>':'';var firstDay=parseInt(this._get(inst,'firstDay'));firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,'dayNames');var dayNamesShort=this._get(inst,'dayNamesShort');var dayNamesMin=this._get(inst,'dayNamesMin');var monthNames=this._get(inst,'monthNames');var monthNamesShort=this._get(inst,'monthNamesShort');var beforeShowDay=this._get(inst,'beforeShowDay');var showOtherMonths=this._get(inst,'showOtherMonths');var calculateWeek=this._get(inst,'calculateWeek')||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html='';for(var row=0;row<numMonths[0];row++){var group='';for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=' ui-corner-all';var calender='';if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+='first';cornerClass=' ui-corner-'+(isRTL?'right':'left');break;case numMonths[1]-1:calender+='last';cornerClass=' ui-corner-'+(isRTL?'left':'right');break;default:calender+='middle';cornerClass='';break}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):'')+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):'')+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead>'+'<tr>';var thead='';for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+='<th'+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':'')+'>'+'<span title="'+dayNames[day]+'">'+dayNamesMin[day]+'</span></th>'}calender+=thead+'</tr></thead><tbody>';var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth)inst.selectedDay=Math.min(inst.selectedDay,daysInMonth);var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+='<tr>';var tbody='';for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,'']);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?' ui-datepicker-week-end':'')+(otherMonth?' ui-datepicker-other-month':'')+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?' '+this._dayOverClass:'')+(unselectable?' '+this._unselectableClass+' ui-state-disabled':'')+(otherMonth&&!showOtherMonths?'':' '+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?' '+this._currentClass:'')+(printDate.getTime()==today.getTime()?' ui-datepicker-today':''))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':'')+(unselectable?'':' onclick="sinaUI.datepicker._selectDay(\'#'+inst.id+'\','+drawMonth+','+drawYear+', this);return false;"')+'>'+(otherMonth?(showOtherMonths?printDate.getDate():'&#xa0;'):(unselectable?printDate.getDate():'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?' ui-state-highlight':'')+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?' ui-state-active':'')+'" href="###">'+printDate.getDate()+'</a>'))+'</td>';printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+'</tr>'}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+='</tbody></table>'+(isMultiMonth?'</div>':'');group+=calender}html+=group}html+=(!inst.inline?buttonPanel:'')+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':'');inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var changeMonth=this._get(inst,'changeMonth');var changeYear=this._get(inst,'changeYear');var showMonthAfterYear=this._get(inst,'showMonthAfterYear');var html='<div class="ui-datepicker-title">';var monthHtml='';if(secondary||!changeMonth)monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+'</span> ';else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select id="uidatepickermonth" class="ui-datepicker-month" '+'onchange="sinaUI.datepicker._selectMonthYear(\'#'+inst.id+'\', this, \'M\');" '+'onclick="sinaUI.datepicker._clickMonthYear(\'#'+inst.id+'\');"'+'>';for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth()))monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':'')+'>'+monthNamesShort[month]+'</option>'}monthHtml+='</select>'}if(!showMonthAfterYear)html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?'&#xa0;':'');if(secondary||!changeYear)html+='<span class="ui-datepicker-year">'+drawYear+'</span>';else{var years=this._get(inst,'yearRange').split(':');var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else if(years[0].charAt(0)=='+'||years[0].charAt(0)=='-'){year=endYear=new Date().getFullYear();year+=parseInt(years[0],10);endYear+=parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select id="uidatepickeryear" class="ui-datepicker-year" '+'onchange="sinaUI.datepicker._selectMonthYear(\'#'+inst.id+'\', this, \'Y\');" '+'onclick="sinaUI.datepicker._clickMonthYear(\'#'+inst.id+'\');"'+'>';for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':'')+'>'+year+'</option>'}html+='</select>'}if(showMonthAfterYear)html+=(secondary||changeMonth||changeYear?'&#xa0;':'')+monthHtml;html+='</div>';return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=='Y'?offset:0);var month=inst.drawMonth+(period=='M'?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=='D'?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,'min',true);var maxDate=this._getMinMaxDate(inst,'max');date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=='M'||period=='Y')this._notifyChange(inst)},_notifyChange:function(inst){var onChange=this._get(inst,'onChangeMonthYear');if(onChange)onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,'numberOfMonths');return(numMonths==null?[1,1]:(typeof numMonths=='number'?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+'Date'),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0)date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()));return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,'min');var maxDate=this._getMinMaxDate(inst,'max');return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,'shortYearCutoff');shortYearCutoff=(typeof shortYearCutoff!='string'?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,'dayNamesShort'),dayNames:this._get(inst,'dayNames'),monthNamesShort:this._get(inst,'monthNamesShort'),monthNames:this._get(inst,'monthNames')}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=='object'?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,'dateFormat'),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props)if(props[name]==null||props[name]==undefined)target[name]=props[name];return target};function isArray(a){return(a&&(($.browser.safari&&typeof a=='object'&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))};$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document.body).append($.datepicker.dpDiv).mousedown($.datepicker._checkExternalClick);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=='string'&&(options=='isDisabled'||options=='getDate'))return $.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this[0]].concat(otherArgs));return this.each(function(){typeof options=='string'?$.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.6rc4"})(sinaUI);
/* 回顾 end */

/******** Sales dept. begin ********/
function SinaDotAdJs(){
//-------------------------------

var pthis = this;
//浏览器判断
this.isIE=navigator.userAgent.indexOf("MSIE")==-1?false:true;
this.isOPER=navigator.userAgent.indexOf("Opera")==-1?false:true;
this.version=navigator.appVersion.split(";"); 
this.trim_Version=this.version[1].replace(/[ ]/g,""); 
this.isIE6=(navigator.appName=="Microsoft Internet Explorer" && this.trim_Version=="MSIE6.0")?true:false;
this.isXHTML = document.compatMode=="CSS1Compat"?true:false;

//获取body
this.bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;

//获取对象
this.$ = function(id){if(document.getElementById){return eval('document.getElementById("'+id+'")')}else{return eval('document.all.'+id)}};

//获取cookie
this.getAdCookie = function(N){
	var c=document.cookie.split("; ");
	for(var i=0;i<c.length;i++){var d=c[i].split("=");if(d[0]==N)return unescape(d[1]);}
	return "";
};

//设置cookie
this.setAdCookie = function(N,V,Q,D){
	var L=new Date();
	var z=new Date(L.getTime()+Q*60000);
    var tmpdomain = "";
	if(typeof(D)!="undefined"){if(D){tmpdomain="domain=sina.com.cn;";}}
	document.cookie=N+"="+escape(V)+";path=/;"+tmpdomain+"expires="+z.toGMTString()+";";
};

//日期判断函数
this.compareDate = function(type,d){
  try{
        var dateArr = d.split("-");
        var checkDate = new Date();
        checkDate.setFullYear(dateArr[0], dateArr[1]-1, dateArr[2]);
		var now = new Date();
        var nowTime = now.getTime();
		var checkTime = checkDate.getTime();
		if(type=="after"){          
		  if(nowTime >= checkTime){return true;}
		  else{return false;}
		}		
        else if(type=="before"){
          if(nowTime <= checkTime){return true;}
		  else{return false;}
		}
  }catch(e){return false;}
}

//获取时间对象
this.strToDateFormat = function(str,ext){
	var arys = new Array();
	arys = str.split('-');
	var newDate = new Date(arys[0],arys[1]-1,arys[2],arys[3],0,0);
	if(ext){newDate = new Date(newDate.getTime()+1000*60*60*24);}
	return newDate;
 }

//时间区间检查
this.checkTime = function(begin,end){
  var td = new Date();
  var flag = (td>=pthis.strToDateFormat(begin,false) && td<pthis.strToDateFormat(end,begin==end?true:false))?true:false;
  return flag;
}

//外部事件加载
this.addEvent = function(obj,event,func){
  var MSIE=navigator.userAgent.indexOf("MSIE");
  var OPER=navigator.userAgent.indexOf("Opera");
  if(document.all && MSIE!=-1 && OPER==-1){
    obj.attachEvent("on"+event,func);
  }else{
    obj.addEventListener(event,func,false);
  }
};

//PNG透明函数
this.correctPNG = function(){ 
    var arVersion = navigator.appVersion.split("MSIE");
    var vs = parseFloat(arVersion[1]);
    if ((vs >= 5.5) && (document.body.filters)){ 
       for(var j=0; j<document.images.length; j++){ 
          var img = document.images[j];
          var imgName = img.src.toUpperCase(); 
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG"){ 
             var imgID = (img.id) ? "id='" + img.id + "' " : "";
             var imgClass = (img.className) ? "class='" + img.className + "' " : "";
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
             var imgStyle = "display:inline-block;" + img.style.cssText;
             if (img.align == "left"){imgStyle = "float:left;" + imgStyle}
             if (img.align == "right"){imgStyle = "float:right;" + imgStyle}
             if (img.parentElement.href){imgStyle = "cursor:hand;" + imgStyle}
             var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
             img.outerHTML = strNewHTML;
             j = j-1;
          } 
       } 
    }     
};

//容器对象
this.initWrap = function(mod,id,v,w,h,po,l,r,t,b,z,m,p,bg,dsp){
  var lst='';
  if(mod == 0x01){lst += 'pthis.'+v+' = document.createElement("'+id+'");';}
  else if(mod == 0x02){lst += 'pthis.'+v+' = document.getElementById("'+id+'");';}
  else return;
  if(v!="" && mod == 0x01){lst+=v+'.id = "'+v+'";';}
  if(w!=""){lst+=v+'.style.width = '+w+' + "px";';}
  if(h!=""){lst+=v+'.style.height = '+h+' + "px";';}
  if(po!=""){
	  lst+=v+'.style.position = "'+po+'";';

      if(l!=""){lst+=v+'.style.left = '+l+' + "px";';}
      else if(l=="" && r!=""){lst+=v+'.style.right = '+r+' + "px";';}
	  if(t!=""){lst+=v+'.style.top = '+t+' + "px";';}
      else if(t=="" && b!=""){lst+=v+'.style.bottom = '+b+' + "px";';}
	  if(z!=""){lst+=v+'.style.zIndex = "'+z+'";';}
  }
  if(bg!=""){lst+=v+'.style.background = "'+bg+'";';}
  if(m!=""){lst+=v+'.style.margin = "'+m+'";';}
  if(p!=""){lst+=v+'.style.padding = "'+p+'";';}
  if(dsp!=""){lst+=v+'.style.display = "'+dsp+'";';}
  return lst;
};

//素材对象
this.initObj = function(id,s,u,w,h){
  var lst = s.substring(s.length-3).toLowerCase();
  switch(lst){
	 case "tml":
	 case "htm":
	 case "php":var to = document.createElement("iframe");
                     to.id=id;
	                 to.width=w;
	                 to.height=h;
                     to.src=s;
                     to.frameBorder = 0;
					 to.allowTransparency = "true";
                     to.scrolling = "no";
                     to.marginheight = 0;
                     to.marginwidth = 0;
					 break;
	 case "swf": var to = document.createElement("div");
					 var fo = new sinaFlash( s, id, w, h, "7", "", false, "High");
	                 fo.addParam("wmode", "transparent");
	                 fo.addParam("allowScriptAccess", "always");
	                 fo.addParam("menu", "false");
	                 fo.write(to);
				     break;
     case "jpg":
     case "gif":
	 case "png":if(u!=""){
		             var to = document.createElement("a");
					 to.href = u;
					 to.target = "_blank";
					 var io = new Image();
	                 io.id = id;
					 io.style.width = w+"px";
					 io.style.height = h+"px";
					 io.style.border = "none";
					 io.src = s;
					 to.appendChild(io);
				}else{
				     var to = new Image();
	                 to.id = id;
					 to.style.width = w+"px";
					 to.style.height = h+"px";
					 to.style.border = "none";
					 to.style.cursor = "pointer";
					 to.src = s;	 
				}
				     break;
	     default:var to = document.createElement("a");
		             to.id = id;
					 to.href = u;
					 to.target = "_blank";
                     to.innerText = s;
  }
  return to;
};

//-------------------------------
};
/* http://d2.sina.com.cn/d1images/common/SinaDotTop.js begin */
/*
RotatorAD V3.8 2009-10-22
Author: Dakular <shuhu@staff.sina.com.cn>
格式: new RotatorAD(商业广告数组, 非商业广告数组, 层id)
说明: 第一次访问随机出现，以后访问顺序轮播；自动过滤过期广告；cookie时间24小时；商业广告数量不足时，从非商业广告中补充
	  限制最少轮播数量，广告少于限制数时，才从垫底里补充，否则不补垫底
*/
if(typeof(RotatorAD)!='function'){
var RotatorAD = function(rad,nad,div_id){

var date = new Date();
var id = 0;
var max = 99;
var url = document.location.href;
var cookiename = 'SinaRot'+escape(url.substr(url.indexOf('/',7),2)+url.substring(url.lastIndexOf('/')));
var timeout = 1440; //24h
var w = rad.width;
var h = rad.height;
var bnum = rad.num;
var num = rad.num;
var num2 = rad.num2;
var marginType = (typeof(rad.mtype)=="undefined")?0:rad.mtype;
var ary = new Array();
//过滤无效商广
for(var i=0; i<rad.length; i++){
	var start = strToDate(rad[i][2].replace('<startdate>','').replace('</startdate>',''));
	var end = strToDate(rad[i][3].replace('<enddate>','').replace('</enddate>',''),true);
	if(date>start && date<end){
		ary.push([rad[i][0], rad[i][1], rad[i][4], rad[i][5]?rad[i][5]:'0']);
	}
}
//过滤无效垫底
var vnad = new Array();
for(var i=0; i<nad.length; i++){
	if(nad[i][2]==null){
		vnad.push([nad[i][0], nad[i][1], '', '0']);
	}else{
		var start = strToDate(nad[i][2].replace('<startdate>','').replace('</startdate>',''));
		var end = strToDate(nad[i][3].replace('<enddate>','').replace('</enddate>',''),true);
		if(date>start && date<end){
			vnad.push([nad[i][0], nad[i][1], '', '0']);
		}
	}
}
//补位
var nn = 0;
if(vnad.length>0 && (num2==null || ary.length<num2)){
	for(var i=0; i<(num2==null?rad.num:num2); i++){
		if(i>ary.length-1){
			ary.push([vnad[nn][0], vnad[nn][1], '', '0']);
			if(++nn > nad.length-1) nn = 0;
		}
	}
}
//num = ary.length<num?ary.length:num;
//排序(同步有序号的广告)
ary.sort(function(x,y){return x[3]-y[3];});
//取id
if(typeof(globalRotatorId)=='undefined' || globalRotatorId==null || isNaN(globalRotatorId)){
	curId = G(cookiename);

	curId = curId==""?Math.floor(Math.random()*max):++curId;
	if(curId>max || curId==null || isNaN(curId)) curId=0;
	S(cookiename,curId,timeout);
	globalRotatorId = curId;
}
id=globalRotatorId%num;

//Show AD
if(ary.length==0) return; //如果没有广告则不显示
var n = id;

try{
  if(typeof(ary[n][0])=="undefined" || ary[n][0]=="") return;
  var type = ary[n][0].substring(ary[n][0].length-3).toLowerCase();
  var od = document.getElementById(div_id);
  if(od && marginType==1){od.style.marginTop = 8 + "px";}
  if(od && marginType==2){od.style.marginBottom = 8 + "px";}
  if(od && marginType==3){od.style.marginTop = 8 + "px";od.style.marginBottom = 8 + "px";}
}catch(e){return;}

if(type=='swf'){
var of = new sinaFlash(ary[n][0], div_id+'_swf', w, h, "7", "", false, "High");
of.addParam("wmode", "opaque");
of.addParam("allowScriptAccess", "always");
of.addVariable("adlink", escape(ary[n][1]));
if(ary[n][2]!="" && ary[n][2]!=null){of.addVariable("_did", ary[n][2]);}
of.write(div_id);
}else if(type=='jpg' || type=='gif'){
if(ary[n][2]!="" && ary[n][2]!=null){
  od.innerHTML = '<a href="'+ary[n][1]+'" target="_blank" onclick="try{_S_acTrack('+ary[n][2]+');}catch(e){}"><img src="'+ary[n][0]+'" border="0" width="'+w+'" height="'+h+'" /></a>';
}else{
  od.innerHTML = '<a href="'+ary[n][1]+'" target="_blank"><img src="'+ary[n][0]+'" border="0" width="'+w+'" height="'+h+'" /></a>';
}
}else if(type=='htm' || type=='tml'){
od.innerHTML = '<iframe id="ifm_'+div_id+'" frameborder="0" scrolling="no" width="'+w+'" height="'+h+'"></iframe>';
document.getElementById('ifm_'+div_id).src = ary[n][0];
}else if(type=='.js'){ //js
document.write('<script language="javascript" type="text/javascript" src="'+ary[n][0]+'"></scr'+'ipt>');
}else{ //textlink
    if(ary[n][2]!="" && ary[n][2]!=null){
  document.write('<a href="'+ary[n][1]+'" onclick="try{_S_acTrack('+ary[n][2]+');}catch(e){}"  target="_blank">'+ary[n][0]+'</a>');
    }else{
  document.write('<a href="'+ary[n][1]+'"  target="_blank">'+ary[n][0]+'</a>');
}
}

function G(N){
	var c=document.cookie.split("; ");
	for(var i=0;i<c.length;i++){
		var d=c[i].split("=");
		if(d[0]==N)return unescape(d[1]);
	}return '';
};
function S(N,V,Q){
	var L=new Date();
	var z=new Date(L.getTime()+Q*60000);
	document.cookie=N+"="+escape(V)+";path=/;expires="+z.toGMTString()+";";
};
function strToDate(str,ext){
	var arys = new Array();
	arys = str.split('-');
	var newDate = new Date(arys[0],arys[1]-1,arys[2],9,0,0);
	if(ext){
		newDate = new Date(newDate.getTime()+1000*60*60*24);
	}
	return newDate;
}

}
}

(function(){
  var pthis=this;this.compareDate = function (a,b){try{var n = new Date().getHours();if(n >= a && n < b){return true;}else{return false;}}catch(e){return false;}};
  try{window.timer_0915 = this.compareDate(9,15);}catch(e){}
  try{window.timer_1524 = this.compareDate(15,24);}catch(e){}
})();

/*********************************/

/*

轮播背投类 RotatorPB v3.1
Update by Dakular <shuhu@staff.sina.com.cn> 2008-8-25
格式：new RotatorPB(广告数组)
说明：第一次访问随机出现，以后访问顺序轮播；自动过滤过期广告；cookie时间24小时；商业广告数量不足时不显示
*/
if(typeof(RotatorPB)!='function'){
	var RotatorPB=function (rad){
		this.ary = new Array();
		this.date = new Date();
		this.w = rad.width;
		this.h = rad.height;
		this.num = rad.num;
		this.o = rad.length;
		this.id = RotatorPB.id++;
		this.m = 'rpb_'+this.id;
		this.n = new Array();
		this.L = new Date();
		this.e = 0;
		var f;
		var D = false;
		var nn = 0;
		//过滤无效广告
		for(var i=0; i<rad.length; i++){
			var start = RotatorPB.strToDate(rad[i][2].replace('<startdate>','').replace('</startdate>',''));
			var end = RotatorPB.strToDate(rad[i][3].replace('<enddate>','').replace('</enddate>',''),true);
			if(this.date>start && this.date<end && (this.num==null || this.ary.length<this.num) ){
				this.ary.push([rad[i][0], rad[i][1], rad[i][4]]);
			}
		}
		this.o = this.ary.length;
		//取id
		for(var i=0;i<this.o;i++){
			f=this.m+'_'+(i+1);
			g=RotatorPB.G(f);
			if(g!=''){
				this.n[i]=g;
				D=true;
			}else {
				this.n[i]=0;
			}
		}
		if(!D){
			var r=Math.ceil(Math.random()*this.o);
			var t=this.m+'_'+r;
			RotatorPB.S(t,this.L.getTime(),1440);
			this.e=r;
			if(this.o==1){RotatorPB.S('s_dl',r,1440);}
			//return r;
		}else {
			var R=this.n.join(',').split(',');
			var k=R.sort();
			var max=Number(k[k.length-1]);
			var min=Number(k[0]);
			var F;
			for(var i=0;i<this.n.length;i++){
				if(max==this.n[i]){
					F=i+1;
					break;
				}
			}
			if(typeof(F)!='undefined'){
				G=this.m+'_'+F;
				H=Number(RotatorPB.G(G));
				I=F%this.o+1;
				J=this.m+'_'+I;
				RotatorPB.S(J,this.L.getTime(),1440);
				if(this.o==1){
					I=-RotatorPB.G('s_dl');
					if(I==0){I=1;RotatorPB.S('s_dl',1,1440);}
					RotatorPB.S('s_dl',I,1440);
				}
				this.e=I;
				//return I;
			}
		}
		//Show AD
		if(this.e==0 || this.ary.length==0) return; //如果没有广告则不显示
		if(this.e==-1) return; //当只有一个广告时：始终显示第一个/奇数次刷新显示
		var n = this.e-1;
		var btsrc = this.ary[n][0];
		var bturl = this.ary[n][1];
		var bttype = btsrc.substring(btsrc.length-3).toLowerCase();
		if(bttype=='.js'){ //js
			document.write('<script language="javascript" type="text/javascript" src="'+btsrc+'"></scr'+'ipt>'); return;
		}else if(bttype!='htm' && bttype!='tml'){
			sinabturl = "http://d1.sina.com.cn/d1images/pb/pbv4.html?"+bturl+"${}"+bttype+"${}"+btsrc;
		}else{
			sinabturl = btsrc;
		}
		try{
			aryADSeq.push("openWindowBack()");
		}catch(e){
			openWindowBack();
		}
		if(this.ary[n][2]!=""){ //监测计数
			var oImg = new Image();
			oImg.src = this.ary[n][2];
		}
	};
	RotatorPB.id=1;
	RotatorPB.G=function (N){
		var c=document.cookie.split("; ");
		for(var i=0;i<c.length;i++){
			var d=c[i].split("=");
			if(d[0]==N)return unescape(d[1]);
		}return '';
	};
	RotatorPB.S=function (N,V,Q){
		var L=new Date();
		var z=new Date(L.getTime()+Q*60000);
		document.cookie=N+"="+escape(V)+"; path=/; expires="+z.toGMTString()+";";
	};
	RotatorPB.strToDate = function(str,ext){
		var arys = new Array();
		arys = str.split('-');
		var newDate = new Date(arys[0],arys[1]-1,arys[2],9,0,0);
		if(ext){
			newDate = new Date(newDate.getTime()+1000*60*60*24);
		}
		return newDate;
	}
	var openWindowBack = function(){
		var popUpWin2 = open(sinabturl, (window.name!="popUpWin2")?"popUpWin2":"", "width=1,height=1,top=4000,left=3000");
	}
};

/*********************************/

/*赞助生成工具*/
try{if(typeof(SinaDotColumnBarCreativeClass)!="function"){var SinaDotColumnBarCreativeClass=function(o){if(typeof(o)!="undefined"&&o!=""){var pthis=this;this.$=function(id){if(document.getElementById){return eval('document.getElementById("'+id+'")')}else{return eval("document.all."+id)}};this.initWrap=function(mod,id,v,w,h,po,l,r,t,b,z,m,p,bg,dsp){var lst="";if(mod==1){lst+="var "+v+' = document.createElement("'+id+'");'}else{if(mod==2){lst+="var "+v+' = document.getElementById("'+id+'");'}else{return}}if(v!=""){lst+=v+'.id = "'+v+'";'}if(w!=""){lst+=v+".style.width = "+w+' + "px";'}if(h!=""){lst+=v+".style.height = "+h+' + "px";'}if(po!=""){lst+=v+'.style.position = "'+po+'";';if(l!=""){lst+=v+".style.left = "+l+' + "px";'}else{if(l==""||r!=""){lst+=v+".style.right = "+r+' + "px";'}}if(t!=""){lst+=v+".style.top = "+t+' + "px";'}else{if(t==""||b!=""){lst+=v+".style.bottom = "+b+' + "px";'}}if(z!=""){lst+=v+'.style.zIndex = "'+z+'";'}}if(bg!=""){lst+=v+'.style.background = "'+bg+'";'}if(m!=""){lst+=v+'.style.margin = "'+m+'";'}if(p!=""){lst+=v+'.style.padding = "'+p+'";'}if(dsp!=""){lst+=v+'.style.display = "'+dsp+'";'}return lst};this.initObj=function(id,s,u,w,h){var lst=s.substring(s.length-3).toLowerCase();switch(lst){case"tml":case"htm":var to=document.createElement("iframe");to.id=id;to.style.width=w+"px";to.style.height=h+"px";to.src=s;to.frameBorder=0;to.scrolling="no";to.marginheight=0;to.marginwidth=0;break;case"swf":var to=document.createElement("div");var fo=new sinaFlash(s,id,w,h,"7","",false,"High");fo.addParam("wmode","transparent");fo.addParam("allowScriptAccess","always");fo.addParam("menu","false");fo.write(to);break;case"jpg":case"gif":case"png":if(u!=""){var to=document.createElement("a");to.href=u;to.target="_blank";var io=new Image();io.id=id;io.style.width=w+"px";io.style.height=h+"px";io.style.border="none";io.src=s;to.appendChild(io)}else{var to=new Image();to.id=id;to.style.width=w+"px";to.style.height=h+"px";to.style.border="none";to.style.cursor="pointer";to.src=s}break;default:var to=document.createElement("a");to.id=id;to.href=u;to.target="_blank";to.innerText=s}return to};this.getAdCookie=function(N){var c=document.cookie.split("; ");for(var i=0;i<c.length;i++){var d=c[i].split("=");if(d[0]==N){return unescape(d[1])}}return""};this.setAdCookie=function(N,V,Q){var L=new Date();var z=new Date(L.getTime()+Q*60000);document.cookie=N+"="+escape(V)+";path=/;expires="+z.toGMTString()+";"};this.addEvent=function(obj,event,func){var MSIE=navigator.userAgent.indexOf("MSIE");var OPER=navigator.userAgent.indexOf("Opera");if(document.all&&MSIE!=-1&&OPER==-1){obj.attachEvent("on"+event,func)}else{obj.addEventListener(event,func,false)}};var btimer;var showTag=false;var bo=pthis.$("SinaDotColumnBarCreativeTmpWrap_"+o.id);bo=bo.parentNode;bo.style.position="relative";eval(pthis.initWrap(1,"div","b_"+o.id,o.b.w,o.b.h,"absolute",o.b.p[0],o.b.p[1],o.b.p[2],o.b.p[3],o.b.z,0,0,"","block"));eval("pthis.bWrap = b_"+o.id+"");var bObj=pthis.initObj("bo_"+o.id,o.b.s,o.b.u,o.b.w,o.b.h);pthis.bWrap.appendChild(bObj);bo.appendChild(pthis.bWrap);pthis.eWrap=document.createElement("div");pthis.eWrap.innerHTML="";pthis.showE=function(){var apthis=pthis;clearTimeout(btimer);apthis.eWrap.innerHTML="";if(o.e.s!=""){eval(pthis.initWrap(1,"div","e_"+o.id,o.e.w,o.e.h,"absolute",o.e.p[0],o.e.p[1],o.e.p[2],o.e.p[3],o.e.z,0,0,"","none"));eval("apthis.eWrap = e_"+o.id+"");var eObj=pthis.initObj("eo_"+o.id,o.e.s,o.e.u,o.e.w,o.e.h);apthis.eWrap.appendChild(eObj);bo.appendChild(apthis.eWrap);apthis.eWrap.style.display="block";if(o.c.w!=""||o.c.h!=""){eval(pthis.initWrap(1,"div","c_"+o.id,o.c.w,o.c.h,"absolute",o.c.p[0],o.c.p[1],o.c.p[2],o.c.p[3],o.c.z,0,0,o.c.b,"block"));eval("apthis.cWrap = c_"+o.id+"");apthis.cWrap.onclick=function(){apthis.eWrap.style.display="none";showTag=false};apthis.cWrap.style.background=(o.c.b=="")?"url(http://d1.sina.com.cn/shh/SinaDotColumnBarCreativeTool/spc.gif) repeat":o.c.b;apthis.cWrap.innerHTML=o.c.inn;apthis.cWrap.style.textAlign="center";apthis.cWrap.style.overFlow="hidden";apthis.cWrap.style.cursor="pointer";apthis.cWrap.style.color=o.c.c;apthis.eWrap.appendChild(apthis.cWrap)}if(o.e.t!=""){btimer=setTimeout(function(){apthis.eWrap.style.display="none";showTag=false},o.e.t)}if(o.e.tr!=""){var tro=new Image();tro.src=o.e.tr+"&"+Math.random()}if(o.o.ahd){apthis.eWrap.onmouseover=function(){apthis.eWrap.style.display="block"};pthis.bWrap.onmouseout=function(){apthis.eWrap.style.display="none";showTag=false};apthis.eWrap.onmouseout=function(){apthis.eWrap.style.display="none";showTag=false}}}};var currTimes=1;var clcExt=typeof(o.o.cle)=="undefined"?0:o.o.cle;pthis.bWrap.onmouseover=function(){if(!showTag){showTag=true;if(clcExt==0){var tmpeip=true;try{if(typeof(o.o.eip)!="undefined"&&typeof(o.o.eti)!="undefined"){if(o.o.eip!=""&&!isNaN(o.o.eip)){var tmpeti=(o.o.eti=="")?1440:eval(o.o.eti*60);var cepcookie=pthis.getAdCookie("ceCookie"+o.id);cepcookie=(cepcookie==""||cepcookie=="undefined")?0:cepcookie;cepcookie++;pthis.setAdCookie("ceCookie"+o.id,cepcookie,tmpeti);if(cepcookie>o.o.eip){tmpeip=false}}}}catch(e){}if(tmpeip){if(o.o.enm!=""&&!isNaN(o.o.enm)){if(currTimes<=o.o.enm){pthis.showE();++currTimes}}else{pthis.showE()}}}}};pthis.bWrap.onclick=function(){if(clcExt==1){var tmpeip=true;try{if(typeof(o.o.eip)!="undefined"&&typeof(o.o.eti)!="undefined"){if(o.o.eip!=""&&!isNaN(o.o.eip)){var tmpeti=(o.o.eti=="")?1440:eval(o.o.eti*60);var cepcookie=pthis.getAdCookie("ceCookie"+o.id);cepcookie=(cepcookie==""||cepcookie=="undefined")?0:cepcookie;cepcookie++;pthis.setAdCookie("ceCookie"+o.id,cepcookie,tmpeti);if(cepcookie>o.o.eip){tmpeip=false}}}}catch(e){}if(tmpeip){if(o.o.enm!=""&&!isNaN(o.o.enm)){if(currTimes<=o.o.enm){pthis.showE();++currTimes}}else{pthis.showE()}}}};if(o.o.anm!=""&&!isNaN(o.o.anm)){var cbpcookie=pthis.getAdCookie("cbCookie"+o.id);cbpcookie=(cbpcookie==""||cbpcookie=="undefined")?1:cbpcookie;setTimeout(function(){if(cbpcookie<=o.o.anm){pthis.showE();++cbpcookie;pthis.setAdCookie("cbCookie"+o.id,cbpcookie,1440)}},o.o.adl)}else{if(o.o.anm=="auto"&&isNaN(o.o.anm)){setTimeout(function(){pthis.showE()},o.o.adl)}else{}}}}}}catch(e){};
/* http://d2.sina.com.cn/d1images/common/SinaDotTop.js end */

/******** Sales dept. end ********/

/* 100618001 begin */

//滚动图片构造函数
//UI&UE Dept. mengjia
var sina={$:function(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}},isIE:navigator.appVersion.indexOf("MSIE")!=-1?true:false,addEvent:function(obj,eventType,func){if(obj.attachEvent){obj.attachEvent("on"+eventType,func)}else{obj.addEventListener(eventType,func,false)}},delEvent:function(obj,eventType,func){if(obj.detachEvent){obj.detachEvent("on"+eventType,func)}else{obj.removeEventListener(eventType,func,false)}},readCookie:function(l){var i="",I=l+"=";if(document.cookie.length>0){var offset=document.cookie.indexOf(I);if(offset!=-1){offset+=I.length;var end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;i=unescape(document.cookie.substring(offset,end))}};return i},writeCookie:function(O,o,l,I){var i="",c="";if(l!=null){i=new Date((new Date).getTime()+l*3600000);i="; expires="+i.toGMTString()};if(I!=null){c=";domain="+I};document.cookie=O+"="+escape(o)+i+c},readStyle:function(i,I){if(i.style[I]){return i.style[I]}else if(i.currentStyle){return i.currentStyle[I]}else if(document.defaultView&&document.defaultView.getComputedStyle){var l=document.defaultView.getComputedStyle(i,null);return l.getPropertyValue(I)}else{return null}}};function ScrollPic(scrollContId,arrLeftId,arrRightId,dotListId,listType){this.scrollContId=scrollContId;this.arrLeftId=arrLeftId;this.arrRightId=arrRightId;this.dotListId=dotListId;this.listType=listType;this.dotClassName="dotItem";this.dotOnClassName="dotItemOn";this.dotObjArr=[];this.listEvent="onclick";this.circularly=true;this.pageWidth=0;this.frameWidth=0;this.speed=10;this.space=10;this.upright=false;this.pageIndex=0;this.autoPlay=true;this.autoPlayTime=5;this._autoTimeObj;this._scrollTimeObj;this._state="ready";this.stripDiv=document.createElement("DIV");this.lDiv01=document.createElement("DIV");this.lDiv02=document.createElement("DIV")};ScrollPic.prototype={version:"1.40",author:"mengjia",pageLength:0,initialize:function(){var thisTemp=this;if(!this.scrollContId){throw new Error("必须指定scrollContId.");return};this.scDiv=sina.$(this.scrollContId);if(!this.scDiv){throw new Error("scrollContId不是正确的对象.(scrollContId = \""+this.scrollContId+"\")");return};this.scDiv.style[this.upright?'height':'width']=this.frameWidth+"px";this.scDiv.style.overflow="hidden";this.lDiv01.innerHTML=this.scDiv.innerHTML;this.scDiv.innerHTML="";this.scDiv.appendChild(this.stripDiv);this.stripDiv.appendChild(this.lDiv01);if(this.circularly){this.stripDiv.appendChild(this.lDiv02);this.lDiv02.innerHTML=this.lDiv01.innerHTML};this.stripDiv.style.overflow="hidden";this.stripDiv.style.zoom="1";this.stripDiv.style[this.upright?'height':'width']="32766px";if(!this.upright){this.lDiv01.style.cssFloat="left";this.lDiv01.style.styleFloat="left";this.lDiv01.style.overflow="hidden"};this.lDiv01.style.zoom="1";if(this.circularly&&!this.upright){this.lDiv02.style.cssFloat="left";this.lDiv02.style.styleFloat="left";this.lDiv02.style.overflow="hidden"};this.lDiv02.style.zoom="1";sina.addEvent(this.scDiv,"mouseover",function(){thisTemp.stop()});sina.addEvent(this.scDiv,"mouseout",function(){thisTemp.play()});if(this.arrLeftId){this.alObj=sina.$(this.arrLeftId);if(this.alObj){sina.addEvent(this.alObj,"mousedown",function(){thisTemp.rightMouseDown()});sina.addEvent(this.alObj,"mouseup",function(){thisTemp.rightEnd()});sina.addEvent(this.alObj,"mouseout",function(){thisTemp.rightEnd()})}};if(this.arrRightId){this.arObj=sina.$(this.arrRightId);if(this.arObj){sina.addEvent(this.arObj,"mousedown",function(){thisTemp.leftMouseDown()});sina.addEvent(this.arObj,"mouseup",function(){thisTemp.leftEnd()});sina.addEvent(this.arObj,"mouseout",function(){thisTemp.leftEnd()})}};var pages=Math.ceil(this.lDiv01[this.upright?'offsetHeight':'offsetWidth']/this.frameWidth),i,tempObj;this.pageLength=pages;if(this.dotListId){this.dotListObj=sina.$(this.dotListId);this.dotListObj.innerHTML="";if(this.dotListObj){for(i=0;i<pages;i++){tempObj=document.createElement("span");this.dotListObj.appendChild(tempObj);this.dotObjArr.push(tempObj);if(i==this.pageIndex){tempObj.className=this.dotOnClassName}else{tempObj.className=this.dotClassName};if(this.listType=='number'){tempObj.innerHTML=i+1}else if(this.listType!==''){tempObj.innerHTML=this.listType};tempObj.title="第"+(i+1)+"页";tempObj.num=i;tempObj[this.listEvent]=function(){thisTemp.pageTo(this.num)}}}};this.scDiv[this.upright?'scrollTop':'scrollLeft']=0;if(this.autoPlay){this.play()};this._scroll=this.upright?'scrollTop':'scrollLeft';this._sWidth=this.upright?'scrollHeight':'scrollWidth';if(typeof(this.onpagechange)==='function'){this.onpagechange()};this.iPad()},leftMouseDown:function(){if(this._state!="ready"){return};var thisTemp=this;this._state="floating";this._scrollTimeObj=setInterval(function(){thisTemp.moveLeft()},this.speed)},rightMouseDown:function(){if(this._state!="ready"){return};var thisTemp=this;this._state="floating";this._scrollTimeObj=setInterval(function(){thisTemp.moveRight()},this.speed)},moveLeft:function(){if(this.circularly){if(this.scDiv[this._scroll]+this.space>=this.lDiv01[this._sWidth]){this.scDiv[this._scroll]=this.scDiv[this._scroll]+this.space-this.lDiv01[this._sWidth]}else{this.scDiv[this._scroll]+=this.space}}else{if(this.scDiv[this._scroll]+this.space>=this.lDiv01[this._sWidth]-this.frameWidth){this.scDiv[this._scroll]=this.lDiv01[this._sWidth]-this.frameWidth;this.leftEnd()}else{this.scDiv[this._scroll]+=this.space}};this.accountPageIndex()},moveRight:function(){if(this.circularly){if(this.scDiv[this._scroll]-this.space<=0){this.scDiv[this._scroll]=this.lDiv01[this._sWidth]+this.scDiv[this._scroll]-this.space}else{this.scDiv[this._scroll]-=this.space}}else{if(this.scDiv[this._scroll]-this.space<=0){this.scDiv[this._scroll]=0;this.rightEnd()}else{this.scDiv[this._scroll]-=this.space}};this.accountPageIndex()},leftEnd:function(){if(this._state!="floating"){return};this._state="stoping";clearInterval(this._scrollTimeObj);var fill=this.pageWidth-this.scDiv[this._scroll]%this.pageWidth;this.move(fill)},rightEnd:function(){if(this._state!="floating"){return};this._state="stoping";clearInterval(this._scrollTimeObj);var fill=-this.scDiv[this._scroll]%this.pageWidth;this.move(fill)},move:function(num,quick){var thisTemp=this;var thisMove=num/5;if(!quick){if(thisMove>this.space){thisMove=this.space};if(thisMove<-this.space){thisMove=-this.space}};if(Math.abs(thisMove)<1&&thisMove!=0){thisMove=thisMove>=0?1:-1}else{thisMove=Math.round(thisMove)};var temp=this.scDiv[this._scroll]+thisMove;if(thisMove>0){if(this.circularly){if(this.scDiv[this._scroll]+thisMove>=this.lDiv01[this._sWidth]){this.scDiv[this._scroll]=this.scDiv[this._scroll]+thisMove-this.lDiv01[this._sWidth]}else{this.scDiv[this._scroll]+=thisMove}}else{if(this.scDiv[this._scroll]+thisMove>=this.lDiv01[this._sWidth]-this.frameWidth){this.scDiv[this._scroll]=this.lDiv01[this._sWidth]-this.frameWidth;this._state="ready";return}else{this.scDiv[this._scroll]+=thisMove}}}else{if(this.circularly){if(this.scDiv[this._scroll]+thisMove<0){this.scDiv[this._scroll]=this.lDiv01[this._sWidth]+this.scDiv[this._scroll]+thisMove}else{this.scDiv[this._scroll]+=thisMove}}else{if(this.scDiv[this._scroll]-thisMove<0){this.scDiv[this._scroll]=0;this._state="ready";return}else{this.scDiv[this._scroll]+=thisMove}}};num-=thisMove;if(Math.abs(num)==0){this._state="ready";if(this.autoPlay){this.play()};this.accountPageIndex();return}else{this.accountPageIndex();this._scrollTimeObj=setTimeout(function(){thisTemp.move(num,quick)},this.speed)}},pre:function(){if(this._state!="ready"){return};this._state="stoping";this.pageTo(this.pageIndex-1)},next:function(reStar){if(this._state!="ready"){return};this._state="stoping";if(this.circularly){this.pageTo(this.pageIndex+1)}else{if(this.scDiv[this._scroll]>=this.lDiv01[this._sWidth]-this.frameWidth){this._state="ready";if(reStar){this.pageTo(0)}}else{this.pageTo(this.pageIndex+1)}}},play:function(){var thisTemp=this;if(!this.autoPlay){return};clearInterval(this._autoTimeObj);this._autoTimeObj=setInterval(function(){thisTemp.next(true)},this.autoPlayTime*1000)},stop:function(){clearInterval(this._autoTimeObj)},pageTo:function(num){if(this.pageIndex==num){return};if(num<0){num=this.pageLength-1};clearTimeout(this._scrollTimeObj);this._state="stoping";var fill=num*this.frameWidth-this.scDiv[this._scroll];this.move(fill,true)},accountPageIndex:function(){var pageIndex=Math.floor(this.scDiv[this._scroll]/this.frameWidth);if(pageIndex==this.pageIndex){return};this.pageIndex=pageIndex;if(this.pageIndex>Math.floor(this.lDiv01[this.upright?'offsetHeight':'offsetWidth']/this.frameWidth)){this.pageIndex=0};var i;for(i=0;i<this.dotObjArr.length;i++){if(i==this.pageIndex){this.dotObjArr[i].className=this.dotOnClassName}else{this.dotObjArr[i].className=this.dotClassName}};if(typeof(this.onpagechange)==='function'){this.onpagechange()}},iPadX:0,iPadLastX:0,iPadStatus:'ok',iPad:function(){if(typeof(window.ontouchstart)==='undefined'){return};var tempThis=this;sina.addEvent(this.scDiv,'touchstart',function(e){tempThis._touchstart(e)});sina.addEvent(this.scDiv,'touchmove',function(e){tempThis._touchmove(e)});sina.addEvent(this.scDiv,'touchend',function(e){tempThis._touchend(e)})},_touchstart:function(e){this.stop();this.iPadX=e.touches[0].pageX;this.iPadScrollX=window.pageXOffset;this.iPadScrollY=window.pageYOffset;this.scDivScrollLeft=this.scDiv[this._scroll]},_touchmove:function(e){if(e.touches.length>1){this.iPadStatus='ok';return};this.iPadLastX=e.touches[0].pageX;var cX=this.iPadX-this.iPadLastX;if(this.iPadStatus=='ok'){if(this.iPadScrollY==window.pageYOffset&&this.iPadScrollX==window.pageXOffset&&Math.abs(cX)>50){this.iPadStatus='touch'}else{return}};this._state='touch';var scrollNum=this.scDivScrollLeft+cX;if(scrollNum>=this.lDiv01[this._sWidth]){scrollNum=scrollNum-this.lDiv01[this._sWidth]};if(scrollNum<0){scrollNum=scrollNum+this.lDiv01[this._sWidth]};this.scDiv[this._scroll]=scrollNum;e.preventDefault()},_touchend:function(e){if(this.iPadStatus!='touch'){return};this.iPadStatus='ok';this._state='ready';var cX=this.iPadX-this.iPadLastX;if(cX<0){this.pre()}else{this.next()};this.play()}};

/* 100618001 end */
