﻿function Querystring(a){this.params={};if(a==null)a=location.search.substring(1,location.search.length);if(a.length!=0){a=a.replace(/\+/g," ");a=a.split("&");for(var c=0;c<a.length;c++){var e=a[c].split("="),b=decodeURIComponent(e[0]);e=e.length==2?decodeURIComponent(e[1]):b;this.params[b]=e}}}Querystring.prototype.get=function(a,c){var e=this.params[a];return e!=null?e:c};Querystring.prototype.contains=function(a){return this.params[a]!=null};
$.ajaxSetup({contentType:"application/json; charset=utf-8",type:"POST",dataType:"json",data:"{}"});$(function(){jQuery.extend({body:function(){var a=document.compatMode==="CSS1Compat"?document.documentElement:document.body;a.contentHeight=function(){return Math.max(a.offsetHeight,a.scrollHeight)};a.contentWidth=function(){return Math.max(a.offsetWidth,a.scrollWidth)};a.frameHeight=function(){return a.clientHeight};a.frameWidth=function(){return a.clientWidth};return a}()})});
jQuery.extend({trace:function(a,c){if($("#TRACEWINDOW").length==0){$("<div id='TRACEWINDOW' style='position:absolute;border:1px black solid;background:#eee;color:Black;left:0;bottom:0;font-size:30px;z-index:9999999'><div id='traceWin_msg' style='padding:3px;'></div><div style='background:black;clear:both;'><input type='text'  id='traceWin_cmd' value='' style='width:300px'/><input type='button'  id='traceWin_btn' value='execute'></div></div>").appendTo("body");$("#traceWin_btn").click(function(){var e=
"";try{e=eval($("#traceWin_cmd").val())}catch(b){e=b.message}if(c)e=$("#traceWin_msg").text()+"|"+e;$("#traceWin_msg").text(e)});$("#traceWin_cmd").keyup(function(e){e.keyCode===13&&$("#traceWin_btn").click()})}if(a===null||a===undefined)a=(new Date).valueOf();if(c)a=$("#traceWin_msg").text()+"|"+a;$("#traceWin_msg").text(a)},alert:function(a){new rPrompt(a)},alert2:function(a,c){this.constructor.timer&&window.clearTimeout(this.constructor.timer);var e=$("#ALERT2");if(e.length==0)e=$("<div id='ALERT2' style='position:absolute;width:107px;height:42px;background:url(images/general/alert2.png) no-repeat;'><div class='container' style='display:relative;margin:12px auto;text-align:center;'></div></div>").appendTo("body").locate();
e.find(".container").html(a);e.fadeIn("fast");if(!c)this.constructor.timer=setTimeout(function(){e.fadeOut()},3E3)},toStr:function(a){if(a==null)return'""';var c=a;if(typeof a==="string"){a=a.replace(/'/g,"\\'");a=a.replace(/"/g,'\\"');a=a.replace(/\\/g,"\\\\");c='"'+a+'"'}else if($.isPlainObject(a))c=$._parseJson(a);if($.isArray(a))c=$._parseArray(a);return c},_parseJson:function(a){var c=a;if($.isPlainObject(a)){c="{";$.each(a,function(e,b){c+='"'+e+'":'+$.toStr(b)+","});c=c.substr(0,c.length-1)+
"}"}return c},_parseArray:function(a){var c=a;if($.isArray(a)){c="[";for(var e=a.length,b=0;b<e;b++)c+=$.toStr(a[b])+",";c=c.substr(0,c.length-1);c+="]"}return c},post:function(a,c,e,b){if(jQuery.isFunction(c)){b=b||e;e=c;c="{}"}return jQuery.ajax({type:"POST",url:a,data:c,success:e,dataType:b})},loadScript:function(a){var c=document.createElement("script");c.setAttribute("src",a);c.setAttribute("type","text/javascript");document.body.appendChild(c)},loadCss:function(a){var c=document.createElement("link");
c.setAttribute("href",a);c.setAttribute("type","text/css");c.setAttribute("rel","stylesheet");document.body.appendChild(c)},isNorE:function(a){return a==undefined||a==null||typeof a=="string"&&$.trim(a)==""},isIE:document.all!=undefined,isIE6:typeof XMLHttpRequest=="undefined",copyToCB:function(a){if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text",a)}else if(navigator.userAgent.indexOf("Opera")!=-1)window.location=a;else if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(c){alert("\u88ab\u6d4f\u89c8\u5668\u62d2\u7edd\uff01\n\u8bf7\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165'about:config'\u5e76\u56de\u8f66\n\u7136\u540e\u5c06'signed.applets.codebase_principal_support'\u8bbe\u7f6e\u4e3a'true'");
return false}var e=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!e)return false;var b=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!b)return false;b.addDataFlavor("text/unicode");var d={};d=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);d.data=a;b.setTransferData("text/unicode",d,a.length*2);if(!e)return false;
e.setData(b,null,Components.interfaces.nsIClipboard.kGlobalClipboard)}return true},reg:function(a,c){var e=a;if(a&&$.isPlainObject(a)){var b=false;if(c===true){b=true;c=null}if(a.noreg&&!b)return a;if(!c||!c.jquery)c=$("body");(b=a.container)||(b=c);if(a.selector)e=$(a.selector,b);else if(a.html)e=$(a.html).appendTo(b);else if(a.creator)e=a.creator();for(var d in a)e[d]=$.reg(a[d],e);e.up=c;e.init&&e.init()}return e},format:function(){var a=arguments.length;if(a<1)return"";if(a<2)return arguments[0];
for(var c=arguments[0],e=1;e<a;e++)c=c.replace(RegExp("{ *"+(e-1)+" *}","g"),arguments[e]);return c}});
jQuery.fn.extend({extend:function(){var a=arguments[0]||{},c=1,e=arguments.length,b=false,d,f,g,h;if(typeof a==="boolean"){b=a;a=arguments[1]||{};c=2}if(typeof a!=="object"&&!jQuery.isFunction(a))a={};if(e===c){a=this;--c}for(;c<e;c++)if((d=arguments[c])!=null)for(f in d){g=a[f];h=d[f];if(a!==h)if(g&&b&&h&&(jQuery.isPlainObject(h)||jQuery.isArray(h))){g=g&&(jQuery.isPlainObject(g)||jQuery.isArray(g))?g:jQuery.isArray(h)?[]:{};a[f]=jQuery.extend(b,g,h)}else if(h!==undefined)a[f]=h}return a},invisible:function(){this.css("visibility",
"hidden");return this},visible:function(){this.css("visibility","visible");return this},fadeInEx:function(){$.isIE6?this.show():this.fadeIn()},fadeOutEx:function(a,c){if($.isIE6){this.hide();c!=undefined&&c()}else this.fadeOut(a,c);return this},rLoad:function(a,c,e){if(typeof a!=="string")return _load.call(this,a);else if(!this.length)return this;var b=a.indexOf(" ");if(b>=0){var d=a.slice(b,a.length);a=a.slice(0,b)}if(c)if(jQuery.isFunction(c)){e=c;c=null}else{if(typeof c==="object")c=$.toStr(c)}else c=
"{}";var f=this;jQuery.ajax({url:a,type:"POST",dataType:"html",data:c,complete:function(g,h){if(h==="success"||h==="notmodified")f.html(d?jQuery("<div />").append(g.responseText.replace(rscript,"")).find(d):g.responseText);e&&f.each(e,[g.responseText,h,g])}});return this},locate:function(a){var c=0,e=0,b=a?this.parent():$(window);this.css({visibility:"hidden",display:"block"});var d=b.width();b=b.height();var f=this.width(),g=this.height(),h=0,j=0;if(!a){h=$(document).scrollLeft();j=$(document).scrollTop()}if(f<
d)c=(d-f)/2+h;if(g<b)e=(b-g)/2+j;this.css({left:c,top:e,visibility:"visible",display:"none"});return this},encompass:function(a){return this[0]==a||$.contains(this[0],a)}});$.extend=$.fn.extend;String.prototype.getBytes=function(){return this.replace(/[^\x00-\xff]/g,"**").length};String.prototype.subBytes=function(a,c){if($.isNorE(c)){c=a;a=0}for(var e=this,b=0,d=a;d<c;d++){b+=e.charCodeAt(d)>255?2:1;if(b>=c){e=e.slice(a,d+1);break}}return e};
Array.prototype.toStr=function(){for(var a="",c=this.length,e=0;e<c;e++)a+=this[e]+",";return a=a.substr(0,a.length-1)};Array.prototype.remove=function(a){for(var c=this.length,e=0;e<c;e++)if(this[e]==a)return this.splice(e,1)};(function(){$.isIE6&&document.execCommand("BackgroundImageCache",false,true)})();
(function(a,c){function e(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.4",plugin:{add:function(b,d,f){b=a.ui[b].prototype;for(var g in f){b.plugins[g]=b.plugins[g]||[];b.plugins[g].push([d,f[g]])}},call:function(b,d,f){if((d=b.plugins[d])&&b.element[0].parentNode)for(var g=0;g<d.length;g++)b.options[d[g][0]]&&d[g][1].apply(b.element,f)}},contains:function(b,
d){return document.compareDocumentPosition?b.compareDocumentPosition(d)&16:b!==d&&b.contains(d)},hasScroll:function(b,d){if(a(b).css("overflow")==="hidden")return false;var f=d&&d==="left"?"scrollLeft":"scrollTop",g=false;if(b[f]>0)return true;b[f]=1;g=b[f]>0;b[f]=0;return g},isOverAxis:function(b,d,f){return b>d&&b<d+f},isOver:function(b,d,f,g,h,j){return a.ui.isOverAxis(b,f,h)&&a.ui.isOverAxis(d,g,j)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,
CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});a.fn.extend({_focus:a.fn.focus,focus:function(b,d){return typeof b==="number"?this.each(function(){var f=this;setTimeout(function(){a(f).focus();d&&d.call(f)},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable",
"off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")},scrollParent:function(){var b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,
"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(b){if(b!==c)return this.css("zIndex",b);if(this.length){b=a(this[0]);for(var d;b.length&&b[0]!==document;){d=b.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){d=parseInt(b.css("zIndex"));if(!isNaN(d)&&d!=0)return d}b=b.parent()}}return 0}});a.each(["Width","Height"],function(b,d){function f(k,l,m,p){a.each(g,function(){l-=
parseFloat(a.curCSS(k,"padding"+this,true))||0;if(m)l-=parseFloat(a.curCSS(k,"border"+this+"Width",true))||0;if(p)l-=parseFloat(a.curCSS(k,"margin"+this,true))||0});return l}var g=d==="Width"?["Left","Right"]:["Top","Bottom"],h=d.toLowerCase(),j={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(k){if(k===c)return j["inner"+d].call(this);return this.each(function(){a.style(this,h,f(this,k)+"px")})};a.fn["outer"+
d]=function(k,l){if(typeof k!=="number")return j["outer"+d].call(this,k);return this.each(function(){a.style(this,h,f(this,k,true,l)+"px")})}});a.extend(a.expr[":"],{data:function(b,d,f){return!!a.data(b,f[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),f=a.attr(b,"tabindex");if("area"===d){d=b.parentNode;f=d.name;if(!b.href||!f||d.nodeName.toLowerCase()!=="map")return false;b=a("img[usemap=#"+f+"]")[0];return!!b&&e(b)}return(/input|select|textarea|button|object/.test(d)?!b.disabled:"a"==
d?b.href||!isNaN(f):!isNaN(f))&&e(b)},tabbable:function(b){var d=a.attr(b,"tabindex");return(isNaN(d)||d>=0)&&a(b).is(":focusable")}})}})(jQuery);
(function(a,c){var e=a.fn.remove;a.fn.remove=function(b,d){return this.each(function(){if(!d)if(!b||a.filter(b,[this]).length)a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return e.call(a(this),b,d)})};a.widget=function(b,d,f){var g=b.split(".")[0],h;b=b.split(".")[1];h=g+"-"+b;if(!f){f=d;d=a.Widget}a.expr[":"][h]=function(j){return!!a.data(j,b)};a[g]=a[g]||{};a[g][b]=function(j,k){arguments.length&&this._createWidget(j,k)};d=new d;d.options=a.extend(true,{},d.options);
a[g][b].prototype=a.extend(true,d,{namespace:g,widgetName:b,widgetEventPrefix:a[g][b].prototype.widgetEventPrefix||b,widgetBaseClass:h},f);a.widget.bridge(b,a[g][b])};a.widget.bridge=function(b,d){a.fn[b]=function(f){var g=typeof f==="string",h=Array.prototype.slice.call(arguments,1),j=this;f=!g&&h.length?a.extend.apply(null,[true,f].concat(h)):f;if(g&&f.substring(0,1)==="_")return j;g?this.each(function(){var k=a.data(this,b),l=k&&a.isFunction(k[f])?k[f].apply(k,h):k;if(l!==k&&l!==c){j=l;return false}}):
this.each(function(){var k=a.data(this,b);if(k){f&&k.option(f);k._init()}else a.data(this,b,new d(f,this))});return j}};a.Widget=function(b,d){arguments.length&&this._createWidget(b,d)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,d){a.data(d,this.widgetName,this);this.element=a(d);this.options=a.extend(true,{},this.options,a.metadata&&a.metadata.get(d)[this.widgetName],b);var f=this;this.element.bind("remove."+this.widgetName,function(){f.destroy()});
this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(b,d){var f=b,g=this;if(arguments.length===0)return a.extend({},g.options);if(typeof b==="string"){if(d===c)return this.options[b];f={};f[b]=d}a.each(f,function(h,
j){g._setOption(h,j)});return g},_setOption:function(b,d){this.options[b]=d;if(b==="disabled")this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",d);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,d,f){var g=this.options[b];d=a.Event(d);d.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();f=f||{};if(d.originalEvent){b=
a.event.props.length;for(var h;b;){h=a.event.props[--b];d[h]=d.originalEvent[h]}}this.element.trigger(d,f);return!(a.isFunction(g)&&g.call(this.element[0],d,f)===false||d.isDefaultPrevented())}}})(jQuery);
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(e){return c._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(c._preventClickEvent){c._preventClickEvent=false;e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(c){c.originalEvent=c.originalEvent||{};if(!c.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(c);this._mouseDownEvent=c;var e=this,b=c.which==1,d=typeof this.options.cancel=="string"?a(c.target).parents().add(c.target).filter(this.options.cancel).length:false;if(!b||d||!this._mouseCapture(c))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=this._mouseStart(c)!==false;if(!this._mouseStarted){c.preventDefault();
return true}}this._mouseMoveDelegate=function(f){return e._mouseMove(f)};this._mouseUpDelegate=function(f){return e._mouseUp(f)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.browser.safari||c.preventDefault();return c.originalEvent.mouseHandled=true}},_mouseMove:function(c){if(a.browser.msie&&!c.button)return this._mouseUp(c);if(this._mouseStarted){this._mouseDrag(c);return c.preventDefault()}if(this._mouseDistanceMet(c)&&
this._mouseDelayMet(c))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==false)?this._mouseDrag(c):this._mouseUp(c);return!this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=c.target==this._mouseDownEvent.target;this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return Math.max(Math.abs(this._mouseDownEvent.pageX-
c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(c){var e=
this.options;if(this.helper||e.disabled||a(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;return true},_mouseStart:function(c){var e=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt);e.containment&&this._setContainment();if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();
a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(c,e){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!e){var b=this._uiHash();if(this._trigger("drag",c,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var e=false;if(a.ui.ddmanager&&!this.options.dropBehaviour)e=a.ui.ddmanager.drop(this,c);if(this.dropped){e=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!e||this.options.revert=="valid"&&e||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,
e)){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c)!==false&&b._clear()})}else this._trigger("stop",c)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var e=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
c.target)e=true});return e},_createHelper:function(c){var e=this.options;c=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[c])):e.helper=="clone"?this.element.clone():this.element;c.parents("body").length||c.appendTo(e.appendTo=="parent"?this.element[0].parentNode:e.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string")c=c.split(" ");if(a.isArray(c))c={left:+c[0],top:+c[1]||
0};if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],
this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment==
"parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[(c.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(c.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(c.containment=="document"?0:a(window).scrollLeft())+a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c.containment=="document"?
0:a(window).scrollTop())+(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&c.containment.constructor!=Array){var e=a(c.containment)[0];if(e){c=a(c.containment).offset();var b=a(e).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(e).css("borderTopWidth"),
10)||0)+(parseInt(a(e).css("paddingTop"),10)||0)-this.margins.top,c.left+(b?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(b?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(c.containment.constructor==
Array)this.containment=c.containment},_convertPositionTo:function(c,e){if(!e)e=this.position;var b=c=="absolute"?1:-1,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(d[0].tagName);return{top:e.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
f?0:d.scrollTop())*b),left:e.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:d.scrollLeft())*b)}},_generatePosition:function(c){var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,d=/(html|body)/i.test(b[0].tagName),f=c.pageX,g=c.pageY;
if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(e.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/
e.grid[1])*e.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-e.grid[1]:g+e.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-e.grid[0]:f+e.grid[0]:f}}return{top:g-this.offset.click.top-
this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():d?0:b.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():d?0:b.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=
this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,e,b){b=b||this._uiHash();a.ui.plugin.call(this,c,[e,b]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return a.Widget.prototype._trigger.call(this,c,e,b)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.7"});a.ui.plugin.add("draggable",
"connectToSortable",{start:function(c,e){var b=a(this).data("draggable"),d=b.options,f=a.extend({},e,{item:b.element});b.sortables=[];a(d.connectToSortable).each(function(){var g=a.data(this,"sortable");if(g&&!g.options.disabled){b.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",c,f)}})},stop:function(c,e){var b=a(this).data("draggable"),d=a.extend({},e,{item:b.element});a.each(b.sortables,function(){if(this.instance.isOver){this.instance.isOver=
0;b.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;b.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,d)}})},drag:function(c,e){var b=a(this).data("draggable"),d=this;a.each(b.sortables,function(){this.instance.positionAbs=
b.positionAbs;this.instance.helperProportions=b.helperProportions;this.instance.offset.click=b.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(d).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return e.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,
true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=b.offset.click.top;this.instance.offset.click.left=b.offset.click.left;this.instance.offset.parent.left-=b.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=b.offset.parent.top-this.instance.offset.parent.top;b._trigger("toSortable",c);b.dropped=this.instance.element;b.currentItem=b.element;this.instance.fromOutside=b}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=
0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();b._trigger("fromSortable",c);b.dropped=false}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var c=a("body"),e=a(this).data("draggable").options;if(c.css("cursor"))e._cursor=
c.css("cursor");c.css("cursor",e.cursor)},stop:function(){var c=a(this).data("draggable").options;c._cursor&&a("body").css("cursor",c._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var c=a(this).data("draggable").options;a(c.iframeFix===true?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")})},
stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,e){var b=a(e.helper),d=a(this).data("draggable").options;if(b.css("opacity"))d._opacity=b.css("opacity");b.css("opacity",d.opacity)},stop:function(c,e){var b=a(this).data("draggable").options;b._opacity&&a(e.helper).css("opacity",b._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var c=a(this).data("draggable");if(c.scrollParent[0]!=
document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var e=a(this).data("draggable"),b=e.options,d=false;if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){if(!b.axis||b.axis!="x")if(e.overflowOffset.top+e.scrollParent[0].offsetHeight-c.pageY<b.scrollSensitivity)e.scrollParent[0].scrollTop=d=e.scrollParent[0].scrollTop+b.scrollSpeed;else if(c.pageY-e.overflowOffset.top<b.scrollSensitivity)e.scrollParent[0].scrollTop=d=e.scrollParent[0].scrollTop-
b.scrollSpeed;if(!b.axis||b.axis!="y")if(e.overflowOffset.left+e.scrollParent[0].offsetWidth-c.pageX<b.scrollSensitivity)e.scrollParent[0].scrollLeft=d=e.scrollParent[0].scrollLeft+b.scrollSpeed;else if(c.pageX-e.overflowOffset.left<b.scrollSensitivity)e.scrollParent[0].scrollLeft=d=e.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(!b.axis||b.axis!="x")if(c.pageY-a(document).scrollTop()<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()-b.scrollSpeed);else if(a(window).height()-
(c.pageY-a(document).scrollTop())<b.scrollSensitivity)d=a(document).scrollTop(a(document).scrollTop()+b.scrollSpeed);if(!b.axis||b.axis!="y")if(c.pageX-a(document).scrollLeft()<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()-b.scrollSpeed);else if(a(window).width()-(c.pageX-a(document).scrollLeft())<b.scrollSensitivity)d=a(document).scrollLeft(a(document).scrollLeft()+b.scrollSpeed)}d!==false&&a.ui.ddmanager&&!b.dropBehaviour&&a.ui.ddmanager.prepareOffsets(e,c)}});a.ui.plugin.add("draggable",
"snap",{start:function(){var c=a(this).data("draggable"),e=c.options;c.snapElements=[];a(e.snap.constructor!=String?e.snap.items||":data(draggable)":e.snap).each(function(){var b=a(this),d=b.offset();this!=c.element[0]&&c.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:d.top,left:d.left})})},drag:function(c,e){for(var b=a(this).data("draggable"),d=b.options,f=d.snapTolerance,g=e.offset.left,h=g+b.helperProportions.width,j=e.offset.top,k=j+b.helperProportions.height,l=
b.snapElements.length-1;l>=0;l--){var m=b.snapElements[l].left,p=m+b.snapElements[l].width,n=b.snapElements[l].top,o=n+b.snapElements[l].height;if(m-f<g&&g<p+f&&n-f<j&&j<o+f||m-f<g&&g<p+f&&n-f<k&&k<o+f||m-f<h&&h<p+f&&n-f<j&&j<o+f||m-f<h&&h<p+f&&n-f<k&&k<o+f){if(d.snapMode!="inner"){var q=Math.abs(n-k)<=f,t=Math.abs(o-j)<=f,v=Math.abs(m-h)<=f,s=Math.abs(p-g)<=f;if(q)e.position.top=b._convertPositionTo("relative",{top:n-b.helperProportions.height,left:0}).top-b.margins.top;if(t)e.position.top=b._convertPositionTo("relative",
{top:o,left:0}).top-b.margins.top;if(v)e.position.left=b._convertPositionTo("relative",{top:0,left:m-b.helperProportions.width}).left-b.margins.left;if(s)e.position.left=b._convertPositionTo("relative",{top:0,left:p}).left-b.margins.left}var r=q||t||v||s;if(d.snapMode!="outer"){q=Math.abs(n-j)<=f;t=Math.abs(o-k)<=f;v=Math.abs(m-g)<=f;s=Math.abs(p-h)<=f;if(q)e.position.top=b._convertPositionTo("relative",{top:n,left:0}).top-b.margins.top;if(t)e.position.top=b._convertPositionTo("relative",{top:o-b.helperProportions.height,
left:0}).top-b.margins.top;if(v)e.position.left=b._convertPositionTo("relative",{top:0,left:m}).left-b.margins.left;if(s)e.position.left=b._convertPositionTo("relative",{top:0,left:p-b.helperProportions.width}).left-b.margins.left}if(!b.snapElements[l].snapping&&(q||t||v||s||r))b.options.snap.snap&&b.options.snap.snap.call(b.element,c,a.extend(b._uiHash(),{snapItem:b.snapElements[l].item}));b.snapElements[l].snapping=q||t||v||s||r}else{b.snapElements[l].snapping&&b.options.snap.release&&b.options.snap.release.call(b.element,
c,a.extend(b._uiHash(),{snapItem:b.snapElements[l].item}));b.snapElements[l].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var c=a(this).data("draggable").options;c=a.makeArray(a(c.stack)).sort(function(b,d){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(d).css("zIndex"),10)||0)});if(c.length){var e=parseInt(c[0].style.zIndex)||0;a(c).each(function(b){this.style.zIndex=e+b});this[0].style.zIndex=e+c.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(c,
e){var b=a(e.helper),d=a(this).data("draggable").options;if(b.css("zIndex"))d._zIndex=b.css("zIndex");b.css("zIndex",d.zIndex)},stop:function(c,e){var b=a(this).data("draggable").options;b._zIndex&&a(e.helper).css("zIndex",b._zIndex)}})})(jQuery);
(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var c=this.options,e=c.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(e)?e:function(b){return b.is(e)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[c.scope]=a.ui.ddmanager.droppables[c.scope]||[];a.ui.ddmanager.droppables[c.scope].push(this);
c.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var c=a.ui.ddmanager.droppables[this.options.scope],e=0;e<c.length;e++)c[e]==this&&c.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,e){if(c=="accept")this.accept=a.isFunction(e)?e:function(b){return b.is(e)};a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(c){var e=a.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);e&&this._trigger("activate",c,this.ui(e))},_deactivate:function(c){var e=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);e&&this._trigger("deactivate",c,this.ui(e))},_over:function(c){var e=a.ui.ddmanager.current;if(!(!e||(e.currentItem||e.element)[0]==this.element[0]))if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
this._trigger("over",c,this.ui(e))}},_out:function(c){var e=a.ui.ddmanager.current;if(!(!e||(e.currentItem||e.element)[0]==this.element[0]))if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(e))}},_drop:function(c,e){var b=e||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0])return false;var d=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=
a.data(this,"droppable");if(f.options.greedy&&!f.options.disabled&&f.options.scope==b.options.scope&&f.accept.call(f.element[0],b.currentItem||b.element)&&a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){d=true;return false}});if(d)return false;if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
c,this.ui(b));return this.element}return false},ui:function(c){return{draggable:c.currentItem||c.element,helper:c.helper,position:c.position,offset:c.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.4"});a.ui.intersect=function(c,e,b){if(!e.offset)return false;var d=(c.positionAbs||c.position.absolute).left,f=d+c.helperProportions.width,g=(c.positionAbs||c.position.absolute).top,h=g+c.helperProportions.height,j=e.offset.left,k=j+e.proportions.width,l=e.offset.top,m=l+e.proportions.height;switch(b){case "fit":return j<=
d&&f<=k&&l<=g&&h<=m;case "intersect":return j<d+c.helperProportions.width/2&&f-c.helperProportions.width/2<k&&l<g+c.helperProportions.height/2&&h-c.helperProportions.height/2<m;case "pointer":return a.ui.isOver((c.positionAbs||c.position.absolute).top+(c.clickOffset||c.offset.click).top,(c.positionAbs||c.position.absolute).left+(c.clickOffset||c.offset.click).left,l,j,e.proportions.height,e.proportions.width);case "touch":return(g>=l&&g<=m||h>=l&&h<=m||g<l&&h>m)&&(d>=j&&d<=k||f>=j&&f<=k||d<j&&f>k);
default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(c,e){var b=a.ui.ddmanager.droppables[c.options.scope]||[],d=e?e.type:null,f=(c.currentItem||c.element).find(":data(droppable)").andSelf(),g=0;a:for(;g<b.length;g++)if(!(b[g].options.disabled||c&&!b[g].accept.call(b[g].element[0],c.currentItem||c.element))){for(var h=0;h<f.length;h++)if(f[h]==b[g].element[0]){b[g].proportions.height=0;continue a}b[g].visible=b[g].element.css("display")!="none";if(b[g].visible){b[g].offset=
b[g].element.offset();b[g].proportions={width:b[g].element[0].offsetWidth,height:b[g].element[0].offsetHeight};d=="mousedown"&&b[g]._activate.call(b[g],e)}}},drop:function(c,e){var b=false;a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance))b=b||this._drop.call(this,e);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],c.currentItem||c.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,e)}}});return b},drag:function(c,e){c.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(c,e);a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var b=a.ui.intersect(c,this,this.options.tolerance);if(b=!b&&this.isover==1?"isout":b&&this.isover==0?"isover":null){var d;if(this.options.greedy){var f=this.element.parents(":data(droppable):eq(0)");if(f.length){d=a.data(f[0],"droppable");
d.greedyChild=b=="isover"?1:0}}if(d&&b=="isover"){d.isover=0;d.isout=1;d._out.call(d,e)}this[b]=1;this[b=="isout"?"isover":"isout"]=0;this[b=="isover"?"_over":"_out"].call(this,e);if(d&&b=="isout"){d.isout=0;d.isover=1;d._over.call(d,e)}}}})}}})(jQuery);
(function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,d=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!d.aspectRatio,aspectRatio:d.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:d.helper||d.ghost||d.animate?d.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=d.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var f=this.handles.split(",");this.handles={};for(var g=0;g<f.length;g++){var h=a.trim(f[g]),j=a('<div class="ui-resizable-handle '+("ui-resizable-"+h)+'"></div>');/sw|se|ne|nw/.test(h)&&j.css({zIndex:++d.zIndex});"se"==h&&j.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[h]=".ui-resizable-"+h;this.element.append(j)}}this._renderAxis=function(k){k=k||this.element;for(var l in this.handles){if(this.handles[l].constructor==
String)this.handles[l]=a(this.handles[l],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var m=a(this.handles[l],this.element),p=0;p=/sw|ne|nw|se|n|s/.test(l)?m.outerHeight():m.outerWidth();m=["padding",/ne|nw|n/.test(l)?"Top":/se|sw|s/.test(l)?"Bottom":/^e$/.test(l)?"Right":"Left"].join("");k.css(m,p);this._proportionallyResize()}a(this.handles[l])}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!b.resizing){if(this.className)var k=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=k&&k[1]?k[1]:"se"}});if(d.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").hover(function(){a(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){a(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(f){a(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){b(this.element);var d=this.element;d.after(this.originalElement.css({position:d.css("position"),width:d.outerWidth(),height:d.outerHeight(),top:d.css("top"),left:d.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var d=false,f;for(f in this.handles)if(a(this.handles[f])[0]==b.target)d=true;return!this.options.disabled&&d},_mouseStart:function(b){var d=this.options,f=this.element.position(),
g=this.element;this.resizing=true;this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()};if(g.is(".ui-draggable")||/absolute/.test(g.css("position")))g.css({position:"absolute",top:f.top,left:f.left});a.browser.opera&&/relative/.test(g.css("position"))&&g.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();f=c(this.helper.css("left"));var h=c(this.helper.css("top"));if(d.containment){f+=a(d.containment).scrollLeft()||0;h+=a(d.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:f,top:h};this.size=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalPosition={left:f,top:h};this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:
this.originalSize.width/this.originalSize.height||1;d=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",d=="auto"?this.axis+"-resize":d);g.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var d=this.helper,f=this.originalMousePosition,g=this._change[this.axis];if(!g)return false;f=g.apply(this,[b,b.pageX-f.left||0,b.pageY-f.top||0]);if(this._aspectRatio||b.shiftKey)f=this._updateRatio(f,b);f=this._respectSize(f,b);this._propagate("resize",
b);d.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(f);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var d=this.options;if(this._helper){var f=this._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName);f=g&&a.ui.hasScroll(f[0],"left")?0:this.sizeDiff.height;
g={width:this.size.width-(g?0:this.sizeDiff.width),height:this.size.height-f};f=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var h=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;d.animate||this.element.css(a.extend(g,{top:h,left:f}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!d.animate&&this._proportionallyResize()}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(e(b.left))this.position.left=b.left;if(e(b.top))this.position.top=b.top;if(e(b.height))this.size.height=b.height;if(e(b.width))this.size.width=b.width},_updateRatio:function(b){var d=this.position,f=this.size,g=this.axis;if(b.height)b.width=f.height*this.aspectRatio;else if(b.width)b.height=f.width/this.aspectRatio;if(g=="sw"){b.left=d.left+(f.width-b.width);b.top=
null}if(g=="nw"){b.top=d.top+(f.height-b.height);b.left=d.left+(f.width-b.width)}return b},_respectSize:function(b){var d=this.options,f=this.axis,g=e(b.width)&&d.maxWidth&&d.maxWidth<b.width,h=e(b.height)&&d.maxHeight&&d.maxHeight<b.height,j=e(b.width)&&d.minWidth&&d.minWidth>b.width,k=e(b.height)&&d.minHeight&&d.minHeight>b.height;if(j)b.width=d.minWidth;if(k)b.height=d.minHeight;if(g)b.width=d.maxWidth;if(h)b.height=d.maxHeight;var l=this.originalPosition.left+this.originalSize.width,m=this.position.top+
this.size.height,p=/sw|nw|w/.test(f);f=/nw|ne|n/.test(f);if(j&&p)b.left=l-d.minWidth;if(g&&p)b.left=l-d.maxWidth;if(k&&f)b.top=m-d.minHeight;if(h&&f)b.top=m-d.maxHeight;if((d=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(d&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,d=0;d<this._proportionallyResizeElements.length;d++){var f=this._proportionallyResizeElements[d];if(!this.borderDif){var g=
[f.css("borderTopWidth"),f.css("borderRightWidth"),f.css("borderBottomWidth"),f.css("borderLeftWidth")],h=[f.css("paddingTop"),f.css("paddingRight"),f.css("paddingBottom"),f.css("paddingLeft")];this.borderDif=a.map(g,function(j,k){var l=parseInt(j,10)||0,m=parseInt(h[k],10)||0;return l+m})}a.browser.msie&&(a(b).is(":hidden")||a(b).parents(":hidden").length)||f.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var d=a.browser.msie&&a.browser.version<7,f=d?1:0;d=d?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+d,height:this.element.outerHeight()+d,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,
d){return{width:this.originalSize.width+d}},w:function(b,d){return{left:this.originalPosition.left+d,width:this.originalSize.width-d}},n:function(b,d,f){return{top:this.originalPosition.top+f,height:this.originalSize.height-f}},s:function(b,d,f){return{height:this.originalSize.height+f}},se:function(b,d,f){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,d,f]))},sw:function(b,d,f){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,d,
f]))},ne:function(b,d,f){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,d,f]))},nw:function(b,d,f){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,d,f]))}},_propagate:function(b,d){a.ui.plugin.call(this,b,[d,this.ui()]);b!="resize"&&this._trigger(b,d,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
originalPosition:this.originalPosition}}});a.extend(a.ui.resizable,{version:"1.8.2"});a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("resizable").options,d=function(f){a(f).each(function(){a(this).data("resizable-alsoresize",{width:parseInt(a(this).width(),10),height:parseInt(a(this).height(),10),left:parseInt(a(this).css("left"),10),top:parseInt(a(this).css("top"),10)})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=
b.alsoResize[0];d(b.alsoResize)}else a.each(b.alsoResize,function(f){d(f)});else d(b.alsoResize)},resize:function(){var b=a(this).data("resizable"),d=b.options,f=b.originalSize,g=b.originalPosition,h={height:b.size.height-f.height||0,width:b.size.width-f.width||0,top:b.position.top-g.top||0,left:b.position.left-g.left||0},j=function(k,l){a(k).each(function(){var m=a(this),p=a(this).data("resizable-alsoresize"),n={};a.each((l&&l.length?l:["width","height","top","left"])||["width","height","top","left"],
function(o,q){var t=(p[q]||0)+(h[q]||0);if(t&&t>=0)n[q]=t||null});if(/relative/.test(m.css("position"))&&a.browser.opera){b._revertToRelativePosition=true;m.css({position:"absolute",top:"auto",left:"auto"})}m.css(n)})};typeof d.alsoResize=="object"&&!d.alsoResize.nodeType?a.each(d.alsoResize,function(k,l){j(k,l)}):j(d.alsoResize)},stop:function(){var b=a(this).data("resizable");if(b._revertToRelativePosition&&a.browser.opera){b._revertToRelativePosition=false;el.css({position:"relative"})}a(this).removeData("resizable-alsoresize-start")}});
a.ui.plugin.add("resizable","animate",{stop:function(b){var d=a(this).data("resizable"),f=d.options,g=d._proportionallyResizeElements,h=g.length&&/textarea/i.test(g[0].nodeName),j=h&&a.ui.hasScroll(g[0],"left")?0:d.sizeDiff.height;h={width:d.size.width-(h?0:d.sizeDiff.width),height:d.size.height-j};j=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null;var k=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;d.element.animate(a.extend(h,k&&
j?{top:k,left:j}:{}),{duration:f.animateDuration,easing:f.animateEasing,step:function(){var l={width:parseInt(d.element.css("width"),10),height:parseInt(d.element.css("height"),10),top:parseInt(d.element.css("top"),10),left:parseInt(d.element.css("left"),10)};g&&g.length&&a(g[0]).css({width:l.width,height:l.height});d._updateCache(l);d._propagate("resize",b)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var b=a(this).data("resizable"),d=b.element,f=b.options.containment;if(d=f instanceof
a?f.get(0):/parent/.test(f)?d.parent().get(0):f){b.containerElement=a(d);if(/document/.test(f)||f==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{var g=a(d),h=[];a(["Top","Right","Left","Bottom"]).each(function(l,m){h[l]=c(g.css("padding"+m))});b.containerOffset=g.offset();b.containerPosition=g.position();b.containerSize={height:g.innerHeight()-
h[3],width:g.innerWidth()-h[1]};f=b.containerOffset;var j=b.containerSize.height,k=b.containerSize.width;k=a.ui.hasScroll(d,"left")?d.scrollWidth:k;j=a.ui.hasScroll(d)?d.scrollHeight:j;b.parentData={element:d,left:f.left,top:f.top,width:k,height:j}}}},resize:function(b){var d=a(this).data("resizable"),f=d.options,g=d.containerOffset,h=d.position;b=d._aspectRatio||b.shiftKey;var j={top:0,left:0},k=d.containerElement;if(k[0]!=document&&/static/.test(k.css("position")))j=g;if(h.left<(d._helper?g.left:
0)){d.size.width+=d._helper?d.position.left-g.left:d.position.left-j.left;if(b)d.size.height=d.size.width/f.aspectRatio;d.position.left=f.helper?g.left:0}if(h.top<(d._helper?g.top:0)){d.size.height+=d._helper?d.position.top-g.top:d.position.top;if(b)d.size.width=d.size.height*f.aspectRatio;d.position.top=d._helper?g.top:0}d.offset.left=d.parentData.left+d.position.left;d.offset.top=d.parentData.top+d.position.top;f=Math.abs((d._helper?d.offset.left-j.left:d.offset.left-j.left)+d.sizeDiff.width);g=
Math.abs((d._helper?d.offset.top-j.top:d.offset.top-g.top)+d.sizeDiff.height);h=d.containerElement.get(0)==d.element.parent().get(0);j=/relative|absolute/.test(d.containerElement.css("position"));if(h&&j)f-=d.parentData.left;if(f+d.size.width>=d.parentData.width){d.size.width=d.parentData.width-f;if(b)d.size.height=d.size.width/d.aspectRatio}if(g+d.size.height>=d.parentData.height){d.size.height=d.parentData.height-g;if(b)d.size.width=d.size.height*d.aspectRatio}},stop:function(){var b=a(this).data("resizable"),
d=b.options,f=b.containerOffset,g=b.containerPosition,h=b.containerElement,j=a(b.helper),k=j.offset(),l=j.outerWidth()-b.sizeDiff.width;j=j.outerHeight()-b.sizeDiff.height;b._helper&&!d.animate&&/relative/.test(h.css("position"))&&a(this).css({left:k.left-g.left-f.left,width:l,height:j});b._helper&&!d.animate&&/static/.test(h.css("position"))&&a(this).css({left:k.left-g.left-f.left,width:l,height:j})}});a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("resizable"),d=b.options,
f=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof d.ghost=="string"?d.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});
a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("resizable"),d=b.options,f=b.size,g=b.originalSize,h=b.originalPosition,j=b.axis;d.grid=typeof d.grid=="number"?[d.grid,d.grid]:d.grid;var k=Math.round((f.width-g.width)/(d.grid[0]||1))*(d.grid[0]||1);d=Math.round((f.height-g.height)/(d.grid[1]||1))*(d.grid[1]||1);if(/^(se|s|e)$/.test(j)){b.size.width=g.width+k;b.size.height=g.height+d}else if(/^(ne)$/.test(j)){b.size.width=g.width+k;b.size.height=g.height+d;b.position.top=h.top-
d}else{if(/^(sw)$/.test(j)){b.size.width=g.width+k;b.size.height=g.height+d}else{b.size.width=g.width+k;b.size.height=g.height+d;b.position.top=h.top-d}b.position.left=h.left-k}}});var c=function(b){return parseInt(b,10)||0},e=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
jQuery.fn.addColorPicker=function(a){function c(e){e=e.match(/\d+/g);for(var b=0;b<e.length;b++){e[b]=parseInt(e[b]).toString(16);if(e[b].length<2)e[b]="0"+e[b]}return"#"+e[0]+e[1]+e[2]}a||(a=[]);a=jQuery.extend({colors:["#000000","#000033","#000066","#000099","#0000CC","#0000FF","#330000","#330033","#330066","#330099","#3300CC","#3300FF","#660000","#660033","#660066","#660099","#6600CC","#6600FF","#990000","#990033","#990066","#990099","#9900CC","#9900FF","#CC0000","#CC0033","#CC0066","#CC0099",
"#CC00CC","#CC00FF","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#003300","#003333","#003366","#003399","#0033CC","#0033FF","#333300","#333333","#333366","#333399","#3333CC","#3333FF","#663300","#663333","#663366","#663399","#6633CC","#6633FF","#993300","#993333","#993366","#993399","#9933CC","#9933FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#006600","#006633","#006666","#006699","#0066CC","#0066FF","#336600",
"#336633","#336666","#336699","#3366CC","#3366FF","#666600","#666633","#666666","#666699","#6666CC","#6666FF","#996600","#996633","#996666","#996699","#9966CC","#9966FF","#CC6600","#CC6633","#CC6666","#CC6699","#CC66CC","#CC66FF","#FF6600","#FF6633","#FF6666","#FF6699","#FF66CC","#FF66FF","#009900","#009933","#009966","#009999","#0099CC","#0099FF","#339900","#339933","#339966","#339999","#3399CC","#3399FF","#669900","#669933","#669966","#669999","#6699CC","#6699FF","#999900","#999933","#999966","#999999",
"#9999CC","#9999FF","#CC9900","#CC9933","#CC9966","#CC9999","#CC99CC","#CC99FF","#FF9900","#FF9933","#FF9966","#FF9999","#FF99CC","#FF99FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#66CC00","#66CC33","#66CC66","#66CC99","#66CCCC","#66CCFF","#99CC00","#99CC33","#99CC66","#99CC99","#99CCCC","#99CCFF","#CCCC00","#CCCC33","#CCCC66","#CCCC99","#CCCCCC","#CCCCFF","#FFCC00","#FFCC33","#FFCC66","#FFCC99","#FFCCCC","#FFCCFF","#00FF00",
"#00FF33","#00FF66","#00FF99","#00FFCC","#00FFFF","#33FF00","#33FF33","#33FF66","#33FF99","#33FFCC","#33FFFF","#66FF00","#66FF33","#66FF66","#66FF99","#66FFCC","#66FFFF","#99FF00","#99FF33","#99FF66","#99FF99","#99FFCC","#99FFFF","#CCFF00","#CCFF33","#CCFF66","#CCFF99","#CCFFCC","#CCFFFF","#FFFF00","#FFFF33","#FFFF66","#FFFF99","#FFFFCC","#FFFFFF"],width:"36",autoClose:"yes",colorBg:"yes",showCode:"yes",cursor:"crosshair",bgColor:"#000000",closeText:"Close",callback:""},a);$(this).click(function(){var e=
a.colors.length,b=jQuery('<div id="col_container"></div>').hide().css({"border-color":"#000000","border-style":"solid","border-width":"1px","z-index":2}).html("");b.css({cursor:a.cursor});b.css({"background-color":a.bgColor});var d=$(this);for(i=0;i<e;i++){i%a.width==0&&i>0&&b.append("<br />");var f=jQuery("<span style='background-color:"+a.colors[i]+"; class='all_colors'>&nbsp;</span>");f.appendTo(b);f.click(function(){var h=$(this).css("background-color");h=h.indexOf("rgb")!=-1?c(h):h;a.colorBg==
"yes"&&d.css({"background-color":h});a.showCode=="yes"&&d.val(h);a.autoClose=="yes"&&b.hide();a.callback&&a.callback(h)});f.mouseover(function(){var h=$(this).css("background-color");h=h.indexOf("rgb")!=-1?c(h):h;a.colorBg=="yes"&&d.css({"background-color":h});a.showCode=="yes"&&d.val(h);a.callback&&a.callback(h)})}b.insertAfter($(this));f=$(this).position();e=f.top;f=f.left;var g=$(this).width();b.css({position:"absolute",top:e-20,left:g+f});b.show();if(a.autoClose!=="yes"){e=jQuery("<br /> <a href='#' id='link_close'>"+
a.closeText+"</a>");e.appendTo(b);e.click(function(){b.hide()})}});return this};
jQuery&&function(){$.extend($.fn,{contextMenu:function(a,c){if(a.menu==undefined)return false;if(a.inSpeed==undefined)a.inSpeed=150;if(a.outSpeed==undefined)a.outSpeed=75;if(a.inSpeed==0)a.inSpeed=-1;if(a.outSpeed==0)a.outSpeed=-1;$(this).each(function(){var e=$(this),b=$(e).offset();$("#"+a.menu).addClass("contextMenu");$(this).mousedown(function(d){$(this).mouseup(function(f){var g=$(this);$(this).unbind("mouseup");if(d.button==2){$(".contextMenu").hide();var h=$("#"+a.menu);if($(e).hasClass("disabled"))return false;
var j={},k,l;if(self.innerHeight){j.pageYOffset=self.pageYOffset;j.pageXOffset=self.pageXOffset;j.innerHeight=self.innerHeight;j.innerWidth=self.innerWidth}else if(document.documentElement&&document.documentElement.clientHeight){j.pageYOffset=document.documentElement.scrollTop;j.pageXOffset=document.documentElement.scrollLeft;j.innerHeight=document.documentElement.clientHeight;j.innerWidth=document.documentElement.clientWidth}else if(document.body){j.pageYOffset=document.body.scrollTop;j.pageXOffset=
document.body.scrollLeft;j.innerHeight=document.body.clientHeight;j.innerWidth=document.body.clientWidth}f.pageX?k=f.pageX:k=f.clientX+j.scrollLeft;f.pageY?l=f.pageY:k=f.clientY+j.scrollTop;$(document).unbind("click");$(h).css({top:l,left:k}).fadeIn(a.inSpeed);$(h).find("A").mouseover(function(){$(h).find("LI.hover").removeClass("hover");$(this).parent().addClass("hover")}).mouseout(function(){$(h).find("LI.hover").removeClass("hover")});$(document).keypress(function(m){switch(m.keyCode){case 38:if($(h).find("LI.hover").size()==
0)$(h).find("LI:last").addClass("hover");else{$(h).find("LI.hover").removeClass("hover").prevAll("LI:not(.disabled)").eq(0).addClass("hover");$(h).find("LI.hover").size()==0&&$(h).find("LI:last").addClass("hover")}break;case 40:if($(h).find("LI.hover").size()==0)$(h).find("LI:first").addClass("hover");else{$(h).find("LI.hover").removeClass("hover").nextAll("LI:not(.disabled)").eq(0).addClass("hover");$(h).find("LI.hover").size()==0&&$(h).find("LI:first").addClass("hover")}break;case 13:$(h).find("LI.hover A").trigger("click");
break;case 27:$(document).trigger("click")}});$("#"+a.menu).find("A").unbind("click");$("#"+a.menu).find("LI:not(.disabled) A").click(function(){$(document).unbind("click").unbind("keypress");$(".contextMenu").hide();c&&c($(this).attr("href").substr(1),$(g),{x:k-b.left,y:l-b.top,docX:k,docY:l});return false});setTimeout(function(){$(document).click(function(){$(document).unbind("click").unbind("keypress");$(h).fadeOut(a.outSpeed);return false})},0)}})});if($.browser.mozilla)$("#"+a.menu).each(function(){$(this).css({MozUserSelect:"none"})});
else $.browser.msie?$("#"+a.menu).each(function(){$(this).bind("selectstart.disableTextSelect",function(){return false})}):$("#"+a.menu).each(function(){$(this).bind("mousedown.disableTextSelect",function(){return false})});$(e).add("UL.contextMenu").bind("contextmenu",function(){return false})});return $(this)},disableContextMenuItems:function(a){if(a==undefined){$(this).find("LI").addClass("disabled");return $(this)}$(this).each(function(){if(a!=undefined)for(var c=a.split(","),e=0;e<c.length;e++)$(this).find('A[href="'+
c[e]+'"]').parent().addClass("disabled")});return $(this)},enableContextMenuItems:function(a){if(a==undefined){$(this).find("LI.disabled").removeClass("disabled");return $(this)}$(this).each(function(){if(a!=undefined)for(var c=a.split(","),e=0;e<c.length;e++)$(this).find('A[href="'+c[e]+'"]').parent().removeClass("disabled")});return $(this)},disableContextMenu:function(){$(this).each(function(){$(this).addClass("disabled")});return $(this)},enableContextMenu:function(){$(this).each(function(){$(this).removeClass("disabled")});
return $(this)},destroyContextMenu:function(){$(this).each(function(){$(this).unbind("mousedown").unbind("mouseup")});return $(this)}})}(jQuery);
jQuery.cookie=function(a,c,e){if(typeof c!="undefined"){e=e||{};if(c===null){c="";e=$.extend({},e);e.expires=-1}var b="";if(e.expires&&(typeof e.expires=="number"||e.expires.toUTCString)){if(typeof e.expires=="number"){b=new Date;b.setTime(b.getTime()+e.expires*24*60*60*1E3)}else b=e.expires;b="; expires="+b.toUTCString()}var d=e.path?"; path="+e.path:"",f=e.domain?"; domain="+e.domain:"";e=e.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(c),b,d,f,e].join("")}else{c=null;if(document.cookie&&
document.cookie!=""){e=document.cookie.split(";");for(b=0;b<e.length;b++){d=jQuery.trim(e[b]);if(d.substring(0,a.length+1)==a+"="){c=decodeURIComponent(d.substring(a.length+1));break}}}return c}};
(function(a){function c(){a.fn.ajaxSubmit.debug&&window.console&&window.console.log&&window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}a.fn.ajaxSubmit=function(e){function b(){function m(){if(!B++){s.detachEvent?s.detachEvent("onload",m):s.removeEventListener("load",m,false);var x=true;try{if(C)throw"timeout";var u,w;w=s.contentWindow?s.contentWindow.document:s.contentDocument?s.contentDocument:s.document;if((w.body==null||w.body.innerHTML=="")&&!D){D=1;B--;setTimeout(m,
100);return}r.responseText=w.body?w.body.innerHTML:null;r.responseXML=w.XMLDocument?w.XMLDocument:w;r.getResponseHeader=function(F){return{"content-type":o.dataType}[F]};if(o.dataType=="json"||o.dataType=="script"){var y=w.getElementsByTagName("textarea")[0];r.responseText=y?y.value:r.responseText}else if(o.dataType=="xml"&&!r.responseXML&&r.responseText!=null)r.responseXML=p(r.responseText);u=a.httpData(r,o.dataType)}catch(G){x=false;a.handleError(o,r,"error",G)}if(x){o.success(u,"success");A&&a.event.trigger("ajaxSuccess",
[r,o])}A&&a.event.trigger("ajaxComplete",[r,o]);A&&!--a.active&&a.event.trigger("ajaxStop");if(o.complete)o.complete(r,x?"success":"error");setTimeout(function(){v.remove();r.responseXML=null},100)}}function p(x,u){if(window.ActiveXObject){u=new ActiveXObject("Microsoft.XMLDOM");u.async="false";u.loadXML(x)}else u=(new DOMParser).parseFromString(x,"text/xml");return u&&u.documentElement&&u.documentElement.tagName!="parsererror"?u:null}var n=j[0];if(a(":input[name=submit]",n).length)alert('Error: Form elements must not be named "submit".');
else{var o=a.extend({},a.ajaxSettings,e),q=a.extend(true,{},a.extend(true,{},a.ajaxSettings),o),t="jqFormIO"+(new Date).getTime(),v=a('<iframe id="'+t+'" name="'+t+'" src="about:blank" />'),s=v[0];v.css({position:"absolute",top:"-1000px",left:"-1000px"});var r={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;v.attr("src","about:blank")}},A=o.global;
A&&!a.active++&&a.event.trigger("ajaxStart");A&&a.event.trigger("ajaxSend",[r,o]);if(q.beforeSend&&q.beforeSend(r,q)===false)q.global&&a.active--;else if(!r.aborted){var B=0,C=0;if(q=n.clk){var E=q.name;if(E&&!q.disabled){e.extraData=e.extraData||{};e.extraData[E]=q.value;if(q.type=="image"){e.extraData[name+".x"]=n.clk_x;e.extraData[name+".y"]=n.clk_y}}}setTimeout(function(){var x=j.attr("target"),u=j.attr("action");n.setAttribute("target",t);n.getAttribute("method")!="POST"&&n.setAttribute("method",
"POST");n.getAttribute("action")!=o.url&&n.setAttribute("action",o.url);e.skipEncodingOverride||j.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});o.timeout&&setTimeout(function(){C=true;m()},o.timeout);var w=[];try{if(e.extraData)for(var y in e.extraData)w.push(a('<input type="hidden" name="'+y+'" value="'+e.extraData[y]+'" />').appendTo(n)[0]);v.appendTo("body");s.attachEvent?s.attachEvent("onload",m):s.addEventListener("load",m,false);n.submit()}finally{n.setAttribute("action",
u);x?n.setAttribute("target",x):j.removeAttr("target");a(w).remove()}},10);var D=0}}}if(!this.length){c("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof e=="function")e={success:e};var d=a.trim(this.attr("action"));if(d)d=(d.match(/^([^#]+)/)||[])[1];d=d||window.location.href||"";e=a.extend({url:d,type:this.attr("method")||"GET"},e||{});d={};this.trigger("form-pre-serialize",[this,e,d]);if(d.veto){c("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(e.beforeSerialize&&
e.beforeSerialize(this,e)===false){c("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var f=this.formToArray(e.semantic);if(e.data){e.extraData=e.data;for(var g in e.data)if(e.data[g]instanceof Array)for(var h in e.data[g])f.push({name:g,value:e.data[g][h]});else f.push({name:g,value:e.data[g]})}if(e.beforeSubmit&&e.beforeSubmit(f,this,e)===false){c("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[f,this,e,d]);if(d.veto){c("ajaxSubmit: submit vetoed via form-submit-validate trigger");
return this}g=a.param(f);if(e.type.toUpperCase()=="GET"){e.url+=(e.url.indexOf("?")>=0?"&":"?")+g;e.data=null}else e.data=g;var j=this,k=[];e.resetForm&&k.push(function(){j.resetForm()});e.clearForm&&k.push(function(){j.clearForm()});if(!e.dataType&&e.target){var l=e.success||function(){};k.push(function(m){a(e.target).html(m).each(l,arguments)})}else e.success&&k.push(e.success);e.success=function(m,p){for(var n=0,o=k.length;n<o;n++)k[n].apply(e,[m,p,j])};g=a("input:file",this).fieldValue();h=false;
for(d=0;d<g.length;d++)if(g[d])h=true;if(e.iframe||h||0)e.closeKeepAlive?a.get(e.closeKeepAlive,b):b();else a.ajax(e);this.trigger("form-submit-notify",[this,e]);return this};a.fn.ajaxForm=function(e){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){a(this).ajaxSubmit(e);return false}).each(function(){a(":submit,input:image",this).bind("click.form-plugin",function(b){var d=this.form;d.clk=this;if(this.type=="image")if(b.offsetX!=undefined){d.clk_x=b.offsetX;d.clk_y=b.offsetY}else if(typeof a.fn.offset==
"function"){var f=a(this).offset();d.clk_x=b.pageX-f.left;d.clk_y=b.pageY-f.top}else{d.clk_x=b.pageX-this.offsetLeft;d.clk_y=b.pageY-this.offsetTop}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)})})};a.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){a(":submit,input:image",this).unbind("click.form-plugin")})};a.fn.formToArray=function(e){var b=[];if(this.length==0)return b;var d=this[0],f=e?d.getElementsByTagName("*"):d.elements;if(!f)return b;for(var g=
0,h=f.length;g<h;g++){var j=f[g],k=j.name;if(k)if(e&&d.clk&&j.type=="image"){if(!j.disabled&&d.clk==j){b.push({name:k,value:a(j).val()});b.push({name:k+".x",value:d.clk_x},{name:k+".y",value:d.clk_y})}}else if((j=a.fieldValue(j,true))&&j.constructor==Array)for(var l=0,m=j.length;l<m;l++)b.push({name:k,value:j[l]});else j!==null&&typeof j!="undefined"&&b.push({name:k,value:j})}if(!e&&d.clk){e=a(d.clk);f=e[0];if((k=f.name)&&!f.disabled&&f.type=="image"){b.push({name:k,value:e.val()});b.push({name:k+
".x",value:d.clk_x},{name:k+".y",value:d.clk_y})}}return b};a.fn.formSerialize=function(e){return a.param(this.formToArray(e))};a.fn.fieldSerialize=function(e){var b=[];this.each(function(){var d=this.name;if(d){var f=a.fieldValue(this,e);if(f&&f.constructor==Array)for(var g=0,h=f.length;g<h;g++)b.push({name:d,value:f[g]});else f!==null&&typeof f!="undefined"&&b.push({name:this.name,value:f})}});return a.param(b)};a.fn.fieldValue=function(e){for(var b=[],d=0,f=this.length;d<f;d++){var g=a.fieldValue(this[d],
e);g===null||typeof g=="undefined"||g.constructor==Array&&!g.length||(g.constructor==Array?a.merge(b,g):b.push(g))}return b};a.fieldValue=function(e,b){var d=e.name,f=e.type,g=e.tagName.toLowerCase();if(typeof b=="undefined")b=true;if(b&&(!d||e.disabled||f=="reset"||f=="button"||(f=="checkbox"||f=="radio")&&!e.checked||(f=="submit"||f=="image")&&e.form&&e.form.clk!=e||g=="select"&&e.selectedIndex==-1))return null;if(g=="select"){var h=e.selectedIndex;if(h<0)return null;d=[];g=e.options;var j=(f=f==
"select-one")?h+1:g.length;for(h=f?h:0;h<j;h++){var k=g[h];if(k.selected){var l=k.value;l||(l=k.attributes&&k.attributes.value&&!k.attributes.value.specified?k.text:k.value);if(f)return l;d.push(l)}}return d}return e.value};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var e=this.type,b=this.tagName.toLowerCase();if(e=="text"||e=="password"||b=="textarea")this.value="";
else if(e=="checkbox"||e=="radio")this.checked=false;else if(b=="select")this.selectedIndex=-1})};a.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};a.fn.enable=function(e){if(e==undefined)e=true;return this.each(function(){this.disabled=!e})};a.fn.selected=function(e){if(e==undefined)e=true;return this.each(function(){var b=this.type;if(b=="checkbox"||b=="radio")this.checked=e;else if(this.tagName.toLowerCase()==
"option"){b=a(this).parent("select");e&&b[0]&&b[0].type=="select-one"&&b.find("option").selected(false);this.selected=e}})}})(jQuery);var PCN={};PCN.url="http://www.p.c";PCN.weekday=["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"];PCN.faviconAPI={google:"http://www.google.com/s2/favicons?domain_url="};
Date.prototype.format=function(a){var c={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};if(/(y|Y+)/.test(a))a=a.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length));for(var e in c)if(RegExp("("+e+")").test(a))a=a.replace(RegExp.$1,RegExp.$1.length==1?c[e]:("00"+c[e]).substr((""+c[e]).length));return a};
function isMail(a){return a.search(/^([a-zA-Z0-9]+[-_.])*[a-zA-Z0-9]+@\w+\.([a-zA-Z]{2,4}|\w+\.[a-zA-Z]{2,4})$/)>=0}function _go(a){(arguments.length>1?arguments[1]:window).location.href=a}function gp(a){var c=arguments.length>1?arguments[1]:window.location.search;if(c!=null||c!=""){c=c.replace(/^\?+/,"");c=c.split("&");var e=c.length;if(e>0)for(var b=0;b<e;b++){var d=c[b].split("=",2);if(d[0]&&d[1]&&d[0]==a)return unescape(d[1])}}return null}
function addFav(a,c){typeof window.sidebar=="object"&&typeof window.sidebar.addPanel=="function"?window.sidebar.addPanel(c,a,""):window.external.AddFavorite(a,c)}
function setHomepage(a){if(document.all){document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(a)}else if(window.sidebar){if(window.netscape)try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(c){$.alert("\u8be5\u64cd\u4f5c\u88ab\u6d4f\u89c8\u5668\u62d2\u7edd\uff0c\u5982\u679c\u60f3\u542f\u7528\u8be5\u529f\u80fd\uff0c\u8bf7\u5728\u5730\u5740\u680f\u5185\u8f93\u5165 about:config,\u7136\u540e\u5c06\u9879 signed.applets.codebase_principal_support \u503c\u8be5\u4e3atrue")}try{Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch).setCharPref("browser.startup.homepage",a)}catch(e){$.alert("\u8bbe\u7f6e\u5931\u8d25\uff0c\u8bf7\u8c03\u6574\u6d4f\u89c8\u5668\u8bbe\u7f6e\uff0c\u6216\u8005\u624b\u52a8\u6dfb\u52a0")}}}
function isArray(a){return a.constructor==Array}function get_extname(a){a=(new String(a)).toLowerCase();return a.lastIndexOf(".")>-1&&a.length-1>a.lastIndexOf(".")?a.substring(a.lastIndexOf(".")+1):false}var z={};
z.heightlight=function(a,c){c=c||{};c.times=c.times||20;var e=a.offset(),b=$("#HLB");b.css({left:e.left-2,top:e.top-2,width:a.width(),height:a.height()}).show();var d=0,f=window.setInterval(function(){if(d>=c.times){window.clearInterval(f);b.fadeOut("slow")}b.css("borderColor")=="red red red red"?b.css("borderColor","#ccc"):b.css("borderColor","red");d++},500)};
function RGBColor(a){this.ok=false;if(a.charAt(0)=="#")a=a.substr(1,6);a=a.replace(/ /g,"");a=a.toLowerCase();var c={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",
darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",
gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",
lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",
oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",
slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},e;for(e in c)if(a==e)a=c[e];var b=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(g){return[parseInt(g[1]),parseInt(g[2]),parseInt(g[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,
example:["#00ff00","336699"],process:function(g){return[parseInt(g[1],16),parseInt(g[2],16),parseInt(g[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(g){return[parseInt(g[1]+g[1],16),parseInt(g[2]+g[2],16),parseInt(g[3]+g[3],16)]}}];for(e=0;e<b.length;e++){var d=b[e].process,f=b[e].re.exec(a);if(f){channels=d(f);this.r=channels[0];this.g=channels[1];this.b=channels[2];this.ok=true}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r;this.g=this.g<0||isNaN(this.g)?
0:this.g>255?255:this.g;this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b;this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"};this.toHex=function(){var g=this.r.toString(16),h=this.g.toString(16),j=this.b.toString(16);if(g.length==1)g="0"+g;if(h.length==1)h="0"+h;if(j.length==1)j="0"+j;return"#"+g+h+j};this.getHelpXML=function(){for(var g=[],h=0;h<b.length;h++)for(var j=b[h].example,k=0;k<j.length;k++)g[g.length]=j[k];for(var l in c)g[g.length]=l;j=document.createElement("ul");
j.setAttribute("id","rgbcolor-examples");for(h=0;h<g.length;h++)try{var m=document.createElement("li"),p=new RGBColor(g[h]),n=document.createElement("div");n.style.cssText="margin: 3px; border: 1px solid black; background:"+p.toHex()+"; color:"+p.toHex();n.appendChild(document.createTextNode("test"));var o=document.createTextNode(" "+g[h]+" -> "+p.toRGB()+" -> "+p.toHex());m.appendChild(n);m.appendChild(o);j.appendChild(m)}catch(q){}return j}}
(function(a){a.rConfirmDeed=function(c,e){e||(e="\u786e\u5b9a\u8fdb\u884c\u6b64\u64cd\u4f5c\uff1f");new rPrompt(e,c)};a.rebatePrompt=function(){var c=$('<div style="background-color:#fff; position:relative;">  <div style="position:absolute;right:0;top:0; padding:5px;cursor:pointer;" class="RPROMPT_close"><img src="images/ProClose.png"></div>   <div style="padding-bottom:15px;padding-top:25px;">   <table cellpadding="0" cellspacing="0" border="0"><tr><td style="vertical-align:middle;padding-left:15px;" class="RPROMPT_img"><img src="images/fllogo.png" /></td> <td style="width:175px;vertical-align:middle;padding-left:5px;padding-right:15px;font-size:12px; line-height:22px;text-align:center; color:#333;" class="RPROMPT_content_inner">\u901a\u8fc7P.CN\u8fd4\u5229\u5546\u5bb6\u8fdb\u5165\u5546\u5bb6\u8d2d\u7269\uff0c\u76f4\u63a5\u4eab\u53d7178.p.cn\u8fd4\u5229\uff0c\u8be6\u60c5\u8bf7\u767b\u5f55<a href="http://178.p.cn" target="_blank">178.p.cn</a></td></tr></table>   </div> </div>');
RPrompt.call(this,c);var e=this;c.find(".RPROMPT_close").click(function(){e.close()})};a.rPrompt=function(c,e,b,d){if(!c)return false;var f="",g="#fff",h="#333";if(b){f="001";g="#606060";h="#fff"}var j=$('<div style="position:relative;width:300px;background-color:'+g+'; ">  <div style="position:absolute;right:0;top:0;padding:5px;cursor:pointer" class="RPROMPT_close"><img src="images/ProClose'+f+'.png"></div>   <div style=" width:100%;padding:15px 0;overflow:hidden;">   <span style="width:63px;display:inline-block;vertical-align:middle;" class="RPROMPT_img"></span> <span style="width:190px;display:inline-block;vertical-align:middle;margin-right:20px;font-size:12px; line-height:22px;text-align:center; color:'+
h+';" class="RPROMPT_content_inner">\u63d0\u793a\uff1a</span>   </div></div>');b='<img src="images/Update_Doubt'+f+'.png" /> ';g='<img src="images/Update_Success'+f+'.png" />';h='<img src="images/Update_Error'+f+'.png" />';f='<img src="images/Update_Warn'+f+'.png" />';j.find(".RPROMPT_content_inner").html(c);if(typeof e=="function"){j.find(".RPROMPT_img").html(b);c=$('<div style="text-align:center;"></div>');c.append($('<img src="images/Doubt002.png" style="cursor:pointer;margin-right:40px;"/>').click(function(){j.find(".RPROMPT_close").click();
e()}));c.append($('<img src="images/Doubt001.png" style="cursor:pointer;" />').click(function(){j.find(".RPROMPT_close").click()}));j.find(".RPROMPT_content_inner").append(c)}else if(e)if(e==1)j.find(".RPROMPT_img").html(g);else e==2&&j.find(".RPROMPT_img").html(h);else j.find(".RPROMPT_img").html(f);RPrompt.call(this,j,d);var k=this;j.find(".RPROMPT_close").click(function(){k.close()})};a.RPrompt=function(c,e){var b=this,d=$("#RPROMPT");if(d.length==0)d=$('<div id="RPROMPT"  style="color:#333;left:0;top:0px;overflow:hidden;z-index:9999999999999;position:absolute;display:none;"><table cellpadding="0"  class="jmodal-main"  cellspacing="0" border="0" style="position:relative;">    <tr>       <td class="jmodal-top-left jmodal-png-fiexed">&nbsp;</td>       <td class="jmodal-border-top jmodal-png-fiexed">&nbsp;</td>       <td class="jmodal-top-right jmodal-png-fiexed">&nbsp;</td>       </tr>       <tr>       <td class="jmodal-border-left jmodal-png-fiexed">&nbsp;</td>       <td  class="RPROMPT_content" style="background-color:white">\u63d0\u793a\uff1a</td>       <td class="jmodal-border-right jmodal-png-fiexed">&nbsp;</td>       </tr>       <tr>       <td class="jmodal-bottom-left jmodal-png-fiexed">&nbsp;</td>       <td class="jmodal-border-bottom jmodal-png-fiexed">&nbsp;</td>       <td class="jmodal-bottom-right jmodal-png-fiexed">&nbsp;</td>       </tr>       </table> </div>      ').appendTo("body");
if(typeof c=="string")d.find(".RPROMPT_content").css({padding:"20px 40px"}).text(c);else c.jquery&&d.find(".RPROMPT_content").html(c);var f={},g=$(window).width(),h=$(window).height(),j=d.width(),k=d.height();f.left=$(document).scrollLeft();if(g>j)f.left+=(g-j)/2;f.top=$(document).scrollTop();if(h>k)f.top+=(h-k)/2;d.css({left:f.left,top:f.top});if(this.constructor.timer){window.clearTimeout(this.constructor.timer);this.constructor.timer=null}d.stop().fadeTo("fast",1);this.close=function(){d.fadeOut()};
if(e){if(e===true)e=3E3;this.constructor.timer=window.setTimeout(function(){b.close();b.constructor.timer=null},e)}this.win=d}})(window);
$.extend($.fn,{hideJmodal:function(){$("#jmodal-overlay").animate({opacity:0},function(){$(this).hide()});$.isIE6&&$("#jquery-jmodal,.jmodal-loading").show();$("#jquery-jmodal,.jmodal-loading").fadeOut();var a=$("#jquery-jmodal").data("loadingInterval");if(a){$("#jquery-jmodal").data("loadingInterval",null);clearInterval(a)}},jmodal:function(a){var c=$.fn.extend({full:false,delay:true,data:{},buttonText:{ok:"Ok",cancel:"Cancel"},okEvent:function(){},title:"JModal Dialog",content:"This is a jquery plugin!",
load:null,initWidth:null,initHeight:null,hasCloser:null},a);c.winWidth=$(window).width();c.winHeight=$(window).height();c.docWidth=$(document).width();c.docHeight=$(document).height();c.docSclLeft=$(document).scrollLeft();c.docSclTop=$(document).scrollTop();c.marginTop=0;c.marginLeft=0;c.loading=$(".jmodal-loading");c.finish=function(){if(c.iframe)if(c.loading.is(":visible")){$("#jquery-jmodal").invisible().show();if(!c.initHeight)c.initHeight=window.frames[c.iframe.attr("name")].document.body.scrollHeight+
2;if(!c.initWidth)c.initWidth=window.frames[c.iframe.attr("name")].document.body.scrollWidth;$("#jquery-jmodal").visible().hide()}else{if(!c.initHeight)c.initHeight=window.frames[c.iframe.attr("name")].document.body.scrollHeight+2;if(!c.initWidth)c.initWidth=window.frames[c.iframe.attr("name")].document.body.scrollWidth}if(c.initHeight<c.winHeight)c.marginTop=(c.winHeight-c.initHeight)/2+c.docSclTop-10;if(c.initWidth<c.winWidth)c.marginLeft=(c.winWidth-c.initWidth)/2+c.docSclLeft;$("#jmodal-container,#jmodal-container iframe").css({height:c.initHeight,
width:c.initWidth});$("#jquery-jmodal").css({height:c.initHeight+20,width:c.initWidth+20,top:c.marginTop,left:c.marginLeft-10});if(c.loading.is(":visible")){if(c.delay){c.loading.fadeOut();var b=$("#jquery-jmodal").data("loadingInterval");if(b){$("#jquery-jmodal").data("loadingInterval",null);clearInterval(b)}}$.isIE6?$("#jquery-jmodal").show():$("#jquery-jmodal").css({opacity:1}).fadeIn();if(c.load){if(document.readyState!="complete"||window.frames[c.iframe.attr("name")].document.readyState!="complete")return setTimeout(c.load,
1E3);c.load()}}c.initHeight=null;c.initWidth=null};if($("#jquery-jmodal").length==0){$('<div id="jmodal-overlay" class="jmodal-overlay"/><div class=\'jmodal-loading\'><div></div></div><div class="jmodal-main" id="jquery-jmodal"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;height:100%;"><tr><td class="jmodal-top-left jmodal-png-fiexed">&nbsp;</td><td class="jmodal-border-top jmodal-png-fiexed">&nbsp;</td><td class="jmodal-top-right jmodal-png-fiexed">&nbsp;</td></tr><tr><td class="jmodal-border-left jmodal-png-fiexed">&nbsp;</td><td class="jmodal-container" id="jmodal-container"></td><td class="jmodal-border-right jmodal-png-fiexed">&nbsp;</td></tr><tr><td class="jmodal-bottom-left jmodal-png-fiexed">&nbsp;</td><td class="jmodal-border-bottom jmodal-png-fiexed">&nbsp;</td><td class="jmodal-bottom-right jmodal-png-fiexed">&nbsp;</td></tr></table></div>').appendTo($(document.body));
c.loading=c.loading&&c.loading.length>0?c.loading:$(".jmodal-loading");$("#jmodal-overlay").css({height:c.docHeight,opacity:0}).click($.fn.hideJmodal)}$("#jmodal-overlay").css({opacity:0});$("#jquery-jmodal").hide();c.full?$("td.jmodal-container").html('<div class="jmodal-content" id="jmodal-container-content" />'):$("td.jmodal-container").html('<div class="jmodal-title" /><div class="jmodal-content" id="jmodal-container-content" /><div class="jmodal-bottom"><input type="button" value="'+c.buttonText.ok+
'" />&nbsp;&nbsp;<input type="button" value="'+c.buttonText.cancel+'" /></div>');c.full||$("#jquery-jmodal").find(".jmodal-title").html(c.title).next().css({padding:"20px 10px"}).next().children("input:first-child").attr("value",c.buttonText.ok).unbind("click").one("click",function(){c.okEvent(c.data,{complete:$.fn.hideJmodal})}).next().attr("value",c.buttonText.cancel).unbind("click").one("click",$.fn.hideJmodal);if(c.content){typeof c.content=="string"&&$("#jmodal-container-content").html(c.content);
if(typeof c.content=="function"){a=$("#jmodal-container-content");a.holder=$("#jquery-jmodal");c.content(a)}if(typeof c.content.iframe!=="undefined"&&c.content.iframe!=null){c.iframe=$("<iframe id='test' frameborder=0   framespacing=0 scrolling='no'  hspace='0' width='100%' style='z-index:10;overflow:hidden' name='jmodalFrame"+(new Date).valueOf()+"'  src='"+c.content.iframe+"'></iframe>").load(function(){c.finish()});$("#jmodal-container-content").empty().append(c.iframe)}c.content.jquery&&$("#jmodal-container-content").empty().append(c.content)}c.hasCloser===
true&&$("#jmodal-container-content").prepend($('<div style="width:100%; height:30px; background-color:#606060;"><div style="float:left; padding-left:10px;line-height:28px" class="White14"><strong>'+c.title+'</strong></div><div style="float:right; padding:3px 3px 0px 0px;cursor:pointer;"><img src="images/Close001.png"></div> </div>').click(function(){$.fn.hideJmodal()}));$("#jmodal-overlay").show().animate({opacity:0.5});if(c.delay){c.loading.fadeIn();var e=0;a=setInterval(function(){c.loading.find("div").css("top",
e*-40+"px");e=++e%12},66);$("#jquery-jmodal").data("loadingInterval",a)}else c.finish();return c}});
