function GB_show(g,a,h,b,f){var e="<iframe id='GB_formTarget' name='GB_formTarget' frameborder='0' scrolling='no' style=\"width:"+b+"px;height:"+h+"px;\" src=''></iframe>";$.prompt(e,{url:a,width:b,height:h});$("#GB_formTarget").attr("src",a);var c=document.body.clientWidth;var d=$(document).height();$(".jqititle").html(g);var j=(c-b)/2;var i=(560-h)/2;$("div.jqi").css({left:j,top:i,width:(b+30)});$("#jqiclose").hide();$("#jqifade").css({width:c});if(f){f()}}function GB_post(g,b,h,a,f){var e="<iframe name='GB_formTarget' frameborder='0' scrolling='no' style=\"width:"+a+"px;height:"+h+"px;\" src=''></iframe>";$.prompt(e,{url:"",width:a,height:h});var c=document.body.clientWidth;var d=$(document).height();$(".jqititle").html(g);var j=(c-a)/2;var i=(560-h)/2;$("div.jqi").css({left:j,top:i,width:(a+30)});$("#jqifade").css({width:c});setTimeout(function(){postCallbackFunction(b,f)},50)}function postCallbackFunction(b,a){$j("#"+b).attr("target","GB_formTarget");$j("#"+b).submit();if(a){a()}}function GB_hide(a){$(".jqiclose").click();if(a){a()}}function GB_info(b,g,h,e){var a=280;if(h){a=h}var i=40;if(e){i=e}var f='<div class="messageContent" style="height:'+i+"px;width:"+a+'px;">'+b+'</div><div class="popusController"><input type="button" value="确定"/></div>';$.prompt(f,{width:a,height:i});$(".jqititle").html("优惠多提示您");var c=document.body.clientWidth;var d=$(document).height();var k=(c-a)/2;var j=(560-i)/2;$("div.jqi").css({left:k,top:j,width:(a+30)});$(".popusController").bind("click",function(){GB_hide(g)});$("#jqifade").css({width:c})}function GB_Editor(d,f){var c=document.body.clientWidth;var b=$(document).height();var e=600;var a=200;$.prompt(d,{width:e,height:a});var g=(c-e)/2;var h=10;$("#jqi").css({top:"10%"});$("div.jqi").css({left:g,top:h,background:"url()",display:"inline-block"});$("div.jqi .jqimessage").css({"min-width":e,"min-height":a,padding:10,top:0});$("#jqifade").css({width:c});$(".jqititle").remove();f.finish()}function GB_Html(f,d,a,g,e){var b=document.body.clientWidth;var c=$(document).height();if(a==null){a=200}if(g==null){g=100}$.prompt(d,{width:a,height:g});var i=(b-a)/2;var h=10;$("#jqi").css({top:"10%"});$(".jqititle").html(f);$("div.jqi").css({left:i,top:h,background:"url()",display:"inline-block"});$("div.jqi .jqimessage").css({"min-width":a,"min-height":g,padding:10,top:0});$("#jqifade").css({width:b});if(e){e()}}function GB_img(a,f,h,i){var e=new Image();e.src=a;var b=h;if(!h){b=e.width}var j=i;if(!i){j=e.height}if(!f){f="点击图片返回"}var g='<img onclick="GB_hide();" src="'+a+'" alt="'+f+'" />';var c=document.body.clientWidth;var d=$(document).height();$.prompt(g,{width:b,height:j});if(!b){b=0}if(!j){j=0}var l=(c-b)/2;var k=(560-j)/2;$("div.jqi").css({left:l,top:k,background:"url()"});$("#jqifade").css({width:c});$(".jqititle").remove()}function GB_confirm(d,a){var c="是否继续操作";var b="<center><br>"+d+'<br><br><br><input type="button" id="OKBTN" value="继续"/> <input type="button" onclick="GB_hide()" value="取消"/> </center>';GB_Html(c,b,300,100,function(){$("#OKBTN").click(function(){a();GB_hide()})})}function GB_timeSpan(c){var d='<span id="timeSpan"></span>';$.prompt(d,{width:100,height:190});var b=document.body.clientWidth;var a=$(document).height();var e=(b-400)/2;var f=(560-200)/2;$("div.jqi").css({left:e,top:f});$("#jqifade").css({width:b});$(".jqititle").remove();$("div .jqi").css({background:"url(/Content/images/timeSpan.gif)",height:"92px",width:"434px"});$("#jqistates").css({border:"none"});$("div .jqi .jqiclose").hide();if(c!=null){c()}}function QuickTips(c,b,a){if(b==null){b=1000}if($("#quickTipsContent").length==0){$(document.body).append('<div id="quickTipsContent"><span></span><div id="close"></div></div>');$("#quickTipsContent #close").click(function(){CloseQuickTipsStop=false;CloseQuickTips(a)});$("#quickTipsContent").hover(function(){CloseQuickTipsStop=true},function(){CloseQuickTipsStop=false;setTimeout(function(){CloseQuickTips(a)},b)})}$("#quickTipsContent span").html(c);$("#quickTipsContent").css({left:$("#member-tips").offset().left});$("#quickTipsContent").fadeIn(function(){setTimeout(function(){CloseQuickTips(a)},b)})}var CloseQuickTipsStop=false;function CloseQuickTips(a){if(CloseQuickTipsStop){return}$("#quickTipsContent").fadeOut(a)};