var mzt_box_path='';(function(){try{throw Error("get path")}catch(ex){if(ex.fileName)
mzt_box_path=ex.fileName
else if(ex.stack)
mzt_box_path=(ex.stack.match(/at\s+(.*?):\d+:\d+/)||['',''])[1];else if(ex.sourceURL)
mzt_box_path=ex.sourceURL}
if(mzt_box_path)return;var scripts=document.getElementsByTagName("script"),script=scripts[scripts.length-1];mzt_box_path=document.querySelector?script.src:script.getAttribute("src",4)})()
mzt_box_path=mzt_box_path.substr(mzt_box_path,mzt_box_path.lastIndexOf('/'));mzt_box_path=mzt_box_path.substr(mzt_box_path,mzt_box_path.lastIndexOf('/'));function mzt_box_add_event(elm,ev_type,fn,use_capture){if(elm.addEventListener){elm.addEventListener(ev_type,fn,use_capture);}
else if(elm.attachEvent){elm.attachEvent('on'+ev_type,fn);}
elm['on'+ev_type]=fn;}
var mzt_box_style=null;var mzt_div_box_bg=null;var mzt_div_box=null;var mzt_box_close_right=null;var mzt_box_close_in=null;var mzt_div_box_head=null;var mzt_box_icon=null;var mzt_box_title=null;var mzt_box_content=null;var div_mzt_tmp=null;var mzt_box_arguments=null;var mzt_box_ie6=!window.XMLHttpRequest;var mzt_box_ie=!+[1,];var mzt_box_ff=navigator.userAgent.toLowerCase().indexOf("firefox")!=-1;var mzt_box_url=null;function mzt_box_init(){document.write('<link rel="stylesheet" type="text/css" id="mzt_box_style" /><div id="div_mzt_box_bg"></div><div id="div_mzt_box"  onkeypress="if(event.keyCode==27)mzt_box_close();"><img id="mzt_box_close_right" src="'+mzt_box_path+'/images/close_right.gif" /><div class="t"><div class="l"></div><div class="r"></div></div><div class="c"><div id="div_mzt_box_main"><div id="div_mzt_box_head"><img id="mzt_box_icon" align="absmiddle" src="'+mzt_box_path+'/images/mazentop16.png" /><span id="mzt_box_title"></span><img id="mzt_box_close_in" src="'+mzt_box_path+'/images/close.gif" /></div><table cellpadding="0" cellspacing="0" border="0" style="width:100%;"><tr><td id="mzt_box_content" style="padding:0!important;margin:0!important;"></td></tr></table></div></div><div class="t"><div class="l b"></div><div class="r rb"></div></div></div><div id="div_mzt_tmp"></div>');mzt_box_add_event(window,"load",function(){mzt_box_style=document.getElementById('mzt_box_style');mzt_div_box_bg=document.getElementById('div_mzt_box_bg');mzt_div_box=document.getElementById("div_mzt_box");mzt_box_close_right=document.getElementById('mzt_box_close_right');mzt_box_close_in=document.getElementById('mzt_box_close_in');mzt_div_box_head=document.getElementById("div_mzt_box_head");mzt_box_icon=document.getElementById("mzt_box_icon");mzt_box_title=document.getElementById("mzt_box_title");mzt_box_content=document.getElementById("mzt_box_content");div_mzt_tmp=document.getElementById("div_mzt_tmp");mzt_box_add_event(mzt_box_close_in,"click",mzt_box_close);mzt_box_add_event(mzt_box_close_right,"click",mzt_box_close);},false);mzt_box_add_event(window,"resize",function(){if(mzt_div_box_bg.style.display=="none")return;mzt_box_bg_reset();mzt_box_reset_xy();mzt_box_set_top();},false);mzt_box_add_event(window,"scroll",function(){if(mzt_div_box_bg&&mzt_div_box_bg.style.display=="none")return;if(mzt_box_ie6){mzt_box_set_top();}else{var web_ide_height=mzt_box_ie?document.documentElement.offsetHeight:window.innerHeight;if(mzt_div_box){mzt_div_box.style.position="fixed";mzt_div_box.style.top=(web_ide_height-mzt_div_box.offsetHeight)/2+"px";}}},false);}
function mzt_box_set_top(){if(mzt_div_box_bg.style.display=="none")return;var web_ide_height=mzt_box_ie?document.documentElement.offsetHeight:window.innerHeight;var new_top=0;if(web_ide_height-mzt_div_box.offsetHeight>0){new_top=(web_ide_height-mzt_div_box.offsetHeight)/2+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);}
else{new_top=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)-(mzt_div_box.offsetHeight-web_ide_height);}
mzt_div_box.style.position="absolute";mzt_div_box.style.top=new_top+"px";}
function mzt_box_reset_xy(){if(document.documentElement.clientWidth>mzt_div_box.offsetWidth){mzt_div_box.style.left=(document.documentElement.clientWidth-mzt_div_box.offsetWidth)/2+"px";}
else{mzt_div_box.style.left="0px";}
if(mzt_box_ie6){mzt_box_set_top();}}
function mzt_box_is_param(param){return param!=null&&param!='';}
function mzt_box_xy(){if(document.documentElement.clientWidth>mzt_div_box.offsetWidth){mzt_div_box.style.left=(document.documentElement.clientWidth-mzt_div_box.offsetWidth)/2+"px";}
else{mzt_div_box.style.left="0px";}
if(mzt_box_ie6){mzt_box_set_top();}
else{mzt_div_box.style.position="fixed";mzt_div_box.style.top=((mzt_box_ie?document.documentElement.offsetHeight:window.innerHeight)-mzt_div_box.offsetHeight)/2+"px";}
mzt_box_bg_reset();}
function mzt_box_bg_reset(){if(mzt_div_box_bg.style.display=="none")return;if(mzt_box_ie6){mzt_div_box_bg.style.width=document.body.offsetWidth+"px";}
else if(mzt_box_ie){if(document.body.parentNode.scrollWidth!=document.body.offsetWidth){mzt_div_box_bg.style.width=document.body.parentNode.scrollWidth+"px";}
else{mzt_div_box_bg.style.width="100%";}}
else{mzt_div_box_bg.style.width="0px";mzt_div_box_bg.style.width=parseInt(document.body.parentNode.scrollWidth)+"px";}
if(document.documentElement.clientHeight>document.body.offsetHeight){mzt_div_box_bg.style.height=document.documentElement.clientHeight+"px";}
else{mzt_div_box_bg.style.height=document.body.offsetHeight+"px";}}
function mzt_box_rsize(obj){if(!obj)return;mzt_div_box.style.width=obj.offsetWidth+8+"px";mzt_box_content.style.width=obj.offsetWidth+"px";mzt_div_box.style.height=obj.offsetHeight+"px";mzt_box_content.style.height=obj.offsetHeight+"px";mzt_box_xy();}
function mzt_box_rsize_html(){mzt_box_rsize(document.getElementById('mzt_div_tmp'));}
function mzt_box_close(){mzt_div_box.style.display="none";mzt_div_box_bg.style.display="none";mzt_div_box.style.height="auto";mzt_div_box.style.width="auto";mzt_box_content.style.height="auto";mzt_box_content.style.width="auto";}
function mzt_box_show(obj){if(!obj||mzt_div_box_bg.style.display!="none"&&mzt_div_box_bg.style.display!=''&&obj.id!='div_mzt_tmp')return;var params=mzt_box_arguments?mzt_box_arguments:arguments;var obj_width=0;var obj_height=0;if(obj.style.display=="none"||obj.style.display==''){obj.style.display="block";var tmp_position=obj.style.position;obj.style.position="absolute";obj_width=obj.offsetWidth;obj_height=obj.offsetHeight;obj.style.display="none";obj.style.position=tmp_position;}
mzt_div_box_head.style.display="block";if(params.length>1){if(params[1]==null){mzt_div_box_head.style.display="none";}else if(params[1]==0){mzt_box_title.innerHTML="Message Box";}
else{mzt_box_title.innerHTML=params[1];}}else{mzt_box_title.innerHTML="Message Box";}
mzt_div_box_bg.style.display="block";mzt_div_box.style.display="block";if(params.length>3&&mzt_box_is_param(params[3])){mzt_div_box.style.width=(parseInt(params[3])+16)+"px";}else{mzt_div_box.style.width=obj_width+8+"px";}
if(params.length>4&&mzt_box_is_param(params[4])){mzt_div_box.style.height=params[4];}else{mzt_box_content.style.height=obj_height+"px";if(mzt_div_box_head.style.display!="none"){mzt_div_box.style.height=(obj_height+22)+"px";}else{mzt_div_box.style.height=(obj_height+(mzt_box_ff?0:2))+"px";}}
if(params.length>5){if(mzt_box_is_param(params[5])){mzt_box_icon.src=params[5];}}else{mzt_box_icon.src=mzt_box_path+"/images/mazentop16.png";}
if(params.length>6){mzt_box_style.href=mzt_box_path+"/css/css_mzt_box_"+params[6]+".css";}else{mzt_box_style.href="";}
if(document.getElementById('mzt_div_tmp')){if(mzt_box_ie){document.getElementById('mzt_div_tmp').removeNode(true);}
else{document.getElementById('mzt_div_tmp').parentNode.removeChild(document.getElementById('mzt_div_tmp'));}}
mzt_box_content.appendChild(obj.cloneNode(true));mzt_box_content.childNodes[0].style.display="block";mzt_box_content.childNodes[0].id="mzt_div_tmp";if(params.length>2&&mzt_box_is_param(params[2])&&document.getElementById(params[2])){if(obj.id!='div_mzt_tmp'){document.getElementById(params[2]).focus();if(mzt_box_ie){document.getElementById(params[2]).focus();}}}else{mzt_div_box.focus();}
if(/msie 8\.0/i.test(navigator.userAgent)){setTimeout(function(){mzt_box_content.childNodes[0].style.position="inherit";},1);}
if(mzt_div_box_head.style.display!="none"){mzt_box_content.style.height=(mzt_div_box.offsetHeight-(mzt_box_ff?20:22))+"px";mzt_box_close_right.style.display="none";mzt_box_close_in.style.display="inline";}else{mzt_box_content.style.height=(mzt_div_box.offsetHeight-(mzt_box_ff?0:2))+"px";mzt_box_close_right.style.display="block";mzt_box_close_in.style.display="none";}
mzt_box_arguments=null;mzt_box_xy();}
function mzt_box_show_html(html){mzt_box_arguments=arguments;if(mzt_box_arguments.length<4){div_mzt_tmp.style.width="auto";div_mzt_tmp.style.height="auto";}
div_mzt_tmp.innerHTML="<div style='padding:20px 20px 20px 20px;'>"+html+"</div>";mzt_box_show(div_mzt_tmp);}
function mzt_box_show_url(url){mzt_box_arguments=arguments;var html='';mzt_box_url=url;if(mzt_box_arguments.length>4){if(mzt_box_arguments[1]!=null){html='<iframe id="ifr_mzt_box" frameborder="0" style="width:'+(parseInt(mzt_box_arguments[3])+8)+'px;height:'+(parseInt(mzt_box_arguments[4])-20)+'px" src="'+url+'"></iframe>';}else{html='<iframe id="ifr_mzt_box" frameborder="0" style="width:'+(parseInt(mzt_box_arguments[3])+8)+'px;height:'+mzt_box_arguments[4]+'" src="'+url+'"></iframe>';}}
else{html='<iframe id="ifr_mzt_box" frameborder="0" src="'+url+'"></iframe>';}
div_mzt_tmp.innerHTML=html;mzt_box_show(div_mzt_tmp);if(mzt_box_ie6){setTimeout(function(){document.getElementById('ifr_mzt_box').src=mzt_box_url;}, 0);}}
function mzt_box_show_id(obj_id){mzt_box_arguments=arguments;mzt_box_show(document.getElementById(obj_id));}
function mzt_box_ajax(url,params,method,f_params,fun){var http_request=false;if(url.indexOf('?')==-1){url=url+"?mzt_r="+Math.round(Math.random()*10000).toString();}
else{url=url+"&mzt_r="+Math.round(Math.random()*10000).toString();}
if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType("text/xml")}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}
if(!http_request){window.alert("Can't   create   XMLHttpRequest   object   instance.");return false}
http_request.onreadystatechange=function processRequest(){if(http_request.readyState==4){if(http_request.status==200){var rsvalue=http_request.responseText;fun(rsvalue,f_params);}else{alert("Exception   happened   in   requested   page.")}}}
if(method.toLowerCase()=="post"){http_request.open(method,url,true);http_request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");http_request.send(params);}
else{url=url+"&"+params;http_request.open(method,url,true);http_request.send(null)}}
function mzt_box_loader_js_html(html){var el_script=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig;var el_arr='';var arr_jsc=new Array();var tmp_i=0;while(el_arr=el_script.exec(html)){arr_jsc[tmp_i]=el_arr;tmp_i=tmp_i+1;}
var tmp_len=tmp_i;for(var i=0;i<tmp_len;i=i+1){var script=document.createElement("script");tmp_i=arr_jsc[i][1].indexOf('src=');if(tmp_i!=-1){var src=arr_jsc[i][1].substring(tmp_i+4);src=src.substring(1,src.indexOf(src.substring(0,1),1));script.src=src;}
else{script.text=arr_jsc[i][2];}
document.getElementsByTagName("head")[0].appendChild(script);}}
function mzt_box_show_ajax(param){var url=param.url;var params=param.params;var method=param.method;if(arguments.length<4){div_mzt_tmp.style.width="200px";div_mzt_tmp.style.height="100px";}div_mzt_tmp.innerHTML='<img class="mzt_box_img_loader" src="'+mzt_box_path+'/images/loader.gif" />';mzt_box_arguments=arguments;mzt_box_show(div_mzt_tmp);mzt_box_ajax(url,params,method,arguments,function(){div_mzt_tmp.innerHTML=arguments[0];mzt_box_arguments=arguments[1];if(mzt_box_arguments.length<4){div_mzt_tmp.style.width="auto";div_mzt_tmp.style.height="auto";}
var tmp_html=arguments[0];mzt_box_loader_js_html(tmp_html);mzt_box_show(div_mzt_tmp);div_mzt_tmp.innerHTML='';if(arguments[1].length>2&&mzt_box_is_param(arguments[1][2])&&document.getElementById(arguments[1][2])){try{document.getElementById(arguments[1][2]).focus();document.getElementById(arguments[1][2]).select();}catch(e){}
if(mzt_box_ie){try{document.getElementById(arguments[1][2]).focus();document.getElementById(arguments[1][2]).select();}catch(e){}}}});}
mzt_box_init();
