var headClassName="GlobalQuestionContainer";var headSelectedClassName="GlobalQuestionContainerSelected";var bodyClassName="GlobalAnswerContainer";var contentClassname="";var faq_contentID_match_string="GlobalContentContainer";var parentsStore=new Array();var parentContentHeights=new Array();var expColDivs=new Array();var expandAll="GlobalExpandAll";var collapseAll="GlobalCollapseAll";var expandCollapse="masterECContainer";var faqContainer="masterFAQContainer";var faqContainersCount=0;var expandCollapseStatusArray=new Array();var exp_collapse_slideSpeed=15;var exp_collapse_timer=0;var objectIdToSlideDown=false;var exp_collapse_contenttiveId=false;var exp_collapse_slideInProgress=false;var expandAllcollapseAll_slideInProgress=false;var totalDivs=0;var questionWidthPadding=16;var exp_collapse_enter=false;function getParents(obj){var parents=new Array();var i=1;var numericId=(obj.id).replace(/[^0-9]/g,'');var tempDiv=faq_contentID_match_string+numericId;var parentDiv=obj.parentNode;while(parentDiv.tagName!="BODY"){while(parentDiv.tagName!='DIV'){parentDiv=parentDiv.parentNode;}
if((parentDiv.id).match(faq_contentID_match_string)==faq_contentID_match_string){parents[i]=parentDiv;i++;}
parentDiv=parentDiv.parentNode;}
return parents;}
function showHideEXPContent(e,inputId)
{if(exp_collapse_slideInProgress)return;exp_collapse_slideInProgress=true;if(!inputId)inputId=this.id;inputId=inputId+'';objectIdToSlideDown=false;if(inputId.match(expandAll)==expandAll){expandAllContent(inputId);}else if(inputId.match(collapseAll)==collapseAll){collapseAllContent(inputId);}else{if(inputId.match('span')=='span'){inputId=inputId.split('span')[1];}
if(inputId.match('arrowDiv')=='arrowDiv'){inputId=inputId.split('arrowDiv')[1];}
var numericId=inputId.replace(/[^0-9]/g,'');var answerDiv=document.getElementById(bodyClassName+numericId);if(!answerDiv.style.display||answerDiv.style.display=='none')
{answerDiv.style.display='block';answerDiv.style.visibility='visible';var temp=document.getElementById(headClassName+numericId);temp.className=headSelectedClassName;slideEXPContent(numericId,exp_collapse_slideSpeed);}else{var temp=document.getElementById(headClassName+numericId);temp.className=headClassName;slideEXPContent(numericId,(exp_collapse_slideSpeed*-1));}}
return(false);}
var collapseDirection=0;var expandDirection=0;var deltaHeight=0;function slideEXPContent(inputId,direction){document.getElementById('GlobalAnswerContainer'+inputId).style.overflow='hidden';var obj=document.getElementById(bodyClassName+inputId);var contentObj=document.getElementById(faq_contentID_match_string+inputId);height=obj.clientHeight;var temp=parentsStore[inputId];if(height==0){height=obj.offsetHeight;}
height=height+direction;rerunFunction=true;if(height>contentObj.offsetHeight){deltaHeight=height-contentObj.offsetHeight;height=contentObj.offsetHeight;rerunFunction=false;}
if(height<=1){height=1;rerunFunction=false;}
obj.style.height=height+'px';if(direction>0){if(temp.length!=0){var parentObj=temp[(temp.length-1)];var testId=parentObj.id;var numericId=testId.replace(/[^0-9]/g,'');expandDirection=expandDirection+exp_collapse_slideSpeed;var test=parentContentHeights[numericId]+height;var parContentDiv=document.getElementById(bodyClassName+numericId);parContentDiv.style.height=test+"px";}}else{if(temp.length!=0){var parentObj=temp[(temp.length-1)];var testId=parentObj.id;collapseDirection=collapseDirection+exp_collapse_slideSpeed;var numericId=testId.replace(/[^0-9]/g,'');var test=parseInt(parentContentHeights[numericId])-collapseDirection;var parContentDiv=document.getElementById(bodyClassName+numericId);parContentDiv.style.height=test+"px";}}
var topPos=height-contentObj.offsetHeight;if(topPos>0){topPos=0;}
contentObj.style.top=topPos+'px';if(rerunFunction){setTimeout('slideEXPContent('+inputId+','+direction+')',exp_collapse_timer);}else{if(height<=1){obj.style.display='none';if(objectIdToSlideDown&&objectIdToSlideDown!=inputId){document.getElementById(bodyClassName+objectIdToSlideDown).style.display='block';document.getElementById(headClassName+objectIdToSlideDown).style.visibility='visible';slideEXPContent(objectIdToSlideDown,exp_collapse_slideSpeed);}else{if(!expandAllcollapseAll_slideInProgress){exp_collapse_slideInProgress=false;}
expandCollapseStatusArray[inputId]=false;var tempQuestionDiv=document.getElementById(headClassName+inputId);tempQuestionDiv.className=headClassName;document.getElementById('arrowDiv'+headClassName+inputId).className='arrowDiv';var temp=parentsStore[inputId];if(temp.length!=0){for(var i=1;i<(temp.length);i++){var parentObj=temp[i];var testId=parentObj.id;var numericId=testId.replace(/[^0-9]/g,'');var parContentDiv=document.getElementById(bodyClassName+numericId);if(i!=(temp.length-1)){var tempHeight=parseInt(parentContentHeights[numericId])-collapseDirection;parContentDiv.style.height=tempHeight+"px";}
parentContentHeights[numericId]=parContentDiv.offsetHeight;}}
collapseDirection=0;checkAllExpandCollapse();document.getElementById('GlobalAnswerContainer'+inputId).style.overflow='visible';}}else{exp_collapse_contenttiveId=inputId;if(!expandAllcollapseAll_slideInProgress){exp_collapse_slideInProgress=false;}
expandCollapseStatusArray[inputId]=true;var tempQuestionDiv=document.getElementById(headClassName+inputId);tempQuestionDiv.className=headSelectedClassName;document.getElementById('arrowDiv'+headClassName+inputId).className='arrowDivStlSelected';var tempBodyDiv=document.getElementById(bodyClassName+inputId);parentContentHeights[inputId]=tempBodyDiv.offsetHeight;var temp=parentsStore[inputId];if(temp.length!=0){for(var i=1;i<(temp.length);i++){var parentObj=temp[i];var testId=parentObj.id;var numericId=testId.replace(/[^0-9]/g,'');var parContentDiv=document.getElementById(bodyClassName+numericId);if(i!=(temp.length-1)){var tempHeight=parseInt(parentContentHeights[numericId])+expandDirection;parContentDiv.style.height=tempHeight+"px";}
if(i==(temp.length-1)){var tempHeight=parseInt(parentContentHeights[numericId])+expandDirection;parContentDiv.style.height=tempHeight+"px";}
parentContentHeights[numericId]=parContentDiv.offsetHeight;}}
expandDirection=0;checkAllExpandCollapse();document.getElementById('GlobalAnswerContainer'+inputId).style.overflow='visible';}}}
function initExpandCollapse(){var divs=document.getElementsByTagName('DIV');var testCount=1;for(var i=0;i<divs.length;i++)
{if(divs[i].className==faqContainer){divs[i].id=faqContainer+testCount;testCount++;}}
faqContainersCount=testCount;var arrowCount=1;for(var j=0;j<divs.length;j++)
{if(divs[j].className=="arrowDiv"){divs[j].id="arrowDiv"+headClassName+arrowCount;divs[j].onclick=showHideEXPContent;arrowCount++;}}
var divCounter=1;for(var no=0;no<divs.length;no++){if(divs[no].className==headClassName){exp_collapse_enter=true;divs[no].id=headClassName+divCounter;parentsStore[divCounter]=getParents(divs[no]);var spanDivs=divs[no].getElementsByTagName('SPAN');spanDivs[0].id="span"+headClassName+divCounter;spanDivs[0].onclick=showHideEXPContent;var questionParent=divs[no].parentNode;var body=questionParent.nextSibling;while(body&&body.tagName!='DIV'){body=body.nextSibling;}
body.id=bodyClassName+divCounter;parentContentHeights[divCounter]=body.offsetHeight;contentDiv=body.getElementsByTagName('DIV')[0];contentDiv.id=faq_contentID_match_string+divCounter;divCounter++;}}
totalDivs=divCounter;for(var i=1;i<divCounter;i++){var tempBodyDiv=document.getElementById(bodyClassName+i);tempBodyDiv.style.display='none';tempBodyDiv.style.height='1px';}}
function skipChildExpandCollapse(obj){var childDivs=obj.getElementsByTagName('DIV');var temp=childDivs.length;return temp;}
function skipChildFaqContainer(obj){var childDivs=obj.getElementsByTagName('DIV');var temp=childDivs.length;return temp;}
function expandAllContent(inpId){expandAllcollapseAll_slideInProgress=true;var numericId=inpId.replace(/[^0-9]/g,'');var expDiv=document.getElementById(expandCollapse+numericId);var expChildDivs=expDiv.getElementsByTagName('DIV');for(i=0;i<expChildDivs.length;i++){if((expChildDivs[i].id).match(expandCollapse)==expandCollapse){var t=skipChildExpandCollapse(expChildDivs[i]);i=i+t;}
if((expChildDivs[i].id).match(faqContainer)==faqContainer){var t=skipChildFaqContainer(expChildDivs[i]);i=i+t;}
if((expChildDivs[i].id).match(headClassName)==headClassName){var input=expChildDivs[i].id;input=input+'';var numericId=input.replace(/[^0-9]/g,'');var answerDiv=document.getElementById(bodyClassName+numericId);if(answerDiv.style.display=='none'){answerDiv.style.display='block';answerDiv.style.visibility='visible';slideEXPContent(numericId,exp_collapse_slideSpeed);}}}}
function collapseAllContent(inpId){for(var k=1;k<totalDivs;k++){document.getElementById('GlobalAnswerContainer'+k).style.overflow='hidden';}
expandAllcollapseAll_slideInProgress=true;var numericId=inpId.replace(/[^0-9]/g,'');var expDiv=document.getElementById(expandCollapse+numericId);var expChildDivs=expDiv.getElementsByTagName('DIV');for(i=0;i<expChildDivs.length;i++){if((expChildDivs[i].id).match(expandCollapse)==expandCollapse){var t=skipChildExpandCollapse(expChildDivs[i]);i=i+t;}
if((expChildDivs[i].id).match(faqContainer)==faqContainer){var t=skipChildFaqContainer(expChildDivs[i]);i=i+t;}
if((expChildDivs[i].id).match(headClassName)==headClassName){var input=expChildDivs[i].id;input=input+'';var numericId=input.replace(/[^0-9]/g,'');var answerDiv=document.getElementById(bodyClassName+numericId);if(answerDiv.style.display=='block'){slideEXPContent(numericId,(exp_collapse_slideSpeed*-1));}}}}
var tempFlag=false;function checkAllExpandCollapse(){for(var j=1;j<totalExpBoxColDivs;j++){var tempDiv=document.getElementById(expandCollapse+j);var innerDivs=tempDiv.getElementsByTagName('DIV');var sectempCount=0;var firsttempCount=0;for(i=0;i<innerDivs.length;i++){if((innerDivs[i].id).match(expandCollapse)==expandCollapse){var t=skipChildExpandCollapse(innerDivs[i]);i=i+t;}
if((innerDivs[i].id).match(faqContainer)==faqContainer){var t=skipChildFaqContainer(innerDivs[i]);i=i+t;}
if((innerDivs[i].id).match(bodyClassName)==bodyClassName){firsttempCount++;var numericId=(innerDivs[i].id).replace(/[^0-9]/g,'');if(expandCollapseStatusArray[numericId]==true){sectempCount++;}}}
if(firsttempCount==sectempCount){document.getElementById(expandAll+j).style.display='none';document.getElementById(collapseAll+j).style.display='block';exp_collapse_slideInProgress=false;expandAllcollapseAll_slideInProgress=false;}else if(sectempCount==0){document.getElementById(collapseAll+j).style.display='none';document.getElementById(expandAll+j).style.display='block';exp_collapse_slideInProgress=false;expandAllcollapseAll_slideInProgress=false;}}}
function initExpandAllCollapseAll(){var divs=document.getElementsByTagName('DIV');var divCounter=1;for(var no=0;no<divs.length;no++){if(divs[no].className==collapseAll){divs[no].id=collapseAll+divCounter;divs[no].onclick=showHideEXPContent;var expanddiv=divs[no].nextSibling;while(expanddiv&&expanddiv.tagName!='DIV'){expanddiv=expanddiv.nextSibling;}
expanddiv.id=expandAll+divCounter;expanddiv.onclick=showHideEXPContent;divCounter++;}}
var count=1;for(var no=0;no<divs.length;no++){if(divs[no].className==expandCollapse){divs[no].id=expandCollapse+count;count++;}}
totalExpBoxColDivs=count;}
function initMethod(){initTooltip();showCountry();initShowHideDivs();showBannerInit();initExpandCollapse();initExpandAllCollapseAll();initTabMenu();showComponentAll();if(document.getElementById('AccordionWrapper')){slideContentAccordion(1,10);}
if(document.getElementById('shareDiv')){var WebformSpan=(document.getElementById('shareDiv')).getElementsByTagName('SPAN')[0];var anchorTag=WebformSpan.getElementsByTagName('A')[0];anchorTag.onclick=function(){trackEvent("TAF","type:open");document.getElementById('EmailThankYouMessageField_div').style.display="none";document.getElementById('EmailWebFormPageField_div').style.display="block";document.getElementById('EmailWebFormPageField_div').style.visibility="visible";document.getElementById('emailFormPage').style.visibility="visible";document.getElementById('emailFormPage').reset();shareLinkTAfocus(document.getElementById('emailmessage'));};}}
function initWebforms()
{if(document.getElementById('webformNOJS')){document.getElementById('webformNOJS').style.display="none";document.getElementById('webFormCommonContainer').style.display="block";}}
function showComponentAll(){var allDIVsObj=document.getElementsByTagName('DIV');var totDivCount=allDIVsObj.length;for(var counter=0,tagIDtempVar="";counter<totDivCount;counter++)
{if(allDIVsObj[counter].getAttribute('ID')!=null)
{tagIDtempVar=allDIVsObj[counter].getAttribute('ID');if(tagIDtempVar.indexOf('Loader')!=-1)
{document.getElementById(tagIDtempVar).style.display='block';}}}}
window.onload=initMethod;var menuAlignment='left';var topMenuSpacer=0;var activateSubOnClick=false;var leftAlignSubItems=false;var activeMenuItem=false;var activeTabIndex=0;var MSIE=navigator.userAgent.indexOf('MSIE')>=0?true:false;var Opera=navigator.userAgent.indexOf('Opera')>=0?true:false;var navigatorVersion=navigator.appVersion.replace(/.*?MSIE ([0-9]\.[0-9]).*/g,'$1')/1;var bookmarkTabStatus=false;function showHide(clickValues,newTabNo)
{var newTab=this;if(arguments.length==2){var mainMenuObj=document.getElementById('mainMenu');if(mainMenuObj!=null)
{var menuItems=mainMenuObj.getElementsByTagName('A');newTab=menuItems[newTabNo];}
else{return;}}
if(activeMenuItem){activeMenuItem.className='inactiveMenuItem';var theId=activeMenuItem.id.replace(/[^0-9]/g,'');document.getElementById('submenu_'+theId).style.display='none';}
var tabElementLostFocus=activeMenuItem.hash.substr(1);activeMenuItem=newTab;var tabElementGainedFocus=activeMenuItem.hash.substr(1);newTab.className='activeMenuItem';var theId=newTab.id.replace(/[^0-9]/g,'');document.getElementById('submenu_'+theId).style.display='block';trackEvent('tab','tabAnchor:'+tabElementGainedFocus);}
function initTabMenu()
{subCounter=1;var divs=document.getElementsByTagName('DIV');for(var no=0;no<divs.length;no++){if(divs[no].className=='submenuTab'){divs[no].id="submenu_"+subCounter;subCounter++;}}
divCounter=1;if(document.getElementById('mainMenu')){var answerDiv=document.getElementById('submenu_'+divCounter);if(document.getElementById('topTabs')!=null){document.getElementById('submenu').style.borderTop='0px none';}
answerDiv.style.display='none';document.getElementById('mainMenu').style.display='block';var mainMenuObj=document.getElementById('mainMenu');var mainMenuLinks=mainMenuObj.getElementsByTagName('A');var PageLink=location.hash;for(var i=0;i<mainMenuLinks.length;i++){var temp=mainMenuLinks[i].hash;if(temp==PageLink){activeTabIndex=i;bookmarkTabStatus=true;}}
if(!bookmarkTabStatus){if(PageLink){activeTabIndex=0;}}
var masterTabContentControllerObj=document.getElementById('submenuTabContent');var tabContentTitleObj=masterTabContentControllerObj.getElementsByTagName('H2');for(countTabTitle=0;countTabTitle<tabContentTitleObj.length;countTabTitle++){var isJsDisabledHdrObj=tabContentTitleObj[countTabTitle].getAttribute("ID");if(isJsDisabledHdrObj)
tabContentTitleObj[countTabTitle].style.display='none';}
if(mainMenuObj!=null)
{var menuItems=mainMenuObj.getElementsByTagName('A');if(document.all){mainMenuObj.style.visibility='hidden';document.getElementById('submenu').style.visibility='hidden';}
var currentLeftPos=15;for(var no=0;no<menuItems.length;no++){if(activateSubOnClick)menuItems[no].onclick=showHide;else menuItems[no].onclick=showHide;menuItems[no].id='mainMenuItem'+(no+1);if(no==activeTabIndex){if(!bookmarkTabStatus){window.location=menuItems[no].href;}
menuItems[no].className='activeMenuItem';activeMenuItem=menuItems[no];}else menuItems[no].className='inactiveMenuItem';if(!document.all)menuItems[no].style.bottom='-1px';if(MSIE&&navigatorVersion<6)menuItems[no].style.bottom='-2px';}
var subCounter=1;var parentWidth=mainMenuObj.offsetWidth;while(document.getElementById('submenu_'+subCounter)){var subItem=document.getElementById('submenu_'+subCounter);if(subCounter==(activeTabIndex+1)){subItem.style.display='block';}else{subItem.style.display='none';}
subCounter++;}
if(document.all){mainMenuObj.style.visibility='visible';document.getElementById('submenu').style.visibility='visible';}
document.getElementById('submenu').style.display='block';}}}
function selectedItem(formIdName,selvalue){document.getElementById(formIdName).action=selvalue
document.getElementById(formIdName).submit();}
var GlobalLocationStatus=false;var bookmarkGlobalStatus=false;var idArray=new Array();function showCountry(){var num=0;var divs=document.getElementsByTagName('DIV');for(var no=0;no<divs.length;no++){if(divs[no].className=='globalAddress'){GlobalLocationStatus=true;var cntyA=document.getElementById('globalLocRtCnt').getElementsByTagName('a');for(k=0;k<cntyA.length;k++){if(cntyA[k].className=='gblbBlankId'){cntyA[k].id='';}}
var cntyDiv=document.getElementById('globalLocRtCnt').getElementsByTagName('DIV');for(j=0;j<cntyDiv.length;j++){if(cntyDiv[j].className=='cntyHd'){idArray[num]=cntyDiv[j].id;num++;}}
for(i=0;i<idArray.length;i++){if(idArray[i]!='grlCntLocAdrs'){document.getElementById(idArray[i]).style.display='none';}}
break;}}
if(GlobalLocationStatus){var PageLink=location.hash;if(PageLink){var GBContacts=document.getElementById('globalLocLtCnt');var aTags=GBContacts.getElementsByTagName('a');for(i=0;i<aTags.length;i++){if(aTags[i].hash==PageLink){showThisCntry(aTags[i],i+1);bookmarkGlobalStatus=true;}}
if(!bookmarkGlobalStatus){window.location=window.location.href.split('#')[0];}}}}
function showThisCntry(obj,Cnme){var Cname="country"+Cnme;var aTag=document.getElementById('globalLocLtCnt').getElementsByTagName('a');document.getElementById('grlCntLocAdrs').style.display='none';for(j=0;j<aTag.length;j++)
aTag[j].style.color='';for(i=0;i<idArray.length;i++){document.getElementById(idArray[i]).style.display='none';}
document.getElementById(Cname).style.display='block';obj.style.color='#7EB764';}
function webFormOverlayclose(clsNum){document.getElementById('webFormOverlayCnt'+clsNum).style.display='none';document.getElementById('webFormOvrlyBg').style.display='none';var selct=document.getElementsByTagName('select');for(var k=0;k<selct.length;k++){if(selct[k].style.visibility!='visible')
selct[k].style.visibility='visible';}}
function webfrmClick(frmNum){var selct=document.getElementsByTagName('select');for(var k=0;k<selct.length;k++){if(selct[k].style.visibility!='hidden')
selct[k].style.visibility='hidden';}
var selctWebFrm=document.getElementById('webFormOverlayCnt'+frmNum).getElementsByTagName('select');if(selctWebFrm.length){for(var l=0;l<selctWebFrm.length;l++){selctWebFrm[l].style.visibility='visible';}}
var as=document.getElementsByTagName('span');for(var j=0;j<as.length;j++){if(as[j].className=='webFrmOverlayLnk'){var asa=as[j].getElementsByTagName('a');asa[0].href='#';}}
getWindowSize();var totalHt=myHeight;var totalWt=myWidth;var divs=document.getElementsByTagName('DIV');for(var no=0;no<divs.length;no++){if(divs[no].className=='webFormOverlayContent'){if(document.all){if(myHeight<855){document.getElementById('webFormOvrlyBg').style.height=document.documentElement.clientHeight;}
else{document.getElementById('webFormOvrlyBg').style.height=document.documentElement.scrollHeight;}
document.getElementById('webFormOvrlyBg').style.width=myWidth;}
else{document.getElementById('webFormOvrlyBg').style.height=document.documentElement.scrollHeight+"px";document.getElementById('webFormOvrlyBg').style.width=document.documentElement.scrollWidth+"px";}
document.getElementById('webFormOverlayCnt'+frmNum).style.display='block';document.getElementById('webFormOvrlyBg').style.display='block';}}}
window.onresize=webformOverlayDetect;function webformOverlayDetect(){if(document.getElementById('webFormOvrlyBg')){webformOverlayPrintWdHt();}}
function webformOverlayPrintWdHt(){getWindowSize();var totalHt=myHeight;var totalWt=myWidth;if(document.all){if(myHeight<855){document.getElementById('webFormOvrlyBg').style.height=document.documentElement.clientHeight;}
else{document.getElementById('webFormOvrlyBg').style.height=document.documentElement.scrollHeight;}
document.getElementById('webFormOvrlyBg').style.width=myWidth;}
else{document.getElementById('webFormOvrlyBg').style.height=document.documentElement.scrollHeight+"px";document.getElementById('webFormOvrlyBg').style.width=document.documentElement.scrollWidth+"px";}}
var accordion_slideSpeed=25;var accordion_timer=10;var objectIdToSlideDown=false;var accordion_activeId=false;var accordion_slideInProgress=false;function showHideContentAccordion(e,inputId)
{if(accordion_slideInProgress)return;accordion_slideInProgress=true;if(!inputId)inputId=this.id;inputId=inputId+'';var numericId=inputId.replace(/[^0-9]/g,'');var bodyDiv=document.getElementById('accordion_a'+numericId);objectIdToSlideDown=false;if(!bodyDiv.style.display||bodyDiv.style.display=='none')
{if(accordion_activeId&&accordion_activeId!=numericId)
{objectIdToSlideDown=numericId;var temp=document.getElementById("accordion_q"+numericId);temp.className='accordion_head_selected';var divs=document.getElementsByTagName('DIV');var divCounter=1;for(var no=0;no<divs.length;no++){if(divs[no].id=='accordion_q'+divCounter){if(numericId!=divCounter){var temp=document.getElementById("accordion_q"+divCounter);temp.className='accordion_head';}
divCounter++;}}
slideContentAccordion(accordion_activeId,(accordion_slideSpeed*-1));}
else
{bodyDiv.style.display='block';bodyDiv.style.visibility='visible';var temp=document.getElementById("accordion_q"+numericId);temp.className='accordion_head_selected';slideContentAccordion(numericId,accordion_slideSpeed);}}
else
{accordion_slideInProgress=false;}
return(false);}
function slideContentAccordion(inputId,direction)
{var obj=document.getElementById('accordion_a'+inputId);var contentObj=document.getElementById('accordion_ac'+inputId);height=obj.clientHeight;if(height==0)height=obj.offsetHeight;height=height+direction;rerunFunction=true;if(height>contentObj.offsetHeight){height=contentObj.offsetHeight;rerunFunction=false;}
if(height<=1){height=1;rerunFunction=false;}
obj.style.height=height+'px';var topPos=height-contentObj.offsetHeight;if(topPos>0)topPos=0;contentObj.style.top=topPos+'px';if(rerunFunction){setTimeout('slideContentAccordion('+inputId+','+direction+')',accordion_timer);}else{if(height<=1){obj.style.display='none';if(objectIdToSlideDown&&objectIdToSlideDown!=inputId){document.getElementById('accordion_a'+objectIdToSlideDown).style.display='block';document.getElementById('accordion_a'+objectIdToSlideDown).style.visibility='visible';slideContentAccordion(objectIdToSlideDown,accordion_slideSpeed);}else{accordion_slideInProgress=false;}}else{if(accordion_activeId&&accordion_activeId!=inputId){var accOldHead=document.getElementById("accordion_q"+inputId);var accNewHead=document.getElementById("accordion_q"+accordion_activeId);var newATags=accOldHead.getElementsByTagName('span');var oldATags=accNewHead.getElementsByTagName('span');var stringOld=(oldATags[0].id).split(' ').join('');var stringNew=(newATags[0].id).split(' ').join('');}
accordion_activeId=inputId;accordion_slideInProgress=false;}}}
function initShowHideDivs()
{var imgdivs=document.getElementsByTagName('img');var imgCounter=1;for(var no=0;no<imgdivs.length;no++)
{if(imgdivs[no].className!=null){if(imgdivs[no].className=='accordionimgclose'){imgdivs[no].id='open_button'+imgCounter;imgCounter++}}}
var divs=document.getElementsByTagName('DIV');var divCounter=1;for(var no=0;no<divs.length;no++)
{if(divs[no].className=='accordion_head_selected')
{divs[no].onclick=showHideContentAccordion;divs[no].className='accordion_head';divs[no].id='accordion_q'+divCounter;var body=divs[no].nextSibling;while(body&&body.tagName!='DIV')
{body=body.nextSibling;}
body.id='accordion_a'+divCounter;contentDiv=body.getElementsByTagName('DIV')[0];contentDiv.className='accordion_body_content';contentDiv.id='accordion_ac'+divCounter;body.style.visibility='hidden';body.style.overflow='hidden';body.style.display='none';body.style.height='1px';divCounter++;var answerDiv=document.getElementById('accordion_a'+1);answerDiv.style.display='block';answerDiv.style.visibility='visible';var questionDiv=document.getElementById('accordion_q'+1);questionDiv.className='accordion_head_selected';}}}
function validate()
{var contactemail=document.test.EmailAddress.value;document.getElementById('form-emailaddress').className='text_office rep_text_office';if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(contactemail))
{document.getElementById('first_label').className='text all_fields_visible';document.getElementById('second_label').className='required fields_hidden';}
else
{document.getElementById('form-emailaddress').className='text_office rep_text_office fieldError';document.getElementById('first_label').className='text fields_hidden';document.getElementById('second_label').className='required all_fields_visible';}}
var width=0;function showHidden(e,inputId){if(!inputId)inputId=this.id;inputId=inputId+'';var numericId=inputId.replace(/[^0-9]/g,'');var outDiv=document.getElementById('outDiv'+numericId);var overDiv=document.getElementById('overDiv'+numericId);var BgoutDiv=document.getElementById('outBg'+numericId);var BgoverDiv=document.getElementById('overBg'+numericId);outDiv.style.display='none';BgoutDiv.style.display='none';overDiv.style.display='block';BgoverDiv.style.display='block';overDiv.onmousemove=retainShowOver;BgoverDiv.onmousemove=retainShowOver;overDiv.onmouseout=hideShowOver;BgoverDiv.onmouseout=hideShowOver;}
function hideShowOver(e,inputId){if(!inputId)inputId=this.id;inputId=inputId+'';var numericId=inputId.replace(/[^0-9]/g,'');var outDiv=document.getElementById('outDiv'+numericId);var overDiv=document.getElementById('overDiv'+numericId);var BgoutDiv=document.getElementById('outBg'+numericId);var BgoverDiv=document.getElementById('overBg'+numericId);outDiv.style.display='block';BgoutDiv.style.display='block';overDiv.style.display='none';BgoverDiv.style.display='none';}
function retainShowOver(e,inputId){if(!inputId)inputId=this.id;inputId=inputId+'';var numericId=inputId.replace(/[^0-9]/g,'');var outDiv=document.getElementById('outDiv'+numericId);var overDiv=document.getElementById('overDiv'+numericId);var BgoutDiv=document.getElementById('outBg'+numericId);var BgoverDiv=document.getElementById('overBg'+numericId);outDiv.style.display='none';BgoutDiv.style.display='none';overDiv.style.display='block';BgoverDiv.style.display='block';}
function showBannerInit(){var divs=document.getElementsByTagName('DIV');var outdivCounter=1;var overdivCounter=1;var counter=0;var overcounter=0;for(var no=0;no<divs.length;no++){if(divs[no].className=='outDiv'){divs[no].onmouseover=showHidden;divs[no].id='outDiv'+outdivCounter;divs[no].style.display='block';counter++;outdivCounter++;}
if(divs[no].className==('overDiv'+overdivCounter)){divs[no].id='overDiv'+overdivCounter;overcounter++;divs[no].className='overDiv';divs[no].style.display='none';var bg=divs[no].nextSibling;while(bg&&bg.tagName!='DIV'){bg=bg.nextSibling;}
bg.id='overBg'+overdivCounter;bg.className='overBg';bg.style.display='none';overdivCounter++;}}
width=666/counter;var divs=document.getElementsByTagName('DIV');var divCounter=1;leftValue=0;for(var no=0;no<divs.length;no++){if(divs[no].className=='outDiv'){divs[no].style.left=leftValue+'px';divs[no].style.width=width-10+'px';var bg=divs[no].nextSibling;while(bg&&bg.tagName!='DIV'){bg=bg.nextSibling;}
bg.id='outBg'+divCounter;bg.style.display='block';bg.style.left=leftValue+'px';bg.style.width=width-1+'px';divCounter++;leftValue=leftValue+width;}}
var divs=document.getElementsByTagName('DIV');var val=0;var overValue=0;for(var no=0;no<divs.length;no++){if(divs[no].className=='overBg'){divs[no].style.left=val+'px';divs[no].style.width=width-1+'px';divs[no].style.display='none';val=val+width;}
if(divs[no].className=='overDiv'){divs[no].style.left=overValue+'px';divs[no].style.width=width-10+'px';overValue=overValue+width;}}}
var currentPage=1;var pgIntCntWdth=0;function checkAndLoadHash(){if(location.hash!=""){if(isNaN(location.hash.split("#")[1])==false){if(parseInt(location.hash.split("#")[1])>0){if(currentPage!=parseInt(location.hash.split("#")[1])){return parseInt(location.hash.split("#")[1]);}}}}
return currentPage;}
function updateHash(){if(currentPage!=checkAndLoadHash()){showDiv(checkAndLoadHash());}}
var setCount=10;var prevCount=5;var generatePagination=function(){var returnString="";if(totalPages>0){if(totalPages<10){pgIntCntWdth=(totalPages*31);}
else{pgIntCntWdth=290;}
if(currentPage>1){returnString+="<div class=\"prvsDiv\"><a class=\"prvs\" href=\"#"+(currentPage-1)+"\" onclick=\"showDiv("+(currentPage-1)+");\"></a></div>";}else{returnString+="<div class=\"prvsDiv\" style=\"display: none\"> </div>";}
pgIntCntWdth+=15;returnString+="<div><ul class=\"navDiv\">";var startNumber=(totalPages<=setCount)?1:(((currentPage-prevCount)<1)?1:(currentPage-prevCount));var endNumber=((startNumber+setCount)>(totalPages+1))?(totalPages+1):(startNumber+setCount);startNumber=((endNumber-startNumber)<(setCount))?((startNumber-((setCount)-(endNumber-startNumber)))<1?1:(startNumber-((setCount)-(endNumber-startNumber)))):startNumber;for(var currentNumber=startNumber;currentNumber<endNumber;currentNumber++){if(currentNumber==currentPage){if(currentNumber==(endNumber-1)){returnString+="<li class=\"selPageNumEnd\">"+currentNumber+"</li>";}
else{returnString+="<li class=\"selPageNum\">"+currentNumber+"</li>";}}else{if(currentNumber==(endNumber-1)){returnString+="<li class=\"pgnLst\"><a href=\"#"+currentNumber+"\" onclick=\"showDiv("+currentNumber+");\">"+currentNumber+"</a></li>";}
else{returnString+="<li><a href=\"#"+currentNumber+"\" onclick=\"showDiv("+currentNumber+");\">"+currentNumber+"</a></li>";}}}
returnString+="</ul></div>";returnString+="<div class=\"cntDiv\"> of<span id=\"PageCount\">"+totalPages+"</span> </div>";pgIntCntWdth+=100;if(currentPage<totalPages){returnString+="<div class=\"nxtDiv\"><a class=\"nxt\" href=\"#"+(currentPage+1)+"\" onclick=\"showDiv("+(currentPage+1)+");\"> </a></div>";}else{returnString+="<div class=\"nxtDiv\" style=\"display: none\"> </div>";}
pgIntCntWdth+=11;pgIntCntWdth=pgIntCntWdth+'px'
document.getElementById('paginationInrContent').style.width=pgIntCntWdth;return returnString;}else{return returnString;}}
function showDiv(divNumber){if(document.getElementById("div"+divNumber)){if(currentPage!=divNumber){document.getElementById("div"+currentPage).style.display="none";document.getElementById("div"+divNumber).style.display="block";currentPage=divNumber;}
else{if(!window.location.hash){window.location=window.location+'#1';}}
document.getElementById("paginationInrContent").innerHTML=generatePagination();}else{window.location=window.location.href.split('#')[0];}}
var currShow=false;var boxHeight,cntHeight;function setOpacity(obj,opacity){opacity=(opacity==100)?99.999:opacity;obj.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="
+opacity+");";obj.style.KHTMLOpacity=opacity/100;obj.style.MozOpacity=opacity/100;obj.style.opacity=opacity/100;}
var maxTooltipHt=false;function ShowChildFunction(inputId,numericId){var inputId=inputId;var numericId=numericId;currShow=numericId;var x=document.getElementById("tooltipBody"+numericId);leftX=findPosX(x);topY=findPosY(x);if(maxTooltipHt){var element=document.getElementById('toolTip');while(element.firstChild){element.removeChild(element.firstChild);}
var newTooltip=document.createElement('div');newTooltip.id='tooltipBox';var parTooltip=document.getElementById('toolTip');parTooltip.appendChild(newTooltip);maxTooltipHt=false;}
if(numericId==1){var element=document.getElementById('toolTip');while(element.firstChild){element.removeChild(element.firstChild);}
var newTooltip=document.createElement('div');newTooltip.id='tooltipBox';var parTooltip=document.getElementById('toolTip');parTooltip.appendChild(newTooltip);}
document.getElementById('copays').style.display="block";setOpacity(document.getElementById("arrow"),98);document.getElementById('tooltipBox').innerHTML=document.getElementById('tooltipContent'+numericId).innerHTML;getPosition('copays',leftX,topY,'arrow',currShow);}
function showdiv(e,inputId){boxHeight=0;cntHeight=0;if(!inputId)inputId=this.id;inputId=inputId+'';document.getElementById(inputId).className='tooltipHeadSelected';var numericId=inputId.replace(/[^0-9]/g,'');pausecomp(500);ShowChildFunction(inputId,numericId);return(false);}
function pausecomp(millis)
{var date=new Date();var curDate=null;do{curDate=new Date();}
while(curDate-date<millis);}
function showTooltip(numId){var numericId=numId;var x=document.getElementById("tooltipBody"+numericId);leftX=findPosX(x);topY=findPosY(x);document.getElementById('copays').style.display="block";}
function findPosX(obj)
{var curleft=0;if(obj.offsetParent)
while(1)
{curleft+=obj.offsetLeft;if(!obj.offsetParent)
break;obj=obj.offsetParent;}
else if(obj.x)
curleft+=obj.x;return curleft;}
function findPosY(obj)
{var curtop=0;if(obj.offsetParent)
while(1)
{curtop+=obj.offsetTop;if(!obj.offsetParent)
break;obj=obj.offsetParent;}
else if(obj.y)
curtop+=obj.y;return curtop;}
function getPosition(divnamePos,leftX,topY,arrowDiv,divCount){var screenW,screenH;screenW=screen.width;screenH=screen.height;var divNumber=divCount;var divLeft,divTop;divLeft=leftX;divTop=topY;var spaceX=screenW-divLeft;var spaceY=screenH-divTop;var positionId;getWindowSize();var totalHt=myHeight;var totalWt=myWidth;var myWindowWidth=0,myWindowHeight=0;if(typeof(window.innerWidth)=='number'){myWindowWidth=window.innerWidth;myWindowHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWindowWidth=document.documentElement.clientWidth;myWindowHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWindowWidth=document.body.clientWidth;myWindowHeight=document.body.clientHeight;}
screenW=myWindowWidth;screenH=myWindowHeight;var scrollHt=document.documentElement.scrollTop;var scrollBt=document.documentElement.scrollLeft;var visibleScreen=(scrollHt)+(screenH);boxHeight=document.getElementById("tooltipBox").offsetHeight;var boxWidth=document.getElementById("tooltipBox").offsetHeight;var tooltipY=divTop+boxHeight+38;if(boxHeight>=440){cntHeight=430;document.getElementById("cntxtHlpInnrCnt").style.overflow='hidden';document.getElementById('tooltipBox').style.height='440px';document.getElementById('tooltipBox').style.overflow='hidden';maxTooltipHt=true;}else{cntHeight=boxHeight;}
var tempDiv1=document.getElementById('tooltipHead'+divNumber);tempDivX1=findPosX(tempDiv1);var tiplength1=divLeft-tempDivX1;if(((divLeft-scrollBt)-tiplength1)>200&&(screenW-(divLeft-scrollBt))>200&&boxHeight<440&&(divTop-scrollHt)>(boxHeight+100)){var tempDiv=document.getElementById('tooltipHead'+divNumber);tempDivX=findPosX(tempDiv);var tiplength=divLeft-tempDivX;tiplength=tiplength/2;document.getElementById(divnamePos).style.left=(divLeft-200-tiplength)+"px";if(document.all){document.getElementById(divnamePos).style.top=(divTop-(cntHeight+90))+"px";}
else{document.getElementById(divnamePos).style.top=(divTop-(cntHeight+80))+"px";}
positionId="top";}else{if((screenW-divLeft)>420){document.getElementById(divnamePos).style.left=(divLeft+14)+"px";positionId="right";}else{var tempDiv=document.getElementById('tooltipHead'+divNumber);tempDivX=findPosX(tempDiv);var tiplength=divLeft-tempDivX;if(((divLeft-scrollBt)-tiplength)<(screenW-(divLeft-scrollBt))){document.getElementById(divnamePos).style.left=(divLeft+10)+"px";positionId="right";}else{document.getElementById(divnamePos).style.left=((divLeft-tiplength-425))+"px";positionId="left";}}
if((screenH-divTop)>500){if(boxHeight>440){var tempValue=divTop+480;if(tempValue>visibleScreen){var tempHeight=tempValue-visibleScreen;document.getElementById(divnamePos).style.top=(divTop-(tempHeight))+"px";}else{var tempHeight=tooltipY-visibleScreen;document.getElementById(divnamePos).style.top=(divTop-20)+"px";}}
else{if(tooltipY>visibleScreen){var tempHeight=tooltipY-visibleScreen;document.getElementById(divnamePos).style.top=(divTop-(tempHeight))+"px";}else{document.getElementById(divnamePos).style.top=(divTop-20)+"px";}}}else{if(boxHeight>440){var tempValue=divTop+480;if(tempValue>(visibleScreen)){var tempHeight=tempValue-visibleScreen;document.getElementById(divnamePos).style.top=(divTop-(15+tempHeight))+"px";}else{var tempHeight=tooltipY-visibleScreen;document.getElementById(divnamePos).style.top=(divTop-20)+"px";}}
else{if(tooltipY>visibleScreen){var tempHeight=tooltipY-visibleScreen;document.getElementById(divnamePos).style.top=(divTop-(15+tempHeight))+"px";}else{document.getElementById(divnamePos).style.top=(divTop-20)+"px";}}}}
if(positionId=="top"){document.getElementById(arrowDiv).style.left=190+"px";if(document.all){document.getElementById(arrowDiv).style.top=(cntHeight+68)+"px";document.getElementById(arrowDiv).style.backgroundImage='url(/system/css/arrow.gif)';}
else{document.getElementById(arrowDiv).style.top=(cntHeight+59)+"px";document.getElementById(arrowDiv).style.backgroundImage='url(/system/css/arrowff.gif)';}
document.getElementById('arrow').style.width='34px';document.getElementById('arrow').style.height='24px';document.getElementById('cntxtHlpBgId').style.height=(cntHeight+46)+"px";}else if(positionId=="right"){document.getElementById(arrowDiv).style.left=-16+"px";if(boxHeight>440){var tempValue=divTop+480;if(tempValue>visibleScreen){var tempHeight=tempValue-visibleScreen;document.getElementById(arrowDiv).style.top=(tempHeight+10)+"px";}else{var tempHeight=tooltipY-visibleScreen;document.getElementById(arrowDiv).style.top=15+"px";}}
else{if(tooltipY>visibleScreen){var tempHeight=tooltipY-visibleScreen;document.getElementById(arrowDiv).style.top=(tempHeight+10)+"px";}else{document.getElementById(arrowDiv).style.top=15+"px";}}
document.getElementById(arrowDiv).style.backgroundImage="url(/system/css/arrow_lt_1.gif)";document.getElementById('arrow').style.width='20px';document.getElementById('arrow').style.height='35px';document.getElementById('cntxtHlpBgId').style.height=(cntHeight+40)+"px";}
else if(positionId=="left"){document.getElementById(arrowDiv).style.left=401+"px";if(boxHeight>440){var tempValue=divTop+480;if(tempValue>visibleScreen){var tempHeight=tempValue-visibleScreen;document.getElementById(arrowDiv).style.top=(tempHeight+10)+"px";}else{var tempHeight=tooltipY-visibleScreen;document.getElementById(arrowDiv).style.top=15+"px";}}
else{if(tooltipY>visibleScreen){var tempHeight=tooltipY-visibleScreen;document.getElementById(arrowDiv).style.top=(tempHeight+10)+"px";}else{document.getElementById(arrowDiv).style.top=15+"px";}}
document.getElementById(arrowDiv).style.backgroundImage="url(/system/css/arrow_rt_1.gif)";document.getElementById('arrow').style.width='23px';document.getElementById('arrow').style.height='37px';document.getElementById('cntxtHlpBgId').style.height=(cntHeight+40)+"px";}}
function closediv()
{document.getElementById('copays').style.display="none";document.getElementById('tooltipHead'+currShow).className='tooltipHead';}
function closeChildFunction(){pausecomp(500);document.getElementById('tooltipHead'+currShow).className='tooltipHead';document.getElementById('copays').style.display="none";}
function closeTooltip(closeId)
{document.getElementById('tooltipHead'+currShow).className='tooltipHead';document.getElementById('copays').style.display="none";}
function initTooltip(){var spans=document.getElementsByTagName('span');spanCounterOne=1;spanCounterTwo=1;for(var no=0;no<spans.length;no++){if(spans[no].className=='tooltipHead'){spans[no].id='tooltipHead'+spanCounterOne;spans[no].onmouseover=showdiv;spans[no].onmouseout=closediv;spanCounterOne++;}
if(spans[no].className=='tooltipBody'){spans[no].id='tooltipBody'+spanCounterTwo;spanCounterTwo++}}
var divs=document.getElementsByTagName('div');var divCounter=1;for(var no=0;no<divs.length;no++){if(divs[no].className=='tooltipContent'){divs[no].id='tooltipContent'+divCounter;divCounter++;}}
if(document.getElementById('copays')){var tooltipContainer=document.getElementById('copays');tooltipContainer.onmouseover=function(){showTooltip(currShow);}
tooltipContainer.onmouseout=closeTooltip;document.getElementById('tooltipCloseBox').onclick=closediv;}}
function getWindowSize(){if((typeof(window.innerWidth)=='number')||(document.body&&(document.body.clientWidth||document.body.clientHeight))){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}}
function validate_theme_search_form(thisform){var searchInput=document.getElementById('query').value;for(var i=0;i<searchInput.length;++i){if(searchInput[i]==';'||searchInput[i]=='<'||searchInput[i]=='>'||searchInput[i]=='\\'||searchInput[i]=='&'){document.getElementById('form-refineSearchQuery').value=searchInput.substring(0,i);return true;}}
return true;}
var myWindow;function printVersion(){myWindow=window.open('dummyPrint.html',"PopUpWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=950,height=600');}
function PrintContents(){printedDiv=document.getElementById("wrapper");var printContents="<div class='printPopHead'><a href='#' onclick='window.print()' class='popPrintLink'>Print</a></div>";printContents+=printedDiv.innerHTML;printContents+="<br/>";myWindow.document.body.innerHTML=printContents;var aPrint=myWindow.document.body.getElementsByTagName('a');for(l=0;l<aPrint.length;l++){if(aPrint[l].className!='popPrintLink'){aPrint[l].removeAttribute('href');aPrint[l].style.cursor='text';aPrint[l].style.color='#000';}}}
dojo.addOnLoad(onLoadWebformMethod);function onLoadWebformMethod()
{var divObjs=document.getElementsByTagName('DIV');for(var i=0;i<divObjs.length;i++)
{if(divObjs[i].className=="toShowOnLoad")
{divObjs[i].className="toHideOnLoad";}
else if(divObjs[i].className=="toHideOnLoad")
{divObjs[i].className="toShowOnLoad";}}}