/*
 * Compressed by JSA(www.xidea.org)
 */
jQuery(function($){jQuery.extend({ImpromptuDefaults:{prefix:"jqi",buttons:{Ok:true},loaded:function(){},submit:function(){return true},callback:function(){},opacity:0.6,zIndex:999,overlayspeed:"slow",promptspeed:"fast",show:"fadeIn",focus:0,useiframe:false},SetImpromptuDefaults:function($){jQuery.ImpromptuDefaults=jQuery.extend({},jQuery.ImpromptuDefaults,$)},prompt:function(L,T,_){var stat=0;_=jQuery.extend({},jQuery.ImpromptuDefaults,_);var P=(jQuery.browser.msie&&jQuery.browser.version<7),H=jQuery(document.body),C=jQuery(window),J="<div class=\""+_.prefix+"box\" id=\""+_.prefix+"box\">";if(_.useiframe&&((jQuery.browser.msie&&jQuery("object, applet").length>0)||P))J+="<iframe src=\"javascript:;\" class=\""+_.prefix+"fade\" id=\""+_.prefix+"fade\"></iframe>";else{if(P)$("select").css("visibility","hidden");J+="<div class=\""+_.prefix+"fade\" id=\""+_.prefix+"fade\"></div>"}J+="<div class=\""+_.prefix+"\" id=\""+_.prefix+"\"><div class=\""+_.prefix+"container\"><div class=\""+_.prefix+"close\">X</div><div class=\""+_.prefix+"message\">"+L+"</div><div class=\""+_.prefix+"buttons\" id=\""+_.prefix+"buttons\">";jQuery.each(_.buttons,function($,A){J+="<button name=\""+_.prefix+"button"+$+"\" id=\""+_.prefix+"button"+$+"\" value=\""+A+"\">"+$+"</button>"});J+="</div></div></div></div>";var O=H.append(J).children("#"+_.prefix+"box"),K=O.children("#"+_.prefix),A=O.children("#"+_.prefix+"fade"),D=function(){return(document.documentElement.scrollTop||document.body.scrollTop)+"px"},B=function(){var $={width:window.innerWidth||(window.document.documentElement.clientWidth||window.document.body.clientWidth),height:window.innerHeight||(window.document.documentElement.clientHeight||window.document.body.clientHeight)};return $},N=function(){O.css({top:D()});},F=function(){var $=0;O.addClass(_.prefix+"warning");var A=setInterval(function(){O.toggleClass(_.prefix+"warning");if($++>1){clearInterval(A);O.removeClass(_.prefix+"warning")}},100)},M=function(A){if(event.keyCode==9){ return false;}var _=(window.event)?event.keyCode:A.keyCode,$=(window.event)?27:A.DOM_VK_ESCAPE;if(_==$){G()} else if(stat==1 && _==13) {G()}},I=function(){var $=B();O.css({position:(P)?"absolute":"fixed",height:$.height,width:"100%",top:(P)?D():0,left:0,right:0,bottom:0});A.css({position:"absolute",height:$.height,width:"100%",top:0,left:0,right:0,bottom:0});K.css({position:"absolute",top:"100px",left:"50%",marginLeft:((((K.css("paddingLeft").split("px")[0]*1)+K.width())/2)*-1)});},E=function(){A.css({zIndex:_.zIndex,display:"none",opacity:_.opacity});K.css({zIndex:_.zIndex+1,display:"none"});},G=function(E,D,B){K.remove();if(P)H.unbind("scroll",N);C.unbind("resize",I);A.fadeOut(_.overlayspeed,function(){A.unbind("click",F);A.remove();if(E)_.callback(D,B);O.unbind("keypress",M);O.remove();if(P&&!_.useiframe)$("select").css("visibility","visible")});if(T){if(document.getElementById(T))document.getElementById(T).focus();else if(document.getElementByName(T))document.getElementByName(T).focus();}};I();E();jQuery("#"+_.prefix+"buttons").children("button").click(function(){var $=K.children("."+_.prefix+"container").children("."+_.prefix+"message"),A=_.buttons[jQuery(this).text()];if(stat!=0){if(_.submit(A,$))G(true,A,$);} else stat=1;});if(P)C.scroll(N);A.click(F);C.resize(I);O.bind("keydown keypress",M);O.keypress(M);K.find("."+_.prefix+"close").click(G);A.fadeIn(_.overlayspeed);K[_.show](_.promptspeed,_.loaded);K.find("#"+_.prefix+"buttons button:eq("+_.focus+")").focus();return O},showcover:function(L,T,_){var stat=0;_=jQuery.extend({},jQuery.ImpromptuDefaults,_);var P=(jQuery.browser.msie&&jQuery.browser.version<7),H=jQuery(document.body),C=jQuery(window),J="<div class=\""+_.prefix+"box\" id=\""+_.prefix+"box\">";if(_.useiframe&&((jQuery.browser.msie&&jQuery("object, applet").length>0)||P))J+="<iframe src=\"javascript:;\" class=\""+_.prefix+"fade\" id=\""+_.prefix+"fade\"></iframe>";else{if(P)$("select").css("visibility","hidden");J+="<div class=\""+_.prefix+"fade\" id=\""+_.prefix+"fade\"></div>"}J+="<div class=\""+_.prefix+"\" id=\""+_.prefix+"\"><div class=\""+_.prefix+"container\"><div class=\""+_.prefix+"close\">X</div><div class=\""+_.prefix+"message\">"+L+"&nbsp;&nbsp;&nbsp;<a href=\"\" id=\"jqimsg\"><img src=\"none.jpg\" width=\"1\" height=\"1\"></a></div><div class=\""+_.prefix+"buttons\" id=\""+_.prefix+"buttons\">";J+="</div></div></div></div>";var O=H.append(J).children("#"+_.prefix+"box"),K=O.children("#"+_.prefix),A=O.children("#"+_.prefix+"fade"),D=function(){return(document.documentElement.scrollTop||document.body.scrollTop)+"px"},B=function(){var $={width:window.innerWidth||(window.document.documentElement.clientWidth||window.document.body.clientWidth),height:window.innerHeight||(window.document.documentElement.clientHeight||window.document.body.clientHeight)};return $},N=function(){O.css({top:D()});},F=function(){var $=0;O.addClass(_.prefix+"warning");var A=setInterval(function(){O.toggleClass(_.prefix+"warning");if($++>1){clearInterval(A);O.removeClass(_.prefix+"warning")}},100)},M=function(A){return false;},I=function(){var $=B();O.css({position:(P)?"absolute":"fixed",height:$.height,width:"100%",top:(P)?D():0,left:0,right:0,bottom:0});A.css({position:"absolute",height:$.height,width:"100%",top:0,left:0,right:0,bottom:0});K.css({position:"absolute",top:"100px",left:"50%",marginLeft:((((K.css("paddingLeft").split("px")[0]*1)+K.width())/2)*-1)});},E=function(){A.css({zIndex:_.zIndex,display:"none",opacity:_.opacity});K.css({zIndex:_.zIndex+1,display:"none"});},G=function(E,D,B){K.remove();if(P)H.unbind("scroll",N);C.unbind("resize",I);A.fadeOut(_.overlayspeed,function(){A.unbind("click",F);A.remove();if(E)_.callback(D,B);O.unbind("keypress",M);O.remove();if(P&&!_.useiframe)$("select").css("visibility","visible")});if(T){if(document.getElementById(T))document.getElementById(T).focus();else if(document.getElementByName(T))document.getElementByName(T).focus();}};I();E();if(P)C.scroll(N);A.click(F);C.resize(I);O.bind("keydown keypress",M);O.keypress(M);K.find("."+_.prefix+"close").click(G);A.fadeIn(_.overlayspeed);K[_.show](_.promptspeed,_.loaded);K.find("#"+_.prefix+"buttons button:eq("+_.focus+")").focus();document.getElementById("jqimsg").focus();return O}})})