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

var $m={timer:(new Date).getTime(),wand:{},trick:{},h:{},t:{},vd:{},ready:false,ajax_init:false,data_att:"data-mjf",body_id:"magic_body",ga:false,when_ready:function(){document.addEventListener&&document.addEventListener("DOMContentLoaded",$m.execute,false)},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===true&&$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!==true){$m.ready=true;$m.config.global_debug!==false&&$m.de.construct();$m.set_body_id();$m.init_children(false);$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)/1000+" 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");if(a===true){$m.ajax_init=true;$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")}else{$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)if(this.h[b]===undefined){a='wand "'+b+'" is not initialized correctly';$m.de.throw_browser_error(a)}else{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]===undefined){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])if(!(d=="config"||d=="toJSON"))if($m.t[c][d]===undefined){a='$m.trick "'+c+"."+d+'" is not initialized correctly';$m.de.throw_browser_error(a)}else{$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=false;$m.config.ajax.use===true&&$m.ajax.init_xml();$m.config.global_debug==="high"&&$m.ajax_init===true&&$m.de.add_item("~ MJF initialized in "+((new Date).getTime()-$m.timer)/1000+" seconds")},track:{ga:function(a){if($m.is.alive(a)===false)return false;if(typeof pageTracker=="object"&&typeof pageTracker._trackPageview==
"function")pageTracker._trackEvent(a.category,a.action,a.label);else 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){a=a=="document"?
document:$m.id(a);if($m.is.alive(a)===false)a=document;return a.getElementsByTagName(b.toUpperCase())},strip:{from_cont:function(a){return a.replace(/<\/?[^>]+(>|$)/g,"")},from_id:function(a){return $m.id(a).innerHTML.replace(/<\/?[^>]+(>|$)/g,"")}}},tag:{get_name:function(a){var b=$m.id(a);if($m.is.alive(b)===false)return false;return $m.id(a).nodeName.toLowerCase()},init:function(a,b){if($m.is.alive(a)===false||$m.is.alive(b)===false)return false;a=document.createElement(a);$m.attr.set(a,b);return a},
create:function(a,b,c,d){if($m.is.alive(b)===false)return false;b=document.createElement(b);$m.attr.set(b,c);if($m.is.object(a)===false)a=$m.id(a);a.appendChild(b);if($m.is.alive(c)===true&&$m.is.alive(c.id)===true&&$m.is.alive(d)===true)$m.id(c.id).innerHTML=d;return b},remove:function(a){if($m.is.alive(a)===false)return false;a=$m.is.string(a)===true?$m.id(a):a;a.parentNode.removeChild(a)}},id:function(a){return $m.is.object(a)===true?a:$m.is.alive(a)===false?false:document.getElementById(a)===
undefined||document.getElementById(a)===null?false:document.getElementById(a)},attr:{set:function(a,b){if($m.is.alive(a)===false)return false;a=$m.is.string(a)===true?$m.id(a):a;for(var c in b){if(c=="class"&&$m.vd.is_msie7_or_lower){tmp_val=b[c];c="className";b[c]=tmp_val}a.setAttribute(c,b[c])}return true},get:function(a,b){if($m.is.alive(a)===false)return false;a=$m.is.string(a)===true?$m.id(a):a;if($m.vd.is_msie7_or_lower===true)return $m.is.alive(a.attributes)===true&&$m.is.object(a.attributes[b])===
true&&$m.is.alive(a.attributes[b].nodeValue)===true?a.attributes[b].nodeValue:null;else if(a.getAttribute){b=a.getAttribute(b);return b===null?null:b}else return false},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)===true&&d.push(a[e]);return d},get_fields_with:function(a,b,c,d){var e=$m.id(a);a=[];var f="textarea",g="select",h=["button","checkbox","file","password","radio","submit","text"];
if($m.is.in_array(b,h)!==false){var i=e.getElementsByTagName("INPUT");h=0;for(var j=i.length;h<j;h++)for(var l in b)i[h].type==b[l]&&$m.attr.has_value(i[h],c,d)===true&&a.push(i[h])}if($m.is.in_array(b,f)!==false){l=e.getElementsByTagName("TEXTAREA");h=0;for(f=l.length;h<f;h++)$m.attr.has_value(l[h],c,d)===true&&a.push(l[h])}if($m.is.in_array(b,g)!==false){b=e.getElementsByTagName("SELECT");h=0;for(e=b.length;h<e;h++)$m.attr.has_value(b[h],c,d)===true&&a.push(b[h])}return a},get_all:function(a){a=
$m.id(a);for(var 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)===false)return false;if($m.is.string(a)===true)a=$m.id(a);if(a.getAttribute){a=$m.attr.get(a,b);if($m.is.alive(a)===false)return false;else{if(a.indexOf("|")!=-1)var d=a.split("|");else if(a.indexOf(" ")!=
-1)d=a.split(" ");else if($m.is.string(a)===true)return a==c?true:false;return $m.is.in_array(d,c)===false?false:true}}else return false},remove:function(a,b){$m.id(a).removeAttribute(b)}},css_class:{add:function(a,b){var c=$m.attr.get(a,"class");if($m.is.alive(c)===false)$m.attr.set(a,{"class":b});else if(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)===false)return false;else{c=c.split(" ");b=
$m.is.in_array(c,b);if(b!==false){c.splice(b,1);$m.attr.set(a,{"class":c.join(" ")})}else return false}},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===undefined||a===null||a===false)return false;else if($m.is.object(a)===true)return true;else if($m.is.array(a)===true){if(a<=0)return false}else return a===""?false:true},array:function(a){return typeof a=="object"&&a instanceof Array},in_array:function(a,
b){if($m.is.object(b)===true)for(var c=0,d=b.length;c<d;c++){if($m.is.string(b[c])===true)for(var e=0,f=a.length;e<f;e++)if($m.is.string(a[e])===true&&b[c]==a[e])return true}else{c=0;for(f=a.length;c<f;c++)if(a[c]==b)return c}return false},good_id:function(a){if($m.is.alive(a)===false)return false;a=$m.is.object(a)===true?a:$m.id(a);if($m.is.alive(a)===false)return false;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){var b=$m.id(a);a=b.offsetLeft;for(b=b.offsetParent;b!=null;){a+=b.offsetLeft;b=b.offsetParent}return a},get_x2:function(a){a=$m.id(a);var b=0;do b+=a.offsetLeft;while(a=a.offsetParent);return b},get_y:function(a){var b=$m.id(a);a=b.offsetTop;for(b=b.offsetParent;b!=null;){a+=b.offsetTop;b=b.offsetParent}return a},get_y2:function(a){a=$m.id(a);var b=0;do b+=a.offsetTop;while(a=a.offsetParent);return b},get_xy:function(a){var b=
$m.id(a);a=b.offsetLeft;var c=b.offsetTop;for(b=b.offsetParent;b!=null;){a+=b.offsetLeft;c+=b.offsetTop;b=b.offsetParent}return[a,c]},get_xy2:function(a){a=$m.id(a);var 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:false,pos_x:false,pos_y:false,size:0,start_cur_y_pos:0,now_cur_y_pos:0,is_above:false,is_above_now:false,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===true&&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:false,scroll_id:false,way:false,pos_x:false,pos_y:false,size:0,start_cur_y_pos:0,now_cur_y_pos:0,is_above:false,is_above_now:false,construct:function(a,b){a=$m.id(a);clearInterval($m.smooth_scroll_overflow.interval);$m.smooth_scroll_overflow.scroll_id=a;if($m.vd.is_kindle===true)$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;if($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)===false)return false;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(true);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)===false)return false;if(b.selectionStart)return b.selectionStart;else if(document.selection){b.focus();a=document.selection.createRange();if(a==null)return 0;b=b.createTextRange();var 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){a=a.getSelection();var c=a.getRangeAt(0);a.removeAllRanges();c.deleteContents();var d=c.startContainer,e=c.startOffset;c=document.createRange();if(d.nodeType==3&&b.nodeType==3){d.insertData(e,b.nodeValue);c.setEnd(d,e+b.length);c.setStart(d,e+b.length)}else{if(d.nodeType==3){var f=d;d=f.parentNode;var g=f.nodeValue,h=g.substr(0,e);e=g.substr(e);h=document.createTextNode(h);e=document.createTextNode(e);d.insertBefore(e,f);d.insertBefore(b,e);d.insertBefore(h,b);d.removeChild(f)}else{e=d.childNodes[e];
d.insertBefore(b,e)}try{c.setEnd(e,0)}catch(i){$m.de.add_item("e = "+i)}try{c.setStart(e,0)}catch(j){$m.de.add_item("e = "+j)}}a.addRange(c)},get_keycode:function(a){var b="";if(!a)a=window.event;return b=a.keyCode?a.keyCode:a.which?a.which:false},get_mouse_btn:function(a){var b="";if($m.is.alive(a)===false)a=window.event;return b=$m.is.alive(a.button)===true?a.button:$m.is.alive(a.which)===true?a.which:false},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){a=a.replace(c,"");c=0;for(var 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 false}},stop_bubble:function(a){if($m.is.object(a)===false)a=window.event;a.cancelBubble=true;a.returnValue=false;if(a.stopPropagation){a.stopPropagation();a.preventDefault()}},returnd:{set:function(a,b){$m.attr.set(a,{"data-mjf_return_value":b})},get:function(a){a=$m.attr.get(a,"data-mjf_return_value");return a=
a==="false"?false:true}},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){a="on"+a;var c=window[a];window[a]=typeof window[a]=="function"?function(){c();b()}:b}},element:{bind:function(a,
b,c){a=$m.id(a);b="on"+b;a[b]=c},attach:function(a,b,c){a=$m.id(a);if(document.addEventListener)a.addEventListener(b,c,true);else if(document.attachEvent)a.attachEvent("on"+b,c);else return false},detach:function(a,b,c){$m.id(a);if(document.removeEventListener)a.removeEventListener(b,c,true);else if(document.detachEvent)a.detachEvent("on"+b,c);else return false}},elements:{listeners:[],bind:function(a,b,c,d){c="on"+c;var e="",f="";f="";if(a.length===undefined){var g=[];g[0]=a}else if($m.is.alive(a.tagName)===
true&&a.tagName.toLowerCase()=="select"){g=[];g[0]=a}else g=a;a=0;for(var h=g.length;a<h;a++)if($m.attr.has_value(g[a],$m.data_att,b)===true){e=$m.attr.get(g[a],"id");f=$m.attr.get(g[a],$m.data_att);f=f.split("|");for(var i=0,j=f.length;i<j;i++)if(f[i]==b)break;if($m.is.array(this.listeners[e])!==true)this.listeners[e]=[];if($m.is.array(this.listeners[e][c])!==true)this.listeners[e][c]=[];g[a][c]=$m.exec[c];this.listeners[e][c][i]=d;$m.attr.has_value(g[a],$m.data_att,"return_false")===true&&$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)===false)return false;return $m.returnd.get(a)===false?false:true},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)===false)return false;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)===false||$m.is.alive(b)===false)return false;
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)===false||$m.is.alive(b)===false||$m.is.alive(c)===false)return false;a[b]=c},dash_space_to_underscore:function(a){if($m.is.alive(a)===false)return false;return a.replace(/[\-\s]/g,"_")},dash_underscore_to_space:function(a){if($m.is.alive(a)===false)return false;return a.replace(/[\-_\s]/g," ")},dash_underscore_space_to_slash:function(a){if($m.is.alive(a)===
false)return false;return a.replace(/[\-_\s]/g,"/")},initial_uppercase:function(a){if($m.is.alive(a)===false)return false;return a.replace(/([A-Za-z]+)/g,function(b,c){return c.substr(0,1).toUpperCase()+c.toLowerCase().substr(1,c.length)})},uppercase_first:function(a){if($m.is.alive(a)===false)return false;a.toLowerCase();return a.substr(0,1).toUpperCase()+a.substr(1)},decode_entities:function(a){if($m.is.alive(a)===false)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild===
null||b.firstChild.nodeValue===null?"":b.firstChild.nodeValue},rand_num:function(a){if($m.is.alive(a)===false)a=10;for(var b="",c="",d=0;d<a;d++){b=Math.floor(Math.random()*10);c+=b+""}return c}},dt:{current_year:false,current_month:false,current_date:false,current_hour:false,current_minute:false,current_second:false,current_milliseconds:false,am_pm:false,timezone:false,timezone_dst:false,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;if(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);var 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)/3600000;a=(a-c)/3600000;if(b==a)this.timezone_dst="0";else{if(b-a>=0)b=a;this.timezone_dst="1"}this.timezone=b;$m.config.send_timezone_to!==false&&$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;c=c<10?"0"+c:c;return a+":"+c}},vd:{name:"visitor_data",browser:false,version:"?",version_major:"?",screen_height:false,screen_width:false,screen_depth:false,visible_page_height:false,visible_page_width:false,scrolled_left:false,scrolled_top:false,total_page_height:false,total_page_width:false,cookies_enabled:false,
ua:navigator.userAgent,is_mobile_touch:false,match_windows:"Windows",is_windows:false,match_macintosh:"Macintosh",is_macintosh:false,match_linux:"Linux",is_linux:false,match_iphone:"iPhone",is_iphone:false,match_ipad:"iPad",is_ipad:false,match_android:"Android",is_android:false,match_webos:"webOS",is_webos:false,match_blackberry:"BlackBerry",is_blackberry:false,match_maemo:"Tablet browser",is_maemo:false,match_kindle:"Kindle",is_kindle:false,match_wii:"Nintendo Wii",is_wii:false,match_msie:"MSIE",
is_msie:false,is_msie6_or_lower:false,match_msie7:"MSIE 7",is_msie7:false,is_msie7_or_lower:false,match_msie8:"MSIE 8",is_msie8:false,is_msie8_or_lower:false,match_msie9:"MSIE 9",is_msie8_or_lower:false,is_msie9:false,match_gecko:"Gecko",is_gecko:false,match_firefox:"Firefox",is_firefox:false,match_firefox2:"Firefox/2",is_firefox2:false,match_firefox3:"Firefox/3",is_firefox3:false,match_firefox3_5:"Firefox/3.5",is_firefox3_5:false,match_firefox3_6:"Firefox/3.6",is_firefox3_6:false,match_firefox4:"Firefox/4",
is_firefox4:false,match_webkit:"AppleWebKit",is_webkit:false,match_safari:"Safari",is_safari:false,match_mobile_safari:"Mobile Safari",is_mobile_touch_safari:false,match_chrome:"Chrome",is_chrome:false,match_pre:"Pre/1.0",is_pre:false,match_opera:"Opera",is_opera:false,construct:function(){var a="";if(this.ua.match(this.match_windows))this.is_windows=true;if(this.ua.match(this.match_macintosh))this.is_macintosh=true;if(this.ua.match(this.match_linux))this.is_linux=true;if(this.ua.match(this.match_iphone))this.is_mobile_touch=
this.is_iphone=true;if(this.ua.match(this.match_ipad))this.is_mobile_touch=this.is_ipad=true;if(this.ua.match(this.match_android))this.is_mobile_touch=this.is_android=true;if(this.ua.match(this.match_webos))this.is_mobile_touch=this.is_webos=true;if(this.ua.match(this.match_blackberry)){this.is_mobile_touch=this.is_blackberry=true;this.browser=this.match_blackberry}if(this.ua.match(this.match_maemo)){this.is_mobile_touch=this.is_maemo=true;this.browser=this.match_maemo}if(this.ua.match(this.match_kindle)){this.is_mobile_touch=
this.is_kindle=true;this.browser=this.match_kindle}if(this.ua.match(this.match_wii)){this.is_mobile_touch=this.is_wii=true;this.browser=this.match_wii}if((a=this.ua.indexOf("Opera"))!=-1){this.is_opera=true;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=true;this.browser=this.match_gecko;if(this.ua.match(this.match_firefox)){this.is_firefox=true;this.browser=this.match_firefox}if(this.ua.match(this.match_firefox2)){this.is_firefox2=
true;this.browser=this.match_firefox2}if(this.ua.match(this.match_firefox3)){this.is_firefox3=true;this.browser=this.match_firefox3}if(this.ua.match(this.match_firefox3_5)){this.is_firefox3=false;this.is_firefox3_5=true;this.browser=this.match_firefox3_5}if(this.ua.match(this.match_firefox3_6)){this.is_firefox3_5=this.is_firefox3=false;this.is_firefox3_6=true;this.browser=this.match_firefox3_6}if(this.ua.match(this.match_firefox4)){this.is_firefox4=true;this.browser=this.match_firefox4}}if(this.ua.match(this.match_webkit)){this.is_gecko=
false;this.is_webkit=true;this.browser=this.match_webkit;if(this.ua.match(this.match_safari)){this.is_safari=true;this.browser=this.match_safari}if(this.ua.match(this.match_mobile_safari)){this.is_safari=false;this.is_mobile_touch=true;this.browser=this.match_mobile_safari}if(this.ua.match(this.match_chrome)){this.is_safari=false;this.is_chrome=true;this.browser=this.match_chrome}if(this.ua.match(this.match_pre)){this.is_safari=false;this.is_mobile_touch=this.is_pre=true;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=true;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=true;this.is_msie6_or_lower=false;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=true;this.is_msie6_or_lower=this.is_msie7_or_lower=false;this.browser=this.match_msie8}if(this.ua.match(this.match_msie9)){this.is_msie9_or_lower=this.is_msie9=true;this.is_msie6_or_lower=this.is_msie7_or_lower=this.is_msie8_or_lower=false;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===undefined){var a="toolbar=no,location=no,resizable=yes,scrollbars=yes,menubar=no,width=600,height=500";a=window.open("","debug_win",a);if(a===undefined||a===null){setTimeout(function(){alert("Please allow pop-up windows if you'd like to use the Magic Debugger")},10);return $m.config.global_debug=false}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.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===
true&&a.blur();this.debug_box_id=this.new_document.getElementById("debug_box")},add_item:function(a){if($m.config.global_debug===false)return false;a=a.replace(new RegExp("<","gi"),"&lt;");a=a.replace(new RegExp(">","gi"),"&gt;");var b=((new Date).getTime()-$m.timer)/1000+"";if(b.length==3)b+="00";else if(b.length==4)b+="0";var c=$m.is.alive(arguments.callee)===true?"<br>"+arguments.callee:"";c="";this.debug_box_id.innerHTML="<p>"+b+" | "+a+c+"</p>"+this.debug_box_id.innerHTML},clear_debugger:function(){this.debug_box_id.innerHTML=
" ";return false},throw_browser_error:function(a){setTimeout("throw new Error('Magic: "+a+"')",0)},get_wand:function(){var a="Debugging 'wand' ~~";for(var b in $m.wand)if($m.h[b]!==undefined)a+="$m.wand."+b+"="+$m.wand[b]+"; ";this.add_item(a)},get_tricks:function(){var a="Debugging 'tricks' ~~";for(var b in $m.trick)if($m.h[b]!==undefined)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 true}},cookies:{set:function(a,b,c,d){if($m.vd.cookies_enabled===true){if($m.is.alive(b)===false)b="";a=escape(a)+"="+escape(b);a+=";path=";a+=$m.is.alive(c)===true?c:"/";if($m.is.alive(d)===true){c=new Date;c.setTime(c.getTime()+d*86400000);a+=";expires="+c.toGMTString()}document.cookie=a;return true}else return false},get:function(a){if($m.vd.cookies_enabled===true)for(var b=document.cookie.split("; "),
c="",d=0,e=b.length;d<e;d++){c=b[d].split("=");if(c[0]==a)return unescape(c[1])}else return false},remove:function(a){if($m.vd.cookies_enabled===true)$m.cookies.set(a,"","",-1);else return false},freeze:function(a,b,c){if($m.vd.cookies_enabled===true){var d=$m.cookies.get(a);if($m.is.alive(d)===false)$m.cookies.set(a,b+":"+c,"",30);else{d=d.split("|");for(var e=false,f=0,g=d.length;f<g;f++)if(d[f].indexOf(b)!=-1){d[f]=b+":"+c;e=true}e===false&&d.push(b+":"+c);$m.cookies.set(a,d.join("|"),"",30)}}else return false},
thaw:function(a){if($m.vd.cookies_enabled===true){a=$m.cookies.get(a);if($m.is.alive(a)===false)return false;else{a=a.split("|");for(var b=[],c=[],d=0,e=a.length;d<e;d++){c=a[d].split(":");if($m.is.array(b[d])===false)b[d]=[];b[d][c[0]]=c[1]}return b}}else return false}},ajax:{name:"ajax",ao:false,active:{state:false,msg:"We're currently processing a request. Please hold on for a few more seconds."},throbber_html:'<img src="../images/throbber.gif" alt="Please wait...">',request:{element_id:false,
url:false,update_id:false,update_id_overwrite:true,update_id_scroll_top:false,update_id_scroll_to:false,response_text:false,ga_track:false,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"?false:true,update_id_scroll_top:$m.attr.get(a,"data-mjf_ajax_update_id_scroll_top")=="true"?true:false,update_id_scroll_to:$m.attr.get(a,
"data-mjf_ajax_update_id_scroll_to")=="true"?true:false,callback_success:c===null?"$m.ajax.simple_content_update()":c};$m.ajax.request.ga_track=$m.attr.get(a,"data-mjf_ga_track")===null?true:false;return b},init_settings_manual:function(a){return{method:$m.is.alive(a.method)===false?"get":a.method,url:a.url,query:$m.is.alive(a.query)===false?null:a.query,update_id:$m.is.alive(a.update_id)===false?null:a.update_id,update_id_overwrite:$m.is.alive(a.update_id_overwrite)===false?null:a.update_id_overwrite,
update_id_scroll_top:$m.is.alive(a.update_id_scroll_top)===false?null:a.update_id_scroll_top,update_id_scroll_to:$m.is.alive(a.update_id_scroll_to)===false?null:a.update_id_scroll_to,callback_success:$m.is.alive(a.callback_success)===false?"$m.ajax.simple_content_update()":a.callback_success}},send:function(a,b){if($m.config.ajax.use===false){$m.de.add_item("$m.config.ajax.use === false; Set to true to use.");return false}if($m.ajax.active.state===true){alert($m.ajax.active.msg);return false}else $m.ajax.active.state=
true;if($m.config.ajax.visual===true&&$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+")");b=a.query===null?"":a.query;b=b+"&ajax_call="+(new Date).getTime();$m.config.ajax.debug!==false&&$m.de.add_item("final_query_string = "+
b);$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+"?"+b,true);$m.config.ajax.debug!==false&&$m.de.add_item('$m.ajax.ao.open("GET", '+
a.url+"?"+b+", true)");$m.ajax.ao.send(null);break;case "post":$m.ajax.ao.open("POST",a.url,true);$m.config.ajax.debug!==false&&$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",b.length);$m.ajax.ao.setRequestHeader("Connection","close");$m.ajax.ao.send(b)}return true}else{$m.config.ajax.debug!==false&&$m.de.add_item("$m.ajax.ao = "+$m.ajax.ao);return false}},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])===true?'<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=false;setTimeout(function(){$m.ev($m.ajax.request.callback)},500);$m.ajax.request.ga_track===
true&&$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});if($m.config.ajax.visual===true&&$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");break}},simple_content_update:function(){var a=$m.id($m.ajax.request.update_id);if(a!==false){if($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);if($m.ajax.request.update_id_overwrite===true||$m.ajax.request.update_id_overwrite===undefined){a.innerHTML="";a.innerHTML=b}else a.innerHTML+=b;$m.ajax.request.update_id_scroll_top===true&&$m.smooth_scroll_overflow.construct($m.ajax.request.update_id,"up");$m.ajax.request.update_id_scroll_to===
true&&$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(true)},500)}},just_html_update:function(){var a=$m.id($m.ajax.request.update_id);if(a!==false){if($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)}if($m.ajax.request.update_id_overwrite===
true||$m.ajax.request.update_id_overwrite===undefined){a.innerHTML="";a.innerHTML=$m.ajax.request.response_text}else a.innerHTML+=$m.ajax.request.response_text;$m.ajax.request.update_id_scroll_top===true&&$m.smooth_scroll_overflow.construct($m.ajax.request.update_id,"up");$m.ajax.request.update_id_scroll_to===true&&$m.smooth_scroll.construct($m.ajax.request.update_id)}}},animate:{opacity:function(a){$m.config.animations.use===true&&$m.css_class.add(a,"mjf_otrans")},slide:function(a){$m.config.animations.use===
true&&$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:false,target:document,keycode:false},bind:function(a,b,c){if($m.vd.is_mobile_touch!==true){a=a.toLowerCase();if($m.is.alive(c)===true)for(var d in $m.shortcut.default_opt){if($m.is.alive(c[d])===false)c[d]=$m.shortcut.default_opt[d]}else c=$m.shortcut.default_opt;var e=c;c=$m.is.alive(e.target)===true?$m.id(e.target):e.target;d=function(f){$m.shortcut.modifiers=
{shift:{wanted:false,pressed:false},ctrl:{wanted:false,pressed:false},alt:{wanted:false,pressed:false},meta:{wanted:false,pressed:false}};f=f||window.event;var g;if(f.target)g=f.target;else if(f.srcElement)g=f.srcElement;if(g.nodeType==3)g=g.parentNode;if(!(g.tagName=="INPUT"||g.tagName=="TEXTAREA")){g=$m.get_keycode(f);var h=String.fromCharCode(g).toLowerCase();if(g==188)h=",";if(g==190)h=".";var i=a.split("+"),j=0;if(f.ctrlKey)$m.shortcut.modifiers.ctrl.pressed=true;if(f.shiftKey)$m.shortcut.modifiers.shift.pressed=
true;if(f.altKey)$m.shortcut.modifiers.alt.pressed=true;if(f.metaKey)$m.shortcut.modifiers.meta.pressed=true;for(var l=0;k=i[l],l<i.length;l++)if(k=="ctrl"||k=="control"){$m.shortcut.modifiers.ctrl.wanted=true;j++}else if(k=="shift"){$m.shortcut.modifiers.shift.wanted=true;j++}else if(k=="alt"){$m.shortcut.modifiers.alt.wanted=true;j++}else if(k=="cmd"||k=="command"){$m.shortcut.modifiers.meta.wanted=true;j++}else if(k.length>1)$m.shortcut.special_keys[k]==g&&j++;else if(e.keycode)e.keycode==g&&j++;
else if(h==k)j++;else if($m.shortcut.shift_nums[h]&&f.shiftKey){h=$m.shortcut.shift_nums[h];h==k&&j++}if(j==i.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)===true?$m.ev(b):b(f);if(e.propagate===false){$m.stop_bubble(f);return false}}}};$m.element.attach(c,
e.type,d)}}}};$m.when_ready();$m.win.bind("load",function(){$m.execute()});

