var MenuItem=new Array();var isNS=false;var isIE=false;var menucount=1;if(parseInt(navigator.appVersion)>=4){if(navigator.appName=="Netscape"||navigator.appName=="Opera")
isNS=true;else if(navigator.appName=="Microsoft Internet Explorer")
isIE=true;}
function adjust_popupmenu_position(menu,bshow){var submenu;submenu=menu.popup_menu;if(bshow){y=menu.offsetTop;x=menu.offsetLeft;ofsParent=menu.offsetParent;while(ofsParent!=null){y+=ofsParent.offsetTop;x+=ofsParent.offsetLeft;ofsParent=ofsParent.offsetParent;}}else{y=-1000;x=-1000;}
submenu.origLeft=x-20;submenu.origTop=y-2;if(isNS)
submenu.style.left=submenu.origLeft+"px";else
submenu.style.pixelLeft=submenu.origLeft;}
function enum_childs(index,node){var childs;if(node.tagName=="A"){node.onmouseover=new Function('submenuOver('+index+')');node.onmouseout=new Function('submenuOut('+index+')');}else if(node.tagName=="DIV"){node.onmouseover=new Function('submenuOver('+index+')');node.onmouseout=new Function('submenuOut('+index+')');}
childs=node.childNodes;if(childs==null)
return;for(var i=0;i<childs.length;i++)
enum_childs(index,childs[i]);}
function init_popup(menu,index,check){var popup;popup=menu.popup_menu;if(popup!=null)
enum_childs(index,popup);adjust_popupmenu_position(menu,check);}
function on_popup_timer(obj){var menu;if((obj.is_popup_visible&3))
return;menu=obj.menu_bar;clearInterval(menu.popupmenu_timer);menu.popupmenu_timer=null;hide(obj);}
function hide(MenuObject){slideUp(MenuObject.id,function(){;menu_remove_select(MenuObject.menu_bar);});}
function submenuOver(e){var menu;menu=MenuItem[e].popup_menu;menu.is_popup_visible|=2;}
function submenuOut(e){var menu;menu=MenuItem[e].popup_menu;menu.is_popup_visible&=~2;}
function TopMenuOver(e,elem){var relTarg;if(!e)
e=window.event;if(!e)
return-1;relTarg=e.target||e.srcElement;if(relTarg.parentNode.className.indexOf('menuhover')==-1)
relTarg.parentNode.className+=' menuhover';if(relTarg.popup_menu!=null){if(relTarg.popupmenu_timer!=null){clearInterval(relTarg.popupmenu_timer);relTarg.popupmenu_timer=null;}
show(relTarg.popup_menu);relTarg.popup_menu.is_popup_visible|=1;relTarg.popupmenu_timer=setInterval(function(){on_popup_timer(relTarg.popup_menu)},300);}}
function TopMenuOut(e){var relTarg,menu,remClass;if(!e)
e=window.event;if(!e)
return;relTarg=e.target||e.srcElement;menu=relTarg.popup_menu;remClass=true;if(menu!=null){remClass=false;menu.is_popup_visible&=~1;}
if(remClass)
menu_remove_select(relTarg);}
function fx_height(ele){var h,stop;if(ele.style.height.length<1)
h=0;else
h=parseInt(ele.style.height);h+=ele.step_fx;stop=0;if(ele.step_fx>0){if(h>=ele.end_fx){h=ele.end_fx;stop=1;}}else{if(h<=ele.end_fx){h=ele.end_fx;stop=1;ele.style.visibility='hidden';}}
ele.style.height=h+"px";if(stop){clearInterval(ele.fx_timer);if(typeof(ele.fx_oncomplete)!='undefined')
ele.fx_oncomplete();ele.fx_timer=null;}
return true;}
function slideUp(id,fnc){var ele;ele=document.getElementById(id);if(ele==null)
return;if(typeof(ele.fx_height)=='undefined')
ele.fx_height=ele.clientHeight;if(typeof(ele.fx_overflow)!='undefined')
ele.fx_overfow=ele.style.overflow;ele.style.overflow='hidden';ele.fx_oncomplete=fnc;ele.fx_debug=0;ele.start_fx=ele.clientHeight;ele.end_fx=0;ele.step_fx=-3;time=200/(ele.fx_height/Math.abs(ele.step_fx));ele.fx_timer=setInterval(function(){fx_height(ele,fnc)},Math.ceil(time));}
function slideDown(id,fnc){var ele;ele=document.getElementById(id);if(ele==null)
return;if(typeof(ele.fx_overflow)!='undefined')
ele.style.overflow=ele.fx_overfow;ele.fx_oncomplete=fnc;ele.fx_debug=1;ele.start_fx=ele.clientHeight;ele.end_fx=ele.fx_height;ele.step_fx=3;time=200/(ele.fx_height/Math.abs(ele.step_fx));ele.fx_timer=setInterval(function(){fx_height(ele,fnc)},Math.ceil(time));}
function menu_remove_select(obj){s=obj.parentNode.className;obj.parentNode.className=s.replace(' menuhover','').replace('menuhover','');}
function tabitem_click(){for(i=0;i<this.tabs.div_childs.length;i++){var ele=this.tabs.div_childs[i];s=ele.li.className;ele.li.className=s.replace(" ui-tabs-selected","").replace("ui-tabs-selected","");s=ele.li.className;ele.li.className=s.replace(" ui-state-active","").replace("ui-state-active","");ele.div.style.display='none';}
this.li.className+=' ui-tabs-selecte ui-state-active';this.div.style.display='block';return false;}
function enum_tab_childs(tabs,node){var i;if(typeof(node.tagName)!='undefined'&&node.tagName=='LI'){for(i=0;i<node.childNodes.length;i++){var ele,div,s;ele=node.childNodes[i];if(typeof(ele.tagName)=='undefined'||ele.tagName!='A')
continue;if(typeof(ele.href)=='undefined')
continue;s=ele.href;pos=s.indexOf('#');if(pos<0)
continue;s=s.substr(pos+1);div=document.getElementById(s);if(div==null)
continue;if(tabs.div_childs.length<1)
div.style.display='block';else
div.style.display='none';ele.li=node;ele.tabs=tabs;ele.div=div;ele.onclick=tabitem_click;tabs.div_childs.push(ele);}}else{for(i=0;i<node.childNodes.length;i++)
enum_tab_childs(tabs,node.childNodes[i]);}}
