var host="http://www.poppydog.com";var pdmagic_host="www.poppydog.com";var platformCheck=false;var isOfficeLive=false;var pollRes;var buyabeerWin;var boughtabeer=new Object();var debug_once=0;function pd_buyabeer(A,B,C){document.write("<a href=\"javascript:openbuyabeer3('"+A+'\');"><img src="'+C+'" title="Its free!" border="0"/></a><br />');document.write("<b>Beers bought: "+B+"</b><br />");}function openbuyabeer3(A){if(document.cookie.indexOf("pd_buyabeer_"+A)>-1){alert("No thanks, still drinking the first beer");return;}boughtabeer[A]=1;if(buyabeerWin){buyabeerWin.close();}else{buyabeerWin=window.open("","buyabeer");buyabeerWin.close();}var B=new Date();buyabeerWin=window.open("/buyabeer.do?tiid="+A+"&asdft="+B.getMilliseconds(),"buyabeer","menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=200,height=200");buyabeerWin.focus();}function openpollw(A){if(pollRes){pollRes.close();}pollRes=window.open("","pollRes","menubar=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=700,height=450");pollRes.focus();A.submit.disabled=true;return true;}function pd_poll_t(H,G,I,E,K,F,B,J,D,A,C){document.write('<style type="text/css">');document.write(".poll {padding:5px 0px 5px 0px;}");document.write(".poll div {margin-bottom:3px}");document.write(".poll h1 {padding:5px;text-align:center;margin:0px;border-width: 1px 1px 0px 1px;border-style:solid}");document.write(".poll .body {padding:5px;text-align:left;}");document.write(".poll .powered {font-size:10px;margin-bottom:0px;text-align:center}");document.write("input.pollSubmit{background-color: #f5f5f5;border-bottom: 1px solid #dedede;border-top: 1px solid #eeeeee;font-weight: bold;color: #565656;cursor: pointer;padding: 3px 5px 4px 5px;}");document.write("</style>");document.write('<form action="'+host+'/poll.do" method="post" onSubmit="openpollw(this);" target="pollRes">');document.write('<input type="hidden" name="tiid" value="'+G+'">');document.write('<input type="hidden" name="k" value="'+H+'">');document.write('<input type="hidden" name="action" value="vote">');document.write('<table cellpadding="0" cellspacing="0" border="0"><tr><td>');document.write('<div class="poll">');document.write('<h1 style="width:'+(C-2)+"px;background-color:"+F+";color:"+K+";font-size:"+B+";border-color:"+E+'">'+I+"</h1>");document.write('<div class="body" style="font-size:'+A+"; width:"+(C-2)+"px;background-color:"+D+";color:"+J+";border:1px "+E+' solid; ">');}function pd_poll_q(A){document.write("<div>"+A+"</div>");}function pd_poll_r(B,C,A){document.write('<div><input type="'+B+'" name="resp" value="'+C+'"/>  '+A+"</div>");}function pd_poll_b(C,B,E,A,G,H,D,F){document.write('<div style="text-align:center;margin-top:10px">');if(typeof(pollPreview)=="undefined"){document.write('<input type="submit" name="submit" class="pollSubmit" id="thebutton'+B+'" value="'+A+'"/>');}else{document.write('<input type="submit" name="submit" class="pollSubmit" onClick="alert(\'Disabled in Preview Mode\');return false;" value="'+A+'"/>');}if(E){document.write('<br><a href="'+host+"/poll.do?action=viewRes&tiid="+B+"&k="+C+'" onclick="openpollw();" target="pollRes" style="color:'+F+';">'+G+"</a>");}document.write("</div>");}function pd_poll_f(B,A){if(!B){document.write('<div class="powered"><a href="'+host+'/prod/poll.jsp" style="color:'+A+'" target="_blank">powered by poppydog.com</a></div>');}document.write("</div>");document.write("</div>");document.write("</td></tr></table></form>");doFixIt("write");}function showLoginMessage(){document.write(getShowLoginMessage());doFixIt("write");}function getShowLoginMessage(){var B="";var A=pd_getArgs();if(document.location.search.indexOf("pd_invalidLogin=")>-1){if(document.location.search.indexOf("pd_invalidLogin=u")>-1){B+='Respond to the email sent to you <a href="'+A.pd_resendConf+"\" onClick=\"window.open('','resend','width=580,height=450');\" target=\"resend\">(help)</a>";}else{if(document.location.search.indexOf("pd_invalidLogin=a")>-1){B+="Your registration hasn't been approved yet";}else{B+="Login details are incorrect";}}}return B;}function pd_validate(D,C,B){var E=true;var F=false;for(var A=0;A<D.elements.length;A++){if(D.elements[A].name.indexOf("qrm_")>-1||D.elements[A].name.indexOf("qr_")>-1||D.elements[A].name.indexOf("form_image")>-1||D.elements[A].name.indexOf("tac")>-1){document.getElementById("e_"+D.elements[A].name).style.visibility="hidden";if(!isChecked(D.elements[A],D)){document.getElementById("e_"+D.elements[A].name).style.backgroundColor="#FF0000";document.getElementById("e_"+D.elements[A].name).style.color="#FFFFFF";document.getElementById("e_"+D.elements[A].name).style.visibility="visible";E=false;}}if(C&&D.elements[A].value.indexOf("href=")>-1){F=true;}}if(!E){if(!B){alert("You haven't filled in all the required fields");}else{B("You haven't filled in all the required fields",1);}return false;}else{if(F){if(!B){alert("No links allowed in the form");}else{B("No links allowed in the form",1);}return false;}}return true;}function pd_validate2(C,B){var D=true;var E=false;for(var A=0;A<C.elements.length;A++){if(C.elements[A].name.indexOf("qrm_")>-1||C.elements[A].name.indexOf("qr_")>-1||C.elements[A].name.indexOf("form_image")>-1||C.elements[A].name.indexOf("tac")>-1){document.getElementById("e_"+C.elements[A].name).style.visibility="hidden";if(!isChecked(C.elements[A],C)){document.getElementById("e_"+C.elements[A].name).style.backgroundColor="#FF0000";document.getElementById("e_"+C.elements[A].name).style.color="#FFFFFF";document.getElementById("e_"+C.elements[A].name).style.visibility="visible";D=false;}else{if(C.elements[A].name.indexOf("form_image")>-1){if(document.getElementById("pd_f_i_v")&&document.getElementById("pd_f_i_v").value!=C.elements[A].value.toLowerCase()){document.getElementById("e_"+C.elements[A].name).style.backgroundColor="#FF0000";document.getElementById("e_"+C.elements[A].name).style.color="#FFFFFF";document.getElementById("e_"+C.elements[A].name).style.visibility="visible";D=false;}}}}if(B&&C.elements[A].value.indexOf("href=")>-1){E=true;}}if(!D){alert("You haven't filled in all the required fields");return false;}else{if(E){alert("No links allowed in the form");return false;}}return true;}function isChecked(D,C){var B=false;if(D.type.indexOf("select")>-1){B=(D.selectedIndex>0);}else{if(D.type.indexOf("radio")>-1||D.type.indexOf("check")>-1){for(var A=0;A<C.elements.length;A++){if(C.elements[A].name==D.name&&C.elements[A].checked){B=true;break;}}}else{B=(D.value.length>0);}}return B;}function pd_submitnou(B){for(var A=0;A<B.elements.length;A++){if(B.elements[A].value.indexOf("href=")>-1){alert("No links allowed in the form");return false;}}return true;}function pd_isSiteBuilder(){if(document.location.href.indexOf("sitebuilder.yola")>-1||document.location.href.indexOf("http://www.weebly.com/")>-1||document.location.href.indexOf("http://sbi")>-1||pd_isWebStarts()){return true;}if(document.location.href.indexOf("webhosts.ihouseelite.com")>-1){return true;}return false;}function pd_isWebStarts(){var B=false;try{B=(document.location.href.indexOf("webstarts.com/cadmin")>-1||pd_isContainsScript("webstarts.com/cadmin"));if(!B){var D=top.document.getElementsByTagName("iframe");for(var A=0;A<D.length;A++){if(D[A].id){if(D[A].id.indexOf("contentEditor")>-1){B=true;break;}}}}}catch(C){}return B;}function pd_isContainsScript(C){var B=document.getElementsByTagName("script");for(var A=0;A<B.length;A++){var D=B[A].src;if(D){if(D.indexOf(C)>-1){return true;}}}return false;}function pd_templateFwd(){var B=host+"/blank.html";var A=pd_getArgs();if(A.pd_fwd){B=A.pd_fwd;}return pd_templateFwd3(B,false);}function pd_templateFwd2(C){if(C.indexOf("_QZ_")>-1){C=C.replace(/_QZ_/g,"&");}var A=true;var B=pd_getArgs();if(B.pd_fwd){C=B.pd_fwd;A=false;}return pd_templateFwd3(C,A);}function pd_templateFwd4(A,B){if(A.indexOf("_QZ_")>-1){A=A.replace(/_QZ_/g,"&");}if(!pd_isSiteBuilder()){return pd_templateFwd3(A,B);}}function pd_templateFwd3(C,F){if(C.indexOf("_QZ_")>-1){C=C.replace(/_QZ_/g,"&");}doPassLand(-5);if(doForwardPassLand()){return;}if(location.hash.indexOf("msgframe")>-1){return;}var B=pd_getArgs();if(B.pd_test1234qzz){alert("this is a test");return;}var E=getTemplateThemeArgs();if(C.indexOf("?")>-1){C+="&"+E+"&reload="+(new Date().getTime());}else{C+="?"+E+"&reload="+(new Date().getTime());}var D=getHref();if(F){C+="&123_pd_theme_templateUrl="+encodeURIComponent(D);}C+="&123_pd_theme_saveme="+encodeURIComponent(D);var A="pd_templateFrame";if(window.frames[A]){A="pd_templateFrame"+Math.floor((Math.random())*1000000000).toString();}if(!C||C.indexOf("blank.html")>-1){document.write("<iframe id='"+A+"' name='"+A+"' style='width:100%; height:0px; border:0;' scrolling='no' frameborder='0' border='0' width='100%' height='0' marginheight='0' marginwidth='0' ></iframe>");}else{document.write("<iframe id='"+A+"' name='"+A+"' src='"+C+"' style='width:100%; height:600px; border:0;' scrolling='no' frameborder='0' border='0' width='100%' height='3500' marginheight='0' marginwidth='0' ></iframe>");}doFixIt("write");try{if(window.location.hash.substr(0,9)!="#msgframe"){window.pdmagic.embed(pdmagic_host,"",A);}}catch(G){document.write("<div style='background-color:white; color:black';>Gadget failed to load: "+G+"</div>");}}function getTemplateThemeArgs(){if(!document.getElementById("pd_probe")){document.write("<span id='pd_probe'><a id='pd_probe_a' href='#'></a></span>");}var F=document.getElementById("pd_probe");var J=document.getElementById("pd_probe_a");var B=F;var E=0;var D=null;var L=null;var I=null;var C=null;var K=null;var G=null;try{while(E<1000){B=B.parentNode;if(window.getComputedStyle){var A=window.getComputedStyle(B,null);D=A.getPropertyValue("background-color");}else{D=B.currentStyle.backgroundColor;}if(D!="transparent"&&D!=""&&D!="rgba(0, 0, 0, 0)"){break;}D=null;E++;}B=document.getElementById("pd_probe");E=0;while(E<1000){B=B.parentNode;if(window.getComputedStyle){var A=window.getComputedStyle(B,null);L=A.getPropertyValue("color");}else{L=B.currentStyle.color;}if(L!="transparent"&&L!=""&&L!="rgba(0, 0, 0, 0)"){break;}L=null;E++;}if(window.getComputedStyle){var A=window.getComputedStyle(F,null);C=A.getPropertyValue("font-family");I=A.getPropertyValue("font-size");}else{C=F.currentStyle.fontFamily;I=F.currentStyle.fontSize;}if(window.getComputedStyle){var A=window.getComputedStyle(J,null);K=A.getPropertyValue("color");G=A.getPropertyValue("text-decoration");A=window.getComputedStyle(J,":hover");}else{K=J.currentStyle.color;G=J.currentStyle.textDecoration;}}catch(H){}if(C){C=C.replace(/['"]/g,"");}if(D==null){D="rgb(255,255,255)";}if(L==null){L="rgb(0,0,0)";}if(K==null){K="rgb(0,0,255)";}if(I==null){I="inherit";}if(G==null){G="inherit";}if(C==null){C="inherit";}return "123_pd_theme_ff="+encodeURIComponent(C)+"&123_pd_theme_bg="+encodeURIComponent(D)+"&123_pd_theme_fc="+encodeURIComponent(L)+"&123_pd_theme_lc="+encodeURIComponent(K)+"&123_pd_theme_ld="+encodeURIComponent(G)+"&123_pd_theme_fs="+encodeURIComponent(I)+"&123_pd_theme=t";}function pd_isOnPP(B){if(B==22170){return true;}if(pd_isSiteBuilder()){return true;}var C=pd_getCookie("pp_"+B);if(C==null||C==""){return false;}else{var A=new Date();A.setTime(A.getTime()+(getPPTimeOut(B)*60*1000));pd_setCookie("pp_"+B,C,pd_getDomain(),A);return true;}}if(typeof(checkedPPandIsOn)=="undefined"){checkedPPandIsOn=false;}function pd_isPP(K,E){if(K==22170){return true;}if(pd_isSiteBuilder()){return true;}if(document.location.search.indexOf("pd_1wdrftg")>-1){var I=pd_getArgs();if(I.pd_wedfrtg){var A=I.pd_wedfrtg.split("|");var L=pd_getCookie("pp_"+K);if(L==null){L="";}for(var C=0;C<A.length;C++){if(L.indexOf("|"+A[C]+"|")<0){L=L+A[C]+"|";}}}var J=getPPTimeOut(K);if(I.pd_1qto){if(I.pd_1qto==-1){J=20160;}else{J=I.pd_1qto;}}var B=new Date();B.setTime(B.getTime()+(J*60*1000));pd_setCookie("pp_"+K,L,pd_getDomain(),B);B=new Date();B.setTime(B.getTime()+(20160*60*1000));pd_setCookie("pp_timeout_"+K,J,pd_getDomain(),B);var D=document.location.href.substring(0,document.location.href.indexOf("pd_1wdrftg")-1);if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){D=addParamsToUrl(D,"pd_=_");}try{var F=top.document.getElementsByTagName("iframe");for(var C=0;C<F.length;C++){if(F.item(C).id.indexOf("CPH_Content_HtmlControl")>-1){top.location.replace(D);return true;}}}catch(H){}if(parent.frames&&parent.frames.pd_pp_outer){parent.location.replace(D);}else{document.location.replace(D);}return true;}var G=pd_getCookie("pp_"+K);if(checkedPPandIsOn||(G!=null&&G.indexOf("|"+E+"|")>-1)){checkedPPandIsOn=true;var B=new Date();B.setTime(B.getTime()+(getPPTimeOut(K)*60*1000));pd_setCookie("pp_"+K,G,pd_getDomain(),B);return true;}else{if(document.location.search.indexOf("pd_=_")>-1){var D=document.location.href.substring(0,document.location.href.indexOf("pd_")-1);addJS(host+"/pp/login.do?pid="+E+"&tiid="+K+"&action=ajaxOldStyleCheckLoggedOn&page="+escape(D));return;}var D=host+"/pp/login.do?pid="+E+"&tiid="+K+"&noc=t&nof=t&page="+escape(document.location.href);var F=top.document.getElementsByTagName("iframe");for(var C=0;C<F.length;C++){if(F.item(C).id.indexOf("CPH_Content_HtmlControl")>-1){top.location.replace(D);return false;}}if(parent.frames&&parent.frames.pd_pp_outer){parent.location.replace(D);}else{document.location.replace(D);}return false;}}function ppInnerGoToLogin(A){var C=top.document.getElementsByTagName("iframe");for(var B=0;B<C.length;B++){if(C.item(B).id.indexOf("CPH_Content_HtmlControl")>-1){top.location.replace(A);return false;}}if(parent.frames&&parent.frames.pd_pp_outer){parent.location.replace(A);}else{document.location.replace(A);}}function ppInnerLogin(E,D){var B=pd_getCookie("pp_"+hid);if(B==null){B="";}for(var C=0;C<E.length;C++){if(E[C]!=""&&B.indexOf("|"+E[C]+"|")<0){if(B==""){B="|"+E[C]+"|";}else{B=B+E[C]+"|";}}}var A=new Date();A.setTime(A.getTime()+((D=="-10"?"1":D)*60*1000));pd_setCookie("pp_"+hid,B,pd_getDomain(),A);A=new Date();A.setTime(A.getTime()+(20160*60*1000));pd_setCookie("pp_timeout_"+hid,D,pd_getDomain(),A);}function getPPTimeOut(A){var B=pd_getCookie("pp_timeout_"+A);if(B){return B;}else{return 15;}}function pd_isHomePage(A,C){doPassLand(A);if(doForwardPassLand()){return;}if(pd_isSiteBuilder()){return true;}var B=pd_getCookie(A+"_USER");if(B==null){if(isOfficeLive){top.location.replace(host+"/comreg/login.do?action=maAccess&tiid="+A+"_reg&returnPath="+escape(addParamsToUrl(getHref(),"pd_passland=t#pd_rw_a")));}else{document.location.replace(host+"/comreg/login.do?action=maAccess&tiid="+A+"_reg&returnPath="+escape(addParamsToUrl(getHref(),"pd_passland=t#pd_rw_a")));}return false;}else{if(B!=C){if(isOfficeLive){top.location.replace(host+"/errors/401.html");}else{document.location.replace(host+"/errors/401.html");}return false;}}return true;}function pd_showLoggedOn(A,C){var B=pd_getUsername(A);if(B!=null){document.write(C+B);}doFixIt("write");}function pd_showUpgrade(A,B){if(pd_isLoggedOn(A)&&!pd_isFullMember(A)){document.write("<a href="+host+"/reg/payment/member.do?action=upgrade&hid="+A+">"+B+"</a>");}doFixIt("write");}function pd_isFullMember(A){if(document.cookie.indexOf(A+"_FULL")>-1){return true;}else{return false;}}function pd_getUsername(A){if(pd_isLoggedOn(A)){return pd_getCookie(A+"_USERN");}}function pd_showPhoto(A,C){if(pd_isLoggedOn(A)){if(C){var B=pd_getCookie(A+"_PHOTO");if(B!=null){document.write('<img src="'+B+'" border="0" width="'+C+'"/>');}}else{var B=pd_getCookie(A+"_PHOTO");if(B!=null){document.write('<img src="'+B+'" border="0" />');}}}doFixIt("write");}function pd_isLoggedOn(A){if(pd_isSiteBuilder()){return true;}if(document.cookie.indexOf("poppydogl_"+A)>-1){return true;}else{return false;}}function pd_isSubscribed(A,C){var B=pd_getCookie(A+"_CID");if(B!=null&&B.indexOf(":"+C+":")>-1){return true;}else{return false;}}function pd_getCookie(D){var B=D+"=";var F=B.length;var A=document.cookie.length;var E=0;while(E<A){var C=E+F;if(document.cookie.substring(E,C)==B){return pd_getCookieVal(C);}E=document.cookie.indexOf(" ",E)+1;if(E==0){break;}}return null;}function pd_getCookieVal(B){var A=document.cookie.indexOf(";",B);if(A==-1){A=document.cookie.length;}return unescape(document.cookie.substring(B,A));}function getObject(id){var obj1;if(document.all){obj1=document.all[id];}else{if(document.getElementById){obj1=document.getElementById(id);}else{obj1=eval("document."+id);}}if(document.layers){return obj1;}else{return obj1.style;}}function pd_hide(B){var A=getObject(B);A.visibility="hidden";}function pd_show(B){var A=getObject(B);A.visibility="visible";}function pd_getArgs(){var B=new Object();var F=document.location.search.substring(1);var E=F.split("&");for(var C=0;C<E.length;C++){var G=E[C].indexOf("=");if(G<0){continue;}var A=E[C].substring(0,G);var D=E[C].substring(G+1);B[A]=unescape(D);}return B;}function doPlatformCheck(){platformCheck=true;isOfficeLive=isOfficeLiveCheck();}function isOfficeLiveCheck(){try{var C=top.document.getElementsByTagName("iframe");for(var A=0;A<C.length;A++){if(C.item(A).id.indexOf("CPH_Content_HtmlControl")>-1){return true;}}}catch(B){}return false;}function doFixIt(A){if(!platformCheck){doPlatformCheck();}if(isOfficeLive){top.resizeBy(10,10);top.resizeBy(-10,-10);}}function getDefaultTarget(){if(!platformCheck){doPlatformCheck();}if(isOfficeLive){return "target='_top'";}return "";}function getDefaultLocationObj(){if(!platformCheck){doPlatformCheck();}if(isOfficeLive){return top.location;}return window.location;}function addLoadEvent(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A;}else{window.onload=function(){if(B){B();}A();};}}function push(A,B){A[A.length]=B;}function addParamsToUrl(A,E){var C;var D="";var B=A.indexOf("#");if(B>-1){D=A.substring(B,A.length);A=A.substring(0,B);}if(A.indexOf("?")>0){C=A+"&"+E;}else{C=A+"?"+E;}return C+D;}function doPassLandLogoff(A){var B=new Date();B.setTime(B.getTime()-100);var C=pd_getDomain();pd_setCookie(A+"_CID","",C,B.toGMTString());pd_setCookie("pd_ms_s_"+A,"",C,B.toGMTString());pd_setCookie("poppydogl_"+A,"",C,B.toGMTString());pd_setCookie(A+"_USER","",C,B.toGMTString());pd_setCookie(A+"_USERN","",C,B.toGMTString());pd_setCookie(A+"_FULL","",C,B.toGMTString());pd_setCookie(A+"_PHOTO","",C,B.toGMTString());}function doPassLand(A){var B=pd_getArgs();if(!A||A==-5){A=B.pd_uabqrhid;}if(!A){return;}var C=pd_getDomain();if(B.pd_uabqraction&&B.pd_uabqraction.indexOf("logoff")>-1){doPassLandLogoff(A);}else{if(B.pd_uabqraction&&B.pd_uabqraction.indexOf("logon")>-1){pd_setCookie("poppydogl_"+A,"t",C,null);if(B.uabqr){pd_setCookie(A+"_USER",B.uabqr,C,null);}if(B.uabqrn){pd_setCookie(A+"_USERN",B.uabqrn,C,null);}if(B.uabqph){pd_setCookie(A+"_PHOTO",B.uabqph,C,null);}if(B.uabqrf){pd_setCookie(A+"_FULL","t",C,null);}if(B.uabqrcid){pd_setCookie(A+"_CID",B.uabqrcid,C,null);}}else{if(B.uabqrcid){pd_setCookie(A+"_CID",B.uabqrcid,C,null);}}}}function pd_setCookie(B,C,D,A){if(!D){D=pd_getDomain();}if(D=="localhost"){if(!A){document.cookie=B+"="+C+"; path=/;";}else{document.cookie=B+"="+C+"; path=/; expires="+A;}}else{if(!A){document.cookie=B+"="+C+"; path=/; domain="+D;document.cookie=B+"="+C+"; path=/;";}else{document.cookie=B+"="+C+"; path=/; domain="+D+"; expires="+A;document.cookie=B+"="+C+"; path=/; expires="+A;}}}function pd_getDomain(){var A=document.location.hostname;A.replace("www.","");var C=A.split(".");var B=C[C.length-1];if(C.length>1){B=C[C.length-2]+"."+B;}if(C.length>3){B=C[C.length-3]+"."+B;}return B;}function doForwardPassLand(){var A=pd_getArgs();if(A.uabqrmma){top.location.replace(A.uabqrmma);return true;}return false;}function parseQuery(D){var E=new Object();if(!D){return E;}var A=D.split(/[;&]/);for(var C=0;C<A.length;C++){var G=A[C].split("=");if(!G||G.length!=2){continue;}var B=unescape(G[0]);var F=unescape(G[1]);F=F.replace(/\+/g," ");E[B]=F;}return E;}function debugOnce(A){if(debug_once++==0){alert(A);}}var month_names_l=new Array();month_names_l[month_names_l.length]="January";month_names_l[month_names_l.length]="February";month_names_l[month_names_l.length]="March";month_names_l[month_names_l.length]="April";month_names_l[month_names_l.length]="May";month_names_l[month_names_l.length]="June";month_names_l[month_names_l.length]="July";month_names_l[month_names_l.length]="August";month_names_l[month_names_l.length]="September";month_names_l[month_names_l.length]="October";month_names_l[month_names_l.length]="November";month_names_l[month_names_l.length]="December";var day_names_l=new Array();day_names_l[day_names_l.length]="Sunday";day_names_l[day_names_l.length]="Monday";day_names_l[day_names_l.length]="Tuesday";day_names_l[day_names_l.length]="Wednesday";day_names_l[day_names_l.length]="Thursday";day_names_l[day_names_l.length]="Friday";day_names_l[day_names_l.length]="Saturday";var month_names_s=new Array();month_names_s[month_names_s.length]="Jan";month_names_s[month_names_s.length]="Feb";month_names_s[month_names_s.length]="Mar";month_names_s[month_names_s.length]="Apr";month_names_s[month_names_s.length]="May";month_names_s[month_names_s.length]="Jun";month_names_s[month_names_s.length]="Jul";month_names_s[month_names_s.length]="Aug";month_names_s[month_names_s.length]="Sep";month_names_s[month_names_s.length]="Oct";month_names_s[month_names_s.length]="Nov";month_names_s[month_names_s.length]="Dec";var day_names_s=new Array();day_names_s[day_names_s.length]="Sun";day_names_s[day_names_s.length]="Mon";day_names_s[day_names_s.length]="Tue";day_names_s[day_names_s.length]="Wed";day_names_s[day_names_s.length]="Thu";day_names_s[day_names_s.length]="Fri";day_names_s[day_names_s.length]="Sat";function pd_filter(A){var B=A.replace(/</g,"&lt;");B=B.replace(/>/g,"&gt;");B=B.replace(/\[b\]/g,"<b>");B=B.replace(/\[\/b\]/g,"</b>");B=B.replace(/\[i\]/g,"<i>");B=B.replace(/\[\/i\]/g,"</i>");B=B.replace(/\[u\]/g,"<u>");B=B.replace(/\[\/u\]/g,"</u>");B=B.replace(/\n/g,"<br>");return B;}function pd_getMins(A){var B=A.getMinutes()+"";if(B.length==1){B="0"+B;}return B;}function getHref(){var B=document.location.href;var A=B.indexOf("pd_");if(A>-1){B=B.substring(0,A-1);}A=B.indexOf("#");if(A>-1){B=B.substring(0,A);}A=B.indexOf("jsessionid");if(A>-1){B=B.substring(0,A-1);}return B;}function pd_reglinks_doForgot(A){window.open(host+"/comreg/login/forgot.do?action=w_lo4&tiid="+A+"_reg","forgotw","width=580,height=450,scrollbars=yes,resizable=yes");}function pd_reglinks_doRegister(A){window.open(host+"/comreg.do?action=w_re1&disconnected=t&tiid="+A+"_reg","pdreg","width=600,height=500,scrollbars=yes,resizable=yes");}function pd_reglinks_doLogout(A){doPassLandLogoff(A);document.location=host+"/comreg/login.do?tiid="+A+"_reg&disconnected=t&action=w_lo3&returnPath="+escape(addParamsToUrl(getHref(),"pd_passland=t#pd_rw_a"));return false;}function pd_reglinks_doLogoutComment(A){doPassLandLogoff(A);document.location=host+"/comreg/login.do?tiid="+A+"_reg&disconnected=t&action=w_lo3&returnPath="+escape(addParamsToUrl(getHref(),"pd_passland=t#pd_c_last"));return false;}function pd_reglinks_doInbox(A){document.location=host+"/message2.do?action=view&disconnected=t&hid="+A;return false;}function pd_reglinks_doProfile(A){document.location=host+"/comreg/profile.do?tiid="+A+"_reg&disconnected=t&action=w_pr5";return false;}function pd_reglinks_doMemDir(A){document.location=host+"/member.do?tiid="+A+"_reg&disconnected=t";return false;}function pd_reglinks_doLogin(A){document.location=host+"/comreg/login.do?tiid="+A+"_reg&disconnected=t&action=w_lo1&returnPath="+escape(addParamsToUrl(getHref(),"pd_passland=t#pd_rw_a"));return false;}function pd_reglinks_doLoginWidget(A){document.location=host+"/comreg/login.do?tiid="+A+"_reg&disconnected=t&action=w_lo1&fromWidget=t&returnPath="+escape(addParamsToUrl(getHref(),"pd_passland=t#pd_rw_a"));return false;}function pd_reglinks_writeMembersAreaLink(A,C){doPassLand(A);doForwardPassLand();var B=host+"/comreg/login.do?tiid="+A+"_reg&action=maAccess&returnPath="+escape(addParamsToUrl(getHref(),"pd_passland=t#pd_rw_a"));document.write('<a href="'+B+'">'+C+"</a>");doFixIt("write");}function pd_loginbox_writeparams(){var A=pd_getArgs();if(A.pd_returnPath){document.write('<input type="hidden" name="returnPath" value="'+A.pd_returnPath+'">');}if(A.pd_fromToolID){document.write('<input type="hidden" name="fromToolID" value="'+A.pd_fromToolID+'">');}if(A.pd_fromWidget){document.write('<input type="hidden" name="fromWidget" value="t">');}if(A.pd_maAccess){document.write('<input type="hidden" name="maAccess" value="t">');}if(A.pd_disconnected||!A.pd_returnPath){document.write('<input type="hidden" name="disconnected" value="true">');}document.write('<input type="hidden" name="fromLoginBox" value="true">');document.write('<input type="hidden" name="loginBoxReturnPath" value="'+addParamsToUrl(getHref(),"pd_passland=t#pd_loginBox")+'">');document.write('<input type="hidden" name="pd_invalidReturnPath" value="'+getHref()+'">');}function pd_pploginbox_writeparams(){document.write('<input type="hidden" name="pd_invalidReturnPath" value="'+location.href+'">');if(document.location.search.indexOf("nof=t")>-1){document.write('<input type="hidden" name="nof" value="t">');}var A=pd_getArgs();if(A.page){document.write('<input type="hidden" name="page" value="'+A.page+'">');}}function pd_reglinks_writeLoginLogout(C,B,A){doPassLand(A);if(!doForwardPassLand()){if(!platformCheck){doPlatformCheck();}if(!pd_isLoggedOn(A)){if(isOfficeLive){document.write('<script type="text/javascript" src="http://www.poppydog.com/ma/pd/pdutil.js"><\/script><a href="#" onClick="return pd_reglinks_doLogin('+A+')" target="_top">'+C+"</a>");}else{document.write('<a href="#" onClick="return pd_reglinks_doLogin('+A+')">'+C+"</a>");}}else{if(isOfficeLive){document.write('<script type="text/javascript" src="http://www.poppydog.com/ma/pd/pdutil.js"><\/script><a href="#" onClick="return pd_reglinks_doLogout('+A+')" target="_top">'+B+"</a>");}else{document.write('<a href="#" onClick="return pd_reglinks_doLogout('+A+')">'+B+"</a>");}}doFixIt("write");}}function pd_pp_writeLogoffLink(A,B){if(!platformCheck){doPlatformCheck();}if(isOfficeLive){document.write('<script type="text/javascript" src="http://www.poppydog.com/ma/pd/pdutil.js"><\/script><a href="#" onclick="pd_logoffPP('+B+');return false;" target="_top">'+A+"</a>");doFixIt("write");}else{document.write('<a href="#" target="_top" onclick="pd_logoffPP('+B+');return false;">'+A+"</a>");}}function pd_pp_doLogoffLink(A){if(pd_isOnPP(A)){pd_showNone("pd_pp_logoff","inline");}}function pd_hideNone(B){var A=getObject(B);if(A){A.display="none";}}function pd_showNone(C,B){var A=getObject(C);if(A){A.display=B;}}function pd_logoffPP(A){var C=new Date();C.setTime(C.getTime()-100);pd_setCookie("pp_"+A,"",pd_getDomain(),C.toGMTString());if(!platformCheck){doPlatformCheck();}if(isOfficeLive){var B=host+"/pp/login.do?action=logoff&tiid="+A+"&page="+escape(top.document.location.href);top.location.replace(B);return false;}var B=host+"/pp/login.do?action=logoff&tiid="+A+"&page="+escape(document.location.href);if(parent.frames&&parent.frames.pd_pp_outer){parent.location.replace(B);}else{document.location.replace(B);}return false;}if(!window.pdmagic){window.pdmagic=function(){return this;}();}if(!window.pdmagic.embeds){window.pdmagic.embeds={};}window.pdmagic.embed=function(O,J,D){var O=O;var I=D;var A=1600;var M=window.location.href.split("#")[0];var D=D;var Q=window.location.hash.substr(1);var N=Q&&Q[0]!="/";N|=(window!=top);if(!Q||N){if(!Q&&!N){location.href=M+"#/";}Q="/";}if(window.gadgets){M="";}window.pdmagic.embeds[I]=this;function K(S){if(S[0]=="ch_resize"){H(S[1]);}else{if(S[0]=="ch_load"){if(N){Q=S[1];}else{Q=window.location.hash.substr(1);if(Q!=S[1]){Q=S[1];location.href=M+"#"+Q;}}}else{if(S[0]=="ch_unload"){if(window.attachEvent||C(D)<0){document.getElementById(D).scrollIntoView(true);}}else{if(S[0]=="ch_scrollto"){window.scrollTo(0,G(D)+parseInt(S[1],10));}else{if(S[0]=="ch_delfoot"){var R=document.getElementById(S[1]);R.parentNode.removeChild(R);}else{if(S[0]=="ch_hide"){pd_hideNone(S[1]);}}}}}}}if(window.postMessage){function P(S){var R=S.data.split(":");var T=document.getElementById(D);if(T.contentWindow!=S.source){return;}K(R);}if(window.addEventListener){window.addEventListener("message",P,false);}else{window.attachEvent("onmessage",P);}}else{var F=null;function E(){var W=window.frames[D];if(!W){return;}try{var R=W.frames.msg_frame;var V=R.location.hash.substr(10);}catch(U){return;}var T=V.split(":");var S=T[0];if(F==S){return;}F=S;T.splice(0,1);K(T);}setInterval(E,300);}function L(){var R=window.location.hash.substr(1);if(!R){R="/";}if(R!=Q){Q=R;window.frames[D].location.replace(B(R));}}if(!window.gadgets){if(!N){if("onhashchange" in window){if(window.addEventListener){window.addEventListener("hashchange",L,false);}else{window.attachEvent("onhashchange",L);}}else{setInterval(L,300);}}}function B(R){return "http://"+O+R+"?"+J+"&cid="+I+"&eh="+encodeURIComponent(M);}function H(R){var S=document.getElementById(D);S.style["height"]=R+"px";if(window.gadgets){gadgets.window.adjustHeight();}}function C(U){var R=document.getElementById(U);var T=0;var S=0;if(R.offsetParent){do{T+=R.offsetTop;S+=R.offsetParent?R.offsetParent.scrollTop:0;}while(R=R.offsetParent);return T-S;}return-1;}function G(T){var R=document.getElementById(T);var S=0;if(R.offsetParent){do{S+=R.offsetTop;}while(R=R.offsetParent);return S;}return-1;}return this;};function addJS(B){var A=document.getElementsByTagName("head")[0];var C=document.createElement("script");C.type="text/javascript";C.src=B;A.appendChild(C);return C;}function serverLog(C){try{var B=host+"/servlet/logJs?msg="+escape(C+" navigator-appName="+navigator.appName+" navigator-appVersion="+navigator.appVersion+" navigator-cookieEnabled="+navigator.cookieEnabled+" userAgent:"+navigator.userAgent+" cookies:"+document.cookie+" href:"+document.location.href);addJS(B);}catch(A){}}

