var domLib_userAgent=navigator.userAgent.toLowerCase();
var domLib_isMac=navigator.appVersion.indexOf("Mac")!=-1;
var domLib_isWin=domLib_userAgent.indexOf("windows")!=-1;
var domLib_isOpera=domLib_userAgent.indexOf("opera")!=-1;
var domLib_isOpera7up=domLib_userAgent.match(/opera.(7|8)/i);
var domLib_isSafari=domLib_userAgent.indexOf("safari")!=-1;
var domLib_isKonq=domLib_userAgent.indexOf("konqueror")!=-1;
var domLib_isKHTML=(domLib_isKonq||domLib_isSafari||domLib_userAgent.indexOf("khtml")!=-1);
var domLib_isIE=(!domLib_isKHTML&&!domLib_isOpera&&(domLib_userAgent.indexOf("msie 5")!=-1||domLib_userAgent.indexOf("msie 6")!=-1||domLib_userAgent.indexOf("msie 7")!=-1));
var domLib_isIE5up=domLib_isIE;
var domLib_isIE50=(domLib_isIE&&domLib_userAgent.indexOf("msie 5.0")!=-1);
var domLib_isIE55=(domLib_isIE&&domLib_userAgent.indexOf("msie 5.5")!=-1);
var domLib_isIE5=(domLib_isIE50||domLib_isIE55);
var domLib_isGecko=domLib_userAgent.indexOf("gecko/")!=-1;
var domLib_isMacIE=(domLib_isIE&&domLib_isMac);
var domLib_isIE55up=domLib_isIE5up&&!domLib_isIE50&&!domLib_isMacIE;
var domLib_isIE6up=domLib_isIE55up&&!domLib_isIE55;
var domLib_standardsMode=(document.compatMode&&document.compatMode=="CSS1Compat");
var domLib_useLibrary=(domLib_isOpera7up||domLib_isKHTML||domLib_isIE5up||domLib_isGecko||domLib_isMacIE||document.defaultView);
var domLib_hasBrokenTimeout=(domLib_isMacIE||(domLib_isKonq&&domLib_userAgent.match(/konqueror\/3.([2-9])/)==null));
var domLib_canFade=(domLib_isGecko||domLib_isIE||domLib_isSafari||domLib_isOpera);
var domLib_canDrawOverSelect=(domLib_isMac||domLib_isOpera||domLib_isGecko);
var domLib_canDrawOverFlash=(domLib_isMac||domLib_isWin);
var domLib_eventTarget=domLib_isIE?"srcElement":"currentTarget";
var domLib_eventButton=domLib_isIE?"button":"which";
var domLib_eventTo=domLib_isIE?"toElement":"relatedTarget";
var domLib_stylePointer=domLib_isIE?"hand":"pointer";
var domLib_styleNoMaxWidth=domLib_isOpera?"10000px":"none";
var domLib_hidePosition="-1000px";
var domLib_scrollbarWidth=14;
var domLib_autoId=1;
var domLib_zIndex=500;
var domLib_collisionElements;
var domLib_collisionsCached=false;
var domLib_timeoutStateId=0;
var domLib_timeoutStates=new Hash();
if(!document.ELEMENT_NODE){
document.ELEMENT_NODE=1;
document.ATTRIBUTE_NODE=2;
document.TEXT_NODE=3;
document.DOCUMENT_NODE=9;
document.DOCUMENT_FRAGMENT_NODE=11;
}
function domLib_clone(_1){
var _2={};
for(var i in _1){
var _4=_1[i];
try{
if(_4!=null&&typeof (_4)=="object"&&_4!=window&&!_4.nodeType){
_2[i]=domLib_clone(_4);
}else{
_2[i]=_4;
}
}
catch(e){
_2[i]=_4;
}
}
return _2;
}
function Hash(){
this.length=0;
this.numericLength=0;
this.elementData=[];
for(var i=0;i<arguments.length;i+=2){
if(typeof (arguments[i+1])!="undefined"){
this.elementData[arguments[i]]=arguments[i+1];
this.length++;
if(arguments[i]==parseInt(arguments[i])){
this.numericLength++;
}
}
}
}
Hash.prototype.get=function(_6){
if(typeof (this.elementData[_6])!="undefined"){
return this.elementData[_6];
}
return null;
};
Hash.prototype.set=function(_7,_8){
if(typeof (_8)!="undefined"){
if(typeof (this.elementData[_7])=="undefined"){
this.length++;
if(_7==parseInt(_7)){
this.numericLength++;
}
}
return this.elementData[_7]=_8;
}
return false;
};
Hash.prototype.remove=function(_9){
var _a;
if(typeof (this.elementData[_9])!="undefined"){
this.length--;
if(_9==parseInt(_9)){
this.numericLength--;
}
_a=this.elementData[_9];
delete this.elementData[_9];
}
return _a;
};
Hash.prototype.size=function(){
return this.length;
};
Hash.prototype.has=function(_b){
return typeof (this.elementData[_b])!="undefined";
};
Hash.prototype.find=function(_c){
for(var _d in this.elementData){
if(this.elementData[_d]==_c){
return _d;
}
}
return null;
};
Hash.prototype.merge=function(_e){
for(var _f in _e.elementData){
if(typeof (this.elementData[_f])=="undefined"){
this.length++;
if(_f==parseInt(_f)){
this.numericLength++;
}
}
this.elementData[_f]=_e.elementData[_f];
}
};
Hash.prototype.compare=function(_10){
if(this.length!=_10.length){
return false;
}
for(var _11 in this.elementData){
if(this.elementData[_11]!=_10.elementData[_11]){
return false;
}
}
return true;
};
function domLib_isDescendantOf(_12,_13,_14){
if(_12==null){
return false;
}
if(_12==_13){
return true;
}
if(typeof (_14)!="undefined"&&(","+_14.join(",")+",").indexOf(","+_12.tagName+",")!=-1){
return false;
}
while(_12!=document.documentElement){
try{
if((tmp_object=_12.offsetParent)&&tmp_object==_13){
return true;
}else{
if((tmp_object=_12.parentNode)==_13){
return true;
}else{
_12=tmp_object;
}
}
}
catch(e){
return false;
}
}
return false;
}
function domLib_detectCollisions(_15,_16,_17){
if(!domLib_collisionsCached){
var _18=[];
if(!domLib_canDrawOverFlash){
_18[_18.length]="object";
}
if(!domLib_canDrawOverSelect){
_18[_18.length]="select";
}
domLib_collisionElements=domLib_getElementsByTagNames(_18,true);
domLib_collisionsCached=_17;
}
if(_16){
for(var cnt=0;cnt<domLib_collisionElements.length;cnt++){
var _1a=domLib_collisionElements[cnt];
if(!_1a.hideList){
_1a.hideList=new Hash();
}
_1a.hideList.remove(_15.id);
if(!_1a.hideList.length){
domLib_collisionElements[cnt].style.visibility="visible";
if(domLib_isKonq){
domLib_collisionElements[cnt].style.display="";
}
}
}
return;
}else{
if(domLib_collisionElements.length==0){
return;
}
}
var _1b=domLib_getOffsets(_15);
for(var cnt=0;cnt<domLib_collisionElements.length;cnt++){
var _1a=domLib_collisionElements[cnt];
if(domLib_isDescendantOf(_1a,_15)){
continue;
}
if(domLib_isKonq&&_1a.tagName=="SELECT"&&(_1a.size<=1&&!_1a.multiple)){
continue;
}
if(!_1a.hideList){
_1a.hideList=new Hash();
}
var _1c=domLib_getOffsets(_1a);
var _1d=Math.sqrt(Math.pow(_1c.get("leftCenter")-_1b.get("leftCenter"),2)+Math.pow(_1c.get("topCenter")-_1b.get("topCenter"),2));
var _1e=_1c.get("radius")+_1b.get("radius");
if(_1d<_1e){
if((_1b.get("leftCenter")<=_1c.get("leftCenter")&&_1b.get("right")<_1c.get("left"))||(_1b.get("leftCenter")>_1c.get("leftCenter")&&_1b.get("left")>_1c.get("right"))||(_1b.get("topCenter")<=_1c.get("topCenter")&&_1b.get("bottom")<_1c.get("top"))||(_1b.get("topCenter")>_1c.get("topCenter")&&_1b.get("top")>_1c.get("bottom"))){
_1a.hideList.remove(_15.id);
if(!_1a.hideList.length){
_1a.style.visibility="visible";
if(domLib_isKonq){
_1a.style.display="";
}
}
}else{
_1a.hideList.set(_15.id,true);
_1a.style.visibility="hidden";
if(domLib_isKonq){
_1a.style.display="none";
}
}
}
}
}
function domLib_getOffsets(_1f,_20){
if(typeof (_20)=="undefined"){
_20=true;
}
var _21=_1f;
var _22=_1f.offsetWidth;
var _23=_1f.offsetHeight;
var _24=0;
var _25=0;
while(_1f){
_24+=_1f.offsetLeft;
_25+=_1f.offsetTop;
_1f=_1f.offsetParent;
if(_1f&&!_20){
_24-=_1f.scrollLeft;
_25-=_1f.scrollTop;
}
}
if(domLib_isMacIE){
_24+=10;
_25+=10;
}
return new Hash("left",_24,"top",_25,"right",_24+_22,"bottom",_25+_23,"leftCenter",_24+_22/2,"topCenter",_25+_23/2,"radius",Math.max(_22,_23));
}
function domLib_setTimeout(_26,_27,_28){
if(typeof (_28)=="undefined"){
_28=[];
}
if(_27==-1){
return 0;
}else{
if(_27==0){
_26(_28);
return 0;
}
}
var _29=domLib_clone(_28);
if(!domLib_hasBrokenTimeout){
return setTimeout(function(){
_26(_29);
},_27);
}else{
var id=domLib_timeoutStateId++;
var _2b=new Hash();
_2b.set("function",_26);
_2b.set("args",_29);
domLib_timeoutStates.set(id,_2b);
_2b.set("timeoutId",setTimeout("domLib_timeoutStates.get("+id+").get('function')(domLib_timeoutStates.get("+id+").get('args')); domLib_timeoutStates.remove("+id+");",_27));
return id;
}
}
function domLib_clearTimeout(_2c){
if(!domLib_hasBrokenTimeout){
if(_2c>0){
clearTimeout(_2c);
}
}else{
if(domLib_timeoutStates.has(_2c)){
clearTimeout(domLib_timeoutStates.get(_2c).get("timeoutId"));
domLib_timeoutStates.remove(_2c);
}
}
}
function domLib_getEventPosition(_2d){
var _2e=new Hash("x",0,"y",0,"scrollX",0,"scrollY",0);
if(domLib_isIE){
var doc=(domLib_standardsMode?document.documentElement:document.body);
if(doc){
_2e.set("x",_2d.clientX+doc.scrollLeft);
_2e.set("y",_2d.clientY+doc.scrollTop);
_2e.set("scrollX",doc.scrollLeft);
_2e.set("scrollY",doc.scrollTop);
}
}else{
_2e.set("x",_2d.pageX);
_2e.set("y",_2d.pageY);
_2e.set("scrollX",_2d.pageX-_2d.clientX);
_2e.set("scrollY",_2d.pageY-_2d.clientY);
}
return _2e;
}
function domLib_cancelBubble(_30){
var _31=_30?_30:window.event;
_31.cancelBubble=true;
}
function domLib_getIFrameReference(_32){
if(domLib_isGecko||domLib_isIE){
return _32.frameElement;
}else{
var _33=_32.name;
if(!_33||!_32.parent){
return null;
}
var _34=_32.parent.document.getElementsByTagName("iframe");
for(var i=0;i<_34.length;i++){
if(_34[i].name==_33){
return _34[i];
}
}
return null;
}
}
function domLib_getElementsByClass(_36){
var _37=domLib_isIE5?document.all:document.getElementsByTagName("*");
var _38=[];
var cnt=0;
for(var i=0;i<_37.length;i++){
if((" "+_37[i].className+" ").indexOf(" "+_36+" ")!=-1){
_38[cnt++]=_37[i];
}
}
return _38;
}
function domLib_getElementsByTagNames(_3b,_3c){
var _3d=[];
for(var i=0;i<_3b.length;i++){
var _3f=document.getElementsByTagName(_3b[i]);
for(var j=0;j<_3f.length;j++){
if(_3f[j].tagName=="OBJECT"&&domLib_isGecko){
var _41=_3f[j].childNodes;
var _42=false;
for(var k=0;k<_41.length;k++){
if(_41[k].tagName=="EMBED"){
_42=true;
break;
}
}
if(_42){
continue;
}
}
if(_3c&&domLib_getComputedStyle(_3f[j],"visibility")=="hidden"){
continue;
}
_3d[_3d.length]=_3f[j];
}
}
return _3d;
}
function domLib_getComputedStyle(_44,_45){
if(domLib_isIE){
var _46=_45.replace(/-(.)/,function(a,b){
return b.toUpperCase();
});
return eval("in_obj.currentStyle."+_46);
}else{
if(domLib_isKonq){
return eval("in_obj.style."+_45);
}else{
return document.defaultView.getComputedStyle(_44,null).getPropertyValue(_45);
}
}
}
function makeTrue(){
return true;
}
function makeFalse(){
return false;
}


