$m.h.add_commas={name:"add_commas",data_att:"add_commas",timeout:!1,construct:function(){var a=$m.attr.get_fields_with("document",["text","textarea"],$m.data_att,this.data_att);$m.elements.bind(a,this.data_att,"keyup",this.exec);$m.elements.bind(a,this.data_att,"change",this.exec)},exec:function(a){var b=$m.id(a);clearTimeout($m.h.add_commas.timeout);if($m.is.alive(b.value)===!0)$m.h.add_commas.timeout=setTimeout(function(){b.value=$m.ut.add_commas(b.value)},750)}}; $m.h.ajax_click={name:"ajax_click",data_att:"ajax_click",construct:function(){$m.elements.bind($m.tags.all,this.data_att,"click",this.exec)},exec:function(a){var b=new $m.ajax;b.init(a);b.exec()}}; $m.h.ajax_field_submit_click={name:"ajax_field_submit_click",data_att:"ajax_field_submit_click",data_att_group:"data-mjf_afsc",allowed_fields:["text","password","file","textarea","select","radio","checkbox"],timer:!1,construct:function(){$m.elements.bind($m.tags.all,this.data_att,"click",this.exec)},exec:function(a){var b=new $m.ajax,c=$m.attr.get(a,$m.h.ajax_field_submit_click.data_att_group),d=[];b.init(a);d=$m.attr.get_fields_with($m.body_id,$m.h.ajax_field_submit_click.allowed_fields,$m.h.ajax_field_submit_click.data_att_group, c);a=0;for(c=d.length;a=$m.h.dynamic_tabs.dtabs[a].ids.length&&(b=0);$m.h.dynamic_tabs.cycle(a, b)},$m.h.dynamic_tabs.dtabs[a].delay)}}; $m.h.elastic_textareas={name:"elastic_textareas",data_att:"elastic_textareas",data_att_max_h:"data-mjf_elastic_textareas_max_height",is_resizing:!1,resize_timer:!1,construct:function(){for(var a=$m.attr.get_fields_with("document",["textarea"],$m.data_att,this.data_att),b="",c=0,d=a.length;c=37&&c<=40||c>=16&&c<=18||$m.h.elastic_textareas.exec(a)},exec:function(a){var b=$m.id(a),c=$m.attr.get(a,$m.h.elastic_textareas.exec.data_att_max_h);$m.vd.get_view_port();$m.is.alive(c)===!0?c> $m.vd.visible_page_height&&(c=$m.vd.visible_page_height-30):c=$m.vd.visible_page_height-30;b.style.height="30px";var d=b.clientHeight;if($m.is.alive(c)===!1||c>d)d=Math.max(b.scrollHeight,d),c&&(d=Math.min(c,d)),d>b.clientHeight&&$m.style.set(a,{height:d+"px"})}}; $m.h.empty_onclick={name:"empty_onclick",data_att:"empty_onclick",data_att_empty_id:"data-mjf_empty_click_id",construct:function(){$m.elements.bind($m.tags.all,this.data_att,"click",this.exec)},exec:function(a){var b=$m.is.string(a)===!0?$m.id(a):a;if($m.is.alive(b)===!0){var a=$m.attr.get(a,$m.h.empty_onclick.data_att_empty_id),c=$m.is.good_id(a);if($m.is.alive(c)===!0)$m.vd.is_mobile_touch===!0?c.innerHTML="":$m.animate.opaque(c,"down",30,function(){c.innerHTML="";c.style.opacity=1})}}}; $m.h.fire_event={name:"fire_event",data_att:"fire_event",data_att_on:"data-mjf_fe_on",data_att_exe:"data-mjf_fe_exe",data_att_id:"data-mjf_fe_id",construct:function(){for(var a=$m.attr.get_tags_with($m.tags.all,$m.data_att,this.data_att),b=0,c=a.length;b'):(autoplay_html=$m.is.alive(e)===!0&&e=="true"?"true":"false",loop_html=$m.is.alive(f)===!0||f=="true"?"true":"false",audio_html=''),$m.id(d).innerHTML=audio_html}}; $m.h.html5_video={name:"html5_video",data_att:"html5_video",data_att_play:"html5_video_play",data_att_pause:"html5_video_pause",data_att_stop:"html5_video_stop",data_att_seek:"html5_video_seek",data_att_end:"html5_video_end",uses_flash:!1,construct:function(){var a={},b=$m.attr.get_tags_with($m.tags.all,$m.data_att,this.data_att),c="",d="",e="",f;a.path="";a.poster="";a.flv="";a.mp4="";a.good_mp4=!1;a.ogg="";a.good_ogg=!1;a.webm="";a.good_webm=!1;a.color_bg="";a.color_fg="";a.dims="";a.js_callback= "";a.autoload="";a.autoplay="";a.update_id="";a.does_video=$m.media.supports.video();for(var g=0,h=b.length;g'),a.good_mp4=!0}a.ogg=$m.attr.get(b[g],"data-mjf_h5v_ogg");if($m.is.alive(a.ogg)===!0&&(i=$m.media.supports.theora(),$m.is.alive(i)===!0))f.push(''),a.good_ogg=!0;a.webm=$m.attr.get(b[g],"data-mjf_h5v_webm"); if($m.is.alive(a.webm)===!0&&(i=$m.media.supports.vorbis(),$m.is.alive(i)===!0))f.push(''),a.good_webm=!0;if(a.good_mp4===!0||a.good_ogg===!0||a.good_webm===!0){for(var c=$m.is.alive(a.video_width)===!0?'width="'+a.video_width+'"':"",e=$m.is.alive(a.video_height)===!0?'height="'+a.video_height+'"':"",c="", i=0,l=f.length;i';$m.vd.is_msie===!1&&(video_html+='');video_html+="";a.js_callback!==null&&(player_callback=function(){$m.ev.all(a.js_callback)})}else video_html='

Darn, unable to load this video.

'; return video_html},play:function(a){var b=$m.attr.get(a,"data-mjf_h5v_video_id")+"_video";setTimeout(function(){$m.h.html5_video.uses_flash===!0?$m.get_flash_object(b).play_video():$m.id(b).play()},1E3)},pause:function(a){a=$m.attr.get(a,"data-mjf_h5v_video_id")+"_video";$m.h.html5_video.uses_flash===!0?$m.get_flash_object(a).pause_video():$m.id(a).pause()},stop:function(a){a=$m.attr.get(a,"data-mjf_h5v_video_id")+"_video";$m.h.html5_video.uses_flash===!0?(a=$m.get_flash_object(a),a.stop_video()): (a=$m.id(a),a.pause(),a.currentTime=0)},seek:function(a){var b=$m.attr.get(a,"data-mjf_h5v_video_id")+"_video",a=parseFloat($m.attr.get(a,"data-mjf_h5v_seek_time"));$m.h.html5_video.uses_flash===!0?$m.get_flash_object(b).seek_video(a):$m.id(b).currentTime=a},end:function(a){a=$m.attr.get(a,"data-mjf_h5v_video_id")+"_video";$m.h.html5_video.uses_flash===!0?(a=$m.get_flash_object(a),a.end_video()):(a=$m.id(a),a.currentTime=a.duration)}}; $m.h.img_rollovers={name:"img_rollovers",data_att:"img_rollovers",increments:15,construct:function(){if($m.vd.is_mobile_touch!==!0){for(var a="",b="",c=0,d=$m.tags.img.length;c80)c=$m.lang.core.msgs.passwords.strong,d="100";else if(b>60)c=$m.lang.core.msgs.passwords.good,d="80";else if(b>= 30)c=$m.lang.core.msgs.passwords.weak,d="30";$m.id(a+"_score_visual").innerHTML='';$m.id(a+"_score_title").innerHTML=$m.lang.core.msgs.passwords.strength+c}};$m.h.print_onclick={name:"print_onclick",data_att:"print_onclick",construct:function(){$m.elements.bind($m.tags.all,this.data_att,"click",this.exec)},exec:function(a){window.print&&window.print();$m.tag.get_name(a)=="a"&&$m.id(a).blur()}}; $m.h.print_onload={name:"print_onload",data_att:"print_onload",construct:function(){window.print&&window.print()}}; $m.h.remove_onclick={name:"remove_onclick",data_att:"remove_onclick",data_att_remove_id:"data-mjf_remove_click_id",construct:function(){$m.elements.bind($m.tags.all,this.data_att,"click",this.exec)},exec:function(a){var b=$m.is.string(a)===!0?$m.id(a):a;if($m.is.alive(b)===!0){var c=$m.attr.get(a,$m.h.remove_onclick.data_att_remove_id);$m.vd.is_mobile_touch===!0?$m.tag.remove(c):$m.animate.opaque(c,"down",30,function(){$m.tag.remove(c)})}}}; $m.h.same_height={name:"same_height",data_att:"same_height",data_att_kids:"same_height_child",construct:function(a){a=$m.is.number(a)===!0?a*1E3:1;setTimeout(function(){$m.h.same_height.exec()},a)},exec:function(){for(var a=$m.attr.get_tags_with($m.tags.all,$m.data_att,this.data_att),b=[],c=[],d=0,e=0,f=a.length;ed)d= c[g].offsetHeight;g=0;for(h=c.length;g