(function(a){a.jBox=function(b,c){c=a.extend({},a.jBox.defaults,c);c.showFade=c.opacity>0x0;c.isTip=c.isTip||false;c.isMessager=c.isMessager||false;if(b==undefined){b=''};if(c.border<0x0){c.border=0x0};if(c.id==undefined){c.id='jBox_'+Math.floor(Math.random()*0xf4240)};var d=(a.browser.msie&&parseInt(a.browser.version)<0x7);var e=a('#'+c.id);if(e.length>0x0){c.zIndex=a.jBox.defaults.zIndex++;e.css({zIndex:c.zIndex});e.find('#jbox').css({zIndex:c.zIndex+0x1});return e};var f={url:'',type:'',html:'',isObject:b.constructor==Object};if(!f.isObject){b=b+'';var N=b.toLowerCase();if(N.indexOf('id:')==0x0)f.type='ID';else if(N.indexOf('get:')==0x0)f.type='GET';else if(N.indexOf('post:')==0x0)f.type='POST';else if(N.indexOf('iframe:')==0x0)f.type='IFRAME';else if(N.indexOf('html:')==0x0)f.type='HTML';else{b='html:'+b;f.type='HTML'};b=b.substring(b.indexOf(":")+0x1,b.length)};if(!c.isTip&&!c.isMessager&&!c.showScrolling){a(a.browser.msie?'html':'body').attr('style','overflow:hidden;padding-right:17px;')};var g=!c.isTip&&!(c.title==undefined);var h=f.type=='GET'||f.type=='POST'||f.type=='IFRAME';var i=typeof c.width=='number'?(c.width-0x32)+'px':"90%";var j=[];j.push('
');var k='';var l=a(window);var m=a(document.body);var n=a(j.join('')).appendTo(m);var o=n.children('#jbox');var p=n.children('#jbox-fade');var q=n.children('#jbox-temp');if(!f.isObject){switch(f.type){case"ID":f.html=a('#'+b).html();break;case"GET":case"POST":f.html='';f.url=b;break;case"HTML":f.html=b;break;case"IFRAME":f.html=k;if(b.indexOf('#')==-0x1){f.url=b+(b.indexOf('?')==-0x1?'?___t':'&___t')+Math.random()}else{var N=b.split('#');f.url=N[0x0]+(N[0x0].indexOf('?')==-0x1?'?___t':'&___t')+Math.random()+'#'+N[0x1]};break};b={state0:{content:f.html,buttons:c.buttons,buttonsFocus:c.buttonsFocus,submit:c.submit}}};var r=[];var s=o.find('.jbox-help-title').outerHeight(true);var t=o.find('.jbox-help-button').outerHeight(true);var u=a.browser.msie?'line-height:19px;padding:0px 6px 0px 6px;':'padding:0px 10px 0px 10px;';a.each(b,function(N,O){if(f.isObject){O=a.extend({},a.jBox.stateDefaults,O)};b[N]=O;if(O.buttons==undefined){O.buttons={}};var P=false;a.each(O.buttons,function(T,U){P=true});var Q='auto';if(typeof c.height=='number'){Q=c.height;if(g){Q=Q-s};if(P){Q=Q-t};Q=(Q-0x1)+'px'};var R='';var S='25px';if(!f.isObject&&h){var T=c.height;if(typeof c.height=='number'){if(g){T=T-s};if(P){T=T-t};S=((T/0x5)*0x2)+'px';T=(T-0x1)+'px'};R=['