TransMenu.spacerGif="images/x.gif";
TransMenu.dingbatOn="images/x.gif";
TransMenu.dingbatOff="images/arrowchild-off2.gif";
TransMenu.dingbatSize=4;
TransMenu.menuPadding=20;
TransMenu.itemPadding=5;
TransMenu.shadowSize=2;
TransMenu.shadowOffset=30;
TransMenu.shadowColor="#fff";
TransMenu.shadowPng="images/grey-40.png";
TransMenu.backgroundColor="#000";
TransMenu.backgroundPng="img/white-90.png";
TransMenu.hideDelay=1000;
TransMenu.slideTime=400;
TransMenu.subpad_x=0;
TransMenu.subpad_y=-2;
TransMenu.reference={topLeft:1,topRight:2,bottomLeft:3,bottomRight:4};
TransMenu.direction={down:1,right:2};
TransMenu.registry=[];
TransMenu._maxZ=100;
TransMenu.updateImgPath=function(_1){
TransMenu.spacerGif=_1+TransMenu.spacerGif;
/*TransMenu.dingbatOn=_1+TransMenu.dingbatOn;*/
TransMenu.dingbatOff=_1+TransMenu.dingbatOff;
TransMenu.shadowPng=_1+TransMenu.shadowPng;
TransMenu.backgroundPng=_1+TransMenu.backgroundPng;
};
TransMenu.isSupported=function(){
var ua=navigator.userAgent.toLowerCase();
var pf=navigator.platform.toLowerCase();
var an=navigator.appName;
var r=false;
if(ua.indexOf("gecko")>-1&&navigator.productSub>=20020605){
r=true;
}else{
if(an=="Microsoft Internet Explorer"){
if(document.getElementById){
if(pf.indexOf("mac")==0){
r=/msie (\d(.\d*)?)/.test(ua)&&Number(RegExp.$1)>=5.1;
}else{
r=true;
}
}
}
}
return r;
};
TransMenu.initialize=function(){
for(var i=0,menu=null;menu=this.registry[i];i++){
menu.initialize();
}
};
TransMenu.renderAll=function(){
var _7=[];
for(var i=0,menu=null;menu=this.registry[i];i++){
_7[i]=menu.toString();
}
document.write(_7.join(""));
};
function TransMenu(_9,_a,_b,_c,_d,_e){
this.addItem=addItem;
this.addMenu=addMenu;
this.toString=toString;
this.initialize=initialize;
this.isOpen=false;
this.show=show;
this.hide=hide;
this.items=[];
this.onactivate=new Function();
this.ondeactivate=new Function();
this.onmouseover=new Function();
this.onqueue=new Function();
this.ondequeue=new Function();
this.index=TransMenu.registry.length;
TransMenu.registry[this.index]=this;
var id="TransMenu"+this.index;
var _10=null;
var _11=null;
var _12=null;
var _13=false;
var _14=[];
var _15=-1;
var _16=null;
var _17=false;
var _18=this;
var a=null;
var pos=_a==TransMenu.direction.down?"top":"left";
var dim=null;
function addItem(_1c,_1d,_1e,_1f){
var _20=new TransMenuItem(_1c,_1d,this,_1e,_1f);
_20._index=this.items.length;
this.items[_20._index]=_20;
}
function addMenu(_21){
if(!_21.parentMenu==this){
throw new Error("Cannot add a menu here");
}
if(_12==null){
_12=new TransMenuSet(TransMenu.direction.right,TransMenu.subpad_x,TransMenu.subpad_y,TransMenu.reference.topRight);
}
var m=_12.addMenu(_21);
_14[_21._index]=m;
m.onmouseover=child_mouseover;
m.ondeactivate=child_deactivate;
m.onqueue=child_queue;
m.ondequeue=child_dequeue;
return m;
}
function initialize(){
initCache();
initEvents();
initSize();
_17=true;
}
function show(){
if(_17){
_18.isOpen=true;
_13=true;
setContainerPos();
_16["clip"].style.visibility="visible";
_16["clip"].style.zIndex=TransMenu._maxZ++;
slideStart();
_18.onactivate();
}
}
function hide(){
if(_17){
_18.isOpen=false;
_13=true;
for(var i=0,item=null;item=_16.item[i];i++){
dehighlight(item);
}
if(_12){
_12.hide();
}
slideStart();
_18.ondeactivate();
if(!_9.parentMenu){
_9.className=_9.className.replace(/ jahover-active/,"");
_9.className=_9.className.replace(/ jahover/,"");
}
}
}
function setContainerPos(){
var sub=_9.constructor==TransMenuItem;
var act=sub?_9.parentMenu.elmCache["item"][_9._index]:_9;
var el=act;
var x=0;
var y=0;
/*var a1n=navigator.appName;
if(a1n=="Microsoft Internet Explorer"){var y=0; x=-130}*/

var _29=0;
var _2a=(window.innerWidth?window.innerWidth:document.body.clientWidth)-parseInt(_16["clip"].style.width);
var _2b=0;
var _2c=(window.innerHeight?window.innerHeight:document.body.clientHeight)-parseInt(_16["clip"].style.height);
_2a=10000;
_2c=10000;
while(sub?el.parentNode.className.indexOf("transMenu")==-1:el.offsetParent){
x+=el.offsetLeft;
y+=el.offsetTop;
if(el.scrollLeft){
x-=el.scrollLeft;
}
if(el.scrollTop){
y-=el.scrollTop;
}
el=el.offsetParent;
}
if(_9.constructor==TransMenuItem){
x+=parseInt(el.parentNode.style.left);
y+=parseInt(el.parentNode.style.top);
}
switch(_d){
case TransMenu.reference.topLeft:
break;
case TransMenu.reference.topRight:
x+=act.offsetWidth;
break;
case TransMenu.reference.bottomLeft:
y+=act.offsetHeight;
break;
case TransMenu.reference.bottomRight:
x+=act.offsetWidth;
y+=act.offsetHeight;
break;
}
x+=_b;
y+=_c;
x=Math.max(Math.min(x,_2a),_29);
y=Math.max(Math.min(y,_2c),_2b);
_16["clip"].style.left=x+"px";
_16["clip"].style.top=y+"px";
}
function slideStart(){
var x0=parseInt(_16["content"].style[pos]);
var x1=_18.isOpen?0:-dim;
if(a!=null){
a.stop();
}
a=new Accelimation(x0,x1,TransMenu.slideTime,_15);
a.onframe=slideFrame;
a.onend=slideEnd;
a.start();
}
function slideFrame(x){
_16["content"].style[pos]=x+"px";
}
function slideEnd(){
if(!_18.isOpen){
_16["clip"].style.visibility="hidden";
}
_13=false;
}
function initSize(){
var ow=_16["items"].offsetWidth;
var oh=_16["items"].offsetHeight;
var ua=navigator.userAgent.toLowerCase();
_16["clip"].style.width=ow+TransMenu.shadowSize+2+"px";
_16["clip"].style.height=oh+TransMenu.shadowSize+2+"px";
_16["content"].style.width=ow+TransMenu.shadowSize+"px";
_16["content"].style.height=oh+TransMenu.shadowSize+"px";
_10=oh+TransMenu.shadowSize;
_11=ow+TransMenu.shadowSize;
dim=_a==TransMenu.direction.down?_10:_11;
_16["content"].style[pos]=-dim-TransMenu.shadowSize+"px";
_16["clip"].style.visibility="hidden";
if(ua.indexOf("mac")==-1||ua.indexOf("gecko")>-1){
_16["background"].style.width=ow+"px";
_16["background"].style.height=oh+"px";
_16["background"].style.backgroundColor=TransMenu.backgroundColor;
_16["shadowRight"].style.left=ow+"px";
//_16["shadowRight"].style.height=oh-(TransMenu.shadowOffset-TransMenu.shadowSize)+"px";
_16["shadowRight"].style.backgroundColor=TransMenu.shadowColor;
_16["shadowBottom"].style.top=oh+"px";
_16["shadowBottom"].style.width=ow-TransMenu.shadowOffset+"px";
_16["shadowBottom"].style.backgroundColor=TransMenu.shadowColor;
}else{
_16["background"].firstChild.src=TransMenu.backgroundPng;
_16["background"].firstChild.width=ow;
_16["background"].firstChild.height=oh;
_16["shadowRight"].firstChild.src=TransMenu.shadowPng;
_16["shadowRight"].style.left=ow+"px";
_16["shadowRight"].firstChild.width=TransMenu.shadowSize;
_16["shadowRight"].firstChild.height=oh-(TransMenu.shadowOffset-TransMenu.shadowSize);
_16["shadowBottom"].firstChild.src=TransMenu.shadowPng;
_16["shadowBottom"].style.top=oh+"px";
_16["shadowBottom"].firstChild.height=TransMenu.shadowSize;
_16["shadowBottom"].firstChild.width=ow-TransMenu.shadowOffset;
}
}
function initCache(){
var _33=document.getElementById(id);
var all=_33.all?_33.all:_33.getElementsByTagName("*");
_16={};
_16["clip"]=_33;
_16["item"]=[];
for(var i=0,elm=null;elm=all[i];i++){
switch(elm.className){
case "items":
case "content":
case "background":
case "shadowRight":
case "shadowBottom":
_16[elm.className]=elm;
break;
case "item":
elm._index=_16["item"].length;
_16["item"][elm._index]=elm;
break;
}
}
_18.elmCache=_16;
}
function initEvents(){
for(var i=0,item=null;item=_16.item[i];i++){
item.onmouseover=item_mouseover;
item.onmouseout=item_mouseout;
item.onclick=item_click;
}
if(typeof _9.tagName!="undefined"){
_9.onmouseover=actuator_mouseover;
_9.onmouseout=actuator_mouseout;
}
_16["content"].onmouseover=content_mouseover;
_16["content"].onmouseout=content_mouseout;
}
function highlight(_37){
_37.className="item hover";
/*if(_14[_37._index]){
_37.lastChild.firstChild.src=TransMenu.dingbatOn;
}*/
}
function dehighlight(_38){
_38.className="item";
if(_14[_38._index]){
_38.lastChild.firstChild.src=TransMenu.dingbatOff;
}
}
function item_mouseover(){
if(!_13){
highlight(this);
if(_14[this._index]){
_12.showMenu(_14[this._index]);

}else{
if(_12){
_12.hide();
}
}
}
}
function item_mouseout(){
if(!_13){
if(_14[this._index]){
_12.hideMenu(_14[this._index]);
}else{
dehighlight(this);
}
}
}
function item_click(){
if(!_13){
if(_18.items[this._index].url){
switch(_18.items[this._index].browserNav){
case 1:
window.open(_18.items[this._index].url,"","");
break;
case 2:
window.open(_18.items[this._index].url,"","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550");
break;
case 3:
break;
default:
location.href=_18.items[this._index].url;
break;
}
}
}
}
function actuator_mouseover(){
_e.showMenu(_18);
if(!_9.parentMenu){
if(_9.className.indexOf(" jahover")<0){
if(_9.className.indexOf("-active")<0){
_9.className+=" jahover";
}else{
_9.className+=" jahover-active";
}
}
}
}
function actuator_mouseout(){
_e.hideMenu(_18);
}
function content_mouseover(){
if(!_13){
_e.showMenu(_18);
_18.onmouseover();
}
}
function content_mouseout(){
if(!_13){
_e.hideMenu(_18);
}
}
function child_mouseover(){
if(!_13){
_e.showMenu(_18);
}
}
function child_deactivate(){
for(var i=0;i<_14.length;i++){
if(_14[i]==this){
dehighlight(_16["item"][i]);
break;
}
}
}
function child_queue(){
_e.hideMenu(_18);
}
function child_dequeue(){
_e.showMenu(_18);
}
function toString(){
var _3a=[];
var _3b="transMenu"+(_9.constructor!=TransMenuItem?" top":"");
for(var i=0,item=null;item=this.items[i];i++){
_3a[i]=item.toString(_14[i]);
}
return "<div id=\""+id+"\" class=\""+_3b+"\">"+"<div class=\"content\"><table class=\"items\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">"+_3a.join("")+"</table>"+"<div class=\"shadowBottom\"><img src=\""+TransMenu.spacerGif+"\" width=\"1\" height=\"1\"></div>"+"<div class=\"shadowRight\"><img src=\""+TransMenu.spacerGif+"\" width=\"1\" height=\"1\"></div>"+"<div class=\"background\"><img src=\""+TransMenu.spacerGif+"\" width=\"1\" height=\"1\"></div>"+"</div></div>";
}
}
TransMenuSet.registry=[];
function TransMenuSet(_3d,_3e,_3f,_40){
this.addMenu=addMenu;
this.showMenu=showMenu;
this.hideMenu=hideMenu;
this.hide=hide;
this.hideCurrent=hideCurrent;
var _41=[];
var _42=this;
var _43=null;
this.index=TransMenuSet.registry.length;
TransMenuSet.registry[this.index]=this;
function addMenu(_44){
var m=new TransMenu(_44,_3d,_3e,_3f,_40,this);
_41[_41.length]=m;
return m;
}
function showMenu(_46){
if(_46!=_43){
if(_43!=null){
hide(_43);
}
_43=_46;
_46.show();
}else{
cancelHide(_46);
}
}
function hideMenu(_47){
if(_43==_47&&_47.isOpen){
if(!_47.hideTimer){
scheduleHide(_47);
}
}
}
function scheduleHide(_48){
_48.onqueue();
_48.hideTimer=window.setTimeout("TransMenuSet.registry["+_42.index+"].hide(TransMenu.registry["+_48.index+"])",TransMenu.hideDelay);
}
function cancelHide(_49){
if(_49.hideTimer){
_49.ondequeue();
window.clearTimeout(_49.hideTimer);
_49.hideTimer=null;
}
}
function hide(_4a){
if(!_4a&&_43){
_4a=_43;
}
if(_4a&&_43==_4a&&_4a.isOpen){
hideCurrent();
}
}
function hideCurrent(){
if(null!=_43){
cancelHide(_43);
_43.hideTimer=null;
_43.hide();
_43=null;
}
}
}
function TransMenuItem(_4b,_4c,_4d,_4e,_4f){
this.toString=toString;
this.text=_4b;
this.url=_4c;
this.browserNav=_4e;
this.parentMenu=_4d;
this.active=_4f;
function toString(_50){
var _51=_50?TransMenu.dingbatOff:TransMenu.spacerGif;
var _52=TransMenu.itemPadding+TransMenu.menuPadding;
var _53="padding:"+TransMenu.itemPadding+"px; padding-left:"+_52+"px;";
var _54="padding:"+TransMenu.itemPadding+"px; padding-right:"+_52+"px;";
var id=_4f?" id=\"active\" ":"";
return "<tr class=\"item\""+id+"><td nowrap style=\""+_53+"\">"+_4b+"</td><td width=\"10\" style=\""+_54+"\">"+"<img src=\""+_51+"\" width=\"8\" height=\"8\"></td></tr>";
}
}
function Accelimation(_56,to,_58,zip){
if(typeof zip=="undefined"){
zip=0;
}
if(typeof unit=="undefined"){
unit="px";
}
this.x0=_56;
this.x1=to;
this.dt=_58;
this.zip=-zip;
this.unit=unit;
this.timer=null;
this.onend=new Function();
this.onframe=new Function();
}
Accelimation.prototype.start=function(){
this.t0=new Date().getTime();
this.t1=this.t0+this.dt;
var dx=this.x1-this.x0;
this.c1=this.x0+((1+this.zip)*dx/3);
this.c2=this.x0+((2+this.zip)*dx/3);
Accelimation._add(this);
};
Accelimation.prototype.stop=function(){
Accelimation._remove(this);
};
Accelimation.prototype._paint=function(_5b){
if(_5b<this.t1){
var _5c=_5b-this.t0;
this.onframe(Accelimation._getBezier(_5c/this.dt,this.x0,this.x1,this.c1,this.c2));
}else{
this._end();
}
};
Accelimation.prototype._end=function(){
Accelimation._remove(this);
this.onframe(this.x1);
this.onend();
};
Accelimation._add=function(o){
var _5e=this.instances.length;
this.instances[_5e]=o;
if(this.instances.length==1){
this.timerID=window.setInterval("Accelimation._paintAll()",this.targetRes);
}
};
Accelimation._remove=function(o){
for(var i=0;i<this.instances.length;i++){
if(o==this.instances[i]){
this.instances=this.instances.slice(0,i).concat(this.instances.slice(i+1));
break;
}
}
if(this.instances.length==0){
window.clearInterval(this.timerID);
this.timerID=null;
}
};
Accelimation._paintAll=function(){
var now=new Date().getTime();
for(var i=0;i<this.instances.length;i++){
this.instances[i]._paint(now);
}
};
Accelimation._B1=function(t){
return t*t*t;
};
Accelimation._B2=function(t){
return 3*t*t*(1-t);
};
Accelimation._B3=function(t){
return 3*t*(1-t)*(1-t);
};
Accelimation._B4=function(t){
return (1-t)*(1-t)*(1-t);
};
Accelimation._getBezier=function(_67,_68,_69,_6a,_6b){
return _69*this._B1(_67)+_6b*this._B2(_67)+_6a*this._B3(_67)+_68*this._B4(_67);
};
Accelimation.instances=[];
Accelimation.targetRes=10;
Accelimation.timerID=null;
if(window.attachEvent){
var cearElementProps=["data","onmouseover","onmouseout","onmousedown","onmouseup","ondblclick","onclick","onselectstart","oncontextmenu"];
window.attachEvent("onunload",function(){
var el;
for(var d=document.all.length;d--;){
el=document.all[d];
for(var c=cearElementProps.length;c--;){
el[cearElementProps[c]]=null;
}
}
});
}
