var g_fSecondHIP="undefined"!=typeof srf_fSecHIP?srf_fSecHIP:false;var g_fTooManyHIPAttempts="undefined"!=typeof srf_fTooMnyHIP?srf_fTooMnyHIP:false;var g_urlHIPImage="undefined"!=typeof srf_uHIPImg?srf_uHIPImg:"";var g_urlHIPAudio="undefined"!=typeof srf_uHIPAud?srf_uHIPAud:"";var g_lHIPImageWidth="undefined"!=typeof srf_lHIPImgW?srf_lHIPImgW:"1";var g_lHIPImageHeight="undefined"!=typeof srf_lHIPImgH?srf_lHIPImgH:"1";var g_sTooManyHipErrorInfo1="You\'ve tried to sign in too many times to this account. A temporary delay helps prevent people from trying to guess your password.";var g_urlBHOUpgrade="undefined"!=typeof srf_uBHOUpg?srf_uBHOUpg:"";var g_urlStayUser="undefined"!=typeof srf_uStUsr?srf_uStUsr:"";var g_fFedSwitch="undefined"!=typeof srf_fFedSwitch?srf_fFedSwitch:false;var g_sSwitchMsg="undefined"!=typeof srf_sSwitchMsg?srf_sSwitchMsg:"";function GenericError(){var s="";s+=_Err("The Windows Live Network is unavailable from this site for one of the following reasons:","i0518",false,false,0,0,null,true);s+="";s+=WL_BulletList(["This site may be experiencing a problem","The site may not be a member of the Windows Live Network"]);s+=_P("You can:",false,0,null,false,null,null,null,null,"cssContainerTextBold");s+=WL_BulletList(["You can sign in or sign up at other sites on the Windows Live Network, or try again later at this site."]);s+="";return s;}function dGenericError_Mode(){GEId("rightTD").innerHTML=GenericError();GEId("moreTD").innerHTML="";}function WL_BulletList(b){var s="";s+="";return s;}function onLoad_SwitchUser(){var fUT=false;showUser=g_sDisplayMembername;onLoad_Common();if(g_users&&g_users.length)for(var i=0;i0)g_users.splice(0,i);if(g_users.length>1)g_users.splice(1,g_users.length-1);}}}if(!fUT){g_users=new Array();g_users[0]=[g_sDisplayMembername,0,"",""];}dMain();DrawSwitchUserContent();}function DrawSwitchUserContent(){var s="";var sSwitchMsg="";if(g_fFedSwitch&&g_sSwitchMsg!="")sSwitchMsg=g_sSwitchMsg;else sSwitchMsg="Sign out and sign in with a different account.";s+=_P("You\'re already signed in.",false,0,null,false,null,null,null,null,"cssContainerTextBold","style=\"margin-bottom:16px;\"");s+=_P("Remain signed in with this account.",false,0,null,true,null,"i1052",g_urlStayUser);s+=kTblOpn+"class=\"cssUT\" style=\"margin-bottom:16px;\">";s+=SUTile(0)+SUName(0);s+="";s+=_P(sSwitchMsg,false,0,null,true,null,"i1051",g_urlSwitchUser,null,null,"onclick=\"javascript:SetWLLoginOption('"+k_sWLOpt_SkipUsername+"', '"+g_sDisplayMembername+"')\"");GEId("rightTD").innerHTML=s;GEId("moreTD").innerHTML="";}function onLoad_LockedOut(){g_iActiveCredtype=1;onLoad_Common();if(g_fHasGenericError)return;dMain();GEId("moreTD").innerHTML="";var s="";if(g_fTooManyHIPAttempts)dLockedOut_Mode_TooManyHIP();else dLockedOut_Mode_HIP();}function onLoad_HIPonNext(){g_DO=new Object();g_QS="";onLoad_Common();dMain();DrawHIPonNext();}function DrawHIPonNext(){var s="";s+="
";s+=_Hf("login","i0116",g_sPrefillMembername);s+=_P("To authorize your account, type the characters you see in this picture.",false,0,null,false,null,null,null,null,"cssContainerTextBold","style=\"margin-bottom:16px;\"");s+=kTblOpn+">";if(g_fHasErrorCode){g_fHasErrorCode=false;s+="";s+=_Err(g_sErrorText,"i0518",false,true,2);s+="";}s+=WL_HIP("i2001",g_urlHIPImage,g_lHIPImageWidth,g_lHIPImageHeight,"Picture with characters","name=\"hipImage\"",g_urlHIPAudio,"Picture:","cssTextBoxTD","HIPChallenge","idHIPChallenge9","6 characters");s+="";s+=WL_ErrorPlaceholder("i0517",true);s+="";s+=_Tx(true,"cssTextBoxTD","i0124","HIPSolution","text","","20","style=\"text-transform:uppercase;\"","Characters:",false,true);s+="";s+=_Bt("i0000","Continue","submit"," Continue ",null,true);s+="";s+=FormEnd();GEId("rightTD").innerHTML=s;HIPInit("images/hip_audioRepl.gif?x=7.0.13330.0",GEId("i2001"),GEId("i0124"),GEId("idHIPChallenge9"));SetFocus(document.f1,"");}function dLockedOut_Mode_TooManyHIP(){var resetpwuser="";if(showUser!=null&&showUser!="")resetpwuser=k_sQSUsername+showUser;var s=_Err("Your account is temporarily unavailable","i0518");s+=_P(g_sTooManyHipErrorInfo1);s+="
";s+=_P("Click Cancel and sign in later, or reset your password now.");s+="
";s+=_P("Reset your password",false,0,null,true,null,"i1039",g_urlPasswordReset+resetpwuser);s+=_Bt("i0037","SignInAgain","button"," Cancel ","onclick=\"javascript:top.location.replace('"+g_urlReturn+"');\"",false,0,0,null,null,true,null,"style=\"padding-top:20px;\"");GEId("rightTD").innerHTML=s;}function dLockedOut_Mode_HIP(){var resetpwuser="";if(showUser!=null&&showUser!="")resetpwuser=k_sQSUsername+showUser;var s=_Err(g_fSecondHIP?"Type your password and the characters in the picture correctly.":"You\'ve tried to sign in too many times with an incorrect e-mail address or password.","i0518");s+=_P("Sign in using a different account",false,0,null,true,"style=\"padding-bottom:8px\"","i1051",g_urlSwitchUser,null,null,"onclick=\"javascript:SetWLLoginOption('"+k_sWLOpt_SkipUsername+"', '"+g_sPrefillMembername+"')\"");s+=_P("Reset your password",false,0,null,true,"style=\"padding-bottom:8px\"","i1039",g_urlPasswordReset+resetpwuser);s+=_P("To sign in again match the characters in the picture. Why?",false,0,null,false,null,null,null,null,"cssContainerTextBold","style=\"padding-bottom:8px\"");s+=FormStart();s+=_Hf("PwdPad","i0340");s+=_Hf("login","i0116",g_sPrefillMembername);s+="";s+=_Tx(true,"cssTextBoxTD",null,null,null,g_sPrefillMembername,null,null,"Windows Live ID:",true,true);s+="";s+=WL_ErrorPlaceholder("i0512",true);s+="";s+=_Tx(true,"cssTextBoxTD","i0118","passwd","password",null,"16",null,"Password:",false,true,"Forgot your password?",g_urlPasswordReset+resetpwuser,"i1011");s+="";s+=WL_HIP("i2001",g_urlHIPImage,g_lHIPImageWidth,g_lHIPImageHeight,"Picture with characters","name=\"hipImage\"",g_urlHIPAudio,"Picture:","cssTextBoxTD","HIPChallenge","idHIPChallenge9","6 characters");s+="";s+=WL_ErrorPlaceholder("i0517",true);s+="";s+=_Tx(true,"cssTextBoxTD","i0124","HIPSolution","text","","20","style=\"text-transform:uppercase;\"","Characters:",false,true);s+="";s+=_Bt("i0011","SI","submit"," Sign in ",null,true);s+="
";s+=FormEnd();GEId("rightTD").innerHTML=s;HIPInit("images/hip_audioRepl.gif?x=7.0.13330.0",GEId("i2001"),GEId("i0124"),GEId("idHIPChallenge9"));SetFocus(document.f1,"");}function WL_HIP(c,e,g,h,j,k,l,m,n,o,p,q){var s="";var t="";if(o!=null)s+=_Hf(o,p,"");s+=_Td(0,0,"cssLabel","style=\"vertical-align:top\"");s+="";s+="";s+=_Td(0,0,n,null);s+="";t="width=\""+g+"\" height=\""+h+"\"";if(o!=null)t+=" onload=\"javascript:GetEl('"+o+"').value=GetCookieData('HIPChallenge');\"";t+=" class=\"cssHIPImage\""+k;s+=_StImg(c,e,j,t,null,null,true,0,2,null,false,null);if(l){s+=_StImg("i1003","images/hip_speaker.gif?x=7.0.13330.0","Play audio and type the numbers you hear","width=\"22\" height=\"22\" style=\"border:0\"","javascript:GEId('iHIPHelp').style.display='none';HIPHelp('"+l+"');","i1605",true,0,0,"cssHIPButton",false,null);s+="";}s+=_StImg("idHIPNewLink9","images/hip_reload.gif?x=7.0.13330.0","Request a new picture","width=\"22\" height=\"22\" style=\"border:0\"","javascript:GEId('iHIPHelp').style.display='block';HIPNew();","i1606",true,0,0,"cssHIPButton",false,null);if(l==null){s+="";}s+="
";s+=" ";s+="
";s+="
";s+=q;s+="
";s+="";return s;}function BHOUpgrade(){var s="";if(g_fHasErrorCode||g_fOverTheShoulder)return s;if(g_fUpgradeBHO){s+=_Err("You must download a critical security update to continue using all Windows Live features.","i0608");s+="";s+=_Bt("idTODO9","TODO","button","Download Now","onclick=\"javascript:top.location.replace('"+g_urlBHOUpgrade+"');\"",true);s+=_Bt("i0003","Cancel","button"," Cancel ","onclick=\"javascript:DisableBHO();javascript:onLoad_Login();\"",true,0,0,null,"style=\"padding:0 10px 0 10px;\"",false,null,null,true);s+="";s+=_P("Why is this important?",true,2,null,false,null,"i1012","javascript:DoHelp('tsissaningis','','1033','DH_PP,1033','','700','&format=b1');",null,null,"onclick=\"g_bClickedHelp = 1;\"");s+="
";}else{if(g_fBHO&&!g_fUseBHO){s+=_Warning("Windows Live ID services are being upgraded. You can still sign in with your Windows Live ID, but some features may not be available until the upgrade is complete.","i0608",true);s+="";s+=_P("More information",true,0,null,false,null,"i1012","javascript:DoHelp('edargpudievil','','1033','DH_PP,1033','','700','&format=b1');",null,null,"onclick=\"g_bClickedHelp = 1;\"");s+="";}}return s;}function DisableBHO(){if(g_fBHO){try{IDBHOCtrl.Disable();}catch(e){}g_fUpgradeBHO=false;g_fUseBHO=false;}}