if(!window.cwcOverwrite){window.cwcOverwrite={}}if(!window.cwc){window.cwc={}}var d_sn="cwc_sysnav";var i_sn="navmenu";var d_dtc="cwc_detailContent";var d_dt="cwc_detail";var i_dt="detail";var d_ls="cwc_list";var i_ls="list";var d_ld="cwc_listdetail";var i_ld="listdetail";var ld_r="listdetail_resizer";var l_r="detail_resizer";var d_r="list_resizer";var sn_r="nav_resizer";var fw_tt="cwc_toolTray";var fw_bt="cwc_ButtonTray";var fw_bct="cwc_BreadCrumbTray";var fw_bb="cwc_BottomTray";var fw_mg="cwc_MessageTray";var fw_vr="cwc_V";var fw_hr="cwc_H";var sib;var fw_state=null;var sn_state=1;var dt_state=1;var ls_state=1;var cookieJar=null;var cookieName="CWCweb_state";var cookieDies=30;var sn_wAdj=20;var ld_hAdj=20;var fw_wInc=0;var fw_hInc=0;var PRINT_PREVIEW="PrintPrev";var syncOnUrl=false;var savedActivepath="";var agt=navigator.userAgent.toLowerCase();var is_ie=(agt.indexOf("msie")!=-1);var winXO,winYO;var ieAdj_w=20;var ieAdj_h=20;var d_s=(is_ie)?6:6;var d_sAdj=(is_ie)?7:7;var f_sAdj=52;var fw_dw=(is_ie)?(1024-ieAdj_w):1024;var fw_dh=(is_ie)?(768-ieAdj_h):768;var d_sn_dw=200;if(typeof(top.navFrameWidth)!="undefined"){d_sn_dw=top.navFrameWidth}var d_fw_tt=d_sn_dw;var d_dt_pl=d_sn_dw+d_s;var d_fw_vr_pl=d_sn_dw;var d_dt_dw=(fw_dw-d_sn_dw-d_s);var d_ldt_dh=150;var d_ddt_dh=fw_dh-d_ldt_dh-f_sAdj-d_s;var winW,winH,winOW,winOH,screenW,screenH;var bcRetrys=5;var bcDefaultHeight;function initFW(){cwc.getSHW();cwc.getSCL();var a=findObj(fw_vr);if(a){initFW_treeNav(a)}else{initFw_flyout()}}function initFW_treeNav(c){d_dt_dw=(top.winW-d_sn_dw)-d_sAdj;fw_dh=top.winH-iHeadHeight;var d=iTTheight;if(useTabTray){fw_dh=fw_dh-iTABheight}var f=findObj(fw_bct);if(f){d=adjustTray(f,useBreadCrumbTray,top.iBCTheight,d,true)}var e=findObj(fw_mg);if(e){d=adjustTray(e,useMessageTray,top.iMGheight,d,true)}var a=findObj(fw_bt);if(a){a.style.width=Math.max(d_dt_dw-sn_wAdj,1)+"px";d=adjustTray(a,useButtonTray,top.iBTheight,d,true)}var g=d;var j=findObj(fw_bb);if(j){d=adjustTray(j,useBottomTray,top.iBBheight,d,false)}cwc.storedFW();var b=findObj(d_sn);var l=findObj(fw_tt);var h=findObj(d_dt);var k=findObj(d_dtc);if(b){if(b.style.display=="inline"&&l){b.style.width=d_sn_dw+sn_wAdj+"px";l.style.width=Math.max(d_dt_dw-sn_wAdj,1)+"px";c.style.left=d_fw_vr_pl+sn_wAdj+"px";k.style.width=Math.max(d_dt_dw-sn_wAdj,1)+"px";h.style.width=Math.max(d_dt_dw-sn_wAdj,1)+"px";h.style.left=d_dt_pl+sn_wAdj+"px"}else{if(b.style.display=="none"&&h){h.style.width=(Math.max(winW,6)-5)+"px"}}b.style.height=fw_dh+"px"}if(c){c.style.height=fw_dh+"px"}if(h){h.style.height=fw_dh+"px"}if(k){k.style.height=Math.max((fw_dh-d),1)+"px";k.style.top=g+"px"}if(useBottomTray&&j){j.style.width=Math.max(d_dt_dw-sn_wAdj,1)+"px"}if(sn_state==0){sib=d_dt;sn_close(d_sn,sib,"nav_resizer","sn_state")}prepLyr("cwc_threadtabs");if(window.navmenu&&window.navmenu.onResize){window.navmenu.onResize()}}function initFw_flyout(){if((typeof iTTheight)!="undefined"){var c=iTTheight;var e=0;var g=findObj(d_dt);var j=findObj(d_dtc);var f=findObj(fw_bct);if(f){c=adjustTray(f,useBreadCrumbTray,top.iBCTheight,c,true)}var d=findObj(fw_mg);if(d){c=adjustTray(d,useMessageTray,top.iMGheight,c,true)}var a=findObj(fw_bt);if(a){c=adjustTray(a,useButtonTray,top.iBTheight,c,true)}var h=findObj(fw_bb);if(h){c=adjustTray(h,useBottomTray,top.iBBheight,c,false);e=h.offsetHeight}if(g){g.style.height=(winH-g.offsetTop-e)+"px"}if(j){var b=top.is_ie?(j.offsetTop+g.offsetTop+1):j.offsetTop+1;j.style.height=(winH-b-e)+"px"}prepLyr("cwc_threadtabs")}}function adjustTray(d,a,f,e,c){if(a&&!cwc.isElemEmpty(d)){var b=getTrayHeight(d,f);if(c){d.style.top=e+"px"}if(d.id!=top.fw_bt){d.style.height=b+"px"}else{d.style.height=""}e=e+b}else{if(d){d.style.height="0px";d.style.display="none"}}return e}window.onresize=initFW;function getTrayHeight(b,c){var a=0;if(!cwc.isElemEmpty(b)){b.style.display="inline";a=scanChildHeights(b);if(top.is_ie&&b.scrollHeight>a){a=b.scrollHeight}if(a<c){a=c}}return a}function scanChildHeights(d){var a=0;var c=d.childNodes.length;for(i=0;i<c;i++){elemObj=d.childNodes[i];if(elemObj.nodeType==1){var b=elemObj.scrollHeight+elemObj.offsetTop;if(b>a){a=b}}}return a+5}function loadFrameContents(){var d=getURLParams(location);var a=null;var h="";var f="";for(var c in d){if(c=="cwcdtloc"){a=d[c];if(a.match(/\:\/\//)!=null){a="cwc/accessDenied.jsp"}else{if(a.indexOf("javascript:")>-1){a=null}}continue}h+=f+(c+"="+d[c]);f="&"}var g=top.findObj(i_sn);if(g){g.src=buildUrl(srcNavigation,h)}var e=top.cwc.findDetail();var b=(a)?a:srcDetail;e.location.href=buildUrl(b,h)}function buildUrl(a,b){return a+(b!=""?((a.indexOf("?")>-1?"&":"?")+b):"")}function collapse_open(a){if(a==null){return}if(a==d_sn){sib=d_dt;if(findObj(a).style.display=="inline"){sn_close(a,sib,"sn_state")}else{sn_open(a,sib,"sn_state")}}top.initFW()}function sn_open(d,b,e){storedFW();var a=2;findObj(d).style.display="inline";findObj(b).style.left=(d_sn_dw+d_s)+sn_wAdj+a+"px";var c=(d_dt_dw-sn_wAdj)+"px";findObj(b).style.width=c;findObj(d_dtc).style.width=c;if(findObj(fw_tt)){findObj(fw_tt).style.width=c}if(findObj(fw_bt)){findObj(fw_bt).style.width=c}if(findObj(fw_bb)){findObj(fw_bb).style.width=c}findObj(fw_vr).style.left=d_fw_vr_pl+sn_wAdj+"px";CwcCookie.storeInCookie(e,1)}function sn_close(c,b,d){cwc.storedFW();var a=8;findObj(c).style.display="none";findObj(b).style.left=a+"px";findObj(b).style.width=winW-a+"px";findObj(d_dtc).style.width=winW-a+"px";if(findObj(fw_tt)){findObj(fw_tt).style.width=winW-a+"px"}if(findObj(fw_bt)){findObj(fw_bt).style.width=winW-a+"px"}if(findObj(fw_bb)){findObj(fw_bb).style.width=winW-a+"px"}findObj(b).style.height=fw_dh+"px";findObj(fw_vr).style.left="0px";CwcCookie.storeInCookie(d,0)}function resizeSN(b){if(findObj(d_sn).style.display=="none"){return}cwc.storedFW();var a=(fw_wInc!=null)?parseInt(fw_wInc):0;if(b==0){a+=sn_wAdj}else{if(b==1){a-=sn_wAdj}else{a+=b}}CwcCookie.storeInCookie("sn_wAdj",a);top.initFW()}function resetDefaults(){CwcCookie.clearCookie();var a=top.cwc.findDetail();try{if(a.cwcLocalRefresh&&(typeof a.cwcLocalRefresh=="function")){a.cwcLocalRefresh()}else{a.location.href=a.location.href}}catch(b){}}if(!cwc.navcommon){cwc.navcommon={LOCAL:"local"}}cwc.navcommon.addAggregatedApp=function(a){if(top.aggregated_apps){top.aggregated_apps[top.aggregated_apps.length]=a}else{top.aggregated_apps=new Array();top.aggregated_apps[0]=a}};cwc.navcommon.getNodeLabel=function(c,e,d){var b=null;if(c){b=c.getAttribute("label");var a=c.getAttribute("shortLabel");if(e&&a&&a.length>0){b=a}}if(!b||b==""||b==null){b=d}if(!b||b==""){if(c&&c!=null){b=c.getAttribute("name");if(!b||b==""){b=c.getAttribute("label_ids")}}}return b};cwc.navcommon.getAppLabel=function(a){if(a&&top.applicationShortName){return top.applicationShortName}return top.applicationName};cwc.navcommon.cwcReloadNavBranch=function(a){if(cwc.navmenu){cwc.navmenu.reloadNode(a)}else{if(top.frames.navmenu){top.frames.navmenu.reloadNode(a)}}};cwc.navcommon.cwcSynchNavTree=function(){if(cwc.navmenu){}else{if(top.frames.navmenu){top.frames.navmenu.cwc_synchTreeUrl()}}};cwc.navcommon.cwcSynchNavTreeByPath=function(a){if(cwc.navmenu){cwc.navmenu.synchNavTreeByPath(a)}else{if(top.frames.navmenu){top.frames.navmenu.cwc_syncTreeID(a)}}cwc.pushBreadCrumbTray(false)};cwc.navcommon.getDetailDoc=function(){if(!cwc.detailFrameElem){return null}return cwc.detailFrameElem.document||cwc.detailFrameElem.contentDocument};cwc.navcommon.getUrlFromNode=function(e,d,a){var g;g=e.getAttribute("context");if(!g){g=d}var b=e.getAttribute("url");if(b&&b.indexOf("javascript:")==0){}else{if(b!=null&&e.getAttribute("evalClientUrl")=="true"){if(b.substr(0,5)!="http:"&&b.substr(0,6)!="https:"&&b.substr(0,1)!="/"){if(d==cwc.navcommon.LOCAL||d===null){b=(cwc.navmenu)?top.frameworkContext+"/"+b:"../"+b}else{b="/"+g+"/"+b}}}else{if(e.nodeName!="branch"||e.getAttribute("genUrl")=="true"){var c=a.indexOf("?")>0?"&":"?";var f=e.getAttribute("id");if((f&&f.length>0)||(g&&g.length>0)){b=top.addContextToUrl(a,g)+c+"name=navStart";if(f&&f.length>0){b=b+"&id="+encodeURIComponent(f)}}}}}return b};cwc.navcommon.showFWOption=function(c,a){if(c.indexOf("root/cwc_")==0){var b=!top.aggregated_nav||top.aggregated_nav===""||top.aggregated_nav=="null";if(a=="false"&&b){return"remove"}else{return a}}};cwc.findDetail=function(){if(!cwc.detailFrameElem){cwc.detailFrameElem=top.frames.detail;if(!cwc.detailFrameElem){cwc_logMessage("error","initFW.js","Unable to find detail frame")}}return cwc.detailFrameElem};cwc.getFrameElementForPath=function(d,e){if(d&&e&&e!=""){var a=e.split("/");for(var c=0;c<a.length;c++){var b=a[c];if(c==0&&d.name==b){continue}else{if(d.frames[b]){d=d.frames[b]}}}}return d};cwc.getSHW=function(){top.screenW=screen.width;top.screenH=screen.height;top.winW=(self.innerWidth)?self.innerWidth:document.body.clientWidth;top.winH=(self.innerHeight)?self.innerHeight:document.body.clientHeight;top.winOW=(window.outerWidth)?window.outerWidth:screen.availWidth;top.winOH=(window.outerHeight)?window.outerHeight:screen.availHeight};cwc.getSCL=function(){if(document.documentElement&&document.documentElement.scrollTop){top.winXO=document.documentElement.scrollLeft;top.winYO=document.documentElement.scrollTop}if(document.body){top.winXO=document.body.scrollLeft;top.winYO=document.body.scrollTop}else{top.winXO=window.pageXOffset;top.winYO=window.pageYOffset}};cwc.HeightSize=function(){var a=0;if(typeof(window.innerWidth)=="number"){a=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientHeight}}}return a-140};cwc.WidthSize=function(){var a=0;if(typeof(window.innerWidth)=="number"){a=window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientWidth}}}return a};cwc.storedFW=function(){top.fw_wInc=CwcCookie.getCookieVal("sn_wAdj");top.sn_state=CwcCookie.getCookieVal("sn_state");top.sn_wAdj=parseInt(CwcCookie.getCookieVal("sn_wAdj"));top.fw_hInc=CwcCookie.getCookieVal("ld_hAdj");top.ld_hAdj=parseInt(CwcCookie.getCookieVal("ld_hAdj"));if(!top.isNavResizable||sn_wAdj==null||typeof(sn_wAdj)=="undefined"||!sn_wAdj){sn_wAdj=0}if(top.ld_hAdj==null||typeof(top.ld_hAdj)=="undefined"||!top.ld_hAdj){top.ld_hAdj=0}};cwc.getPushPath=function(a,b){var c=document;if(a){c=a.document}else{if(top.cwc&&top.cwc.findDetail&&top.cwc.findDetail()){if(top.cwc.findDetail().listdetail&&top.cwc.findDetail().isListDetailFW){if(typeof(b)=="undefined"||top.findObj(b,top.cwc.findDetail().listdetail.document)){c=top.cwc.findDetail().listdetail.document}else{if(top.cwc.findDetail().list){c=top.cwc.findDetail().list.document}}}else{c=top.cwc.findDetail().document}}}return c};var isTrayCopied=false;cwc.pushTrays=function(b,a){isTrayCopied=false;cwc.pushTopTray(null,b,a);cwc.pushTopButtonTray(null,b,a);cwc.pushBottomButtonTray(null,b,a);cwc.pushToolTray(null,b,a);cwc.pushFormTitleTray(null,b,a);cwc.pushBreadCrumbTray(null,b,a,syncOnUrl);cwc.pushMessageTray(null,b,a);if(isTrayCopied&&isStylesheetCopied){cwc.copyStyleSheets(cwc.getPushPath(b,null),document)}syncOnUrl=false;if(top.initFW){top.initFW()}};cwc.pushTopTray=function(e,b,a){if(findObj("cwc_threadtabs")){var c=(e!=null)?e:"TopTray";var d=cwc.getPushPath(b,c);if(a||!d.getElementById(c)){findObj("cwc_threadtabs").innerHTML=""}else{findObj("cwc_threadtabs").innerHTML=d.getElementById(c).innerHTML;isTrayCopied=true}prepLyr("cwc_threadtabs")}};cwc.copyStyleSheets=function(g,a){var h=false;var e=a.getElementsByTagName("head")[0];if(!a.ssmap){a.ssmap=new Array(a.styleSheets.length);for(var c=0;c<a.styleSheets.length;c++){var b=a.styleSheets[c];a.ssmap[b.href]=b}}for(var c=g.styleSheets.length;c>0;c){var b=g.styleSheets[--c];if(!a.ssmap[b.href]){var f;if(a.createStyleSheet){f=a.createStyleSheet(b.href,1)}else{var d="@import url('"+b.href+"');";f=a.createElement("link");f.rel="stylesheet";f.href="data:text/css,"+escape(d);e.insertBefore(f,e.firstChild)}h=true;a.ssmap[f.href]=f}}return h};cwc.pushTopButtonTray=function(c,b,a){return cwc.pushButtonTray(null,b,a,"ButtonTray",fw_bt,top.iBTheight)};cwc.pushBottomButtonTray=function(c,b,a){return cwc.pushButtonTray(null,b,a,"BottomTray",fw_bb,top.iBBheight)};cwc.pushButtonTray=function(c,k,d,j,e,h){if(cwc.pushTrayContents(c,k,d,j,e,h)&&!d){var g=(c!=null)?c:j;var b=cwc.getPushPath(k,g);var f=findObj(e);var a=cwc.findTray(b,g);cwc.bindRemoteInvokableWidgets(k,a,f)}};cwc.domEventNames=Array("onblur","onchange","onclick","ondblclick","onfocus","onkeydown","onkeypress","onkeyup","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onselect");cwc.bindRemoteInvokableWidgets=function(b,l,m){if(m.hasChildNodes()){var f=l.getElementsByTagName("*");var h=m.getElementsByTagName("*");var k=cwc.parseUriRoot(m.ownerDocument.location.href);var e=cwc.parseUriRoot(l.ownerDocument.location.href);var g=h.length;while(g--){var d=h[g];var a=f[g];if(d&&a){d.cwc_remoteEl=a;var c=cwc.domEventNames.length;while(c--){var j=cwc.domEventNames[c];if(a[j]){d[j]=cwc.invokeRemoteAction}}}if(d.type&&(d.type=="submit"||d.type=="reset"||d.type=="button"||d.type=="image")){d.onclick=cwc.invokeRemoteAction}cwc.adjustImagePath(a,d,e,k);cwc.mangleElemId(d)}}};cwc.mangleElemId=function(a){if(a&&a.id){a.id=cwc.getFrameworkId(a.id)}};cwc.getFrameworkId=function(a){if(a&&a!=""){a="cwc_tray_"+a}return a};cwc.pushMessageTray=function(b,j,c){var h="MessageTray";var g=top.iMGheight;if(!cwc.pushTrayContents(b,j,c,h,fw_mg,g)&&!c){var f=(b!=null)?b:h;var a=cwc.getPushPath(j,f);var e=findObj(fw_mg);var d=cwc.findTraysByClassName(a,f);if(d){d.style.display="none";d=cwc.sortMessages(cwc.addEventAttrToMsgCloseAnchor(d));cwc.copyContent(d,e,g);isTrayCopied=true}}};cwc.pushTrayContents=function(c,l,d,j,e,h){var f=findObj(e);var k=false;if(f){var g=(c!=null)?c:j;var b=cwc.getPushPath(l,g);var a=cwc.findTray(b,g);if(d||!a){cwc.clearContent(f);if(a){k=true}}else{if(a){cwc.copyContent(a,f,h);k=true;isTrayCopied=true}}if(a){a.style.display="none"}}return k};cwc.getMessages=function(a,d){var b=a.cloneNode(true);var c=a.cloneNode(false);while(b.hasChildNodes()){if(b.firstChild.className==d){c.appendChild(b.firstChild)}else{b.removeChild(b.firstChild)}}return c};cwc.sortMessages=function(c){var e=cwc.getMessages(c,"messageError");var b=cwc.getMessages(c,"messageWarning");var a=cwc.getMessages(c,"messageInfo");var d=c.cloneNode(false);while(e.hasChildNodes()){d.appendChild(e.firstChild)}while(b.hasChildNodes()){d.appendChild(b.firstChild)}while(a.hasChildNodes()){d.appendChild(a.firstChild)}return d};cwc.addEventAttrToMsgCloseAnchor=function(d){for(var c=0;c<d.childNodes.length;c++){var a=d.childNodes[c].childNodes[is_ie?0:1];a.attributes.onclick.nodeValue+="initFW();";var b=function(){return a.onkeydown};a.onkeydown=function(f){b(f);initFW();return false}}return d};cwc.copyContent=function(d,b,c){if(d&&b){b.innerHTML=d.innerHTML;var a=top.getTrayHeight(b,c);b.style.height=a+"px"}};cwc.adjustImagePath=function(d,f,c,a){if(f.nodeName=="IMG"||(f.type&&f.type=="image")){if(!a){a=cwc.parseUriRoot(f.ownerDocument.location.href)}if(!c){c=cwc.parseUriRoot(d.ownerDocument.location.href)}if(c!=a){var e=f.src;var b=e.indexOf("://");if(b>-1&&e.indexOf(a)==0){e=f.src.substring(a.length);b=-1}if(b==-1){f.src=c+e}}}};cwc.parseUriRoot=function(a){var b=a.split("/");if(b.length>4){a=b[0]+"/"+b[1]+"/"+b[2]+"/"+b[3]+"/"}return a};cwc.findTraysByClassName=function(a,d){var b;if(a&&d){var l=a.getElementsByTagName("div");for(var h=0,f=l.length;h<f;h++){var k=l[h];if(k.className==d){if(!b){b=k}else{if(k.childNodes){for(var g=0,c=k.childNodes.length;g<c;g++){b.appendChild(k.childNodes[g])}}}}}}return b};cwc.findTray=function(j,g){var f;if(j&&g){f=j.getElementById(g);if(!f){var b=g.length;var d=j.getElementsByTagName("div");for(var c=0,a=d.length;c<a;c++){var h=d[c];if(h.id.indexOf(g,h.id.length-b)>-1){f=h;break}}}}return f};cwc.invokeRemoteAction=function(d){var c=cwcGetTarget(d);var b=(window.event)?event.type:d.type;var a=c.cwc_remoteEl;return cwc.recursiveInvokeRemoteAction(a,d,b)};cwc.recursiveInvokeRemoteAction=function(d,f,c){if(d){try{var b=d["on"+c];if(c=="click"&&d.type&&(d.type=="submit"||d.type=="reset"||d.type=="button"||d.type=="image")){d.click()}else{if(b){return b(f)}else{d=d.parentNode;return cwc.recursiveInvokeRemoteAction(d,f,c)}}}catch(a){}}};cwc.clearContent=function(b){var a=b.cloneNode(false);b.parentNode.insertBefore(a,b);b.parentNode.removeChild(b)};cwc.pushToolTray=function(c,b,a){cwc.pushButtonTray(null,b,a,"ToolTrayExt","cwc_toolTrayExt",top.iTTheight)};cwc.pushFormTitleTray=function(h,b,a){var e=findObj("cwc_fName");if(e){var f=cwc.getPushPath(b);var c=(h!=null)?h:"FormTitle";if(a||(!f.getElementById(c)&&f.title==null)){e.innerHTML="";top.document.title=top.applicationTitle}else{var g="";if(f.getElementById(c)){var d=f.getElementById(c);if(d){e.innerHTML=d.innerHTML;if(d.hasChildNodes()){g=cwc.depthFirstTextConcat(d)}else{g=d.innerHTML}}}else{g=f.title;e.innerHTML=g}if(cwc.WhiteSpaceRegExp.test(g)){top.document.title=top.applicationTitle;isTrayUpdated=true}else{top.document.title=top.applicationTitle+": "+g.trim()}}}};cwc.depthFirstTextConcat=function(a){var b="";a=a.firstChild;while(a){if(a.nodeType==3){b+=a.nodeValue}else{if(a.hasChildNodes()){b+=cwc.depthFirstTextConcat(a)}}a=a.nextSibling}return b};cwc.pushBreadCrumbTray=function(g,b,a,c){if(!bcDefaultHeight){bcDefaultHeight=top.iBCTheight}else{top.iBCTheight=bcDefaultHeight}if(!cwc.pushTrayContents(g,b,a,"BreadCrumbTray",fw_bct,top.iBCTheight)){var d=findObj(fw_bct);if(d){if(top.navmenu){if(top.navmenu.treeLoaded){var e=null;if(c){e=top.navmenu.cwc_genBreadCrumbTrailUrl();top.syncOnUrl=true}if(e==null){e=top.navmenu.cwc_genBreadCrumbTrail()}d.innerHTML=(e!=null?e:"");bcRetrys=5;if(e!=null){top.navmenu.cwc_syncTree()}}else{if(bcRetrys>0){bcRetrys--;setTimeout("cwc.pushBreadCrumbTray(false);",2000)}}}else{if(top.cwc.navmenu){var f=null;if(c){f=top.cwc.findDetail().location.href}top.cwc.navmenu.initBreadcrumb(f);d.innerHTML=top.cwc.navmenu.breadCrumb.print()}}d.style.height=top.iBCTheight+"px"}}};cwc.getLayer=function(d){var c=d.split(".");var b=top;var a;alert(c);for(a=0;a<c.length;++a){if(!b){alert("ERROR: Failed to find target:"+c[a-1]+" in "+d);break}if(c[a]=="top"){continue}if(c[a]=="_top"){continue}else{if(c[a]=="opener"){if(window.opener){b=window.opener.top}else{b=null}}else{if(b==top&&top[c[a]]){b=top[c[a]]}else{if(b.frames&&b.frames.length>0){b=b.frames[c[a]]}else{b=b.document.getElementById(c[a])}}}}}return b};cwc.displayStatusMsg=function(a){window.status=a;return true};cwc.getCookie=function(e){var g=e.length;var d=document.cookie.split(";");var a=d.length;var f=0;var b;while(f<a){var c=d[f].indexOf("=");if(c>0&&d[f].substring(0,c).indexOf(e)>=0){return unescape(d[f].substring(c+1))}f++}return""};cwc.preloadImages=function(){var f=document;if(f.images){if(!f.p){f.p=new Array()}var e,c=f.p.length,b=cwc.preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.p[c]=new Image;f.p[c++].src=b[e]}}}};cwc.popUpWindow=function(u,y,q,z,c,x,k,n,p,w,a,t){var f="";var r="decorator=";var C="popup";var h="";var j="";var e=new Array();var g=null;e.location=0;e.menubar=0;e.status=0;e.toolbar=0;e.alwaysRaised=1;e.resizable="yes";e.scrollbars=0;e.directories=0;e.height=585;e.width=550;if(a===undefined){r+=C}else{if(a&&a.length>0){r+=a}else{r=""}}if(w){var B=w.split(",");var d,v;for(v=0;v<B.length;v++){d=B[v].split("=");e[d[0]]=d[1]}}if(c=="yes"||c=="Yes"){e.scrollbars=1}if(k){if(k=="no"||k=="No"){e.resizable=0}else{e.resizable=1}}if(q&&q>0){e.height=q}if(z&&z>0){e.width=z}if(p&&top.frameworkContext){h=cwc.getFrameworkContext(cwc.detailFrameElem);if(u.indexOf("/")!=0){h+="/"}}var o=u.indexOf("?")<0;var s=(o)?"?":"";if(x&&x!=" "){var m=x.split(",");for(count=0;count<m.length;count++){if(count==0){if(r.length>0){f=s+r+"&"+m[count]}else{f=s+m[count]}}else{f=f+"&"+m[count]}}}else{if(r.length>0){f=s+r}}y=cwc.getScopedPopupName(y);if(top.winList){g=top.winList.get(y);if(g){if(!g.closed&&g.document){e.height=g.outerHeight||g.document.body.clientHeight;e.width=g.outerWidth||g.document.body.clientWidth}top.winList.remove(y);g=null}}for(var l in e){j=j+l+"="+e[l]+","}j=j.substr(0,j.length-1);t=(t==null)?window:t;var b=t.open(h+u+f,y,j);if(b){var A=t.top;if(!A){A=t.opener.top}if(A.winList&&(n&&!g)){A.winList.add(y,b)}b.focus()}return b};cwc.getScopedPopupName=function(a){if(!a){a="popupWindow"}if(top.sessionHash!="null"){a+="_"+top.sessionHash}return a};cwc.showHideOptions=function(b){var a=findObj(b);if(a){if(a.style.display!="block"){a.style.display="block"}else{a.style.display="none"}}};cwc.showMessages=function(){var a="location=0,menubar=0,status=1,toolbar=0,fullscreen=0,hotkeys=0";cwc.popUpWindow("/cwc/messages.jsp","Messages",280,450,"no","","yes",true,true,a)};cwc.fwHelp=function(b,d,c){var a=findObj("cwc_fwHelp");var e="menubar=0,toolbar=0,resizable=1,width=500,height=580,scrollbars=0,status=0";if(a.style.display=="none"){a.style.display="inline"}else{a.style.display="none"}};cwc.setCursor=function(a){if(top.document.body.style.cursor!=a){top.document.body.style.cursor=a}};cwc.addBookmark=function(b,a){if(window.sidebar){window.sidebar.addPanel(b,a,"")}else{if(document.all){window.external.AddFavorite(a,b)}else{if(window.opera&&window.print){return true}}}return false};cwc.cwc_addBookmark=function(c){var a=false;if(c==null||typeof(c)=="undefined"){cwc.addBookmark(document.title,location.href)}else{if(c=="detail"&&!top.cwc.findDetail().isListDetailFW){var b=top.cwc.findDetail().bookmarkThisView;if(b&&typeof(b)=="function"){top.cwc.findDetail().bookmarkThisView()}else{cwc.addBookmark(top.cwc.findDetail().document.title,top.cwc.findDetail().location.href)}}else{if(top.cwc.findDetail().isListDetailFW){if(!top.cwc.navmenu){top.findObj("cwc_addBookmarkD").style.display="none";top.findObj("bookmark_list").style.display="inline";top.findObj("bookmark_listdetail").style.display="inline"}if(c=="list"){var b=top.cwc.findDetail().list.bookmarkThisView;if(b&&typeof(b)=="function"){top.cwc.findDetail().list.bookmarkThisView()}else{cwc.addBookmark(top.cwc.findDetail().list.document.title,top.cwc.findDetail().list.location.href)}cwc.resetAddBookmark();a=true}else{if(c=="listdetail"){var b=top.cwc.findDetail().listdetail.bookmarkThisView;if(b&&typeof(b)=="function"){top.cwc.findDetail().listdetail.bookmarkThisView()}else{cwc.addBookmark(top.cwc.findDetail().listdetail.document.title,top.cwc.findDetail().listdetail.location.href)}cwc.resetAddBookmark();a=true}}}}}if(!a){setTimeout("cwc.resetAddBookmark()",10000)}};cwc.resetAddBookmark=function(){top.findObj("cwc_addBookmarkD").style.display="inline";top.findObj("bookmark_list").style.display="none";top.findObj("bookmark_listdetail").style.display="none"};cwc.print=function(e){var d=false;var a=top.cwc.findDetail();var b=(e!=null)?e.name:null;if(top.usePrintPreview==false){if(b=="contentsFrame"||(b=="detail"&&a&&!a.isListDetailFW)||(a&&a.isListDetailFW&&(b=="list"||b=="listdetail"))){cwc.printThisFrame(b,e!=null?e.top:window);return}}if(e==null||typeof(e)=="undefined"){cwc.openPrintPreview(document,null)}else{if(e==a&&a.isListDetailFW){if(!top.cwc.navmenu){top.findObj("cwc_printD").style.display="none";top.findObj("print_list").style.display="inline";top.findObj("print_listdetail").style.display="inline"}if(e=="list"){var c=a.list.printThisView;if(c&&typeof(c)=="function"){a.list.printThisView()}else{cwc.openPrintPreview(a.list.document,e)}cwc.resetPrint();d=true}else{if(e=="listdetail"){var c=a.listdetail.printThisView;if(c&&typeof(c)=="function"){a.listdetail.printThisView()}else{cwc.openPrintPreview(a.listdetail.document,e)}cwc.resetPrint();d=true}}}else{var c=e.printThisView;if(c&&typeof(c)=="function"){c()}else{if(e.isThirdPartyProxy!=undefined){cwc.openPrintPreview(null,e)}else{cwc.openPrintPreview(e.document,e)}}}}if(!d){setTimeout("cwc.resetPrint()",10000)}};cwc.openPrintPreview=function(m,b){var f=m?m.location:null;var c;var h=(b!=null)?b.name:null;var o=top.frameworkContext||(!top.opener?"":(top.opener.frameworkContext||top.opener.top.frameworkContext));if(b&&b.cwc&&b.cwc.printableDetailURI&&b.cwc.printableDetailURI!=""&&b.cwc.printableDetailURI!="null"){c=b.cwc.printableDetailURI}else{if(top.printableDetailURI&&top.printableDetailURI!=""&&top.printableDetailURI!="null"){c=top.printableDetailURI}else{if(f){c=f.href}else{c=o+"/cwc/printable.jsp"}}}var g=c.lastIndexOf("printable");if(g<0){var d="";g=c.lastIndexOf("?",c.length);if(g>=0){var l=c.substring(g+1,c.length);if(l.indexOf("decorator=")<0){d="&"+c.substring(g+1,c.length)}}var e=c.indexOf("?");if(e>0){c=c.substring(0,e)}var n="";if(h&&h!="null"){n="&cwcPrintSrc="+h}var a=cwc._getBaseLoc(m);c=a?a:c;f=o+"/cwc/printable.jsp?printable=true&cwcPrint=currentView"+n+"&cwcLoc="+encodeURIComponent(c)+d}var k=(document.all)?"no":"yes";var p="location=0,menubar=1,status=0,toolbar=0,fullscreen=0,hotkeys=0";cwc.popUpWindow(f,PRINT_PREVIEW,550,850,k,"","yes",true,false,p,"",(b!=null?b.top:top))};cwc._getBaseLoc=function(d){var a;var b;var c=d.document||d;if(c.getElementById("cwcPrintSrcFrame")&&c.getElementById("cwcPrintSrcFrame")!=""){frame=c.getElementById("cwcPrintSrcFrame").value;c=cwc.getFrameDocument(c,frame);a=c.document.getElementsByTagName("base");b=(a&&a.length>0)?a.item(0).href:c.location.href}else{a=c.getElementsByTagName("base");b=(a&&a.length>0)?a.item(0).href:null}return b};cwc.getFrameDocument=function(b,c){if(b&&c&&c!=""){var g=c.split("/");if(top.is_ie){for(var f=0;f<g.length;f++){var a=g[f];if(b.frames(a)){b=b.frames(a)}}}else{var h=b.getElementsByTagName("IFRAME");for(var f=0;f<g.length;f++){var a=g[f];if(h.length>0){var k=false;for(var e=0;e<h.length;e++){var d=h[e];if(d&&d.id==a){b=h[e].contentWindow;k=true}}if(k==false||!k){break}}}}}return b};cwc.resetPrint=function(){top.findObj("cwc_printD").style.display="inline";top.findObj("print_list").style.display="none";top.findObj("print_listdetail").style.display="none"};cwc.updateClientSideState=function(b,c){if(top.navmenu&&b!=top.navmenu.navMenuUserAuth){if(top.navmenu.onLoad){top.navmenu.onLoad()}else{top.navmenu.document.location.reload()}}top.isUserAuthenticated=b;if(top.findObj){var a=top.findObj("cwc_logoutButton");if(a){if(b){a.style.display="inline"}else{a.style.display="none"}}}checkShowHideMasthead(c)};cwc.logoutButton=function(b){if(top.findObj){var a=top.findObj("cwc_logoutButton");if(a){if(b){a.style.display="inline"}else{a.style.display="none"}}}};cwc.printThisFrame=function(a,b){if(a=="list"){top.cwc.findDetail().list.focus();top.cwc.findDetail().list.print()}else{if(a=="listdetail"){top.cwc.findDetail().listdetail.focus();top.cwc.findDetail().listdetail.print()}else{b.frames[a].focus();b.frames[a].print()}}};cwc.stripParamsFromUrl=function(b){var a=b;var c=a.indexOf("?");if(c!=-1){a=a.substring(0,c)}c=a.indexOf(";");if(c!=-1){a=a.substring(0,c)}return a};cwc.buildSkipLinkStart=function(b,a){return SKIPLINK_START.replace(/{id}/g,b).replace(/{title}/g,a)};cwc.buildSkipLinkEnd=function(b,a){return SKIPLINK_END.replace(/{id}/g,b).replace(/{title}/g,a)};