(function($){$.fn.ShowTip=function(Title,Texts,DivW,DivH,cover,Time,Url,Sub,IsTip,IsDrag){var Tid=[Title||"",Texts||"",DivW||0,DivH||0,cover||0,Time||0,Url||0,Sub||0,IsTip||0,IsDrag||0];if(Tid[2]==0){alert("您要设置的 提示框宽度 初始化错误\r\n请检查标签宽度设置是否正确!");return}var CountTime;var TipDiv=["#ShowTipDevelop","#ShowTipTitle",".ShowTipContent","#ShowTipBG",".CloseShowTip",".ShowTimes",".ShowTipSub",".ShowFooter"];var TipMsg=["确认","关闭","服务器繁忙，请稍后再试！","秒自动关闭！","秒将自动跳转！"];var contentType;var MinImg="/themes/images/blank.gif";if($(TipDiv[0]).get(0)==null){if(Tid[3]!=0){var TipDivHTXT='style="height:'+Tid[3]+'px;"'}else{var TipDivHTXT='style="height:auto;"'}$("body").append('<div id="ShowTipBG" style="height:'+$(document).height()+'px;opacity: 0.2;"></div><div id="ShowTipDevelop" style="width:'+Tid[2]+'px;"><div id="ShowTipTitle"><span class="Title"></span><img src="'+MinImg+'" class="CloseShowTip" /></div><div class="ShowTipContent"  '+TipDivHTXT+'></div><div class="ShowFooter"><a href="javascript:void(0)" class="ShowTipSub"><span>'+TipMsg[0]+'</span></a> <a href="javascript:void(0)" class="CloseShowTip"><span>'+TipMsg[1]+"</span></a></div></div>");if($.browser.msie){$("#ShowTipBG").css({filter:"alpha(opacity=20)"})}$(TipDiv[0]).css({top:parseInt(document.documentElement.scrollTop+document.body.scrollTop+(document.documentElement.clientHeight-$(TipDiv[0]).height())/2-30)+"px",left:(document.documentElement.clientWidth-$(TipDiv[0]).width())/2+"px"});if(Tid[9]==1){$.fn.easydragWidth={widthx:$(TipDiv[0]).width()};$(TipDiv[0]).easydrag();$(TipDiv[0]).setHandler(TipDiv[1])}$(TipDiv[0]+" "+TipDiv[4]).click(function(){clearTimeout($.fn.ShowTip.CountTime);$(TipDiv[0]).animate({top:(document.documentElement.scrollTop+document.body.scrollTop+(document.documentElement.clientHeight-$(TipDiv[0]).height())/2-30)+"px",opacity:"hide"},"normal");$(TipDiv[3]).hide();if($(TipDiv[5]).get(0)!=null){$(TipDiv[5]).hide()}});$(TipDiv[6]).click(function(){clearTimeout($.fn.ShowTip.CountTime);$(TipDiv[5]+","+TipDiv[0]).hide();eval(Tid[7])})}else{clearTimeout($.fn.ShowTip.CountTime);if(Tid[8]==0){$(TipDiv[0]).hide()}$(TipDiv[0]).css({width:Tid[2]+"px"});if(Tid[3]!=0){$(TipDiv[2]).css({height:Tid[3]+"px"})}else{$(TipDiv[2]).css({height:"auto"})}}if(Tid[7]==1){$(TipDiv[7]).hide()}else{$(TipDiv[7]).show()}contentType=Tid[1].substring(0,Tid[1].indexOf(":"));if(contentType!=""||contentType!=null){Tid[1]=Tid[1].substring(Tid[1].indexOf(":")+1,Tid[1].length)}switch(contentType){case"url":var content_array=Tid[1].split("?");$(TipDiv[2]).ajaxStart(function(){$(this).html("Loading...")});$.ajax({type:content_array[0],url:content_array[1],data:content_array[2],error:function(){$(TipDiv[2]).html(TipMsg[2])},success:function(html){$(TipDiv[2]).html(html)}});break;case"text":$(TipDiv[2]).html(Tid[1]);break;case"id":$(TipDiv[2]).html($("#"+Tid[1]+"").html());break;case"iframe":$(TipDiv[2]).html('<iframe id="ShowTipIframe" src="'+Tid[1]+'" width="100%" height="'+(parseInt(Tid[3]))+'px" scrolling="auto" frameborder="0" marginheight="0" marginwidth="0"></iframe>');break;default:$(TipDiv[2]).html(Tid[1]);break}$(TipDiv[1]+" .Title").html(Tid[0]);$(TipDiv[6]).hide();if(Tid[7]!=0&Tid[7]!=null){$(TipDiv[6]).show()}if(Tid[8]==0){$(TipDiv[0]).css({top:parseInt(document.documentElement.scrollTop+document.body.scrollTop+(document.documentElement.clientHeight-$(TipDiv[0]).height())/2-30)+"px",left:(document.documentElement.clientWidth-$(TipDiv[0]).width())/2+"px"})}if(cover==0){$(TipDiv[0]).animate({top:(document.documentElement.scrollTop+document.body.scrollTop+(document.documentElement.clientHeight-$(TipDiv[0]).height())/2)+"px",opacity:"show"},"normal")}else{$(TipDiv[0]).animate({top:(document.documentElement.scrollTop+document.body.scrollTop+(document.documentElement.clientHeight-$(TipDiv[0]).height())/2)+"px",opacity:"show"},"normal");$(TipDiv[3]).show()}if(Tid[5]!=0){if(Url!=0){$.fn.ShowTip.CountDown(TipDiv[2],""+Url+"",""+Tid[5]+"",1,""+Tid[4]+"",TipDiv,TipMsg)}else{$.fn.ShowTip.CountDown(TipDiv[2],TipDiv[0],""+Tid[5]+"",0,""+Tid[4]+"",TipDiv,TipMsg)}}else{if(Url!=0){window.location.href=Url}}};$.fn.ShowTip.CountTime={};$.fn.ShowTip.CountDown=function(TimeArea,ActionArea,times,StateA,cover,TipDiv,TipMsg){if($(TipDiv[5]).get(0)==null){if(StateA==0){$(TimeArea).append('<div class="ShowTimesArea"><span class="ShowTimes"></span>'+TipMsg[3]+"</div>")}else{if(StateA==1){$(TimeArea).append('<div class="ShowTimesArea"><span class="ShowTimes"></span>'+TipMsg[4]+"</div>")}}}$(TipDiv[5]).html(times);clearTimeout($.fn.ShowTip.CountTime);$(TipDiv[5]).show();if(times==0){if(cover==0){$(TipDiv[5]).hide();if(StateA==0){$(ActionArea).animate({top:(document.documentElement.scrollTop+document.body.scrollTop+(document.documentElement.clientHeight-$(TipDiv[0]).height())/2-30)+"px",opacity:"hide"},"normal");$(TipDiv[3]).hide();return false}else{clearTimeout($.fn.ShowTip.CountTime);window.location.href=ActionArea}return false}else{if(StateA==0){$(TipDiv[3]+","+TipDiv[5]).hide();$(ActionArea).animate({top:(document.documentElement.scrollTop+document.body.scrollTop+(document.documentElement.clientHeight-$(TipDiv[0]).height())/2-30)+"px",opacity:"hide"},"normal");$(TipDiv[3]).hide();return false}else{clearTimeout($.fn.ShowTip.CountTime);$(TipDiv[5]).hide();window.location.href=ActionArea}}}overtimes=parseInt(times)-1;$.fn.ShowTip.CountTime=setTimeout(function(){$.fn.ShowTip.CountDown(TimeArea,ActionArea,overtimes,StateA,cover,TipDiv,TipMsg)},1000)}})(jQuery);
(function(d){var b=false;var f=null;var h={};var k={};var j={};var l;var i;var g;var a;var e={};var c=false;d.getMousePosition=function(n){var m=0;var o=0;if(!n){var n=window.event}if(n.pageX||n.pageY){m=n.pageX;o=n.pageY}else{if(n.clientX||n.clientY){m=n.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;o=n.clientY+document.body.scrollTop+document.documentElement.scrollTop}}return{x:m,y:o}};d.fn.easydragWidth={widthx:300};d.updatePosition=function(p){var r=d.getMousePosition(p);var q=(a+(r.x-l));var o=(g+(r.y-i));var n=d.extend({widthx:"#UserId"},d.fn.easydragWidth);var m=parseInt(n.widthx+8);d(f).css("top",(o));if(document.documentElement.clientWidth<document.documentElement.scrollWidth){if(q>=parseInt(document.documentElement.scrollWidth-m)){q=parseInt(document.documentElement.scrollWidth-m)}}else{if(q>=parseInt(document.documentElement.clientWidth-m)){q=parseInt(document.documentElement.clientWidth-m)}}d(f).css("left",(q))};d(document).mousemove(function(m){if(b&&e[f.id]!="false"){d.updatePosition(m);if(k[f.id]!=undefined){k[f.id](m,f)}return false}});d(document).mouseup(function(m){if(b&&e[f.id]!="false"){b=false;if(h[f.id]!=undefined){h[f.id](m,f)}return false}});d.fn.ondrag=function(m){return this.each(function(){k[this.id]=m})};d.fn.ondrop=function(m){return this.each(function(){h[this.id]=m})};d.fn.dragOff=function(){return this.each(function(){e[this.id]="off"})};d.fn.dragOn=function(){return this.each(function(){e[this.id]="on"})};d.fn.setHandler=function(m){return this.each(function(){var n=this;j[this.id]=true;d(n).css("cursor","");e[n.id]="handler";d(m).css("cursor","move");d(m).mousedown(function(o){c=true;d(n).trigger("mousedown",o)});d(m).mouseup(function(o){c=false})})};d.fn.easydrag=function(m){return this.each(function(){if(undefined==this.id||!this.id.length){this.id="easydrag"+(new Date().getTime())}j[this.id]=m?true:false;e[this.id]="on";d(this).css("cursor","move");d(this).mousedown(function(n){if((e[this.id]=="off")||(e[this.id]=="handler"&&!c)){return j[this.id]}d(this).css("position","absolute");d(this).css("z-index",parseInt(new Date().getTime()/1000));b=true;f=this;var o=d.getMousePosition(n);l=o.x;i=o.y;g=this.offsetTop;a=this.offsetLeft;d.updatePosition(n);return j[this.id]})})}})(jQuery);
