function changeImage(b,a){if((img=findObject(b))!=null){img.src=a}}function findObject(a){objRef=null;if(document.images[a]!=null){objRef=document.images[a]}else{if(document.all){objRef=document.all[a]}else{if(document.getElementById){objRef=document.getElementById(a)}}}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(b,c,a){changeProperty(b,"height",a);changeProperty(b,"width",c)}function getPageHeight(){var a=0;if(document.layers){a=window.innerHeight+window.pageYoffset}else{if(document.all){a=document.body.clientHeight+document.body.scrollTop}else{if(document.getElementById){a=window.innerHeight+window.pageYOffset}}}return a}function getPageWidth(){var a=0;if(document.layers){a=window.innerWidth+window.pageXOffset}else{if(document.all){a=document.body.clientWidth+document.body.scrollLeft}else{if(document.getElementById){a=window.innerWidth+window.pageXOffset}}}if(isMac()&&isIE()){a-=350}if(isIE()){a+=13}return a}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(a){this.strArguments=a;this.arrArguments=new Array();this.tmpArgument=new Array();this.objArguments=new Object();this.arrArguments=a.split(",");for(var b=0;b<this.arrArguments.length;b++){this.tmpArgument=this.arrArguments[b].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(a){if(this.objArguments[a]){return this.objArguments[a]}else{return null}}function get_String_Parameter(b){var a=this.getParam(b);if(a!=null){return String(a)}else{return""}}function get_Number_Parameter(b){var a=Number(this.getParam(b));if(a!=null&&!isNaN(a)){return a}else{return 0}}function get_Boolean_Parameter(a){return this.getParam(a)=="true"}function set_Parameter(b,a){this.objArguments[b]=a}function get_Parameter_String(){var a="";for(var b in this.objArguments){a+=","+b+"="+this.objArguments[b]}return a.substring(1)}function get_Alert_Box(){var a="";var c=this.strArguments.split(",");for(var b=0;b<c.length;b++){a+=c[b]+"\n"}alert(a)}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(a){return this.arrayInstance[a]}function push_To_Array(a){if(this.arrayInstance.push){this.arrayInstance.push(a)}else{this.arrayInstance[this.length]=a}this.setLength()}function pop_From_Array(){if(this.arrayInstance.pop){var d=this.arrayInstance.pop();this.setLength();return d}else{var b=this.arrayInstance[(this.length-1)];var a=new LMNKArray();for(var c=0;c<(this.length-1);c++){a.push(this.get(c))}this.arrayInstance=a.arrayInstance;this.setLength();return b}}function concat_Array_Elements(){for(var a=0;a<arguments.length;a++){if(arguments[a].charAt){this.push(arguments[a])}else{for(var b=0;b<arguments[a].length;b++){this.push(arguments[a][b])}}}}function join_Array_Elements(c){if(this.arrayInstance.join){return this.arrayInstance.join(c)}else{var a="";for(var b=0;b<this.length;b++){a+=this.get(b);if(b!=(this.length-1)){a+=c}}return a}}function reverse_Array_Elements(){if(this.arrayInstance.reverse){this.arrayInstance.reverse()}else{var a=new LMNKArray();for(var b=0;b<this.length;b++){a.unshift(this.get(b))}this.arrayInstance=a.arrayInstance;this.setLength()}}function shift_To_Array(){if(this.arrayInstance.shift){var c=this.arrayInstance.shift();this.setLength();return c}else{var c=this.get(0);var a=new LMNKArray();for(var b=1;b<this.length;b++){a.push(this.get(b))}this.arrayInstance=a.arrayInstance;this.setLength();return c}}function unshift_From_Array(d){if(this.arrayInstance.unshift){var c=this.arrayInstance.unshift(d);this.setLength();return c}else{var a=new LMNKArray();a.push(d);for(var b=0;b<this.length;b++){a.push(this.get(b))}this.arrayInstance=a.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(f,c){var a=new LMNKArray();var d=new LMNKArray();if(f==null){f=0}if(c==null){c=this.length-f}for(var b=0;b<this.length;b++){if(b>=f&&c-->=0){d.push(this.get(b))}else{a.push(this.get(b))}}if(arguments.length>2){for(var e=2;e<arguments.length;e++){a.push(arguments[e])}}this.arrayInstance=a.arrayInstance;this.setLength();return d}function slice_Array(d,a){var c=new LMNKArray;if(d==null){d=0}if(a==null){a=this.length}for(var b=d;b<a;b++){c.push(this.get(b))}return c}function create_LMNK_Array(){args=arguments[0];for(var a=0;a<args.length;a++){this.push(args[a])}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(a){isCentered=a;baseMenuXPosition=getPaddingWidth();menuXPosition=baseMenuXPosition}function getPaddingWidth(){if(menuLeftPadding!=null){menuLeftPaddingWidth=menuLeftPadding}var a=0;if(isCentered){if(flyoutOrientation=="rtl"){a=Math.floor(getPageWidth()-((getPageWidth()-contentWidth)/2))}else{a=Math.floor((getPageWidth()-contentWidth)/2)}}a+=menuLeftPaddingWidth;if(a<0){if(menuLeftPadding>0){return menuLeftPadding}if(flyoutOrientation=="rtl"){return getPageWidth()-16}else{return 0}}else{return a}}function setIsCentered(a){isCentered=a;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 a=new Arguments(arguments[0]);this.OVER_CLASS=a.getString("mouseOverClass");this.OUT_CLASS=a.getString("mouseOutClass");this.id=a.getString("id");this.width=a.getNumber("width");this.subMenuLeft=menuXPosition;var b=a.getString("text");if(b){this.text=b}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 a=new Arguments(arguments[0]);a.setParam("top",menuTopPosition);a.setParam("left",this.subMenuLeft);var b=new Menu(a.toString());this.childMenu=b;b.setParent(this);return b}function highlight_Primary_Menu_Item(a){if(a){changeProperty(this.id,"className",this.OVER_CLASS)}else{changeProperty(this.id,"className",this.OUT_CLASS)}this.isHighlighted=a}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(b){var a=new Arguments(b);this.id=a.getString("id");this.width=a.getNumber("width");this.parent=a.getString("parent");this.top=a.getNumber("top");this.left=a.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(f,g,e,d){if(!this.menuItemAlternateUsed){var c=new Arguments(arguments[0]);var b=c.getNumber("height");if(((this.lowerBuffer-b)<=(b+5))){if((this.upperBuffer>b)){this.top-=b;this.upperBuffer-=b;this.repositionChildren(b)}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-=b}var a=new MenuItem(f+",top="+this.getTop()+",left="+this.left,g,e,d,this);this.childMenuItems.push(a);this.height+=a.height;this.bottom+=a.height;return a}else{return new NullMenu()}}function add_Menu_Alternate(c,d,b,a){this.menuItemAlternate=new MenuItem(c+",left="+this.left+",isAlternate=true","<B><NOBR>"+d+"...</NOBR></B>",b,a,this);return this.menuItemAlternate}function has_Child_Menu_Items(){return this.childMenuItems.length>0}function adjust_Menu_Left_Position(a){this.left+=a;if(this.left<0){this.left=0}changeProperty(this.id,"left",this.left)}function adjust_Menu_Width(a){if(this.width<=a){this.width=a}}function set_Menu_Parent(a){this.parent=a}function set_Menu_Left_Position(a){this.left=a}function get_Menu_Top(){var b=this.top;if(this.childMenuItems.length>0){for(var a=0;a<this.childMenuItems.length;a++){b+=this.childMenuItems.get(a).height}}return b}function show_Menu(){var d=findObject(this.id);if(d.innerHTML.length==0){var b="";for(var a=0;a<this.childMenuItems.length;a++){var c=this.childMenuItems.get(a);if(c.html){b+=c.html}}d.innerHTML='<div class="navPrimaryDropdown '+this.id+'"><TABLE width="'+this.width+'" cellpadding="0" cellspacing="0" class="menuItemTable">'+b+"</TABLE></div>"+(!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(a){this.parent.highlight(a)}function reset_Child_Menu_Items(){this.highlight(false);for(var a=0;a<this.childMenuItems.length;a++){if(this.childMenuItems.get(a).childMenu!=null){if(this.childMenuItems.get(a).childMenu.isOpen){this.childMenuItems.get(a).childMenu.hide();this.childMenuItems.get(a).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 a=0;a<this.childMenuItems.length;a++){this.childMenuItems.get(a).draw()}for(var a=0;a<this.childMenuItems.length;a++){if(this.childMenuItems.get(a).childMenu!=null&&!this.childMenuItems.get(a).isAlternate){this.childMenuItems.get(a).childMenu.draw()}}}}function adjust_Verticle(a){this.top=-a}function reposition_Child_Menu_Items(b){for(var a=0;a<this.childMenuItems.length;a++){if(this.childMenuItems.get(a)!=this){this.childMenuItems.get(a).reposition(b)}}}function MenuItem(e,f,d,c,b){var a=new Arguments(e);this.id=a.getString("id");this.height=a.getNumber("height");this.width=a.getNumber("width");this.top=a.getNumber("top");if(flyoutOrientation=="rtl"){this.left=a.getNumber("left")-b.width}else{this.left=a.getNumber("left")}this.isAlternate=(a.getString("isAlternate")=="true");this.normalStyle=c;this.highlightStyle=this.normalStyle+"Highlight";this.text=f;this.link=d;this.isClickable=a.getString("isClickable")=="true";this.isBlock=a.getString("isBlock")=="true";this.bottom=this.top+this.height;this.isOpen=false;this.parent=b;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(a){var b=new Menu(a+",top="+this.getSubMenuTop()+",left="+this.getSubMenuLeft());this.childMenu=b;b.setParent(this);return b}function has_Child_Menu(){return this.childMenu!=null}function adjust_Menu_Item_Left_Position(a){this.left+=a;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(a){if(a){changeProperty(this.id,"className",this.highlightStyle)}else{changeProperty(this.id,"className",this.normalStyle)}this.isHighlighted=a}function show_Child_Menu(){if(this.childMenu!=null){this.childMenu.show()}}function hide_Menu_Child_Items(){for(var a=0;a<this.parent.childMenuItems.length;a++){if(this.parent.childMenuItems.get(a)!=this){this.parent.childMenuItems.get(a).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(a){this.top-=a;if(this.childName!=null){this.childMenu.reposition(a)}}function mouseOverNonMenuItem(a){currentMenuItemRef=menuContainerMap[a];if(lastMenuOverRef!=null){clearTimeout(timeoutId);lastMenuOverRef.reset()}if(currentMenuItemRef.hasChildren()){lastMenuOverRef=currentMenuItemRef;currentMenuItemRef.highlight(true);currentMenuItemRef.show()}}function mouseOutNonMenuItem(b){currentMenuItemRef=menuContainerMap[b];if(currentMenuItemRef.hasChildren()){var a="currentMenuItemRef.reset()";timeoutId=setTimeout(a,500)}}function handleOnMouseOver(b){var a=b?b:window.event.srcElement.id;mouseOverEvent(a)}function handleOnMouseOut(b){var a=b?b:window.event.srcElement.id;mouseOutEvent(a)}function handleOnClick(id){var srcId=id?id:window.event.srcElement.id;if(srcId=="Online_Books"){loadBookPlayer();return}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(a){currentMenuItemRef=menuContainerMap[a];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(a){currentMenuItemRef=menuContainerMap[a];currentMenuItemRef.highlight(false);var b="currentMenuItemRef.reset()";timeoutId=setTimeout(b,500)}function mouseOutEventNoTimeout(a){currentMenuItemRef=menuContainerMap[a];currentMenuItemRef.highlight(false);currentMenuItemRef.reset()}function redrawMenuContainer(){var b=getPaddingWidth();var a=b-baseMenuXPosition;if(baseMenuXPosition!=b){for(menuReference in menuContainerMap){menuContainerMap[menuReference].adjustLeftPosition(a)}}baseMenuXPosition=b}function findPrimaryMenuItem(b){var a=menuContainerMap[b];while(a){if(a.parent){a=a.parent}else{break}}return a};
