/***************************************************************************
- File: magic.js - Let's have some magic
- Version: 11.11.29
***************************************************************************/

var $m={timer:(new Date).getTime(),wand:{},trick:{},h:{},t:{},vd:{},ready:!1,ajax_init:!1,data_att:"data-mjf",body_id:"magic_body",ga:!1,debugger_css_version:"11.11.17",html_singletons:["area","base","br","col","command","embed","hr","img","input","link","meta","param","source"],when_ready:function(){document.addEventListener&&document.addEventListener("DOMContentLoaded",$m.execute,!1)},construct:function(a){$m.config=a;typeof JSON!="object"&&$m.insert_link.script($m.config.basedir+"assist/json2.js");
this.vd.construct();this.dt.calc_timezone();$m.config.create_html5===!0&&$m.vd.is_msie&&$m.create_html5()},create_html5:function(){for(var a=["abbr","article","aside","audio","bb","canvas","datagrid","datalist","details","dialog","eventsource","figure","footer","header","hgroup","mark","menu","meter","nav","output","progress","section","time","video"],b=0,c=a.length;b<c;b++)document.createElement(a[b])},execute:function(){if($m.ready!==!0)$m.ready=!0,$m.config.global_debug!==!1&&$m.de.construct(),
$m.set_body_id(),$m.init_children(!1),$m.config.global_debug==="high"&&$m.de.add_item("$m.vd.ua = "+$m.vd.ua),$m.de.add_item("~ MJF initialized in "+((new Date).getTime()-$m.timer)/1E3+" seconds")},set_body_id:function(){var a=$m.tags.get("document","body")[0],b=$m.attr.get(a,"id");b===null?$m.attr.set(a,{id:$m.body_id}):$m.body_id=b},init_children:function(a){$m.config.global_debug==="high"&&$m.de.add_item("$m.init_children() -- starting");a===!0?($m.ajax_init=!0,$m.tags.a=$m.tags.get($m.ajax.request.update_id,
"a"),$m.tags.all=$m.tags.get($m.ajax.request.update_id,"*"),$m.tags.img=$m.tags.get($m.ajax.request.update_id,"img"),$m.tags.form=$m.tags.get($m.ajax.request.update_id,"form")):($m.tags.a=$m.tags.get("document","a"),$m.tags.all=$m.tags.get("document","*"),$m.tags.img=$m.tags.get("document","img"),$m.tags.form=$m.tags.get("document","form"));$m.config.global_debug==="high"&&$m.de.add_item("$m.init_children() -- starting wand init");for(var b in $m.wand)this.h[b]===void 0?(a='wand "'+b+'" is not initialized correctly',
$m.de.throw_browser_error(a)):(this.h[b].construct($m.wand[b]),$m.config.global_debug==="high"&&$m.de.add_item("Executed >> $m.h."+b+".construct("+$m.wand[b]+")"));$m.config.global_debug==="high"&&$m.de.add_item("$m.init_children() -- starting trick init");for(var c in $m.trick)if($m.t[c]===void 0)a='trick "'+c+'" is not initialized correctly',$m.de.throw_browser_error(a);else{$m.t[c].construct($m.trick[c]);for(var d in $m.trick[c])d=="config"||d=="toJSON"||($m.t[c][d]===void 0?(a='$m.trick "'+c+
"."+d+'" is not initialized correctly',$m.de.throw_browser_error(a)):($m.t[c][d].construct($m.trick[c][d]),$m.config.global_debug==="high"&&$m.de.add_item("Executed >> $m.t["+c+"]["+d+"].construct($m.trick["+c+"]["+d+"])")))}$m.config.global_debug==="high"&&$m.de.add_item("$m.init_children() -- finished trick init");$m.ajax_init=!1;$m.config.ajax.use===!0&&$m.ajax.init_xml();$m.config.global_debug==="high"&&$m.ajax_init===!0&&$m.de.add_item("~ MJF initialized in "+((new Date).getTime()-$m.timer)/
1E3+" seconds")},track:{ga:function(a){if($m.is.alive(a)===!1)return!1;typeof pageTracker=="object"&&typeof pageTracker._trackPageview=="function"?pageTracker._trackEvent(a.category,a.action,a.label):typeof _gaq=="object"&&_gaq.push(["_trackEvent",a.category,a.action,a.label]);setTimeout(function(){},100)}},insert_link:{stylesheet:function(a){$m.tags.get("document","head")[0].appendChild($m.tag.init("link",{rel:"stylesheet",type:"text/css",href:a}))},script:function(a){$m.tags.get("document","head")[0].appendChild($m.tag.init("script",
{charset:"UTF-8",type:"text/javascript",src:a}))}},tags:{get:function(a,b){var c=a=="document"?document:$m.id(a);$m.is.alive(c)===!1&&(c=document);return c.getElementsByTagName(b.toUpperCase())},strip:{from_cont:function(a){return a.replace(/<\/?[^>]+(>|$)/g,"")},from_id:function(a){return $m.id(a).innerHTML.replace(/<\/?[^>]+(>|$)/g,"")}},remove:{these:[],exec:function(){var a=0;did_work=!1;for(var b=0,c=$m.tags.remove.these.length;b<c;b++)did_work=$m.is.alive($m.tags.remove.these[b])===!0?$m.tag.remove($m.tags.remove.these[b]):
!1,did_work!==!1&&a++;return a},empty:{has_good_children:!1,construct:function(a){if($m.is.alive(a)===!1)return!1;a=$m.is.string(a)===!0?$m.id(a):a;removed_cnt=0;$m.tags.remove.empty.populate(a);removed_cnt=$m.tags.remove.exec();$m.tags.remove.these=[];return removed_cnt},populate:function(a){for(var b=a.childNodes,a=a.childNodes.length,c=0;c<a;c++){$m.tags.remove.empty.has_good_children=!1;var d=b[c];d.hasChildNodes()&&$m.tags.remove.empty.populate(d);if($m.is.alive(d.nodeName)===!0&&$m.is.in_array($m.html_singletons,
d.nodeName.toLowerCase())===!1){if(d.textContent==""||d.innerText=="")$m.tags.remove.empty.has_good_children===!1?$m.tags.remove.these.push(d):$m.tags.remove.empty.has_good_children=!0}else $m.tags.remove.empty.has_good_children=!0}}}}},tag:{get_name:function(a){var b=$m.id(a);if($m.is.alive(b)===!1)return!1;return $m.id(a).nodeName.toLowerCase()},init:function(a,b){if($m.is.alive(a)===!1||$m.is.alive(b)===!1)return!1;var c=document.createElement(a);$m.attr.set(c,b);return c},create:function(a,b,
c,d){if($m.is.alive(b)===!1)return!1;b=document.createElement(b);$m.attr.set(b,c);$m.is.object(a)===!1&&(a=$m.id(a));a.appendChild(b);if($m.is.alive(c)===!0&&$m.is.alive(c.id)===!0&&$m.is.alive(d)===!0)$m.id(c.id).innerHTML=d;return b},clone:function(a,b){if($m.is.alive(a)===!1)return!1;var c=$m.is.string(a)===!0?$m.id(a):a,d=$m.is.alive(b)===!1?!1:!0;return c.cloneNode(d)},replace:function(a,b,c){if($m.is.alive(a)===!1||$m.is.alive(b)===!1||$m.is.alive(c)===!1)return!1;$m.is.object(a)===!1&&(a=$m.id(a));
return a.replaceChild(b,c)},remove:function(a){if($m.is.alive(a)===!1)return!1;var a=$m.is.string(a)===!0?$m.id(a):a,b=!1;try{b=a.parentNode.removeChild(a)}catch(c){b=!1}return b}},id:function(a){return $m.is.object(a)===!0?a:$m.is.alive(a)===!1?!1:document.getElementById(a)===void 0||document.getElementById(a)===null?!1:document.getElementById(a)},attr:{set:function(a,b){if($m.is.alive(a)===!1)return!1;var c=$m.is.string(a)===!0?$m.id(a):a,d;for(d in b)d=="class"&&$m.vd.is_msie7_or_lower&&(tmp_val=
b[d],d="className",b[d]=tmp_val),c.setAttribute(d,b[d]);return!0},get:function(a,b){if($m.is.alive(a)===!1)return!1;var c=$m.is.string(a)===!0?$m.id(a):a;return $m.vd.is_msie7_or_lower===!0?$m.is.alive(c.attributes)===!0&&$m.is.object(c.attributes[b])===!0&&$m.is.alive(c.attributes[b].nodeValue)===!0?c.attributes[b].nodeValue:null:c.getAttribute?(c=c.getAttribute(b),c===null?null:c):!1},get_tags_with:function(a,b,c){for(var d=[],e=0,f=a.length;e<f;e++)$m.attr.get(a[e],"id")!==null&&$m.attr.get(a[e],
b)!==null&&$m.attr.has_value(a[e],b,c)===!0&&d.push(a[e]);return d},get_fields_with:function(a,b,c,d){var e=$m.id(a),a=[];if($m.is.in_array(b,["button","checkbox","file","password","radio","submit","text"])!==!1)for(var f=e.getElementsByTagName("INPUT"),g=0,i=f.length;g<i;g++)for(var h in b)f[g].type==b[h]&&$m.attr.has_value(f[g],c,d)===!0&&a.push(f[g]);if($m.is.in_array(b,"textarea")!==!1){h=e.getElementsByTagName("TEXTAREA");g=0;for(f=h.length;g<f;g++)$m.attr.has_value(h[g],c,d)===!0&&a.push(h[g])}if($m.is.in_array(b,
"select")!==!1){b=e.getElementsByTagName("SELECT");g=0;for(e=b.length;g<e;g++)$m.attr.has_value(b[g],c,d)===!0&&a.push(b[g])}return a},get_all:function(a){for(var a=$m.id(a),b={},c=a.attributes.length,d=0;d<c;d++)if($m.vd.is_msie7_or_lower){if(a.attributes[d].specified&&a.attributes[d].name)b[a.attributes[d].name]=a.attributes[d].value}else if(a.attributes[d].name)b[a.attributes[d].name]=a.attributes[d].value;return b},has_value:function(a,b,c){if($m.is.alive(a)===!1)return!1;$m.is.string(a)===!0&&
(a=$m.id(a));if(a.getAttribute)if(a=$m.attr.get(a,b),$m.is.alive(a)===!1)return!1;else{if(a.indexOf("|")!=-1)var d=a.split("|");else if(a.indexOf(" ")!=-1)d=a.split(" ");else if($m.is.string(a)===!0)return a==c?!0:!1;return $m.is.in_array(d,c)===!1?!1:!0}else return!1},remove:function(a,b){$m.id(a).removeAttribute(b)}},css_class:{add:function(a,b){var c=$m.attr.get(a,"class");$m.is.alive(c)===!1?$m.attr.set(a,{"class":b}):c.indexOf(b)==-1&&(c=c.split(" "),c.push(b),$m.attr.set(a,{"class":c.join(" ")}))},
remove:function(a,b){var c=$m.attr.get(a,"class");if($m.is.alive(c)===!1)return!1;else{var c=c.split(" "),d=$m.is.in_array(c,b);if(d!==!1)c.splice(d,1),$m.attr.set(a,{"class":c.join(" ")});else return!1}},replace:function(a,b,c){$m.css_class.remove(a,b);$m.css_class.add(a,c)},has:function(a,b){return $m.attr.has_value(a,"class",b)}},is:{alive:function(a){if(a===void 0||a===null||a===!1)return!1;else if($m.is.object(a)===!0)return!0;else if($m.is.array(a)===!0){if(a<=0)return!1}else return a===""?
!1:!0},array:function(a){return typeof a=="object"&&a instanceof Array},in_array:function(a,b){if($m.is.object(b)===!0)for(var c=0,d=b.length;c<d;c++){if($m.is.string(b[c])===!0)for(var e=0,f=a.length;e<f;e++)if($m.is.string(a[e])===!0&&b[c]==a[e])return!0}else{c=0;for(f=a.length;c<f;c++)if(a[c]==b)return c}return!1},good_id:function(a){if($m.is.alive(a)===!1)return!1;a=$m.is.object(a)===!0?a:$m.id(a);if($m.is.alive(a)===!1)return!1;return a},func:function(a){return typeof a=="function"},number:function(a){return typeof a==
"number"},object:function(a){return typeof a=="object"},string:function(a){return typeof a=="string"}},position:{get_x:function(a){for(var b=$m.id(a),a=b.offsetLeft,b=b.offsetParent;b!=null;)a+=b.offsetLeft,b=b.offsetParent;return a},get_x2:function(a){var a=$m.id(a),b=0;do b+=a.offsetLeft;while(a=a.offsetParent);return b},get_y:function(a){for(var b=$m.id(a),a=b.offsetTop,b=b.offsetParent;b!=null;)a+=b.offsetTop,b=b.offsetParent;return a},get_y2:function(a){var a=$m.id(a),b=0;do b+=a.offsetTop;while(a=
a.offsetParent);return b},get_xy:function(a){for(var b=$m.id(a),a=b.offsetLeft,c=b.offsetTop,b=b.offsetParent;b!=null;)a+=b.offsetLeft,c+=b.offsetTop,b=b.offsetParent;return[a,c]},get_xy2:function(a){var a=$m.id(a),b=pos_y=0;do b+=a.offsetLeft,pos_y+=a.offsetTop;while(a=a.offsetParent);return[b,pos_y]}},smooth_scroll:{steps:25,interval:!1,pos_x:!1,pos_y:!1,size:0,start_cur_y_pos:0,now_cur_y_pos:0,is_above:!1,is_above_now:!1,construct:function(a){$m.id(a);clearInterval($m.smooth_scroll.interval);$m.smooth_scroll.size=
0;$m.vd.get_view_port();var b=$m.vd.scrolled_top,a=$m.position.get_xy(a);$m.smooth_scroll.pos_x=a[0];$m.smooth_scroll.pos_y=a[1];$m.vd.is_kindle===!0&&window.scrollTo($m.smooth_scroll.pos_x,$m.smooth_scroll.pos_y);$m.smooth_scroll.size=parseInt(($m.smooth_scroll.pos_y-b)/$m.smooth_scroll.steps);$m.smooth_scroll.interval=setInterval(function(){$m.smooth_scroll.exec()},10)},exec:function(){$m.vd.get_view_port();$m.smooth_scroll.start_cur_y_pos=$m.vd.scrolled_top;$m.smooth_scroll.is_above=$m.smooth_scroll.start_cur_y_pos<
$m.smooth_scroll.pos_y;window.scrollTo($m.smooth_scroll.pos_x,$m.smooth_scroll.start_cur_y_pos+$m.smooth_scroll.size);$m.vd.get_view_port();$m.smooth_scroll.now_cur_y_pos=$m.vd.scrolled_top;$m.smooth_scroll.is_above_now=$m.smooth_scroll.now_cur_y_pos<$m.smooth_scroll.pos_y;if($m.smooth_scroll.is_above!=$m.smooth_scroll.is_above_now||$m.smooth_scroll.start_cur_y_pos==$m.smooth_scroll.now_cur_y_pos)clearInterval($m.smooth_scroll.interval),setTimeout(function(){window.scrollTo($m.smooth_scroll.pos_x,
$m.smooth_scroll.pos_y)},500)}},smooth_scroll_overflow:{steps:25,interval:!1,scroll_id:!1,way:!1,pos_x:!1,pos_y:!1,size:0,start_cur_y_pos:0,now_cur_y_pos:0,is_above:!1,is_above_now:!1,construct:function(a,b){var c=$m.id(a);clearInterval($m.smooth_scroll_overflow.interval);$m.smooth_scroll_overflow.scroll_id=c;if($m.vd.is_kindle===!0)$m.smooth_scroll_overflow.scroll_id.scrollTop=b=="down"?$m.smooth_scroll_overflow.scroll_id.scrollHeight:0;$m.smooth_scroll_overflow.size=0;$m.smooth_scroll_overflow.pos_y=
b=="down"?$m.smooth_scroll_overflow.scroll_id.scrollHeight:0;$m.smooth_scroll_overflow.size=parseInt(($m.smooth_scroll_overflow.pos_y-$m.smooth_scroll_overflow.scroll_id.scrollTop)/$m.smooth_scroll_overflow.steps);$m.smooth_scroll_overflow.interval=setInterval(function(){$m.smooth_scroll_overflow.exec()},10)},exec:function(){$m.smooth_scroll_overflow.start_cur_y_pos=$m.smooth_scroll_overflow.scroll_id.scrollTop;$m.smooth_scroll_overflow.is_above=$m.smooth_scroll_overflow.start_cur_y_pos<$m.smooth_scroll_overflow.pos_y;
$m.smooth_scroll_overflow.scroll_id.scrollTop=$m.smooth_scroll_overflow.start_cur_y_pos+$m.smooth_scroll_overflow.size;$m.smooth_scroll_overflow.now_cur_y_pos=$m.smooth_scroll_overflow.scroll_id.scrollTop;$m.smooth_scroll_overflow.is_above_now=$m.smooth_scroll_overflow.now_cur_y_pos<$m.smooth_scroll_overflow.pos_y;($m.smooth_scroll_overflow.is_above!=$m.smooth_scroll_overflow.is_above_now||$m.smooth_scroll_overflow.start_cur_y_pos==$m.smooth_scroll_overflow.now_cur_y_pos)&&clearInterval($m.smooth_scroll_overflow.interval)}},
cursor:{set:function(a,b){var c=$m.id(a);if($m.is.alive(c)===!1)return!1;if(c.value.length==0)try{c.focus()}catch(d){$m.de.add_item("$m.cursor.get("+a+", "+b+") failed")}else{var e=b=="start"?0:c.value.length;if(c.setSelectionRange)try{c.focus(),c.setSelectionRange(c.value.length,e)}catch(f){$m.de.add_item("$m.cursor.get("+a+", "+b+") failed during id.setSelectionRange")}else if(c.createTextRange)try{range=c.createTextRange(),range.collapse(!0),range.moveEnd("character",e),range.moveStart("character",
c.value.length),range.select()}catch(g){$m.de.add_item("$m.cursor.get("+a+", "+b+") failed during id.createTextRange")}}},get:function(a){var b=$m.id(a);if($m.is.alive(b)===!1)return!1;if(b.selectionStart)return b.selectionStart;else if(document.selection){b.focus();a=document.selection.createRange();if(a==null)return 0;var b=b.createTextRange(),c=b.duplicate();b.moveToBookmark(a.getBookmark());c.setEndPoint("EndToStart",b);return c.text.length}return 0}},insert_node_at_selection_point:function(a,
b){var c=a.getSelection(),d=c.getRangeAt(0);c.removeAllRanges();d.deleteContents();var e=d.startContainer,f=d.startOffset,d=document.createRange();if(e.nodeType==3&&b.nodeType==3)e.insertData(f,b.nodeValue),d.setEnd(e,f+b.length),d.setStart(e,f+b.length);else{if(e.nodeType==3){var g=e,e=g.parentNode,i=g.nodeValue,h=i.substr(0,f),f=i.substr(f),h=document.createTextNode(h),f=document.createTextNode(f);e.insertBefore(f,g);e.insertBefore(b,f);e.insertBefore(h,b);e.removeChild(g)}else f=e.childNodes[f],
e.insertBefore(b,f);try{d.setEnd(f,0)}catch(j){$m.de.add_item("e = "+j)}try{d.setStart(f,0)}catch(l){$m.de.add_item("e = "+l)}}c.addRange(d)},get_keycode:function(a){var b="";if(!a)a=window.event;return b=a.keyCode?a.keyCode:a.which?a.which:!1},get_mouse_btn:function(a){var b="";if($m.is.alive(a)===!1)a=window.event;return b=$m.is.alive(a.button)===!0?a.button:$m.is.alive(a.which)===!0?a.which:!1},ev:function(a){return eval(a)},ev_script:function(a){var b="",c=/<script\s?(.|\n)*?>(.|\n)*?<\/script>/gi,
d=a.match(c);if(d){for(var a=a.replace(c,""),c=0,e=d.length;c<e;c++)b+=$m.tags.strip.from_cont(d[c]);$m.ev(b)}return a},try_json_parse:function(a){try{return JSON.parse(a)}catch(b){return!1}},stop_bubble:function(a){if($m.is.object(a)===!1)a=window.event;a.cancelBubble=!0;a.returnValue=!1;a.stopPropagation&&(a.stopPropagation(),a.preventDefault())},returnd:{set:function(a,b){$m.attr.set(a,{"data-mjf_return_value":b})},get:function(a){return $m.attr.get(a,"data-mjf_return_value")==="false"?!1:!0}},
fix_msie:function(){if($m.vd.is_msie7_or_lower)document.nativeGetElementById=document.getElementById,document.getElementById=function(a){var b=document.nativeGetElementById(a);if(b)if(b.attributes.id.value==a)return b;else for(b=1;b<document.all[a].length;b++)if(document.all[a][b].attributes.id.value==a)return document.all[a][b];return null}},win:{bind:function(a,b){var c="on"+a,d=window[c];window[c]=typeof window[c]=="function"?function(){d();b()}:b}},element:{bind:function(a,b,c){$m.id(a)["on"+
b]=c},attach:function(a,b,c){a=$m.id(a);if(document.addEventListener)a.addEventListener(b,c,!0);else if(document.attachEvent)a.attachEvent("on"+b,c);else return!1},detach:function(a,b,c){$m.id(a);if(document.removeEventListener)a.removeEventListener(b,c,!0);else if(document.detachEvent)a.detachEvent("on"+b,c);else return!1}},elements:{listeners:[],bind:function(a,b,c,d){var c="on"+c,e="",f="",f="";if(a.length===void 0){var g=[];g[0]=a}else $m.is.alive(a.tagName)===!0&&a.tagName.toLowerCase()=="select"?
(g=[],g[0]=a):g=a;for(var a=0,i=g.length;a<i;a++)if($m.attr.has_value(g[a],$m.data_att,b)===!0){for(var e=$m.attr.get(g[a],"id"),f=$m.attr.get(g[a],$m.data_att),f=f.split("|"),h=0,j=f.length;h<j;h++)if(f[h]==b)break;$m.is.array(this.listeners[e])!==!0&&(this.listeners[e]=[]);$m.is.array(this.listeners[e][c])!==!0&&(this.listeners[e][c]=[]);g[a][c]=$m.exec[c];this.listeners[e][c][h]=d;$m.attr.has_value(g[a],$m.data_att,"return_false")===!0&&$m.attr.set(e,{"data-mjf_return_value":"false"})}}},exec:{go:function(a,
b,c){for(var d in $m.elements.listeners[a][b])if($m.elements.listeners[a][b][d](a,c)===!1)return!1;return $m.returnd.get(a)===!1?!1:!0},onabort:function(a){return $m.exec.go($m.attr.get(this,"id"),"onabort",a)},onblur:function(a){return $m.exec.go($m.attr.get(this,"id"),"onblur",a)},onclick:function(a){return $m.exec.go($m.attr.get(this,"id"),"onclick",a)},onchange:function(a){return $m.exec.go($m.attr.get(this,"id"),"onchange",a)},ondblclick:function(a){return $m.exec.go($m.attr.get(this,"id"),"ondblclick",
a)},onfocus:function(a){return $m.exec.go($m.attr.get(this,"id"),"onfocus",a)},onkeydown:function(a){return $m.exec.go($m.attr.get(this,"id"),"onkeydown",a)},onkeypress:function(a){return $m.exec.go($m.attr.get(this,"id"),"onkeypress",a)},onkeyup:function(a){return $m.exec.go($m.attr.get(this,"id"),"onkeyup",a)},onload:function(a){return $m.exec.go($m.attr.get(this,"id"),"onload",a)},onmousemove:function(a){return $m.exec.go($m.attr.get(this,"id"),"onmousemove",a)},onmousedown:function(a){return $m.exec.go($m.attr.get(this,
"id"),"onmousedown",a)},onmouseup:function(a){return $m.exec.go($m.attr.get(this,"id"),"onmouseup",a)},onmouseover:function(a){return $m.exec.go($m.attr.get(this,"id"),"onmouseover",a)},onmouseout:function(a){return $m.exec.go($m.attr.get(this,"id"),"onmouseout",a)},onreset:function(a){return $m.exec.go($m.attr.get(this,"id"),"onreset",a)},onresize:function(a){return $m.exec.go($m.attr.get(this,"id"),"onresize",a)},onselect:function(a){return $m.exec.go($m.attr.get(this,"id"),"onselect",a)},onsubmit:function(a){return $m.exec.go($m.attr.get(this,
"id"),"onsubmit",a)},onunload:function(a){return $m.exec.go($m.attr.get(this,"id"),"onunload",a)}},ut:{array_unique:function(a){if($m.is.alive(a)===!1)return!1;var b=[],c=0,d=a.length;a:for(;c<d;c++){for(var e=0,f=b.length;e<f;e++)if(b[e]==a[c])continue a;b[b.length]=a[c]}return b},obj_merge:function(a,b){if($m.is.alive(a)===!1||$m.is.alive(b)===!1)return!1;for(var c in b)try{b[c].constructor==Object?a[c]=$m.ut.obj_merge(a[c],b[c]):a[c]=b[c]}catch(d){a[c]=b[c]}return a},set_prop_to_val:function(a,
b,c){if($m.is.alive(a)===!1||$m.is.alive(b)===!1||$m.is.alive(c)===!1)return!1;a[b]=c},dash_space_to_underscore:function(a){if($m.is.alive(a)===!1)return!1;return a.replace(/[\-\s]/g,"_")},dash_underscore_to_space:function(a){if($m.is.alive(a)===!1)return!1;return a.replace(/[\-_\s]/g," ")},dash_underscore_space_to_slash:function(a){if($m.is.alive(a)===!1)return!1;return a.replace(/[\-_\s]/g,"/")},initial_uppercase:function(a){if($m.is.alive(a)===!1)return!1;return a.replace(/([A-Za-z]+)/g,function(a,
c){return c.substr(0,1).toUpperCase()+c.toLowerCase().substr(1,c.length)})},uppercase_first:function(a){if($m.is.alive(a)===!1)return!1;a.toLowerCase();return a.substr(0,1).toUpperCase()+a.substr(1)},decode_entities:function(a){if($m.is.alive(a)===!1)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild===null||b.firstChild.nodeValue===null?"":b.firstChild.nodeValue},rand_num:function(a){$m.is.alive(a)===!1&&(a=10);for(var b="",c="",d=0;d<a;d++)b=Math.floor(Math.random()*
10),c+=b+"";return c}},dt:{current_year:!1,current_month:!1,current_date:!1,current_hour:!1,current_minute:!1,current_second:!1,current_milliseconds:!1,am_pm:!1,timezone:!1,timezone_dst:!1,get_date_now:function(){this.obj_date=new Date;this.current_year=this.obj_date.getFullYear();this.current_month=this.obj_date.getMonth();this.current_month++;if(this.current_month<10)this.current_month="0"+this.current_month;this.current_date=this.obj_date.getDate();if(this.current_date<10)this.current_date="0"+
this.current_date;return this.current_year+"-"+this.current_month+"-"+this.current_date},get_time_now:function(){this.obj_date=new Date;this.current_hour=this.obj_date.getHours();this.am_pm=this.current_hour<12?"am":"pm";if(this.current_hour==0)this.current_hour=12;this.current_hour>12&&(this.current_hour-=12);this.current_minute=this.obj_date.getMinutes();this.current_minute+="";if(this.current_minute.length==1)this.current_minute="0"+this.current_minute;this.current_second=this.obj_date.getSeconds();
this.current_second+="";if(this.current_second.length==1)this.current_second="0"+this.current_second;this.current_milliseconds=this.obj_date.getMilliseconds();this.current_milliseconds=this.current_second+"";if(this.current_milliseconds.length==1)this.current_milliseconds="0"+this.current_milliseconds;return this.current_hour+":"+this.current_minute+":"+this.current_second+this.am_pm},calc_timezone:function(){var a=new Date,b=new Date(a.getFullYear(),0,1,0,0,0,0),a=new Date(a.getFullYear(),6,1,0,
0,0,0),c=b.toGMTString(),d=new Date(c.substring(0,c.lastIndexOf(" ")-1)),c=a.toGMTString(),c=new Date(c.substring(0,c.lastIndexOf(" ")-1)),b=(b-d)/36E5,a=(a-c)/36E5;b==a?this.timezone_dst="0":(b-a>=0&&(b=a),this.timezone_dst="1");this.timezone=b;$m.config.send_timezone_to!==!1&&$m.insert_link.script($m.config.send_timezone_to+"?tz="+this.timezone)},convert:function(a){var b=parseInt(a);a-=parseInt(a);a*=60;var c=parseInt(a);a-=parseInt(a);a*=60;parseInt(a);a=b;a=b==0?"00":b>0?b<10?"+0"+b:"+"+b:b>
-10?"-0"+Math.abs(b):b;return a+":"+(c<10?"0"+c:c)}},vd:{name:"visitor_data",browser:!1,version:"?",version_major:"?",screen_height:!1,screen_width:!1,screen_depth:!1,visible_page_height:!1,visible_page_width:!1,scrolled_left:!1,scrolled_top:!1,total_page_height:!1,total_page_width:!1,cookies_enabled:!1,ua:navigator.userAgent,is_mobile_touch:!1,match_windows:"Windows",is_windows:!1,match_macintosh:"Macintosh",is_macintosh:!1,match_linux:"Linux",is_linux:!1,match_iphone:"iPhone",is_iphone:!1,match_ipad:"iPad",
is_ipad:!1,match_android:"Android",is_android:!1,match_webos:"webOS",is_webos:!1,match_blackberry:"BlackBerry",is_blackberry:!1,match_maemo:"Tablet browser",is_maemo:!1,match_kindle:"Kindle",is_kindle:!1,match_wii:"Nintendo Wii",is_wii:!1,match_msie:"MSIE",is_msie:!1,is_msie6_or_lower:!1,match_msie7:"MSIE 7",is_msie7:!1,is_msie7_or_lower:!1,match_msie8:"MSIE 8",is_msie8:!1,is_msie8_or_lower:!1,match_msie9:"MSIE 9",is_msie8_or_lower:!1,is_msie9:!1,match_gecko:"Gecko",is_gecko:!1,match_firefox:"Firefox",
is_firefox:!1,match_firefox2:"Firefox/2",is_firefox2:!1,match_firefox3:"Firefox/3",is_firefox3:!1,match_firefox3_5:"Firefox/3.5",is_firefox3_5:!1,match_firefox3_6:"Firefox/3.6",is_firefox3_6:!1,match_firefox4:"Firefox/4",is_firefox4:!1,match_webkit:"AppleWebKit",is_webkit:!1,match_safari:"Safari",is_safari:!1,match_mobile_safari:"Mobile Safari",is_mobile_touch_safari:!1,match_chrome:"Chrome",is_chrome:!1,match_pre:"Pre/1.0",is_pre:!1,match_opera:"Opera",is_opera:!1,construct:function(){var a="";if(this.ua.match(this.match_windows))this.is_windows=
!0;if(this.ua.match(this.match_macintosh))this.is_macintosh=!0;if(this.ua.match(this.match_linux))this.is_linux=!0;if(this.ua.match(this.match_iphone))this.is_mobile_touch=this.is_iphone=!0;if(this.ua.match(this.match_ipad))this.is_mobile_touch=this.is_ipad=!0;if(this.ua.match(this.match_android))this.is_mobile_touch=this.is_android=!0;if(this.ua.match(this.match_webos))this.is_mobile_touch=this.is_webos=!0;if(this.ua.match(this.match_blackberry))this.is_mobile_touch=this.is_blackberry=!0,this.browser=
this.match_blackberry;if(this.ua.match(this.match_maemo))this.is_mobile_touch=this.is_maemo=!0,this.browser=this.match_maemo;if(this.ua.match(this.match_kindle))this.is_mobile_touch=this.is_kindle=!0,this.browser=this.match_kindle;if(this.ua.match(this.match_wii))this.is_mobile_touch=this.is_wii=!0,this.browser=this.match_wii;if((a=this.ua.indexOf("Opera"))!=-1)this.is_opera=!0,this.browser=this.match_opera,this.version=parseFloat(this.ua.substring(a+6)),this.version_major=parseInt(""+this.version);
if(this.ua.match(this.match_gecko)){this.is_gecko=!0;this.browser=this.match_gecko;if(this.ua.match(this.match_firefox))this.is_firefox=!0,this.browser=this.match_firefox;if(this.ua.match(this.match_firefox2))this.is_firefox2=!0,this.browser=this.match_firefox2;if(this.ua.match(this.match_firefox3))this.is_firefox3=!0,this.browser=this.match_firefox3;if(this.ua.match(this.match_firefox3_5))this.is_firefox3=!1,this.is_firefox3_5=!0,this.browser=this.match_firefox3_5;if(this.ua.match(this.match_firefox3_6))this.is_firefox3_5=
this.is_firefox3=!1,this.is_firefox3_6=!0,this.browser=this.match_firefox3_6;if(this.ua.match(this.match_firefox4))this.is_firefox4=!0,this.browser=this.match_firefox4}if(this.ua.match(this.match_webkit)){this.is_gecko=!1;this.is_webkit=!0;this.browser=this.match_webkit;if(this.ua.match(this.match_safari))this.is_safari=!0,this.browser=this.match_safari;if(this.ua.match(this.match_mobile_safari))this.is_safari=!1,this.is_mobile_touch=!0,this.browser=this.match_mobile_safari;if(this.ua.match(this.match_chrome))this.is_safari=
!1,this.is_chrome=!0,this.browser=this.match_chrome;if(this.ua.match(this.match_pre))this.is_safari=!1,this.is_mobile_touch=this.is_pre=!0,this.browser=this.match_pre}if((a=this.ua.indexOf("MSIE"))!=-1){this.is_msie9_or_lower=this.is_msie8_or_lower=this.is_msie7_or_lower=this.is_msie6_or_lower=this.is_msie=!0;this.browser=this.match_msie;this.version=parseFloat(this.ua.substring(a+5));this.version_major=parseInt(""+this.version);if(this.ua.match(this.match_msie7))this.is_msie7_or_lower=this.is_msie7=
this.is_msie8_or_lower=this.is_msie9_or_lower=!0,this.is_msie6_or_lower=!1,this.browser=this.match_msie7;if(this.ua.match(this.match_msie8))this.is_msie8_or_lower=this.is_msie8=this.is_msie9_or_lower=!0,this.is_msie6_or_lower=this.is_msie7_or_lower=!1,this.browser=this.match_msie8;if(this.ua.match(this.match_msie9))this.is_msie9_or_lower=this.is_msie9=!0,this.is_msie6_or_lower=this.is_msie7_or_lower=this.is_msie8_or_lower=!1,this.browser=this.match_msie8;$m.fix_msie()}this.screen_height=screen.height;
this.screen_width=screen.width;this.screen_depth=screen.colorDepth;this.cookies_enabled=navigator.cookieEnabled},get_view_port:function(){$m.vd.visible_page_height=document.documentElement&&document.documentElement.clientHeight||window.innerHeight||self.innerHeight||document.body.clientHeight;$m.vd.visible_page_width=document.documentElement&&document.documentElement.clientWidth||window.innerWidth||self.innerWidth||document.body.clientWidth;$m.vd.scrolled_left=document.documentElement&&document.documentElement.scrollLeft||
window.pageXOffset||self.pageXOffset||document.body.scrollLeft;$m.vd.scrolled_top=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||self.pageYOffset||document.body.scrollTop;$m.vd.total_page_height=document.documentElement&&document.documentElement.scrollHeight?document.documentElement.scrollHeight:document.body.scrollHeight>document.body.offsetHeight?document.body.scrollHeight:document.body.offsetHeight;$m.vd.total_page_width=document.documentElement&&document.documentElement.scrollWidth?
document.documentElement.scrollWidth:document.body.scrollWidth>document.body.offsetWidth?document.body.scrollWidth:document.body.offsetWidth}},de:{name:"magic_debugger",construct:function(){if(this.new_document===void 0){var a=window.open("","debug_win","toolbar=no,location=no,resizable=yes,scrollbars=yes,menubar=no,width=600,height=500");if(a===void 0||a===null)return setTimeout(function(){alert("Please allow pop-up windows if you'd like to use the Magic Debugger")},10),$m.config.global_debug=!1;
this.new_document=a.document;this.new_document_begin='<!DOCTYPE html><html><head><title>Magic Debugger</title><link href="'+$m.config.basedir+"stylesheets/magic_debugger."+$m.debugger_css_version+'.css" rel="stylesheet"></head><body>';this.new_document_content="<h1>Magic Debugger &raquo; "+$m.dt.get_date_now()+" "+$m.dt.get_time_now()+"</h1>";this.new_document_content+='<p id="clear_debugger"><input type="button" value="clear" onclick="window.opener.$m.de.clear_debugger();"></p><div id="debug_box"></div>';
this.new_document_end="</body></html>";this.new_document.write(this.new_document_begin+this.new_document_content+this.new_document_end);this.new_document.close()}$m.vd.is_safari===!0&&a.blur();this.debug_box_id=this.new_document.getElementById("debug_box")},add_item:function(a){if($m.config.global_debug===!1)return!1;var a=a.replace(RegExp("<","gi"),"&lt;"),a=a.replace(RegExp(">","gi"),"&gt;"),b=((new Date).getTime()-$m.timer)/1E3+"";b.length==3?b+="00":b.length==4&&(b+="0");var c=$m.is.alive(arguments.callee)===
!0?"<br>"+arguments.callee:"";this.debug_box_id.innerHTML="<p>"+b+" | "+a+"</p>"+this.debug_box_id.innerHTML},clear_debugger:function(){this.debug_box_id.innerHTML=" ";return!1},throw_browser_error:function(a){setTimeout("throw new Error('Magic: "+a+"')",0)},get_wand:function(){var a="Debugging 'wand' ~~",b;for(b in $m.wand)$m.h[b]!==void 0&&(a+="$m.wand."+b+"="+$m.wand[b]+"; ");this.add_item(a)},get_tricks:function(){var a="Debugging 'tricks' ~~",b;for(b in $m.trick)$m.h[b]!==void 0&&(a+="$m.trick."+
b+"="+$m.trick[b]+"; ");this.add_item(a)},get_this:function(a,b){this.add_item("Debugging This '"+a+"' ~~");for(var c in b)this.add_item("k = "+c+" ~~> "+b[c])},get_array:function(a,b){this.add_item("Debugging Array '"+a+"' ~~");if($m.is.array(b))if(b.length==0)this.add_item(a+" is empty");else for(var c=0,d=b.length;c<d;c++)this.add_item(a+"["+c+"] = "+b[c]);else this.add_item("Oops! '"+a+"' isn't an array!")},get_object:function(a,b){this.add_item("Debugging Object '"+a+"' ~~");for(var c in b)this.add_item("Property='"+
c+"'; Type='"+typeof b[c]+"'; Value='"+b[c]+"' ~~~~~ ")},get_type:function(a,b){this.add_item("typeof ("+a+") == "+typeof b)},throw_error:function(a,b,c){$m.de.add_item("~~ JavaScript Error: "+a+" ~~ Line: "+c+" ~~ URL: "+b);return!0}},cookies:{set:function(a,b,c,d){return $m.vd.cookies_enabled===!0?($m.is.alive(b)===!1&&(b=""),a=escape(a)+"="+escape(b),a+=";path=",a+=$m.is.alive(c)===!0?c:"/",$m.is.alive(d)===!0&&(c=new Date,c.setTime(c.getTime()+d*864E5),a+=";expires="+c.toGMTString()),document.cookie=
a,!0):!1},get:function(a){if($m.vd.cookies_enabled===!0)for(var b=document.cookie.split("; "),c="",d=0,e=b.length;d<e;d++){if(c=b[d].split("="),c[0]==a)return unescape(c[1])}else return!1},remove:function(a){if($m.vd.cookies_enabled===!0)$m.cookies.set(a,"","",-1);else return!1},freeze:function(a,b,c){if($m.vd.cookies_enabled===!0){var d=$m.cookies.get(a);if($m.is.alive(d)===!1)$m.cookies.set(a,b+":"+c,"",30);else{for(var d=d.split("|"),e=!1,f=0,g=d.length;f<g;f++)d[f].indexOf(b)!=-1&&(d[f]=b+":"+
c,e=!0);e===!1&&d.push(b+":"+c);$m.cookies.set(a,d.join("|"),"",30)}}else return!1},thaw:function(a){if($m.vd.cookies_enabled===!0)if(a=$m.cookies.get(a),$m.is.alive(a)===!1)return!1;else{for(var a=a.split("|"),b=[],c=[],d=0,e=a.length;d<e;d++)c=a[d].split(":"),$m.is.array(b[d])===!1&&(b[d]=[]),b[d][c[0]]=c[1];return b}else return!1}},ajax:{name:"ajax",ao:!1,throbber_html:'<img src="../images/throbber.gif" alt="Please wait...">',active:{state:!1,msg:"We're currently processing a request. Please hold on for a few more seconds."},
request:{element_id:!1,url:!1,update_id:!1,update_id_overwrite:!0,update_id_scroll_top:!1,update_id_scroll_to:!1,response_text:!1,ga_track:!1,waiting_msg:"We're waiting for a response on your request...",failed_msg:"Unfortunately your request could not be completed at this time. Please try again later.",rs_msg:["0. Open hasn't been called.","1. Open called; Send hasn't.","2. Open called; Send has been called; No response from the server.","3. Server responded; Ready for data.","4. Server responded; Returned data!"],
error_codes:{e400:"400 Bad Request",e401:"401 Unauthorized",e403:"403 Forbidden",e404:"404 Not Found",e405:"405 Method Not Allowed",e408:"408 Request Timeout",e500:"500 Internal Server Error",e501:"501 Not Implemented",e502:"502 Bad Gateway",e503:"503 Service Unavailable",e504:"504 Gateway Timeout",e505:"505 HTTP Version Not Supported"}},init_xml:function(){try{$m.ajax.ao=new ActiveXObject("Msxml2.XMLHTTP")}catch(a){try{$m.ajax.ao=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){$m.ajax.ao=new XMLHttpRequest}}},
init_settings:function(a){var b=$m.attr.get(a,"data-mjf_ajax_click_method"),c=$m.attr.get(a,"data-mjf_ajax_call_on_success"),b={method:b===null?"get":b,url:$m.attr.get(a,"data-mjf_ajax_url"),query:$m.attr.get(a,"data-mjf_ajax_query"),update_id:$m.attr.get(a,"data-mjf_ajax_update_id"),update_id_overwrite:$m.attr.get(a,"data-mjf_ajax_update_id_overwrite")=="false"?!1:!0,update_id_scroll_top:$m.attr.get(a,"data-mjf_ajax_update_id_scroll_top")=="true"?!0:!1,update_id_scroll_to:$m.attr.get(a,"data-mjf_ajax_update_id_scroll_to")==
"true"?!0:!1,callback_success:c===null?"$m.ajax.simple_content_update()":c};$m.ajax.request.ga_track=$m.attr.get(a,"data-mjf_ga_track")===null?!0:!1;return b},init_settings_manual:function(a){return{method:$m.is.alive(a.method)===!1?"get":a.method,url:a.url,query:$m.is.alive(a.query)===!1?null:a.query,update_id:$m.is.alive(a.update_id)===!1?null:a.update_id,update_id_overwrite:$m.is.alive(a.update_id_overwrite)===!1?null:a.update_id_overwrite,update_id_scroll_top:$m.is.alive(a.update_id_scroll_top)===
!1?null:a.update_id_scroll_top,update_id_scroll_to:$m.is.alive(a.update_id_scroll_to)===!1?null:a.update_id_scroll_to,callback_success:$m.is.alive(a.callback_success)===!1?"$m.ajax.simple_content_update()":a.callback_success}},send:function(a,b){if($m.config.ajax.use===!1)return $m.de.add_item("$m.config.ajax.use === false; Set to true to use."),!1;if($m.ajax.active.state===!0)return alert($m.ajax.active.msg),!1;else $m.ajax.active.state=!1;if($m.config.ajax.visual===!0&&$m.id(b))if($m.tag.get_name(b)==
"form"){$m.css_class.add(b,"ajax_visual_form");var c=$m.attr.get(b,"data-mjf_ajax_form_reset");c!==null&&c=="true"&&$m.id(b).reset()}else $m.css_class.add(b,"ajax_visual");$m.config.ajax.debug=="high"&&$m.de.add_item("Executing >> $m.ajax.send("+a.method+","+a.url+","+a.query+","+a.update_id+")");c=(a.query===null?"":a.query)+"&ajax_call="+(new Date).getTime();$m.config.ajax.debug!==!1&&$m.de.add_item("final_query_string = "+c);$m.ajax.init_xml();if($m.ajax.ao){$m.ajax.request.update_id=a.update_id;
$m.ajax.request.update_id_overwrite=a.update_id_overwrite;$m.ajax.request.update_id_scroll_top=a.update_id_scroll_top;$m.ajax.request.update_id_scroll_to=a.update_id_scroll_to;$m.ajax.request.url=a.url;$m.ajax.request.method=a.method;$m.ajax.request.callback=a.callback_success;$m.ajax.ao.onreadystatechange=$m.ajax.returnd;switch(a.method){case "get":$m.ajax.ao.open("GET",a.url+"?"+c,!0);$m.config.ajax.debug!==!1&&$m.de.add_item('$m.ajax.ao.open("GET", '+a.url+"?"+c+", true)");$m.ajax.ao.send(null);
break;case "post":$m.ajax.ao.open("POST",a.url,!0),$m.config.ajax.debug!==!1&&$m.de.add_item('$m.ajax.ao.open("POST", '+a.url+", true)"),$m.ajax.ao.setRequestHeader("Content-type","application/x-www-form-urlencoded"),$m.ajax.ao.setRequestHeader("Content-length",c.length),$m.ajax.ao.setRequestHeader("Connection","close"),$m.ajax.ao.send(c)}return!0}else return $m.config.ajax.debug!==!1&&$m.de.add_item("$m.ajax.ao = "+$m.ajax.ao),!1},returnd:function(){switch($m.ajax.ao.readyState){case 0:$m.config.ajax.debug==
"high"&&$m.de.add_item("$m.ajax.ao.readyState = "+$m.ajax.request.rs_msg[0]);break;case 1:$m.config.ajax.debug=="high"&&$m.de.add_item("$m.ajax.ao.readyState = "+$m.ajax.request.rs_msg[1]);break;case 2:$m.config.ajax.debug=="high"&&$m.de.add_item("$m.ajax.ao.readyState = "+$m.ajax.request.rs_msg[2]);break;case 3:$m.config.ajax.debug=="high"&&$m.de.add_item("$m.ajax.ao.readyState = "+$m.ajax.request.rs_msg[3]);break;case 4:$m.config.ajax.debug=="high"&&$m.de.add_item("$m.ajax.ao.readyState = "+$m.ajax.request.rs_msg[4]);
$m.config.ajax.debug=="low"&&$m.de.add_item("$m.ajax.ao.status = "+$m.ajax.ao.status);var a="e"+$m.ajax.ao.status;$m.ajax.request.response_text=$m.is.alive($m.ajax.request.error_codes[a])===!0?'<div class="msg_box msg_error"><p>'+$m.ajax.request.error_codes[a]+"</p></div>":$m.ajax.ao.status==200?$m.ajax.ao.responseText==0?$m.ajax.request.waiting_msg:$m.ajax.ao.responseText:$m.ajax.request.failed_msg;$m.ajax.active.state=!1;setTimeout(function(){$m.ev($m.ajax.request.callback)},500);$m.ajax.request.ga_track===
!0&&$m.track.ga({category:"MJF AJAX",action:$m.ajax.request.element_id+" "+$m.ut.uppercase_first($m.ajax.request.method),label:$m.ajax.request.url});$m.config.ajax.visual===!0&&$m.id($m.ajax.request.element_id)&&($m.tag.get_name($m.ajax.request.element_id)=="form"?$m.css_class.remove($m.ajax.request.element_id,"ajax_visual_form"):$m.css_class.remove($m.ajax.request.element_id,"ajax_visual"))}},simple_content_update:function(){var a=$m.id($m.ajax.request.update_id);if(a!==!1){$m.config.ajax.debug==
"high"&&($m.de.add_item("$m.ajax.request.update_id = "+$m.ajax.request.update_id),$m.de.add_item("$m.ajax.request.response_text = "+$m.ajax.request.response_text));var b=$m.ev_script($m.ajax.request.response_text);$m.ajax.request.update_id_overwrite===!0||$m.ajax.request.update_id_overwrite===void 0?(a.innerHTML="",a.innerHTML=b):a.innerHTML+=b;$m.ajax.request.update_id_scroll_top===!0&&$m.smooth_scroll_overflow.construct($m.ajax.request.update_id,"up");$m.ajax.request.update_id_scroll_to===!0&&$m.smooth_scroll.construct($m.ajax.request.update_id);
$m.h.animations.opaque.exec($m.ajax.request.update_id,"none","fast");$m.timer=(new Date).getTime();setTimeout(function(){$m.init_children(!0)},500)}},just_html_update:function(){var a=$m.id($m.ajax.request.update_id);if(a!==!1){$m.config.ajax.debug=="high"&&($m.de.add_item("$m.ajax.request.update_id = "+$m.ajax.request.update_id),$m.de.add_item("$m.ajax.request.response_text = "+$m.ajax.request.response_text));var b=$m.ajax.request.response_text;$m.tag.get_name($m.ajax.request.update_id)=="input"||
$m.tag.get_name($m.ajax.request.update_id)=="textarea"?$m.ajax.request.update_id_overwrite===!0||$m.ajax.request.update_id_overwrite===void 0?(a.value="",a.value=b):a.value+=b:$m.ajax.request.update_id_overwrite===!0||$m.ajax.request.update_id_overwrite===void 0?(a.innerHTML="",a.innerHTML=b):a.innerHTML+=b;$m.ajax.request.update_id_scroll_top===!0&&$m.smooth_scroll_overflow.construct($m.ajax.request.update_id,"up");$m.ajax.request.update_id_scroll_to===!0&&$m.smooth_scroll.construct($m.ajax.request.update_id)}}},
animate:{opacity:function(a){$m.config.animations.use===!0&&$m.css_class.add(a,"mjf_otrans")},slide:function(a){$m.config.animations.use===!0&&$m.css_class.add(a,"mjf_slide")}},shortcut:{shift_nums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},special_keys:{esc:27,escape:27,tab:9,space:32,"return":13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,
num:144,pause:19,"break":19,insert:45,home:36,"delete":46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},default_opt:{type:"keydown",propagate:!1,target:document,keycode:!1},bind:function(a,b,c){if($m.vd.is_mobile_touch!==!0&&a!==!1){a=a.toLowerCase();if($m.is.alive(c)===!0)for(var d in $m.shortcut.default_opt)$m.is.alive(c[d])===!1&&(c[d]=$m.shortcut.default_opt[d]);
else c=$m.shortcut.default_opt;var e=c,c=$m.is.alive(e.target)===!0?$m.id(e.target):e.target;$m.element.attach(c,e.type,function(c){$m.shortcut.modifiers={shift:{wanted:!1,pressed:!1},ctrl:{wanted:!1,pressed:!1},alt:{wanted:!1,pressed:!1},meta:{wanted:!1,pressed:!1}};var c=c||window.event,d;if(c.target)d=c.target;else if(c.srcElement)d=c.srcElement;if(d.nodeType==3)d=d.parentNode;if(!(d.tagName=="INPUT"||d.tagName=="TEXTAREA")){d=$m.get_keycode(c);var i=String.fromCharCode(d).toLowerCase();d==188&&
(i=",");d==190&&(i=".");var h=a.split("+"),j=0;if(c.ctrlKey)$m.shortcut.modifiers.ctrl.pressed=!0;if(c.shiftKey)$m.shortcut.modifiers.shift.pressed=!0;if(c.altKey)$m.shortcut.modifiers.alt.pressed=!0;if(c.metaKey)$m.shortcut.modifiers.meta.pressed=!0;for(var l=0;k=h[l],l<h.length;l++)k=="ctrl"||k=="control"?($m.shortcut.modifiers.ctrl.wanted=!0,j++):k=="shift"?($m.shortcut.modifiers.shift.wanted=!0,j++):k=="alt"?($m.shortcut.modifiers.alt.wanted=!0,j++):k=="cmd"||k=="command"?($m.shortcut.modifiers.meta.wanted=
!0,j++):k.length>1?$m.shortcut.special_keys[k]==d&&j++:e.keycode?e.keycode==d&&j++:i==k?j++:$m.shortcut.shift_nums[i]&&c.shiftKey&&(i=$m.shortcut.shift_nums[i],i==k&&j++);if(j==h.length&&$m.shortcut.modifiers.ctrl.pressed==$m.shortcut.modifiers.ctrl.wanted&&$m.shortcut.modifiers.shift.pressed==$m.shortcut.modifiers.shift.wanted&&$m.shortcut.modifiers.alt.pressed==$m.shortcut.modifiers.alt.wanted&&$m.shortcut.modifiers.meta.pressed==$m.shortcut.modifiers.meta.wanted&&($m.is.string(b)===!0?$m.ev(b):
b(c),e.propagate===!1))return $m.stop_bubble(c),!1}})}}}};$m.when_ready();$m.win.bind("load",function(){$m.execute()});

