var lagalerie={getXhr:function(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}}}return false},xhrGet:function(c){var a=c.url,d=lagalerie.getXhr(),b=true;if(!d){return false}d.onreadystatechange=function(){if(d.readyState==4){if(d.status==200||d.status==304){c.callback(d)}else{if(c.error){c.error(d)}else{alert(d.statusText)}}}};if(c.params){a+="?"+c.params}if(c.sync){b=false}d.open("GET",a,b);d.send(null);return true},xhrPost:function(b){var c=lagalerie.getXhr(),a=true;if(!c){return false}c.onreadystatechange=function(){if(c.readyState==4){if(c.status==200||c.status==304){if(b.callback){b.callback(c)}}else{if(b.error){b.error(c)}else{alert(c.statusText)}}}};if(b.sync){a=false}c.open("POST",b.url,a);c.setRequestHeader("Content-type","application/x-www-form-urlencoded");c.send(b.params);return true},parseJSon:function(a){return new Function("return "+a+";")()},addLoadEvent:function(a){var b=window.onload;if(!(b instanceof Function)){window.onload=a}else{window.onload=function(){b();a()}}},setupRollover:function(a){var b=/(.*)_off.gif/.exec(a.src);if(b){a.onmouseover=function(){this.src=b[1]+"_over.gif"};a.onmouseout=function(){this.src=b[1]+"_off.gif"}}},purgeEventHandlers:function(f){var c=f.attributes,e,b,g;if(c){b=c.length;for(e=0;e<b;e+=1){g=c[e].name;if(typeof f[g]==="function"){f[g]=null}}}c=f.childNodes;if(c){b=c.length;for(e=0;e<b;e+=1){lagalerie.purgeEventHandlers(f.childNodes[e])}}}};lagalerie.addLoadEvent(function(){var b,c,d=document.getElementsByTagName("img");for(c=0;c<d.length;++c){if(d[c].src){lagalerie.setupRollover(d[c])}}d=document.getElementsByTagName("input");for(c=0;c<d.length;++c){if(d[c].src){lagalerie.setupRollover(d[c])}}b=document.getElementById("help");if(b){b.onclick=function(){window.open(this.href,"","width=260,height=450,scrollbars=yes");return false}}});