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

vars={};
$m={h:{},vd:{},ready:false,data_att:"data-m",body_id:"magic_body",top_msg_parent:"top_msg_parent",top_msg_id:"top_msg",when_ready:function(){if(document.addEventListener)/WebKit/i.test(navigator.userAgent)||document.addEventListener("DOMContentLoaded",$m.init,false)},init:function(){$m.execute();$m.cleanup()},construct:function(a){this.config=a;this.write_css(this.config.basedir+"stylesheets/magic.css");this.vd.construct();this.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(this.ready!==true){this.ready=true;this.config.debug===true&&this.de.construct();this.check_for_body_id();this.top_msg("information","Loading...");this.init_children();this.config.debug===true&&this.exec_testing()}},
check_for_body_id:function(){var a=$m.tag("document","body")[0];a.getAttribute("id")&&a.getAttribute("id")!==""?($m.body_id=a.getAttribute("id")):a.setAttribute("id",$m.body_id)},top_msg:function(a,b){if($m.id($m.top_msg_id)===false){var c=document.createElement("div");c.setAttribute("id",$m.top_msg_parent);$m.id($m.body_id).appendChild(c);c=document.createElement("div");c.setAttribute("id",$m.top_msg_id);$m.id($m.top_msg_parent).appendChild(c)}c=$m.id($m.top_msg_id);$m.id($m.top_msg_parent);switch(a){case "hide":c.className=
"display_none";break;default:$m.vd.get_view_port();c.className="msg_box msg_"+a;c.innerHTML='<p><span style="margin-right: 5px;">'+b+'</span> &ndash; <a href="#" onclick="$m.top_msg(\'hide\'); return false;">Close</a></p>';c.style.marginRight=parseInt($m.vd.total_page_width/2)-parseInt(c.offsetWidth/2)+"px";break}return true},init_children:function(){this.tags={a:this.tag("document","a"),all:this.tag("document","*"),img:this.tag("document","img"),form:this.tag("document","form")};for(var a in vars)if(this.h[a]===
undefined){var b='vars "'+a+'" is not initialized correctly';this.de.throw_browser_error(b)}else this.h[a].construct(vars[a])},cleanup:function(){this.top_msg("hide")},write_css:function(a){var b=document.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("href",a);$m.tag("document","head")[0].appendChild(b)},write_script:function(a){var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("src",a);b.setAttribute("charset",
"UTF-8");this.tag("document","head")[0].appendChild(b)},tag:function(a,b){a=a=="document"?document:document.getElementById(a);return a.getElementsByTagName(b.toUpperCase())},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}},elements:{listeners:[],bind:function(a,b,c,d){c="on"+c;var e="",f="";f=f="";for(var g=0,h=a.length;g<h;g++){f=$m.id(a[g].getAttribute("id"));if($m.has_att(f,
$m.data_att,b)){e=f.getAttribute("id");f=f.getAttribute($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]=[];a[g][c]=$m.exec[c]}this.listeners[e][c][i]=d}}}},exec:{go:function(a,b){for(var c=0,d=$m.elements.listeners[a][b].length;c<d;c++){$m.elements.listeners[a][b][c](a);if($m.get_return(a,b)===false)return false}return true},onabort:function(){return $m.exec.go(this.getAttribute("id"),
"onabort")},onblur:function(){return $m.exec.go(this.getAttribute("id"),"onblur")},onclick:function(){return $m.exec.go(this.getAttribute("id"),"onclick")},onchange:function(){return $m.exec.go(this.getAttribute("id"),"onchange")},ondblclick:function(){return $m.exec.go(this.getAttribute("id"),"ondblclick")},onfocus:function(){return $m.exec.go(this.getAttribute("id"),"onfocus")},onkeydown:function(){return $m.exec.go(this.getAttribute("id"),"onkeydown")},onkeypress:function(){return $m.exec.go(this.getAttribute("id"),
"onkeypress")},onkeyup:function(){return $m.exec.go(this.getAttribute("id"),"onkeyup")},onload:function(){return $m.exec.go(this.getAttribute("id"),"onload")},onmousemove:function(){return $m.exec.go(this.getAttribute("id"),"onmousemove")},onmousedown:function(){return $m.exec.go(this.getAttribute("id"),"onmousedown")},onmouseover:function(){return $m.exec.go(this.getAttribute("id"),"onmouseover")},onmouseout:function(){return $m.exec.go(this.getAttribute("id"),"onmouseout")},onreset:function(){return $m.exec.go(this.getAttribute("id"),
"onreset")},onresize:function(){return $m.exec.go(this.getAttribute("id"),"onresize")},onselect:function(){return $m.exec.go(this.getAttribute("id"),"onselect")},onsubmit:function(){return $m.exec.go(this.getAttribute("id"),"onsubmit")},onunload:function(){return $m.exec.go(this.getAttribute("id"),"onunload")}}};
$m.dt={current_year:"",current_month:"",current_date:"",current_hour:"",current_minute:"",current_second:"",current_milliseconds:"",am_pm:"",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.current_milliseconds+this.am_pm}};
$m.vd={name:"visitor_data",browser:"",version:"?",version_major:"?",screen_height:"",screen_width:"",screen_depth:"",visible_page_height:"",visible_page_width:"",scrolled_left:"",scrolled_top:"",total_page_height:"",total_page_width:"",cookies_enabled:"",ua:navigator.userAgent,match_windows:"Windows",is_windows:false,match_macintosh:"Macintosh",is_macintosh:false,match_linux:"Linux",is_linux:false,match_msie:"MSIE",is_msie:false,is_msie6_or_lower:false,match_msie7:"MSIE 7",is_msie7:false,match_msie8:"MSIE 8",
is_msie8:false,match_gecko:"Gecko",is_gecko: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_camino2:"Camino/2",is_camino2:false,match_webkit:"AppleWebKit",is_webkit:false,match_safari:"Safari",is_safari:false,match_chrome:"Chrome/1",is_chrome: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((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_firefox2)){this.is_firefox2=true;this.is_gecko=false;this.browser=this.match_firefox2}if(this.ua.match(this.match_firefox3)){this.is_firefox3=true;this.is_gecko=
false;this.browser=this.match_firefox3}if(this.ua.match(this.match_firefox3_5)){this.is_firefox3=false;this.is_firefox3_5=true;this.is_gecko=false;this.browser=this.match_firefox3_5}if(this.ua.match(this.match_camino2)){this.is_camino2=true;this.is_gecko=false;this.browser=this.match_camino2}}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((a=this.ua.indexOf("MSIE"))!=
-1){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=true;this.is_msie6_or_lower=false;this.browser=this.match_msie7}if(this.ua.match(this.match_msie8)){this.is_msie8=true;this.is_msie6_or_lower=this.is_msie7=false;this.browser=this.match_msie8}}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},show_view_port:function(){if($m.id("m.vd.visible_page_height")){$m.vd.get_view_port();$m.id("m.vd.visible_page_height").innerHTML+=$m.vd.visible_page_height+", ";$m.id("document.documentElement.clientHeight").innerHTML+=document.documentElement.clientHeight+", ";$m.id("window.innerHeight").innerHTML+=window.innerHeight+", ";$m.id("self.innerHeight").innerHTML+=self.innerHeight+", ";$m.id("document.body.clientHeight").innerHTML+=
document.body.clientHeight+", ";$m.id("m.vd.total_page_height").innerHTML+=$m.vd.total_page_height+", ";$m.id("document.documentElement.scrollHeight").innerHTML+=document.documentElement.scrollHeight+", ";$m.id("document.body.scrollHeight").innerHTML+=document.body.scrollHeight+", ";$m.id("document.body.offsetHeight").innerHTML+=document.body.offsetHeight+", ";$m.id("self.screen.availHeight").innerHTML+=self.screen.availHeight+", ";$m.id("m.vd.visible_page_width").innerHTML+=$m.vd.visible_page_width+
", ";$m.id("document.documentElement.clientWidth").innerHTML+=document.documentElement.clientWidth+", ";$m.id("window.innerWidth").innerHTML+=window.innerWidth+", ";$m.id("self.innerWidth").innerHTML+=self.innerWidth+", ";$m.id("document.body.clientWidth").innerHTML+=document.body.clientWidth+", ";$m.id("m.vd.total_page_width").innerHTML+=$m.vd.total_page_width+", ";$m.id("document.documentElement.scrollWidth").innerHTML+=document.documentElement.scrollWidth+", ";$m.id("document.body.scrollWidth").innerHTML+=
document.body.scrollWidth+", ";$m.id("document.body.offsetWidth").innerHTML+=document.body.offsetWidth+", ";$m.id("self.screen.availWidth").innerHTML+=self.screen.availWidth+", ";$m.id("m.vd.scrolled_left").innerHTML+=$m.vd.scrolled_left+", ";$m.id("document.documentElement.scrollLeft").innerHTML+=document.documentElement.scrollLeft+", ";$m.id("window.pageXOffset").innerHTML+=window.pageXOffset+", ";$m.id("self.pageXOffset").innerHTML+=self.pageXOffset+", ";$m.id("document.body.scrollLeft").innerHTML+=
document.body.scrollLeft+", ";$m.id("m.vd.scrolled_top").innerHTML+=$m.vd.scrolled_top+", ";$m.id("document.documentElement.scrollTop").innerHTML+=document.documentElement.scrollTop+", ";$m.id("window.pageYOffset").innerHTML+=window.pageYOffset+", ";$m.id("self.pageYOffset").innerHTML+=self.pageYOffset+", ";$m.id("document.body.scrollTop").innerHTML+=document.body.scrollTop+", "}}};
$m.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";new_debug_window=window.open("","debug_win",a);if(new_debug_window===undefined||new_debug_window===null){setTimeout(function(){$m.top_msg("warning","Please allow pop-up windows if you'd like to use the Magic Debugger")},1);return $m.config.debug=false}this.new_document=new_debug_window.document;this.new_document_begin='<!DOCTYPE html><html><head><title>Magic Debugger</title><style type="text/css" media="screen">@import "'+
$m.config.basedir+'stylesheets/magic_debugger.css";</style></head><body>';this.new_document_content="<h1>Magic Debugger &raquo; "+$m.dt.get_date_now()+" "+$m.dt.get_time_now()+'</h1><div id="debug_box"></div>';this.new_document_content+='<p id="clear_debugger"><input type="button" value="clear" onclick="window.opener.$m.de.clear_debugger();"></p>';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&&new_debug_window.blur();this.debug_box_id=this.new_document.getElementById("debug_box")},add_item:function(a){if($m.config.debug===false)return false;this.debug_box_id.innerHTML=this.debug_box_id.innerHTML.replace(new RegExp(' id="current_line"',"gi"),"");a=a.replace(new RegExp("<","gi"),"&lt;");a=a.replace(new RegExp(">","gi"),"&gt;");a='<p id="current_line">'+$m.dt.get_time_now()+" | "+a+"</p>"+this.debug_box_id.innerHTML;this.debug_box_id.innerHTML=a},clear_debugger:function(){this.debug_box_id.innerHTML=
" ";return false},throw_browser_error:function(a){setTimeout("throw new Error('Magic: "+a+"')",0)},get_vars:function(){var a="Debugging 'vars' ~~~~~~~~~~~~~~~~~~~~ ";for(var b in vars)if($m.h[b]!==undefined)a+="vars."+b+"="+vars[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(property in b)this.add_item("Property:'"+property+"'; Type:'"+typeof b[property]+"'; Value:'"+b[property]+"' ~~~~~ ")},get_typeof: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}};$m.set_prop_to_val=function(a,b,c){a[b]=c};$m.is_string=function(a){return typeof a=="string"};$m.is_number=function(a){return typeof a=="number"};$m.is_object=function(a){return typeof a=="object"};$m.is_array=function(a){return typeof a=="object"&&a instanceof Array};
$m.is_good_string=function(a){if($m.is_string(a)===false){$m.de.add_item(a+" isn't a string");return false}if(a===undefined){$m.de.add_item(a+" is undefined");return false}if(a===null){$m.de.add_item(a+" is null");return false}if(a.length<=0){$m.de.add_item(a+" length <= zero");return false}return true};
$m.is_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};$m.is_set=function(a){return a===""||a===undefined||a==null?false:true};$m.array_unique=function(a){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};
$m.obj_merge=function(a,b){for(var c in b)try{b[c].constructor==Object?(a[c]=$m.obj_merge(a[c],b[c])):(a[c]=b[c])}catch(d){a[c]=b[c]}return a};$m.get_pos_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};$m.get_pos_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};
$m.id=function(a){if($m.is_object(a)===true)return a;if(a=="")return false;else if(document.getElementById(a)===undefined){$m.de.add_item('document.getElementById("'+a+'") === undefined');return false}else if(document.getElementById(a)===null){$m.de.add_item('document.getElementById("'+a+'") === null');return false}else return document.getElementById(a)};
$m.add_class=function(a,b){var c=$m.id(a);if(c===null){$m.de.add_item("$m.add_class() returning false; in_id == "+a);return false}c.className=c.className+" "+b};$m.remove_class=function(a,b){var c=$m.id(a);if(c===null){$m.de.add_item("$m.remove_class() returning false; in_id == "+a);return false}c.className=c.className.replace(new RegExp(" ?"+b,"gi"),"")};$m.replace_class=function(a,b,c){$m.remove_class(a,b);$m.add_class(a,c)};$m.has_class=function(a,b){return $m.id(a).className.match(b)?true:false};
$m.has_att=function(a,b,c){if(a=="")return false;return a!==null&&a.getAttribute("id")&&a.getAttribute(b)&&a.getAttribute(b).match(c)?true:false};$m.get_tags_with_att=function(a,b,c){for(var d=[],e=0,f=a.length;e<f;e++)$m.has_att(a[e],b,c)&&d.push(a[e]);return d};
$m.get_fields_with_att=function(a,b,c,d){var e=[],f="textarea",g="select",h=["button","checkbox","file","password","radio","submit","text"];if($m.is_in_array(b,h)!==false){var i=$m.id(a).getElementsByTagName("INPUT");h=0;for(var j=i.length;h<j;h++)for(var k in b)i[h].type==b[k]&&$m.has_att(i[h],c,d)&&e.push(i[h])}if($m.is_in_array(b,f)!==false){f=$m.id(a).getElementsByTagName("TEXTAREA");h=0;for(k=f.length;h<k;h++)$m.has_att(f[h],c,d)&&e.push(f[h])}if($m.is_in_array(b,g)!==false){a=$m.id(a).getElementsByTagName("SELECT");
h=0;for(b=a.length;h<b;h++)$m.has_att(a[h],c,d)&&e.push(a[h])}return e};
$m.cookies={set:function(a,b,c,d){if($m.vd.cookies_enabled===true){a=escape(a)+"="+escape(b);if($m.is_set(c))a+=";path="+c;if($m.is_set(d)){c=new Date;c.setTime(c.getTime()+d*86400000);a+=";expires="+c.toGMTString()}document.cookie=a;return true}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 c[1]}return false},remove:function(a){$m.cookies.set(a,"","",-1)}};
$m.set_return=function(a,b,c){a=$m.id(a);if(a===false)return false;else a.setAttribute("data-on"+b,c)};$m.get_return=function(a,b){a=$m.id(a);if(a===false)return false;else{data_handler=a.getAttribute("data-"+b);return returning=data_handler==="true"?true:false}};$m.ev=function(a){return eval(a)};
$m.h.img_rollovers={name:"img_rollovers",data_att:"img_rollovers",construct:function(){for(var a=0,b=$m.tags.img.length;a<b;a++)if($m.has_att($m.tags.img[a],$m.data_att,this.data_att)){var c=$m.id($m.tags.img[a]),d=new Image;d.src=c.getAttribute("data-img_on");c.setAttribute("data-img_off",$m.tags.img[a].src)}$m.elements.bind($m.tags.img,this.data_att,"mouseover",this.do_rollover);$m.elements.bind($m.tags.img,this.data_att,"mouseout",this.undo_rollover)},do_rollover:function(a){a=$m.id(a);a.src=a.getAttribute("data-img_on")},
undo_rollover:function(a){a=$m.id(a);a.src=a.getAttribute("data-img_off")}};$m.h.confirm_click={name:"confirm_click",data_att:"confirm_click",construct:function(){$m.elements.bind($m.tags.all,this.data_att,"click",this.exec)},exec:function(a){confirm($m.id(a).title)?$m.set_return(a,"click","true"):$m.set_return(a,"click","false")}};
$m.h.open_new_win={name:"open_new_win",data_att:"open_new_win",construct:function(){for(var a=$m.get_tags_with_att($m.tags.all,$m.data_att,this.data_att),b=0,c=a.length;b<c;b++)$m.add_class(a[b].id,this.data_att);$m.elements.bind(a,this.data_att,"click",this.exec)},exec:function(a){var b=$m.id(a),c="new_win_"+a,d=b.getAttribute("data-win_dim");b=b.getAttribute("href");if(d=="normal")window.open(b,c);else{d=d.split("x");d="toolbar=no,location=no,resizable=yes,scrollbars=yes,menubar=no,width="+d[0]+
",height="+d[1];window.open(b,c,d)}$m.set_return(a,"click","false")}};
$m.h.tool_tip={name:"tool_tip",data_att:"tool_tip",data_att_cont:"data-tt_id",all:[],css:{all:"tool_tip_cont",on:"tool_tip_cont_on"},timeout:"",construct:function(){for(var a=$m.get_tags_with_att($m.tags.all,$m.data_att,this.data_att),b="",c=0,d=a.length;c<d;c++){b=a[c].getAttribute(this.data_att_cont);this.all.push(b);$m.add_class(b,this.css.all)}$m.elements.bind(a,this.data_att,"mouseover",this.show_tip);$m.elements.bind(a,this.data_att,"mouseout",this.hide_tip)},show_tip:function(a){clearTimeout($m.h.tool_tip.timeout);
for(var b=0,c=$m.h.tool_tip.all.length;b<c;b++)$m.remove_class($m.h.tool_tip.all[b],$m.h.tool_tip.css.on);$m.add_class($m.id(a).getAttribute($m.h.tool_tip.data_att_cont),$m.h.tool_tip.css.on)},hide_tip:function(a){$m.h.tool_tip.timeout=setTimeout(function(){$m.remove_class($m.id(a).getAttribute($m.h.tool_tip.data_att_cont),$m.h.tool_tip.css.on)},1000)}};
$m.h.light_switch={name:"light_switch",data_att:"light_switch",css:{block:"lightswitch_block",none:"lightswitch_none"},construct:function(){for(var a=$m.get_tags_with_att($m.tags.all,$m.data_att,this.data_att),b="",c="",d=0,e=a.length;d<e;d++){b=$m.id(a[d].id);c=b.getAttribute("data-ls_state");content_id=b.getAttribute("data-lightswitch_id");if(c=="block"){$m.add_class(a[d].id,this.css.block);$m.add_class(content_id,"display_block")}else{$m.add_class(a[d].id,this.css.none);$m.add_class(content_id,
"display_none")}}$m.elements.bind(a,this.data_att,"click",this.exec)},exec:function(a){var b=$m.id(a),c=b.getAttribute("data-ls_state"),d=b.getAttribute("data-lightswitch_id");if(c=="block"){b.setAttribute("data-ls_state","none");$m.replace_class(a,$m.h.light_switch.css.block,$m.h.light_switch.css.none);$m.replace_class(d,"display_block","display_none")}else{b.setAttribute("data-ls_state","block");$m.replace_class(a,$m.h.light_switch.css.none,$m.h.light_switch.css.block);$m.replace_class(d,"display_none",
"display_block")}$m.h.animations.opaque.exec(d,"none","fast");$m.get_return(b,"click")===true?$m.set_return(a,"click","true"):$m.set_return(a,"click","false")}};
$m.h.dynamic_tabs={name:"dynamic_tabs",data_att:"dynamic_tabs",dtab_anchors:[],dtab_groups:[],construct:function(a){var b=[],c=a.split("|"),d="";a="";var e=$m.cookies.get("dtab");d=0;for(c=c.length;d<c;d++)for(var f=0,g=$m.tags.a.length;f<g;f++)if($m.has_att($m.tags.a[f],$m.data_att,this.data_att)&&$m.tags.a[f].getAttribute("data-dtab-set")){a=$m.tags.a[f].getAttribute("data-dtab-set");if($m.is_array(this.dtab_anchors[a])!==true)this.dtab_anchors[a]=[];this.dtab_anchors[a].push($m.tags.a[f].id);b.push($m.tags.a[f])}$m.elements.bind(b,
this.data_att,"click",this.exec);b=0;for(c=$m.tags.all.length;b<c;b++)if(!$m.has_att($m.tags.all[b],$m.data_att,this.data_att))if($m.tags.all[b].getAttribute("id")&&$m.tags.all[b].getAttribute("data-dtab-set")){d=$m.tags.all[b].getAttribute("id");$m.has_class(d,"display_block")===false&&$m.add_class(d,"display_none");a=$m.tags.all[b].getAttribute("data-dtab-set");if($m.is_array(this.dtab_groups[a])!==true)this.dtab_groups[a]=[];this.dtab_groups[a].push(d)}if($m.is_good_string(window.location.hash)){this.exec(window.location.hash.replace(/^#/,
""));window.location="#"}else e!==false&&$m.id(e)&&this.exec(e)},exec:function(a){var b=$m.id(a),c="";if(b.getAttribute("data-dtab-set")){var d=b.getAttribute("data-dtab-set"),e=0;for(c=$m.h.dynamic_tabs.dtab_anchors[d].length;e<c;e++)$m.remove_class($m.h.dynamic_tabs.dtab_anchors[d][e],"tab_link_active");$m.add_class(b,"tab_link_active");b.blur();e=0;for(var f=$m.h.dynamic_tabs.dtab_groups[d].length;e<f;e++){c=$m.h.dynamic_tabs.dtab_groups[d][e];$m.has_class(c,"display_none")===false&&$m.add_class(c,
"display_none");$m.remove_class(c,"display_block")}d=a.split(".");$m.h.animations.opaque.exec(d[0],"none","fast");$m.replace_class(d[0],"display_none","display_block")}$m.cookies.set("dtab",a,"",30);$m.get_return(b,"click")===true?$m.set_return(a,"click","true"):$m.set_return(a,"click","false")}};
$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.get_return(a,"click")===true?$m.set_return(a,"click","true"):$m.set_return(a,"click","false")}};$m.h.print_onload={name:"print_onload",data_att:"print_onload",construct:function(){window.print&&window.print()}};
$m.h.darkroom={name:"darkroom",data_att:"darkroom",data_att_content:"data-dr_id",data_att_cancel:"darkroom_cancel",dr_contents:[],css:{all:"dr_content",current:"dr_content_current"},buffer:60,buffer_top:20,construct:function(){for(var a=[],b=0,c=$m.tags.a.length;b<c;b++)if($m.has_att($m.tags.a[b],$m.data_att,this.data_att)&&$m.tags.a[b].getAttribute(this.data_att_content)){var d=$m.tags.a[b].getAttribute(this.data_att_content),e=$m.id(d);$m.add_class(e,this.css.all);e.style.position="absolute";e.setAttribute("data-dr_height",
e.offsetHeight);e.setAttribute("data-dr_width",e.offsetWidth);$m.add_class(e,"display_none");this.insert_cancel_img(d);this.dr_contents.push(d);a.push($m.tags.a[b])}$m.elements.bind(a,this.data_att,"click",this.exec);$m.elements.bind($m.tags.img,this.data_att_cancel,"click",this.hide)},exec:function(a){for(var b=0,c=$m.h.darkroom.dr_contents.length;b<c;b++){$m.remove_class($m.h.darkroom.dr_contents[b],$m.h.darkroom.css.current);$m.has_class($m.h.darkroom.dr_contents[b],"display_none")===false&&$m.add_class($m.h.darkroom.dr_contents[b],
"display_none");$m.remove_class($m.h.darkroom.dr_contents[b],"display_block")}b=$m.id(a);b=$m.id(b.getAttribute($m.h.darkroom.data_att_content));c=parseInt(b.getAttribute("data-dr_height"));var d=parseInt(b.getAttribute("data-dr_width"));$m.vd.get_view_port();b.style.top=$m.vd.visible_page_height>=c+$m.h.darkroom.buffer_top?parseInt($m.vd.visible_page_height/2)-parseInt(c/2)+($m.vd.scrolled_top-40)+"px":$m.h.darkroom.buffer_top+$m.vd.scrolled_top+"px";if($m.vd.total_page_width>=d+$m.h.darkroom.buffer){b.style.left=
parseInt($m.vd.total_page_width/2)-parseInt(d/2)+"px";b.style.width=d+"px"}else{b.style.left=$m.h.darkroom.buffer+"px";b.style.width=$m.vd.total_page_width-$m.h.darkroom.buffer*2-10+"px"}$m.add_class(b,$m.h.darkroom.css.current);$m.h.animations.opaque.exec(b,"none","fast");$m.replace_class(b,"display_none","display_block");$m.get_return(a,"click")===true?$m.set_return(a,"click","true"):$m.set_return(a,"click","false")},insert_cancel_img:function(a){var b=$m.id(a),c=document.createElement("img"),d=
"cursor: pointer; ";$m.vd.is_msie===true?(d+="float: right; margin: -3px -3px auto auto"):(d+="position: absolute; left: -14px; top: -14px;");c.setAttribute("src",$m.config.basedir+"images/icons/icon_cancel.png");c.setAttribute("alt","Cancel");c.setAttribute("title","Close");c.setAttribute("data-m",$m.h.darkroom.data_att_cancel);c.setAttribute("id",a+".close_img");c.style.cssText=d;b.insertBefore(c,b.firstChild)},hide:function(a){a=a.split(".")[0];$m.remove_class(a,$m.h.darkroom.css.current);$m.replace_class(a,
"display_block","display_none")}};
$m.h.form_required={name:"form_required",data_att:"form_required",required_att:"field_required",valid_forms:[],construct:function(){for(var a=$m.get_tags_with_att($m.tags.form,$m.data_att,this.data_att),b=0,c=a.length;b<c;b++){var d=$m.id(a[b]),e=[],f=[];d.setAttribute("name",d.id);e=$m.get_fields_with_att(a[b],["radio","checkbox"],$m.data_att,this.required_att);for(var g=0,h=e.length;g<h;g++)f.push(e[g].name);this.valid_forms[d.id]={required_simple:$m.get_fields_with_att(a[b],["text","password",
"textarea","file"],$m.data_att,this.required_att),required_selects:$m.get_fields_with_att(a[b],["select"],$m.data_att,this.required_att),required_options:$m.array_unique(f)}}$m.elements.bind($m.tags.form,this.data_att,"submit",this.exec)},exec:function(a){var b=true,c=$m.id(a),d=$m.h.form_required.valid_forms[a].required_simple;for(field in d){$m.remove_class(d[field].parentNode,"field_error");if(d[field].type!="file")d[field].value=d[field].value.replace(/^\s+|\s+$/g,"");if(d[field].value==""||d[field].value==
null){$m.add_class(d[field].parentNode,"field_error");b=false}}d=$m.h.form_required.valid_forms[a].required_selects;for(field in d){$m.remove_class(d[field].parentNode,"field_error");if(d[field].selectedIndex==0||d[field].value===""){$m.add_class(d[field].parentNode,"field_error");b=false}}d=$m.h.form_required.valid_forms[a].required_options;for(field in d){for(var e=$m.ev("document."+c.name+"."+d[field]),f=0,g=0,h=e.length;g<h;g++)e[g].checked===true&&f++;e=$m.id(c[d[field]][0].id);if(f==0){$m.add_class(e.parentNode,
"field_error");b=false}else $m.remove_class(e.parentNode,"field_error")}b===true?$m.set_return(a,"submit","true"):$m.set_return(a,"submit","false")}};
$m.h.check_all_boxes={name:"check_all_boxes",data_att:"check_all_boxes",checkall_att:"data-checkall",construct:function(){for(var a=[],b=[],c=0,d=$m.tags.form.length;c<d;c++){a=$m.get_fields_with_att($m.tags.form[c],["checkbox"],$m.data_att,this.data_att);b=b.concat(a)}$m.elements.bind(b,this.data_att,"click",this.exec)},exec:function(a){var b=$m.id(a),c=[],d=[];b=b.checked===true?true:false;for(var e=0,f=$m.tags.form.length;e<f;e++){c=$m.get_fields_with_att($m.tags.form[e],["checkbox"],$m.h.check_all_boxes.checkall_att,
a);d=d.concat(c)}e=0;for(c=d.length;e<c;e++)if(d[e].disabled===false)d[e].checked=b;$m.set_return(a,"click","true")}};
$m.h.clear_onfocus={name:"clear_onfocus",data_att:"clear_onfocus",construct:function(){for(var a=[],b=[],c=0,d=$m.tags.form.length;c<d;c++){a=$m.get_fields_with_att($m.tags.form[c],["text","password","textarea"],$m.data_att,this.data_att);b=b.concat(a)}$m.elements.bind(b,this.data_att,"focus",this.do_focus);$m.elements.bind(b,this.data_att,"blur",this.do_blur)},do_blur:function(a){a=$m.id(a);if(a.value==="")a.value=a.defaultValue},do_focus:function(a){a=$m.id(a);if(a.defaultValue==a.value)a.value=
""}};$m.h.clear_onload={name:"clear_onload",data_att:"clear_onload",construct:function(){for(var a=[],b=[],c=0,d=$m.tags.form.length;c<d;c++){a=$m.get_fields_with_att($m.tags.form[c],["text","password","textarea"],$m.data_att,this.data_att);b=b.concat(a)}a=0;for(c=b.length;a<c;a++)b[a].value=""}};
$m.h.check_other_onfocus={name:"check_other_onfocus",data_att:"check_other_onfocus",check_other_onfocus_id_att:"data-check_other_onfocus_id",construct:function(){for(var a=[],b=[],c=0,d=$m.tags.form.length;c<d;c++){a=$m.get_fields_with_att($m.tags.form[c],["text","password","textarea","file","select"],$m.data_att,this.data_att);b=b.concat(a)}$m.elements.bind(b,this.data_att,"focus",this.exec)},exec:function(a){var b=$m.id(a).getAttribute($m.h.check_other_onfocus.check_other_onfocus_id_att);if($m.is_good_string(b))$m.id(b).checked=
true;$m.set_return(a,"click","true")}};
$m.h.animations={name:"animations",data_att:"",construct:function(a){a=a.split("|");for(var b=0,c=a.length;b<c;b++)if($m.h.animations[a[b]]===undefined){var d='Animation "'+a[b]+'" is not initialized correctly';$m.de.throw_browser_error(d)}else $m.h.animations[a[b]].construct()},ecy:{name:"ecy",data_att:"animate_ecy",speed:{slow:80,medium:45,fast:0},amt:10,css:{expand:"aecy_expand",collapse:"aecy_collapse",expand_c:"aecy_expand_content",collapse_c:"aecy_collapse_content"},is_sliding:false,construct:function(){for(var a=
"",b="",c=$m.get_tags_with_att($m.tags.all,$m.data_att,this.data_att),d=0,e=c.length;d<e;d++){a=$m.id(c[d].id);b=$m.id(a.getAttribute("data-aecy_id"));b.setAttribute("data-aecy_oh",b.offsetHeight);if(a.getAttribute("data-aecy_state")=="contracted"){$m.add_class(a,$m.h.animations.ecy.css.expand);$m.add_class(b,$m.h.animations.ecy.css.expand_c);b.setAttribute("data-aecy_nh",0)}else{$m.add_class(a,$m.h.animations.ecy.css.collapse);$m.add_class(b,$m.h.animations.ecy.css.collapse_c);b.setAttribute("data-aecy_nh",
b.offsetHeight)}b.style.height=b.offsetHeight+"px"}$m.elements.bind($m.tags.all,this.data_att,"click",this.exec)},assign:function(){},exec:function(a){var b=$m.id(a),c=$m.id(b.getAttribute("data-aecy_id")),d="";clearTimeout(c.getAttribute("data-aecy_timeout"));$m.h.animations.ecy.is_sliding=true;switch(b.getAttribute("data-aecy_speed")){case "slow":d=$m.h.animations.ecy.speed.slow;break;case "medium":d=$m.h.animations.ecy.speed.medium;break;case "fast":default:d=$m.h.animations.ecy.speed.fast;break}if(b.getAttribute("data-aecy_state")==
"expanded"){$m.h.animations.ecy.go(c,"up",d);b.setAttribute("data-aecy_state","contracted");$m.replace_class(b,$m.h.animations.ecy.css.collapse,$m.h.animations.ecy.css.expand)}else{$m.replace_class(c,$m.h.animations.ecy.css.expand_c,$m.h.animations.ecy.css.collapse_c);$m.h.animations.ecy.go(c,"down",d);b.setAttribute("data-aecy_state","expanded");$m.replace_class(b,$m.h.animations.ecy.css.expand,$m.h.animations.ecy.css.collapse)}$m.get_return(a,"click")===true?$m.set_return(a,"click","true"):$m.set_return(a,
"click","false")},go:function(a,b,c){var d=$m.id(a),e=parseInt(d.getAttribute("data-aecy_oh")),f=parseInt(d.getAttribute("data-aecy_nh")),g=0;if($m.h.animations.ecy.is_sliding==true)if(b=="down")if(f<e){g=f+$m.h.animations.ecy.amt;d.style.height=g+"px";d.setAttribute("data-aecy_nh",g);id_timeout=setTimeout(function(){$m.h.animations.ecy.go(a,b,c)},c);d.setAttribute("data-aecy_timeout",id_timeout)}else{$m.h.animations.ecy.is_sliding=false;d.style.height=e+"px"}else if(f>g){g=f-$m.h.animations.ecy.amt;
if(g>=0)d.style.height=g+"px";d.setAttribute("data-aecy_nh",g);id_timeout=setTimeout(function(){$m.h.animations.ecy.go(a,b,c)},c);d.setAttribute("data-aecy_timeout",id_timeout)}else{$m.h.animations.ecy.is_sliding=false;d.style.height=e+"px";$m.replace_class(d,$m.h.animations.ecy.css.collapse_c,$m.h.animations.ecy.css.expand_c)}}},opaque:{name:"opaque",data_att:"opaque",speed:{slow:80,medium:45,fast:0},amt:5,exec:function(a,b,c){a=$m.id(a);if($m.vd.is_msie)a.style.zoom=1;switch(c){case "slow":go_speed=
$m.h.animations.opaque.speed.slow;break;case "medium":go_speed=$m.h.animations.opaque.speed.medium;break;case "fast":default:go_speed=$m.h.animations.opaque.speed.fast;break}if(b=="full"){a.setAttribute("data-so_timer",100);$m.h.animations.opaque.set(a,100);$m.h.animations.opaque.go(a,"down",go_speed)}else{a.setAttribute("data-so_timer",0);$m.h.animations.opaque.set(a,0);$m.h.animations.opaque.go(a,"up",go_speed)}},go:function(a,b,c){var d=parseInt(a.getAttribute("data-so_timer"));if(b=="down")if(d>
0){$m.h.animations.opaque.set(a,d);setTimeout(function(){$m.h.animations.opaque.go(a,b,c)},c);d-=$m.h.animations.opaque.amt}else $m.h.animations.opaque.set(a,0);else if(d<100){$m.h.animations.opaque.set(a,d);setTimeout(function(){$m.h.animations.opaque.go(a,b,c)},c);d+=$m.h.animations.opaque.amt}else $m.h.animations.opaque.set(a,100);a.setAttribute("data-so_timer",d)},set:function(a,b){a.style.opacity=b/100;a.style.filter="alpha(opacity="+b+")"}}};
$m.h.ajax={name:"ajax",debug:"low",ao:false,throbber_html:'<div style="text-align: center;"><img src="../images/throbber.gif" alt="Please wait...">',request:{element_id:"",update_id:"",aj_callback:"'",response_text:"",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!"]},construct:function(a){$m.h.ajax.xml_request_init();a=a.split("|");for(var b=0,c=a.length;b<c;b++)if($m.h.ajax[a[b]]===undefined){var d='AJAX "'+a[b]+'" is not initialized correctly';$m.de.throw_browser_error(d)}else $m.h.ajax[a[b]].construct()},xml_request_init:function(){try{$m.h.ajax.ao=new ActiveXObject("Msxml2.XMLHTTP")}catch(a){try{$m.h.ajax.ao=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){$m.h.ajax.ao=new XMLHttpRequest}}},
init_settings:function(a){return a={method:a.getAttribute("data-aj_click_method")?a.getAttribute("data-aj_click_method"):"get",url:a.getAttribute("data-aj_click_url"),query:a.getAttribute("data-aj_click_query")?a.getAttribute("data-aj_click_query"):"",update_id:a.getAttribute("data-aj_update_id"),callback_success:a.getAttribute("data-aj_call_on_success")?a.getAttribute("data-aj_call_on_success"):"$m.h.ajax.simple_content_update()",callback_fail:a.getAttribute("data-aj_call_on_fail")?a.getAttribute("data-aj_call_on_fail"):
"$m.h.ajax.request_failed()"}},do_request:function(a){$m.h.ajax.debug=="high"&&$m.de.add_item("Executing >> $m.h.ajax.do_request("+a.method+","+a.url+","+a.query+","+a.update_id+")");var b=encodeURI(a.query)+"&aj_call="+(new Date).getTime();$m.h.ajax.xml_request_init();if($m.h.ajax.ao){$m.h.ajax.request.update_id=a.update_id;$m.h.ajax.request.callback=a.callback_success;$m.h.ajax.ao.onreadystatechange=$m.h.ajax.aj_return;switch(a.method){case "get":$m.h.ajax.ao.open("GET",a.url+"?"+b,true);$m.h.ajax.debug==
"low"&&$m.de.add_item('$m.h.ajax.ao.open("GET", '+a.url+"?"+b+", true)");$m.h.ajax.ao.send(null);break;case "post":$m.h.ajax.ao.open("POST",a.url,true);$m.h.ajax.debug=="low"&&$m.de.add_item('$m.h.ajax.ao.open("POST", '+a.url+", true)");$m.h.ajax.ao.setRequestHeader("Content-type","application/x-www-form-urlencoded");$m.h.ajax.ao.setRequestHeader("Content-length",b.length);$m.h.ajax.ao.setRequestHeader("Connection","close");$m.h.ajax.ao.send(b)}return true}else return false},aj_return:function(){switch($m.h.ajax.ao.readyState){case 0:$m.h.ajax.debug==
"high"&&$m.de.add_item("$m.h.ajax.ao.readyState = "+$m.h.ajax.request.rs_msg[0]);break;case 1:$m.h.ajax.debug=="high"&&$m.de.add_item("$m.h.ajax.ao.readyState = "+$m.h.ajax.request.rs_msg[1]);break;case 2:$m.h.ajax.debug=="high"&&$m.de.add_item("$m.h.ajax.ao.readyState = "+$m.h.ajax.request.rs_msg[2]);break;case 3:$m.h.ajax.debug=="high"&&$m.de.add_item("$m.h.ajax.ao.readyState = "+$m.h.ajax.request.rs_msg[3]);break;case 4:$m.h.ajax.debug=="high"&&$m.de.add_item("$m.h.ajax.ao.readyState = "+$m.h.ajax.request.rs_msg[4]);
if($m.h.ajax.ao.status==200||window.location.href.indexOf("http")==-1){$m.h.ajax.request.response_text=$m.h.ajax.ao.responseText==0?$m.h.ajax.request.waiting_msg:$m.h.ajax.ao.responseText;$m.ev($m.h.ajax.request.callback)}else $m.h.ajax.request_failed();break}},aj_click:{name:"aj_click",data_att:"aj_click",construct:function(){$m.elements.bind($m.tags.all,this.data_att,"click",this.exec)},exec:function(a){$m.h.ajax.debug=="high"&&$m.de.add_item("$m.h.ajax.aj_click.exec in_id = "+a);var b=$m.id(a);
b=$m.h.ajax.init_settings(b);$m.h.ajax.request.element_id=a;$m.h.ajax.load_spinner(b.update_id);if($m.h.ajax.do_request(b)===false){$m.set_return(a,"click","false");$m.ev(b.callback_fail)}else $m.get_return(a,"click")===true?$m.set_return(a,"click","true"):$m.set_return(a,"click","false")}},aj_change:{name:"aj_change",data_att:"aj_change",construct:function(){$m.elements.bind($m.tags.all,this.data_att,"change",this.exec)},exec:function(a){var b=$m.id(a);b=$m.h.ajax.init_settings(b);$m.h.ajax.request.element_id=
a;$m.h.ajax.load_spinner(b.update_id);if($m.h.ajax.do_request(b)===false){$m.set_return(a,"change","false");$m.ev(b.callback_fail)}else $m.set_return(a,"change","true")}},aj_submit:{name:"aj_submit",data_att:"aj_submit",construct:function(){$m.elements.bind($m.tags.form,this.data_att,"submit",this.exec)},exec:function(a){var b=$m.id(a),c=$m.h.ajax.init_settings(b),d="";$m.h.ajax.request.element_id=a;$m.h.ajax.load_spinner(c.update_id);for(var e=b.getElementsByTagName("INPUT"),f=0,g=e.length;f<g;f++){if(e[f].type==
"radio"||e[f].type=="checkbox")if(e[f].checked===true)d+="&"+e[f].name+"="+e[f].value;d+="&"+e[f].name+"="+e[f].value}e=b.getElementsByTagName("TEXTAREA");f=0;for(g=e.length;f<g;f++)e[f].value==""||e[f].value==null||(d+="&"+e[f].name+"="+e[f].value);e=b.getElementsByTagName("SELECT");f=0;for(g=e.length;f<g;f++)for(var h=0,i=e[f].length;h<i;h++)if(e[f][h].selected===true)d+="&"+e[f].name+"="+e[f][h].value;c.url=b.getAttribute("action");c.method=b.getAttribute("method");c.query=d;$m.h.ajax.do_request(c)===
false&&$m.ev(c.callback_fail);$m.set_return(a,"submit","false")}},load_spinner:function(a){$m.id(a).innerHTML=$m.h.ajax.throbber_html},simple_content_update:function(){for(var a=$m.id($m.h.ajax.request.update_id),b=$m.h.ajax.ao.responseText,c;b.match(/(<script[^>]+javascript[^>]+>\s*(<!--)?)/i);){b=b.substr(b.indexOf(RegExp.$1)+RegExp.$1.length);if(!(endscript=b.match(/((--\>)?\s*<\/script>)/)))break;c=b.substr(0,b.indexOf(RegExp.$1));b=b.substring(c.length+RegExp.$1.length);var d=document.createElement("script");
d.setAttribute("type","text/javascript");d.text=c;$m.tag("document","head")[0].appendChild(d)}if($m.h.ajax.debug=="high"){$m.de.add_item("$m.h.ajax.request.update_id = "+$m.h.ajax.request.update_id);$m.de.add_item("$m.h.ajax.ao.responseText = "+$m.h.ajax.ao.responseText)}a.innerHTML=$m.h.ajax.ao.responseText;$m.h.animations.opaque.exec($m.h.ajax.request.update_id,"none","medium");$m.init_children();$m.cleanup()},request_failed:function(){$m.id($m.h.ajax.request.update_id).innerHTML=$m.h.ajax.request.failed_msg;
$m.h.animations.opaque.exec($m.h.ajax.request.update_id,"none","fast")}};$m.exec_testing=function(){};$m.when_ready();$m.win.bind("load",function(){$m.init()});
