function changeImage(D,C){if((img=findObject(D))!=null){img.src=C}}function findObject(B){objRef=null;if(document.images[B]!=null){objRef=document.images[B]}else{if(document.all){objRef=document.all[B]}else{if(document.getElementById){objRef=document.getElementById(B)}}}return objRef}function changeProperty(layerName,layerProperty,layerValue){if(isNaN(layerValue)){layerValue="'"+layerValue+"'"}if(document.all){if(document.all[layerName]!=null){if(document.all[layerName].style[layerProperty]!=null){eval("document.all[ '"+layerName+"' ].style."+layerProperty+" = "+layerValue)}else{if(document.all[layerName][layerProperty]!=null){eval("document.all[ '"+layerName+"' ]."+layerProperty+" = "+layerValue)}}}}else{if(document.layers){eval("document.layers[ '"+thisLayerName+"' ]."+layerProperty+" = "+layerValue)}else{if(document.getElementById){if(document.getElementById(layerName)!=null){if(document.getElementById(layerName).style!=null){if(document.getElementById(layerName).style[layerProperty]!=null){eval("document.getElementById('"+layerName+"').style."+layerProperty+" = "+layerValue)}else{if(document.getElementById(layerName)[layerProperty]!=null){eval("document.getElementById('"+layerName+"')."+layerProperty+" = "+layerValue)}}}}}}}}function findProperty(layerName,layerProperty){if(document.all){if(document.all[layerName].style[layerProperty]!=null){return eval("document.all[ '"+layerName+"' ].style."+layerProperty)}else{if(document.all[layerName][layerProperty]!=null){return eval("document.all[ '"+layerName+"' ]."+layerProperty)}}}else{if(document.layers){return eval("document.layers[ '"+thisLayerName+"' ]."+layerProperty)}else{if(document.getElementById){if(document.getElementById(layerName).style[layerProperty]!=null){return eval("document.getElementById('"+layerName+"').style."+layerProperty)}else{if(document.getElementById(layerName)[layerProperty]!=null){return eval("document.getElementById('"+layerName+"')."+layerProperty)}}}}}}function sizeIFrame(F,E,D){changeProperty(F,"height",D);changeProperty(F,"width",E)}function getPageHeight(){var B=0;if(document.layers){B=window.innerHeight+window.pageYoffset}else{if(document.all){B=document.body.clientHeight+document.body.scrollTop}else{if(document.getElementById){B=window.innerHeight+window.pageYOffset}}}return B}function getPageWidth(){var B=0;if(document.layers){B=window.innerWidth+window.pageXOffset}else{if(document.all){B=document.body.clientWidth+document.body.scrollLeft}else{if(document.getElementById){B=window.innerWidth+window.pageXOffset}}}if(isMac()&&isIE()){B-=350}if(isIE()){B+=13}return B}function isMac(){return navigator.platform.indexOf("Mac")!=-1}function isWin(){return navigator.userAgent.toLowerCase().indexOf("win")!=-1}function isIE(){return navigator.userAgent.indexOf("MSIE")!=-1}function Arguments(C){this.strArguments=C;this.arrArguments=new Array();this.tmpArgument=new Array();this.objArguments=new Object();this.arrArguments=C.split(",");for(var D=0;D<this.arrArguments.length;D++){this.tmpArgument=this.arrArguments[D].split("=");this.objArguments[this.tmpArgument[0]]=this.tmpArgument[1]}this.getParam=get_Parameter;this.getString=get_String_Parameter;this.getNumber=get_Number_Parameter;this.getBoolean=get_Boolean_Parameter;this.addParam=set_Parameter;this.setParam=set_Parameter;this.toString=get_Parameter_String;this.alert=get_Alert_Box;return this}function get_Parameter(B){if(this.objArguments[B]){return this.objArguments[B]}else{return null}}function get_String_Parameter(D){var C=this.getParam(D);if(C!=null){return String(C)}else{return""}}function get_Number_Parameter(D){var C=Number(this.getParam(D));if(C!=null&&!isNaN(C)){return C}else{return 0}}function get_Boolean_Parameter(B){return this.getParam(B)=="true"}function set_Parameter(D,C){this.objArguments[D]=C}function get_Parameter_String(){var C="";for(var D in this.objArguments){C+=","+D+"="+this.objArguments[D]}return C.substring(1)}function get_Alert_Box(){var D="";var E=this.strArguments.split(",");for(var F=0;F<E.length;F++){D+=E[F]+"\n"}alert(D)}function LMNKArray(){this.arrayInstance=new Array();this.length=0;this.isArray=true;this.createArray=create_LMNK_Array;this.push=push_To_Array;this.pop=pop_From_Array;this.get=get_Array_Element;this.setLength=set_Array_Length;this.size=array_Length;this.concat=concat_Array_Elements;this.join=join_Array_Elements;this.reverse=reverse_Array_Elements;this.shift=shift_To_Array;this.unshift=unshift_From_Array;this.toString=array_To_String;this.splice=splice_Array;if(arguments.length>0){this.createArray(arguments)}return this}function set_Array_Length(){this.length=this.arrayInstance.length}function array_Length(){return this.arrayInstance.length}function get_Array_Element(B){return this.arrayInstance[B]}function push_To_Array(B){if(this.arrayInstance.push){this.arrayInstance.push(B)}else{this.arrayInstance[this.length]=B}this.setLength()}function pop_From_Array(){if(this.arrayInstance.pop){var F=this.arrayInstance.pop();this.setLength();return F}else{var H=this.arrayInstance[(this.length-1)];var E=new LMNKArray();for(var G=0;G<(this.length-1);G++){E.push(this.get(G))}this.arrayInstance=E.arrayInstance;this.setLength();return H}}function concat_Array_Elements(){for(var C=0;C<arguments.length;C++){if(arguments[C].charAt){this.push(arguments[C])}else{for(var D=0;D<arguments[C].length;D++){this.push(arguments[C][D])}}}}function join_Array_Elements(E){if(this.arrayInstance.join){return this.arrayInstance.join(E)}else{var D="";for(var F=0;F<this.length;F++){D+=this.get(F);if(F!=(this.length-1)){D+=E}}return D}}function reverse_Array_Elements(){if(this.arrayInstance.reverse){this.arrayInstance.reverse()}else{var C=new LMNKArray();for(var D=0;D<this.length;D++){C.unshift(this.get(D))}this.arrayInstance=C.arrayInstance;this.setLength()}}function shift_To_Array(){if(this.arrayInstance.shift){var E=this.arrayInstance.shift();this.setLength();return E}else{var E=this.get(0);var D=new LMNKArray();for(var F=1;F<this.length;F++){D.push(this.get(F))}this.arrayInstance=D.arrayInstance;this.setLength();return E}}function unshift_From_Array(F){if(this.arrayInstance.unshift){var G=this.arrayInstance.unshift(F);this.setLength();return G}else{var E=new LMNKArray();E.push(F);for(var H=0;H<this.length;H++){E.push(this.get(H))}this.arrayInstance=E.arrayInstance;this.setLength();return this.length}}function array_To_String(){if(this.arrayInstance.toString){return this.arrayInstance.toString()}else{return this.join(",")}}function splice_Array(H,K){var G=new LMNKArray();var J=new LMNKArray();if(H==null){H=0}if(K==null){K=this.length-H}for(var L=0;L<this.length;L++){if(L>=H&&K-->=0){J.push(this.get(L))}else{G.push(this.get(L))}}if(arguments.length>2){for(var I=2;I<arguments.length;I++){G.push(arguments[I])}}this.arrayInstance=G.arrayInstance;this.setLength();return J}function slice_Array(F,E){var G=new LMNKArray;if(F==null){F=0}if(E==null){E=this.length}for(var H=F;H<E;H++){G.push(this.get(H))}return G}function create_LMNK_Array(){args=arguments[0];for(var B=0;B<args.length;B++){this.push(args[B])}this.setLength()}var menuContainerMap=new Object();var currentMenuItemRef=null;var ADJUST_VERTICAL_MENU_SPACING=4;var ADJUST_HORIZONTAL_MENU_SPACING=2;var timeoutId;var lastMenuOverRef=null;var menuBarUpperLimit=-1;var menuBarLowerLimit=-1;var isCentered=true;var baseMenuXPosition=getPaddingWidth();var menuLeftPaddingWidth=0;var menuXPosition=baseMenuXPosition;var isFirstPrimaryMenuItem=true;var lastMenuWidth=0;var selectedPrimaryMenuItem=null;function initDropDowns(B){isCentered=B;baseMenuXPosition=getPaddingWidth();menuXPosition=baseMenuXPosition}function getPaddingWidth(){if(menuLeftPadding!=null){menuLeftPaddingWidth=menuLeftPadding}var B=0;if(isCentered){if(flyoutOrientation=="rtl"){B=Math.floor(getPageWidth()-((getPageWidth()-contentWidth)/2))}else{B=Math.floor((getPageWidth()-contentWidth)/2)}}B+=menuLeftPaddingWidth;if(B<0){if(menuLeftPadding>0){return menuLeftPadding}if(flyoutOrientation=="rtl"){return getPageWidth()-16}else{return 0}}else{return B}}function setIsCentered(B){isCentered=B;redrawMenuContainer()}function NullMenu(){this.addMenu=add_Null_Menu;this.addMenuItem=add_Null_Menu;this.addMenuAlternate=add_Null_Menu}function add_Null_Menu(){return new NullMenu()}function PrimaryMenuItem(){var C=new Arguments(arguments[0]);this.OVER_CLASS=C.getString("mouseOverClass");this.OUT_CLASS=C.getString("mouseOutClass");this.id=C.getString("id");this.width=C.getNumber("width");this.subMenuLeft=menuXPosition;var D=C.getString("text");if(D){this.text=D}if(flyoutOrientation=="rtl"){menuXPosition-=Math.round(this.width*widthAdjust)+spacerWidth}else{menuXPosition+=Math.round(this.width*widthAdjust)+spacerWidth}if(menuBarLowerLimit<0){menuBarLowerLimit=getPageHeight()-90}this.childMenu=null;this.isHighlighted=false;this.hasChildren=has_Child_Menu;this.addMenu=add_Base_Menu;this.adjustLeftPosition=adjust_Menu_Item_Left_Position;this.highlight=highlight_Primary_Menu_Item;this.show=show_Primary_Menu_Item;this.hide=hide_Primary_Menu_Item;this.reset=reset_Child_Menus;this.draw=create_Primary_Menu_Item_Html;menuContainerMap[this.id]=this;return this}function add_Base_Menu(){var C=new Arguments(arguments[0]);C.setParam("top",menuTopPosition);C.setParam("left",this.subMenuLeft);var D=new Menu(C.toString());this.childMenu=D;D.setParent(this);return D}function highlight_Primary_Menu_Item(B){if(B){changeProperty(this.id,"className",this.OVER_CLASS)}else{changeProperty(this.id,"className",this.OUT_CLASS)}this.isHighlighted=B}function show_Primary_Menu_Item(){if(this.childMenu!=null){this.childMenu.show()}}function hide_Primary_Menu_Item(){if(this.childMenu!=null){this.childMenu.hide()}}function create_Primary_Menu_Item_Html(){if(this.childMenu!=null){this.childMenu.draw()}}function reset_Child_Menus(){this.highlight(false);this.hide();if(this.childMenu!=null){this.childMenu.resetMenu()}}function Menu(D){var C=new Arguments(D);this.id=C.getString("id");this.width=C.getNumber("width");this.parent=C.getString("parent");this.top=C.getNumber("top");this.left=C.getNumber("left");this.height=0;this.bottom=this.top;if(menuBarUpperLimit<0){menuBarUpperLimit=this.top}this.upperBuffer=this.top-menuBarUpperLimit;this.lowerBuffer=menuBarLowerLimit-this.upperBuffer;this.childMenuItems=new LMNKArray();this.html=null;this.isHighlighted=false;this.hasChildren=has_Child_Menu_Items;this.menuItemAlternate=null;this.menuItemAlternateUsed=false;this.setParent=set_Menu_Parent;this.setLeft=set_Menu_Left_Position;this.adjustLeftPosition=adjust_Menu_Left_Position;this.adjustMenuWidth=adjust_Menu_Width;this.addMenuItem=add_Menu_Item;this.addMenuAlternate=add_Menu_Alternate;this.getTop=get_Menu_Top;this.show=show_Menu;this.hide=hide_Menu;this.highlight=highlight_Menu;this.resetMenu=reset_Child_Menu_Items;this.reset=reset_Parent_Menu_Item_Container;this.draw=create_Menu_Html;this.repositionChildren=reposition_Child_Menu_Items;if(flyoutOrientation=="rtl"){this.left-=this.width}menuContainerMap[this.id]=this;return this}function add_Menu_Item(J,I,K,L){if(!this.menuItemAlternateUsed){var M=new Arguments(arguments[0]);var N=M.getNumber("height");if(((this.lowerBuffer-N)<=(N+5))){if((this.upperBuffer>N)){this.top-=N;this.upperBuffer-=N;this.repositionChildren(N)}else{if(this.menuItemAlternate!=null){this.menuItemAlternateUsed=true;this.lowerBuffer-=this.menuItemAlternate.height;this.childMenuItems.push(this.menuItemAlternate);this.adjustMenuWidth(this.menuItemAlternate.width);return new NullMenu()}}}else{this.lowerBuffer-=N}var H=new MenuItem(J+",top="+this.getTop()+",left="+this.left,I,K,L,this);this.childMenuItems.push(H);this.height+=H.height;this.bottom+=H.height;return H}else{return new NullMenu()}}function add_Menu_Alternate(G,F,H,E){this.menuItemAlternate=new MenuItem(G+",left="+this.left+",isAlternate=true","<B><NOBR>"+F+"...</NOBR></B>",H,E,this);return this.menuItemAlternate}function has_Child_Menu_Items(){return this.childMenuItems.length>0}function adjust_Menu_Left_Position(B){this.left+=B;if(this.left<0){this.left=0}changeProperty(this.id,"left",this.left)}function adjust_Menu_Width(B){if(this.width<=B){this.width=B}}function set_Menu_Parent(B){this.parent=B}function set_Menu_Left_Position(B){this.left=B}function get_Menu_Top(){var D=this.top;if(this.childMenuItems.length>0){for(var C=0;C<this.childMenuItems.length;C++){D+=this.childMenuItems.get(C).height}}return D}function show_Menu(){var F=findObject(this.id);if(F.innerHTML.length==0){var H="";for(var E=0;E<this.childMenuItems.length;E++){var G=this.childMenuItems.get(E);if(G.html){H+=G.html}}F.innerHTML='<TABLE width="'+this.width+'" cellpadding="0" cellspacing="0" class="menuItemTable">'+H+"</TABLE>"+(!isMac()?('<IFRAME style="position:absolute;top:0px;left:0px;z-index:-2;height:'+this.height+"px;width:"+this.width+'px" frameborder="0" scrolling="no" marginwidth="0" src="/includes/Blank.html" marginheight="0"></IFRAME>'):"")}changeProperty(this.id,"visibility","visible");this.isOpen=true}function hide_Menu(){changeProperty(this.id,"visibility","hidden");this.isOpen=false}function highlight_Menu(B){this.parent.highlight(B)}function reset_Child_Menu_Items(){this.highlight(false);for(var B=0;B<this.childMenuItems.length;B++){if(this.childMenuItems.get(B).childMenu!=null){if(this.childMenuItems.get(B).childMenu.isOpen){this.childMenuItems.get(B).childMenu.hide();this.childMenuItems.get(B).childMenu.resetMenu()}}}}function reset_Parent_Menu_Item_Container(){this.parent.reset()}function create_Menu_Html(){if(this.hasChildren()){document.writeln('<DIV id="'+this.id+'" style="position:absolute;top:'+this.top+"px;left:"+this.left+'px;visibility:hidden;z-index:1" class="menuBar"></DIV>');for(var B=0;B<this.childMenuItems.length;B++){this.childMenuItems.get(B).draw()}for(var B=0;B<this.childMenuItems.length;B++){if(this.childMenuItems.get(B).childMenu!=null&&!this.childMenuItems.get(B).isAlternate){this.childMenuItems.get(B).childMenu.draw()}}}}function adjust_Verticle(B){this.top=-B}function reposition_Child_Menu_Items(D){for(var C=0;C<this.childMenuItems.length;C++){if(this.childMenuItems.get(C)!=this){this.childMenuItems.get(C).reposition(D)}}}function MenuItem(I,H,J,K,L){var G=new Arguments(I);this.id=G.getString("id");this.height=G.getNumber("height");this.width=G.getNumber("width");this.top=G.getNumber("top");if(flyoutOrientation=="rtl"){this.left=G.getNumber("left")-L.width}else{this.left=G.getNumber("left")}this.isAlternate=(G.getString("isAlternate")=="true");this.normalStyle=K;this.highlightStyle=this.normalStyle+"Highlight";this.text=H;this.link=J;this.isClickable=G.getString("isClickable")=="true";this.isBlock=G.getString("isBlock")=="true";this.bottom=this.top+this.height;this.isOpen=false;this.parent=L;this.childMenu=null;this.hasChildren=has_Child_Menu;this.addMenu=add_Menu;this.adjustLeftPosition=adjust_Menu_Item_Left_Position;this.getSubMenuLeft=get_Sub_Menu_Left;this.getSubMenuTop=get_Sub_Menu_Top;this.highlight=highlight_Menu_Item;this.showChild=show_Child_Menu;this.hideSiblingChildren=hide_Menu_Child_Items;this.resetMenu=reset_Menu_Item;this.reset=reset_Parent_Menu;this.draw=create_Menu_Item_Html;this.reposition=reposition_Menu_Item;menuContainerMap[this.id]=this;return this}function add_Menu(C){var D=new Menu(C+",top="+this.getSubMenuTop()+",left="+this.getSubMenuLeft());this.childMenu=D;D.setParent(this);return D}function has_Child_Menu(){return this.childMenu!=null}function adjust_Menu_Item_Left_Position(B){this.left+=B;if(this.left<0){this.left=0}}function get_Sub_Menu_Left(){return this.left+this.parent.width+ADJUST_HORIZONTAL_MENU_SPACING}function get_Sub_Menu_Top(){return this.top+ADJUST_VERTICAL_MENU_SPACING}function highlight_Menu_Item(B){if(B){changeProperty(this.id,"className",this.highlightStyle)}else{changeProperty(this.id,"className",this.normalStyle)}this.isHighlighted=B}function show_Child_Menu(){if(this.childMenu!=null){this.childMenu.show()}}function hide_Menu_Child_Items(){for(var B=0;B<this.parent.childMenuItems.length;B++){if(this.parent.childMenuItems.get(B)!=this){this.parent.childMenuItems.get(B).resetMenu()}else{if(!this.parent.isHighlighted){this.parent.highlight(true)}}}}function reset_Menu_Item(){this.highlight(false);if(this.childMenu!=null){if(this.childMenu.isOpen){this.childMenu.hide();this.childMenu.resetMenu()}}}function reset_Parent_Menu(){if(this.parent.isOpen){this.parent.reset()}}function create_Menu_Item_Html(){if(window.event){this.html='<TR><TD width="100%" id="'+this.id+'" class="'+this.normalStyle+'" style="height:'+this.height+";"+((this.childMenu!=null&&!this.isAlternate&&flyoutOrientation=="rtl")?(" background-image: url("+menuArrowImage+"); background-position: 1% 50%; background-repeat: no-repeat;"):"")+((this.childMenu!=null&&!this.isAlternate&&flyoutOrientation!="rtl")?(" background-image: url("+menuArrowImage+"); background-position: 99% 50%; background-repeat: no-repeat;"):"")+'" onmouseover="handleOnMouseOver()" onmouseout="handleOnMouseOut()"'+(this.isClickable?(' onclick="handleOnClick()">'):">")+(this.isBlock?this.text:("&nbsp;"+this.text+"&nbsp;"))+"</TD></TR>"}else{this.html='<TR><TD width="100%" id="'+this.id+'" class="'+this.normalStyle+'" style="height:'+this.height+";"+((this.childMenu!=null&&!this.isAlternate&&flyoutOrientation=="rtl")?(" background-image: url("+menuArrowImage+"); background-position: 1% 50%; background-repeat: no-repeat;"):"")+((this.childMenu!=null&&!this.isAlternate&&flyoutOrientation!="rtl")?(" background-image: url("+menuArrowImage+"); background-position: 99% 50%; background-repeat: no-repeat;"):"")+'" onmouseover="handleOnMouseOver(\''+this.id+"')\" onmouseout=\"handleOnMouseOut('"+this.id+"')\""+(this.isClickable?(" onclick=\"handleOnClick('"+this.id+"')\">"):">")+(this.isBlock?this.text:("&nbsp;"+this.text+"&nbsp;"))+"</TD></TR>"}}function reposition_Menu_Item(B){this.top-=B;if(this.childName!=null){this.childMenu.reposition(B)}}function mouseOverNonMenuItem(B){currentMenuItemRef=menuContainerMap[B];if(lastMenuOverRef!=null){clearTimeout(timeoutId);lastMenuOverRef.reset()}if(currentMenuItemRef.hasChildren()){lastMenuOverRef=currentMenuItemRef;currentMenuItemRef.highlight(true);currentMenuItemRef.show()}}function mouseOutNonMenuItem(D){currentMenuItemRef=menuContainerMap[D];if(currentMenuItemRef.hasChildren()){var C="currentMenuItemRef.reset()";timeoutId=setTimeout(C,500)}}function handleOnMouseOver(D){var C=D?D:window.event.srcElement.id;mouseOverEvent(C)}function handleOnMouseOut(D){var C=D?D:window.event.srcElement.id;mouseOutEvent(C)}function handleOnClick(id){var srcId=id?id:window.event.srcElement.id;currentMenuItemRef=menuContainerMap[srcId];var href=currentMenuItemRef.link;if(href.indexOf("(")<0&&href.indexOf("document.location=")<0){if(href.indexOf("?")<0){href+="?navSelected="+currentMenuItemRef.id}else{href+="&navSelected="+currentMenuItemRef.id}document.location=href}else{eval(href)}}var timeoutId2=null;function mouseOverEvent(B){currentMenuItemRef=menuContainerMap[B];clearTimeout(timeoutId);currentMenuItemRef.highlight(true);if(timeoutId2!=null){clearTimeout(timeoutId2)}timeoutId2=setTimeout("hideSiblingChildrenAndShowChildren()",250)}function hideSiblingChildrenAndShowChildren(){if((currentMenuItemRef!=null)&&(currentMenuItemRef.hideSiblingChildren!=null)){currentMenuItemRef.hideSiblingChildren();currentMenuItemRef.showChild()}}function mouseOutEvent(C){currentMenuItemRef=menuContainerMap[C];currentMenuItemRef.highlight(false);var D="currentMenuItemRef.reset()";timeoutId=setTimeout(D,500)}function mouseOutEventNoTimeout(B){currentMenuItemRef=menuContainerMap[B];currentMenuItemRef.highlight(false);currentMenuItemRef.reset()}function redrawMenuContainer(){var D=getPaddingWidth();var C=D-baseMenuXPosition;if(baseMenuXPosition!=D){for(menuReference in menuContainerMap){menuContainerMap[menuReference].adjustLeftPosition(C)}}baseMenuXPosition=D}function findPrimaryMenuItem(D){var C=menuContainerMap[D];while(C){if(C.parent){C=C.parent}else{break}}return C}