if(typeof FUI=="undefined"||!FUI){var FUI={}}FUI.apply=function(b,d){if(b&&d){for(var a in d){b[a]=d[a]}}return b};(function(){var a=false,d=function d(e){var f=e.toString().match(/^[\s\(]*function[^(]*\(([^\)]*)\)/)[1].replace(/\s+/g,"").split(",");return f.length==1&&!f[0]?[]:f},b=false;FUI.apply(FUI,{ns:function(){var e=arguments,k=null,g,f,h;for(g=0;g<e.length;g=g+1){h=(""+e[g]).split(".");k=window;for(f=0;f<h.length;f=f+1){k[h[f]]=k[h[f]]||{};k=k[h[f]]}}return k},load:function(f,h){var e=null,g=this;e=document.createElement("script");e.type="text/javascript";if(e.readyState){e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete"){e.onreadystatechange=null;if(typeof h==="function"){h()}}}}else{e.onload=function(){if(typeof h==="function"){h()}}}e.src=f;document.getElementsByTagName("head")[0].appendChild(e);return this},create:function(g,i){if(typeof(g)==="object"){i=g;g=null}function h(){if(g){this.baseprototype=g.prototype}this.init.apply(this,arguments)}if(g){var e=function(){};e.prototype=g.prototype;h.prototype=new e();h.prototype.constructor=h}for(var f in i){if(i.hasOwnProperty(f)){if(g&&typeof(i[f])==="function"&&d(i[f])[0]==="$super"){h.prototype[f]=(function(j,k){return function(){var l=this;$super=function(){return g.prototype[j].apply(l,arguments)};return k.apply(this,Array.prototype.concat.apply($super,arguments))}})(f,i[f])}else{h.prototype[f]=i[f]}}}return h},debug:{log:function(){},on:function(){if(window.console&&console.log&&!b){FUI.debug.log=function(e,f){var f=f||"";console.log(e,f)};b=true}},off:function(){if(b){b=false;FUI.debug.log=function(){}}}}})})();FUI.ns("FUI.lan.array","FUI.lan.string","FUI.util","FUI.widget");(function(){var a=FUI.lan.array,b=Array.prototype.slice;a.some=function(e,h){var f=0,d=e.length>>>0;if(typeof h!="function"){throw new TypeError()}var g=arguments[2];for(;f<d;f++){if(f in e&&h.call(g,e[f],f,e)){return true}}return false};a.every=function(e,h){var f=0,d=e.length>>>0;if(typeof h!="function"){throw new TypeError()}var g=arguments[2];for(;f<d;f++){if(f in e&&!h.call(g,e[f],f,e)){return false}}return true};a.lastIndexOf=function(e,f){var d=e.length;var g=Number(arguments[2]);if(isNaN(g)){g=d-1}else{g=(g<0)?Math.ceil(g):Math.floor(g);if(g<0){g+=d}else{if(g>=d){g=d-1}}}for(;g>-1;g--){if(g in e&&e[g]===f){return g}}return -1};a.indexOf=function(e,f){var d=e.length>>>0;var g=Number(arguments[2])||0;g=(g<0)?Math.ceil(g):Math.floor(g);if(g<0){g+=d}for(;g<d;g++){if(g in e&&e[g]===f){return g}}return -1};a.reduce=function(e,f){var d=e.length>>>0;if(typeof f!="function"){throw new TypeError()}if(d==0&&arguments.length==2){throw new TypeError()}var g=0;if(arguments.length>=3){var h=arguments[2]}else{do{if(g in e){h=e[g++];break}if(++g>=d){throw new TypeError()}}while(true)}for(;g<d;g++){if(g in e){h=f.call(null,h,e[g],g,e)}}return h};a.reduceRight=function(e,f){var d=e.length>>>0;if(typeof f!="function"){throw new TypeError()}if(d==0&&arguments.length==2){throw new TypeError()}var g=d-1;if(arguments.length>=3){var h=arguments[2]}else{do{if(g in e){h=e[g--];break}if(--g<0){throw new TypeError()}}while(true)}for(;g>=0;g--){if(g in e){h=f.call(null,h,e[g],g,e)}}return h};a.uniq=function(d){var j=[],e=d.length,g=0,h={};for(;g<e;g++){h[d[g]]=null}for(var f in h){j.push(f)}return j};a.without=function(e){var d=b.call(arguments,1),h=0,f=d.length,j=null,g=0;e=a.uniq(e);for(;h<f;h++){g=a.indexOf(e,d[h]);e.splice(g,1)}return e};FUI.apply(FUI,a)})();var Config={getOption:function(a){if(typeof this.option[a]==="undefined"){return null}else{return this.option[a]}},setOption:function(a,b){if(this.option){this.option[a]=b}return this},getOptions:function(){return this.option}};FUI.util.Cookies={set:function(d,f){var a=arguments;var i=arguments.length;var b=a[2]||null;var h=a[3]||"/";var e=a[4]||null;var g=a[5]||false;document.cookie=d+"="+escape(f)+((b==null)?"":("; expires="+b.toGMTString()))+((h==null)?"":("; path="+h))+((e==null)?"":("; domain="+e))+((g==true)?"; secure":"")},get:function(e){var b=e+"=";var g=b.length;var a=document.cookie.length;var f=0;var d=0;while(f<a){d=f+g;if(document.cookie.substring(f,d)==b){return FUI.util.Cookies.getCookieVal(d)}f=document.cookie.indexOf(" ",f)+1;if(f==0){break}}return null},clear:function(a){if(FUI.util.Cookies.get(a)){document.cookie=a+"=; expires=Thu, 01-Jan-70 00:00:01 GMT"}},getCookieVal:function(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(b,a))}};CSS={viewport:function(){var d=document.documentElement;var a=self.innerWidth||(d&&d.clientWidth)||document.body.clientWidth,b=self.innerHeight||(d&&d.clientHeight)||document.body.clientHeith;return{width:a,height:b}},pageHeight:function(){if($.browser.msie&&$.browser.version<7){var b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var a=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(b<a){return $(window).height()+"px"}else{return b+"px"}}else{if($.browser.opera){return Math.max(window.innerHeight,$(document).height())+"px"}else{return $(document).height()+"px"}}},pageWidth:function(){if($.browser.msie&&$.browser.version<7){var a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(a<b){return $(window).width()+"px"}else{return a+"px"}}else{if($.browser.opera){return Math.max(window.innerWidth,$(document).width())+"px"}else{return $(document).width()+"px"}}},pageSize:function(){return{width:CSS.pageWidth(),height:CSS.pageHeight()}},centerWindow:function(f){var i,g,a,b,j,d,k,e,m,h;i=document.documentElement;h=CSS.viewport();g=h.width;a=h.height;b=self.pageXOffset||(i&&i.scrollLeft)||document.body.scrollLeft;j=self.pageYOffset||(i&&i.scrollTop)||document.body.scrollTop;d=f.width();k=f.height();e=b+g/2-d/2;m=j+a/2-k/2;f.css({left:e,top:m})},radioClass:function(b,a){if(a.constructor===Array){c=c.join(" ")}return jQuery(b).addClass(c).siblings().removeClass(c).end()},setStyle:function(b,a,d){},getStyle:function(b,a){}};FUI.apply(Function.prototype,(function(){var b=function(h,g,f){var i=this;return function(){var k=g||arguments;if(f===true){k=Array.prototype.slice.call(arguments,0);k=k.concat(g)}else{if(typeof f=="number"){k=Array.prototype.slice.call(arguments,0);var j=[f,0].concat(g);Array.prototype.splice.apply(k,j)}}return i.apply(h||window,k)}};var d=function(h,j,g,f){var i=this.createDelegate(j,g,f);if(h>0){return setTimeout(i,h)}i();return 0};var e=function(g,f){var h=this,f=f||{},g=g||window;return function(){var i=Array.prototype.join.call(arguments,"_");if(!(i in f)){f[i]=h.apply(g,arguments)}return f[i]}};var a=function(){var h=Array.prototype.slice;if(!arguments.length){return this}var f=this,g=h.call(arguments,0);return function(){var i=g.concat(h.call(arguments,0));return f.apply(this,i)}};return{createDelegate:b,defer:d,memoize:e,curry:a}})());FUI.util.JSON=function(){var isNative=window.JSON&&window.JSON.toString()=="[object JSON]";function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}return{encode:isNative?JSON.stringify:function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})},decode:isNative?JSON.parse:function(text){return eval("("+text+")")}}}();FUI.encode=FUI.util.JSON.encode;FUI.decode=FUI.util.JSON.decode;(function(){var a=FUI.lan.string;a.trim=function(b){return(b||"").replace(/^\s+|\s+$/g,"")};a.trimRight=function(b){return(b||"").replace(/\s+$/,"")};a.trimLeft=function(b){return(b||"").replace(/^\s+/,"")};a.truncate=function(e,d,b){d=d||30;b=typeof b=="undefined"?"...":b;return e.length>d?e.slice(0,d-b.length)+b:String(e)};a.stripTags=function(b){return(b||"").replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")};a.escapeHTML=function(b){return(b||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};a.unescapeHTML=function(b){return a.stripTags(b).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};a.camelCase=function(b){return(b||"").replace(/-\D/g,function(d){return d.charAt(1).toUpperCase()})};a.hyphenate=function(b){return(b||"").replace(/[A-Z]/g,function(d){return("-"+d.charAt(0).toLowerCase())})};FUI.apply(FUI,a)})();FUI.widget.Dialog=FUI.create({init:function(b,a){this.content=b||"这里是内容";this.opt=jQuery.extend(FUI.widget.Dialog.defaults,a||{});if(typeof this.opt.beforeShow=="function"){this.opt.beforeShow(this)}if(document.getElementById(this.opt.containerId)){return false}this.initMarkup();this.title=document.getElementById(this.opt.titleId);this.contentContainer=document.getElementById(this.opt.contentId);if(this.opt.close){this.isClose()}this.close=document.getElementById(this.opt.closeId);this.buttonContainer=document.getElementById(this.opt.buttonsId);if(this.title){this.setTitle(this.opt.title)}if(this.contentContainer){this.setContent(this.content)}if(!this.opt.conform){this.buildIframe(this.content,this.container)}if(this.buttonContainer){this.createButton(this.opt.buttons)}if(typeof this.opt.afterShow=="function"){this.opt.afterShow(this)}this.container.style.display="block";this.initEvent()},initMarkup:function(){var a=document.createElement("div");this.container=a;a.className=this.opt.containerClassName;delete this.opt.containerClassName;a.id=this.opt.containerId;delete this.opt.containerId;a.style.position="absolute";if(this.opt.conform){var b=this._buildHTML();a.innerHTML=b;delete b}a.style.display="none";if(this.opt.width){this.setWidth(this.opt.width)}if(this.opt.height){this.setHeight(this.opt.height)}if(this.opt.zIndex){a.style.zIndex=this.opt.zIndex}document.body.appendChild(a);if(this.opt.modal){this.setModal()}if(this.opt.align){this.setPosition(this.opt.align)}},_buildHTML:function(){return['<div class="inbox_bg">','<div class="inbox_layer01">','<div class="layer_tit lay_bg01"><h6 id="'+this.opt.titleId+'"></h6></div>','<div class="layer_center" id="'+this.opt.contentId+'"></div>','<div class="layer_bot" id="'+this.opt.buttonsId+'"></div>',"</div>","</div>"].join("")},initEvent:function(){if(this.close){this.close.onclick=this.destroy(this)}var a=this.container;var b=this;window.onscroll=window.onresize=function(){if(b.opt.autoAdjust){b.setPosition(b.opt.align)}if(b.opt.modal){b.resizeModal()}}},setContent:function(g){var f=g.length,a=g.indexOf("#");var i=g.substring(a+1,f);if(a!=-1){if(/^URL/.test(g)){var e='<iframe id="_fx_dialog_frame" style="height:'+this.opt.height+'px; width:100%;" scrolling="no" frameborder="0" allowtransparency="yes"></iframe>';var h=document.getElementById("_fx_dialog_frame");if(!h){if(this.contentContainer){this.contentContainer.innerHTML=e}else{this.container.innerHTML=e}}document.getElementById("_fx_dialog_frame").src=i;this.iframe=document.getElementById("_fx_dialog_frame")}else{var d=document.getElementById(i);this.innerContent=d;d.style.display="block";var b=document.createElement("div").appendChild(d).innerHTML;this.contentContainer.innerHTML=b}}else{this.contentContainer.innerHTML=g}},buildIframe:function(e,h){var d=e.length,a=e.indexOf("#");var g=e.substring(a+1,d);if(/^URL/.test(e)){var b='<iframe id="_fx_dialog_frame" style="height:'+this.opt.height+'px; width:100%;" scrolling="no" frameborder="0" allowtransparency="yes"></iframe>';var f=document.getElementById("_fx_dialog_frame");if(!f){h.innerHTML=b}document.getElementById("_fx_dialog_frame").src=g;this.iframe=document.getElementById("_fx_dialog_frame")}},setTitle:function(a){this.title.innerHTML=a},setPosition:function(b){this.opt.align=b;var a=typeof b;switch(a){case"string":CSS.centerWindow(jQuery(this.container));break;case"object":if(b.left&&b.top){jQuery(this.container).css({left:$(window).scrollLeft()+b.left,top:$(window).scrollTop()+b.top})}else{if(b.left){jQuery(this.container).css({left:$(window).scrollLeft()+b.left})}else{if(b.top){jQuery(this.container).css({top:$(window).scrollTop()+b.top})}}}break}},setWidth:function(a){this.container.style.width=a+"px"},setHeight:function(a){if(this.container){this.container.style.height=a+"px"}if(this.iframe){this.iframe.style.height=a+"px"}},isClose:function(){jQuery(this.title).after('<div class="close" id="'+this.opt.closeId+'"></div>')},createButton:function(h){var g=1,f="_fx_dialog_",e="button01 l_join0",a=this;for(var d in h){var b=document.createElement("button");b.id=f+d;b.className=e+g;b.onclick=this._buttonClick(h[d]["handler"],a);b.innerHTML=h[d]["label"];this.buttonContainer.appendChild(b);g++}},_buttonClick:function(a,b){return function(){a(b)}},setModal:function(){var e=$('<iframe id="_fx_dialog_iframeId" style="width:100%;height:100%;opacity:0;position:absolute;border-width:0px;background:#000" src="about:blank" frameborder="0"></iframe>');var a=$('<div class="_fx_dialog_bg" style="background:#999;position:absolute;left:0;top:0;height:100%;width:100%"></div>');if(jQuery.browser.msie&&jQuery.browser.version=="6.0"){a.append(e)}var d=CSS.pageSize();var g=d.width;var b=d.height;var f=this.container.style.zIndex-1;a.css({width:g,height:b,opacity:0.4,zIndex:f});this.bgpanel=a;this.bgiframe=e;$("body").append(a);this.bgpanel=a},resizeModal:function(){var b=CSS.pageSize();var d=b.width;var a=b.height;this.bgpanel.css({width:d,height:a});this.bgiframe.css({width:d,height:a})},hide:function(){this.destroy(this)()},destroy:function(a){return function(){if(typeof a.opt.beforeClose=="function"){a.opt.beforeClose(a)}if(a.bgpanel){a.bgpanel.remove()}if(a.container){jQuery(a.container).remove()}if(typeof a.opt.afterClose=="function"){a.opt.afterClose(a)}delete a.content;delete a.title;delete a.contentContainer;delete a.buttonContainer;delete a.container;delete a.opt.afterClose;delete a.opt.beforeClose;delete a.opt.buttons;if(a.opt.beforeShow){delete a.opt.beforeShow}if(a.opt.afterShow){delete a.opt.afterShow}if(a.innerContent){document.body.appendChild(a.innerContent);a.innerContent.style.display="none"}}}});FUI.widget.Dialog.defaults={width:300,height:400,title:"这里是标题",modal:true,align:"center",zIndex:9999,close:true,containerClassName:"favorites_layer",autoAdjust:true,afterClose:function(){},containerId:"_fx_dialog",titleId:"_fx_dialog_title",contentId:"_fx_dialog_content",buttonsId:"_fx_dialog_buttons",closeId:"_fx_dialog_close",conform:true};FUI.widget.Msg=FUI.create(FUI.widget.Dialog,{_buildHTML:function(){return['<div class="modebox">','<div class="box_tr"><div class="box_tl"><div class="box_tm"><h2><img alt="" class="icon_title" src="http://res.fetionpic.com/img/blank/spacer.gif" /><span id="'+this.opt.titleId+'"></span></h2></div></div></div>','<div class="box_mr"><div class="box_ml"><div class="box_mm">','<div class="pop_content"><div class="popup_c" id="'+this.opt.contentId+'">','<div class="poput_tab"><div class="poput_tab_row"><div class="pop_img"><div class="pop_bg" id="'+this.opt.iconId+'"></div></div>','<div class="pop_text" id="fx_pop_text"></div></div></div>',"</div></div>",'<div class="layer_bnt" id="'+this.opt.buttonsId+'"></div>',"</div></div></div>",'<div class="box_br"><div class="box_bl"><div class="box_bm"></div></div></div>',"</div>"].join("")},setContent:function($super,a){if(this.opt.alert){jQuery("#fx_pop_text").prepend(a);if(this.opt.icon){document.getElementById(this.opt.iconId).className=this.opt.icon}}else{$super(a)}},createButton:function(h){var g=1,f="_fx_dialog_",e={ok:"btn_69x21 hand mr20",cancel:"btn_file69x21 hand"},a=this;for(var d in h){var b=document.createElement("button");b.id=f+d;b.className=e[d];b.onclick=this._buttonClick(h[d]["handler"],a);b.innerHTML=h[d]["label"];this.buttonContainer.appendChild(b);g++}},isClose:function(){jQuery(this.title).after('<div class="op_text"><a href="javascript:void(0)"><img class="icon_model_close" id="'+this.opt.closeId+'" alt="关闭" src="http://res.fetionpic.com/img/blank/spacer.gif"/></a></div>')}});FUI.widget.Msg.show=function(b){var a=b.width||260;var i=b.height||"";var h=b.title||"这里是标题";var d=b.msg||"这里是提示信息";var e="model_popup_layer";var f=b.buttons||{};var j=b.close;var g=b.icon||"pop_bg";new FUI.widget.Msg(d,{title:h,containerClassName:e,height:i,width:a,buttons:f,alert:true,align:"center",containerId:"_fx_msg",titleId:"_fx_msg_title",contentId:"_fx_msg_content",buttonsId:"_fx_msg_buttons",closeId:"_fx_msg_close",iconId:"_fx_dialog_icon",close:j,icon:g})};FUI.widget.MessageBox=FUI.create(FUI.widget.Dialog,{_buildHTML:function(){return['<div class="inbox_bg">','<div class="inbox_layer01">','<div class="layer_tit lay_bg01"><h6 id="_fx_dialog_title"></h6></div>','<div class="layer_center" id="_fx_dialog_content">','<div class="pop_content">','<div class="pop_img">','<div class="pop_bg"></div>',"</div>",'<div class="pop_text" id="fx_pop_text"></div>',"</div>",'<div class="layer_bot" id="_fx_dialog_buttons"></div>',"</div>","</div>","</div>"].join("")},setContent:function(a){jQuery("#fx_pop_text").prepend(a)}});FUI.widget.Tips=FUI.create(FUI.widget.Dialog,{init:function(f,b){this.content=f||"这里是内容";var a={modal:false,containerClassName:"model_fade_layer",delay:3000};this.opt=jQuery.extend(FUI.widget.Dialog.defaults,a,b||{});if(document.getElementById(this.opt.containerId)){return}this.initMarkup();this.contentContainer=document.getElementById(this.opt.contentId);if(this.contentContainer){this.setContent(this.content)}if(this.opt.align){this.setPosition(this.opt.align)}this.container.style.display="block";this.initEvent();if(jQuery.browser.msie&&jQuery.browser.version=="6.0"){var e=$('<iframe id="_fx_tips_iframeId" style="width:'+$("#_fx_tips_content").parent().parent().outerWidth()+';height:100%;left:0;top:0;position:absolute;border-width:0px;z-index:-1" src="about:blank" frameborder="0" scrolling="no"></iframe>');$("#_fx_tips").append(e)}var d=this;window.setTimeout(d.destroy(d),this.opt.delay)},_buildHTML:function(){return['<div class="model_fade_inner">','<div class="inner">','<h6 id="'+this.opt.contentId+'"></h6>',"</div>","</div>"].join("")}});FUI.widget.Tips.show=function(d){var e=d.content||"这里是内容",b=d.delay||3000;var a=new FUI.widget.Tips(e,{delay:b,height:35,width:"",containerId:"_fx_tips",contentId:"_fx_tips_content",containerId:"_fx_tips",align:"center"});if(d.left&&d.top){a.setPosition({left:d.left,top:d.top})}else{if(d.top){a.setPosition({top:d.top})}else{if(d.left){a.setPosition({left:d.left})}}}};FUI.widget.LoadMask=FUI.create(FUI.widget.Dialog,{init:function(d,b){this.content=d||"正在载入中，请稍等…";var a={modal:true,containerClassName:"onload_layer",height:50,width:216,align:"center"};this.opt=jQuery.extend(FUI.widget.Dialog.defaults,a,b||{});this.initMarkup();this.contentContainer=document.getElementById(this.opt.contentId);this.container.style.display="block";if(this.contentContainer){this.setContent(this.content)}this.initEvent()},_buildHTML:function(){var a=this.opt.imgPath||"/img/home/uncm/onload.gif";return['<img src="'+a+'" width="32px" height="32px"/>','<strong id="'+this.opt.contentId+'"></strong>'].join("")}});FUI.widget.Logger=function(){this.init.apply(this,arguments)};FUI.widget.Logger.prototype.init=function(){this.initMarkup();this.cache=["以下是调试信息"];this.outputList=document.getElementById("outputList");this.container=document.getElementById("sparrow")};FUI.widget.Logger.prototype.initMarkup=function(){var b=document.createElement("div");b.id="sparrow";var a=['<div class="top">','<span class="clear" id="sparrow_clear" title="清除"></span><span class="close" id="sparrow_close" title="关闭"></span>',"</div>",'<div class="main">','<ul id="outputList">',"</ul>","</div>",'<div class="bottom">',"</div>"].join("");b.innerHTML=a;document.body.appendChild(b);this.initEvent()};FUI.widget.Logger.prototype.initEvent=function(){var b=navigator.userAgent.toLowerCase();var a=document.getElementById("sparrow_clear");var d=document.getElementById("sparrow_close");a.onclick=this.createClearClick(this);d.onclick=this.createCloseClick(this);window.onresize=window.onscroll=this.Fixed(this)};FUI.widget.Logger.prototype.createClearClick=function(a){return function(){a.outputList.innerHTML=""}};FUI.widget.Logger.prototype.createCloseClick=function(a){return function(){document.body.removeChild(a.container)}};FUI.widget.Logger.prototype.addMessage=function(d,b){var b=b||"debug";var a=document.createElement("LI");a.className=b;a.innerHTML=['<span class="icon"></span>',d].join("");this.outputList.appendChild(a);this.outputList.scrollTop=this.outputList.scrollHeight};FUI.widget.Logger.prototype.Fixed=function(a){return function(){var f=a.container;var e=380||f.offsetHeight||f.clientHeight;var g=document.documentElement;var b=g.innerHeight||(g&&g.clientHeight)||document.body.clientHeight;var d=self.pageYOffset||(g&&g.scrollTop)||document.body.scrollTop;f.style.top=d+b-e+"px"}};if(typeof console==="undefined"||!console){FUI.ns("console");var logger=null;window.console.log=function(b,a){if(!logger){logger=new FUI.widget.Logger()}logger.addMessage(b,a)}}FUI.widget.SimpleTab=FUI.create({init:function(b,a){this.ele=typeof b=="string"?document.getElementById(b):b;this.opt=jQuery.extend(FUI.widget.SimpleTab.defaults,a);this.initEvent()},initEvent:function(){var b=this,a=jQuery(":first-child",this.ele).eq(0),d;a.bind(b.opt.eventType,function(f){if(b.opt.eventType=="mouseover"){if(d){window.clearTimeout(d)}d=window.setTimeout(function(){b.mouseHandler(f)},b.opt.delay)}else{b.mouseHandler(f)}}).bind("beforeActive",function(f){b.opt.beforeActive(f,b)}).bind("afterActive",function(f){b.opt.afterActive(f,b)});this.tabcontainer=a},mouseHandler:function(e){var d=e.target,i=this.opt.tabClass,g=new RegExp("(^|\\s)"+i+"(\\s|$)"),a=this.tabcontainer,f,b,h;if(this.opt.tabClass){f=jQuery("."+this.opt.tabClass,a[0])}else{f=jQuery("li",a[0])}h=jQuery(this._clonset(d,this.opt.tabTagName||"li"));b=f.index(h);if(g.test(h[0].className)||d.tagName.toLowerCase()=="a"){if($.isFunction(this.opt.beforeActive)){this.tabcontainer.trigger("beforeActive")}if(this.opt.tabOutClass){h.removeClass(this.opt.tabOutClass);h.siblings().removeClass(this.opt.currentClass).addClass(this.opt.tabOutClass)}h.addClass(this.opt.currentClass).siblings().removeClass(this.opt.currentClass);this._showTabPanel(b)}},_showTabPanel:function(d){var b;if(this.opt.tabPanelClass){tabpanels=jQuery("."+this.opt.tabPanelClass)}else{if(this.opt.tabPanelContainer){tabpanels=jQuery(this.opt.tabPanelContainer).children()}else{tabpanels=jQuery(this.ele).children().slice(1)}}if(this.opt.tabPanelHideClass){tabpanels.eq(d).removeClass(this.opt.tabPanelHideClass);if(this.opt.tabPanelShowClass){tabpanels.eq(d).addClass(this.opt.tabPanelShowClass)}}else{tabpanels.eq(d).css("display","")}for(var e=0,a=tabpanels.length;e<a;e++){if(e!=d){if(this.opt.tabPanelShowClass){tabpanels.eq(e).removeClass(this.opt.tabPanelShowClass)}if(this.opt.tabPanelHideClass){tabpanels.eq(e).addClass(this.opt.tabPanelHideClass)}else{tabpanels.eq(e).css("display","none")}}}if($.isFunction(this.opt.afterActive)){this.tabcontainer.trigger("afterActive")}},_clonset:function(b,a){do{b=b.parentNode}while(b&&b.tagName&&b.tagName.toLowerCase()!=a);return b}});FUI.widget.SimpleTab.defaults={eventType:"click",currentClass:"current",tabClass:"",tabOutClass:"",tabTagName:"",tabPanelClass:"",tabPanelContainer:"",tabPanelHideClass:"",tabPanelShowClass:"",autoSwitchToFirst:true,stopEvent:true,delay:100,beforeActive:null,afterActive:null};FUI.widget.Validation=function(b,a){this.init.apply(this,arguments)};FUI.widget.Validation.defaults={hideClass:"none",validClass:"confirm_right",errorClass:"",tipsClass:""};FUI.widget.Validation.rules={required:{errmessage:"该项为必填项",test:function(d){var a=function(h){var e=[];e.numChecked=0;var g=document.getElementsByTagName("input");for(var j=0,f=g.length;j<f;j++){if(g[j].name=="name"){e.push(g[j]);if(g[j].checked){e.numChecked++}}}return e};var b=function(e){if(e.type=="checkbox"||e.type=="radio"){return a(e.name).numChecked}else{return e.value.length>0}};return b(d)}},email:{errmessage:"对不起，您输入的电子邮件地址有误",test:function(a){return !a.value||/^([\w]+)(\.[\w]+)*@([\w\-]+\.){1,5}([A-Za-z]){2,4}$/i.test(a.value)}},date:{errmessage:"请输入正确的日期格式",test:function(a){return !a.value||/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/.test(a.value)}},onlyNumber:{errmessage:"只能输入数字",test:function(a){return !a.value||/^[0-9]+$/g.test(a.value)}},cmphonenumer:{errmessage:"对不起，只能输入中国移动的手机号码",test:function(a){return !a.value||/^1(3[4-9]|5[012789]|8[78])\d{8}$/.test(a.value)}},chinese:{errmessage:"只能输入中文",test:function(a){return !a.value||/[u4e00-u9fa5]/gi.test(a.value)}}};FUI.widget.Validation.prototype.init=function(b,a){this.vform=document.getElementById(b);this.opt=jQuery.extend(false,FUI.widget.Validation.rules,FUI.widget.Validation.defaults,a);this.initEvent(this.vform)};FUI.widget.Validation.prototype.initEvent=function(f){var d=this,a=f.elements;jQuery(f).bind("submit",function(){return d.validateForm(f)});for(var e=0,b=a.length;e<b;e++){jQuery(a[e]).bind("blur",function(){return d._validateField(this)})}};FUI.widget.Validation.prototype._validateField=function(d){var e=[];for(var a in this.opt){var b=new RegExp("(^|\\s)"+a+"(\\s|$)");if(b.test(d.className)&&!this.opt[a].test(d)){e.push(this.opt[a].errmessage);break}}if(e.length){this.showerrors(d,e)}else{this.hideErrors(d)}return e.length==0};FUI.widget.Validation.prototype.validateForm=function(e){var d=true;var f=e.elements;for(var b=0,a=f.length;b<a;b++){this.hideErrors(f[b]);if(!this._validateField(f[b])){d=false}}return d};FUI.widget.Validation.prototype.hideErrors=function(e){var a=e.parentNode;var b=jQuery(this.last(a));var d=jQuery(this.prev(b[0]));if(b&&b.hasClass(this.opt.errorClass)){b.addClass(this.opt.hideClass)}if(b&&b.hasClass(this.opt.tipsClass)){b.addClass(this.opt.hideClass)}if(d&&d.hasClass(this.opt.validClass)&&d.hasClass(this.opt.hideClass)){d.removeClass(this.opt.hideClass)}};FUI.widget.Validation.prototype.showerrors=function(g,h){var b=g.parentNode;var d=jQuery(this.last(b));var e=jQuery(this.prev(d[0]));var f=this.opt.errorTemplate||"";var a=this.opt.errorClass;if(e&&e.hasClass(this.opt.validClass)&&(!e.hasClass(this.opt.hideClass))){e.addClass(this.opt.hideClass)}if(d){d.removeClass(this.opt.hideClass);if(f){d.html(f.replace(/\{message\}/,h.join("")))}if(a){d.addClass(a)}}};FUI.widget.Validation.prototype.last=function(a){a=a.lastChild;return a&&a.nodeType!=1?this.prev(a):a};FUI.widget.Validation.prototype.prev=function(a){do{a=a.previousSibling}while(a&&a.nodeType!=1);return a};var Constellation=function(){var a=function(g,e){var h=new Date(2009,g-1,e,0,0,0);var b=[["摩羯座",new Date(2009,0,1,0,0,0)],["水瓶座",new Date(2009,0,20,0,0,0)],["双鱼座",new Date(2009,1,19,0,0,0)],["白羊座",new Date(2009,2,21,0,0,0)],["金牛座",new Date(2009,3,21,0,0,0)],["双子座",new Date(2009,4,21,0,0,0)],["巨蟹座",new Date(2009,5,22,0,0,0)],["狮子座",new Date(2009,6,23,0,0,0)],["处女座",new Date(2009,7,23,0,0,0)],["天秤座",new Date(2009,8,23,0,0,0)],["天蝎座",new Date(2009,9,23,0,0,0)],["射手座",new Date(2009,10,24,0,0,0)],["摩羯座",new Date(2009,11,22,0,0,0)]];for(var f=b.length-1;f>=0;f--){if(h>=b[f][1]){return b[f][0]}}};return{show:function(f,h,e){var d=document.getElementById(f);var g=document.getElementById(h);var b=document.getElementById(e);d.onchange=function(){b.innerHTML=a(this[this.selectedIndex].value,g[g.selectedIndex].value)};g.onchange=function(){b.innerHTML=a(d[d.selectedIndex].value,this[this.selectedIndex].value)}},calConstellation:function(d,b){return a(d,b)}}}();var Ctextarea=function(){var a=function(f,e,d){var b=f.val().length;if(b>d){f.val(f.val().substring(0,d))}if(e){if(e.html()!=b){e.html(b)}}};return function(d){d=d||{};var g=jQuery(d.textarea)||"";var e=d.counter&&jQuery(d.counter)||"";var b=d.limit||128;var f;g.focus(function(){f=window.setInterval(function(){a(g,e,b)},100)});g.blur(function(){window.clearInterval(f);a(g,e,b)})}}();FUI.widget.Slide=FUI.create({init:function(g,d){this.opt=jQuery.extend(FUI.widget.Slide.defaults,d||{});this.albumCountainer=jQuery("#"+this.opt.albumCountainerId);this.albumCountainer.css({position:"relative",overflow:"hidden"});this.albumList=typeof g=="string"?document.getElementById(g):g;this.albumList.style.position="absolute";var b=this.albumList.getElementsByTagName("li");var a=b[0];var f=b.length;this.totalNumber=f;this.li=a;this.liNumber=f;this.firstLi=a;this.lastLi=b[b.length-1];this.wh=this.opt.direction==1?"height":"width";this.lt=this.opt.direction==1?"top":"left";this.isbind=false;this.albumList.style[this.lt]="0px";this.distance=this.calDistance(a,f);this.br=this.opt.direction==1?"Bottom":"Right";this.$lastLi=jQuery(this.lastLi);this.$firstLi=jQuery(this.firstLi);this.tl=this.opt.direction==1?"Top":"Left";this.wh=this.opt.direction==1?this.$lastLi.height():this.$lastLi.width();this.containersize={width:this.albumCountainer.width(),height:this.albumCountainer.height()};this.showPointer(this.opt.displayNumber,this.totalNumber)},itemsClickHandler:function(d){var b=jQuery(d);var a=this.firstOffset(b);var e=this.lastOffset(b);if(a==0){this.next(1,this.pre)}if(e==0){this.prev(-1,this.nex)}},calDistance:function(){var e,a=this.li,d=this.liNumber;var b=this.albumCWidthOrHeight(a);if(this.opt.direction==1){this.albumCountainer.css("height",b.cheight);jQuery(this.albumList).css("height",b.height*d);if(this.opt.scrollNumber){e=this.albumCWidthOrHeight(a).height*this.opt.scrollNumber}else{e=this.albumCWidthOrHeight(a).cheight}}else{this.albumCountainer.css("width",b.cwidth);jQuery(this.albumList).css("width",b.width*d);if(this.opt.scrollNumber){e=b.width*this.opt.scrollNumber}else{e=b.cwidth}}return e},setTotalNumber:function(a){this.totalNumber=a},setdisplayNumer:function(a){this.opt.displayNumber=a},albumCWidthOrHeight:function(b){var e=jQuery(b);if(this.opt.displayNumber){var a=b.offsetHeight+parseInt(e.css("marginTop"))+parseInt(e.css("marginBottom"));var d=b.offsetWidth+parseInt(e.css("marginLeft"))+parseInt(e.css("marginRight"));return{cwidth:this.opt.displayNumber*d,cheight:this.opt.displayNumber*a,width:d,height:a}}},firstOffset:function(d){var a=d.offset()[this.lt];var b=a-this.containeroffset-parseInt(d.css("margin"+this.tl));return b},lastOffset:function(b){var e=b.offset()[this.lt]+this.wh+parseInt(b.css("margin"+this.br));var a=this.opt.direction==1?this.containersize.height:this.containersize.width;var d=e-(this.containeroffset+a);return d},showPointer:function(b,g){var d=this;if(this._isShowPointer(b,g)){var f=document.getElementById(this.opt.buttonPrevId);var e=document.getElementById(this.opt.buttonNextId);var a=jQuery(this.albumCountainer).parent();if(!f){a.before(this.opt.buttonPrevHTML);f=document.getElementById(this.opt.buttonPrevId)}if(!e){a.after(this.opt.buttonNextHTML);e=document.getElementById(this.opt.buttonNextId)}this.pre=f;this.nex=e;this.initEvent()}},initEvent:function(){var a=this;jQuery(this.nex).bind(a.opt.buttonPrevEvent,function(){a.prev(-1,this)});this.containeroffset=this.albumCountainer.offset()[this.lt];if(this.opt.autoAttachClick){var b=this;jQuery("li",this.albumList).bind("click",function(){b.itemsClickHandler(this);b.opt.afterClick(this);return false})}},_isShowPointer:function(a,b){if(b>a){return true}return false},pos:function(b,f,a){if(this.animating){return}var e=parseInt(jQuery(this.albumList).css(this.lt),10);var d=e+f*b;this.animate(d,true,a);this.animating=false},next:function(d,e){var a=this.firstOffset(this.$firstLi),b=this,g=this.calDistance();if(a*-1<=g){g=a*-1;e.className=this.opt.buttonPrevDisabledClass;jQuery(e).unbind(this.opt.buttonPrevEvent)}else{e.className=this.opt.buttonPrevenabledClass}var f=function(){a=b.lastOffset(b.$lastLi);if(a>=0&&this.isbind){jQuery(b.nex).bind(b.opt.buttonNextEvent,function(){b.prev(-1,this)});b.nex.className=b.opt.buttonNextenabledClass;this.isbind=false}if(a<0&&!this.isbind){jQuery(b.nex).unbind(b.opt.buttonNextEvent);b.nex.className=b.opt.buttonNextDisabledClass;this.isbind=true}b.opt.afterMove(b)};this.pos(d,g);f()},prev:function(b,e){var d=this.lastOffset(this.$lastLi),a=this,g=this.calDistance();if(d<=g){g=d;e.className=this.opt.buttonNextDisabledClass;jQuery(e).unbind(this.opt.buttonPrevEvent)}else{e.className=this.opt.buttonNextenabledClass}var f=function(){d=a.firstOffset(a.$firstLi);if(d<=0&&!this.isbind){jQuery(a.pre).bind(a.opt.buttonNextEvent,function(){a.next(1,this)});a.pre.className=a.opt.buttonPrevenabledClass;this.isbind=true}if(d>0&&this.isbind){jQuery(a.pre).unbind(a.opt.buttonPrevEvent);a.pre.className=a.opt.buttonPrevDisabledClass;this.isbind=true}a.opt.afterMove(a)};this.pos(b,g);f()},animate:function(g,d,b){if(this.animating){return}var e=this,f=jQuery(this.albumList);this.animating=true;if(!this.opt.animation||d==false){f.css(this.lt,g+"px");this.opt.afterMove()}else{var h=this.opt.direction==1?{top:g}:{left:g};f.animate(h,this.opt.animation,this.opt.easing,b)}}});FUI.widget.Slide.defaults={displayNumber:4,scrollNumber:4,albumCountainerId:"_fx_album_countainer",direction:1,beforeMove:function(){},afterMove:function(){},buttonPrevHTML:'<a href="javascript:void(0)"><img id="_fx_pre_pointer" alt="" class="upfile_btn" src="http://res.fetionpic.com/img/blank/spacer.gif" /></a>',buttonNextHTML:'<a href="javascript:void(0)"><img id="_fx_next_pointer" alt="" class="down_btn" src="http://res.fetionpic.com/img/blank/spacer.gif" /></a>',buttonNextEvent:"click",buttonPrevEvent:"click",buttonPrevDisabledClass:"upfile_btn",buttonPrevenabledClass:"up_btn",buttonNextDisabledClass:"downfile_btn",buttonNextenabledClass:"down_btn",buttonPrevId:"_fx_pre_pointer",buttonNextId:"_fx_next_pointer",animation:"normal",easing:"swing",autoAttachClick:false,afterClick:null};