var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var ospod={};(function($){$.getCSS=function(url,media){var regex=new RegExp("([^\/]+\.css)","g");regex.exec(url);var id=RegExp.$1.replace(".","_");if($('#'+id,'head').size()>0){return;};if(document.createStyleSheet){document.createStyleSheet(url);}else{$(document.createElement('link')).attr({id:id,href:url,media:media||'screen',type:'text/css',rel:'stylesheet'}).appendTo('head');}};})(jQuery);function $oe(element){var e=("string"==typeof(element))?document.getElementById(element):element;return jQuery(e);};function $N(name){return document.getElementsByName(name);};var $A=function(iterable){if(!iterable)return[];if(iterable.toArray){return iterable.toArray();}else{var results=[];for(var i=0,length=iterable.length;i=9){this.isIE9=true;}else if(parseFloat(this.version)>=8){this.isIE8=true;}else if(parseFloat(this.version)>=7){this.isIE7=true;};this.version=(userAgent.match(/.+(?:rv|it|ra|ie)[\/:]([\d.]+)/)||[])[1];}else if(/firefox/.test(userAgent)){this.isFirefox=true;this.version=(userAgent.match(/firefox\/([\d.]+)/)||[])[1];}else if(/chrome/.test(userAgent)){this.isChrome=true;this.version=(userAgent.match(/chrome\/([\d.]+)/)||[])[1];}else if(/opera/.test(userAgent)){this.isOpera=this.isOP=true;this.version=(userAgent.match(/version\/([\d.]+)/)||[])[1];}else if(/safari/.test(userAgent)){this.isSafari=true;this.version=(userAgent.match(/version\/([\d.]+)/)||[])[1];}};var browser=new Browser();ospod.browser=new Browser();function doPagePrint(obj){window.print();};function getWindowEvent(){if(browser.isIE){return window.event;}else{var o=arguments.callee.caller;var e;while(o!=null){e=o.arguments[0];if(e&&(e.constructor==Event||e.constructor==MouseEvent)){return e;};o=o.caller;};return null;}};function getEventSrcElement(){var event=getWindowEvent();if(event!=null){var e=event.target||event.srcElement;return e;};return null;};function getRequestCookie(name){return getCookie(name);};function setCookie(name,value,duration){var Days=duration?duration:30;var exp=new Date();exp.setTime(exp.getTime()+Days*24*60*60*1000);document.cookie=name+"="+escape(value)+";expires="+exp.toGMTString();};function getCookie(name){var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));if(arr!=null)return unescape(arr[2]);return null;};function delCookie(name){var exp=new Date();exp.setTime(exp.getTime()-1);var cval=getCookie(name);if(cval!=null)document.cookie=name+"="+cval+";expires="+exp.toGMTString();};function cookieEnable(){var result=false;if(navigator.cookiesEnabled)return true;var cookieStr="testcookie=yes";document.cookie=cookieStr;var cookieSet=document.cookie;if(cookieSet.indexOf(cookieStr)>-1){result=true;};var date=new Date();date.setTime(date.getTime()-1000);document.cookie=cookieStr+"; expires="+date.toGMTString();return result;};function getHttpRequestObject(){return jQuery.ajaxSettings.xhr();};function getAjaxSubmitStr(name,firstFlag){if($N(name).length==0){return "";};var value=$N(name)[0].value;if(!value||value==null||value==""){return "";};if(firstFlag)return name+"="+value;else return "&"+name+"="+value;};function isNullValue(name,chineseName){if($N(name).length==0){_error_msg_show(chineseName+I18n.nullValueTipSuffix,"",3,"");return true;};var value=$N(name)[0].value;if(!value||value==null||value==""){_error_msg_show(chineseName+I18n.nullValueTipSuffix,"",3,"");return true;};return false;};function openWindow(link,width,height,windowParam){var widthvalue=(window.screen.width-width)/2;var heightvalue=(window.screen.height-height)/2;var PopWindow;PopWindow=window.open(link,"","width="+width+",height="+height+","+windowParam+",left="+widthvalue+",top="+heightvalue,true);PopWindow.focus();};function getFormParams(formName,isEncodeURI){return $($oe(formName)).serialize(false);};function getElementPosition(obj){return $(obj).offset();};function includeJs(file){$.ajax({url:file,dataType:'script',async:false,success:function(){}});};function includeCss(file){$.ajax({url:file,async:false,success:function(data){document.write("");}});};if((!/*@cc_on!@*/0)&&!window.opera){HTMLElement.prototype.__defineGetter__("outerHTML",function(){var a=this.attributes,str="<"+this.tagName,i=0;for(;i";return str+">"+this.innerHTML+"";});HTMLElement.prototype.__defineSetter__("outerHTML",function(s){var r=this.ownerDocument.createRange();r.setStartBefore(this);var df=r.createContextualFragment(s);this.parentNode.replaceChild(df,this);return s;});HTMLElement.prototype.__defineGetter__("canHaveChildren",function(){return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(this.tagName.toLowerCase());});};(function(){var path,t=document.getElementsByTagName('script');t=t[t.length-1].src.replace(/\\/g,'/');path=(t.lastIndexOf('/')<0)?'.':t.substring(0,t.lastIndexOf('/'));var load=function(o,y,n,c){this.options=o;if(o.id&&document.getElementById(o.id))return;if(o.parent){o.parent=false;try{window.top.artDialog(o,y,n,c);return;}catch(e){};};var i=newBox().html(o.title||I18n.dialogDefaultTip,o.url||'about:blank',o.content,y,n,o.yesText||I18n.dialogOKButton,o.noText||I18n.dialogCancelButton,o.style||'',c,o.time,o.id,o.arguments).align(o.width||'auto',o.height||'auto',o.left||'center',o.top||'center',o.fixed,o.lock);return i;},art,boxs=[],onmouse=false,dom=document.documentElement||document.body,IE=!+'\v1',IE6=IE&&navigator.userAgent.indexOf("MSIE 6")!=-1,ie6PngRepair=false,Each=function(a,b){for(var i=0,len=a.length;i'+css+'');},cmd=function(evt,x){var e=evt||window.event;onmouse=true;art=this;art.zIndex();C.x=e.clientX;C.y=e.clientY;C.t=parseInt(this.target.style.top);C.l=parseInt(this.target.style.left);C.w=this.target.clientWidth;C.h=this.target.clientHeight;C.ddw=dom.clientWidth;C.ddh=dom.clientHeight;C.dbw=Math.max(dom.clientWidth,dom.scrollWidth);C.dbh=Math.max(dom.clientHeight,dom.scrollHeight);C.sl=dom.scrollLeft;C.st=dom.scrollTop;if(getClass(art.target,'position')=='fixed'||getClass(art.target,'fixed')=='true'){C.ml=C.ddw-C.w;C.mt=C.ddh-C.h;}else{C.ml=C.dbw-C.w;C.mt=C.dbh-C.h;};if(x){document.onmousemove=function(a){resize.call(art,a,x);};}else{document.onmousemove=function(a){drag.call(art,a);};};document.onmouseup=function(){onmouse=false;document.onmouseup=null;if(document.body.releaseCapture)art.target.releaseCapture();};if(document.body.setCapture){art.target.setCapture();art.target.onmousewheel=function(){window.scrollTo(0,document.documentElement.scrollTop-window.event.wheelDelta/4);};};},drag=function(a){if(onmouse===false)return false;var e=a||window.event,_x=e.clientX,_y=e.clientY,_l=parseInt(C.l-C.x+_x-C.sl+dom.scrollLeft),_t=parseInt(C.t-C.y+_y-C.st+dom.scrollTop);if(_l>C.ml)_l=C.ml;if(_t>C.mt)_t=C.mt;if(_l<0)_l=0;if(_t<0)_t=0;art.target.style.left=_l+'px';art.target.style.top=_t+'px';return false;},resize=function(a,x){if(onmouse===false)return false;var e=a||window.event,_x=e.clientX,_y=e.clientY,_w=C.w+_x-C.x+x.w,_h=C.h+_y-C.y+x.h;if(_w>0)x.obj.style.width=_w+'px';if(_h>0)x.obj.style.height=_h+'px';return false;},newBox=function(){var j=-1;var ui_title_wrap=$ce('td');var ui_title=$ce('div');var ui_title_text=$ce('div');var ui_min=$ce('a');var ui_max=$ce('a');var ui_close=$ce('a');ui_title_wrap.className='ui_title_wrap';ui_title.className='ui_title';ui_title_text.className='ui_title_text';ui_min.className='ui_min';ui_min.href='javascript:void(0)';ui_min.appendChild($ctn('-'));ui_max.className='ui_max';ui_max.href='javascript:void(0)';ui_max.appendChild($ctn("口"));ui_close.className='ui_close';ui_close.href='javascript:void(0)';ui_close.appendChild($ctn('×'));ui_title.appendChild(ui_title_text);ui_title.appendChild(ui_min);ui_title.appendChild(ui_max);ui_title.appendChild(ui_close);ui_title_wrap.appendChild(ui_title);var ui_content_wrap=$ce('td');var ui_content=$ce('div');ui_content_wrap.className='ui_content_wrap';ui_content.className='ui_content';ui_content_wrap.appendChild(ui_content);var yesBtn=$ce('button'),yesWrap=$ce('span'),noBtn=$ce('button'),noWrap=$ce('span');yesWrap.className='ui_yes';noWrap.className='ui_no';var ui_bottom_wrap=$ce('td');var ui_bottom=$ce('div');var ui_btns=$ce('div');var ui_resize=$ce('div');ui_bottom_wrap.className='ui_bottom_wrap';ui_bottom.className='ui_bottom';ui_btns.className='ui_btns';ui_resize.className='ui_resize';ui_bottom.appendChild(ui_btns);ui_bottom.appendChild(ui_resize);ui_bottom_wrap.appendChild(ui_bottom);var ui_dialog_main=$ce('table');var cTbody=$ce('tbody');ui_dialog_main.className='ui_dialog_main';for(var r=0;r<3;r++){_tr=$ce('tr');if(r==0)_tr.appendChild(ui_title_wrap);if(r==1)_tr.appendChild(ui_content_wrap);if(r==2)_tr.appendChild(ui_bottom_wrap);cTbody.appendChild(_tr);};ui_dialog_main.appendChild(cTbody);var bTable=$ce('table');var bTbody=$ce('tbody');for(var r=0;r<3;r++){_tr=$ce('tr');for(var d=0;d<3;d++){_td=$ce('td');if(r==1&&d==1){_td.appendChild(ui_dialog_main);}else{_td.className='ui_border r'+r+'d'+d;};_tr.appendChild(_td);};bTbody.appendChild(_tr);};bTable.appendChild(bTbody);var ui_dialog=$ce('div');ui_dialog.className='ui_dialog';ui_dialog.appendChild(bTable);if(IE6){var ui_ie6_select_mask=$ce('iframe');ui_ie6_select_mask.className='ui_ie6_select_mask';ui_dialog.appendChild(ui_ie6_select_mask);};var ui_overlay=$ce('div');ui_overlay.className='ui_overlay';ui_overlay.appendChild($ce('div'));var ui_dialog_wrap=$ce('div');ui_dialog_wrap.className='ui_dialog_wrap';ui_dialog_wrap.appendChild(ui_dialog);ui_dialog_wrap.style.zIndex=++z;var $={};$.target=ui_dialog;$.target.style.zIndex=++z;$.zIndex=function(o){var x=o?o:ui_dialog;x.style.zIndex=++z;if(IE6)ui_dialog_wrap.style.zIndex=++z;return $;};var closeFn=null;$.close=function(f){if(f){closeFn=f;return $;};onmouse=false;$.free=true;function _close(){if(ie6PngRepair){ui_dialog_wrap.parentNode.removeChild(ui_dialog_wrap);$.free=false;return false;};ui_dialog.style.cssText=ui_title_text.innerHTML=ui_content.innerHTML=ui_btns.innerHTML=ui_dialog_wrap.id=ui_content.id='';removeClass(ui_content,'ui_iframe');removeClass(ui_dialog_wrap,'ui_fixed');bTable.className='';if(closeFn){closeFn();closeFn=null;};};if(ui_dialog_wrap.className.indexOf('ui_lock')>-1){$.alpha(ui_overlay,1,function(){ui_overlay.style.cssText='';if(pageLock==1)removeClass(document.getElementsByTagName('html')[0],'ui_page_lock');pageLock--;removeClass(ui_dialog_wrap,'ui_lock');_close();});}else{_close();};var a=true;};$.time=function(t){setTimeout(function(){$.close();},1000*t);return $;};$.html=function(title,url,content,yesFn,noFn,yesText,noText,style,closeFn,time,id,arguments){ui_title_text.innerHTML=''+title;if(id){ui_dialog_wrap.id=id;ui_content.id=id+'Content';};var _this=this;if(yesFn){yesBtn.innerHTML=yesText;noBtn.innerHTML=noText;yesWrap.appendChild(yesBtn);ui_btns.appendChild(yesWrap);if(noFn){noBtn.onclick=function(){var n=noFn();if(n==undefined||n)_this.close();};noWrap.appendChild(noBtn);ui_btns.appendChild(noWrap);}else{noFn=null;};yesBtn.onclick=function(){var y=yesFn();if(y==undefined||y)_this.close();};};if(content){ui_content.innerHTML=''+content;}else{var f=$ce('iframe');if(id){f.id=id+'iframe';};f.setAttribute('frameborder','0',0);f.src=url;ui_content.appendChild(f);addClass(ui_content,'ui_iframe');var theArgs=arguments;var s=function(){f.style.visibility='visible';f.contentWindow.closeDialog=function(){_this.close();};f.contentWindow.dialogArguments=theArgs;};if(f.attachEvent){f.attachEvent('onload',function(){s();});}else{f.onload=function(){s();};};};bTable.className+=''+style;ui_dialog.style.visibility='visible';if(closeFn)$.close(closeFn);if(time)$.time(time);$.free=false;return $;};$.lock=function(){var h=document.getElementsByTagName('html')[0];addClass(h,'ui_page_lock');addClass(ui_dialog_wrap,'ui_lock');$.zIndex(ui_overlay);ui_dialog_wrap.appendChild(ui_overlay);ui_overlay.style.visibility='visible';pageLock++;$.alpha(ui_overlay,0);return $;};$.alpha=function(obj,start,fn,x){if(!x)i=start;s=0.5;s=(start==0)?s:-s;i+=s;if(obj.filters){obj.filters.alpha.opacity=i*100;}else{obj.style.opacity=i;};if(i>0&&i<1){setTimeout(function(){$.alpha(obj,start,fn,i)},5);}else if(fn){fn();};return $;};$.align=function(width,height,left,top,fixed,lock,c){if(parseInt(width)==width)width=width+'px';if(parseInt(height)==height)height=height+'px';ui_content_wrap.style.width=width;ui_content_wrap.style.height=height;var dd=document.documentElement;var db=document.body;C.l=0;C.t=0;C.w=ui_dialog.clientWidth;C.h=ui_dialog.clientHeight;C.ddw=dom.clientWidth;C.ddh=dom.clientHeight;C.dbw=Math.max(dom.clientWidth,dom.scrollWidth);C.dbh=Math.max(dom.clientHeight,dom.scrollHeight);C.sl=Math.max(dd.scrollLeft,db.scrollLeft);C.st=Math.max(dd.scrollTop,db.scrollTop);if(lock)fixed=true;var minX,minY,maxX,maxY,centerX,centerY;if(fixed){if(IE6)addClass(document.getElementsByTagName('html')[0],'ui_ie6_fixed');addClass(ui_dialog_wrap,'ui_fixed');minX=0;maxX=C.ddw-C.w;centerX=maxX/2;minY=0;maxY=C.ddh-C.h;var hc=C.ddh*0.382-C.h/2;centerY=(hc>0)?hc:maxY/2;}else{minX=C.sl;maxX=C.ddw+minX-C.w;centerX=maxX/2;minY=C.st;maxY=C.ddh+minY-C.h;var hc=C.ddh*0.382-C.h/2+minY;centerY=(hc>minY)?hc:(maxY+minY)/2;};if(left=='center'){C.l=centerX>0?centerX:0;}else if(left=='left'){C.l=minX;}else if(left=='right'){C.l=maxX;}else{if(fixed)left=left-C.sl;if(leftmaxX){left=left-C.w;};C.l=left;};if(top=='center'){C.t=centerY>0?centerY:0;}else if(top=='top'){C.t=minY;}else if(top=='bottom'){C.t=maxY;}else{if(fixed)top=top-C.st;if(topmaxY){top=top-C.h;};C.t=top;};if(ui_dialog_wrap.id==hideId)C.l='-9999999';ui_dialog.style.left=C.l+'px';ui_dialog.style.top=C.t+'px';if(lock)$.lock();$.zIndex(ui_dialog);return $;};var isMin=false;$.min=function(maxl,maxt,maxw,maxh){var d=ui_dialog;var c=ui_content_wrap;if(!maxl)maxl=d.style.left;if(!maxt)maxt=d.style.top;if(!maxw)maxw=c.style.width;if(!maxh)maxh=c.style.height;var curHeight=parseInt(c.style.height)-parseInt(maxh)/10>0?parseInt(c.style.height)-parseInt(maxh)/10:0;var curleft=(parseInt(d.style.left)-parseInt(maxl)/5)>0?(parseInt(d.style.left)-parseInt(maxl)/5):0;var curtop=(parseInt(d.style.top)-parseInt(maxt)/5)>0?(parseInt(d.style.top)-parseInt(maxt)/5):0;var curWidth=(parseInt(c.style.width)-parseInt(maxw)/10)>200?(parseInt(c.style.width)-parseInt(maxw)/10):200;if(curHeight>0){setTimeout(function(){$.min(maxl,maxt,maxw,maxh)},2);c.style.height=curHeight+"px";c.style.width=curWidth+"px";d.style.left=curleft+"px";d.style.top=curtop+"px";}else{c.style.height="0px";c.style.width="200px";d.style.left="0px";d.style.top="0px";if(isMin==false){ui_max.onclick=function(){$.max(maxl,maxt,maxw,maxh)};};isMin=true;}};$.max=function(left,top,maxw,maxh){var d=ui_dialog;var c=ui_content_wrap;var curHeight=(parseInt(c.style.height)+parseInt(maxh)/10);var curWidth=(parseInt(c.style.width)+parseInt(maxw)/10);var curleft=(parseInt(d.style.left)+parseInt(left)/5)>parseInt(left)?parseInt(left):(parseInt(d.style.left)+parseInt(left)/5);var curtop=(parseInt(d.style.top)+parseInt(top)/5)>parseInt(top)?parseInt(top):(parseInt(d.style.top)+parseInt(top)/5);if(curHeight0){eval(objstr)=(parmeter-5)+"px";setTimeout(dec('ui_content_wrap.style.height'),5);}else{eval(objstr)="0px";}};function asc(objstr,max){var parmeter=parseInt(eval(objstr));if(parmeter-5-1)?'&':'?')+param;};try{this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous)setTimeout(function(){this.respondToReadyState(1)}.bind(this),10);this.transport.onreadystatechange=this.onStateChange.bind(this);this.setRequestHeaders();this.body=this.method=='post'?(this.options.postBody||param):null;this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType)this.onStateChange();}catch(e){this.dispatchException(e);}};Ajax.Request.prototype.onStateChange=function(){var readyState=this.transport.readyState;if(readyState>1&&!((readyState==4)&&this._complete))this.respondToReadyState(this.transport.readyState);};Ajax.Request.prototype.respondToReadyState=function(readyState){var state=Ajax.RequestEvents[readyState];var transport=this.transport;if(state=='Complete'){try{this._complete=true;this.options['on'+(this.success()?'Success':'Failure')](transport);}catch(e){this.dispatchException(e);}};if(state=='Complete'){this.transport.onreadystatechange=function(){};}};Ajax.Request.prototype.success=function(){return !this.transport.status||(this.transport.status>=200&&this.transport.status<300);};Ajax.Request.prototype.setRequestHeaders=function(){var headers={'X-Requested-With':'XMLHttpRequest','Accept':'text/javascript, text/html, application/xml, text/xml, */*'};if(this.method=='post'){headers['Content-type']=this.options.contentType+(this.options.encoding?'; charset='+this.options.encoding:'');if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005)headers['Connection']='close';};for(var name in headers)this.transport.setRequestHeader(name,headers[name]);};Ajax.Request.prototype.dispatchException=function(exception){(this.options.onException||function(){})(this,exception);};var request={__paraMap__:(new function(){var paraStr=location.search.substring(1),paras=paraStr.split("&"),paraMap={};for(var i=0,l=paras.length;i0)result+="&";if(!k||k=="")continue;result+=k+"="+this.__paraMap__[k];count++;};return result;}};function enableContentImageEdit(){$(function(){$('img','.content').attr('title','点击即可编辑当前图片').unbind('click').click(function(event){event.stopPropagation();event.preventDefault();var theUrl=__CONTEXT_PATH+"/ecms/page/frontImageEdit.jsp?image="+$(this).attr('src');var props={id:"_cmsFrontContent",title:"编辑当前图片",dialogHeight:$(window).height()-10,dialogWidth:$(window).width()};window.top.analysisContent.showDialogWindow({id:props.id,url:theUrl,width:props.dialogWidth,height:props.dialogHeight,left:props.dialogLeft,top:props.dialogTop,title:props.title,lock:true,arguments:window});return false;});});};function editImage(imgObj,menuID,closeFunc){var theUrl=($.type(imgObj)=='object')?$(imgObj).attr('src'):imgObj;var theUrl=__CONTEXT_PATH+"/ecms/page/frontImageEdit.jsp?_menu="+menuID+"&image="+theUrl;var props={id:"_cmsFrontContent",title:"编辑当前图片",dialogHeight:$(window).height()-10,dialogWidth:$(window).width()};window.editImageSubmitCallback=closeFunc;window.top.analysisContent.showDialogWindow({id:props.id,url:theUrl,width:props.dialogWidth,height:props.dialogHeight,left:props.dialogLeft,top:props.dialogTop,title:props.title,lock:true,arguments:window});};function closeImgEditorFunc(){var newLocation=document.location;document.location=newLocation;}; }