/*
 * Compressed by JSA(www.xidea.org)
 */
var dialogFirst=true;function dialog(F,H,B,E,G){if(dialogFirst==true){var _=new String;_="<div id=\"floatBoxBg\" style=\"height:"+$(document).height()+"px;filter:alpha(opacity=0);opacity:0;\"></div>";_+="<div id=\"floatBox\" class=\"floatBox\">";_+="<div class=\"title\"><h4></h4><span>\u5173\u95ed</span></div>";_+="<div class=\"content\"></div>";_+="</div>";$("body").append(_);dialogFirst=false}$("#floatBox .title span").click(function(){$("#floatBoxBg").animate({opacity:"0"},"normal",function(){$(this).hide()});$("#floatBox").hide()});$("#floatBox .title h4").html(F);contentType=H.substring(0,H.indexOf(":"));H=H.substring(H.indexOf(":")+1,H.length);switch(contentType){case"url":var D=H.split("?");$("#floatBox .content").ajaxStart(function(){$(this).html("\u6b63\u5728\u8bfb\u53d6\u6570\u636e\uff0c\u8bf7\u7a0d\u5019......")});$.ajax({type:D[0],url:D[1],data:D[2],error:function(){$("#floatBox .content").html("error...")},success:function(_){$("#floatBox .content").html(_)}});break;case"text":$("#floatBox .content").html(H);break;case"id":$("#floatBox .content").html($("#"+H+"").html());break;case"iframe":$("#floatBox .content").html("<iframe src=\""+H+"\" width=\"100%\" height=\""+(parseInt(E)-30)+"px"+"\" scrolling=\"auto\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe>")}var C=document.documentElement.clientWidth,A=Math.max(document.documentElement.clientHeight,document.body.scrollHeight);$("#floatBoxBg").show();$("#floatBoxBg").animate({opacity:"0.5"},"normal");$("#floatBox").attr("class","floatBox "+G);$("#floatBox").css({display:"block",width:B,height:E});setCenter(document.getElementById("floatBox"))}function setCenter(I){$self=I;var _=$self.width(),J=$self.height(),G=parseInt($self.css("padding-top")),D=parseInt($self.css("padding-bottom")),H=parseInt($self.css("border-top-width")),K=parseInt($self.css("border-bottom-width")),C=(H+K)/2,B=(G+D)/2,A=$self.parent().css("position"),F=(_/2)*(-1),E=((J/2)*(-1))-B-C,$={position:"absolute"};$.height=J;$.top="50%";$.marginTop=E;$.width=_;$.left="50%";$.marginLeft=F;if(A=="static")$self.parent().css("position","relative");$self.css($)}function setCenter($){$.style.position="absolute";$.style.left=(document.body.clientWidth-$.clientWidth)/2+document.body.scrollLeft;$.style.top=(document.body.clientHeight-$.clientHeight)/2+document.body.scrollTop}function closedialog(){$("#floatBoxBg").animate({opacity:"0"},"normal",function(){$(this).hide()});$("#floatBox").hide()}

