var currentHost=window.location.host;var CurrentUser=retrieveSSOCookieUserId();if(CurrentUser!=""&&CurrentUser!="undefined"){CurrentUser=hex_md5(CurrentUser)}function requestPluckUserAvatar(){var b=new RequestBatch();var a=new UserKey(CurrentUser);b.AddToRequest(a);b.BeginRequest(serverUrl,renderUserAvatar)}function renderUserAvatar(c){var b=null;for(i=0;i<c.Responses.length;i++){if(c.Responses[i].User!=null){b=c.Responses[i];i=c.Responses.length}}if(b==null){document.getElementById("avatar").src="http://appsstage.swiftcom.com/utils/ureg/ui/graphics/notloggedinavatar.gif"}else{var a=b.User;document.getElementById("avatar").src=a.AvatarPhotoUrl}}function getArticlesRequest(e,f){var k=new Array();k[0]=new Section("All");var c=new Array();c[0]=new Category("All");var a=new Activity(e);var h=new ContentType("Article");var b=new Array();var b=new Array();b[0]=new UserTier("Standard");b[1]=new UserTier("Trusted");b[2]=new UserTier("Featured");b[3]=new UserTier("Staff");b[4]=new UserTier("Editor");var j=15;var g=new DiscoverContentAction(k,c,b,a,h,j,f);return g}function getPersonasRequest(e,f){var k=new Array();k[0]=new Section("All");var c=new Array();c[0]=new Category("All");var a=new Activity(e);var h=new ContentType("Persona");var b=new Array();var b=new Array();b[0]=new UserTier("Standard");b[1]=new UserTier("Trusted");b[2]=new UserTier("Featured");b[3]=new UserTier("Staff");b[4]=new UserTier("Editor");var j=15;var g=new DiscoverContentAction(k,c,b,a,h,j,f);return g}function getPhotosRequest(f,b){var k=new Array();k[0]=new Section("All");var e=new Array();e[0]=new Category("All");var a=new Activity(f);var h=new ContentType("PublicPhoto");var c=new Array();c[0]=new UserTier("Standard");c[1]=new UserTier("Trusted");c[2]=new UserTier("Featured");c[3]=new UserTier("Staff");c[4]=new UserTier("Editor");var j=15;var g=new DiscoverContentAction(k,e,c,a,h,j,b);return g}function getBlogPostsRequest(e,f){var k=new Array();k[0]=new Section("All");var c=new Array();c[0]=new Category("All");var a=new Activity(e);var h=new ContentType("BlogPost");var b=new Array();var b=new Array();b[0]=new UserTier("Standard");b[1]=new UserTier("Trusted");b[2]=new UserTier("Featured");b[3]=new UserTier("Staff");b[4]=new UserTier("Editor");var j=15;var g=new DiscoverContentAction(k,c,b,a,h,j,f);return g}function renderSimpleArticleList(j,e,g,b,n){var m="<div class='Summary_Container'>";var l=0;for(var f=0;f<j.length;f++){var h=j[f];if((h.ArticleKey!=null)&&(l<e)){l++;m+="<div class='Summary_ArticleTitle'>";m+="<a href='"+makeURLSafe(h.PageUrl)+"'>";sExtra="";if(b){sExtra+="("+h.Recommendations.NumberOfRecommendations+")"}if(n){sExtra+="("+h.Comments.NumberOfComments+")"}if(sExtra.length>0){sExtra=" "+sExtra}var a=sExtra.length;var c=h.PageTitle;if((c.length+a)>g){var k=g-a-4;if(k<5){k=5}c=c.substr(0,k)+"..."}c=c.replace(String(145),"'");c=c.replace(String(146),"'");c=c.replace(String(147),'"');c=c.replace(String(148),'"');c+=sExtra;m+=c;m+="</a>";m+="</div>"}}m+="</div>";return m}function makeURLSafe(c){var f=c.replace(/%3A/i,"-");var e=f.indexOf(":");var b=f.substr(0,e+1);var a=f.substr(e+1);a=a.replace(/:/,"-");return b+a}function renderPersonaList(h,b,f){var g="<div class='Summary_Container'>";g+="<table class='Summary_ProfileTable' cellpadding='0' cellspacing='0'>";var a=0;for(var e=0;e<h.length;e++){var c=h[e];if((c.UserKey!=null)&&(a<b)){a++;g+="<tr>";g+="<td class='Summary_ProfileTableLeft'>";g+="<a href='"+f+"/utils/persona/ui/index.php?userId="+c.UserKey.Key+"&plckUserId="+c.UserKey.Key+"'>";g+="<img src='"+c.AvatarPhotoUrl+"' alt='"+c.DisplayName+"'>";g+="</a>";g+="</td>";g+="<td class='Summary_ProfileTableRight'>";g+="<div class='Summary_ProfileName'>";g+="<a href='"+f+"/utils/persona/ui/index.php?userId="+c.UserKey.Key+"&plckUserId="+c.UserKey.Key+"'>";g+=c.DisplayName;g+="</a>";g+="</div>";g+="<div class='Summary_ProfileTime'>";g+=c.LastUpdated;g+="</div>";g+="</td>";g+="</tr>"}}g+="</table>";g+="</div>";return g}function renderPhotoList(h,b,f){var g="<div class='Summary_Container'>";g+="<table class='Summary_PhotoTable' cellpadding='0' cellspacing='0'>";var a=0;for(var e=0;e<h.length;e++){var c=h[e];if(c.PhotoKey!=null){g+="\n<!-- photo: "+c.Title+" -->\n"}if((c.PhotoKey!=null)&&(a<b)){a++;g+="<tr>";g+="<td class='Summary_PhotoTableLeft'>";g+="<a href='"+c.PhotoUrl+"'>";g+="<img src='"+c.Image.Small+"' alt='"+c.Title+"'>";g+="</a>";g+="</td>";g+="<td class='Summary_PhotoTableRight'>";g+="<div class='Summary_PhotoTitle'>";g+="<a href='"+c.PhotoUrl+"'>";g+=c.Title;g+="</a>";g+="</div>";g+="<div class='Summary_PhotoDescription'>";g+=c.Description;g+="</div>";g+="<div class='Summary_PhotoBy'>";g+="By: ";g+="<a href='"+f+"/utils/persona/ui/index.php?userId="+c.Author.UserKey.Key+"&plckUserId="+c.Author.UserKey.Key+"'>";g+=c.Author.DisplayName;g+="</a>";g+="</div>";g+="</td>";g+="</tr>"}}g+="</table>";g+="</div>";return g}function renderBlogPostList(g,c,a,f){var k="<div class='Summary_Container'>";k+="<table class='Summary_PhotoTable' cellpadding='0' cellspacing='0'>";var h=0;for(var e=0;e<g.length;e++){var l=g[e];var j=serverUrl.search(/sid=/i);if(j==-1){return"error retrieving blog posts"}var b=serverUrl.substr(j+4);if((l.BlogPostKey!=null)&&(h<c)&&(b==l.SiteOfOrigin)){h++;k+=((h%2)==0)?"<tr>":"<tr class='Summary_BlogAltTRColor'>";k+="<tr>";k+="<td class='Summary_BlogTableLeft'>";k+="<a href='"+a+"/utils/persona/ui/index.php?userId="+l.PostAuthor.UserKey.Key+"&plckUserId="+l.PostAuthor.UserKey.Key+"'>";k+="<img src='"+l.PostAuthor.AvatarPhotoUrl+"' alt='"+l.PostAuthor.DisplayName+"'>";k+="</a>";k+="</td>";k+="<td class='Summary_BlogTableRight'>";k+="<div class='Summary_BlogTitle'>";k+="<a href='"+l.Url+"'>";k+=l.PostTitle;k+="</a>";k+="</div>";k+="<div class='Summary_BlogBy'>";k+="By ";k+="<a href='"+a+"/utils/persona/ui/index.php?userId="+l.PostAuthor.UserKey.Key+"&plckUserId="+l.PostAuthor.UserKey.Key+"'>";k+=l.PostAuthor.DisplayName;k+="</a>";k+="</div>";k+="<div class='Summary_BlogTime'>";k+=l.PostDate;k+="</a>";k+="</div>";k+="</td>";k+="</tr>"}}k+="</table>";k+="</div>";return k}function getBlogFromResponseBatch(e,b){for(var c=0;c<b.Responses.length;c++){var a=b.Responses[c];if((a.Blog!=null)&&(a.Blog.BlogKey.Key==e)){return a}}return null}function openLogonPopUp(){document.getElementById("logonPopUp").style.visibility="visible";document.getElementById("logon_email").focus()}function closeLogonPopUp(){document.getElementById("logonPopUp").style.visibility="hidden"}function setCookie(b,h,c,f,a){var g=b+"|"+c+"||"+h;if(f=="YES"){var e=new Date();e.setFullYear(e.getFullYear()+2);document.cookie="HD="+g+"; expires="+e.toGMTString()+";domain="+a+";path=/"}else{document.cookie="HD="+g+"; domain="+a+";path=/"}}function getCookie(b){if(document.cookie.length>0){var c=document.cookie.indexOf(b+"=");if(c!=-1){c=c+b.length+1;var a=document.cookie.indexOf(";",c);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(c,a))}}return""}function retrieveSSOCookieUserId(){var b=getCookie("HD");if(b.length>0){var a=b.split("|");return a[0].toLowerCase()}else{return""}}function RetrieveSSOCookieDisplayName(){var b=getCookie("HD");if(b.length>0){var a=b.split("|");return a[1]}else{return""}}function logout(b,c){var e=new Date();e.setFullYear(e.getFullYear()-1);document.cookie="HD=; expires="+e.toGMTString()+";domain="+b+";path=/";if(c){window.location.href=appsPath+"/utils/ureg/ui/updateaccount.php?showLogoutSuccessful=true"}else{var a=window.location.href;a=a.replace("#","");window.location.href=a}}function NewWindow(c,a,b){window.open(b,"PopUp","menubar=0,scrollbars=1,resizable=1,height="+a+",width="+c)}function activateWidgetTab(a,c){var b=0;while((emid=document.getElementById(a+b+".m"))&&(eright=document.getElementById(a+b+".r"))&&(eleft=document.getElementById(a+b+".l"))){if(c==b){eleft.className=eleft.className.replace(/Off/,"On");emid.className=emid.className.replace(/Off/,"On");eright.className=eright.className.replace(/Off/,"On");if(econtent=document.getElementById(a+(b)+".c")){econtent.style.display="block"}}else{eleft.className=eleft.className.replace(/On/,"Off");emid.className=emid.className.replace(/On/,"Off");eright.className=eright.className.replace(/On/,"Off");if(econtent=document.getElementById(a+(b)+".c")){econtent.style.display="none"}}b++}return false}function toggleDiv(a,b){if(document.layers){document.layers[a].visibility=b?"show":"hide";document.layers[a].display=b?"block":"none"}else{if(document.getElementById){document.getElementById(a).style.visibility=b?"visible":"hidden";document.getElementById(a).style.display=b?"block":"none"}else{document.all[a].style.visibility=b?"visible":"hidden";document.all[a].style.display=b?"block":"none"}}}function isBrowserSupp(){version=parseFloat(navigator.appVersion);if((version>=2)&&(version<2.1)&&(navigator.appName.indexOf("Netscape")!=-1)){return false}else{return true}return true}function isLeapYear(a){var c=false;var b=parseInt(a,10);if(b%4==0){c=true;if(b%100==0){c=false;if(b%400==0){c=true}}}return c}function getDaysInMonth(b,c){var a=31;if(b==1){if(isLeapYear(c)){a=29}else{a=28}}if(b==3||b==5||b==8||b==10){a=30}return a}function adjustDate(g,e){var c=0;var b=new Date();var f=parseInt(b.getYear(),10);if(g<b.getMonth()){f=(parseInt(b.getYear(),10)+1)}if(f<100){f="19"+f}else{if((f-100)<10){f="0"+(f-100)}else{f=(f-100)+""}f="20"+f}var a=getDaysInMonth(g,f);if(g==1){if(e.options.selectedIndex+1<a){return 0}else{e.options.selectedIndex=a-1;if(a==29){return 99}else{return 1}}}if(e.options.selectedIndex+1<a){c=0}else{if(e.options.selectedIndex+1>a){e.options.selectedIndex--;c=3}else{c=2}}return c}function amadChange(f,e,b,a){if(!isBrowserSupp()){return}var c=adjustDate(f.options.selectedIndex,e);if(c!=0){a.options.selectedIndex=0;if(b.options.selectedIndex==11){b.options.selectedIndex=0}else{b.options.selectedIndex=f.options.selectedIndex+1;a.options.selectedIndex=1}}else{b.options.selectedIndex=f.options.selectedIndex;if(a.options.selectedIndex<=e.options.selectedIndex){a.options.selectedIndex=e.options.selectedIndex+2}}return}function dmddChange(b,a){if(!isBrowserSupp()){return}adjustDate(b.options.selectedIndex,a);return}function OpenWindow(c,b,e,a){OpenWindow(c,b,e,a,false)}function OpenWindow(e,c,f,b,g){var a="";if(g){a+="top=50,left=50,scrollbars=1,"}a+="width="+f+",height="+b+",resizeable=1";window.open(e,c,a)}function loadDefaultDates(){var m=new Date();var e=new Date();var f=new Date();var a=new Date();var b=new Date();var k=new Date();var l=21;var j=23;var h=7;var g=8;var n=14;var c=15;m.setDate(m.getDate()+n);e.setDate(e.getDate()+c);f.setDate(f.getDate()+h);a.setDate(a.getDate()+g);b.setDate(b.getDate()+l);k.setDate(k.getDate()+j);document.forms.airForm.departureMonth.value=m.getMonth();document.forms.airForm.returnMonth.value=e.getMonth();document.forms.airForm.departureDay.value=m.getDate();document.forms.airForm.returnDay.value=e.getDate();document.forms.carForm.pickUpMonth.value=f.getMonth();document.forms.carForm.dropOffMonth.value=a.getMonth();document.forms.carForm.pickUpDay.value=f.getDate();document.forms.carForm.dropOffDay.value=a.getDate();document.forms.hotForm.arrivalMonth.value=b.getMonth();document.forms.hotForm.departureMonth.value=k.getMonth();document.forms.hotForm.arrivalDay.value=b.getDate();document.forms.hotForm.departureDay.value=k.getDate()}function validateDepWindow(a){if(document.forms[a].tempDepTime[document.forms[a].tempDepTime.selectedIndex].value==("M")){window.document.forms[a].tripWindow.value="5";window.document.forms[a].departureTime.value="7AM"}else{if(document.forms[a].tempDepTime[document.forms[a].tempDepTime.selectedIndex].value==("A")){window.document.forms[a].tripWindow.value="5";window.document.forms[a].departureTime.value="3PM"}else{if(document.forms[a].tempDepTime[document.forms[a].tempDepTime.selectedIndex].value==("E")){window.document.forms[a].tripWindow.value="5";window.document.forms[a].departureTime.value="8PM"}else{if(document.forms[a].tempDepTime[document.forms[a].tempDepTime.selectedIndex].value==("ANT")){window.document.forms[a].tripWindow.value="9";window.document.forms[a].departureTime.value="12PM"}else{window.document.forms[a].tripWindow.value="5";window.document.forms[a].departureTime.value=document.forms[a].tempDepTime.value}}}}}function validateRetWindow(a){if(document.forms[a].tempRetTime[document.forms[a].tempRetTime.selectedIndex].value==("M")){window.document.forms[a].returnTime.value="7AM"}else{if(document.forms[a].tempRetTime[document.forms[a].tempRetTime.selectedIndex].value==("A")){window.document.forms[a].returnTime.value="3PM"}else{if(document.forms[a].tempRetTime[document.forms[a].tempRetTime.selectedIndex].value==("E")){window.document.forms[a].returnTime.value="8PM"}else{if(document.forms[a].tempRetTime[document.forms[a].tempRetTime.selectedIndex].value==("ANT")){window.document.forms[a].returnTime.value="12PM"}else{window.document.forms[a].returnTime.value=window.document.forms[a].tempRetTime.value}}}}}function update(b,a){document.forms[fName].elements[formType+"Day"].options[a-1].selected=true;document.forms[fName].elements[formType+"Month"].options[b].selected=true;testWindow.close()}function loadCalendar(u){testWindow.document.close();testWindow.document.open();var f=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");var q=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var g=new Date();var n=g.getYear();var t=g.getMonth();var r=g.getDate();var c=g.getDay();var v=7;var s=31;var o;if(u<t){n=n+1}if(n<1900){n+=1900}t=u;g.setDate(1);g.setMonth(t);g.setYear((n));var k="<TR>";var a="</TR>";var j='<TD WIDTH="30"><TABLE CELLSPACING=0 BORDER=1 BGCOLOR=DEDEFF BORDERCOLOR=CCCCCC><TR><TD WIDTH=20><B><CENTER>';var e="</CENTER></TD></TR></TABLE></B>";var h='<TD WIDTH="30"><CENTER>';var l="</CENTER></TD>";var m=t-1;var b=t+1;if(b==12){b=0}if(m==-1){m=11}o="<html><head><title>Calendar</title></head><body>";o+="<style>a:link{cursor: hand}a:active{cursor: hand}a:hover{cursor: hand}a:visited{cursor: hand}body{cursor: default}</style>";o+='<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="0" BORDERCOLOR="BBBBBB" width="100%" height="200"><TR><TD>';o+='<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" width="100%">'+k;o+='<TD COLSPAN="'+v+'" BGCOLOR="#EFEFEF"><CENTER><B>';o+=q[t]+"   "+n+"</B>"+l+a;o+=k;for(index=0;index<v;index++){o+=h+f[index]+l}o+=l+a;o+=k;for(index=0;index<g.getDay();index++){o+=h+"  "+l}for(index=0;index<s;index++){if(g.getDate()>index){week_day=g.getDay();if(week_day==0){o+=k}if(week_day!=v){var p=g.getDate();o+=h+"<span onclick='window.opener.update("+t+","+p+")' style='cursor:hand;font-weight:bold;background:#EFEFEF;width:22px;'>"+p+"</span>"+l}if(week_day==v){o+=a}}g.setDate(g.getDate()+1)}o+="</td></TR></TABLE></TABLE><br>";o+='<div align="center"><a href="javascript:" onClick="window.opener.loadCalendar('+m+');">&lt;&lt;</a>&nbsp;&nbsp;&nbsp;&nbsp;';o+='<a href="javascript:" onClick="window.opener.loadCalendar('+b+');">&gt;&gt;</a><br><br></div>';o+='<div align="right"><a href="javascript:window.close();">close</a></div>';o+="</body></html>";testWindow.document.write(o)}var testWindow;var formType;var fName;function openCalendar(a,b){formType=b;fName=a;testWindow=window.open("","dates","width=360,height=300,resizable=1,status=1,menubar=0,location=0");loadCalendar(document.forms[fName].elements[formType+"Month"].selectedIndex)}function groups(a){if(a.numberOfRooms.selectedIndex==8){window.location="http://travel.ian.com/index.jsp?pageName=groups&cid=49033";return false}return submitGuestInfoForm(a)}function calculateFormMonthDay(b,c,a){d=new Date();d.setTime(Date.parse(document.getElementById(b).value));document.getElementById(c).value=d.getMonth();document.getElementById(a).value=d.getDate();return false}menuDelay=null;function activateMenuTab(a,c){var b=0;if(c==-1){clearTimeout(menuDelay);menuDelay=setTimeout("activateMenuTabDefault()",1000);return false}else{clearTimeout(menuDelay)}while((emid=document.getElementById(a+b+".m"))&&(eright=document.getElementById(a+b+".r"))&&(eleft=document.getElementById(a+b+".l"))){if(c==b){eleft.className=eleft.className.replace(/Off/,"On");emid.className=emid.className.replace(/Off/,"On");eright.className=eright.className.replace(/Off/,"On");if(econtent=document.getElementById(a+(b)+".c")){econtent.style.display="block"}}else{eleft.className=eleft.className.replace(/On/,"Off");emid.className=emid.className.replace(/On/,"Off");eright.className=eright.className.replace(/On/,"Off");if(econtent=document.getElementById(a+(b)+".c")){econtent.style.display="none"}}b++}return false}function activateMenuTabDefault(){activateMenuTab("menu",permLit)}function multipleFormSubmit(a){document.getElementById(a).disabled=true;var c=new Date();var b=hex_md5(document.getElementById("formId").value);b=b.concat(c.getTime());if(document.getElementById("formMultipleIdSubmit").value==""){document.getElementById("formMultipleIdSubmit").value=b;return true}else{return false}}function WebTrends(c,f,a,b){var e=this;this.dcsid=c;this.domain="wt-sdc.swiftcom.com";this.timezone=f;this.fpcdom=a;this.onsitedoms=b;this.navigationtag="DIV";this.metanames="WT.au,WT.site,WT.viewed,WT.published";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?(e.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 c,b,h;var a=this.WT;var e=this.dcsEncode;var l=["mc_id","pi","oss"];var j=a.cg_n?a.cg_n.split(";"):[];var f=a.cg_s?a.cg_s.split(";"):[];var n=a.si_n?a.si_n.split(";"):[];var g=a.si_x?a.si_x.split(";"):[];var k=a.si_p?a.si_p.split(";"):[];var m="";for(c=0;c<l.length;c++){b=a[l[c]]||"";if(b.length>0){m+=(m.length?",":"")+"WT."+l[c]+"."+e(b)}}for(c=0;c<j.length;c++){m+=(m.length?",":"")+"WT.cg."+e(j[c]);b=f[c]||"";if(b.length>0){m+="."+e(b)}}for(c=0;c<n.length;c++){m+=(m.length?",":"")+"WT.si."+e(n[c]);b=g[c]||"";h=k[c]||"";if(b.length>0){m+="."+e(b)}else{if(h.length>0){m+="."+e(h)}}}return m};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(e){var o=document.cookie.split("; ");var n=[];var m=0;var h=0;var b=e.length;var k=o.length;for(h=0;h<k;h++){var j=o[h];if((j.substring(0,b+1))==(e+"=")){n[m++]=j}}var a=n.length;if(a>0){m=0;if((a>1)&&(e==this.fpc)){var l=new Date(0);for(h=0;h<a;h++){var f=parseInt(this.dcsGetCrumb(n[h],"lv"));var g=new Date(f);if(g>l){l.setTime(g.getTime());m=h}}}return unescape(n[m].substring(b+1))}else{return null}};WebTrends.prototype.dcsGetCrumb=function(g,c,e){var b=g.split(e||":");for(var f=0;f<b.length;f++){var a=b[f].split("=");if(c==a[0]){return a[1]}}return null};WebTrends.prototype.dcsGetIdCrumb=function(e,b){var f=e.substring(0,e.indexOf(":lv="));var a=f.split("=");for(var c=0;c<a.length;c++){if(b==a[0]){return a[1]}}return null};WebTrends.prototype.dcsIsFpcSet=function(a,g,e,b){var f=this.dcsGetCookie(a);if(f){return((g==this.dcsGetIdCrumb(f,"id"))&&(e==this.dcsGetCrumb(f,"lv"))&&(b==this.dcsGetCrumb(f,"ss")))?0:3}return 2};WebTrends.prototype.dcsFPC=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var e=this.WT;var b=this.fpc;var p=new Date();var n=(p.getTimezoneOffset()*60000)+(this.timezone*3600000);p.setTime(p.getTime()+n);var j=new Date(p.getTime()+315360000000);var o=new Date(p.getTime());e.co_f=e.vtid=e.vtvs=e.vt_f=e.vt_f_a=e.vt_f_s=e.vt_f_d=e.vt_f_tlh=e.vt_f_tlv="";if(document.cookie.indexOf(b+"=")==-1){if((typeof(gWtId)!="undefined")&&(gWtId!="")){e.co_f=gWtId}else{if((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){e.co_f=gTempWtId;e.vt_f="1"}else{e.co_f="2";var s=p.getTime().toString();for(var l=2;l<=(32-s.length);l++){e.co_f+=Math.floor(Math.random()*16).toString(16)}e.co_f+=s;e.vt_f="1"}}if(typeof(gWtAccountRollup)=="undefined"){e.vt_f_a="1"}e.vt_f_s=e.vt_f_d="1";e.vt_f_tlh=e.vt_f_tlv="0"}else{var m=this.dcsGetCookie(b);var f=this.dcsGetIdCrumb(m,"id");var h=parseInt(this.dcsGetCrumb(m,"lv"));var t=parseInt(this.dcsGetCrumb(m,"ss"));if((f==null)||(f=="null")||isNaN(h)||isNaN(t)){return}e.co_f=f;var k=new Date(h);e.vt_f_tlh=Math.floor((k.getTime()-n)/1000);o.setTime(t);if((p.getTime()>(k.getTime()+1800000))||(p.getTime()>(o.getTime()+28800000))){e.vt_f_tlv=Math.floor((o.getTime()-n)/1000);o.setTime(p.getTime());e.vt_f_s="1"}if((p.getDay()!=k.getDay())||(p.getMonth()!=k.getMonth())||(p.getYear()!=k.getYear())){e.vt_f_d="1"}}e.co_f=escape(e.co_f);e.vtid=(typeof(this.vtid)=="undefined")?e.co_f:(this.vtid||"");e.vtvs=(o.getTime()-n).toString();var g="; expires="+j.toGMTString();var r=p.getTime().toString();var q=o.getTime().toString();document.cookie=b+"=id="+e.co_f+":lv="+r+":ss="+q+g+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));var a=this.dcsIsFpcSet(b,e.co_f,r,q);if(a!=0){e.co_f=e.vtvs=e.vt_f_s=e.vt_f_d=e.vt_f_tlh=e.vt_f_tlv="";if(typeof(this.vtid)=="undefined"){e.vtid=""}e.vt_f=e.vt_f_a=a}};WebTrends.prototype.dcsTP=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var a="WT_DC";var b="; expires=Thu, 31-Dec-2020 08:00:00 GMT";var e="; path=/";var c="";if(document.cookie.indexOf(a+"=tsp=1")!=-1){this.WT.ttp="1"}if(this.dcsGetMeta("SmartView_Page")=="1"){this.WT.tsp="1";document.cookie=a+"=tsp=1"+b+e+c}else{document.cookie=a+"=; expires=Sun, 1-Jan-1995 00:00:00 GMT;"+e+c}};WebTrends.prototype.dcsGetMeta=function(b){var a;if(document.all){a=document.all.tags("meta")}else{if(document.documentElement){a=document.getElementsByTagName("meta")}}if(typeof(a)!="undefined"){for(var c=1;c<=a.length;c++){var e=a.item(c-1);if(e.name&&(e.name.indexOf(b)==0)){return e.content;break}}}return null};WebTrends.prototype.dcsIsOnsite=function(c){if(c.length>0){c=c.toLowerCase();if(c==window.location.hostname.toLowerCase()){return true}if(typeof(this.onsitedoms.test)=="function"){return this.onsitedoms.test(c)}else{if(this.onsitedoms.length>0){var e=this.dcsSplit(this.onsitedoms);var a=e.length;for(var b=0;b<a;b++){if(c==e[b]){return true}}}}}return false};WebTrends.prototype.dcsEvt=function(b,a){var c=b.target||b.srcElement;while(c.tagName&&(c.tagName!=a)){c=c.parentElement||c.parentNode}return c};WebTrends.prototype.dcsNavigation=function(a){var c=this.dcsEvt(a,this.navigationtag);var f=c.getAttribute?c.getAttribute("id"):"";var b=c.className||"";return f?f:b};WebTrends.prototype.dcsBind=function(b,a){if((typeof(a)=="function")&&document.body){if(document.body.addEventListener){document.body.addEventListener(b,a.wtbind(this),true)}else{if(document.body.attachEvent){document.body.attachEvent("on"+b,a.wtbind(this))}}}};WebTrends.prototype.dcsET=function(){var a=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";this.dcsBind(a,this.dcsDynamic);this.dcsBind(a,this.dcsFormButton);this.dcsBind(a,this.dcsOffsite);this.dcsBind(a,this.dcsAnchor);this.dcsBind(a,this.dcsImageMap)};WebTrends.prototype.dcsMultiTrack=function(){var b=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;if(b.length%2==0){this.dcsSetProps(b);var a=new Date();this.DCS.dcsdat=a.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(a){for(var b=0;b<a.length;b+=2){if(a[b].indexOf("WT.")==0){this.WT[a[b].substring(3)]=a[b+1]}else{if(a[b].indexOf("DCS.")==0){this.DCS[a[b].substring(4)]=a[b+1]}else{if(a[b].indexOf("DCSext.")==0){this.DCSext[a[b].substring(7)]=a[b+1]}}}}};WebTrends.prototype.dcsSplit=function(e){var b=e.toLowerCase().split(",");var a=b.length;for(var c=0;c<a;c++){b[c]=b[c].replace(/^\s*/,"").replace(/\s*$/,"")}return b};WebTrends.prototype.dcsDynamic=function(a){a=a||(window.event||"");if(a&&((typeof(a.which)!="number")||(a.which==1))){var c=this.dcsEvt(a,"A");if(c.href&&c.protocol){var b=c.search?c.search.substring(c.search.indexOf("?")+1,c.search.length):"";if(c.protocol=="javascript:"){this.dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",c.href,"WT.ti","JavaScript:"+c.innerHTML,"WT.dl","22","WT.nv",this.dcsNavigation(a));this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.cl=this.WT.nv=""}else{if(c.protocol=="mailto:"){this.dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",c.href,"WT.ti","MailTo:"+c.innerHTML,"WT.dl","23","WT.nv",this.dcsNavigation(a));this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv=""}}}}};WebTrends.prototype.dcsFormButton=function(b){b=b||(window.event||"");if(b&&((typeof(b.which)!="number")||(b.which==1))){var f=["INPUT","BUTTON"];for(var c=0;c<f.length;c++){var k=this.dcsEvt(b,f[c]);var g=k.type||"";if(g&&((g=="submit")||(g=="image")||(g=="button")||(g=="reset"))||((g=="text")&&((b.which||b.keyCode)==13))){var h="";var a="";var l=0;if(k.form){h=k.form.action||window.location.pathname;a=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;a=k.name||k.id||"Unknown";l=(f[c].toLowerCase()=="input")?"28":"29"}if(h&&a&&(b.keyCode!=9)){this.dcsMultiTrack("DCS.dcsuri",h,"WT.ti","FormButton:"+a,"WT.dl",l,"WT.nv",this.dcsNavigation(b))}this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv="";break}}}};WebTrends.prototype.dcsOffsite=function(a){a=a||(window.event||"");if(a&&((typeof(a.which)!="number")||(a.which==1))){var c=this.dcsEvt(a,"A");if(c.href){var g=c.hostname?(c.hostname.split(":")[0]):"";var h=c.protocol||"";if((g.length>0)&&(h.indexOf("http")==0)&&!this.dcsIsOnsite(g)){var b=c.search?c.search.substring(c.search.indexOf("?")+1,c.search.length):"";var f=c.pathname?((c.pathname.indexOf("/")!=0)?"/"+c.pathname:c.pathname):"/";this.dcsMultiTrack("DCS.dcssip",g,"DCS.dcsuri",f,"DCS.dcsqry",this.trimoffsiteparams?"":b,"DCS.dcsref",window.location,"WT.ti","Offsite:"+g+f+"?"+b,"WT.dl","24","WT.nv",this.dcsNavigation(a));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(a){a=a||(window.event||"");if(a&&((typeof(a.which)!="number")||(a.which==1))){var c=this.dcsEvt(a,"A");if(c.href){var g=c.hostname?(c.hostname.split(":")[0]):"";if(this.dcsIsOnsite(g)&&c.hash&&(c.hash!="")&&(c.hash!="#")){var b=c.search?c.search.substring(c.search.indexOf("?")+1,c.search.length):"";var f=c.pathname?((c.pathname.indexOf("/")!=0)?"/"+c.pathname:c.pathname):"/";this.dcsMultiTrack("DCS.dcssip",g,"DCS.dcsuri",f+c.hash,"WT.ti","Anchor:"+c.hash,"WT.dl","21","WT.nv",this.dcsNavigation(a));this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv=""}}}};WebTrends.prototype.dcsImageMap=function(b){b=b||(window.event||"");if(b){var f=this.dcsEvt(b,"AREA");if(f.href){var h=f.hostname?(f.hostname.split(":")[0]):"";if((h!="")&&f.protocol&&(f.protocol.indexOf("http")!=-1)){var a="";var c=this.dcsEvt(b,"MAP");if(c){if(c.name){a=c.name}else{if(c.id){a=c.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:"+a,"WT.dl","30","WT.nv",this.dcsNavigation(b));this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.WT.ti=this.WT.dl=this.WT.nv=""}}}};WebTrends.prototype.dcsMetaCap=function(){var b;if(document.all){b=document.all.tags("meta")}else{if(document.documentElement){b=document.getElementsByTagName("meta")}}if(typeof(b)!="undefined"){var k=this.dcsSplit(this.metanames);var a=k.length;var g=b.length;for(var f=0;f<g;f++){var e=b.item(f).name.toLowerCase();var h=b.item(f).content;if((e.length>0)&&(h.length>0)){for(var c=0;c<a;c++){if(e==k[c]){this.DCSext["meta_"+k[c]]=h;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 b=new Date();var a=this.WT;var k=this.DCS;a.tz=parseInt(b.getTimezoneOffset()/60*-1)||"0";a.bh=b.getHours()||"0";a.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;if(typeof(screen)=="object"){a.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;a.sr=screen.width+"x"+screen.height}if(typeof(navigator.javaEnabled())=="boolean"){a.jo=navigator.javaEnabled()?"Yes":"No"}if(document.title){if(window.RegExp){var g=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");a.ti=document.title.replace(g,"")}else{a.ti=document.title}}a.js="Yes";a.jv=(function(){var q=navigator.userAgent.toLowerCase();var C=parseInt(navigator.appVersion);var p=(q.indexOf("mac")!=-1);var w=(q.indexOf("firefox")!=-1);var m=(q.indexOf("firefox/0.")!=-1);var r=(q.indexOf("firefox/1.0")!=-1);var n=(q.indexOf("firefox/1.5")!=-1);var B=(q.indexOf("firefox/2.0")!=-1);var D=(w&&!m&&!r&!n&!B);var l=(!w&&(q.indexOf("mozilla")!=-1)&&(q.indexOf("compatible")==-1));var o=(l&&(C==4));var y=(l&&(C>=5));var A=((q.indexOf("msie")!=-1)&&(q.indexOf("opera")==-1));var s=(A&&(C==4)&&(q.indexOf("msie 4")!=-1));var z=(A&&!s);var v=(q.indexOf("opera")!=-1);var u=(q.indexOf("opera 5")!=-1||q.indexOf("opera/5")!=-1);var t=(q.indexOf("opera 6")!=-1||q.indexOf("opera/6")!=-1);var e=(v&&!u&&!t);var x="1.1";if(D){x="1.8"}else{if(B){x="1.7"}else{if(n){x="1.6"}else{if(m||r||y||e){x="1.5"}else{if((p&&z)||t){x="1.4"}else{if(z||o||u){x="1.3"}else{if(s){x="1.2"}}}}}}}return x})();a.ct="unknown";if(document.body&&document.body.addBehavior){try{document.body.addBehavior("#default#clientCaps");a.ct=document.body.connectionType||"unknown";document.body.addBehavior("#default#homePage");a.hp=document.body.isHomePage(location.href)?"1":"0"}catch(h){}}if(document.all){a.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown"}else{a.bs=window.innerWidth+"x"+window.innerHeight}a.fv=(function(){var m,l;if(window.ActiveXObject){for(m=10;m>0;m--){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+m);return m+".0"}catch(n){}}}else{if(navigator.plugins&&navigator.plugins.length){for(m=0;m<navigator.plugins.length;m++){if(navigator.plugins[m].name.indexOf("Shockwave Flash")!=-1){return navigator.plugins[m].description.split(" ")[2]}}}}return"Not enabled"})();a.slv=(function(){var l="Not enabled";try{if(navigator.userAgent.indexOf("MSIE")!=-1){var n=new ActiveXObject("AgControl.AgControl");if(n){l="Unknown"}}else{if(navigator.plugins["Silverlight Plug-In"]){l="Unknown"}}}catch(q){}if(l!="Not enabled"){var p,o,m;if((typeof(Silverlight)=="object")&&(typeof(Silverlight.isInstalled)=="function")){for(o=9;o>=0;o--){for(p=3;p>0;p--){m=p+"."+o;if(Silverlight.isInstalled(m)){l=m;break}}if(l==m){break}}}}return l})();if(this.i18n){if(typeof(document.defaultCharset)=="string"){a.le=document.defaultCharset}else{if(typeof(document.characterSet)=="string"){a.le=document.characterSet}else{a.le="unknown"}}}a.tv="8.6.1";a.dl="0";a.ssl=(window.location.protocol.indexOf("https:")==0)?"1":"0";k.dcsdat=b.getTime();k.dcssip=window.location.hostname;k.dcsuri=window.location.pathname;a.es=k.dcssip+k.dcsuri;if(window.location.search){k.dcsqry=window.location.search}if(k.dcsqry){var c=k.dcsqry.toLowerCase();var j=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];for(var f=0;f<j.length;f++){if(c.indexOf(j[f]+"=")!=-1){a.srch="1";break}}}if((window.document.referrer!="")&&(window.document.referrer!="-")){if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){k.dcsref=window.document.referrer}}};WebTrends.prototype.dcsEscape=function(a,c){if(c!=""){a=a.toString();for(var b in c){if(c[b] instanceof RegExp){a=a.replace(c[b],b)}}return a}else{return escape(a)}};WebTrends.prototype.dcsA=function(h,c){if(this.i18n&&(this.exre!="")&&!this.exre.test(h)){if(h=="dcsqry"){var a="";var e=c.substring(1).split("&");for(var g=0;g<e.length;g++){var f=e[g];var j=f.indexOf("=");if(j!=-1){var k=f.substring(0,j);var b=f.substring(j+1);if(g!=0){a+="&"}a+=k+"="+this.dcsEncode(b)}}c=c.substring(0,1)+a}else{c=this.dcsEncode(c)}}return"&"+h+"="+this.dcsEscape(c,this.re)};WebTrends.prototype.dcsEncode=function(a){return(typeof(encodeURIComponent)=="function")?encodeURIComponent(a):escape(a)};WebTrends.prototype.dcsCreateImage=function(a){if(document.images){this.images[this.index]=new Image();this.images[this.index].src=a;this.index++}else{document.write('<IMG ALT="" BORDER="0" NAME="DCSIMG" WIDTH="1" HEIGHT="1" SRC="'+a+'">')}};WebTrends.prototype.dcsMeta=function(){var b;if(document.all){b=document.all.tags("meta")}else{if(document.documentElement){b=document.getElementsByTagName("meta")}}if(typeof(b)!="undefined"){var g=b.length;for(var e=0;e<g;e++){var c=b.item(e).name;var f=b.item(e).content;var a=b.item(e).httpEquiv;if(c.length>0){if(c.toUpperCase().indexOf("WT.")==0){this.WT[c.substring(3)]=f}else{if(c.toUpperCase().indexOf("DCSEXT.")==0){this.DCSext[c.substring(7)]=f}else{if(c.toUpperCase().indexOf("DCS.")==0){this.DCS[c.substring(4)]=f}}}}}}};WebTrends.prototype.dcsTag=function(){if(document.cookie.indexOf("WTLOPTOUT=")!=-1){return}var a=this.WT;var h=this.DCS;var b=this.DCSext;var k=this.i18n;var e="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+this.domain+(this.dcsid==""?"":"/"+this.dcsid)+"/dcs.gif?";if(k){a.dep=""}for(var f in h){if(h[f]&&(typeof h[f]!="function")){e+=this.dcsA(f,h[f])}}var j=["co_f","vtid","vtvs","vt_f_tlv"];for(var c=0;c<j.length;c++){var g=j[c];if(a[g]){e+=this.dcsA("WT."+g,a[g]);delete a[g]}}for(f in a){if(a[f]&&(typeof a[f]!="function")){e+=this.dcsA("WT."+f,a[f])}}for(f in b){if(b[f]&&(typeof b[f]!="function")){if(k){a.dep=(a.dep.length==0)?f:(a.dep+";"+f)}e+=this.dcsA(f,b[f])}}if(k&&(a.dep.length>0)){e+=this.dcsA("WT.dep",a.dep)}if(e.length>2048&&navigator.userAgent.indexOf("MSIE")>=0){e=e.substring(0,2040)+"&WT.tu=1"}this.dcsCreateImage(e);this.WT.ad=""};WebTrends.prototype.dcsDebug=function(){var c=this;var b=c.images[0].src;var f=b.indexOf("?");var e=b.substring(0,f).split("/");var a="<b>Protocol</b><br><code>"+e[0]+"<br></code>";a+="<b>Domain</b><br><code>"+e[2]+"<br></code>";a+="<b>Path</b><br><code>/"+e[3]+"/"+e[4]+"<br></code>";a+="<b>Query Params</b><code>"+b.substring(f+1).replace(/\&/g,"<br>")+"</code>";a+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";if(c.w&&!c.w.closed){c.w.close()}c.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");c.w.document.write(a);c.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(b){var c=this;var a=function(){return c.apply(b,arguments)};return a};var hexcase=0;var b64pad="";var chrsz=8;function hex_md5(a){return binl2hex(core_md5(str2binl(a),a.length*chrsz))}function b64_md5(a){return binl2b64(core_md5(str2binl(a),a.length*chrsz))}function str_md5(a){return binl2str(core_md5(str2binl(a),a.length*chrsz))}function hex_hmac_md5(a,b){return binl2hex(core_hmac_md5(a,b))}function b64_hmac_md5(a,b){return binl2b64(core_hmac_md5(a,b))}function str_hmac_md5(a,b){return binl2str(core_hmac_md5(a,b))}function md5_vm_test(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function core_md5(p,k){p[k>>5]|=128<<((k)%32);p[(((k+64)>>>9)<<4)+14]=k;var o=1732584193;var n=-271733879;var m=-1732584194;var l=271733878;for(var g=0;g<p.length;g+=16){var j=o;var h=n;var f=m;var e=l;o=md5_ff(o,n,m,l,p[g+0],7,-680876936);l=md5_ff(l,o,n,m,p[g+1],12,-389564586);m=md5_ff(m,l,o,n,p[g+2],17,606105819);n=md5_ff(n,m,l,o,p[g+3],22,-1044525330);o=md5_ff(o,n,m,l,p[g+4],7,-176418897);l=md5_ff(l,o,n,m,p[g+5],12,1200080426);m=md5_ff(m,l,o,n,p[g+6],17,-1473231341);n=md5_ff(n,m,l,o,p[g+7],22,-45705983);o=md5_ff(o,n,m,l,p[g+8],7,1770035416);l=md5_ff(l,o,n,m,p[g+9],12,-1958414417);m=md5_ff(m,l,o,n,p[g+10],17,-42063);n=md5_ff(n,m,l,o,p[g+11],22,-1990404162);o=md5_ff(o,n,m,l,p[g+12],7,1804603682);l=md5_ff(l,o,n,m,p[g+13],12,-40341101);m=md5_ff(m,l,o,n,p[g+14],17,-1502002290);n=md5_ff(n,m,l,o,p[g+15],22,1236535329);o=md5_gg(o,n,m,l,p[g+1],5,-165796510);l=md5_gg(l,o,n,m,p[g+6],9,-1069501632);m=md5_gg(m,l,o,n,p[g+11],14,643717713);n=md5_gg(n,m,l,o,p[g+0],20,-373897302);o=md5_gg(o,n,m,l,p[g+5],5,-701558691);l=md5_gg(l,o,n,m,p[g+10],9,38016083);m=md5_gg(m,l,o,n,p[g+15],14,-660478335);n=md5_gg(n,m,l,o,p[g+4],20,-405537848);o=md5_gg(o,n,m,l,p[g+9],5,568446438);l=md5_gg(l,o,n,m,p[g+14],9,-1019803690);m=md5_gg(m,l,o,n,p[g+3],14,-187363961);n=md5_gg(n,m,l,o,p[g+8],20,1163531501);o=md5_gg(o,n,m,l,p[g+13],5,-1444681467);l=md5_gg(l,o,n,m,p[g+2],9,-51403784);m=md5_gg(m,l,o,n,p[g+7],14,1735328473);n=md5_gg(n,m,l,o,p[g+12],20,-1926607734);o=md5_hh(o,n,m,l,p[g+5],4,-378558);l=md5_hh(l,o,n,m,p[g+8],11,-2022574463);m=md5_hh(m,l,o,n,p[g+11],16,1839030562);n=md5_hh(n,m,l,o,p[g+14],23,-35309556);o=md5_hh(o,n,m,l,p[g+1],4,-1530992060);l=md5_hh(l,o,n,m,p[g+4],11,1272893353);m=md5_hh(m,l,o,n,p[g+7],16,-155497632);n=md5_hh(n,m,l,o,p[g+10],23,-1094730640);o=md5_hh(o,n,m,l,p[g+13],4,681279174);l=md5_hh(l,o,n,m,p[g+0],11,-358537222);m=md5_hh(m,l,o,n,p[g+3],16,-722521979);n=md5_hh(n,m,l,o,p[g+6],23,76029189);o=md5_hh(o,n,m,l,p[g+9],4,-640364487);l=md5_hh(l,o,n,m,p[g+12],11,-421815835);m=md5_hh(m,l,o,n,p[g+15],16,530742520);n=md5_hh(n,m,l,o,p[g+2],23,-995338651);o=md5_ii(o,n,m,l,p[g+0],6,-198630844);l=md5_ii(l,o,n,m,p[g+7],10,1126891415);m=md5_ii(m,l,o,n,p[g+14],15,-1416354905);n=md5_ii(n,m,l,o,p[g+5],21,-57434055);o=md5_ii(o,n,m,l,p[g+12],6,1700485571);l=md5_ii(l,o,n,m,p[g+3],10,-1894986606);m=md5_ii(m,l,o,n,p[g+10],15,-1051523);n=md5_ii(n,m,l,o,p[g+1],21,-2054922799);o=md5_ii(o,n,m,l,p[g+8],6,1873313359);l=md5_ii(l,o,n,m,p[g+15],10,-30611744);m=md5_ii(m,l,o,n,p[g+6],15,-1560198380);n=md5_ii(n,m,l,o,p[g+13],21,1309151649);o=md5_ii(o,n,m,l,p[g+4],6,-145523070);l=md5_ii(l,o,n,m,p[g+11],10,-1120210379);m=md5_ii(m,l,o,n,p[g+2],15,718787259);n=md5_ii(n,m,l,o,p[g+9],21,-343485551);o=safe_add(o,j);n=safe_add(n,h);m=safe_add(m,f);l=safe_add(l,e)}return Array(o,n,m,l)}function md5_cmn(j,f,e,c,h,g){return safe_add(bit_rol(safe_add(safe_add(f,j),safe_add(c,g)),h),e)}function md5_ff(g,f,l,k,e,j,h){return md5_cmn((f&l)|((~f)&k),g,f,e,j,h)}function md5_gg(g,f,l,k,e,j,h){return md5_cmn((f&k)|(l&(~k)),g,f,e,j,h)}function md5_hh(g,f,l,k,e,j,h){return md5_cmn(f^l^k,g,f,e,j,h)}function md5_ii(g,f,l,k,e,j,h){return md5_cmn(l^(f|(~k)),g,f,e,j,h)}function core_hmac_md5(c,g){var f=str2binl(c);if(f.length>16){f=core_md5(f,c.length*chrsz)}var a=Array(16),e=Array(16);for(var b=0;b<16;b++){a[b]=f[b]^909522486;e[b]=f[b]^1549556828}var h=core_md5(a.concat(str2binl(g)),512+g.length*chrsz);return core_md5(e.concat(h),512+128)}function safe_add(a,e){var c=(a&65535)+(e&65535);var b=(a>>16)+(e>>16)+(c>>16);return(b<<16)|(c&65535)}function bit_rol(a,b){return(a<<b)|(a>>>(32-b))}function str2binl(e){var c=Array();var a=(1<<chrsz)-1;for(var b=0;b<e.length*chrsz;b+=chrsz){c[b>>5]|=(e.charCodeAt(b/chrsz)&a)<<(b%32)}return c}function binl2str(c){var e="";var a=(1<<chrsz)-1;for(var b=0;b<c.length*32;b+=chrsz){e+=String.fromCharCode((c[b>>5]>>>(b%32))&a)}return e}function binl2hex(c){var b=hexcase?"0123456789ABCDEF":"0123456789abcdef";var e="";for(var a=0;a<c.length*4;a++){e+=b.charAt((c[a>>2]>>((a%4)*8+4))&15)+b.charAt((c[a>>2]>>((a%4)*8))&15)}return e}function binl2b64(e){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var g="";for(var b=0;b<e.length*4;b+=3){var f=(((e[b>>2]>>8*(b%4))&255)<<16)|(((e[b+1>>2]>>8*((b+1)%4))&255)<<8)|((e[b+2>>2]>>8*((b+2)%4))&255);for(var a=0;a<4;a++){if(b*8+a*6>e.length*32){g+=b64pad}else{g+=c.charAt((f>>6*(3-a))&63)}}}return g}function logon(e){if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=""}var f=document.getElementById(e);var a="";var h="";for(var c=0;c<f.length;c++){var g=f[c];if(g.id=="emailaddress"){a=g.value}else{if(g.id=="password"){h=g.value}}}if(a.length>0&&h.length>0){var j=document.getElementById(e);j.submit()}else{var b="";if(a.length==0){b="  You must enter an email address.<br />"}if(h.length==0){b=b+"  You must enter a password.<br />"}if(b.length>0){b="<p>"+b+"</p>"}if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=b}}}function clearForm(a){if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=""}var b=document.getElementById(a);b.reset()}function createAccount(){if(document.getElementById("errorDiv")){document.getElementById("errorDiv").innerHTML=""}var a=document.getElementById("create_emailaddress").value;var b=document.getElementById("create_password").value;var c=document.getElementById("create_confirmpassword").value;var h=document.getElementById("create_screenname").value;var l=document.getElementById("create_zip").value;var j=document.getElementById("tou").checked;if(a.length>0&&b.length>5&&c.length>0&&h.length>1&&j){if(b!=c){k="  The password must match the confirmation password.<br />";if(document.getElementById("errorDiv")){k="<p>"+k+"</p>";document.getElementById("errorDiv").innerHTML=k;location.href="#errorArea"}}else{var e="";var m=document.getElementById("frmCreateAccount");for(var g=0;g<m.length;g++){var f=m[g];if(f.checked){if(f.id.indexOf("newsletter_")>-1){e+=f.value+"||"}}}document.getElementById("checkedbusinessofferings").value=e;m.submit()}}else{var k="";if(!j){k=k+" You must agree to the Terms of Use to become an online community member.<br />"}if(a.length==0){k=k+"  You must enter an email address.<br />"}if(b.length<6){k=k+"  Your password must be at least 6 characters.<br />"}if(c.length==0){k=k+"  You must enter a confirmation password.<br />"}else{if(b!=c){k=k+"  The password much match the confirmation password.<br />"}}if(h.length<2){k=k+"  Your screen name must be at least 2 characters.<br />"}if(document.getElementById("errorDiv")){k="<p>"+k+"</p>";document.getElementById("errorDiv").innerHTML=k;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 a=document.getElementById("update_emailaddress").value;var l=document.getElementById("update_password").value;var k=document.getElementById("update_confirmpassword").value;var f=document.getElementById("update_reminderquestion").value;var m=document.getElementById("update_reminderanswer").value;var e=document.getElementById("update_screenname").value;var b=document.getElementById("update_zip").value;if(a.length>0&&l.length>5&&k.length>0&&f.length>0&&m.length>0&&e.length>1){if(l!=k){j="  The password must match the confirmation password.<br />";if(document.getElementById("errorDiv")){j="<p>"+j+"</p>";document.getElementById("errorDiv").innerHTML=j;location.href="#errorArea"}}else{var c="";var n=document.getElementById("frmUpdateAccount");for(var h=0;h<n.length;h++){var g=n[h];if(g.checked){if(g.id.indexOf("newsletter_")>-1){c+=g.value+"||"}}}document.getElementById("checkedbusinessofferings").value=c;n.submit()}}else{var j="";if(a.length==0){j="  You must enter an email address.<br />"}if(l.length<6){j=j+"  Your password must be at least 6 characters.<br />"}if(k.length==0){j=j+"  You must enter a confirmation password.<br />"}else{if(l!=k){j=j+"  The password much match the confirmation password.<br />"}}if(f.length==0){j=j+"  You must select a reminder question.<br />"}if(m.length==0){j=j+"  You must enter a reminder answer.<br />"}if(e.length<2){j=j+"  Your screen name must be at least 2 characters.<br />"}if(document.getElementById("errorDiv")){j="<p>"+j+"</p>";document.getElementById("errorDiv").innerHTML=j;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 openLogonPopUp(){document.getElementById("logonPopUp").style.visibility="visible";document.getElementById("logon_email").focus()}function closeLogonPopUp(){document.getElementById("logonPopUp").style.visibility="hidden"}function getComFrame(){var a;if(navigator.userAgent.indexOf("Safari")!=-1){a=frames.logonFrame}else{if(document.getElementById("logonFrame")){a=document.getElementById("logonFrame").contentWindow}}return a}function sendLogonMessage(e,c,k,a,f,h,b){url=e;cookieDomain=f;userRegPath=h;emailField=c;passwordField=k;redirectAfterLogin=b;if(document.getElementById(a).checked){rememberme="YES"}else{rememberme="NO"}emailaddress=document.getElementById(c).value;var j=document.getElementById(k).value;var g=url+"?em="+emailaddress+"&pwd="+j+"&rm="+rememberme;getComFrame().location.href=g;interval=setInterval(checkForMessages,200)}function checkForMessages(){if(screenname.length==0){if(getComFrame()){var a=getComFrame().location;if(a.hash&&a.hash!=screenname){hash=a.hash.replace("#","");hash=hash.replace("%0A","");if(hash!="FAILURE"){split=hash.split("||");ssokey=split[0];emailaddress=split[1];screenname=split[2]}logonCallback(hash)}}}}function logonCallback(a){clearInterval(interval);if(a.length>0&&a!="undefined"&&a!="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{window.location.href=window.location.href}}else{logonError()}}function logonError(){emailaddress="";emailField="";passwordField="";screenname="";rememberme="";url="";cookieDomain="";userRegPath="";var a="We couldn't find your Login info in the system. Here are possible reasons:";a+="<br />1. Check the spelling of your Email or Screen Name.";a+="<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>.";a+="<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=a;if(document.getElementById("logon_title")){document.getElementById("logon_title").style.display="none";document.getElementById("logon_title").style.visibility="hidden"}}function stripComments(f){while(f.search("-->")>-1){var c=f.search("<!--");var b=0;b=f.search("-->")+3;var e=b-c;if(b>c&&b<=f.length){var a=f.substr(c,e);f=f.replace(a,"")}else{return f}}return f}function dipslayPageAds(){var j=Math.random()*10000000000000000;var h;var c;if(document.getElementById("DoubleClickTarget728x90")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";adtype=iframe;tile=1;sz=728x90;ord="+j+"?";var b=document.createElement("iframe");var f="DoubleClickads728x90";var e=""+new Date().getTime();b.name=b.id="iframe-"+e;b.width="728";b.height="90";b.frameBorder="0";b.scrolling="no";b.allowTransparency="allowtransparency";b.src=h;document.getElementById(f).innerHTML="";document.getElementById(f).appendChild(b)}if(document.getElementById("DoubleClickTargetRightRailAds")){h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";adtype=iframe;tile=2;sz=300x250;ord="+j+"?";var b=document.createElement("iframe");var f="DoubleClickTargetRightRailAds";var e=""+new Date().getTime();b.name=b.id="iframe-"+e;b.width="300";b.height="250";b.frameBorder="0";b.scrolling="no";b.allowTransparency="allowtransparency";b.src=h;h="http://ad.doubleclick.net/adi/swc."+DoubleClickDomain+"."+DoubleClickSite+"/"+DoubleClickZone+";sz=280x88;tn=11;to=v;tw=280;ta=left;ord="+j+"?";var g=document.createElement("iframe");var a=""+new Date().getTime();g.name=b.id="iframe-"+a;g.width="280";g.height="1000";g.frameBorder="0";g.scrolling="no";g.allowTransparency="allowtransparency";g.src=h;document.getElementById(f).innerHTML="";document.getElementById(f).appendChild(b);document.getElementById(f).appendChild(g)}dcsMultiTrack();pageTracker._trackPageview();return}function getCommentPageRequest(a,f,c,b){var e=new CommentPage(new ArticleKey(a),f,c,b);return e}function commentPluckCallback(b){for(var c=0;c<b.Responses.length;c++){var a=b.Responses[c];if(a.CommentPage!=null){document.getElementById("commentListing").innerHTML=renderCommentPage(a.CommentPage,b.MemberSites)}}}function renderCommentPage(j,o){var p="";if(j.Comments.length>0){p='<table class="Comments_Table" cellpadding="0" cellspacing="0"><tbody>';for(var l=0;l<j.Comments.length;l++){var e=j.Comments[l];if(e.Author.IsBlocked!="False"&&CurrentUser!=e.Author.UserKey.Key){}else{if(e.ContentBlockingState!="Unblocked"||e.AbuseReportCount>2){p+='<tr class="Comments_TableRowColorBlocked"><td class="Comments_UserImage"><a href="'+appsPath+"/utils/persona/ui/index.php?userId="+e.Author.UserKey.Key+"&amp;plckUserId="+e.Author.UserKey.Key+'" onclick=""><img id="" src="'+e.Author.AvatarPhotoUrl+'" alt="User Image" class="PluckUserAvatar"></a></td>';p+='<td class="Comments_TableRight"><div class="Comments_From"><a id="" href="'+appsPath+"/utils/persona/ui/index.php?userId="+e.Author.UserKey.Key+"&amp;plckUserId="+e.Author.UserKey.Key+'" target="_parent">'+e.Author.DisplayName+"</a> wrote:</div>";p+='<div id="CommentBody['+l+']" class="Comments_CommentText">Comment blocked. Please read the Community Guidelines above or the Terms of Use at the bottom of the page.</div>';p+='<div class="Comments_NestedDate">'+e.PostedAtTime+'<span id="SiteAttributionActivity" class="Comments_SiteAttribution"> on '+o[0].MemberSiteName+"</span></div>";p+="</td></tr>"}else{p+='<tr class="Comments_TableRowColor"><td class="Comments_UserImage"><a href="'+appsPath+"/utils/persona/ui/index.php?userId="+e.Author.UserKey.Key+"&amp;plckUserId="+e.Author.UserKey.Key+'" onclick=""><img id="" src="'+e.Author.AvatarPhotoUrl+'" alt="User Image" class="PluckUserAvatar"></a></td>';p+='<td class="Comments_TableRight"><div class="Comments_From"><a id="" href="'+appsPath+"/utils/persona/ui/index.php?userId="+e.Author.UserKey.Key+"&amp;plckUserId="+e.Author.UserKey.Key+'" target="_parent">'+e.Author.DisplayName+"</a> wrote:</div>";p+='<div id="CommentBody['+l+']" class="Comments_CommentText">'+e.CommentBody+"</div>";p+='<div class="Comments_NestedDate">'+e.PostedAtTime+'<span id="SiteAttributionActivity" class="Comments_SiteAttribution"> on '+o[0].MemberSiteName+"</span></div>";p+='<table class="Comments_NestedTable" cellpadding="0" cellspacing="0"><tbody><tr>';sRecommended="";if(e.NumberOfRecommendations>0){sRecommended=" ("+e.NumberOfRecommendations+")"}sReported="";if(e.AbuseReportCount>0){sReported=" ("+e.AbuseReportCount+")"}p+='<td class="Comments_NestedRecommend"><div id="recommend:'+e.CommentKey.Key+'"><a href="#none" class="SiteLife_Recommend" onclick="return gSiteLife.PostRecommendation(\'Comment\',\''+e.CommentKey.Key+"','recommend:"+e.CommentKey.Key+"', document.title);\">Recommend"+sRecommended+"</a></div></td>";p+='<td class="Comments_NestedReport"><div id="rpt_'+e.CommentKey.Key+'"><span><a id="'+e.CommentKey.Key+'_RptAbuse" href="#none" class="SiteLife_ReportAbuse" onclick="ShowReportAbuse(event, document.URL, gSiteLife.__baseUrl + \'/AbuseReport/ReportAbuse?plckElementId=rpt_'+e.CommentKey.Key+"&amp;plckTargetKey="+e.CommentKey.Key+"&amp;plckTargetKeyType=Comment'); return false;\">Report abuse"+sReported+"</a></span></div></td></tr></tbody></table></td></tr>"}}}p+="</tbody></table>";if(j.NumberOfComments>j.NumberPerPage){var h=Number(j.OnPage);var k=Math.ceil(j.NumberOfComments/j.NumberPerPage);var g=10;var n=1;var c,b;var a=1;if(k<=g){c=1;b=k}else{if((h-n)>0){c=h-n}else{c=1;a=0}if((h+(g-n)-a)<=k){b=h+(g-n)-a}else{b=k}if((k-h+n+a)<g){c=c-(g-(k-h+n+a));if(c<1){c=1}}}if(k>1){p+='<div id="Paginator" class="Comments_Page"> ';var f=location.href.substring(0,location.href.indexOf("plckCurrentPage")-1);if(f==""||f==null){f=location.href}f=f.replace("&_ic=true","");f+="&";if((h-1)>=1){p+='<a href="'+f+"plckCurrentPage=1&amp;sid="+pluckEnvPath+'">First</a>&nbsp;';p+='<a href="'+f+"plckCurrentPage="+(h-1)+"&amp;sid="+pluckEnvPath+'">&lt;&lt;</a>&nbsp;&nbsp;'}for(var m=c;m<=b;m++){if(m==h){p+="<b>"+m+"</b>&nbsp;&nbsp;"}else{p+='<a href="'+f+"plckCurrentPage="+m+"&amp;sid="+pluckEnvPath+'">'+m+"</a>&nbsp;&nbsp;"}}if((h+1)<=k){p+='<a href="'+f+"plckCurrentPage="+(h+1)+"&amp;sid="+pluckEnvPath+'">&gt;&gt;</a>&nbsp;';p+='<a href="'+f+"plckCurrentPage="+k+"&amp;sid="+pluckEnvPath+'">Last</a>'}p+="</div>"}}}return p};