';b+='Timestamp | '+($m.is.alive($m.geo.pos.timestamp)?$m.geo.pos.timestamp:"—")+" |
";
b+='Latitude | '+($m.is.alive($m.geo.pos.coords.latitude)?$m.geo.pos.coords.latitude:"—")+" |
";b+='Longitude | '+($m.is.alive($m.geo.pos.coords.longitude)?$m.geo.pos.coords.longitude:"—")+" |
";b+='Accuracy | '+($m.is.alive($m.geo.pos.coords.accuracy)?$m.geo.pos.coords.accuracy+" meters":"—")+" |
";b+='Altitude | '+($m.is.alive($m.geo.pos.coords.altitude)?
$m.geo.pos.coords.altitude+" meters":"—")+" |
";b+='Altitude Accuracy | '+($m.is.alive($m.geo.pos.coords.altitudeAccuracy)?$m.geo.pos.coords.altitudeAccuracy+" meters":"—")+" |
";b+='Heading | '+($m.is.alive($m.geo.pos.coords.heading)?$m.geo.pos.coords.heading+" degrees":"—")+" |
";b+='Speed | '+($m.is.alive($m.geo.pos.coords.speed)?$m.geo.pos.coords.speed+" meters per second":
"—")+" |
";b+="";$m.tag.html(a,b,"replace")}else $m.de.throw_browser_error("$m.geo.simple_content_update() $m.geo.request.update_id `"+$m.geo.request.update_id+"` does not exist.")},clear_watch:function(){$m.config.geo.debug===!0&&($m.de.add_item("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \n Executing >> $m.geo.clear_watch("+$m.geo.watch_id+")"),$m.de.add_item("$m.geo.request.keep_watching="+$m.geo.request.keep_watching));$m.geo.request.keep_watching===!1&&navigator.geolocation.clearWatch($m.geo.watch_id)}},get_flash_object:function(a){return $m.vd.is_msie===!0?window[a]:document[a]},get_form_fields:function(a,b){return $m.attr.get_fields_with(a,b)},get_keycode:function(a){var b="";if(!a)a=window.event;return b=a.keyCode?a.keyCode:a.which?a.which:!1},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)},init_children:function(a){if(a===!0)$m.ajax_init=!0;$m.document=document;$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='$m.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.config.global_debug&&$m.ajax_init&&$m.de.add_item("~ MJS re-initialized in "+((new Date).getTime()-$m.timer_ajax)/1E3+" seconds");$m.ajax_init=!1},init_xml:function(){var a=!1;try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){a=new XMLHttpRequest}}return a},
insert_link:{stylesheet:function(a){$m.head_tag.appendChild($m.tag.init("link",{rel:"stylesheet",type:"text/css",href:a}))},script:function(a,b){var c={charset:"UTF-8",type:"text/javascript"};if($m.is.alive(a)===!0)c.src=a;var d=$m.tag.init("script",c);if($m.is.alive(b)===!0)d.addEventListener?d.addEventListener("load",function(){b()},!1):d.onreadystatechange=function(){if(d.readyState in{loaded:1,complete:1})d.onreadystatechange=null,b()};$m.head_tag.appendChild(d)}},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=48&&a<=90||a>=
96&&a<=107||a>=109&&a<=111||a>=190&&a<=192||a>=219&&a<=222?!0:!1}},query_string:{create:function(a){if($m.is.alive(a)===!1)return $m.de.throw_browser_error("$m.query_string.create()===in_object `' + in_object + '` does not exist."),!1;var b=$m.is.string(a)===!0||$m.is.array(a)!==!1?$m.id(a):a;if($m.tag.get_name(b)=="form"){for(var c="",d=$m.tags.get(b,"input"),a=0,e=d.length;a","/":"?","\\":"|"},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 h=String.fromCharCode(d).toLowerCase();d==188&&(h=",");d==190&&(h=".");var i=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=i[l],l1?$m.shortcut.special_keys[k]==d&&j++:e.keycode?e.keycode==d&&j++:h==k?j++:$m.shortcut.shift_nums[h]&&c.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)===!0?$m.ev.all(b):b(c),e.propagate===!1))return $m.stop_bubble(c),!1}})}}},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,
b,c){$m.id(a);b=$m.is.alive(b)===!0?b:0;c=$m.is.alive(c)===!0?c:0;clearInterval($m.smooth_scroll.interval);$m.smooth_scroll.size=0;$m.vd.get_view_port();var d=$m.vd.scrolled_top,a=$m.position.get_xy(a);$m.smooth_scroll.pos_x=a[0]-c;$m.smooth_scroll.pos_y=a[1]-b;$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-d)/$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)}},stop_bubble:function(a){if($m.is.object(a)===!1)a=window.event;if($m.is.alive(a)===!1)return $m.de.add_item("$m.stop_bubble() --- returning false. 'in_event' is dead."),!1;a.cancelBubble=!0;a.returnValue=!1;a.stopPropagation&&(a.stopPropagation(),a.preventDefault())},storage:{name:"storage",db_magic:"magic_js.",db_wand:"wand.",construct:function(){if($m.is.alive(window.webkitIndexedDB)===!0)$m.storage.indexed_db.available=!0,$m.storage.indexed_db.init(window.webkitIndexedDB);if($m.is.alive(window.mozIndexedDB)===!0)$m.storage.indexed_db.available=!0,$m.storage.indexed_db.init(window.mozIndexedDB);if($m.is.alive(window.msIndexedDB)===!0)$m.storage.indexed_db.available=!0,$m.storage.indexed_db.init(window.msIndexedDB);if($m.is.alive(window.indexedDB)===!0)$m.storage.indexed_db.available=!0,$m.storage.indexed_db.init(window.indexedDB);if($m.is.alive(window.localStorage)===!0)$m.storage.local.available=
!0;if($m.vd.cookies_enabled===!0)$m.storage.cookies.available=!0},compare:function(a,b,c){switch(b){case "=":if(a==c)return!0;break;case "!=":if(a!=c)return!0;break;case "%":if(a.match(c))return!0;break;case ">":if(a>c)return!0;break;case ">=":if(a>=c)return!0;break;case "<":if(a]+(>|$)/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;b1?"."+b[1]:"",c=/(\d+)(\d{3})/;c.test(a);)a=a.replace(c,"$1,$2");return a+b},array_unique:function(a){if($m.is.alive(a)===!1)return!1;var b=[],c=0,d=a.length;a:for(;cdocument.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}},when_ready:function(){document.addEventListener&&document.addEventListener("DOMContentLoaded",$m.execute,!1);$m.win.bind("load",function(){$m.execute()})},win:{bind:function(a,b){var c="on"+a,d=window[c];window[c]=typeof window[c]=="function"?function(a){d(a);b(a)}:b}}};
Function.prototype.trace=function(){for(var a=[],b="",c=this,d="";c;)d=((new Date).getTime()-$m.timer)/1E3+"",d.length==3?d+="00":d.length==4&&(d+="0"),a.push(d+" | "+c.signature()),c=c.caller;a.shift();c=0;for(d=a.length;c"+a[c]+"";b+="
";return b};
Function.prototype.signature=function(){var a={name:this.getName(),params:[],toString:function(){return this.name+"("+(this.params.length>0?"'"+this.params.join("', '")+"'":"")+")"}};if(this.arguments)for(var b=0,c=this.arguments.length;b