var hexcase=0;var b64pad="";var chrsz=8;var currentHost=window.location.host;var CurrentUser=retrieveSSOCookieUserId();var screenname=retrieveSSOCookieUserId();var GuidelineTextArray=Array("Ask great questions. Share what you know. Correct others politely if they're wrong.","Start a dialogue. Being part of a community means expressing differing views with others. Defend your viewpoint with facts and opinions, not name calling and attacks.","The site is meant for the entire community. Explicit language and content is not welcome. If it's inappropriate for The Simpsons, it's probably inappropriate here.","Don't encourage acts of violence. The only people likely to meet you for a fight are the police.","Being part of a community means tolerating differing views, as well as helping keep order. Report comments that are inappropriate, not just those with which you don't agree.","Don't pretend to be someone else, and don't give out the information or identity of others.","We take numerous measures to protect the information you share with this site. We recommend you take care with what you share with others.","We hope that you will base your opinions on facts and logic. But we can't certify that anyone does; the only comments we endorse are those we write.","No one wins in a flame war. This is your community, make it a better place by sharing what you have to say.","Stay on target. A focused conversation makes for a better community. Use your personal blog to introduce new topics to the community.","This is a public community. Comments submitted will remain in public view unless they violate our site’s Terms of Use. Please think before you click submit.");screenname=screenname.replace("+"," ");if(CurrentUser!=""&&CurrentUser!="undefined"){CurrentUser=hex_md5(CurrentUser)}CurrentUser=CurrentUser;function searchBoxOnfocus(d,b,c){if(document.getElementById(d).elements[b].value==c){document.getElementById(d).elements[b].value=""}}function searchBoxOnblur(d,b,c){if(document.getElementById(d).elements[b].value==""){document.getElementById(d).elements[b].value=c}}function createIE6Message(){tempCookieValue=getCookie("IE6Closed");if(tempCookieValue==""){document.write("<div style='border:1px solid #F7941D;background:#fff2e2;text-align:center;clear:both;height:41px;position:relative;'>");document.write("<div style='position:absolute;right:3px;top:3px;font-family:courier new;font-weight:bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display=\"none\";setIE6Cookie();return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border:none;' alt='Close this notice'/></a></div>");document.write("<div style='width:1000px;margin:0px auto;text-align:left;padding:0px;overflow:hidden;color:black;'>");document.write("<div style='width:50px;float:left;'><img src='"+publicusPath+"/Global/images/ie6nomore-warning.jpg' alt='Warning!' width='50' height='41'/></div>");document.write("<div style='width:255px;float:left;font-family:Arial,sans-serif;'>");document.write("<div style='font-size:14px;font-weight:bold;margin-top:12px;'>You are using an outdated browser</div>");document.write("</div>");document.write("<div style='width:290px;float:left;font-family:\"Trebuchet MS\",Times,sans-serif;'>");document.write("<div style='font-size:12px;margin-top:6px;line-height:14px;'>For a better experience using this site, please upgrade to a modern web browser as shown here:</div>");document.write("</div>");document.write("<div style='width:90px;float:left;'><a href='http://www.firefox.com' target='_blank'><img src='"+publicusPath+"/Global/images/ie6nomore-firefox.jpg' alt='Get Firefox 3.5' width='90' height='41' style='border: none;'/></a></div>");document.write("<div style='width:88px;float:left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='"+publicusPath+"/Global/images/ie6nomore-ie8.jpg' alt='Get Internet Explorer 8' width='88' height='41' style='border: none;'/></a></div>");document.write("<div style='width:88px;float:left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='"+publicusPath+"/Global/images/ie6nomore-safari.jpg' alt='Get Safari 4' width='88' height='41' style='border: none;'/></a></div>");document.write("<div style='float:left;'><a href='http://www.google.com/chrome' target='_blank'><img src='"+publicusPath+"/Global/images/ie6nomore-chrome.jpg' alt='Get Google Chrome' width='81' height='41' style='border: none;'/></a></div>");document.write("</div>");document.write("</div>")}}function setIE6Cookie(){document.cookie="IE6Closed=1;domain="+gFPCDom+";path=/"}function changeSubSearchType(g,f,c,b){if(document.getElementById(g).elements.subSearchType){document.getElementById(g).elements.subSearchType.value=f;for(var d=0;d<=b;d++){if(c!=d){document.getElementById("lnk"+g+d).className="general_black"}else{document.getElementById("lnk"+g+d).className="active general_black"}}}}function onTabOver(c,b){if(document.getElementById("tab"+c+b).className!="activeTab"){document.getElementById("tab"+c+b+"Left").className="hoverTabLeft";document.getElementById("tab"+c+b).className="hoverTab";document.getElementById("tab"+c+b+"Right").className="hoverTabRight"}}function onTabOut(c,b){if(document.getElementById("tab"+c+b).className!="activeTab"){document.getElementById("tab"+c+b+"Left").className="inactiveTabLeft";document.getElementById("tab"+c+b).className="inactiveTab";document.getElementById("tab"+c+b+"Right").className="inactiveTabRight"}}function tabOnMouseOver(b){var c="tabSelected";if(b>0){c=c+" singleMarginLeft"}if(document.getElementById("htwt"+b)!=null){document.getElementById("htwt"+b).className=c}if(document.getElementById("mtwt"+b)!=null){c=c+" tabHomepage";document.getElementById("mtwt"+b).className=c}}function tabOnMouseOut(b){var c="tabUnselected";if(b>0){c=c+" singleMarginLeft"}if(b!=g_curtab){if(document.getElementById("htwt"+b)!=null){document.getElementById("htwt"+b).className=c}if(document.getElementById("mtwt"+b)!=null){c=c+" tabHomepage";document.getElementById("mtwt"+b).className=c}}}function onTabClick(d,b,c){setTabsInactive(d,b,c);document.getElementById("tab"+d+b+"Left").className="activeTabLeft";document.getElementById("tab"+d+b).className="activeTab";document.getElementById("tab"+d+b+"Right").className="activeTabRight";document.getElementById("link"+d+b).className="active";document.getElementById("content"+d+b).style.display="block"}function onMhTabClick(d,b,c){setTabsInactive(d,b,c);document.getElementById("tab"+d+b+"Left").className="activeTabLeft";document.getElementById("tab"+d+b).className="activeTab";document.getElementById("tab"+d+b+"Right").className="activeTabRight";document.getElementById("link"+d+b).className="active";document.getElementById("content"+d+b).style.display="block"}function setTabsInactive(f,c,d){for(var b=0;b<=d;b++){if(c!=b){document.getElementById("tab"+f+b+"Left").className="inactiveTabLeft";document.getElementById("tab"+f+b).className="inactiveTab";document.getElementById("tab"+f+b+"Right").className="inactiveTabRight";document.getElementById("link"+f+b).className="inactive";document.getElementById("content"+f+b).style.display="none"}}}function deactivateMTWTab(b){if(g_timer!=null){clearTimeout(g_timer)}g_curtab=-1}function activateMTWTab(c,b){if(b){if(g_timer!=null){clearTimeout(g_timer)}g_timer=null;g_curtab=c;showTab()}else{if(c!=g_curtab){if(g_timer!=null){clearTimeout(g_timer)}g_curtab=c;g_timer=setTimeout(showTab,500)}}return false}function showTab(){id=g_curtab;var c=0;var b=1;while(e=document.getElementById("mtwt"+c)){if(id==c){e.className=e.className.replace(/tabUnselected/,"tabSelected");if(e=document.getElementById("mtwta"+c)){e.style.display="block"}if(e=document.getElementById("mtwtc"+c)){e.style.display="block"}if(document.getElementById("tempTabSelected"+(c+1))){document.getElementById("tempTabSelected"+(c+1)).value=1}}else{e.className=e.className.replace(/tabSelected/,"tabUnselected");if(e=document.getElementById("mtwta"+c)){e.style.display="none"}if(e=document.getElementById("mtwtc"+c)){e.style.display="none"}if(document.getElementById("tempTabSelected"+(c+1))){document.getElementById("tempTabSelected"+(c+1)).value=0}}c++;e=document.getElementById("mtwt"+c)}}function activateHTWTab(c,b){if(b){if(g_timer!=null){clearTimeout(g_timer)}g_timer=null;g_curtab=c;showHubTab()}else{if(c!=g_curtab){if(g_timer!=null){clearTimeout(g_timer)}g_curtab=c;g_timer=setTimeout(showTab,500)}}return false}function showHubTab(){id=g_curtab;var c=0;var b=1;while(e=document.getElementById("htwt"+c)){if(id==c){e.className=e.className.replace(/tabUnselected/,"tabSelected");if(e=document.getElementById("htwta"+c)){e.style.display="block"}if(e=document.getElementById("htwtc"+c)){e.style.display="block"}if(document.getElementById("tempHubTabSelected"+(c+1))){document.getElementById("tempHubTabSelected"+(c+1)).value=1}}else{e.className=e.className.replace(/tabSelected/,"tabUnselected");if(e=document.getElementById("htwta"+c)){e.style.display="none"}if(e=document.getElementById("htwtc"+c)){e.style.display="none"}if(document.getElementById("tempHubTabSelected"+(c+1))){document.getElementById("tempHubTabSelected"+(c+1)).value=0}}c++;e=document.getElementById("htwt"+c)}}function initFrontpage(){showImageHome();var b={widgets:[{name:"plLeaderboardPage",leaderboardKey:"d8592c02-564b-438f-945d-075518aab7c5",onPage:1},{name:"plMostCommentedArticles",format:"frontpage"},{name:"plMostRecommendedStories",format:"frontpage"},"plMostRecentPhotos","plPersonaMessageCount"]};if(!populateAvatarFromSession()){b.widgets.push("plPersonaAvatar")}b.uid=CurrentUser;$.getJSON(PluckUIPath+"/utils/utils/pluckUtils/ui.php?widget=batch&format=json&batchRequest="+escape(JSON.stringify(b))+"&jsoncallback=?",function(c){document.getElementById("mtwc1.mostActiveMembers").innerHTML=unescape(c.batchResult.plLeaderboardPage);document.getElementById("contentMoreNew1").innerHTML=unescape(c.batchResult.plMostCommentedArticles);document.getElementById("contentMoreNew3").innerHTML=unescape(c.batchResult.plMostRecommendedStories);document.getElementById("mtwc1.mostRecentPhotos").innerHTML=unescape(c.batchResult.plMostRecentPhotos);document.getElementById("messageCount").innerHTML=unescape(c.batchResult.plPersonaMessageCount);if(c.batchResult.plPersonaAvatar){document.getElementById("avatar").src=unescape(c.batchResult.plPersonaAvatar);setAvatarCookie(unescape(c.batchResult.plPersonaAvatar))}});pluckPageLoadCallback()}function initGenPage(){document.getElementById("mcmv0.c").innerHTML="";document.getElementById("elbc3.c").innerHTML="";document.getElementById("blogList").innerHTML="";var c={widgets:[{name:"plMostCommentedArticles",limit:5,format:"sectionFront",nameoverride:"plMostCommentedArticles1"},{name:"plMostCommentedArticles",limit:6,format:"sectionFront",nameoverride:"plMostCommentedArticles2"},"plPersonaMessageCount"]};if(blogList&&blogList.length>0){c.widgets.push({name:"plBlogListing",blogKeys:blogList})}if(!populateAvatarFromSession()){c.widgets.push("plPersonaAvatar")}c.uid=CurrentUser;$.getJSON(PluckUIPath+"/utils/utils/pluckUtils/ui.php?widget=batch&format=json&batchRequest="+escape(JSON.stringify(c))+"&jsoncallback=?",function(d){document.getElementById("mcmv0.c").innerHTML=unescape(d.batchResult.plMostCommentedArticles1);document.getElementById("elbc3.c").innerHTML=unescape(d.batchResult.plMostCommentedArticles2);document.getElementById("blogList").innerHTML=unescape(d.batchResult.plBlogListing);document.getElementById("messageCount").innerHTML=unescape(d.batchResult.plPersonaMessageCount);if(d.batchResult.plPersonaAvatar){document.getElementById("avatar").src=unescape(d.batchResult.plPersonaAvatar);setAvatarCookie(unescape(d.batchResult.plPersonaAvatar))}});var b="<div class='Summary_Container'>(none found)</div>";if(document.getElementById("mcmv0.c").innerHTML==""){document.getElementById("mcmv0.c").innerHTML=b}if(document.getElementById("elbc3.c").innerHTML==""){document.getElementById("elbc3.c").innerHTML=b}if(document.getElementById("blogList").innerHTML==""){document.getElementById("blogList").innerHTML=b}pluckPageLoadCallback()}function initArtPage(d,c,b,g){document.getElementById("artArtMostRecommended").innerHTML="";var h={widgets:[{name:"plMostRecommendedStories",format:"articlePage"},"plPersonaMessageCount"]};if(!populateAvatarFromSession()){h.widgets.push("plPersonaAvatar")}h.uid=CurrentUser;$.getJSON(PluckUIPath+"/utils/utils/pluckUtils/ui.php?widget=batch&format=json&batchRequest="+escape(JSON.stringify(h))+"&jsoncallback=?",function(k){document.getElementById("artArtMostRecommended").innerHTML=unescape(k.batchResult.plMostRecommendedStories);document.getElementById("messageCount").innerHTML=unescape(k.batchResult.plPersonaMessageCount);if(k.batchResult.plPersonaAvatar){document.getElementById("avatar").src=unescape(k.batchResult.plPersonaAvatar);setAvatarCookie(unescape(k.batchResult.plPersonaAvatar))}});var f="<div class='Summary_Container'>(none found)</div>";if(document.getElementById("artArtMostRecommended").innerHTML==""){document.getElementById("artArtMostRecommended").innerHTML=f}pluckPageLoadCallback()}function initAppsPage(){var b={widgets:["plPersonaMessageCount"]};if(!populateAvatarFromSession()){b.widgets.push("plPersonaAvatar")}b.uid=CurrentUser;$.getJSON(PluckUIPath+"/utils/utils/pluckUtils/ui.php?widget=batch&format=json&batchRequest="+escape(JSON.stringify(b))+"&jsoncallback=?",function(c){if(document.getElementById("messageCount")){document.getElementById("messageCount").innerHTML=unescape(c.batchResult.plPersonaMessageCount)}if(c.batchResult.plPersonaAvatar){if(document.getElementById("avatar")){document.getElementById("avatar").src=unescape(c.batchResult.plPersonaAvatar)}setAvatarCookie(unescape(c.batchResult.plPersonaAvatar))}});pluckPageLoadCallback()}function populateAvatarFromSession(){if(document.getElementById("avatar")){var c=getCookie("AVATAR");var d=getCookie("HD");var b="notloggedinavatar.gif";var f="no-user-image.gif";if(c&&(c.substr(c.length-b.length,b.length)!=b)&&(c.substr(c.length-f.length,f.length)!=f)&&d){document.getElementById("avatar").src=c;return true}else{if(c){return false}else{return false}}}else{return true}}function setAvatarCookie(c){if(c==""){document.getElementById("avatar").src=publicusPath+"/Global/images/notloggedinavatar.gif"}else{var b=new Date();b.setFullYear(b.getFullYear()+2);document.getElementById("avatar").src=c;document.getElementById("avatar").width="35";document.getElementById("avatar").height="35";document.cookie="AVATAR="+c+"; expires="+b.toGMTString()+";domain="+document.domain+";path=/"}}function showImageHome(){if(typeof imageCTR!="undefined"&&imageCTR){if(current_image>=imageCTR){current_image=0}else{if(current_image<0){current_image=imageCTR-1}}inner_html='<table align="center" cellpadding="0" cellspacing="0" border="0">\n<tr>\n<td valign="top">\n';inner_html=inner_html+'<a href="'+imagelink[current_image]+'" title="'+caption[current_image]+'"><img src="'+thumbnail[current_image]+'"';if(thumbnailHeight[current_image]>thumbnailWidth[current_image]){inner_html=inner_html+' width="72"'}else{inner_html=inner_html+' height="93"'}inner_html=inner_html+' alt="'+caption[current_image]+'" style="margin-right: 9px;" /></a>\n';inner_html=inner_html+'</td>\n<td style="font-size: 11px;" valign="top">\n<div style="height: 152px; overflow: hidden;">'+caption[current_image]+'</div>\n<div style="text-align: center;"><strong><a href="#" onclick="current_image=current_image-1; showImage (); return false;" title="previous" style="font-size:13px">&lt;&lt;</a>&nbsp;&nbsp;<a href="'+StaffPhotoGalleryLink+'">more</a>&nbsp;&nbsp;<a href="#" onclick="current_image=current_image+1; showImage (); return false;" title="next" style="font-size:13px">&gt;&gt;</a></strong></div></td>\n</tr>\n</table>';MyCapture_ID=document.getElementById("MyCaptureFeed");MyCapture_ID.innerHTML=inner_html}}function pluckPageLoadCallback(){var b=document.location.href.match("_ic=true");if(b){invalidateCache()}else{issueResponses()}}function invalidateCache(){consoleDebug("invalidateCache");var c=document.getElementsByTagName("body")[0];var b=document.createElement("iframe");b.id="frmInvalidateCacheAction";if(DappiPath!=""){b.src=DappiPath+"/utils/utils/pluckUtils/cachingProxy/pluck.service.php?action=invalidatecache&uid="+uniqueCacheGroupKey}else{b.src=appsPath+"/utils/utils/pluckUtils/cachingProxy/pluck.service.php?action=invalidatecache&uid="+uniqueCacheGroupKey}b.onreadystatechange=invalidateFrameLoaded;b.onload=invalidateFrameLoaded;c.appendChild(b);b.style.display="none"}function invalidateValueCache(){var c=document.getElementsByTagName("body")[0];var b=document.createElement("iframe");b.id="frmInvalidateCacheAction";if(DappiPath!=""){b.src=DappiPath+"/utils/utils/pluckUtils/cachingProxy/pluck.service.php?action=invalidatecache&cacheValue=PrivateMessageFolderList"}else{b.src=appsPath+"/utils/utils/pluckUtils/cachingProxy/pluck.service.php?action=invalidatecache&cacheValue=PrivateMessageFolderList"}b.onreadystatechange=invalidateFrameLoaded;b.onload=invalidateFrameLoaded;c.appendChild(b);b.style.display="none"}function invalidateFrameLoaded(){consoleDebug("cache invalidated");if(!document.getElementById("frmInvalidateCacheAction").readyState){issueResponses()}else{if(document.getElementById("frmInvalidateCacheAction").readyState=="complete"){issueResponses()}}}function issueResponses(){if($("#commentListing").length>0){consoleDebug("getting comments with art key = "+plckArticleKey+", limit = 10, currentPage = "+currentPage+", sort = "+sortParam);var b={widgets:[{name:"plCommentPageRequest",pageId:plckArticleKey,limit:10,pageNum:currentPage,sort:sortParam,referringHref:location.href}]};$.getJSON(PluckUIPath+"/utils/utils/pluckUtils/ui.php?widget=batch&format=json&batchRequest="+escape(JSON.stringify(b))+"&jsoncallback=?",function(c){$("#commentListing").html(unescape(c.batchResult.plCommentPageRequest));consoleDebug("comments set")})}}function pluckResponseHandler(responseBatch){for(var i=0;i<gPluckPageCallbackFns.length;i++){eval(gPluckPageCallbackFns[i]+"(responseBatch)")}}function pluckResponsePersonaHandler(responseBatch){for(var i=0;i<gPluckPageCallbackPersonaFns.length;i++){eval(gPluckPageCallbackPersonaFns[i]+"(responseBatch)")}}function registerPluckPageCallback(b){gPluckPageCallbackFns[gPluckPageCallbackFns.length]=b}function registerPluckPageCallbackPersona(b){gPluckPageCallbackPersonaFns[gPluckPageCallbackPersonaFns.length]=b}function activateSubMenu(d,c,b){index=0;if(d==-1){clearTimeout(menuDelay);menuDelay=setTimeout("activateDefaultMenu()",1000);return false}else{clearTimeout(menuDelay)}if(b){permLit=d}while(e=document.getElementById("top"+index)){if(index==d){e.className=wordReplace("off","on",e.className,true)}else{e.className=wordReplace("on","off",e.className,true)}index++}index=0;while(e=document.getElementById("sub"+index)){if(index==c){e.style.display="block"}else{e.style.display="none"}index++}return false}function activateDefaultMenu(){activateSubMenu(permLit,permSubMenu,false)}function wordReplace(h,k,d,b){var c=d.split(" ");var f="";var g=false;for($i=0;$i<c.length;$i++){if(c[$i]==h){f+=k+" ";g=true}else{f+=c[$i]+" "}}if(b&&!g){f+=k+" "}return f}function populateWelcomeText(){if(document.getElementById("welcomeText")){document.getElementById("welcomeText").innerHTML=RetrieveSSOCookieDisplayName();document.getElementById("avatar").alt=RetrieveSSOCookieDisplayName();if(CurrentUser!=""&&CurrentUser!="undefined"){document.getElementById("logonContent_loggedout").style.display="none";document.getElementById("logonContent_loggedin").style.display="";if(document.getElementById("CreateABlogLink")){document.getElementById("CreateABlogLink").href=PluckUIPath+"/utils/persona/ui/index.php"}}else{if(document.getElementById("CreateABlogLink")){document.getElementById("CreateABlogLink").href=appsPath+"/utils/ureg/ui/logon.php?returnURL="+escape(PluckUIPath+"/utils/persona/ui/index.php")}}}}function SaveEmail(){document.newsletterform.Remove.value="0";document.newsletterform.Subject.value="Subscribe to the newsletter"}function cleanDefault(b){if(b.defaultValue==b.value){b.value=""}}function checknumber(b){var c=/(^\d+$)|(^\d+\.\d+$)/;if(c.test(b)){testresult=true}else{alert("Please input a valid number!");testresult=false}return(testresult)}function checkForZero(b){if((b.value==0||b.value.length==0)&&checknumber(b.value)){alert("This field can't be 0!");b.focus()}}function cmdCalc_Click(b){if((b.price.value==0||b.price.value.length==0)&&checknumber(b.price.value)){alert("You must enter a valid Price!");b.price.focus()}else{if((b.ir.value==0||b.ir.value.length==0)&&checknumber(b.price.value)){alert("You must enter a valid Interest Rate!");b.ir.focus()}else{if((b.term.value==0||b.term.value.length==0)&&checknumber(b.price.value)){alert("You must enter a valid Term!");b.term.focus()}else{calculatePayment(b)}}}}function calculatePayment(b){var m=b.price.value;m=m.replace(",","");var h=b.dp.value;h=h.replace(",","");var n=m-h;var g=(b.ir.value/100);var k=(1+g/12)-1;var c=b.term.value*12;var o=(1-Math.pow((1/(1+k)),c))/k;var d=n/o;var l=(d*c)+h;var f="Mortgage Principle: $"+n+"<br />";f=f+"Number of Payments: "+c+"<br />";f=f+"Monthly Payment: $"+Math.ceil(d)+"<br />";f=f+"Total Amount Paid over the life of the loan: $"+Math.ceil(l)+"<br />";document.getElementById("mortgagecalculatorresults").innerHTML=f}function showImageArticle(b){if(typeof imageCTR!="undefined"&&imageCTR){if(b=="-1"){current_image=current_image-1}else{current_image=current_image+b}if(current_image>=imageCTR){current_image=0}else{if(current_image<0){current_image=imageCTR-1}}inner_html='<img src="'+publicusPath+"/Global/images/articles/guideline"+current_image+'.jpg" width="80" height="80" alt="Community Guide Lines" style="float:right;border:1px solid #CCCCCC;" />\n<div style="height:76px; width: 440px;"><div style="color: #000000; font-weight: bold; width: 440px;">Guideline '+(current_image+1)+"</div>"+GuidelineTextArray[current_image]+'</div><div style="font-size: 11px; line-height: 12px; width: 440px;">See all <a href="/section/communityguidlelines" title="Community Guidelines">Community Guidelines</a></div>';GuideLine_ID=document.getElementById("GuideLineText");GuideLine_ID.innerHTML=inner_html}}function articleCallback(){slFB.init(initFB)}function initFB(){refreshFBInterface()}function refreshFBInterface(){if(slFB.connectEnabled()){}else{}}function showHideSearchOption(k,f){var o=k;var c="reg";var p=null;var r=null;var d=null;var l=null;if(f=="2"){p=regionSelect2;r=communitySelect2;d=document.quickSearch2.qZip;tempZip=document.quickSearch2.tempZipValue2.value;tempRadius=document.quickSearch2.tempRadiusValue2.value;tempRegion=document.quickSearch2.tempRegionValue2.value;tempCommunity=document.quickSearch2.tempCommunityValue2.value;l=document.quickSearch2.qRadius;if(comSwiftRERegionSearch2==0){k="city";var s=document.getElementById("searchOption"+f);if(s){s.style.display="none"}}}else{if(f=="3"){p=regionSelect3;r=communitySelect3;d=document.quickSearch3.qZip;tempZip=document.quickSearch3.tempZipValue3.value;tempRadius=document.quickSearch3.tempRadiusValue3.value;tempRegion=document.quickSearch3.tempRegionValue3.value;tempCommunity=document.quickSearch3.tempCommunityValue3.value;l=document.quickSearch3.qRadius;if(comSwiftRERegionSearch3==0){k="city";var s=document.getElementById("searchOption"+f);if(s){s.style.display="none"}}}else{if(f=="4"){p=regionSelect4;r=communitySelect4;d=document.quickSearch4.qZip;tempZip=document.quickSearch4.tempZipValue4.value;tempRadius=document.quickSearch4.tempRadiusValue4.value;tempRegion=document.quickSearch4.tempRegionValue4.value;tempCommunity=document.quickSearch4.tempCommunityValue4.value;l=document.quickSearch4.qRadius;if(comSwiftRERegionSearch4==0){k="city";var s=document.getElementById("searchOption"+f);if(s){s.style.display="none"}}}else{if(f=="5"){p=regionSelect5;r=communitySelect5;d=document.quickSearch5.qZip;tempZip=document.quickSearch5.tempZipValue5.value;tempRadius=document.quickSearch5.tempRadiusValue5.value;tempRegion=document.quickSearch5.tempRegionValue5.value;tempCommunity=document.quickSearch5.tempCommunityValue5.value;l=document.quickSearch5.qRadius;if(comSwiftRERegionSearch5==0){k="city";var s=document.getElementById("searchOption"+f);if(s){s.style.display="none"}}}else{p=regionSelect;r=communitySelect;d=document.quickSearch1.qZip;tempZip=document.quickSearch1.tempZipValue1.value;tempRadius=document.quickSearch1.tempRadiusValue1.value;tempRegion=document.quickSearch1.tempRegionValue1.value;tempCommunity=document.quickSearch1.tempCommunityValue1.value;l=document.quickSearch1.qRadius;if(comSwiftRERegionSearch1==0){k="city";var s=document.getElementById("searchOption"+f);if(s){s.style.display="none"}}}}}}if(regionList.length<1){k="city";var s=document.getElementById("searchOption"+f);if(s){s.style.display="none"}}if(k=="reg"){if(tempRegion=="DEFAULT"){p.selectedIndex=comSwiftRERegion}else{p.selectedIndex=tempRegion}fillCommunities(p,r);if(tempCommunity!="DEFAULT"){r.selected=true;if(tempCommunity.search(/|/i)>-1){var q=tempCommunity.split("|");for(var h=0;h<q.length;h++){r.options[q[h]].selected=true}}else{r.selectedIndex=tempCommunity}}c="city";if(l!=null){l.selected=false;l.selectedIndex=""}d.value=""}else{if(l!=null){l.selected=true;if(tempRadius=="DEFAULT"){l.selectedIndex=1}else{l.selectedIndex=tempRadius}}if(tempZip=="DEFAULT"){d.value=comSwiftREZip}else{d.value=tempZip}p.selected=false;p.selectedIndex="";r.selected=false;r.selectedIndex="";fillCommunities(p,r)}var n=((navigator.appVersion.indexOf("MSIE")!=-1)&&!window.opera)?true:false;var g="inline";if(!n){g="table-row"}var b=document.getElementById(o+f+"1");var m=document.getElementById(c+f+"1");b.style.display=g;m.style.display="none"}function selectCurrentOption(){var g=document.getElementById("swiftOption2");if(g!=null){if(g.checked){showHideSearchOption("city","1")}}var f=document.getElementById("swiftOption4");if(f!=null){if(f.checked){showHideSearchOption("city","2")}}var d=document.getElementById("swiftOption6");if(d!=null){if(d.checked){showHideSearchOption("city","3")}}var b=document.getElementById("swiftOption8");if(b!=null){if(b.checked){showHideSearchOption("city","4")}}var c=document.getElementById("swiftOption10");if(c!=null){if(c.checked){showHideSearchOption("city","5")}}}function clearZip(b,c){if(b.value!=""){if(c==1){document.quickSearch1.qZip.value="";document.quickSearch1.qRadius.value=""}else{if(c==2){document.quickSearch2.qZip.value="";document.quickSearch2.qRadius.value=""}else{if(c==3){document.quickSearch3.qZip.value="";document.quickSearch3.qRadius.value=""}else{if(c==4){document.quickSearch4.qZip.value="";document.quickSearch4.qRadius.value=""}else{if(c==5){document.quickSearch5.qZip.value="";document.quickSearch5.qRadius.value=""}}}}}document.getElementById("tempZipValue"+c).value="";document.getElementById("tempRadiusValue"+c).value=""}}function updateTempZip(c,b){document.getElementById("tempZipValue"+b).value=c.value}function updateTempRegion(b,c){document.getElementById("tempRegionValue"+c).value=b.selectedIndex}function updateTempComunity(g,f){var d="";var b="";for(var c=0;c<g.options.length;c++){if(g.options[c].selected){d=b+c;b="|"}}document.getElementById("tempCommunityValue"+f).value=d}function updateTempRadius(c,b){document.getElementById("tempRadiusValue"+b).value=c.selectedIndex}function search_date(){month=document.date.month.options[document.date.month.selectedIndex].value;day=document.date.day.options[document.date.day.selectedIndex].value;year=document.date.year.options[document.date.year.selectedIndex].value;finaldate=year+month+day;document.date.StartDate.value=finaldate}function trim(d){var d=d.replace(/^\s\s*/,""),b=/\s/,c=d.length;while(b.test(d.charAt(--c))){}return d.slice(0,c+1)}function validateText(c,d,b){e=document.getElementById(c);errId=b==null?(c+"-error"):b;eErrMsg=document.getElementById(errId);if(d&&(trim(e.value)=="")){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> this field is required</span>"}return false}else{if(eErrMsg){eErrMsg.innerHTML=""}return true}}function validateEmail(d,h,c){e=document.getElementById(d);errId=c==null?(d+"-error"):c;eErrMsg=document.getElementById(errId);if(h&&(trim(e.value)=="")){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> this field is required</span>"}return false}else{var b=/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/;var g=/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@([a-zA-Z0-9][\w\.-]+)*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/;var f=/^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9]*([a-zA-Z0-9][\w\.-]+)*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\._]*[a-zA-Z]$/;if(f.test(e.value)==false){if(eErrMsg){eErrMsg.innerHTML=" invalid email address"}return false}else{if(eErrMsg){eErrMsg.innerHTML=""}return true}}}function validatePhoneNumber(b,d){e=document.getElementById(b);val=trim(e.value);eErrMsg=document.getElementById(b+"-error");if(d&&(val=="")){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> this field is required</span>"}return false}else{if(val!=""){var c=/^1?\d{10}$|^(1\s)?\(\d{3}\)\s?\d{3}[.-]\d{4}$|^(1[ .-])?\d{3}[ .-]?\d{3}[ .-]?\d{4}|\+.?$/;if(c.test(val)){if(eErrMsg){eErrMsg.innerHTML=""}return true}else{if(eErrMsg){eErrMsg.innerHTML=" phone number invalid"}return false}}else{if(eErrMsg){eErrMsg.innerHTML=""}return true}}}function validateInteger(c,h,b,f){e=document.getElementById(c);val=trim(e.value);eErrMsg=document.getElementById(c+"-error");if(h&&(val=="")){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> this field is required</span>"}return false}else{if(val!=""){var g=/^-?\d+$/;if(g.test(val)){var d=Number(val);if((b!=null)&&(d<b)){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> number is less than the minimum value of "+b+"</span>"}return false}else{if((f!=null)&&(d>f)){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> number is greater than the maximum value of "+f+"</span>"}return false}else{if(eErrMsg){eErrMsg.innerHTML=""}return true}}}else{if(eErrMsg){eErrMsg.innerHTML=" number invalid"}return false}}else{if(eErrMsg){eErrMsg.innerHTML=""}return true}}}function validateCurrency(c,h,b,f){e=document.getElementById(c);val=trim(e.value);eErrMsg=document.getElementById(c+"-error");if(h&&(val=="")){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> this field is required</span>"}return false}else{if(val!=""){var g=/^\$?-?\d+(.\d\d?)?$/;if(g.test(val)){var d=Number(val);if((b!=null)&&(d<b)){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> number is less than the minimum value of "+b+"</span>"}return false}else{if((f!=null)&&(d>f)){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> number is greater than the maximum value of "+f+"</span>"}return false}else{if(eErrMsg){eErrMsg.innerHTML=""}return true}}}else{if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> number invalid</span>"}return false}}else{if(eErrMsg){eErrMsg.innerHTML=""}return true}}}function validateTextArea(b,d,c){e=document.getElementById(b);val=trim(e.value);eErrMsg=document.getElementById(b+"-error");if(d&&(val=="")){if(eErrMsg){eErrMsg.innerHTML="<span class='formsError'> this field is required</span>"}return false}else{if(c>0){return validateWordCount(b,c)}else{if(eErrMsg){eErrMsg.innerHTML=""}return true}}}function validateWordCount(b,c){e=document.getElementById(b);val=trim(e.value);eErrMsg=document.getElementById(b+"-error");iWordCount=wordCount(val);if((c>0)&&(iWordCount>c)){if(eErrMsg){eErrMsg.className="formsError";eErrMsg.innerHTML="<span class='formsError'> max word count of "+c+" exceeded by "+(iWordCount-c)+" words.</span>"}return true}else{if(eErrMsg){eErrMsg.className="statusMsg";eErrMsg.innerHTML="word count: "+iWordCount+" of "+c}return true}}function wordCount(d){var c=d.replace(/\s+/g," ");var b=c.split(" ");return b.length}function viewMyMembershipPopUp(){document.getElementById("myMembershipPopUp").style.display="block";document.getElementById("myMembershipPopUpFooter").style.display="block";document.getElementById("myMembershipPopUpFooter").style.minHeight="8px";document.getElementById("myMembershipPopUp").style.minHeight="65px";document.getElementById("myMembershipPopUpFooter").style.top="-20px";document.getElementById("myMembershipPopUp").style.top="-20px";document.getElementById("myMembershipTab").style.display="block";document.getElementById("linkMyMembership").style.visibility="hidden";document.getElementById("linkMyMembership").style.display="none"}function closeMyMembershipPopUp(){document.getElementById("myMembershipPopUpFooter").style.display="none";document.getElementById("myMembershipPopUp").style.display="none";document.getElementById("myMembershipPopUpFooter").style.height="0px";document.getElementById("myMembershipPopUp").style.height="0px";document.getElementById("myMembershipTab").style.display="none";document.getElementById("linkMyMembership").style.display="inline";document.getElementById("linkMyMembership").style.visibility="visible"}function openLogonPopUp(){var b=encodeURIComponent(document.URL);location.href=appsPath+"/utils/ureg/ui/logon.php?returnURL="+b;return false}function setCookie(c,k,d,g,b){var h=c+"|"+d+"||"+k;if(g=="YES"){var f=new Date();f.setFullYear(f.getFullYear()+2);document.cookie="HD="+h+"; expires="+f.toGMTString()+";domain="+b+";path=/"}else{document.cookie="HD="+h+"; domain="+b+";path=/"}}function getCookie(c){if(document.cookie.length>0){var d=document.cookie.indexOf(c+"=");if(d!=-1){d=d+c.length+1;var b=document.cookie.indexOf(";",d);if(b==-1){b=document.cookie.length}return unescape(document.cookie.substring(d,b))}}return""}function retrieveSSOCookieUserId(){var f=getCookie("HD");var c=getCookie("suicSwift");if(f.length>0&&c.length>0){var b=f.split("|");return b[0].toLowerCase()}else{if(f.length>0||c.length>0){var d=new Date();d.setFullYear(d.getFullYear()-1);document.cookie="HD=; expires="+d.toGMTString()+";domain="+cookieDomain+";path=/";document.cookie="AVATAR=; expires="+d.toGMTString()+";domain="+cookieDomain+";path=/";document.cookie="avatar=; expires="+d.toGMTString()+";domain="+cookieDomain+";path=/";document.cookie="suicSwift=; expires="+d.toGMTString()+";domain="+cookieDomain+";path=/";return""}else{return""}}}function RetrieveSSOCookieDisplayName(){var f=getCookie("HD");var c=getCookie("suicSwift");if(f.length>0&&c.length>0){var b=f.split("|");return b[1]}else{if(f.length>0||c.length>0){var d=new Date();d.setFullYear(d.getFullYear()-1);document.cookie="HD=; expires="+d.toGMTString()+";domain="+cookieDomain+";path=/";document.cookie="AVATAR=; expires="+d.toGMTString()+";domain="+cookieDomain+";path=/";document.cookie="avatar=; expires="+d.toGMTString()+";domain="+cookieDomain+";path=/";document.cookie="suicSwift=; expires="+d.toGMTString()+";domain="+cookieDomain+";path=/";return""}else{return""}}}function RetrieveUserAvatarCookie(){var b=getCookie("AVATAR");return b}function logout(b,c){var d=new Date();d.setFullYear(d.getFullYear()-1);document.cookie="HD=; expires="+d.toGMTString()+";domain="+b+";path=/";document.cookie="AVATAR=; expires="+d.toGMTString()+";domain="+b+";path=/";document.cookie="avatar=; expires="+d.toGMTString()+";domain="+b+";path=/";document.cookie="suicSwift=; expires="+d.toGMTString()+";domain="+b+";path=/";if(c){window.location.href=appsPath+"/utils/ureg/ui/updateaccount.php?showLogoutSuccessful=true"}else{location.reload(true)}}function NewWindow(d,b,c){window.open(c,"PopUp","menubar=0,scrollbars=1,resizable=1,height="+b+",width="+d)}function activateWidgetTab(b,d){var c=0;if(eleft=document.getElementById(b+c+".l")){if(d==0){eleft.className=eleft.className.replace(/left_off/,"left_on")}else{eleft.className=eleft.className.replace(/left_on/,"left_off")}}while((emid=document.getElementById(b+c+".m"))&&(eright=document.getElementById(b+c+".r"))){erightnext=document.getElementById(b+(c+1)+".r");if(d==c){emid.className=emid.className.replace(/off/,"on");if(erightnext){eright.className=eright.className.replace(new RegExp("_offon|_offoff","g"),"_onoff")}else{eright.className=eright.className.replace(/right_off/,"right_on")}if(econtent=document.getElementById(b+(c)+".c")){econtent.style.display="block"}}else{emid.className=emid.className.replace(/on/,"off");if(erightnext){eright.className=eright.className.replace(new RegExp("_offon|_onoff|_offoff","g"),d==(c+1)?"_offon":"_offoff")}else{eright.className=eright.className.replace(/right_on/,"right_off")}if(econtent=document.getElementById(b+(c)+".c")){econtent.style.display="none"}}c++}return false}function activateWidgetTabNew(b,d){var c=0;while((emid=document.getElementById(b+c+".m"))&&(eright=document.getElementById(b+c+".r"))){eleft=document.getElementById(b+(c)+".l");if(d==c){emid.className=emid.className.replace(/off/,"on");eright.className=eright.className.replace(/off/,"on");if(eleft=document.getElementById(b+(c)+".l")){eleft.className=eright.className.replace(/off/,"on")}if(econtent=document.getElementById(b+(c)+".c")){econtent.style.display="block"}}else{emid.className=emid.className.replace(/on/,"off");eright.className=eright.className.replace(/on/,"off");if(eleft=document.getElementById(b+(c)+".l")){eleft.className=eright.className.replace(/on/,"off")}if(econtent=document.getElementById(b+(c)+".c")){econtent.style.display="none"}}c++}return false}function switchTabStatus(b){var c=0;if(emid=document.getElementById(b)){if(emid.className.search(/on/i)>=0){emid.className=emid.className.replace(/on/ig,"off")}else{emid.className=emid.className.replace(/off/ig,"on")}}return false}var MAX_DUMP_DEPTH=10;function dumpObj(h,d,b,k){if(k>MAX_DUMP_DEPTH){return b+d+": <Maximum Depth Reached>\n"}if(typeof h=="object"){var l=null;var c=b+d+"\n";b+="\t";for(var f in h){try{l=h[f]}catch(g){l="<Unable to Evaluate>"}if(typeof l=="object"){c+=dumpObj(l,f,b,k+1)}else{c+=b+f+": "+l+"\n"}}return c}else{return h}}function multipleFormSubmit(b){document.getElementById(b).disabled=true;var f=new Date();var c=hex_md5(document.getElementById("formId").value);c=c.concat(f.getTime());if(document.getElementById("formMultipleIdSubmit").value==""){document.getElementById("formMultipleIdSubmit").value=c;return true}else{return false}}g_intTPOpac=0;g_blnTPFadingIn=false;g_tFadeIn=null;function showTextPreview(d,g){g_blnTPFadingIn=true;var b=findPos(d);var h=document.getElementById("textPreview");var f=findPos(h.offsetParent);var c=document.getElementById("textPreviewText");c.innerHTML=g;h.style.position="absolute";h.style.left=(b[0]-f[0])+"px";h.style.top=(b[1]+d.offsetHeight-f[1])+"px";fadeIn("textPreview");if(document.getElementsByTagName){if(!d.Overlap){d.Overlap=new Array();HideControl("IFRAME",document.getElementById("textPreview"),d);HideControl("SELECT",document.getElementById("textPreview"),d);HideControl("OBJECT",document.getElementById("textPreview"),d);HideControl("EMBED",document.getElementById("textPreview"),d)}}return false}function hideTextPreview(b){clearTimeout(g_tFadeIn);g_blnTPFadingIn=false;fadeOut("textPreview");ShowControl(b);return false}function findPos(b){var c=curtop=0;if(b.offsetParent){do{c+=b.offsetLeft;curtop+=b.offsetTop}while(b=b.offsetParent)}return[c,curtop]}function fadeIn(b){var c=document.getElementById(b);if(c.style.visibility!="visible"){c.style.visibility="visible"}}function fadeOut(b){var c=document.getElementById(b);c.style.visibility="hidden"}function HideControl(k,l,b){var g=navigator.userAgent.toLowerCase();var p=((g.indexOf("msie")!=-1)&&(g.indexOf("opera")==-1));var r=GetX(l);var q=GetY(l);var s=l.offsetWidth;var o=l.offsetHeight;var n;for(n=0;n<document.getElementsByTagName(k).length;++n){var m=document.getElementsByTagName(k)[n];if(!m||!m.offsetParent){continue}var d=GetX(m);var c=GetY(m);var f=m.offsetWidth;var t=m.offsetHeight;if(d>(r+s)||(d+f)<r){continue}if(c>(q+o)||(c+t)<q){continue}if(m.style.visibility=="hidden"){continue}b.Overlap[b.Overlap.length]=m;m.style.visibility="hidden"}}function ShowControl(c){var f=navigator.userAgent.toLowerCase();var b=((f.indexOf("msie")!=-1)&&(f.indexOf("opera")==-1));if(c.Overlap){var d;for(d=0;d<c.Overlap.length;++d){c.Overlap[d].style.visibility="visible"}}c.Overlap=null}function GetX(c){var b=0;do{b+=c.offsetLeft;c=c.offsetParent}while(c);return b}function GetY(b){var c=0;do{c+=b.offsetTop;b=b.offsetParent}while(b);return c}function WebTrends(d,g,b,c){var f=this;this.dcsid=d;this.domain="wt-sdc.swiftcom.com";this.timezone=g;this.fpcdom=b;this.onsitedoms=c;this.navigationtag="DIV";this.metanames="WT.au,WT.site,WT.viewed,WT.published,WT.published,WT.Classified_Dealers";this.trackevents=true;this.trimoffsiteparams=false;this.enabled=true;this.i18n=false;this.fpc="WT_FPC";this.paidsearchparams="gclid";this.DCS={};this.WT={};this.DCSext={};this.images=[];this.index=0;this.exre=(function(){return(window.RegExp?new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"):"")})();this.re=(function(){return(window.RegExp?(f.i18n?{"%25":/\%/g}:{"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}):"")})()}WebTrends.prototype.dcsQuantcast=function(){var d,c,k;var b=this.WT;var f=this.dcsEncode;var n=["mc_id","pi","oss"];var l=b.cg_n?b.cg_n.split(";"):[];var g=b.cg_s?b.cg_s.split(";"):[];var p=b.si_n?b.si_n.split(";"):[];var h=b.si_x?b.si_x.split(";"):[];var m=b.si_p?b.si_p.split(";"):[];var o="";for(d=0;d<n.length;d++){c=b[n[d]]||"";if(c.length>0){o+=(o.length?",":"")+"WT."+n[d]+"."+f(c)}}for(d=0;d<l.length;d++){o+=(o.length?",":"")+"WT.cg."+f(l[d]);c=g[d]||"";if(c.length>0){o+="."+f(c)}}for(d=0;d<p.length;d++){o+=(o.length?",":"")+"WT.si."+f(p[d]);c=h[d]||"";k=m[d]||"";if(c.length>0){o+="."+f(c)}else{if(k.length>0){o+="."+f(k)}}}return o};WebTrends.prototype.dcsGetId=function(){if(this.enabled&&(document.cookie.indexOf(this.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){document.write("<script type='text/javascript' src='http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+"/"+this.dcsid+"/wtid.js'><\/script>")}};WebTrends.prototype.dcsGetCookie=function(f){var q=document.cookie.split("; ");var p=[];var o=0;var k=0;var d=f.length;var m=q.length;for(k=0;k<m;k++){var l=q[k];if((l.substring(0,d+1))==(f+"=")){p[o++]=l}}var b=p.length;if(b>0){o=0;if((b>1)&&(f==this.fpc)){var n=new Date(0);for(k=0;k<b;k++){var g=parseInt(this.dcsGetCrumb(p[k],"lv"));var h=new Date(g);if(h>n){n.setTime(h.getTime());o=k}}}return unescape(p[o].substring(d+1))}else{return null}};WebTrends.prototype.dcsGetCrumb=function(h,d,f){var c=h.split(f||":");for(var g=0;g<c.length;g++){var b=c[g].split("=");if(d==b[0]){return b[1]}}return null};WebTrends.prototype.dcsGetIdCrumb=function(f,c){var g=f.substring(0,f.indexOf(":lv="));var b=g.split("=");for(var d=0;d<b.length;d++){if(c==b[0]){return b[1]}}return null};WebTrends.prototype.dcsIsFpcSet=function(b,h,f,d){var g=this.dcsGetCookie(b);if(g){return((h==this.dcsGetIdCrumb(g,"id"))&&(f==this.dcsGetCrumb(g,"lv"))&&(d==this.dcsGetCrumb(g,"ss")))?0:3}return 2};WebTrends.prototype.dcsFPC=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var f=this.WT;var d=this.fpc;var r=new Date();var p=(r.getTimezoneOffset()*60000)+(this.timezone*3600000);r.setTime(r.getTime()+p);var l=new Date(r.getTime()+315360000000);var q=new Date(r.getTime());f.co_f=f.vtid=f.vtvs=f.vt_f=f.vt_f_a=f.vt_f_s=f.vt_f_d=f.vt_f_tlh=f.vt_f_tlv="";if(document.cookie.indexOf(d+"=")==-1){if((typeof(gWtId)!="undefined")&&(gWtId!="")){f.co_f=gWtId}else{if((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){f.co_f=gTempWtId;f.vt_f="1"}else{f.co_f="2";var u=r.getTime().toString();for(var n=2;n<=(32-u.length);n++){f.co_f+=Math.floor(Math.random()*16).toString(16)}f.co_f+=u;f.vt_f="1"}}if(typeof(gWtAccountRollup)=="undefined"){f.vt_f_a="1"}f.vt_f_s=f.vt_f_d="1";f.vt_f_tlh=f.vt_f_tlv="0"}else{var o=this.dcsGetCookie(d);var g=this.dcsGetIdCrumb(o,"id");var k=parseInt(this.dcsGetCrumb(o,"lv"));var v=parseInt(this.dcsGetCrumb(o,"ss"));if((g==null)||(g=="null")||isNaN(k)||isNaN(v)){return}f.co_f=g;var m=new Date(k);f.vt_f_tlh=Math.floor((m.getTime()-p)/1000);q.setTime(v);if((r.getTime()>(m.getTime()+1800000))||(r.getTime()>(q.getTime()+28800000))){f.vt_f_tlv=Math.floor((q.getTime()-p)/1000);q.setTime(r.getTime());f.vt_f_s="1"}if((r.getDay()!=m.getDay())||(r.getMonth()!=m.getMonth())||(r.getYear()!=m.getYear())){f.vt_f_d="1"}}f.co_f=escape(f.co_f);f.vtid=(typeof(this.vtid)=="undefined")?f.co_f:(this.vtid||"");f.vtvs=(q.getTime()-p).toString();var h="; expires="+l.toGMTString();var t=r.getTime().toString();var s=q.getTime().toString();document.cookie=d+"=id="+f.co_f+":lv="+t+":ss="+s+h+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));var b=this.dcsIsFpcSet(d,f.co_f,t,s);if(b!=0){f.co_f=f.vtvs=f.vt_f_s=f.vt_f_d=f.vt_f_tlh=f.vt_f_tlv="";if(typeof(this.vtid)=="undefined"){f.vtid=""}f.vt_f=f.vt_f_a=b}};WebTrends.prototype.dcsTP=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var b="WT_DC";var c="; expires=Thu, 31-Dec-2020 08:00:00 GMT";var f="; path=/";var d="";if(document.cookie.indexOf(b+"=tsp=1")!=-1){this.WT.ttp="1"}if(this.dcsGetMeta("SmartView_Page")=="1"){this.WT.tsp="1";document.cookie=b+"=tsp=1"+c+f+d}else{document.cookie=b+"=; expires=Sun, 1-Jan-1995 00:00:00 GMT;"+f+d}};WebTrends.prototype.dcsGetMeta=function(c){var b;if(document.all){b=document.all.tags("meta")}else{if(document.documentElement){b=document.getElementsByTagName("meta")}}if(typeof(b)!="undefined"){for(var d=1;d<=b.length;d++){var f=b.item(d-1);if(f.name&&(f.name.indexOf(c)==0)){return f.content;break}}}return null};WebTrends.prototype.dcsIsOnsite=function(d){if(d.length>0){d=d.toLowerCase();if(d==window.location.hostname.toLowerCase()){return true}if(typeof(this.onsitedoms.test)=="function"){return this.onsitedoms.test(d)}else{if(this.onsitedoms.length>0){var f=this.dcsSplit(this.onsitedoms);var b=f.length;for(var c=0;c<b;c++){if(d==f[c]){return true}}}}}return false};WebTrends.prototype.dcsEvt=function(c,b){var d=c.target||c.srcElement;while(d.tagName&&(d.tagName!=b)){d=d.parentElement||d.parentNode}return d};WebTrends.prototype.dcsNavigation=function(b){var d=this.dcsEvt(b,this.navigationtag);var f=d.getAttribute?d.getAttribute("id"):"";var c=d.className||"";return f?f:c};WebTrends.prototype.dcsBind=function(c,b){if((typeof(b)=="function")&&document.body){if(document.body.addEventListener){document.body.addEventListener(c,b.wtbind(this),true)}else{if(document.body.attachEvent){document.body.attachEvent("on"+c,b.wtbind(this))}}}};WebTrends.prototype.dcsET=function(){var b=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";this.dcsBind(b,this.dcsDynamic);this.dcsBind(b,this.dcsFormButton);this.dcsBind(b,this.dcsOffsite);this.dcsBind(b,this.dcsAnchor);this.dcsBind(b,this.dcsImageMap)};WebTrends.prototype.dcsMultiTrack=function(){var c=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;if(c.length%2==0){this.dcsSetProps(c);var b=new Date();this.DCS.dcsdat=b.getTime();this.dcsFPC();this.dcsTag()}};WebTrends.prototype.dcsCleanUp=function(){this.DCS={};this.WT={};this.DCSext={};if(arguments.length%2==0){this.dcsSetProps(arguments)}};WebTrends.prototype.dcsSetProps=function(b){for(var c=0;c<b.length;c+=2){if(b[c].indexOf("WT.")==0){this.WT[b[c].substring(3)]=b[c+1]}else{if(b[c].indexOf("DCS.")==0){this.DCS[b[c].substring(4)]=b[c+1]}else{if(b[c].indexOf("DCSext.")==0){this.DCSext[b[c].substring(7)]=b[c+1]}}}}};WebTrends.prototype.dcsSplit=function(f){var c=f.toLowerCase().split(",");var b=c.length;for(var d=0;d<b;d++){c[d]=c[d].replace(/^\s*/,"").replace(/\s*$/,"")}return c};WebTrends.prototype.dcsDynamic=function(b){b=b||(window.event||"");if(b&&((typeof(b.which)!="number")||(b.which==1))){var d=this.dcsEvt(b,"A");if(d.href&&d.protocol){var c=d.search?d.search.substring(d.search.indexOf("?")+1,d.search.length):"";if(d.protocol=="javascript:"){this.dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",d.href,"WT.ti","JavaScript:"+d.innerHTML,"WT.dl","22","WT.nv",this.dcsNavigation(b));this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.cl=this.WT.nv=""}else{if(d.protocol=="mailto:"){this.dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",d.href,"WT.ti","MailTo:"+d.innerHTML,"WT.dl","23","WT.nv",this.dcsNavigation(b));this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv=""}}}}};WebTrends.prototype.dcsFormButton=function(c){c=c||(window.event||"");if(c&&((typeof(c.which)!="number")||(c.which==1))){var f=["INPUT","BUTTON"];for(var d=0;d<f.length;d++){var k=this.dcsEvt(c,f[d]);var g=k.type||"";if(g&&((g=="submit")||(g=="image")||(g=="button")||(g=="reset"))||((g=="text")&&((c.which||c.keyCode)==13))){var h="";var b="";var l=0;if(k.form){h=k.form.action||window.location.pathname;b=k.form.id||k.form.name||k.form.className||"Unknown";l=(k.form.method&&(k.form.method.toLowerCase()=="post"))?"27":"26"}else{h=window.location.pathname;b=k.name||k.id||"Unknown";l=(f[d].toLowerCase()=="input")?"28":"29"}if(h&&b&&(c.keyCode!=9)){this.dcsMultiTrack("DCS.dcsuri",h,"WT.ti","FormButton:"+b,"WT.dl",l,"WT.nv",this.dcsNavigation(c))}this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv="";break}}}};WebTrends.prototype.dcsOffsite=function(b){b=b||(window.event||"");if(b&&((typeof(b.which)!="number")||(b.which==1))){var d=this.dcsEvt(b,"A");if(d.href){var g=d.hostname?(d.hostname.split(":")[0]):"";var h=d.protocol||"";if((g.length>0)&&(h.indexOf("http")==0)&&!this.dcsIsOnsite(g)){var c=d.search?d.search.substring(d.search.indexOf("?")+1,d.search.length):"";var f=d.pathname?((d.pathname.indexOf("/")!=0)?"/"+d.pathname:d.pathname):"/";this.dcsMultiTrack("DCS.dcssip",g,"DCS.dcsuri",f,"DCS.dcsqry",this.trimoffsiteparams?"":c,"DCS.dcsref",window.location,"WT.ti","Offsite:"+g+f+"?"+c,"WT.dl","24","WT.nv",this.dcsNavigation(b));this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.DCS.dcsref=this.WT.ti=this.WT.dl=this.WT.nv=""}}}};WebTrends.prototype.dcsAnchor=function(b){b=b||(window.event||"");if(b&&((typeof(b.which)!="number")||(b.which==1))){var d=this.dcsEvt(b,"A");if(d.href){var g=d.hostname?(d.hostname.split(":")[0]):"";if(this.dcsIsOnsite(g)&&d.hash&&(d.hash!="")&&(d.hash!="#")){var c=d.search?d.search.substring(d.search.indexOf("?")+1,d.search.length):"";var f=d.pathname?((d.pathname.indexOf("/")!=0)?"/"+d.pathname:d.pathname):"/";this.dcsMultiTrack("DCS.dcssip",g,"DCS.dcsuri",f+d.hash,"WT.ti","Anchor:"+d.hash,"WT.dl","21","WT.nv",this.dcsNavigation(b));this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv=""}}}};WebTrends.prototype.dcsImageMap=function(c){c=c||(window.event||"");if(c){var f=this.dcsEvt(c,"AREA");if(f.href){var h=f.hostname?(f.hostname.split(":")[0]):"";if((h!="")&&f.protocol&&(f.protocol.indexOf("http")!=-1)){var b="";var d=this.dcsEvt(c,"MAP");if(d){if(d.name){b=d.name}else{if(d.id){b=d.id}}}var g=f.pathname?((f.pathname.indexOf("/")!=0)?"/"+f.pathname:f.pathname):"/";this.dcsMultiTrack("DCS.dcssip",h,"DCS.dcsuri",g,"DCS.dcsqry",f.search||"","WT.ti","ImageMap:"+b,"WT.dl","30","WT.nv",this.dcsNavigation(c));this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.WT.ti=this.WT.dl=this.WT.nv=""}}}};WebTrends.prototype.dcsMetaCap=function(){var c;if(document.all){c=document.all.tags("meta")}else{if(document.documentElement){c=document.getElementsByTagName("meta")}}if(typeof(c)!="undefined"){var l=this.dcsSplit(this.metanames);var b=l.length;var h=c.length;for(var g=0;g<h;g++){var f=c.item(g).name.toLowerCase();var k=c.item(g).content;if((f.length>0)&&(k.length>0)){for(var d=0;d<b;d++){if(f==l[d]){this.DCSext["meta_"+l[d]]=k;break}}}}}};WebTrends.prototype.dcsAdv=function(){if(this.trackevents&&(typeof(this.dcsET)=="function")){if(window.addEventListener){window.addEventListener("load",this.dcsET.wtbind(this),false)}else{if(window.attachEvent){window.attachEvent("onload",this.dcsET.wtbind(this))}}}this.dcsFPC();this.dcsTP();this.dcsMetaCap()};WebTrends.prototype.dcsVar=function(){var c=new Date();var b=this.WT;var l=this.DCS;b.tz=parseInt(c.getTimezoneOffset()/60*-1)||"0";b.bh=c.getHours()||"0";b.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;if(typeof(screen)=="object"){b.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;b.sr=screen.width+"x"+screen.height}if(typeof(navigator.javaEnabled())=="boolean"){b.jo=navigator.javaEnabled()?"Yes":"No"}if(document.title){if(window.RegExp){var g=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");b.ti=document.title.replace(g,"")}else{b.ti=document.title}}b.js="Yes";b.jv=(function(){var s=navigator.userAgent.toLowerCase();var F=parseInt(navigator.appVersion);var r=(s.indexOf("mac")!=-1);var z=(s.indexOf("firefox")!=-1);var o=(s.indexOf("firefox/0.")!=-1);var t=(s.indexOf("firefox/1.0")!=-1);var p=(s.indexOf("firefox/1.5")!=-1);var E=(s.indexOf("firefox/2.0")!=-1);var G=(z&&!o&&!t&!p&!E);var n=(!z&&(s.indexOf("mozilla")!=-1)&&(s.indexOf("compatible")==-1));var q=(n&&(F==4));var B=(n&&(F>=5));var D=((s.indexOf("msie")!=-1)&&(s.indexOf("opera")==-1));var u=(D&&(F==4)&&(s.indexOf("msie 4")!=-1));var C=(D&&!u);var y=(s.indexOf("opera")!=-1);var w=(s.indexOf("opera 5")!=-1||s.indexOf("opera/5")!=-1);var v=(s.indexOf("opera 6")!=-1||s.indexOf("opera/6")!=-1);var m=(y&&!w&&!v);var A="1.1";if(G){A="1.8"}else{if(E){A="1.7"}else{if(p){A="1.6"}else{if(o||t||B||m){A="1.5"}else{if((r&&C)||v){A="1.4"}else{if(C||q||w){A="1.3"}else{if(u){A="1.2"}}}}}}}return A})();b.ct="unknown";if(document.body&&document.body.addBehavior){try{document.body.addBehavior("#default#clientCaps");b.ct=document.body.connectionType||"unknown";document.body.addBehavior("#default#homePage");b.hp=document.body.isHomePage(location.href)?"1":"0"}catch(h){}}if(document.all){b.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown"}else{b.bs=window.innerWidth+"x"+window.innerHeight}b.fv=(function(){var n,m;if(window.ActiveXObject){for(n=10;n>0;n--){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+n);return n+".0"}catch(o){}}}else{if(navigator.plugins&&navigator.plugins.length){for(n=0;n<navigator.plugins.length;n++){if(navigator.plugins[n].name.indexOf("Shockwave Flash")!=-1){return navigator.plugins[n].description.split(" ")[2]}}}}return"Not enabled"})();b.slv=(function(){var m="Not enabled";try{if(navigator.userAgent.indexOf("MSIE")!=-1){var o=new ActiveXObject("AgControl.AgControl");if(o){m="Unknown"}}else{if(navigator.plugins["Silverlight Plug-In"]){m="Unknown"}}}catch(r){}if(m!="Not enabled"){var q,p,n;if((typeof(Silverlight)=="object")&&(typeof(Silverlight.isInstalled)=="function")){for(p=9;p>=0;p--){for(q=3;q>0;q--){n=q+"."+p;if(Silverlight.isInstalled(n)){m=n;break}}if(m==n){break}}}}return m})();if(this.i18n){if(typeof(document.defaultCharset)=="string"){b.le=document.defaultCharset}else{if(typeof(document.characterSet)=="string"){b.le=document.characterSet}else{b.le="unknown"}}}b.tv="8.6.1";b.dl="0";b.ssl=(window.location.protocol.indexOf("https:")==0)?"1":"0";l.dcsdat=c.getTime();l.dcssip=window.location.hostname;l.dcsuri=window.location.pathname;b.es=l.dcssip+l.dcsuri;if(window.location.search){l.dcsqry=window.location.search}if(l.dcsqry){var d=l.dcsqry.toLowerCase();var k=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];for(var f=0;f<k.length;f++){if(d.indexOf(k[f]+"=")!=-1){b.srch="1";break}}}if((window.document.referrer!="")&&(window.document.referrer!="-")){if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){l.dcsref=window.document.referrer}}};WebTrends.prototype.dcsEscape=function(b,d){if(d!=""){b=b.toString();for(var c in d){if(d[c] instanceof RegExp){b=b.replace(d[c],c)}}return b}else{return escape(b)}};WebTrends.prototype.dcsA=function(k,d){if(this.i18n&&(this.exre!="")&&!this.exre.test(k)){if(k=="dcsqry"){var b="";var f=d.substring(1).split("&");for(var h=0;h<f.length;h++){var g=f[h];var l=g.indexOf("=");if(l!=-1){var m=g.substring(0,l);var c=g.substring(l+1);if(h!=0){b+="&"}b+=m+"="+this.dcsEncode(c)}}d=d.substring(0,1)+b}else{d=this.dcsEncode(d)}}return"&"+k+"="+this.dcsEscape(d,this.re)};WebTrends.prototype.dcsEncode=function(b){return(typeof(encodeURIComponent)=="function")?encodeURIComponent(b):escape(b)};WebTrends.prototype.dcsCreateImage=function(b){if(document.images){this.images[this.index]=new Image();this.images[this.index].src=b;this.index++}else{document.write('<IMG ALT="" BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+b+'">')}};WebTrends.prototype.dcsMeta=function(){var c;if(document.all){c=document.all.tags("meta")}else{if(document.documentElement){c=document.getElementsByTagName("meta")}}if(typeof(c)!="undefined"){var h=c.length;for(var f=0;f<h;f++){var d=c.item(f).name;var g=c.item(f).content;var b=c.item(f).httpEquiv;if(d.length>0){if(d.toUpperCase().indexOf("WT.")==0){this.WT[d.substring(3)]=g}else{if(d.toUpperCase().indexOf("DCSEXT.")==0){this.DCSext[d.substring(7)]=g}else{if(d.toUpperCase().indexOf("DCS.")==0){this.DCS[d.substring(4)]=g}}}}}}};WebTrends.prototype.dcsTag=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var b=this.WT;var k=this.DCS;var c=this.DCSext;var m=this.i18n;var f="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+(this.dcsid==""?"":"/"+this.dcsid)+"/dcs.gif?";if(m){b.dep=""}for(var g in k){if(k[g]&&(typeof k[g]!="function")){f+=this.dcsA(g,k[g])}}var l=["co_f","vtid","vtvs","vt_f_tlv"];for(var d=0;d<l.length;d++){var h=l[d];if(b[h]){f+=this.dcsA("WT."+h,b[h]);delete b[h]}}for(g in b){if(b[g]&&(typeof b[g]!="function")){f+=this.dcsA("WT."+g,b[g])}}for(g in c){if(c[g]&&(typeof c[g]!="function")){if(m){b.dep=(b.dep.length==0)?g:(b.dep+";"+g)}f+=this.dcsA(g,c[g])}}if(m&&(b.dep.length>0)){f+=this.dcsA("WT.dep",b.dep)}if(f.length>2048&&navigator.userAgent.indexOf("MSIE")>=0){f=f.substring(0,2040)+"&WT.tu=1"}this.dcsCreateImage(f);this.WT.ad=""};WebTrends.prototype.dcsDebug=function(){var d=this;var c=d.images[0].src;var g=c.indexOf("?");var f=c.substring(0,g).split("/");var b="<b>Protocol</b><br><code>"+f[0]+"<br></code>";b+="<b>Domain</b><br><code>"+f[2]+"<br></code>";b+="<b>Path</b><br><code>/"+f[3]+"/"+f[4]+"<br></code>";b+="<b>Query Params</b><code>"+c.substring(g+1).replace(/\&/g,"<br>")+"</code>";b+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";if(d.w&&!d.w.closed){d.w.close()}d.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");d.w.document.write(b);d.w.focus()};WebTrends.prototype.dcsCollect=function(){if(this.enabled){this.dcsVar();this.dcsMeta();this.dcsAdv();this.dcsTag()}};function dcsMultiTrack(){if(typeof(_tag)!="undefined"){return(_tag.dcsMultiTrack())}}function dcsDebug(){if(typeof(_tag)!="undefined"){return(_tag.dcsDebug())}}Function.prototype.wtbind=function(c){var d=this;var b=function(){return d.apply(c,arguments)};return b};function logon(f){if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=""}var g=document.getElementById(f);var b="";var k="";for(var d=0;d<g.length;d++){var h=g[d];if(h.id=="emailaddress"){b=h.value}else{if(h.id=="password"){k=h.value}}}if(b.length>0&&k.length>0){var l=document.getElementById(f);l.submit()}else{var c="";if(b.length==0){c="  You must enter an email address.<br />"}if(k.length==0){c=c+"  You must enter a password.<br />"}if(c.length>0){c="<p>"+c+"</p>"}if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=c}}}function clearForm(b){if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=""}var c=document.getElementById(b);c.reset()}function createAccount(){if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=""}var b=document.getElementById("create_emailaddress").value;var c=document.getElementById("create_password").value;var d=document.getElementById("create_confirmpassword").value;var k=document.getElementById("create_screenname").value;var n=document.getElementById("create_zip").value;var l=document.getElementById("tou").checked;if(b.length>0&&c.length>5&&d.length>0&&k.length>1&&l){if(c!=d){m="  The password must match the confirmation password.<br />";if(document.getElementById("errorDiv")){m="<p>"+m+"</p>";document.getElementById("errorDiv").innerHTML=m;location.href="#errorArea"}}else{var f="";var o=document.getElementById("frmCreateAccount");for(var h=0;h<o.length;h++){var g=o[h];if(g.checked){if(g.id.indexOf("newsletter_")>-1){f+=g.value+"||"}}}document.getElementById("checkedbusinessofferings").value=f;o.submit()}}else{var m="";if(!l){m=m+" You must agree to the Terms of Use to become an online community member.<br />"}if(b.length==0){m=m+"  You must enter an email address.<br />"}if(c.length<6){m=m+"  Your password must be at least 6 characters.<br />"}if(d.length==0){m=m+"  You must enter a confirmation password.<br />"}else{if(c!=d){m=m+"  The password much match the confirmation password.<br />"}}if(k.length<2){m=m+"  Your screen name must be at least 2 characters.<br />"}if(document.getElementById("errorDiv")){m="<p>"+m+"</p>";document.getElementById("errorDiv").innerHTML=m;window.location.href="#errorArea"}}}function validateRemindMeEmailAddress(){with(document.getElementById("emailaddress")){apos=value.indexOf("@");dotpos=value.lastIndexOf(".");if(apos<1||dotpos-apos<2){alert("You must enter a valid email address.")}else{document.getElementById("frmResetStep1").submit()}}}function updateAccount(){if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=""}var b=document.getElementById("update_emailaddress").value;var n=document.getElementById("update_password").value;var m=document.getElementById("update_confirmpassword").value;var g=document.getElementById("update_reminderquestion").value;var o=document.getElementById("update_reminderanswer").value;var f=document.getElementById("update_screenname").value;var c=document.getElementById("update_zip").value;if(b.length>0&&n.length>5&&m.length>0&&g.length>0&&o.length>0&&f.length>1){if(n!=m){l="  The password must match the confirmation password.<br />";if(document.getElementById("errorDiv")){l="<p>"+l+"</p>";document.getElementById("errorDiv").innerHTML=l;location.href="#errorArea"}}else{var d="";var p=document.getElementById("frmUpdateAccount");for(var k=0;k<p.length;k++){var h=p[k];if(h.checked){if(h.id.indexOf("newsletter_")>-1){d+=h.value+"||"}}}document.getElementById("checkedbusinessofferings").value=d;p.submit()}}else{var l="";if(b.length==0){l="  You must enter an email address.<br />"}if(n.length<6){l=l+"  Your password must be at least 6 characters.<br />"}if(m.length==0){l=l+"  You must enter a confirmation password.<br />"}else{if(n!=m){l=l+"  The password much match the confirmation password.<br />"}}if(g.length==0){l=l+"  You must select a reminder question.<br />"}if(o.length==0){l=l+"  You must enter a reminder answer.<br />"}if(f.length<2){l=l+"  Your screen name must be at least 2 characters.<br />"}if(document.getElementById("errorDiv")){l="<p>"+l+"</p>";document.getElementById("errorDiv").innerHTML=l;location.href="#errorArea"}}}var ssokey="";var emailaddress="";var emailField="";var passwordField="";var screenname="";var rememberme="";var url="";var cookieDomain="";var interval="";var redirectAfterLogin=false;function getComFrame(){var b;if(navigator.userAgent.indexOf("Safari")!=-1){b=frames.logonFrame}else{if(document.getElementById("logonFrame")){b=document.getElementById("logonFrame").contentWindow}}return b}function sendLogonMessage(f,d,o,b,h,l,c){url=f;cookieDomain=h;userRegPath=l;emailField=d;passwordField=o;redirectAfterLogin=c;var g=document.getElementById(d).value;var n=document.getElementById(o).value;var m=document.getElementById(b).checked;m=(m?"YES":"NO");var k=url+"?em="+g+"&pwd="+n+"&rm="+m;getComFrame().location.href=k;interval=setInterval(checkForMessages,200)}function checkForMessages(){if(screenname.length==0){if(getComFrame()){var b=getComFrame().location;if(b.hash&&b.hash!=screenname){hash=b.hash.replace("#","");hash=hash.replace("%0A","");if(hash!="FAILURE"){split=hash.split("||");ssokey=split[0];emailaddress=split[1];screenname=split[2];rememberme=split[3]}logonCallback(hash)}}}}function logonCallback(b){clearInterval(interval);if(b.length>0&&b!="undefined"&&b!="FAILURE"){setCookie(ssokey,emailaddress,screenname,rememberme,cookieDomain);document.getElementById(emailField).value="";document.getElementById(passwordField).value="";if(document.getElementById("logon_title")){document.getElementById("logon_title").style.display="block";document.getElementById("logon_title").style.visibility="visible"}document.getElementById("logon_error").innerHTML="";closeLogonPopUp();if(redirectAfterLogin){window.location.href=appsPath+"/utils/ureg/ui/updateaccount.php?showLoginSuccessful=true"}else{location.reload(true)}}else{logonError()}}function logonError(){emailaddress="";emailField="";passwordField="";screenname="";rememberme="";url="";cookieDomain="";userRegPath="";var b="We couldn't find your Login info in the system. Here are possible reasons:";b+="<br />1. Check the spelling of your Email or Screen Name.";b+="<br />2. Your account needs to be verified. <a href='"+appsPath+"/utils/ureg/ui/resendvalidation.php' class='YellowToWhite'><span class='YellowToWhite'>Verify here</span></a>.";b+="<br />3. You are not yet registered.  <a href='"+appsPath+"/utils/ureg/ui/createaccount.php' class='YellowToWhite'><span class='YellowToWhite'>Register here</span></a>.";document.getElementById("logon_error").innerHTML=b;if(document.getElementById("logon_title")){document.getElementById("logon_title").style.display="none";document.getElementById("logon_title").style.visibility="hidden"}}function stripComments(b){return StripCommentSGML(b)}function hex_md5(b){return binl2hex(core_md5(str2binl(b),b.length*chrsz))}function b64_md5(b){return binl2b64(core_md5(str2binl(b),b.length*chrsz))}function str_md5(b){return binl2str(core_md5(str2binl(b),b.length*chrsz))}function hex_hmac_md5(b,c){return binl2hex(core_hmac_md5(b,c))}function b64_hmac_md5(b,c){return binl2b64(core_hmac_md5(b,c))}function str_hmac_md5(b,c){return binl2str(core_hmac_md5(b,c))}function md5_vm_test(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function core_md5(r,m){r[m>>5]|=128<<((m)%32);r[(((m+64)>>>9)<<4)+14]=m;var q=1732584193;var p=-271733879;var o=-1732584194;var n=271733878;for(var h=0;h<r.length;h+=16){var l=q;var k=p;var g=o;var f=n;q=md5_ff(q,p,o,n,r[h+0],7,-680876936);n=md5_ff(n,q,p,o,r[h+1],12,-389564586);o=md5_ff(o,n,q,p,r[h+2],17,606105819);p=md5_ff(p,o,n,q,r[h+3],22,-1044525330);q=md5_ff(q,p,o,n,r[h+4],7,-176418897);n=md5_ff(n,q,p,o,r[h+5],12,1200080426);o=md5_ff(o,n,q,p,r[h+6],17,-1473231341);p=md5_ff(p,o,n,q,r[h+7],22,-45705983);q=md5_ff(q,p,o,n,r[h+8],7,1770035416);n=md5_ff(n,q,p,o,r[h+9],12,-1958414417);o=md5_ff(o,n,q,p,r[h+10],17,-42063);p=md5_ff(p,o,n,q,r[h+11],22,-1990404162);q=md5_ff(q,p,o,n,r[h+12],7,1804603682);n=md5_ff(n,q,p,o,r[h+13],12,-40341101);o=md5_ff(o,n,q,p,r[h+14],17,-1502002290);p=md5_ff(p,o,n,q,r[h+15],22,1236535329);q=md5_gg(q,p,o,n,r[h+1],5,-165796510);n=md5_gg(n,q,p,o,r[h+6],9,-1069501632);o=md5_gg(o,n,q,p,r[h+11],14,643717713);p=md5_gg(p,o,n,q,r[h+0],20,-373897302);q=md5_gg(q,p,o,n,r[h+5],5,-701558691);n=md5_gg(n,q,p,o,r[h+10],9,38016083);o=md5_gg(o,n,q,p,r[h+15],14,-660478335);p=md5_gg(p,o,n,q,r[h+4],20,-405537848);q=md5_gg(q,p,o,n,r[h+9],5,568446438);n=md5_gg(n,q,p,o,r[h+14],9,-1019803690);o=md5_gg(o,n,q,p,r[h+3],14,-187363961);p=md5_gg(p,o,n,q,r[h+8],20,1163531501);q=md5_gg(q,p,o,n,r[h+13],5,-1444681467);n=md5_gg(n,q,p,o,r[h+2],9,-51403784);o=md5_gg(o,n,q,p,r[h+7],14,1735328473);p=md5_gg(p,o,n,q,r[h+12],20,-1926607734);q=md5_hh(q,p,o,n,r[h+5],4,-378558);n=md5_hh(n,q,p,o,r[h+8],11,-2022574463);o=md5_hh(o,n,q,p,r[h+11],16,1839030562);p=md5_hh(p,o,n,q,r[h+14],23,-35309556);q=md5_hh(q,p,o,n,r[h+1],4,-1530992060);n=md5_hh(n,q,p,o,r[h+4],11,1272893353);o=md5_hh(o,n,q,p,r[h+7],16,-155497632);p=md5_hh(p,o,n,q,r[h+10],23,-1094730640);q=md5_hh(q,p,o,n,r[h+13],4,681279174);n=md5_hh(n,q,p,o,r[h+0],11,-358537222);o=md5_hh(o,n,q,p,r[h+3],16,-722521979);p=md5_hh(p,o,n,q,r[h+6],23,76029189);q=md5_hh(q,p,o,n,r[h+9],4,-640364487);n=md5_hh(n,q,p,o,r[h+12],11,-421815835);o=md5_hh(o,n,q,p,r[h+15],16,530742520);p=md5_hh(p,o,n,q,r[h+2],23,-995338651);q=md5_ii(q,p,o,n,r[h+0],6,-198630844);n=md5_ii(n,q,p,o,r[h+7],10,1126891415);o=md5_ii(o,n,q,p,r[h+14],15,-1416354905);p=md5_ii(p,o,n,q,r[h+5],21,-57434055);q=md5_ii(q,p,o,n,r[h+12],6,1700485571);n=md5_ii(n,q,p,o,r[h+3],10,-1894986606);o=md5_ii(o,n,q,p,r[h+10],15,-1051523);p=md5_ii(p,o,n,q,r[h+1],21,-2054922799);q=md5_ii(q,p,o,n,r[h+8],6,1873313359);n=md5_ii(n,q,p,o,r[h+15],10,-30611744);o=md5_ii(o,n,q,p,r[h+6],15,-1560198380);p=md5_ii(p,o,n,q,r[h+13],21,1309151649);q=md5_ii(q,p,o,n,r[h+4],6,-145523070);n=md5_ii(n,q,p,o,r[h+11],10,-1120210379);o=md5_ii(o,n,q,p,r[h+2],15,718787259);p=md5_ii(p,o,n,q,r[h+9],21,-343485551);q=safe_add(q,l);p=safe_add(p,k);o=safe_add(o,g);n=safe_add(n,f)}return Array(q,p,o,n)}function md5_cmn(k,f,d,c,h,g){return safe_add(bit_rol(safe_add(safe_add(f,k),safe_add(c,g)),h),d)}function md5_ff(h,g,n,m,f,l,k){return md5_cmn((g&n)|((~g)&m),h,g,f,l,k)}function md5_gg(h,g,n,m,f,l,k){return md5_cmn((g&m)|(n&(~m)),h,g,f,l,k)}function md5_hh(h,g,n,m,f,l,k){return md5_cmn(g^n^m,h,g,f,l,k)}function md5_ii(h,g,n,m,f,l,k){return md5_cmn(n^(g|(~m)),h,g,f,l,k)}function core_hmac_md5(d,h){var g=str2binl(d);if(g.length>16){g=core_md5(g,d.length*chrsz)}var b=Array(16),f=Array(16);for(var c=0;c<16;c++){b[c]=g[c]^909522486;f[c]=g[c]^1549556828}var k=core_md5(b.concat(str2binl(h)),512+h.length*chrsz);return core_md5(f.concat(k),512+128)}function safe_add(b,f){var d=(b&65535)+(f&65535);var c=(b>>16)+(f>>16)+(d>>16);return(c<<16)|(d&65535)}function bit_rol(b,c){return(b<<c)|(b>>>(32-c))}function str2binl(f){var d=Array();var b=(1<<chrsz)-1;for(var c=0;c<f.length*chrsz;c+=chrsz){d[c>>5]|=(f.charCodeAt(c/chrsz)&b)<<(c%32)}return d}function binl2str(d){var f="";var b=(1<<chrsz)-1;for(var c=0;c<d.length*32;c+=chrsz){f+=String.fromCharCode((d[c>>5]>>>(c%32))&b)}return f}function binl2hex(d){var c=hexcase?"0123456789ABCDEF":"0123456789abcdef";var f="";for(var b=0;b<d.length*4;b++){f+=c.charAt((d[b>>2]>>((b%4)*8+4))&15)+c.charAt((d[b>>2]>>((b%4)*8))&15)}return f}function binl2b64(f){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="";for(var c=0;c<f.length*4;c+=3){var g=(((f[c>>2]>>8*(c%4))&255)<<16)|(((f[c+1>>2]>>8*((c+1)%4))&255)<<8)|((f[c+2>>2]>>8*((c+2)%4))&255);for(var b=0;b<4;b++){if(c*8+b*6>f.length*32){h+=b64pad}else{h+=d.charAt((g>>6*(3-b))&63)}}}return h}function dipslayPageAds(){var b=1;var k=Math.random()*10000000000000000;var h;var d;if(document.getElementById("DoubleClickTarget728x90")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";adtype=iframe;tile="+b+";sz=728x90;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads728x90";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="728";c.height="90";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c)}if(document.getElementById("DoubleClickTarget88x31")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";adtype=iframe;tile="+b+";sz=88x31;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads88x31";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="88";c.height="31";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c);b+=1}b=3;if(document.getElementById("DoubleClickTarget300x250Top")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";adtype=iframe;tile="+b+";sz=300x250;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads300x250Top";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="300";c.height="250";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c);b+=1}if(document.getElementById("DoubleClickTarget300x250Middle")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";adtype=iframe;tile="+b+";sz=300x250;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads300x250Middle";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="300";c.height="250";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c);b+=1}if(document.getElementById("DoubleClickTarget300x250Bottom")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";adtype=iframe;tile="+b+";sz=300x250;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads300x250Bottom";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="300";c.height="250";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c);b+=1}if(document.getElementById("DoubleClickTarget300x600Bottom")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";adtype=iframe;tile="+b+";sz=300x600;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads300x600Bottom";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="300";c.height="600";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c);b+=1}if(document.getElementById("DoubleClickTarget88x31RealEstate")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+".realestate/home;adtype=iframe;tile="+b+";sz=88x31;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads88x31RealEstate";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="88";c.height="31";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c)}if(document.getElementById("DoubleClickTarget120x60RealEstateTop")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+".realestate/home;adtype=iframe;tile="+b+";sz=120x60;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads120x60RealEstateTop";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="120";c.height="60";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c)}if(document.getElementById("DoubleClickTarget120x60RealEstateMiddle")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+".realestate/home;adtype=iframe;tile="+b+";sz=120x60;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads120x60RealEstateMiddle";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="120";c.height="60";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c)}if(document.getElementById("DoubleClickTarget120x60RealEstateBottom")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+".realestate/home;adtype=iframe;tile="+b+";sz=120x60;ord="+k+"?";var c=document.createElement("iframe");var g="DoubleClickads120x60RealEstateBottom";var f=""+new Date().getTime();c.name=c.id="iframe-"+f;c.width="120";c.height="60";c.frameBorder="0";c.scrolling="no";c.allowTransparency="allowtransparency";c.src=h;document.getElementById(g).innerHTML="";document.getElementById(g).appendChild(c)}dcsMultiTrack();pageTracker._trackPageview();return}function MM_showHideLayers(){var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3){with(document){if(getElementById&&((obj=getElementById(args[i]))!=null)){v=args[i+2];if(obj.style){obj=obj.style;v=(v=="show")?"visible":(v=="hide")?"hidden":v}obj.visibility=v}}}}function MM_preloadImages(){var g=document;if(g.images){if(!g.MM_p){g.MM_p=new Array()}var f,c=g.MM_p.length,b=MM_preloadImages.arguments;for(f=0;f<b.length;f++){if(b[f].indexOf("#")!=0){g.MM_p[c]=new Image;g.MM_p[c++].src=b[f]}}}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_findObj(h,g){var f,c,b;if(!g){g=document}if((f=h.indexOf("?"))>0&&parent.frames.length){g=parent.frames[h.substring(f+1)].document;h=h.substring(0,f)}if(!(b=g[h])&&g.all){b=g.all[h]}for(c=0;!b&&c<g.forms.length;c++){b=g.forms[c][h]}for(c=0;!b&&g.layers&&c<g.layers.length;c++){b=MM_findObj(h,g.layers[c].document)}if(!b&&g.getElementById){b=g.getElementById(h)}return b}function MM_swapImage(){var f,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(f=0;f<(c.length-2);f+=3){if((b=MM_findObj(c[f]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[f+2]}}}function consoleDebug(b){var c=window.location.hostname;if(c.search(/dev\.|stage\./i)!=-1&&typeof console!="undefined"){console.debug(b)}}function stripTags(h,b){var f=b.split(",");var g="";for(i=0;i<h.length;i++){if(h.charAt(i)=="<"){var k=i;if(h.charAt(i+1)=="/"){i++}var c=false;for(a=0;a<f.length;a++){var d=i+1+f[a].length;if(h.substr(i+1,f[a].length).toLowerCase()==f[a].toLowerCase()&&d<h.length&&(h.charAt(d).toLowerCase()<"a"||h.charAt(d).toLowerCase()>"z")){c=true}}for(j=i;j<h.length;j++){if(h.charAt(j)==">"){break}}if(j==h.length){j=h.length-1}if(c){g+=h.substr(k,j-k+1)}i=j}else{g+=h.charAt(i)}}return g}function stripCommentSGML(b){b=b.replace(/<!(?:--[sS]*?--s*)?>s*/g,"");return b}function tagURLs(b){var d=/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;var c=b.replace(d,"<a href='$1' target='_blank' rel='nofollow'>$1</a>");return c}function displayAthleteGroup(d){var c=document.getElementById("athletesList");var b=athleteList[d];if(athleteListCount>1){b=b+'<br clear="left" style="clear:left;" /><div class="athleteListFooter"><a href="#" onclick="displayAthleteGroup('+(((d-1)<0)?(athleteListCount-1):(d-1))+');return false;"><img src="'+publicusPath+'/Global/images/olympics/left_arrow.gif" border="0" alt="" /></a>';for(x=0;x<athleteListCount;x++){b=b+'<a href="#" onclick="displayAthleteGroup('+x+');return false;"><img src="'+publicusPath+"/Global/images/olympics/circle_"+((d==x)?"active":"inactive")+'.gif" border="0" alt="" /></a>'}b=b+'<a href="#" onclick="displayAthleteGroup('+(((d+1)==athleteListCount)?0:(d+1))+');return false;"><img src="'+publicusPath+'/Global/images/olympics/right_arrow.gif" border="0" alt="" /></a></div>'}c.innerHTML=b};