
var docIDloc=window.location.href.indexOf("docID=")
var documentID=window.location.href.substr(docIDloc+6,32)
var editWindow;var preview="no"
var ADSLibURL=window.location.href.toLowerCase()
function getFileSubdirectory(fileType){switch(fileType.toUpperCase()){case"PDF":return"pdf"
case"GIF":return"images"
case"JPG":return"images"
case"PNG":return"images"
default:return"other"}}
function selectFileAndClose(filename){var fName=replaceSubstring(filename," ","+")
var dbPath=document.forms[0].dbPath.value
var x=dbPath.lastIndexOf("/")
var dbName=dbPath.substring(x+1,dbPath.length-4)
var fileType=fName.substr(fName.lastIndexOf(".")+1)
openerField.value="/dcmsSites/"+dbName+"/"+
getFileSubdirectory(fileType)+"/"+fName
self.close();}
function getLibraryGraphic(fieldName,dbPath){if(!dbPath){var dbPath=window.document.forms[0].dbPath.value}
abURL=dbPath+"/frmImageSelector?OpenForm";filenameField=fieldName;opts='width=680,height=500,resizable=yes,scrollbars=yes';popupWin=addWindow(junctionName()+abURL,'ImageSelector',opts)
popupWin.focus()}
function setVisibilityIE(command,layername){var x=document.getElementById(layername)
if(x!=null){x.style.visibility=(command=="show")?"visible":"hidden"}}
function checkEditWindow(){if(!WM_readCookie("openEditWindow")){}
else{setVisibilityIE("hide","ActionBox")}}
function handleUnload(){if(editWindow){if(preview=="no"){editWindow.close();}}}
var WM_acceptsCookies=false;if(document.cookie==''){document.cookie='WM_acceptsCookies=yes';if(document.cookie.indexOf('WM_acceptsCookies=yes')!=-1){WM_acceptsCookies=true;}}else{WM_acceptsCookies=true;}
function WM_setCookie(name,value,hours,path,domain,secure){if(WM_acceptsCookies){var not_NN2=(navigator&&navigator.appName&&(navigator.appName=='Netscape')&&navigator.appVersion&&(parseInt(navigator.appVersion)==2))?false:true;if(hours&&not_NN2){if((typeof(hours)=='string')&&Date.parse(hours)){var numHours=hours;}else if(typeof(hours)=='number'){var numHours=(new Date((new Date()).getTime()+hours*3600000)).toGMTString();}}
document.cookie=name+'='+escape(value)+((numHours)?(';expires='+numHours):'')+((path)?';path='+path:'')+((domain)?';domain='+domain:'')+((secure&&(secure==true))?'; secure':'');}}
function FAP_setCookie(name,value,hours,path,domain,secure){if(WM_acceptsCookies){var not_NN2=(navigator&&navigator.appName&&(navigator.appName=='Netscape')&&navigator.appVersion&&(parseInt(navigator.appVersion)==2))?false:true;if(hours&&not_NN2){if((typeof(hours)=='string')&&Date.parse(hours)){var numHours=hours;}else if(typeof(hours)=='number'){var numHours=(new Date((new Date()).getTime()+hours*3600000)).toGMTString();}}
path="/";document.cookie=name+'='+escape(value)+((numHours)?(';expires='+numHours):'')+((path)?';path='+path:'')+((domain)?';domain='+domain:'')+((secure&&(secure==true))?'; secure':'');}}
function WM_readCookie(name){if(document.cookie==''){return false;}else{var firstChar,lastChar;var theBigCookie=document.cookie;firstChar=theBigCookie.indexOf(name);var NN2Hack=firstChar+name.length;if((firstChar!=-1)&&(theBigCookie.charAt(NN2Hack)=='=')){firstChar+=name.length+1;lastChar=theBigCookie.indexOf(';',firstChar);if(lastChar==-1)lastChar=theBigCookie.length;return unescape(theBigCookie.substring(firstChar,lastChar));}else{return false;}}}
function WM_killCookie(name,path,domain){var theValue=WM_readCookie(name);if(theValue){document.cookie=name+'='+theValue+'; expires=Fri, 13-Apr-1970 00:00:00 GMT'+((path)?';path='+path:'')+((domain)?';domain='+domain:'');}}
function selectParent(key,label){window.opener.document.forms[0].ParentLabelTX.value=label
window.opener.document.forms[0].ParentRecordkeyTX.value=key
window.close()}
function launchWhatsNew(title,desc){var x=window.location.href.indexOf("&cmd=WhatsNew")
sourceURL=window.location.href.substring(0,x)
sourceSite=window.location.href.substring(x+13)
WhatsNewTitle=title
WhatsNewDesc=desc
launchApplication("/webserv/WhatsNew.nsf/frmWhatsNewItemPopUp?OpenForm&Site="+sourceSite)}
function addressBox(fieldName,fL,mV){browser='nn';if((ADSLibURL.indexOf("dominodev")>-1)||(ADSLibURL.indexOf("dominouat")>-1)||(ADSLibURL.indexOf("portal02")>-1)){abURL="/webserv/webdev.nsf/NABLookupCN?OpenForm&"+fL}
else{abURL="/dcms/dcmsutil.nsf/frmDALookupCN?OpenForm&"+fL}
addressField=fieldName;multiValue=mV;wheight=(browser=="nn")?"250":"200";wwidth=(browser=="nn")?"620":"550";opts='width='+wwidth+',height='+wheight+',resizable=yes';popupWin=window.open(abURL,'abWindow',opts);popupWin.focus()}
function convertFromCommonName(input){var i=0;i=input.lastIndexOf(" ");lastname=input.substr(i+1);firstname=input.substring(0,i);if(lastname=="Jr"){i=firstname.lastIndexOf(" ");lastname=input.substr(i+1);firstname=input.substring(0,i)}
return lastname+" , "+firstname}
function convertToCommonName(input){var i=0;i=input.indexOf(' ,');if(i>0){lastname=input.substring(0,i);firstname=input.substr(i+3);return firstname+" "+lastname}
return input}
function getWebsealJunction(){if(location.href.indexOf("localhost")>-1){return"";}
if(location.href.indexOf("https://lb04")>-1){return"/eudhp";}
if(location.href.indexOf("desktopdev")>-1){return"/eudhpdev";}
if(location.href.indexOf("desktoptest")>-1){return"/eudhptest";}
if(location.href.indexOf("desktopuat")>-1){return"/eudhpuat";}
if(location.href.indexOf("desktopcert")>-1){return"/eudhpcert";}
if(location.href.indexOf("https://desktop.")>-1){return"/eudhpprod";}
if(location.href.indexOf("https://agentdesktop.")>-1){return"/eudhpprod";}}
function getSearchURL(){var searchURL;if(location.href.indexOf("dev.")>-1||location.href.indexOf("localhost")>-1){searchURL="https://lb04.firemansfund.com/wasdev05u/Autonomy/SearchResults.jsp";}
else if(location.href.indexOf("test.")>-1){searchURL="https://lb03.firemansfund.com/wastest05u/Autonomy/SearchResults.jsp";}
else if(location.href.indexOf("uat.")>-1){searchURL="https://lbuat.firemansfund.com/jct05u/Autonomy/SearchResults.jsp";}
else if(location.href.indexOf("cert.")>-1){searchURL="https://lb02.firemansfund.com/jct05u/Autonomy/SearchResults.jsp";}
else{searchURL="https://lb01.firemansfund.com/jct05u/Autonomy/SearchResults.jsp";}
document.write("<FORM METHOD=\"POST\" NAME=\"query_form1\" action=\""+searchURL+"\">");}
function openFAPHelp(url){addWindow(getWebsealJunction()+url,"helpWin","height=450, width=505, scrollbars=yes");}
function openFAPFeedBack(){addWindow(getWebsealJunction()+"/webserv/sharedfeedback.nsf/FB?openform&WG=phonebook&FBTitle=phone+book","FeedbackWin","height=600, width=800, scrollbars=yes");}
function clearSearchFields(){document.forms[0].firstname.value="";document.forms[0].lastname.value="";document.forms[0].location.value="";document.forms[0].department.value="";}
function HideContent(d){if(d.length<1){return;}
document.getElementById(d).style.display="none";}
function ShowContent(d){if(d.length<1){return;}
document.getElementById(d).style.display="block";}
function ReverseContentDisplay(d){if(d.length<1){return;}
if(document.getElementById(d).style.display=="none"){document.getElementById(d).style.display="block";}
else{document.getElementById(d).style.display="none";}}
function writeMultipleGroups(IDList,nameList){var nameListArray=nameList.split(",");var IDListArray=IDList.split(",");for(i=0;i<nameListArray.length;i++){document.write("<a href=\"/servlet/OrgChart?docID="+IDListArray[i]+"\">"+nameListArray[i]+"</a><br>");}}
function copyrightYears(){var d=new Date();var curr_year=d.getFullYear();document.write("2002 - "+curr_year);}
var servletName="dcms"
var myURL=window.location.href
var channel=decodeChannel()
function isValidRSSURL(rssURL){if(rssURL.indexOf("servlet/dcms")>-1||rssURL.indexOf("&docID=")>-1||rssURL.indexOf("https:")>-1){alert("This URL is not a valid RSS feed. The URL must not include 'https', 'servlet/dcms', or &docID'.")
return false}else{return true}}
function getAgentAdvancedSearchLink(){window.location.href=getAgentAdvancedSearchURL()}
function doAddWindow(url){addWindow(url,"stdPopup")}
function popUpWindowFromBanner(theWindowLink,theWindowTitle,theWindowParams){popUpDefaultParams='width=640,height=480,directories=0,location=0,menubar=1,toolbar=1,titlebar=1,statusbar=1,resizable=1,scrollbars=1,alwaysRaised=1,status=1';thePopUpParams=popUpDefaultParams;if(theWindowParams==null||theWindowsParams=='undefined'||theWindowParams.length<1)
{thePopUpParams=popUpDefaultParams;}else{thePopUpParams=theWindowParams;}
addWindow(theWindowLink,theWindowTitle,thePopUpParams);}
function addWindow(url,title,windowParams){var aWindow=null;var invalids="!@#$%^&*()-~,'<.>/?;:\|";for(i=0;i<title.length;i++){var tempVal=title.charAt(i);for(k=0;k<invalids.length;k++){var tempInvalidVal=invalids.charAt(k);if(tempVal==tempInvalidVal||tempVal==" "){title=title.replace(title.charAt(i),"_");}}}
if(windowParams==null){aWindow=window.open(url,title,'width=640,height=480,directories=no,location=yes,menubar=yes,toolbar=yes,titlebar=yes,resizable=yes,scrollbars=yes,alwaysRaised=yes,status=yes');aWindow.focus();openedWinsTitle[openedWinsTitle.length]=title;openedWins[openedWins.length]=aWindow;}
else{aWindow=window.open(url,title,windowParams);aWindow.focus();openedWinsTitle[openedWinsTitle.length]=title;openedWins[openedWins.length]=aWindow;}
persistWindows()
return aWindow}
function persistWindows(){if(openedWinsTitle.length>0){var cookieGoodies=getCookie(cookieName);var moreCookieText='';if(openedWinsTitle){for(i=0;i<openedWinsTitle.length;i++){var winName=openedWinsTitle[i];var winHnd=openedWins[i];if(winHnd&&winHnd.open&&!winHnd.closed){moreCookieText+=openedWinsTitle[i]+delimiter;}}}
createCookie(cookieName,cookieGoodies+moreCookieText);}}
function launchEmail(emailURL){addWindow(emailURL,"FFICMsgCtr","width=640,height=480,directories=no,menubar=yes,titlebar=yes,resizable=yes,scrollbars=yes,alwaysRaised=yes,status=yes, left=40, top=50")}
function swapImage(object,imgURL){object.src=junctionName()+imgURL}
function useAddWindow(url,title,params){addWindow(url,title,params);}
function openDCMSHelp(){addWindow(junctionName()+'/dcms/desktophelp.nsf/vwHelpByKey/DCMSDesktop?openDocument','DCMSDesktopHelp');}
function hoverDirectory(){showDesktopDirectory()}
function hideDesktopDirectory(){desktopDirectoryDiv=document.getElementById("desktopDirectory")
desktopDirectoryDiv.style.visibility="hidden"
docListSelectionPulldown=document.getElementById("docListSelectionSpan")
if(docListSelectionPulldown){docListSelectionPulldown.style.visibility="visible"}}
function showDesktopDirectory(){desktopDirectoryDiv=document.getElementById("desktopDirectory")
desktopDirectoryDiv.style.visibility="visible"
docListSelectionPulldown=document.getElementById("docListSelectionSpan")
if(docListSelectionPulldown){docListSelectionPulldown.style.visibility="hidden"}}
function getCategoryLink(link){var cTemp=""
var cLoc=myURL.indexOf("category=")
var cTempStart=""
var cStartLoc=myURL.indexOf("&startIndex=")
if(cStartLoc>-1){cTempStart=myURL.substring(cStartLoc+12)
cStartLoc=cTempStart.indexOf("&")
if(cStartLoc>-1){cTempStart=cTempStart.substring(0,cStartLoc)}}
if(cLoc>-1){cTemp=myURL.substring(cLoc+9)
cLoc=cTemp.indexOf("&")
if(cLoc>-1){cTemp=cTemp.substring(0,cLoc)}}
if(cTemp==""){cTemp="All Documents"}
cTemp=replaceSubstring(cTemp,"%20"," ")
var newLink=link+"&startIndex="+cTempStart+"&category="+cTemp+'">'+"Return to "+replaceSubstring(cTemp,"%26","&")+'</a>'
return newLink}
function toggleSummaries(){var summariesState=WM_readCookie("DCMSSummaries")
if(!summariesState){summariesState="on"}
var summaries=document.getElementsByTagName("div")
var j=0
for(i=0;i<summaries.length;i++){if(summaries[i].className=="documentListItemSummary"){if(summariesState=="on"){summaries[i].style.display="none"
WM_setCookie("DCMSSummaries","off")}
else{summaries[i].style.display="block"
WM_setCookie("DCMSSummaries","on")}}}}
function getSelectedItem(listItem){return listItem.options[listItem.selectedIndex].text}
function changeCategory(listitem){var newCat=getSelectedItem(listitem)
newCat=replaceSubstring(newCat,"&","%26")
var catPos=myURL.indexOf("&category=");var startPos=myURL.indexOf("&startIndex=");if(startPos==-1){if(catPos==-1){newURL=myURL+"&category="+newCat}else{newURL=myURL.substring(0,catPos)+"&category="+newCat}}else{newURL=myURL.substring(0,startPos)+"&category="+newCat}
location.href=newURL}
function junctionName(){var junctionCookie=WM_readCookie("IV_JCT")
if(junctionCookie){return junctionCookie}else{return""}}
function leftNavLink(newURL){if(myURL.indexOf("https://desktop")>-1){window.location=wpsRootURLDomino("desktop")+newURL;}else{if(myURL.indexOf("https://agentdesktop")>-1){window.location=wpsRootURLDomino("agentdesktop")+newURL;}else{window.location=newURL}}}
function getAgentLogoHTML(top,height,width,image,desktopLinkNeeded){if(desktopLinkNeeded){if(hasAgentDesktopCookie()){}else{top=top-14}}
return"\n<img border=\"0\" height=\"79\" width=\"1\" src=\"/icons/ecblank.gif\"/>"+"<div id=\"logoDiv\" "+"style=\"position:absolute; top:"+top+"px; left:6px;z-index:100\" height=\""+height+"\" width=\""+width+"\" visibility=\"visible\">"+"<a href=\"javascript:goToRootURL()\"><img height=\""+height+"\" width=\""+width+"\" src=\"/cms/images/"+image+"\" border=\"0\">"+"</a></div>";}
function getEnvironment(){domain=myURL.substring(0,myURL.indexOf(".")+1);if(domain.indexOf("dev.")>-1){return"dev";}else if(domain.indexOf("test.")>-1){return"test";}else if(domain.indexOf("uat.")>-1){return"uat";}else if(domain.indexOf("cert.")>-1){return"cert";}else{return"";}}
function wpsRootURL(desktop,virtualPortal){env=getEnvironment();var junction="wps"+env
if(env==""||env=="uat"||env=="cert"){junction="jctwps"}else{if(env=="test"&&desktop=="desktop"){junction="eudtest"}}
return"https://"+desktop+env+".firemansfund.com/"+junction+"/wps/myportal/"+virtualPortal}
function wpsRootURLDomino(desktop){env=getEnvironment();var junctionSuffix=env
if(env==""){junctionSuffix="prod"}
return"https://"+desktop+env+".firemansfund.com/eudhp"+junctionSuffix}
function websealRootURL(){if(channel=="agent411"||channel=="agentdesktop"||channel=="agentdesktophelp"){return wpsRootURLDomino("agentdesktop")}
else{return""}}
function getAgentChangePWURL(){var env=getEnvironment()
var wpsURL=""
if(env=="dev"){wpsURL="https://lb04.firemansfund.com/wasdev05s/RM/userInfoSetPassword.do"}else if(env=="test"){wpsURL="https://lb03.firemansfund.com/wastest05s/RM/userInfoSetPassword.do"}else if(env=="uat"){wpsURL="https://lbuat.firemansfund.com/jct05s/RM/userInfoSetPassword.do"}else if(env=="cert"){wpsURL="https://lb02.firemansfund.com/jct05s/RM/userInfoSetPassword.do"}else{wpsURL="https://lb01.firemansfund.com/jct05s/RM/userInfoSetPassword.do"}
return wpsURL}
function getAgentSiteMapURL(){var env=getEnvironment()
var wpsURL=""
if(env=="dev"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4038vMGSUGYnvqRGGIeGGLOSEK-Hvm5qfpB-t76AfoFuaGhEeWOigDWtX-q/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82XzVfMk5M"}else if(env=="test"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLt4w3dnQGSUGYjvqRGGKWGGLOHgghX4_83FT9IH1v_QD9gtzQ0IhyR0UA7k717w!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82XzlfM0FE"}else if(env=="uat"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4w3MXYBSUGYjvqRGGKWGGJGHkjqfD3yc1P1g_S99QP0C3JDQyPKHRUB_xdrcA!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82X0FfNDNE"}else if(env=="cert"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4k3CbAASUGYZvqRGGKmaGKO8UaB_ggxX4_83FT9IH1v_QD9gtzQ0IhyR0UAzm-h4Q!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82X0RfNFA5"}else{wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4k3DbMESUGYFvqRGGLmaGKO8YZGLggxX4_83FT9IH1v_QD9gtzQ0IhyR0UASvxWiw!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82X0RfNVZC"}
return wpsURL}
function getAgentNewsURL(){var env=getEnvironment()
var wpsURL=""
if(env=="dev"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4038vMCSUGYnvqRGGIeGGLOSEK-Hvm5qfpB-t76AfoFuaGhEeWOigD7z0xF/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82XzVfMk5L"}else if(env=="test"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLt4w3dnQCSUGYjvqRGGKWGGLOHgghX4_83FT9IH1v_QD9gtzQ0IhyR0UAwzTGAA!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82XzlfM0FD"}else if(env=="uat"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4w3MXYCSUGYjvqRGGKWGGJGHkjqfD3yc1P1g_S99QP0C3JDQyPKHRUBZluAqg!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82X0FfNDND"}else if(env=="cert"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4k3CTAHSUGYZvqRGGKmaGKO8UaB_gixIH1vfV-P_NxU_QD9gtzQ0IhyR0UAhTNa4A!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82X0RfNFA4"}else{wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4k3DbMESUGYFvqRGGLmaGKO8YZGLgixIH1vfV-P_NxU_QD9gtzQ0IhyR0UAHhrHZA!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82X0RfNVZB"}
return wpsURL}
function getAgentMyDesktopURL(){var env=getEnvironment()
var wpsURL=""
if(env=="dev"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4038vMCSUGYnvqRGGIeGGLOSEJB-t76vh75uan6AfoFuaGhEeWOigCvKd2q/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82XzVfMk5K"}else if(env=="test"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLt4w3dnQCSUGYjvqRGGKWGGLOHgihIH1vfV-P_NxU_QD9gtzQ0IhyR0UAl9JX7w!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82XzlfM0FC"}else if(env=="uat"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4w3MXYCSUGYjvqRGGKWGGJGHkjqgvS99X098nNT9QP0C3JDQyPKHRUBMr0RRQ!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82X0FfNDNC"}else if(env=="cert"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vMAfIjzeNd4s0tjPTDchMrMnMzq1JT9CP0o8yAoiYBjiANEKaZfiSGmCmamGO8UaA_QszXIz83VT9I31s_AGQkzKLwotS8lNQi_YJci8rMTF1Hi3JHRQDM_xC0/delta/base64xml/L3dJdyEvd0ZNQUlzQUsvNElVRS82X0RfNFA3"}else{wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4k3DXMESUGYFvqRGGLmaGKO8YZGLggxX4_83FT9IH1v_QD9gtzQ0IhyR0UAtjXHlQ!!/delta/base64xml/L3dJdyEvd0ZNQUFzQUMvNElVRS82X0RfNVY5"}
return wpsURL}
function eudChangePassword(){popUpWindowFromBanner(getAgentChangePWURL(),"ChangePassword")}
function directToAgentDesktop(pageName){if(!pageName){location.href=getAgentMyDesktopURL()}else if(pageName=="News"){location.href=getAgentNewsURL()}else if(pageName=="SiteMap"){location.href=getAgentSiteMapURL()}else if(pageName=="MyDesktop"){location.href=getAgentMyDesktopURL()}else if(pageName=="ChangePW"){location.href=getAgentChangePWURL()}else if(pageName=="AdvancedSearch"){location.href=getAgentAdvancedSearchURL()}else{location.href=wpsRootURL("agentdesktop","agent")}}
function directToEmpDesktop(pageName){if(!pageName){pageName="employee"}
location.href=wpsRootURL("desktop",pageName)}
function directToDirectory(){location.href=wpsRootURL("desktop","PortalDirectory")}
function getAgentDesktopLink(){if(hasAgentDesktopCookie()){return"<div style=\"color:black;background=#cccccc;width:778;\"; height=\"0\">"+"<table bgcolor=\"#cccccc\" width=\"778\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"+"<tr>"+"<td align=\"right\" height=\"0\" valign=\"top\" class=\"hp-popup-eud\">"+"<a href=\"javascript:directToAgentDesktop()\">"+"<font class=\"hp-popup-eud\">Agent Desktop</font></a>&nbsp;</td>"+"</tr>"+"</table></div>"}
return""}
function hasAgentDesktopCookie(){var desktopCookie=WM_readCookie("EnterpriseDesktop")
if(desktopCookie){return(desktopCookie=="Agent")}
return false;}
function passwordIsValid(password){if(password.length<5){return false}
var hasNum=false
var hasUpper=false
var hasLower=false
var compare=""
for(i=0;i<password.length;i++){compare=password.charAt(i)
compareL=compare.toLowerCase()
if(compare>="0"&&compare<="9"){hasNum=true}
else{if(compareL>="a"&&compareL<="z"){if(compare==compare.toUpperCase()){hasUpper=true}
else{hasLower=true}}
else{return false}}}
if(hasNum&&hasLower&&hasUpper){return true}
return false}
function displayDCMSHelp(helpKey){if(myURL.indexOf("http://desktopcontent.")>-1||myURL.indexOf("https://desktop.")>-1){displayPopUp('http://www.firemansfund.com/dcms/dcmshelp.nsf/vwHelpByKey/'+
helpKey+'?opendocument',525,400,'DCMSHelp')}else{displayPopUp('/dcms/dcmshelp.nsf/vwHelpByKey/'+
helpKey+'?opendocument',525,400,'DCMSHelp')}}
function HttpsIsNeeded(){if((myURL.indexOf("//fficdev.")>-1)||(myURL.indexOf("//ffictest.")>-1)||(myURL.indexOf("//fficuat.")>-1)||(myURL.indexOf("//ifgdev.")>-1)||(myURL.indexOf("//ifgtest.")>-1)||(myURL.indexOf("//ifguat.")>-1)){return false}else{return true}}
function editComponent(documentID,dbPath){var newURL=dbPath.toLowerCase()
if(HttpsIsNeeded()){newURL=replaceSubstring(newURL,"http:","https:")}else{}
if(newURL.indexOf("agentdev.")>-1||newURL.indexOf("agenttest.")>-1||newURL.indexOf("agentuat.")>-1||newURL.indexOf("agentcert.")>-1||newURL.indexOf("agent.")>-1){newURL=junctionName()+dbPath.substr(dbPath.indexOf(".com")+4)}
dbPath=newURL
winTitle="DCMSEditor"
abURL=dbPath+'/0/'+documentID+'?editDocument';wwidth=750
wheight=500
opts='width='+wwidth+',height='+wheight+',resizable=yes, scrollbars=yes'
launchDCMSEditor(abURL)}
function deleteComponent(compdocumentID,channel){if(confirm("Do you want to permanently delete this component?")){var x="/servlet/dcms?c="+channel+"&docID="+compdocumentID+"&cmd=changeStatus&status=6&Eff="
window.document.location.href=x}}
function addComponent(){abURL=websealRootURL()+dbPath+"/"+x+"?Openform&P="+documentID
launchDCMSEditor(abURL)}
function launchDCMSEditor(abURL){wwidth=750
wheight=550
opts='width='+wwidth+',height='+wheight+',resizable=yes, scrollbars=yes,toolbar'
DCMSEditorWindow=addWindow(abURL,"DCMSEditor",opts)
DCMSEditorWindow.focus()}
function editPage(docID,serverName,dbPath){setVisibilityIE("hide","ActionBox")
launchDCMSEditor(websealRootURL()+dbPath+"/vwAllDocs/"+docID+"?editdocument")}
function displayEUDPopup(url,title,opts){addWindow(url,title,opts)}
function displayPopUp(abURL,width,height,windowName){opts='width='+width+',height='+height+',resizable=yes,scrollbars=yes';wTitle=((windowName)?windowName:"windowTitle");var newWindow=addWindow(abURL,wTitle,opts);newWindow.focus();}
function goTop(){scrollTo('top');}
function scrollTo(id){loc=window.location.href;index=loc.indexOf('#')
if(index>-1){loc=loc.substring(0,index);}
window.location.href=loc+"#"+id;}
function loginDirect(serverName,dbPath){var url=window.document.location.href
window.document.location.href="http://"+serverName+dbPath+"/pgRedirect?openpage&login&URL="+
url}
function goTo(url){url=replaceSubstring(url,"intra02","portal02")
if(url.substr(0,4)=="app:"){url=url.substr(4)
if(url.substr(0,2)==".."){url=dbPath+url.substr(2)}
launchApplication(url)}
else{if(url.substr(0,2)==".."){if(nsfLoc>document.location.href.length-7){window.location.href=dbPath+url.substr(2)}
else{window.location.href=url}}
else{window.location.href=url}}}
function publishLater(channel){var x=new Date()
if(document.layers){var formattedNow=x.getMonth()+1+"/"+x.getDate()+"/"+(x.getYear()+1900)+" 11:00 PM"}
else{var formattedNow=x.getMonth()+1+"/"+x.getDate()+"/"+x.getYear()+" 11:00 PM"}
var releaseDate=prompt("Enter the release date [time] below. "+"The time is optional. If not entered, publishing will take place at 12:00 AM on the date specified.",formattedNow)
var newURL="/servlet/"+servletName+"?c="+channel+"&docID="+
documentID+"&cmd=changeStatus&status=2&eff="+replaceSubstring(replaceSubstring(releaseDate," ","+"),":","-")
window.location.href=newURL
return true}
function invokeParentSelector(rkey){winTitle="ParentSelector"
var db=dbPath.substr(dbPath.indexOf(".com")+4)
var channel=db.substring(db.lastIndexOf("/")+1,db.indexOf("."))
abURL="/servlet/"+servletName+"?c="+channel+"&rkey="+rkey+"&cmd=selectParent"
wwidth=450
wheight=575
opts='width='+wwidth+',height='+wheight+',resizable=yes, scrollbars=yes'
var x=window.open(abURL,winTitle,opts)
x.focus()}
function handleOnLoad(){var x=window.location.href.indexOf("&WhatsNew")
if(x>0){if(siteSubscription!="none"){sourceURL=window.location.href.substring(0,x)
sourceSite=replaceSubstring(siteSubscription," ","+")
newURL="/webserv/whatsnew.nsf/frmWhatsNewItemPopUp?OpenForm&Site="+sourceSite
if(thisIsARedirectPage()){newURL+=("&URL="+sourceURL+"&Title="+document.forms[0].PageTitleTX.value+"&Summary="+document.forms[0].dSummaryTX.value)}
goToDomino(newURL)}}}
function thisIsARedirectPage(){f=window.document.forms[0]
if(f){if(f.Form){if(f.Form.value=="frmRedirectTo"){return true}else{return false}}else{return false}}else{return false;}}
function getWhatsNewDirectory(){if((myURL.indexOf("test.")>-1)||(myURL.indexOf("uat.")>-1)){return"webserv"}else{return"webserv"}}
function delayJS(milliSec){var date=new Date();var curDate=null;do{curDate=new Date();}
while(curDate-date<milliSec);}
function handleOnUnload(){var urlString=logoutURL+'?windowClose=true';if(typeof(window.innerWidth)!='number'){if(window.event.clientX<0&&window.event.clientY<0){try{window.location.href=urlString;if(urlString){delayJS(3000);}}catch(e1){loc=window.location.href;index=loc.indexOf('.com');if(index>-1){loc=loc.substring(0,(index+'.com'.length));}
loc=loc+urlString;try{window.location.href=loc;if(urlString){delayJS(3000);}}catch(e2){try{window.location.replace(loc);if(urlString){delayJS(3000);}}catch(e3){window.open(loc,'_parent');if(urlString){delayJS(3000);}}}}}}else{}}
function replaceSubstring(input,searchString,replaceString){var newString=input
while(newString.indexOf(searchString)>-1){newString=newString.replace(searchString,replaceString)}
return newString}
function launchApplication(abURL,title){var width='670'
var height='580'
var wTitle="windowTitle"
if(title){wTitle=title}
opts='width='+width+',height='+height+',resizable,scrollbars,toolbar';var newWindow=addWindow(abURL,wTitle,opts)
newWindow.focus()}
function goToRootURL(){if(myURL.indexOf("localhost")>-1){if(channel=="aos"||channel=="ifgbonds"){window.location.href="http://localhost:9080/servlet/"+servletName+"?c="+channel}
else{window.location.href="http://localhost:9080/servlet/"+servletName+"?c=ffichome"}}
else{window.location.href="/"}}
function decodeChannel(){var cTemp=""
var cLoc=myURL.indexOf("c=")
if(cLoc>-1){cTemp=myURL.substring(cLoc+2)
cLoc=cTemp.indexOf("&")
if(cLoc>-1){cTemp=cTemp.substring(0,cLoc)}}
return cTemp}
function goToDomino(dominoURL){if(dominoURL.indexOf("frmAdd")>-1){launchDCMSEditor(dominoURL)}else{var URL="";if(myURL.indexOf("localhost")>-1){if(channel=="aos"){URL="http://agentdev.firemansfund.com"}
else{URL="http://fficdev.firemansfund.com"}}
URL+=dominoURL
launchDCMSEditor(URL)}}
popupWinArray=new Array()
var winIndex=-1
function invokeTableEditor(tableName,tableTitle,cols,rows,fieldCol1,titleCol1,fieldCol2,titleCol2,fieldCol3,titleCol3,fieldCol4,titleCol4){winIndex+=1
col1=fieldCol1
col2=fieldCol2
col3=fieldCol3
col4=fieldCol4
tName=tableName
tTitle=tableTitle
col1Label=titleCol1
col2Label=titleCol2
col3Label=titleCol3
col4Label=titleCol4
numColumns=cols
numRows=rows
if(document.layers){browser='nn'
lineSize=22
baseHeight=240}
else{browser="ie"
lineSize=23
baseHeight=238}
abURL=junctionName()+'/wps/dcms/html/TabEditDCMS.html'
wheight=baseHeight+(numRows*lineSize)
switch(numColumns){case 4:wwidth=(browser=="nn")?"770":"780";break
case 3:wwidth=(browser=="nn")?"600":"620";break
case 2:wwidth=(browser=="nn")?"518":"528";break
case 1:wwidth=(browser=="nn")?"518":"528";break}
opts='width='+wwidth+',height='+wheight+',resizable=yes, scrollbars=yes';popupWinArray[winIndex]=window.open(abURL,tTitle,opts);popupWinArray[winIndex].focus()}
function refreshTables(){for(var k in popupWinArray){if(!popupWinArray[k].closed){popupWinArray[k].handleSubmit()
delete popupWinArray[k]}}}
function resetOpener(url){if(!window.opener){var win=displayPopUp(url,800,600,"DCMSMain")
win.focus()}
else{window.opener.location.href=url
window.opener.focus()}}
function listItemFix(){var stylePosition;if(navigator.appName=="Microsoft Internet Explorer"){stylePosition="list-style-position: inside;";}else{stylePosition="";}
document.write("<style>");document.write("li{");document.write("font-size: 12px;");document.write("font-family: Verdana;");document.write(stylePosition);document.write("</style>");}
function dcsMultiTrack(){if(arguments.length%2==0){for(var i=0;i<arguments.length;i+=2){if(arguments[i].indexOf('WT.')==0){WT[arguments[i].substring(3)]=arguments[i+1];}
else if(arguments[i].indexOf('DCS.')==0){DCS[arguments[i].substring(4)]=arguments[i+1];}
else if(arguments[i].indexOf('DCSext.')==0){DCSext[arguments[i].substring(7)]=arguments[i+1];}}
var dCurrent=new Date();DCS.dcsdat=dCurrent.getTime();dcsTag();}}
//function AOSlogin(){urlString=location.href;domainStPoint=urlString.indexOf("//");domainEndPoint=urlString.indexOf(".");domainName=urlString.substring(domainStPoint+2,domainEndPoint);if(domainName.toLowerCase()=="www"){location.href='https://lb01.firemansfund.com/jct05/PDEntitlements/entitlements?f=AOS';}else if(domainName.toLowerCase()=="fficuat"||domainName.toLowerCase()=="agentuat"){location.href='https://lbuat.firemansfund.com/jct05/PDEntitlements/entitlements?f=AOS';}else if(domainName.toLowerCase()=="fficcert"||domainName.toLowerCase()=="agentcert"){location.href='https://lb02.firemansfund.com/jct05/PDEntitlements/entitlements?f=AOS';}else if(domainName.toLowerCase()=="ffictest"||domainName.toLowerCase()=="agenttest"){location.href='https://lb03.firemansfund.com/wastest05/PDEntitlements/entitlements?f=AOS';}else if(domainName.toLowerCase()=="fficdev"||domainName.toLowerCase()=="agentdev"){location.href='https://lb04.firemansfund.com/wasdev05/PDEntitlements/entitlements?f=AOS';}else if(urlString.indexOf("localhost")>-1){location.href='/wps/dcms/html/splashfficcom.html';}else{location.href='https://agent.firemansfund.com/wps/dcms/html/splashfficcom.html';}}

function togglePublisherReaderView(viewState){if(viewState=="Publisher"){WM_setCookie("DCMSViewToggle","Reader")}
else{WM_setCookie("DCMSViewToggle","Publisher")}
window.location.href=window.location.href}
function trapEnterKey(theKey){var whichCode;whichCode=(window.Event)?theKey.which:theKey.keyCode;if(whichCode=="13"){submitSearchForm(document.agentSearchForm);}else whichCode=null;}
function focusSearchField(){if(document.agentSearchForm){document.agentSearchForm.queryString.focus();}}
function submitSearchForm(theForm)
{if(theForm){if(theForm.queryString){theForm.action=theForm.action+theForm.queryString.value;}
theForm.submit();}else{alert('Invalid search entry. Please try again.');return false;}}
var cookieName="EUDDesktopCookie"
var childWindowOptions='resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,directories=yes,titlebar=yes,alwaysRaised=yes,location=yes,status=yes,height=480,width=640';var openedWins=new Array();var openedWinsTitle=new Array();var cookieName='EUDDesktopCookie';var delimiter='#~#';var timerID;var fficGlobalLogoutURL='/wps/myportal/!ut/p/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4j3NQHJgFjGpvqRqCKOcAFfj_zcVP0gfW_9AP2C3NCIckdHRQBDU1Uq/delta/base64xml/L0lKSklKSWchL0lCakFBQ3lBQkVRaUlBISEvNElENnhCX1dFTkRDLzEzLzEyL2xv';var logoutURL=fficGlobalLogoutURL
var startTimer=false;var countDown=null;function startCountDown(){startTimer=true;countDown=setTimeout('showDesktopDirectory()',500);}
function stopCountDown(){if(startTimer){clearTimeout(countDown);startTimer=false;}}
function OnClickHandler(evt){}
function setTimer(){if(flag==true){fficEUDTimerID=setTimeout('update_timer()',1500000);}
flag=false;}
function update_timer(){window.open(sessionTimeoutURL,'NewWindow','resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,width=400,height=400,screenX=200,screenY=200,top=200,left=200');}
function eudLogout(logoutURL){var name=confirm("Are you certain you want to close **ALL** web pages\nopened by the Employee Desktop?")
if(name==true){closeDependentWindows();window.location.href=logoutURL;}}
function eudAgentLogout(){var name=confirm("Are you certain you want to close **ALL** web pages\nopened by the Fireman's Fund Agent Desktop?")
if(name==true){closeDependentWindows();var env=getEnvironment()
var wpsURL=""
if(env=="dev"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLN4038vMCSUGYnvqRGGIeGGLOSEJB-t76vh75uan6AfoFuaGhEeWOigCvKd2q/delta/base64xml/L0lKSklKSWchL0lCakFBQ3lBQkVRaUlBISEvNElENnhCX1dFTkRDLzEvMi9sbw!!"}else if(env=="test"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLt4w3dnQCSUGYjvqRGGKWGGLOHgihIH1vfV-P_NxU_QD9gtzQ0IhyR0UAl9JX7w!!/delta/base64xml/L0lKSklKSWchL0lCakFBQ3lBQkVRaUlBISEvNElENnhCX1dFTkRDLzEvMjgwL2xv"}else if(env=="uat"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4w3MXYCSUGYjvqRGGKWGGJGHkjqgvS99X098nNT9QP0C3JDQyPKHRUBMr0RRQ!!/delta/base64xml/L0lKSklKSWchL0lCakFBQ3lBQkVRaUlBISEvNElENnhCX1dFTkRDLzEvMTAwNy9sbw!!"}else if(env=="cert"){wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd443CTAHSUGYZvqRGGKmmGJmLgixIH1vfV-P_NxU_QD9gtzQ0IhyR0UAEF-h3g!!/delta/base64xml/L0lKSklKSWchL0lCakFBQ3lBQkVRaUlBISEvNElENnhCX1dFTkRDLzEvNzk2L2xv"}else{wpsURL="/wps/myportal/agent/kcxml/04_Sj9SPykssy0xPLMnMz0vM0Y_QjzKLd4o3DbMESUGYFvqRGGLmmGLO_gixIH1vfV-P_NxU_QD9gtzQ0IhyR0UAj--FOQ!!/delta/base64xml/L0lKSklKSWchL0lCakFBQ3lBQkVRaUlBISEvNElENnhCX1dFTkRDLzEvMjk4MjM3L2xv"}
window.location.href=wpsURL;}}
function eudTimerLogout(){closeDependentWindows();window.location.href=fficGlobalLogoutURL;}
function resetTimer(){clearTimeout(fficEUDTimerID);flag=true;setTimer();var tamWindow=window.open(sessionMaintainURL,'TAMPortalHome','resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,width=5,height=5,screenX=-100,screenY=-100,top=2000,left=2000');}
function childResetTimer(){clearTimeout(fficEUDTimerID);flag=true;setTimer();}
function jump(url){addWindow(url,'',null);}
function getCookie(label){var labelLen=label.length;var cLen=document.cookie.length;var i=0;var cEnd;while(i<cLen){var j=i+labelLen
if(document.cookie.substring(i,j)==label){cEnd=document.cookie.indexOf(";",j);cEnd=((cEnd==-1)?document.cookie.length:cEnd);cVal=unescape(document.cookie.substring(j+1,cEnd));cVal=((cVal==';')?'':cVal);return cVal;}
i++;}
return"";}
var fficEUDTimerID=null;var fficEUDTimerRunning=false;var fficEUDsecs=0;function InitializeTimer()
{var URL=location.pathname;var strURL=URL.toString();var strURLUpper=strURL.toUpperCase();if(strURLUpper.indexOf('CONTRACTOR')!=-1){fficEUDsecs=1800;}
else{fficEUDsecs=21600;}
StopTheClock();StartTheTimer();}
function StopTheClock()
{if(fficEUDTimerRunning){clearTimeout(fficEUDTimerID);}
fficEUDTimerRunning=false;}
function StartTheTimer()
{var delay=1000;if(fficEUDsecs==0)
{StopTheClock()
window.location.href=fficGlobalLogoutURL;}
else
{fficEUDsecs=fficEUDsecs-1;fficEUDTimerRunning=true;fficEUDTimerID=self.setTimeout("StartTheTimer()",delay);}}
function closeDependentWindows(){openedWinsTitle=null;openedWins=null;var cookieGoodies=getCookie(cookieName);if(cookieGoodies.length>0){var windowNames=cookieGoodies.split(delimiter);var windowHnd;for(i=0;i<windowNames.length;i++){if(windowNames[i].length>0){closeWindow(windowNames[i]);}}}
eraseCookie(cookieName);}
function closeWindow(windowTitle){var windowHnd=window.open("#",windowTitle,"");if(windowHnd&&windowHnd.open&&!windowHnd.closed){windowHnd.close();}}
function createCookie(name,value,days){var expires="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString();document.cookie=name+"="+value+'; path=/'+'; expires='+date.toGMTString();}else{document.cookie=name+"="+value+'; path=/';;}}
function eraseCookie(name){createCookie(name,"",-1);}
var Spry;if(!Spry)
{Spry={};}
if(!Spry.Widget)
{Spry.Widget={};}
Spry.Widget.MenuBar=function(element,opts)
{this.init(element,opts);};Spry.Widget.MenuBar.prototype.init=function(element,opts)
{this.element=this.getElement(element);this.currMenu=null;var isie=(typeof document.all!='undefined'&&typeof window.opera=='undefined'&&navigator.vendor!='KDE');if(typeof document.getElementById=='undefined'||(navigator.vendor=='Apple Computer, Inc.'&&typeof window.XMLHttpRequest=='undefined')||(isie&&typeof document.uniqueID=='undefined'))
{return;}
if(opts)
{for(var k in opts)
{var rollover=new Image;rollover.src=opts[k];}}
if(this.element)
{this.currMenu=this.element;var items=this.element.getElementsByTagName('li');for(var i=0;i<items.length;i++)
{this.initialize(items[i],element,isie);if(isie)
{this.addClassName(items[i],"MenuBarItemIE");items[i].style.position="static";}}
if(isie)
{if(this.hasClassName(this.element,"MenuBarVertical"))
{this.element.style.position="relative";}
var linkitems=this.element.getElementsByTagName('a');for(var i=0;i<linkitems.length;i++)
{linkitems[i].style.position="relative";}}}};Spry.Widget.MenuBar.prototype.getElement=function(ele)
{if(ele&&typeof ele=="string")
return document.getElementById(ele);return ele;};Spry.Widget.MenuBar.prototype.hasClassName=function(ele,className)
{if(!ele||!className||!ele.className||ele.className.search(new RegExp("\\b"+className+"\\b"))==-1)
{return false;}
return true;};Spry.Widget.MenuBar.prototype.addClassName=function(ele,className)
{if(!ele||!className||this.hasClassName(ele,className))
return;ele.className+=(ele.className?" ":"")+className;};Spry.Widget.MenuBar.prototype.removeClassName=function(ele,className)
{if(!ele||!className||!this.hasClassName(ele,className))
return;ele.className=ele.className.replace(new RegExp("\\s*\\b"+className+"\\b","g"),"");};Spry.Widget.MenuBar.prototype.addEventListener=function(element,eventType,handler,capture)
{try
{if(element.addEventListener)
{element.addEventListener(eventType,handler,capture);}
else if(element.attachEvent)
{element.attachEvent('on'+eventType,handler);}}
catch(e){}};Spry.Widget.MenuBar.prototype.createIframeLayer=function(menu)
{var layer=document.createElement('iframe');layer.tabIndex='-1';layer.src='javascript:false;';menu.parentNode.appendChild(layer);layer.style.left=menu.offsetLeft+'px';layer.style.top=menu.offsetTop+'px';layer.style.width=menu.offsetWidth+'px';layer.style.height=menu.offsetHeight+'px';};Spry.Widget.MenuBar.prototype.removeIframeLayer=function(menu)
{var layers=menu.parentNode.getElementsByTagName('iframe');while(layers.length>0)
{layers[0].parentNode.removeChild(layers[0]);}};Spry.Widget.MenuBar.prototype.clearMenus=function(root)
{var menus=root.getElementsByTagName('ul');for(var i=0;i<menus.length;i++)
{this.hideSubmenu(menus[i]);}
this.removeClassName(this.element,"MenuBarActive");};Spry.Widget.MenuBar.prototype.bubbledTextEvent=function()
{return(navigator.vendor=='Apple Computer, Inc.'&&(event.target==event.relatedTarget.parentNode||(event.eventPhase==3&&event.target.parentNode==event.relatedTarget)));};Spry.Widget.MenuBar.prototype.showSubmenu=function(menu)
{if(this.currMenu)
{this.clearMenus(this.currMenu);this.currMenu=null;}
if(menu)
{this.addClassName(menu,"MenuBarSubmenuVisible");if(typeof document.all!='undefined'&&typeof window.opera=='undefined'&&navigator.vendor!='KDE')
{if(!this.hasClassName(this.element,"MenuBarHorizontal")||menu.parentNode.parentNode!=this.element)
{menu.style.top=menu.parentNode.offsetTop+'px';}}
if(typeof document.uniqueID!="undefined")
{this.createIframeLayer(menu);}}
this.addClassName(this.element,"MenuBarActive");};Spry.Widget.MenuBar.prototype.hideSubmenu=function(menu)
{if(menu)
{this.removeClassName(menu,"MenuBarSubmenuVisible");if(typeof document.all!='undefined'&&typeof window.opera=='undefined'&&navigator.vendor!='KDE')
{menu.style.top='';menu.style.left='';}
this.removeIframeLayer(menu);}};Spry.Widget.MenuBar.prototype.initialize=function(listitem,element,isie)
{var opentime,closetime;var link=listitem.getElementsByTagName('a')[0];var submenus=listitem.getElementsByTagName('ul');var menu=(submenus.length>0?submenus[0]:null);var hasSubMenu=false;if(menu)
{this.addClassName(link,"MenuBarItemSubmenu");hasSubMenu=true;}
if(!isie)
{listitem.contains=function(testNode)
{if(testNode==null)
{return false;}
if(testNode==this)
{return true;}
else
{return this.contains(testNode.parentNode);}};}
var self=this;this.addEventListener(listitem,'mouseover',function(e)
{if(self.bubbledTextEvent())
{return;}
clearTimeout(closetime);if(self.currMenu==listitem)
{self.currMenu=null;}
self.addClassName(link,hasSubMenu?"MenuBarItemSubmenuHover":"MenuBarItemHover");if(menu&&!self.hasClassName(menu,"MenuBarSubmenuVisible"))
{opentime=window.setTimeout(function(){self.showSubmenu(menu);},250);}},false);this.addEventListener(listitem,'mouseout',function(e)
{if(self.bubbledTextEvent())
{return;}
var related=(typeof e.relatedTarget!='undefined'?e.relatedTarget:e.toElement);if(!listitem.contains(related))
{clearTimeout(opentime);self.currMenu=listitem;self.removeClassName(link,hasSubMenu?"MenuBarItemSubmenuHover":"MenuBarItemHover");if(menu)
{closetime=window.setTimeout(function(){self.hideSubmenu(menu);},600);}}},false);};new Spry.Widget.MenuBar("MenuBar1",{imgDown:"dcmssites/ffichome/images/SpryMenuBarDownHover.gif",imgRight:"dcmssites/ffichome/images/SpryMenuBarRightHover.gif"});(function($){var DEFAULT_IMAGE_URL,IMAGE_DIR,_imageEl;$.fn.productRollover=function(hideOnRolloverEls,rolloverContentWprEls){return $(this).each(function(){var el=$(this);var _id=el.attr('id');if(!_id){return;}
var _rolloverImageUrl=IMAGE_DIR+_id+'.jpg';var _contentElId=_id+'Content';el.hover(function(evt){_imageEl.src=_rolloverImageUrl;$(hideOnRolloverEls).css('display','none');$(rolloverContentWprEls).addClass('rolloverContent');$('#'+_contentElId).css('display','block');},function(evt){_imageEl.src=DEFAULT_IMAGE_URL;$('#'+_contentElId).css('display','');$(rolloverContentWprEls).removeClass('rolloverContent');$(hideOnRolloverEls).css('display','');});setTimeout(function(){var img=new Image();img.src=_rolloverImageUrl;},0);});};$(document).ready(function(){_imageEl=$('#swapImage')[0];DEFAULT_IMAGE_URL=_imageEl.src;IMAGE_DIR=DEFAULT_IMAGE_URL.substring(0,DEFAULT_IMAGE_URL.lastIndexOf('/')+1);$('#sidebar1 li a').productRollover('#business, #bizcol2','#bizListsWpr');$('#business li a, #bizcol2 li a').productRollover('#sidebar1','#individualProdListWpr');});})(jQuery);(function($){var RSS_URL='/Style%20Library/XML/homePageRSS.xml';$.fn.newsFeed=function(url){return $(this).each(function(){var el=$(this);var dummyEl=$('<div />');function getEscapedNodeValue(el,tagName){var subEls=el.getElementsByTagName(tagName);if(subEls&&subEls.length){var subEl=subEls[0];var text=subEl.textContent||subEl.text;if(text){return dummyEl.text(text).html();}}
return'';}
function showContent(){el.css('visibility','hidden');el.css('display','block');var wprEl=el[0];var maxHeight=$('#sidebar2')[0].offsetHeight-20;while(wprEl.childNodes.length&&wprEl.offsetHeight>maxHeight)
{wprEl.removeChild(wprEl.childNodes[wprEl.childNodes.length-1]);}
el.css('visibility','');}
try
{$.ajax({dataType:'xml',url:url,error:function(XMLHttpRequest,textStatus,errorThrown){showContent();},success:function(data,textStatus){try
{var items=data.getElementsByTagName('item');var html=[];var itemsParsed=0;for(var i=0;itemsParsed<4&&i<items.length;i++)
{var item=items[i];var title=getEscapedNodeValue(item,'title');var description=getEscapedNodeValue(item,'description');var linkUrl=getEscapedNodeValue(item,'link');if(title&&description&&linkUrl){html.push('<div><h3>');html.push(title);html.push('</h3>');html.push('<p>');html.push(description);html.push('<br />&gt;<a href="');html.push(linkUrl);html.push('">More</a></p></div>');itemsParsed++;}}
if(itemsParsed){el[0].innerHTML=html.join('');}}catch(e){}
showContent();}});}catch(e){showContent();}});};$(document).ready(function(){$('#sidebar2AjaxWpr').newsFeed(RSS_URL);});})(jQuery);
