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<length;i++)results.push(iterable[i]);return results;}};Function.prototype.bind=function(){var __method=this,args=$A(arguments),object=args.shift();return function(){return __method.apply(object,args.concat($A(arguments)));}};function closeMe(){window.close();};function Browser(){var userAgent=navigator.userAgent.toLowerCase();this.isSafari=this.isOpera=this.isMsie=this.isFirefox=this.isChrome=false;this.isIE=this.isIE7=this.isIE8=this.isIE9=this.isOP=this.isNS=false;if(/msie/.test(userAgent)){this.isMsie=this.isIE=true;if(parseFloat(this.version)>=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("<style>"+data+"</style>");}});};if((!/*@cc_on!@*/0)&&!window.opera){HTMLElement.prototype.__defineGetter__("outerHTML",function(){var a=this.attributes,str="<"+this.tagName,i=0;for(;i<a.length;i++)if(a[i].specified)str+=" "+a[i].name+'="'+a[i].value+'"';if(!this.canHaveChildren)return str+" />";return str+">"+this.innerHTML+"</"+this.tagName+">";});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<len;i++)b(a[i],i);},C={x:0,y:0,t:0,l:0,w:0,h:0,st:0,sl:0,ddw:0,ddh:0,dbw:0,dbh:0,ml:0,mt:0},z=999999999,hideId='artDialogTemp',pageLock=0,winLoad=function(fn){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=fn;}else{window.onload=function(){if(oldonload){oldonload();};fn();};};},$ce=function(name){return document.createElement(name);},$ctn=function(txt){return document.createTextNode(txt);},hasClass=function(element,className){var reg=new RegExp('(\\s|^)'+className+'(\\s|$)');return element.className.match(reg);},addClass=function(element,className){if(!hasClass(element,className)){element.className+=' '+className;};},removeClass=function(element,className){if(hasClass(element,className)){var reg=new RegExp('(\\s|^)'+className+'(\\s|$)');element.className=element.className.replace(reg,' ');};},getClass=function(element,attribute){return element.currentStyle?element.currentStyle[attribute]:document.defaultView.getComputedStyle(element,false)[attribute];},addStyle=function(css){document.write('<style type="text/css">'+css+'</style>');},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='<span class="ui_title_icon"></span>'+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='<span class="ui_dialog_icon"></span>'+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(left<minX){left=left+C.w;}else if(left>maxX){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(top<minY){top=top+C.h;}else if(top>maxY){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(curHeight<parseInt(maxh)){setTimeout(function(){$.max(left,top,maxw,maxh)},5);c.style.height=curHeight+"px";if(curWidth<parseInt(maxw)){c.style.width=curWidth+"px";}else{c.style.width=maxw;};if(curleft<parseInt(left)){d.style.left=curleft+"px";}else{d.style.left=left;};if(curtop<parseInt(top)){d.style.top=curtop+"px";}else{d.style.top=top;}}else{c.style.height=maxh;c.style.width=maxw;d.style.left=left;d.style.top=top;isMin=false;}};Each([ui_title_text],function(o,i){o.onmousedown=function(a){cmd.call($,a,false);addClass(ui_dialog_wrap,'ui_move');};o.onmouseout=function(){removeClass(ui_dialog_wrap,'ui_move');};o.onselectstart=function(){return false;};});ui_resize.onmousedown=function(a){var d=ui_dialog;var c=ui_content_wrap;cmd.call($,a,{obj:c,w:c.clientWidth-d.clientWidth,h:c.clientHeight-d.clientHeight});};if(IE6){Each([yesWrap,noWrap],function(o,i){o.onmouseover=function(){addClass(o,'ui_hover');};o.onmouseout=function(){removeClass(o,'ui_hover');};});};ui_min.onclick=function(){$.min()};ui_close.onclick=function(){$.close()};document.onkeyup=function(evt){var e=evt||window.event;if(e.keyCode==27)$.close();};document.body.appendChild(ui_dialog_wrap);return $;};var artLayout='* html body{margin:0;}.ui_content{color:black;}.ui_title_icon,.ui_content,.ui_dialog_icon,.ui_btns span{display:inline-block;*zoom:1;*display:inline;}.ui_dialog{visibility:hidden;text-align:left;position:absolute;top:0;left:-99999em;_overflow:hidden;}.ui_dialog table{border:0;margin:0;border-collapse:collapse;}.ui_dialog td{padding:0;}.ui_title_icon{vertical-align:middle;}.ui_title_text{overflow:hidden;cursor:default;-moz-user-select:none;user-select:none;}.ui_close{display:block;position:absolute;outline:none;}.ui_content_wrap{height:auto;text-align:center;}.ui_content{margin:10px;text-align:left;}.ui_dialog_icon{vertical-align:middle;}.ui_content.ui_iframe{margin:0;*padding:0;display:block;height:100%;}.ui_iframe iframe{visibility:hidden;width:100%;height:100%;border:none;overflow:auto;}.ui_bottom{position:relative;}.ui_resize{position:absolute;right:0;bottom:0;z-index:1;cursor:nw-resize;_font-size:0;}.ui_btns{text-align:right;white-space:nowrap;}.ui_btns span{margin:5px 10px;}.ui_btns button{cursor:pointer;}.ui_overlay{visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;filter:alpha(opacity=0);opacity:0;_overflow:hidden;}.ui_overlay div{height:100%;}* html .ui_ie6_select_mask{width:99999em;height:99999em;position:absolute;top:0;left:0;z-index:-1;}.ui_move .ui_title_text{cursor:move;}html >body .ui_dialog_wrap.ui_fixed .ui_dialog{position:fixed;}* html .ui_dialog_wrap.ui_fixed .ui_dialog{fixed:true;}* html.ui_ie6_fixed{background:url(*) fixed;}* html.ui_ie6_fixed body{height:100%;}* html .ui_dialog_wrap.ui_fixed{width:100%;height:100%;position:absolute;left:expression(documentElement.scrollLeft+documentElement.clientWidth-this.offsetWidth);top:expression(documentElement.scrollTop+documentElement.clientHeight-this.offsetHeight);}html.ui_page_lock >body{overflow:hidden;}* html.ui_page_lock{overflow:hidden;}* html.ui_page_lock select,* html.ui_page_lock .ui_ie6_select_mask{visibility:hidden;}html.ui_page_lock >body .ui_dialog_wrap.ui_lock{width:100%;height:100%;position:fixed;top:0;left:0;}';addStyle(artLayout);if(IE6){document.execCommand('BackgroundImageCache',false,true);ie6PngRepair=getClass(document.getElementsByTagName('html')[0],'ie6PngRepair')=='true'?true:false;if(ie6PngRepair){var script=$ce('script');script.src=path+'/iepngfix/iepngfix_tilebg.js';document.getElementsByTagName('head')[0].appendChild(script);addStyle('.ui_resize, .ui_ie6_select_mask { display:none; } td.ui_border, td.ui_title_wrap *, .ui_dialog_icon  { behavior: url("'+path+'/iepngfix/iepngfix.htc");}');};};window.artDialog=load;})();function _error_msg_show(msg,click,icon,title){click=click?click:' ';icon=icon?icon:'';title=title?title:I18n.dialogDefaultTip;artDialog({title:title,content:msg,style:icon,width:300,height:200},function(){eval(click)});};function _win_error_msg_show(msg,click,icon,title,width,height){click=click?click:' ';icon=icon?icon:'';title=title?title:I18n.dialogDefaultTip;width=width?width:300;height=height?height:200;artDialog({title:title,content:msg,style:icon,width:300,height:200,lock:true},function(){eval(click)});};function _confirm_msg_show(msg,click_ok,click_no,title){click_ok=click_ok?click_ok:' ';click_no=click_no?click_no:' ';title=title?title:I18n.dialogDefaultTip;artDialog({title:title,fixed:true,content:msg,style:icon,lock:true},function(){eval(click_ok)},function(){eval(click_no)});};function _win_confirm_msg_show(msg,click_ok,click_no,top,left,width,height){click_ok=click_ok?click_ok:' ';click_no=click_no?click_no:' ';title=I18n.dialogDefaultTip;artDialog({title:title,fixed:true,content:msg,width:width,height:height,lock:true},function(){eval(click_ok)},function(){eval(click_no)});};function showWindow(_sUrl,_sWidth,_sHeight,_sTitle,_sScroll,_login,id,_style){var oEdit;oEdit=artDialog({style:_style,id:id,title:_sTitle,url:_sUrl,width:_sWidth,height:_sHeight,lock:true});return oEdit;};function showTopWindow(_sUrl,_sWidth,_sHeight,_sTitle,id,_style){var oEdit;oEdit=artDialog({style:_style,id:id,title:_sTitle,url:_sUrl,width:_sWidth,height:_sHeight,parent:true,lock:true});return oEdit;};function showDialogWindow(options,callback){return artDialog(options,null,null,callback);};function dec(objstr){var parmeter=parseInt(eval(objstr));if(parmeter-5>0){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<max){eval(objstr)=(parmeter+5)+"px";}else{eval(objstr)=max+"px";}};var Ajax={getTransport:getHttpRequestObject,activeRequestCount:0,RequestEvents:['Uninitialized','Loading','Loaded','Interactive','Complete']};Ajax.Request=function(url,options){this.transport=Ajax.getTransport();this.options={method:'post',asynchronous:true,contentType:'application/x-www-form-urlencoded',encoding:'UTF-8',parameters:'',onSuccess:function(){},onFailure:function(){},onException:function(){}};for(var p in options){this.options[p]=options[p];};this.options.method=this.options.method.toLowerCase();this.onSuccess=this.options.onSuccess;this.onFailure=this.options.onFailure;this.request(url);};Ajax.Request.prototype.request=function(url){this.url=url;this.method=this.options.method;var param;if(typeof this.options.parameters!='string'){param=Form.Methods.toQueryString(this.options.parameters);}else{param=this.options.parameters;};if(this.method=='get'&&param!=null&&param!=''){this.url+=((this.url.indexOf('?')>-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;i<l;i++){var paraSplit=paras[i].split(/=/),key=paraSplit[0],value=paraSplit[1];paraMap[key]=value;};return paraMap;}),get:function(name){return this.__paraMap__[name];},set:function(name,value){this.__paraMap__[name]=value;},getUrl:function(){var result=location.pathname+"?";var count=0;for(var k in this.__paraMap__){if(count>0)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;};


