var dg_appendOnloadEvent__onloadEvents=[];function dg_appendOnloadEvent_appendOnloadEvent(functionName){if(!window.onload)window.onload=functionName;else{if(window.onload!=dg_appendOnloadEvent_bindOnloadEvents){dg_appendOnloadEvent__onloadEvents[dg_appendOnloadEvent__onloadEvents.length]=window.onload;window.onload=dg_appendOnloadEvent_bindOnloadEvents}dg_appendOnloadEvent__onloadEvents[dg_appendOnloadEvent__onloadEvents.length]=functionName}}function dg_appendOnloadEvent_bindOnloadEvents(){for(var i=0;i<dg_appendOnloadEvent__onloadEvents.length;i++)dg_appendOnloadEvent__onloadEvents[i]()}function getUrlParams(url){var queryString=url.split("?");if(queryString[1]!=null)return queryString[1].split("&")}function getUrlParam(url,paramName){var params=getUrlParams(url);if(params==null)return null;for(i=0;i<params.length;i++){var param=params[i];if(param.indexOf(paramName+"=")==0)return param.substr(paramName.length+1)}return null}function getBodyFromFunction(func){func=func.toString();func=func.substring(func.indexOf("{")+1,func.lastIndexOf("}"));return func}function appendPopupKeyToLink(link){var layoutTemplateID=getUrlParam(location.href,"LayoutTemplateID");if(layoutTemplateID!=null)if(link.href!=null&&link.href!=""){if(link.href.indexOf("?")==-1)delim="?";else delim="&";if(getUrlParam(link.href,"PersistLayoutTemplate")==null){link.href+=delim+"PersistLayoutTemplate=1";delim="&"}if(getUrlParam(link.href,"LayoutTemplateID")==null)link.href+=delim+"LayoutTemplateID="+layoutTemplateID}}function delegateClickEvents(){if(getUrlParam(location.href,"PersistLayoutTemplate")!=null)for(var links=document.getElementsByTagName("a"),i=0;i<links.length;i++)if(links[i].href.indexOf("javascript")==-1)if(!links[i].onclick)links[i].onclick=new Function("appendPopupKeyToLink(this);");else{currentOnClick=links[i].onclick;if(typeof currentOnClick=="function")currentOnClick=getBodyFromFunction(currentOnClick);links[i].onclick=new Function("appendPopupKeyToLink(this); "+currentOnClick)}}function spark_getCookie(name){var start=document.cookie.indexOf(name+"="),len=start+name.length+1;if(!start&&name!=document.cookie.substring(0,name.length))return null;if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end))}function spark_setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+(expires?";expires="+expires.toGMTString():"")+(path?";path="+path:"")+(domain?";domain="+domain:"")+(secure?";secure":"")}function matchnetYNM4_checkWindowOpener(objectId){var lnkNoPhoto=document.getElementById(objectId);if(lnkNoPhoto!=null)if(window.top.opener!=null){window.top.opener.location.href=lnkNoPhoto.href;lnkNoPhoto.onclick=matchnetYNM4_returnFalse;return false}else window.location.href=lnkNoPhoto.href}function matchnetYNM4_returnFalse(){return false}function RemoveFrames(){if(self.location!=top.location)top.location=self.location}function launchWindow(strURL,strName,intWidth,intHeight,strProperties){var w=createWindow(strURL,strName,intWidth,intHeight,strProperties);w.focus()}function createWindow(strURL,strName,intWidth,intHeight,strProperties){var mywin,intVersion,dummyDate=new Date,strPoundURL,intPoundPos;intVersion=navigator.appVersion.substring(0,1);if(strURL!=""){intPoundPos=strURL.indexOf("#");if(intPoundPos!=-1){strPoundURL=strURL.substring(intPoundPos);strURL=strURL.substring(0,intPoundPos)}if(strURL.indexOf("?")!=-1)strURL=strURL+"&rnd=";else strURL=strURL+"?rnd=";strURL=strURL+dummyDate.getTime();if(strPoundURL!=null)strURL=strURL+strPoundURL;strURL=Replace(strURL,"@","%40")}if(strProperties=="")strProperties="scrollbars=yes,resizable=yes,menubar=no,location=no,directories=no,toolbar=no";strProperties="status=yes,height="+intHeight+",width="+intWidth+","+strProperties;if(strName.replace)strName=strName.replace(/\W/g,"X");strName=strName.toLowerCase();mywin=window.open(strURL,strName,strProperties);if(mywin==null){mywin=self;strURL=strURL.replace("LayoutTemplateID=2","LayoutTemplateID=1");strURL=strURL.replace("LayoutTemplateID=4","LayoutTemplateID=8");strURL=strURL.replace("LayoutTemplateID=11","LayoutTemplateID=1");if(window.location.href.indexOf("/upInstantCommunicator.aspx")==-1)window.document.location=strURL;else{var IsWindowOpenerClosed=false;try{var temp=window.opener.location.href}catch(e){IsWindowOpenerClosed=true}if(!IsWindowOpenerClosed){strURL=strURL.replace("PersistLayoutTemplate=1","");window.opener.location=strURL}}}return mywin}function AddFriendsToHotList(strBaseForm,lngAction,lngLayoutTemplateID){var mywin,i,lngCount,strFriendMemberIDs,lngCachedAction,strCachedTarget;strFriendMemberIDs="";lngCount=0;for(var i=0;i<document.forms[strBaseForm].FriendMemberID.length;i++)if(document.forms[strBaseForm].FriendMemberID[i].checked==true){if(lngCount==0)strFriendMemberIDs=strFriendMemberIDs+document.forms[strBaseForm].FriendMemberID[i].value;else strFriendMemberIDs=strFriendMemberIDs+","+document.forms[strBaseForm].FriendMemberID[i].value;lngCount++}if(lngCount==0){alert("Please choose at least one member");return}mywin=window.open("/blank.htm","friends","status=yes,height=525,width=750,scrollbars=yes,resizable=yes,menubar=no,location=no,directories=no,toolbar=no");if(mywin.opener==null)mywin.opener=self;mywin.focus();strCachedTarget=document.forms[strBaseForm].target;lngCachedAction=document.forms[strBaseForm].elements.a.value;strSavedAction=document.forms[strBaseForm].action;document.forms[strBaseForm].action="default.asp?LayoutTemplateID="+lngLayoutTemplateID;document.forms[strBaseForm].target=mywin.name;document.forms[strBaseForm].elements.a.value=lngAction;document.forms[strBaseForm].submit();document.forms[strBaseForm].target=strCachedTarget;document.forms[strBaseForm].elements.a.value=lngCachedAction;document.forms[strBaseForm].action=strSavedAction}function SelectMemberToEmailFromHotlist(strFormName,lngMaxRadioButtonIndex,strErrorMsg){var strOpenerFormName="frmComposeEmailFull",lngToMemberID,blnFound=false;if(lngMaxRadioButtonIndex==1){if(document.forms[strFormName].ToMemberID.checked){lngToMemberID=document.forms[strFormName].ToMemberID.value;blnFound=true}}else for(i=0;i<lngMaxRadioButtonIndex;i++)if(document.forms[strFormName].ToMemberID[i].checked){lngToMemberID=document.forms[strFormName].ToMemberID[i].value;blnFound=true}if(blnFound==false){alert(strErrorMsg);return}window.opener.document.forms[strOpenerFormName].ToMemberID.value=lngToMemberID;window.opener.document.forms[strOpenerFormName].submit();window.close()}function SelectMemberToEmail(lngToMemberID){var strOpenerFormName="frmComposeEmailFull";window.opener.document.forms[strOpenerFormName].ToMemberID.value=lngToMemberID;window.opener.document.forms[strOpenerFormName].submit();window.close()}function Split(str,strDelimiter){var ary=[],lngCurrentLoc,i=0,strValue,lngLength;lngCurrentLoc=str.indexOf(strDelimiter);while(lngCurrentLoc>=0){strValue=str.substring(0,lngCurrentLoc);if(strValue.length>0)ary[i++]=strValue;str=str.substring(lngCurrentLoc+1,str.length);lngCurrentLoc=str.indexOf(strDelimiter)}if(str.length>0)ary[i]=str;return ary}function Replace(str,substring,newstring){if(str.length<=0)return"";temp=""+str;while(temp.indexOf(substring)>-1){pos=temp.indexOf(substring);temp=""+(temp.substring(0,pos)+newstring+temp.substring(pos+substring.length,temp.length))}return temp}function ConfirmDelete(strMessage,strLocation){if(confirm(strMessage))document.location.href=strLocation}function CheckAll(frm){for(var i=0;i<frm.elements.length;i++){var e=frm.elements[i];if(e.name!="allbox")e.checked=frm.allbox.checked}}function UnCheckAllExceptOne(form_object,lngItem){if(lngItem==null)lngItem=0;if(form_object[lngItem].checked==true)for(var len=form_object.length,i=0;i<len;i++)if(i!=lngItem)form_object[i].checked=false}function UnCheckTop(form_object){form_object[0].checked=false}function IsEmpty(obj,obj_type){if(obj_type=="text"||obj_type=="password"||obj_type=="textarea"||obj_type=="file"){var objValue;objValue=obj.value.replace(/\s+$/,"");if(objValue.length==0){obj.focus();return true}else return false}else if(obj_type=="select"){for(i=0;i<obj.length;i++)if(obj.options[i].selected)if(obj.options[i].value==""){obj.focus();return true}else return false;return true}else if(obj_type=="radio"||obj_type=="checkbox")if(!obj[0]&&obj)if(obj.checked)return false;else{obj.focus();return true}else{for(i=0;i<obj.length;i++)if(obj[i].checked)return false;obj[0].focus();return true}else return false}function InLengthRange(object_value,min_value,max_value){if(object_value==null)return true;if(min_value==null)min_value=0;return max_value==null?object_value.length>=min_value?true:false:object_value.length>=min_value&&object_value.length<=max_value?true:false}function InValueRange(object_value,min_value,max_value){if(object_value==null)return true;else if(object_value=="")return true;if(min_value==null)min_value=0;return max_value==null?object_value>=min_value?true:false:object_value>=min_value&&object_value<=max_value?true:false}function TestNumberRange(object_value,min_value,max_value){if(min_value!=null)if(object_value<min_value)return false;if(max_value!=null)if(object_value>max_value)return false;return true}function IsValidDate(month,day,year){var blnRet;if(month==""||day==""||year=="")return true;day=parseInt(day);month=parseInt(month);year=parseInt(year);if(day>=1&&day<=31&&(month>=1&&month<=12)&&year>0){blnRet=true;switch(month){case 2:if(day>28)if(year%4==0&&year%100!=0||year%400==0){if(day>29)blnRet=false}else blnRet=false;break;case 4:case 6:case 9:case 11:if(day>30)blnRet=false}}else blnRet=false;return blnRet}function IsInteger(object_value){if(object_value.length==0)return true;var decimal_format=".",check_char;check_char=object_value.indexOf(decimal_format);return check_char<1?IsNumeric(object_value):false}function IsNumeric(object_value){if(object_value.length==0)return true;var start_format=" .+-0123456789",number_format=" .0123456789",check_char,decimal=false,trailing_blank=false,digits=false;check_char=start_format.indexOf(object_value.charAt(0));if(check_char==1)decimal=true;else if(check_char<1)return false;for(var i=1;i<object_value.length;i++){check_char=number_format.indexOf(object_value.charAt(i));if(check_char<0)return false;else if(check_char==1)if(decimal)return false;else decimal=true;else if(check_char==0){if(decimal||digits)trailing_blank=true}else if(trailing_blank)return false;else digits=true}return true}function IsNumberChar(ch){return ch>="0"&&ch<="9"}function IsAlphaChar(ch){return ch>="A"&&ch<="Z"||ch>="a"&&ch<="z"||ch.charCodeAt(0)>=1488&&ch.charCodeAt(0)<=1514}function IsAlphaNumeric(object_value){var i,intLength,ch;intLength=object_value.length;for(i=0;i<intLength;i++){ch=object_value.charAt(i);if(!(IsAlphaChar(ch)||IsNumberChar(ch)))return false}return true}function IsAlpha(object_value){var i,intLength,ch;intLength=object_value.length;for(i=0;i<intLength;i++){ch=object_value.charAt(i);if(!IsAlphaChar(ch))return false}return true}function IsEmail(object_value,min_value){var i,ch,intAtCount,intDotPos,intLastDotPos,strEmailChars="_-@.~!#$%&*+\"'",len=object_value.length;if(len==0)return true;if(len<min_value)return false;intAtCount=0;intDotPos=0;for(i=0;i<len;i++){ch=object_value.charAt(i);if(!(IsAlphaChar(ch)||IsNumberChar(ch)||strEmailChars.indexOf(ch)!=-1))return false;else if(ch=="@"){intAtCount++;if(intAtCount>1)return false}else if(ch=="."){if(i-1==intLastDotPos)return false;intDotPos=i;intLastDotPos=i}}return intDotPos>0&&intAtCount>0&&intDotPos<len-1}function IsURL(object_value){var i,ch,intDotCount,strURLChars="~!@#$%*_+-:/.?&=",len=object_value.length;if(object_value.length==0)return true;if(object_value.length<10)return false;if(object_value.indexOf("http://")==-1&&object_value.indexOf("https://")==-1&&object_value.indexOf("ftp://")==-1)return false;intDotCount=0;for(i=0;i<len;i++){ch=object_value.charAt(i);if(!(IsAlphaChar(ch)||IsNumberChar(ch)||strURLChars.indexOf(ch)!=-1))return false;else if(ch==".")intDotCount++}return intDotCount>0}function IsValidExtension(object_value,extensions){var i,ch,intDotCount,test_extension="",obj_extension="",len=object_value.length;if(object_value==""||extensions=="")return true;for(i=len;i>0;i--){ch=object_value.charAt(i);if(ch=="."){intDotCount=i;break}}for(i=intDotCount+1;i<len;i++)obj_extension=obj_extension+object_value.charAt(i);if(obj_extension.length==0)return false;extensions=extensions.toLowerCase();obj_extension=obj_extension.toLowerCase();len=extensions.length;test_extension="";for(i=0;i<=len;i++){ch=extensions.charAt(i);if(ch==","||ch==" "||i==len){if(test_extension.length==0)continue;if(test_extension==obj_extension)return true;test_extension=""}else test_extension=test_extension+ch}return false}function LimitInput(field,countfield,maxlimit){if(field.value.length>maxlimit)field.value=field.value.substring(0,maxlimit);else if(countfield!=null)countfield.value=maxlimit-field.value.length}function IsCreditCard(object_value){if(object_value.length>19)return false;var reg=/^3[4,7]\d{13}|3[0,6,8]\d{12}|((4\d{3})|(5[1-5]\d{2})|(6011)|(35\d{2}))\d{12}$/;if(reg.test(object_value)==false)return false;sum=0;mul=1;l=object_value.length;for(i=0;i<l;i++){digit=object_value.substring(l-i-1,l-i);tproduct=parseInt(digit,10)*mul;if(tproduct>=10)sum+=tproduct%10+1;else sum+=tproduct;if(mul==1)mul++;else mul--}return sum%10==0?true:false}function UnCheckAllExceptThis(form_object,lngItem){if(lngItem==null)lngItem=0;if(form_object[lngItem].checked==true)for(var len=form_object.length,i=0;i<len;i++)if(i!=lngItem)form_object[i].checked=false}function UnCheckThis(form_object,lngItem){form_object[lngItem].checked=false;for(var len=form_object.length,uncheckedAll=true,i=0;i<len;i++)if(form_object[i].checked==true)uncheckedAll=false;if(uncheckedAll==true)form_object[0].checked=true}function AddPageToFavorites(strTitle){if(document.all){if(strTitle.length==0)strTitle=document.title;window.external.AddFavorite(document.location.href,strTitle)}}function addBookmark(){if(window.sidebar)window.sidebar.addPanel(document.title,document.location.href,"");else if(document.all)window.external.AddFavorite(document.location.href,document.title);else if(window.opera&&window.print)return true}function SwitchImg(strSourceImgName,strNewImage){if(document.images[strSourceImgName])document.images[strSourceImgName].src=strNewImage}function UpdateText(strTagName,strText){if(document.all[strTagName])if(document.all[strTagName].innerHTML)document.all[strTagName].innerHTML=strText}function onUnload(){var i=window.screenTop;if(i>9e3)typeof popUnderLink!="undefined"&&window.open(popUnderLink,"popwin","height=580,width=730,location=0,menubar=0,resizable=1,status=0,titlebar=0")}function ResetOnUnloadEvent(){window.onunload=null}function PopupInit(){if(typeof popupInitValues!="undefined")popupInitValues.length==5&&launchWindow(popupInitValues[0],popupInitValues[1],popupInitValues[2],popupInitValues[3],popupInitValues[4])}function PopInInit(){if(typeof popInInitValues!="undefined"&&popInInitValues.length==1)window.location=popInInitValues[0]}function ExitPopupInit(){var i=window.screenTop;i>9e3&&PopupInit()}function detectPlugin(strName){var agt=navigator.userAgent.toLowerCase(),ie=agt.indexOf("msie")!=-1,ns=navigator.appName.indexOf("Netscape")!=-1,win=agt.indexOf("win")!=-1||agt.indexOf("32bit")!=-1,mac=agt.indexOf("mac")!=-1,pluginlist="";if(ie&&win)pluginlist=detectIE("Adobe.SVGCtl","SVG Viewer")+detectIE("SWCtl.SWCtl.1","Shockwave Director")+detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash")+detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer")+detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime")+detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player")+detectIE("PDF.PdfCtrl.5","Acrobat Reader");if(ns||!win){nse="";for(var i=0;i<navigator.mimeTypes.length;i++)nse+=navigator.mimeTypes[i].type.toLowerCase();pluginlist=detectNS("image/svg-xml","SVG Viewer")+detectNS("application/x-director","Shockwave Director")+detectNS("application/x-shockwave-flash","Shockwave Flash")+detectNS("audio/x-pn-realaudio-plugin","RealPlayer")+detectNS("video/quicktime","QuickTime")+detectNS("application/x-mplayer2","Windows Media Player")+detectNS("application/pdf","Acrobat Reader")}pluginlist+=navigator.javaEnabled()?"Java,":"";if(pluginlist.length>0)pluginlist=pluginlist.substring(0,pluginlist.length-1);return pluginlist.indexOf(strName)!=-1}function detectNS(ClassID,name){n="";if(nse.indexOf(ClassID)!=-1)if(navigator.mimeTypes[ClassID].enabledPlugin!=null)n=name+",";return n}function detectIE(ClassID,name){result=false;document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("'+ClassID+'"))</SCRIPT>\n');return result?name+",":""}function stripWhiteSpace(txtField){if(txtField.value)if(txtField.value.length>0)txtField.value=Replace(txtField.value," ","")}function OpenLinkInParentWindow(href,width,height){var Parent=window.opener,blnParentExists=false,sType=typeof Parent;if(sType.toLowerCase()!="undefined")blnParentExists=true;if(blnParentExists){Parent.location=href;window.close()}else{window.resizeTo(width,height);window.location=href}}function init(){initOnlineChecker(false)}function showHideDiv(sDivId,hDivId,elementType){if(elementType="span"){var sDiv=document.getElementById(sDivId),hDiv=document.getElementById(hDivId);sDiv.className="showSpan";hDiv.className="hideSpan"}else{var sDiv=document.getElementById(sDivId),hDiv=document.getElementById(hDivId);sDiv.className="show";hDiv.className="hide"}}function changeClassStyle(changeThisDivId,changeToThisClass){document.getElementById(changeThisDivId).className=changeToThisClass}function changeDivBgImage(changeThisDivBgImage,changeThisDivBgImagePath){bgImagePath="url("+changeThisDivBgImagePath+")";document.getElementById(changeThisDivBgImage).style.backgroundImage=bgImagePath}function swapState(object,strDiv,strSelect,strDeselect,strHideDiv,strShowDiv,strHide,strShow){var hotlist=document.getElementById(strDiv),hotlistSelectText=document.getElementById(strSelect),hotlistDeselectText=document.getElementById(strDeselect);if(object.checked){hotlist.className=strHideDiv;hotlistSelectText.className=strHide;hotlistDeselectText.className=strShow}else{hotlist.className=strShowDiv;hotlistSelectText.className=strShow;hotlistDeselectText.className=strHide}}function YNMMouseOver(sender,parentClientID,type){(document.forms[window.document.forms[0].name].elements[parentClientID+"_YNMVoteStatus"].value&type)!=type&&YNMSwap(sender)}function YNMMouseOut(sender,parentClientID,type){(document.forms[window.document.forms[0].name].elements[parentClientID+"_YNMVoteStatus"].value&type)!=type&&YNMSwap(sender)}function YNMMouseOverWithSenderID(senderID,parentClientID,type){var sender=document.getElementById(senderID);sender!=null&&YNMMouseOver(sender,parentClientID,type)}function YNMMouseOutWithSenderID(senderID,parentClientID,type){var sender=document.getElementById(senderID);sender!=null&&YNMMouseOut(sender,parentClientID,type)}function YNMSwap(img){var imageOffIndex=img.src.indexOf("off.gif"),imageOnIndex=img.src.indexOf("on.gif");img.src=imageOffIndex==-1?img.src.substr(0,imageOnIndex)+"off.gif":img.src.substr(0,imageOffIndex)+"on.gif"}function SetYNMImage(img,highlight,type,parentClientID){if(img!=null){var imageOffIndex=img.src.indexOf("off.gif"),imageOnIndex=img.src.indexOf("on.gif");if(highlight)if((document.forms[window.document.forms[0].name].elements[parentClientID+"_YNMVoteStatus"].value&type)==type)return;else if(imageOnIndex!=-1)img.src=img.src.substr(0,imageOnIndex)+"on.gif";else img.src=img.src.substr(0,imageOffIndex)+"on.gif";else if(imageOffIndex!=-1)img.src=img.src.substr(0,imageOffIndex)+"off.gif";else img.src=img.src.substr(0,imageOnIndex)+"off.gif"}}function SetBothSaidYes(parentClientID,visibility){var divBothSaidYes=document.getElementById(parentClientID+"_divBothSaidYes"),imgBothSaidYes=document.getElementById(parentClientID+"_imgBothSaidYes"),imgBothSaidYesTabProfile=document.getElementById(tabProfileObject.YYImageID);if(divBothSaidYes!=null)divBothSaidYes.style.visibility=visibility;if(imgBothSaidYes!=null)imgBothSaidYes.style.visibility=visibility;if(imgBothSaidYesTabProfile!=null)imgBothSaidYesTabProfile.style.display=visibility=="hidden"?"none":"inline"}function ShowMutualYes(divMutualYesID,divVoteButtonsID){var divMutualYes=document.getElementById(divMutualYesID),divVoteButtons=document.getElementById(divVoteButtonsID);if(divMutualYes!=null)divMutualYes.style.display="block";if(divVoteButtons!=null)divVoteButtons.style.display="none"}function HideMutualYes(divMutualYesID,divVoteButtonsID){var divMutualYes=document.getElementById(divMutualYesID),divVoteButtons=document.getElementById(divVoteButtonsID);if(divMutualYes!=null)divMutualYes.style.display="none";if(divVoteButtons!=null)divVoteButtons.style.display="block"}function ProfileYNMVote(type,encryptedParams){if(ConfirmYNMVote(HeaderYNMVoteBarID,type)){SaveYNMVote(type,encryptedParams);ProcessYNMVote(HeaderYNMVoteBarID,type,encryptedParams);ProcessYNMVote(FooterYNMVoteBarID,type,encryptedParams)}}function YNMVote(parentClientID,type,encryptedParams,source){if(ConfirmYNMVote(parentClientID,type)){SaveYNMVote(type,encryptedParams,source);ProcessYNMVote(parentClientID,type,encryptedParams)}}function ConfirmYNMVote(parentClientID,type){var currentStatus=document.forms[window.document.forms[0].name].elements[parentClientID+"_YNMVoteStatus"],process=true;currentVote=currentStatus.value&7;var typeStatusMask=type;if(type=="3")typeStatusMask=4;var hasVote=currentVote>0;if(hasVote&&currentVote!=typeStatusMask)process=confirm(document.forms[0].elements.js_ynmConfirmText.value);return process}function ProcessYNMVote(parentClientID,type){var currentStatus=document.forms[window.document.forms[0].name].elements[parentClientID+"_YNMVoteStatus"];switch(type){case"1":SetYNMImage(document.getElementById(parentClientID+"_ImageYes"),true,type,parentClientID);SetYNMImage(document.getElementById(parentClientID+"_ImageMaybe"),false,type,parentClientID);SetYNMImage(document.getElementById(parentClientID+"_ImageNo"),false,type,parentClientID);if((currentStatus.value&2)==2)currentStatus.value=currentStatus.value^2;if((currentStatus.value&4)==4)currentStatus.value=currentStatus.value^4;currentStatus.value=currentStatus.value|1;(currentStatus.value&8)==8&&SetBothSaidYes(parentClientID,"visible");break;case"2":SetYNMImage(document.getElementById(parentClientID+"_ImageYes"),false,type,parentClientID);SetYNMImage(document.getElementById(parentClientID+"_ImageMaybe"),false,type,parentClientID);SetYNMImage(document.getElementById(parentClientID+"_ImageNo"),true,type,parentClientID);if((currentStatus.value&1)==1)currentStatus.value=currentStatus.value^1;if((currentStatus.value&4)==4)currentStatus.value=currentStatus.value^4;currentStatus.value=currentStatus.value|2;SetBothSaidYes(parentClientID,"hidden");break;case"3":SetYNMImage(document.getElementById(parentClientID+"_ImageYes"),false,type,parentClientID);SetYNMImage(document.getElementById(parentClientID+"_ImageMaybe"),true,type,parentClientID);SetYNMImage(document.getElementById(parentClientID+"_ImageNo"),false,type,parentClientID);if((currentStatus.value&1)==1)currentStatus.value=currentStatus.value^1;if((currentStatus.value&2)==2)currentStatus.value=currentStatus.value^2;currentStatus.value=currentStatus.value|4;SetBothSaidYes(parentClientID,"hidden")}}function SaveYNMVote(type,encryptedParams,source){if(window.frames.FrameYNMVote!=null)window.frames.FrameYNMVote.location.href="/Applications/MemberProfile/AttractionBarSave.aspx?YNMLT="+type+"&ynmp="+encryptedParams+"&source="+source}function GoToNextIfHaveVoted(destinationUrl,message){for(var str,index,currentName,currentValue,i=0;i<document.forms[window.document.forms[0].name].elements.length;i++){currentName=document.forms[window.document.forms[0].name].elements[i].name;index=currentName.indexOf("YNMVoteStatus");if(index!=-1){currentValue=document.forms[window.document.forms[0].name].elements[i].value;break}}if(index!=-1)if(currentValue>0&&currentValue!=8&&currentValue!=16&&currentValue!=32){window.location=destinationUrl;return}alert(message);return}function UnListHotList(byMember,toMember,strMsg,strConfirmation){if(confirm(strMsg))window.location="/Applications/HotList/View.aspx?a=delete&MemberID="+byMember+"&ToMemberID="+toMember+"&FromMemberID="+byMember+"&rc="+strConfirmation}function launchConnectIMWindow(strURL,strWindowname){var intWidth=430,intHeight=485,strProperties="height="+intHeight+",width="+intWidth+",status=yes, Resizable=no,scrollbars=no,status=no";checkForOpenIMWindowThenLaunch(strURL,strWindowname,strProperties)}function launchImWindow(strURL,strDestinationMemberId){var intWidth=360,intHeight=470,uniquewindowname="IM"+strDestinationMemberId,strProperties="height="+intHeight+",width="+intWidth+",status=yes, Resizable=no,scrollbars=no,status=no";checkForOpenIMWindowThenLaunch(strURL,uniquewindowname,strProperties)}function checkForOpenIMWindowThenLaunch(strURL,strUniqueWindowName,strProperties){var imWindowHandle=window.open("",strUniqueWindowName,strProperties),imWindowLocationIsDeniedBecauseOutsideDomain=false;try{if(imWindowHandle)var imWindowLocationTemp=imWindowHandle.location.href}catch(e){imWindowLocationIsDeniedBecauseOutsideDomain=true;imWindowHandle.close();imWindowHandle=window.open(strURL,strUniqueWindowName,strProperties)}if(!imWindowLocationIsDeniedBecauseOutsideDomain&&imWindowHandle&&imWindowHandle.location.href.indexOf(strURL)>=0&&!imWindowHandle.closed)imWindowHandle.focus();else if(imWindowHandle){imWindowHandle.location.href=strURL;imWindowHandle.focus()}}function LaunchNewIMConversation(strDestinationMemberId){var url=GetInstantMessengerPath()+"?DestinationMemberID="+strDestinationMemberId+"&action=19400";launchImWindow(url,strDestinationMemberId)}function JoinIMConversation(strDestinationMemberId,strConversationKey){var url=GetInstantMessengerPath()+"?DestinationMemberID="+strDestinationMemberId+"&ConversationKey="+strConversationKey;launchImWindow(url,strDestinationMemberId)}function LaunchNewConnectIMConversation(strUsername,strDestinationMemberId,strSpwscypher){var url=GetConnectInstantMessengerPath()+"chat.html?mid="+strDestinationMemberId+"&SPWSCYPHER="+encodeURIComponent(strSpwscypher);launchConnectIMWindow(url,"ftchat_im_"+strUsername)}function JoinConnectIMConversation(strIMID,strOtherUsername,strSpwscypher){var url=GetConnectInstantMessengerPath()+"chat.html?imid="+strIMID+"&u="+strOtherUsername+"&SPWSCYPHER="+encodeURIComponent(strSpwscypher);launchConnectIMWindow(url,"im"+strIMID)}function GetConnectInstantMessengerPath(){var hostname="";if(location.hostname.toLowerCase().indexOf("www.")>-1)hostname=location.hostname.toLowerCase().replace("www.","connect.");else if(location.hostname.toLowerCase().indexOf("admin.")>-1)hostname=location.hostname.toLowerCase().replace("admin.","connect.");else hostname="connect."+location.hostname;return"http://"+hostname+"/imclient/"}function GetInstantMessengerPath(){var urlPrefix="";if("cupid.co.il"==location.hostname.toLowerCase())urlPrefix="http://www.cupid.co.il";if("jdate.co.il"==location.hostname.toLowerCase())urlPrefix="http://www.jdate.co.il";if(location.href.indexOf("https")>-1)urlPrefix="http://"+location.hostname;return urlPrefix+"/Applications/InstantMessenger/upInstantCommunicator.aspx"}function ClientValidateAndFocus(){var x;Page_ClientValidate();for(x in Page_Validators)if(!Page_Validators[x].isvalid){badControl=document.getElementById(Page_Validators[x].controltovalidate);badControl!=null&&badControl.focus();break}}function CaseInsensitiveCompareValidatorEvaluateIsValid(val){var valueToValidate=ValidatorTrim(ValidatorGetValue(val.controltovalidate)),valueToCompare=ValidatorTrim(ValidatorGetValue(val.controltocompare));if(valueToValidate!=null&&valueToCompare!=null)if(valueToValidate.toLowerCase()==valueToCompare.toLowerCase())return true;return false}function MultiValidatorEvaluateIsValid(val){try{var valueToValidate=ValidatorTrim(ValidatorGetValue(val.controltovalidate)),controlToValidate=document.forms[window.document.forms[0].name].elements[val.controltovalidate];if(val.isRequired=="False"&&valueToValidate.length==0)return true;if(val.isRequired=="True"){if(controlToValidate.type=="checkbox")if(!controlToValidate.checked){val.innerText="";val.innerHTML=val.requiredErrorMessage;MultiValitorSetControlFocus(val.controltovalidate);return false}else return true;if(valueToValidate.length==0){val.innerText=val.requiredErrorMessage;if(val.showPopup=="True")alert(val.innerText);else if(val.appendToErrorMessage.length!=0){val.innerText="";val.innerHTML=val.requiredErrorMessage;val.innerHTML+=val.appendToErrorMessage}MultiValitorSetControlFocus(val.controltovalidate);return false}}if(val.maxLength!="0")if(valueToValidate.length>parseInt(val.maxLength,10)){val.innerText=val.maximumLengthErrorMessage;if(val.showPopup=="True")alert(val.innerText);else if(val.appendToErrorMessage.length!=0){val.innerText="";val.innerHTML=val.maximumLengthErrorMessage;val.innerHTML+=val.appendToErrorMessage}MultiValitorSetControlFocus(val.controltovalidate);return false}if(val.minLength!="0")if(valueToValidate.length<parseInt(val.minLength,10)){val.innerText=val.minimumLengthErrorMessage;if(val.showPopup=="True")alert(val.innerText);else if(val.appendToErrorMessage.length!=0){val.innerText="";val.innerHTML=val.minimumLengthErrorMessage;val.innerHTML+=val.appendToErrorMessage}MultiValitorSetControlFocus(val.controltovalidate);return false}if(val.minVal!="0")if(valueToValidate<parseInt(val.minVal,10)){val.innerText=val.minValErrorMessage;if(val.showPopup=="True")alert(val.innerText);else if(val.appendToErrorMessage.length!=0){val.innerText="";val.innerHTML=val.minValErrorMessage;val.innerHTML+=val.appendToErrorMessage}MultiValitorSetControlFocus(val.controltovalidate);return false}if(val.maxVal!="0")if(valueToValidate>parseInt(val.maxVal,10)){val.innerText=val.maxValErrorMessage;if(val.showPopup=="True")alert(val.innerText);else if(val.appendToErrorMessage.length!=0){val.innerText="";val.innerHTML=val.maxValErrorMessage;val.innerHTML+=val.appendToErrorMessage}MultiValitorSetControlFocus(val.controltovalidate);return false}if(val.requiredTypeRegEx.length>0){if(valueToValidate=="")return true;var rx=new RegExp(val.requiredTypeRegEx),matches=rx.exec(valueToValidate);if(!(matches!=null&&valueToValidate==matches[0])){val.innerText=val.requiredTypeErrorMessage;if(val.showPopup=="True")alert(val.innerText);else if(val.appendToErrorMessage.length!=0){val.innerText="";val.innerHTML=val.requiredTypeErrorMessage;val.innerHTML+=val.appendToErrorMessage}MultiValitorSetControlFocus(val.controltovalidate);return false}}}catch(Ex){}return true}var isValidationFocusSet=false;function MultiValitorSetControlFocus(controlToValidate){if(!isValidationFocusSet){document.forms[window.document.forms[0].name].elements[controlToValidate].focus();isValidationFocusSet=true}}var onListMenu=false;function ToggleDisplay(element,Visible){var menu=document.getElementById("smenu"+element);if(Visible==false){if(onListMenu==false)menu.style.display="none"}else menu.style.display="block"}function setHighlight(Over){onListMenu=Over}function ChangeImage(ImageName,NewImage,Directory){if(document.images)if(String(Directory)!="undefined")document[ImageName].src=Directory+"/"+NewImage;else document[ImageName].src="images/"+NewImage}function setAutoSubmitButton(btn,event){if(document.all){if(event.keyCode==13){event.returnValue=false;event.cancel=true;btn.click()}}else if(window.sidebar){if(event.which==13){event.returnValue=false;event.cancel=true;btn.click()}}else if(document.getElementById(btn.id)){if(event.which==13){event.returnValue=false;event.cancel=true;btn.click()}}else if(document.layers)if(event.which==13){event.returnValue=false;event.cancel=true;btn.click()}}function readKey(){}function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x}function MM_showHideLayers(){for(var p,v,obj,args=MM_showHideLayers.arguments,i=0;i<args.length-2;i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=v=="show"?"visible":v=="hide"?"hidden":v}obj.visibility=v}}function QueryString(qs){if(qs.length>1)this.qs=qs.substring(1,qs.length);else this.qs=null;this.keyValuePairs=[];if(qs)for(var i=0;i<this.qs.split("&").length;i++)this.keyValuePairs[i]=this.qs.split("&")[i];this.getKeyValuePairs=function(){return this.keyValuePairs};this.getValue=function(keyvalue){for(var i=0;i<this.keyValuePairs.length;i++)if(this.keyValuePairs[i].split("=")[0]==keyvalue)return this.keyValuePairs[i].split("=")[1];return false};this.getLength=function(){return this.keyValuePairs.length};this.RemoveQueryKey=function(queryKey,location){for(var i=0;i<this.keyValuePairs.length;i++)if(this.keyValuePairs[i].split("=")[0]==queryKey){var retval;retval=location.toString().replace("&"+queryKey+"="+this.getValue(queryKey),"");retval=retval.toString().replace("?"+queryKey+"="+this.getValue(queryKey),"?");return retval}return false};this.ReplaceQueryKey=function(queryKey,replaceValue,location){for(var i=0;i<this.keyValuePairs.length;i++)if(this.keyValuePairs[i].split("=")[0]==queryKey){var retval;retval=location.toString().replace("&"+queryKey+"="+this.getValue(queryKey),"&"+queryKey+"="+replaceValue);retval=retval.toString().replace("?"+queryKey+"="+this.getValue(queryKey),"?"+queryKey+"="+replaceValue);return retval}return false}}var dg_dhtmlNotifier_CONST_ALERT_WIDTH=165,dg_dhtmlNotifier_CONST_DIRECTION_LEFT="left",dg_dhtmlNotifier_CONST_DIRECTION_RIGHT="right",dg_dhtmlNotifier_CONST_DIRECTION_UP="up",dg_dhtmlNotifier_CONST_ALERT_HEIGHT=97,dg_dhtmlNotifier_CONST_VISIBLE_LEFT=-10,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT=dg_dhtmlNotifier_CONST_VISIBLE_LEFT-dg_dhtmlNotifier_CONST_ALERT_WIDTH,dg_dhtmlNotifier_CONST_TOP_POSITION=-25,dg_dhtmlNotifier_CONST_MAJOR_STEP_PIXELS=6,dg_dhtmlNotifier_CONST_MINOR_STEP_PIXELS=1,dg_dhtmlNotifier_CONST_STEP_TIME=20,dg_dhtmlNotifier__transInEffect=false,dg_dhtmlNotifier_CONST_VISIBLE_LEFT_OVERRIDE=5,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE=dg_dhtmlNotifier_CONST_VISIBLE_LEFT_OVERRIDE+dg_dhtmlNotifier_CONST_ALERT_WIDTH*2,dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT,dg_IMAlerts=[];function dg_IMFromChild(fromChildList){if(document.body.dir=="rtl"){dg_dhtmlNotifier_CONST_ALERT_WIDTH=-165;dg_dhtmlNotifier_CONST_VISIBLE_LEFT_OVERRIDE=-250;dg_dhtmlNotifier_CONST_INVISIBLE_LEFT=dg_dhtmlNotifier_CONST_VISIBLE_LEFT-dg_dhtmlNotifier_CONST_ALERT_WIDTH;dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE=dg_dhtmlNotifier_CONST_VISIBLE_LEFT_OVERRIDE+dg_dhtmlNotifier_CONST_ALERT_WIDTH*2}dg_IMLoad(fromChildList);dg_dhtmlNotifier_setStartingPositions();dg_dhtmlNotifier_displayIMAlerts();dg_dhtmlNotifier_removeOldIMAlerts(fromChildList)}function dg_dhtmlNotifier_removeOldIMAlerts(newAlerts){if(typeof newAlerts=="undefined"||!newAlerts||!newAlerts.length)for(var i=0;i<dg_IMAlerts.length;i++)if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(dg_IMAlerts[i].alertId,0-dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"left");else dg_dhtmlNotifier_moveNode(dg_IMAlerts[i].alertId,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"right");else for(var i=0;i<dg_IMAlerts.length;i++)if(dg_IMIsOld(dg_IMAlerts[i].alertId,newAlerts))if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(dg_IMAlerts[i].alertId,0-dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"left");else dg_dhtmlNotifier_moveNode(dg_IMAlerts[i].alertId,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"right")}function dg_IMIsOld(alertId,newAlerts){for(var i=0;i<newAlerts.length;i++)if(newAlerts[i].alertId==alertId)return false;return true}function ConnectIMYes(strIMID,strSendingUsername,strDestinationMemberId,conversationInvitationKey,strSpwscypher){var alertId="alertId_"+strDestinationMemberId;if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(alertId,0-dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"left");else dg_dhtmlNotifier_moveNode(alertId,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"right");JoinConnectIMConversation(strIMID,strSendingUsername,strSpwscypher);removeInvitation(conversationInvitationKey,false)}function ConnectIMNo(strIMID,strDestinationMemberId,conversationInvitationKey,strSpwscypher){var alertId="alertId_"+strDestinationMemberId;if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(alertId,0-dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"left");else dg_dhtmlNotifier_moveNode(alertId,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"right");removeInvitation(conversationInvitationKey,true);var url=GetConnectInstantMessengerPath()+"im_request.html?imid="+strIMID+"&reject=1&SPWSCYPHER="+encodeURIComponent(strSpwscypher),r=null;r=window.frm_rejectim;r!=null&&r.location.replace(url)}function ConnectIMClose(strIMID,strDestinationMemberId,conversationInvitationKey,strSpwscypher){var alertId="alertId_"+strDestinationMemberId;if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(alertId,0-dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"left");else dg_dhtmlNotifier_moveNode(alertId,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"right");removeInvitation(conversationInvitationKey,true);var url=GetConnectInstantMessengerPath()+"im_request.html?imid="+strIMID+"&later=1&SPWSCYPHER="+encodeURIComponent(strSpwscypher),r=null;r=window.frm_rejectim;r!=null&&r.location.replace(url)}function IMYes(strDestinationMemberId,conversationInvitationKey){var alertId="alertId_"+strDestinationMemberId;if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(alertId,0-dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"left");else dg_dhtmlNotifier_moveNode(alertId,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"right");JoinIMConversation(strDestinationMemberId,conversationInvitationKey);removeInvitation(conversationInvitationKey,false)}function IMNo(strDestinationMemberId,conversationInvitationKey){var alertId="alertId_"+strDestinationMemberId;if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(alertId,0-dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"left");else dg_dhtmlNotifier_moveNode(alertId,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"right");removeInvitation(conversationInvitationKey,true);var url=GetInstantMessengerPath()+"?DestinationMemberID="+strDestinationMemberId+"&ConversationKey="+conversationInvitationKey+"&RejectIM=true",r=null;r=window.frm_rejectim;r!=null&&r.location.replace(url)}function IMClose(strDestinationMemberId,conversationInvitationKey){var alertId="alertId_"+strDestinationMemberId;if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(alertId,0-dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"left");else dg_dhtmlNotifier_moveNode(alertId,dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE,"right");removeInvitation(conversationInvitationKey,true);var url=GetInstantMessengerPath()+"?DestinationMemberID="+strDestinationMemberId+"&ConversationKey="+conversationInvitationKey+"&RejectIM=false",r=null;r=window.frm_rejectim;r!=null&&r.location.replace(url)}function dg_IMLoad(newAlerts){var domIMAlerts=document.getElementById("IMAlerts"),newHTML="";if(typeof newAlerts=="undefined"||!newAlerts||!newAlerts.length)return;for(var i=0;i<newAlerts.length;i++){var xna=newAlerts[i];if(dg_IMIsNew(xna.alertId)){dg_IMAlerts.push(xna);if(xna.html!=null)newHTML+=xna.html}}if(domIMAlerts!=null&&newHTML!=null)domIMAlerts.innerHTML+=newHTML}function dg_IMIsNew(alertId){if(alertId==null)return false;for(var i=0;i<dg_IMAlerts.length;i++)if(dg_IMAlerts[i].alertId==alertId)return false;return true}function dg_dhtmlNotifier_displayIMAlerts(){if(dg_IMAlerts==null||dg_dhtmlNotifier_CONST_VISIBLE_LEFT==null||dg_dhtmlNotifier_CONST_DIRECTION_RIGHT==null||dg_dhtmlNotifier__transInEffect==null)return;for(var i=0;i<dg_IMAlerts.length;i++){var xna=dg_IMAlerts[i],element=document.getElementById(xna.alertId);if(element!=null){var currentLeft=parseInt(element.style.left.replace(/px/,""),10);dg_dhtmlNotifier_CONST_VISIBLE_LEFT=dg_dhtmlNotifier_CONST_VISIBLE_LEFT_OVERRIDE;if(currentLeft!=dg_dhtmlNotifier_CONST_VISIBLE_LEFT)if(!dg_dhtmlNotifier__transInEffect)if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_moveNode(xna.alertId,dg_dhtmlNotifier_CONST_VISIBLE_LEFT,dg_dhtmlNotifier_CONST_DIRECTION_RIGHT);else dg_dhtmlNotifier_moveNode(xna.alertId,dg_dhtmlNotifier_CONST_VISIBLE_LEFT,dg_dhtmlNotifier_CONST_DIRECTION_LEFT);else{setTimeout("dg_dhtmlNotifier_displayIMAlerts()",1e3);break}}}}function dg_dhtmlNotifier_setStartingPositions(){if(dg_dhtmlNotifier_CONST_TOP_POSITION==null||dg_IMAlerts==null||dg_dhtmlNotifier_CONST_ALERT_WIDTH==null||dg_dhtmlNotifier_CONST_ALERT_HEIGHT==null)return;for(var startTop=dg_dhtmlNotifier_CONST_TOP_POSITION,i=0;i<dg_IMAlerts.length;i++){var xna=dg_IMAlerts[i],element=document.getElementById(xna.alertId);if(element!=null){if(!xna.visible){element.style.position="absolute";element.style.top=startTop+"px";if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)element.style.left="-"+dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE+"px";else element.style.left=dg_dhtmlNotifier_CONST_INVISIBLE_LEFT_OVERRIDE+"px"}startTop+=dg_dhtmlNotifier_CONST_ALERT_HEIGHT}}}function dg_dhtmlNotifier_setNodeVisibility(nodeId,visible){if(nodeId==null||visible==null||dg_IMAlerts==null)return;for(var i=0;i<dg_IMAlerts.length;i++){var xna=dg_IMAlerts[i];if(nodeId==xna.alertId){xna.visible=visible;break}}}function dg_dhtmlNotifier_moveNode(nodeId,to,direction){if(nodeId==null||to==null||direction==null||dg_dhtmlNotifier__transInEffect==null||dg_dhtmlNotifier_CONST_DIRECTION_RIGHT==null||dg_dhtmlNotifier_CONST_DIRECTION_LEFT==null||dg_dhtmlNotifier_CONST_DIRECTION_UP==null||dg_dhtmlNotifier_CONST_STEP_TIME==null)return;var element=document.getElementById(nodeId);if(element!=null){var currentLeft=null,currentTop=null,axis=null;try{to=parseInt(to,10)}catch(NumberFormatException){return}switch(direction){case dg_dhtmlNotifier_CONST_DIRECTION_RIGHT:case dg_dhtmlNotifier_CONST_DIRECTION_LEFT:axis=parseInt(element.style.left.replace(/px/,""),10);break;case dg_dhtmlNotifier_CONST_DIRECTION_UP:axis=parseInt(element.style.top.replace(/px/,""),10)}if(axis!=to){dg_dhtmlNotifier__transInEffect=true;switch(direction){case dg_dhtmlNotifier_CONST_DIRECTION_RIGHT:case dg_dhtmlNotifier_CONST_DIRECTION_LEFT:axis=dg_dhtmlNotifier_determineStepPixels(axis,to,direction)+"px";element.style.left=axis;break;case dg_dhtmlNotifier_CONST_DIRECTION_UP:axis=dg_dhtmlNotifier_determineStepPixels(axis,to,direction)+"px";element.style.top=axis}var call="dg_dhtmlNotifier_moveNode('"+nodeId+"', '"+to+"', '"+direction+"')";setTimeout(call,dg_dhtmlNotifier_CONST_STEP_TIME)}else{if(dg_dhtmlNotifier_CONST_ACTIVITY_CENTER_SIDE!=dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)if(direction==dg_dhtmlNotifier_CONST_DIRECTION_LEFT)dg_dhtmlNotifier_deleteIMAlert(nodeId);else direction==dg_dhtmlNotifier_CONST_DIRECTION_RIGHT&&dg_dhtmlNotifier_setNodeVisibility(nodeId,true);else if(direction==dg_dhtmlNotifier_CONST_DIRECTION_RIGHT)dg_dhtmlNotifier_deleteIMAlert(nodeId);else direction==dg_dhtmlNotifier_CONST_DIRECTION_LEFT&&dg_dhtmlNotifier_setNodeVisibility(nodeId,true);dg_dhtmlNotifier__transInEffect=false}}}function dg_dhtmlNotifier_determineStepPixels(currentPosition,to,direction){if(currentPosition==null||to==null||direction==null||dg_dhtmlNotifier_CONST_DIRECTION_RIGHT==null||dg_dhtmlNotifier_CONST_MAJOR_STEP_PIXELS==null||dg_dhtmlNotifier_CONST_MINOR_STEP_PIXELS==null||dg_dhtmlNotifier_CONST_DIRECTION_LEFT==null||dg_dhtmlNotifier_CONST_DIRECTION_UP==null)return;var absMinorStep=Math.abs(dg_dhtmlNotifier_CONST_MINOR_STEP_PIXELS),absMajorStep=Math.abs(dg_dhtmlNotifier_CONST_MAJOR_STEP_PIXELS),difference=-1;try{switch(direction){case dg_dhtmlNotifier_CONST_DIRECTION_RIGHT:currentPosition+=Math.abs(currentPosition-to)%absMajorStep!=0?dg_dhtmlNotifier_CONST_MINOR_STEP_PIXELS:dg_dhtmlNotifier_CONST_MAJOR_STEP_PIXELS;break;case dg_dhtmlNotifier_CONST_DIRECTION_LEFT:currentPosition-=(currentPosition+to)%dg_dhtmlNotifier_CONST_MAJOR_STEP_PIXELS==0?dg_dhtmlNotifier_CONST_MAJOR_STEP_PIXELS:dg_dhtmlNotifier_CONST_MINOR_STEP_PIXELS;break;case dg_dhtmlNotifier_CONST_DIRECTION_UP:currentPosition-=Math.abs(dg_dhtmlNotifier_CONST_MAJOR_STEP_PIXELS)%(currentPosition-to)==0?Math.abs(dg_dhtmlNotifier_CONST_MINOR_STEP_PIXELS):Math.abs(dg_dhtmlNotifier_CONST_MAJOR_STEP_PIXELS)}}catch(NumberFormatException){return}difference=Math.abs(currentPosition-to);if(difference<=5&&difference>=0)currentPosition=to;return currentPosition}function dg_dhtmlNotifier_deleteIMAlert(nodeId){if(nodeId==null||dg_IMAlerts==null)return;if(dg_dhtmlNotifier__transInEffect){var call="dg_dhtmlNotifier_deleteIMAlert('"+nodeId+"')";setTimeout(call,30);return}var alertsToMoveUp=[],IMAlerts=document.getElementById("IMAlerts");if(IMAlerts!=null){for(var nodeList=IMAlerts.getElementsByTagName("DIV"),i=0;i<dg_IMAlerts.length;i++){var xna=dg_IMAlerts[i];if(xna.alertId==nodeId){for(var j=0;j<nodeList.length;j++)if(nodeList[j].id==xna.alertId){for(var k=j+1;k<nodeList.length;k++)nodeList[k].id.indexOf("alertId")!=-1&&alertsToMoveUp.push(nodeList[k].id);break}dg_IMAlerts[i]=dg_IMAlerts[dg_IMAlerts.length-1];dg_IMAlerts.pop();var node=document.getElementById(nodeId);IMAlerts.removeChild(node);break}}dg_dhtmlNotifier_moveAlertsUp(alertsToMoveUp)}}function dg_dhtmlNotifier_moveAlertsUp(alertsToMoveUp){if(alertsToMoveUp==null||dg_dhtmlNotifier_CONST_ALERT_HEIGHT==null||dg_dhtmlNotifier_CONST_DIRECTION_UP==null)return;for(var i=0;i<alertsToMoveUp.length;i++){var element=document.getElementById(alertsToMoveUp[i]);if(element!=null){var currentTop=parseInt(element.style.top.replace(/px/,""),10),newTop=currentTop-dg_dhtmlNotifier_CONST_ALERT_HEIGHT;dg_dhtmlNotifier_moveNode(alertsToMoveUp[i],newTop,dg_dhtmlNotifier_CONST_DIRECTION_UP)}}}var isAjaxEnabled=true,isAjaxVerboseMode=false,isOnlineTimeLimitReached=false,req1=null,req2=null,req3=null,timerOnlineTimeout,interval1,interval2,interval3,countdownTimer1=null,IgnoreOnlineTimeLimit=false;function initOnlineChecker(ignoreOnlineTimeLimit){IgnoreOnlineTimeLimit=ignoreOnlineTimeLimit;if(pageIncludesIMNotifier()){clearTimeout(timerOnlineTimeout);clearInterval(interval1);clearInterval(interval2);clearInterval(interval3);isOnlineTimeLimitReached=false;if(!ignoreOnlineTimeLimit)timerOnlineTimeout=setTimeout(OnlineTimeLimitReached,3.6e6);setIMStatusOnline();checkForInvitations();updateMembersOnline();interval1=setInterval("if (!isOnlineTimeLimitReached) checkForInvitations();",15000);interval2=setInterval("if (!isOnlineTimeLimitReached) updateMembersOnline()",1e5)}var statusLoggedInElement=document.getElementById("statusLoggedIn");if(statusLoggedInElement!=null)if(statusLoggedInElement.style.display=="")interval3=setInterval("sessionKeepAlive()",3e5)}function checkForInvitations(){var url="/Applications/InstantMessenger/CheckIM.aspx?ajxmode=true&random="+randomNumber();if(isAjaxEnabled){show("lblCheckingInvitations");try{req1&&req1.readyState!=0&&req1.abort();req1=getXHR();if(req1){req1.open("GET",url,true);req1.onreadystatechange=function(){try{var done=4,ok=200;if(req1.readyState==done){if(req1.status==ok&&req1.responseText){var d=document.getElementById("divAj");if(d!=null){d.innerHTML=req1.responseText;var xIMAlerts=null,e=document.getElementById("divAjScript");if(e!=null)eval(e.innerHTML);if(xIMAlerts)for(var i=0;i<xIMAlerts.length;i++){var domNode=document.getElementById(xIMAlerts[i].alertId);if(domNode)xIMAlerts[i].html="<div class='IMAlert' id='"+xIMAlerts[i].alertId+"'>"+domNode.innerHTML+"</div>";else xIMAlerts[i].html="<div id='"+xIMAlerts[i].alertId+"'>Alert: "+xIMAlerts[i].alertId+"</div>"}d.innerHTML="";if(xIMAlerts)dg_IMFromChild(xIMAlerts);else dg_dhtmlNotifier_removeOldIMAlerts()}else isAjaxVerboseMode&&alert("Error: divAj used to support Ajax is not found")}else isAjaxVerboseMode&&alert("Error returned from server:"+req1.statusText);req1=null}}catch(e){isAjaxVerboseMode&&alert(e.description)}};req1.send(null)}}catch(e){}hide("lblCheckingInvitations")}else loadGetInvitations()}function updateMembersOnline(){var url="/Applications/API/UpdateMembersOnline.aspx?random="+randomNumber();if(isAjaxEnabled)executeFireAndForgetUrl(url+"&ajxmode=true",req2);else{var fmol=null;fmol=window.frm_updateMOL;fmol!=null&&fmol.location.replace(url)}}function sessionKeepAlive(){var url="/Applications/API/SessionKeepAlive.aspx?random="+randomNumber();if(isAjaxEnabled)executeRemoteJavascript(url+"&ajxmode=true",req3);else{var fmol=null;fmol=window.frm_sessionKeepAlive;fmol!=null&&fmol.location.replace(url)}}function removeInvitation(conversationKey,isRejection){var url="/Applications/API/RemoveInvitation.aspx?&ConversationInvitationKey="+conversationKey+"&IMReject="+isRejection+"&random="+randomNumber();if(isAjaxEnabled)executeFireAndForgetUrl(url+"&ajxmode=true",null);else{var r=null;r=window.frm_removeim;r!=null&&r.location.replace(url)}}function loadGetInvitations(){var cim=null;cim=window.frm_checkim;cim!=null&&cim.location.replace("/Applications/InstantMessenger/CheckIM.aspx?random="+randomNumber());hide("lblCheckingInvitations")}function noInvitationsFound(){hide("lblCheckingInvitations");dg_dhtmlNotifier_removeOldIMAlerts()}function notLoggedIn(){isOnlineTimeLimitReached=true;show("statusLoggedOut");hide("statusLoggedIn");clearInterval(interval3);hide("divIMOffline");hide("divIMOnline");show("divMembersOnline");IgnoreOnlineTimeLimit&&parent.location.reload(parent.location.href)}function OnlineTimeLimitReached(){isAjaxVerboseMode&&alert("online time limit reached");isOnlineTimeLimitReached=true;setIMStatusOffline()}function show(elementId){var elem=null;elem=document.getElementById(elementId);if(elem==null)return;elem.style.display=""}function hide(elementId){var elem=null;elem=document.getElementById(elementId);if(elem==null)return;elem.style.display="none"}function toggle(elementId){var elem=null;elem=document.getElementById(elementId);if(elem==null)return;elem.style.display=elem.style.display=="none"?"":"none"}function randomNumber(){return Math.floor(Math.random()*1e11)}function setIMStatusOnline(){show("divIMOnline");hide("divIMOffline");show("divMembersOnline")}function setIMStatusOffline(){show("divIMOffline");hide("divIMOnline");hide("divMembersOnline")}function pageIncludesIMNotifier(){cim=null;cim=window.frm_checkim;return cim!=null}function showCountDownToNextCheckForInvitations(i){i==15&&clearTimeout(countdownTimer1);if(i==0)return;var lblCheckingInvitationsCounter=null;lblCheckingInvitationsCounter=document.getElementById("lblCheckingInvitationsCounter");if(lblCheckingInvitationsCounter==null)return;lblCheckingInvitationsCounter.innerHTML=i;i=i-1;countdownTimer1=setTimeout("showCountDownToNextCheckForInvitations("+i+")",1e3)}function getXHR(){var client=null;if(window.XMLHttpRequest)client=new XMLHttpRequest;else if(window.ActiveXObject){var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("msie 5")==-1)client=new ActiveXObject("Msxml2.XMLHTTP");else client=new ActiveXObject("Microsoft.XMLHTTP")}return client}function executeRemoteJavascript(url,xhr){try{xhr&&xhr.readyState!=0&&xhr.abort();xhr=getXHR();if(xhr){xhr.open("GET",url,true);xhr.onreadystatechange=function(){try{var done=4,ok=200;if(xhr.readyState==done){if(xhr.status==ok&&xhr.responseText)if(xhr.responseText.charAt(0)=="<")isAjaxVerboseMode&&alert("Error returned from server:"+xhr.responseText);else eval(xhr.responseText);else isAjaxVerboseMode&&alert("Error returned from server:"+xhr.statusText);xhr=null}}catch(e){isAjaxVerboseMode&&alert(e.description)}};xhr.send(null)}}catch(e){}}function executeFireAndForgetUrl(url,xhr){try{if(isAjaxVerboseMode)executeRemoteJavascript(url,xhr);else{xhr&&xhr.readyState!=0&&xhr.abort();xhr=getXHR();if(xhr){xhr.open("GET",url,true);xhr.onreadystatechange=function(){var done=4;if(xhr.readyState==done)xhr=null};xhr.send(null)}}}catch(e){}}function activatePageObjects(){try{theObjects=document.getElementsByTagName("object");splashElement=document.getElementById("splashBottomContainer");if(splashElement==null)for(var i=0;i<theObjects.length;i++)if(theObjects[i].classid!="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000")theObjects[i].outerHTML=theObjects[i].outerHTML}catch(err){}}function validateSuspendReasons(divSuspendID,cblSuspendID,btnSuspendID,btnSuspendName){var suspensionReasonSelected=false,el=document.getElementById(divSuspendID);if(el.className=="suspendReasonsHide")el.className="suspendReasonsShow";else for(var group=document.getElementById(cblSuspendID),col=group.getElementsByTagName("INPUT"),i=0,i=0;i<col.length;i++)if(col.item(i).checked)suspensionReasonSelected=true;if(!suspensionReasonSelected)alert("Please select at least one suspension reason.");else{var btnSuspend=document.getElementById(sb);btnSuspend.value="Please wait...";btnSuspend.disabled=true;__doPostBack(btnSuspendName,"")}return suspensionReasonSelected}function textboxMultilineMaxNumber(txt,maxLen){try{if(txt.value.length>maxLen-1){alert("Maximum characters allowed is "+maxLen.toString());return false}}catch(e){}}function doKeypress(control){maxLength=control.attributes.maxLength.value;value=control.value;if(maxLength&&value.length>maxLength-1){alert("too long");event.returnValue=false;maxLength=parseInt(maxLength)}}function doBeforePaste(control){maxLength=control.attributes.maxLength.value;if(maxLength)event.returnValue=false}function doPaste(control){maxLength=control.attributes.maxLength.value;value=control.value;if(maxLength){event.returnValue=false;maxLength=parseInt(maxLength);var oTR=control.document.selection.createRange(),iInsertLength=maxLength-value.length+oTR.text.length,sData=window.clipboardData.getData("Text").substr(0,iInsertLength);oTR.text=sData}}function ShowPopupDiv(id){if(id!=null&&id!=""&&document.getElementById(id)!=null)document.getElementById(id).style.display="block"}function HidePopupDiv(id){if(id!=null&&id!=""&&document.getElementById(id)!=null)document.getElementById(id).style.display="none"}var ProfileTabEnum=new function(){this.Basic="Basic";this.Lifestyle="Lifestyle";this.Relationship="Relationship";this.Interests="Interests";this.Photos="Photo";this.ColorCode="ColorCode";this.Questions="Questions"},tabProfileObject=new function(){this.currentTab="";this.currentTabNumber=1;this.currentNavID="";this.basicNavID="";this.lifestyleNavID="";this.interestsNavID="";this.relationshipNavID="";this.photosNavID="";this.colorCodeNavID="";this.questionsNavID="";this.nextTabLinkID="";this.previousTabLinkID="";this.currentContentID="";this.basicContentID="";this.lifestyleContentID="";this.interestsContentID="";this.relationshipContentID="";this.photosContentID="";this.colorCodeContentID="";this.questionsContentID="";this.adunitIFrameID="";this.adunitPanelID="";this.isGAM=false;this.adunitSrcBasic="";this.adunitSrcLifestyle="";this.adunitSrcInterests="";this.adunitSrcRelationship="";this.adunitSrcPhotos="";this.adunitSrcColorCode="";this.adunitSrcQuestions="";this.adunitSrcBasicRight="";this.adunitSrcLifestyleRight="";this.adunitSrcInterestsRight="";this.adunitSrcRelationshipRight="";this.adunitSrcPhotosRight="";this.adunitSrcColorCodeRight="";this.adunitSrcQuestionsRight="";this.largePhotoID="";this.largeNoPhotoID="";this.basicPhotoUrl="";this.lifestylePhotoUrl="";this.interestsPhotoUrl="";this.relationshipPhotoUrl="";this.photosPhotoUrl="";this.colorCodePhotoUrl="";this.questionsPhotoUrl="";this.largeCaptionID="";this.basicPhotoCaption="";this.lifestylePhotoCaption="";this.interestsPhotoCaption="";this.relationshipPhotoCaption="";this.colorCodePhotoCaption="";this.questionsPhotoCaption="";this.currentThumbnailID="";this.basicThumbnailID="";this.lifestyleThumbnailID="";this.interestsThumbnailID="";this.relationshipThumbnailID="";this.photosThumbnailID="";this.colorCodeThumbnailID="";this.questionsThumbnailID="";this.YYImageID="";this.ViewingOwnProfile=false;this.OmnitureNavValue="";this.HotlistActionCallPageDetailID="";this.ProfileNavPageName="Profile";this.IsColorCodeEnabled=false;this.IsQuestionAnswerEnabled=false};function gotoNextTab(){gotoTab("next")}function gotoPreviousTab(){gotoTab("prev")}function gotoTab(nextPrev){if(nextPrev!=null)if(tabProfileObject.currentTab==ProfileTabEnum.Basic)if(nextPrev=="next")TabClick(ProfileTabEnum.Lifestyle,tabProfileObject.ProfileNavPageName+" - LifestyleBottomLink");else TabClick(ProfileTabEnum.Photos,tabProfileObject.ProfileNavPageName+" - PhotosBottomLink");else if(tabProfileObject.currentTab==ProfileTabEnum.Lifestyle)if(nextPrev=="next")TabClick(ProfileTabEnum.Interests,tabProfileObject.ProfileNavPageName+" - InterestsBottomLink");else TabClick(ProfileTabEnum.Basic,tabProfileObject.ProfileNavPageName+" - BasicBottomLink");else if(tabProfileObject.currentTab==ProfileTabEnum.Relationship)if(nextPrev=="next")if(tabProfileObject.IsColorCodeEnabled==true)TabClick(ProfileTabEnum.ColorCode,tabProfileObject.ProfileNavPageName+" - ColorCodeBottomLink");else TabClick(ProfileTabEnum.Photos,tabProfileObject.ProfileNavPageName+" - PhotosBottomLink");else TabClick(ProfileTabEnum.Interests,tabProfileObject.ProfileNavPageName+" - InterestsBottomLink");else if(tabProfileObject.currentTab==ProfileTabEnum.Interests)if(nextPrev=="next")TabClick(ProfileTabEnum.Relationship,tabProfileObject.ProfileNavPageName+" - RelationshipBottomLink");else TabClick(ProfileTabEnum.Lifestyle,tabProfileObject.ProfileNavPageName+" - LifestyleBottomLink");else if(tabProfileObject.currentTab==ProfileTabEnum.Photos)if(nextPrev=="next")TabClick(ProfileTabEnum.Basic,tabProfileObject.ProfileNavPageName+" - BasicBottomLink");else if(tabProfileObject.IsQuestionAnswerEnabled==true)TabClick(ProfileTabEnum.Questions,tabProfileObject.ProfileNavPageName+" - QuestionsBottomLink");else if(tabProfileObject.IsColorCodeEnabled==true)TabClick(ProfileTabEnum.ColorCode,tabProfileObject.ProfileNavPageName+" - ColorCodeBottomLink");else TabClick(ProfileTabEnum.Relationship,tabProfileObject.ProfileNavPageName+" - RelationshipBottomLink");else if(tabProfileObject.currentTab==ProfileTabEnum.ColorCode)if(nextPrev=="next"&&tabProfileObject.IsQuestionAnswerEnabled==true)TabClick(ProfileTabEnum.Questions,tabProfileObject.ProfileNavPageName+" - QuestionsBottomLink");else if(nextPrev=="next")TabClick(ProfileTabEnum.Photos,tabProfileObject.ProfileNavPageName+" - PhotosBottomLink");else TabClick(ProfileTabEnum.Relationship,tabProfileObject.ProfileNavPageName+" - RelationshipBottomLink");else if(tabProfileObject.currentTab==ProfileTabEnum.Questions)if(nextPrev=="next")TabClick(ProfileTabEnum.Photos,tabProfileObject.ProfileNavPageName+" - PhotosBottomLink");else if(tabProfileObject.IsColorCodeEnabled==true)TabClick(ProfileTabEnum.ColorCode,tabProfileObject.ProfileNavPageName+" - ColorCodeBottomLink");else TabClick(ProfileTabEnum.Relationship,tabProfileObject.ProfileNavPageName+" - RelationshipBottomLink")}function SwapTabImage(url){if(url!=""&&tabProfileObject.largePhotoID!=""){var imgObj=document.getElementById(tabProfileObject.largePhotoID),swapped=false;jQuery(imgObj).attr({src:url}).load(function(){profile_resizePhoto(imgObj);swapped=true});!swapped&&profile_resizePhoto(imgObj);HidePopupDiv(tabProfileObject.largeNoPhotoID);ShowPopupDiv(tabProfileObject.largePhotoID);jQuery("#memberPhotoLarge").show()}else{ShowPopupDiv(tabProfileObject.largeNoPhotoID);jQuery("#memberPhotoLarge").hide()}}function TabClick(newTab,omnitureNavValue){try{var txtLifestyle="Lifestyle",txtPhotos="Photos",txtInterests="Interests",txtBasics="Basics",txtColorCode="Color Code",txtRelationship="Relationship",txtQuestions="Questions";if(document.body.dir=="rtl"){txtLifestyle="\u05e1\u05d2\u05e0\u05d5\u05df \u05d7\u05d9\u05d9\u05dd";txtPhotos="\u05ea\u05de\u05d5\u05e0\u05d5\u05ea";txtInterests="\u05ea\u05d7\u05d5\u05de\u05d9 \u05e2\u05e0\u05d9\u05d9\u05df";txtBasics="\u05db\u05dc\u05dc\u05d9";txtRelationship="\u05d9\u05d7\u05e1\u05d9\u05dd \u05d5\u05d6\u05d5\u05d2\u05d9\u05d5\u05ea"}if(newTab!=null&&newTab!=tabProfileObject.currentTab){var newNavID="",newContentID="",newThumbnailID="",newAdUnitSrc="",newAdUnitSrcRight="",nextTabLink=document.getElementById(tabProfileObject.nextTabLinkID),prevTabLink=document.getElementById(tabProfileObject.previousTabLinkID),caption=document.getElementById(tabProfileObject.largeCaptionID),divProfileContent=document.getElementById("profile-content-div");divProfileContent.className="profile-content";if(newTab==ProfileTabEnum.Basic){newNavID=tabProfileObject.basicNavID;newContentID=tabProfileObject.basicContentID;newThumbnailID=tabProfileObject.basicThumbnailID;newAdUnitSrc=tabProfileObject.adunitSrcBasic;newAdUnitSrcRight=tabProfileObject.adunitSrcBasicRight;nextTabLink.innerHTML=txtLifestyle;prevTabLink.innerHTML=txtPhotos;caption.innerHTML=tabProfileObject.basicPhotoCaption;SwapTabImage(tabProfileObject.basicPhotoUrl)}else if(newTab==ProfileTabEnum.Lifestyle){newNavID=tabProfileObject.lifestyleNavID;newContentID=tabProfileObject.lifestyleContentID;newThumbnailID=tabProfileObject.lifestyleThumbnailID;newAdUnitSrc=tabProfileObject.adunitSrcLifestyle;newAdUnitSrcRight=tabProfileObject.adunitSrcLifestyleRight;nextTabLink.innerHTML=txtInterests;prevTabLink.innerHTML=txtBasics;caption.innerHTML=tabProfileObject.lifestylePhotoCaption;SwapTabImage(tabProfileObject.lifestylePhotoUrl)}else if(newTab==ProfileTabEnum.Relationship){newNavID=tabProfileObject.relationshipNavID;newContentID=tabProfileObject.relationshipContentID;newThumbnailID=tabProfileObject.relationshipThumbnailID;newAdUnitSrc=tabProfileObject.adunitSrcRelationship;newAdUnitSrcRight=tabProfileObject.adunitSrcRelationshipRight;if(tabProfileObject.IsColorCodeEnabled==true)nextTabLink.innerHTML=txtColorCode;else if(tabProfileObject.IsQuestionAnswerEnabled==true)nextTabLink.innerHTML=txtQuestions;else nextTabLink.innerHTML=txtPhotos;prevTabLink.innerHTML=txtInterests;caption.innerHTML=tabProfileObject.relationshipPhotoCaption;SwapTabImage(tabProfileObject.relationshipPhotoUrl)}else if(newTab==ProfileTabEnum.Interests){newNavID=tabProfileObject.interestsNavID;newContentID=tabProfileObject.interestsContentID;newThumbnailID=tabProfileObject.interestsThumbnailID;newAdUnitSrc=tabProfileObject.adunitSrcInterests;newAdUnitSrcRight=tabProfileObject.adunitSrcInterestsRight;nextTabLink.innerHTML=txtRelationship;prevTabLink.innerHTML=txtLifestyle;caption.innerHTML=tabProfileObject.interestsPhotoCaption;SwapTabImage(tabProfileObject.interestsPhotoUrl)}else if(newTab==ProfileTabEnum.Photos){newNavID=tabProfileObject.photosNavID;newContentID=tabProfileObject.photosContentID;newThumbnailID=tabProfileObject.photosThumbnailID;newAdUnitSrc=tabProfileObject.adunitSrcPhotos;newAdUnitSrcRight=tabProfileObject.adunitSrcPhotosRight;nextTabLink.innerHTML=txtBasics;if(tabProfileObject.IsQuestionAnswerEnabled==true)prevTabLink.innerHTML=txtQuestions;else if(tabProfileObject.IsColorCodeEnabled==true)prevTabLink.innerHTML=txtColorCode;else prevTabLink.innerHTML=txtRelationship;divProfileContent.className="profile-content photos";SwapTabImage(tabProfileObject.relationshipPhotoUrl)}else if(newTab==ProfileTabEnum.ColorCode){newNavID=tabProfileObject.colorCodeNavID;newContentID=tabProfileObject.colorCodeContentID;newThumbnailID=tabProfileObject.colorCodeThumbnailID;newAdUnitSrc=tabProfileObject.adunitSrcColorCode;newAdUnitSrcRight=tabProfileObject.adunitSrcColorCodeRight;if(tabProfileObject.IsQuestionAnswerEnabled==true)nextTabLink.innerHTML=txtQuestions;else nextTabLink.innerHTML=txtPhotos;prevTabLink.innerHTML=txtRelationship;caption.innerHTML=tabProfileObject.colorCodePhotoCaption;SwapTabImage(tabProfileObject.colorCodePhotoUrl)}else if(newTab==ProfileTabEnum.Questions){newNavID=tabProfileObject.questionsNavID;newContentID=tabProfileObject.questionsContentID;newThumbnailID=tabProfileObject.questionsThumbnailID;newAdUnitSrc=tabProfileObject.adunitSrcQuestions;newAdUnitSrcRight=tabProfileObject.adunitSrcQuestionsRight;nextTabLink.innerHTML=txtPhotos;if(tabProfileObject.IsColorCodeEnabled==true)prevTabLink.innerHTML=txtColorCode;else prevTabLink.innerHTML=txtRelationship;caption.innerHTML=tabProfileObject.questionsPhotoCaption;SwapTabImage(tabProfileObject.questionsPhotoUrl)}if(newNavID!=""&&newContentID!=""){tabProfileObject.currentTab=newTab;HidePopupDiv(tabProfileObject.currentContentID);changeClassStyle(tabProfileObject.currentNavID,"tab");changeClassStyle(tabProfileObject.currentThumbnailID,"profileThumb");ShowPopupDiv(newContentID);tabProfileObject.currentContentID=newContentID;changeClassStyle(newNavID,"tab selected");if(newThumbnailID!=null&&newThumbnailID!=""){tabProfileObject.currentThumbnailID=newThumbnailID;changeClassStyle(newThumbnailID,"profileThumb selected")}tabProfileObject.currentNavID=newNavID;if(newTab==ProfileTabEnum.Photos)jQuery(".thumbs-picture").hide();else jQuery(".thumbs-picture").show();if(s!=null){PopulateS(true);if(tabProfileObject.ViewingOwnProfile==false){s.events=newTab==ProfileTabEnum.Basic?"event12":"event4";s.eVar9=newTab;if(omnitureNavValue!=null&&omnitureNavValue!="")s.prop14=omnitureNavValue}s.pageName="View Profile - "+newTab+" Tab "+getTabNumber(newTab);s.t()}if(tabProfileObject.HotlistActionCallPageDetailID!=""){var hidCallActionPageDetail=document.getElementById(tabProfileObject.HotlistActionCallPageDetailID);if(hidCallActionPageDetail!=null)hidCallActionPageDetail.value=getTabSubPage(false)}if(newAdUnitSrc!=null&&newAdUnitSrc!="")try{updateTop728by90SR(topAd728x90IFrameID,newAdUnitSrc,tabProfileObject.isGAM)}catch(e){}if(newAdUnitSrcRight!=null&&newAdUnitSrcRight!="")try{updateRight300by250SR(rightAd300x250IFrameID,newAdUnitSrcRight,tabProfileObject.isGAM)}catch(e){}}}}catch(e){}return false}function getTabSubPage(requiresUrlEncode){var subpagename="";if(requiresUrlEncode)subpagename=tabProfileObject.currentTab+"+Tab+"+getTabNumber(tabProfileObject.currentTab);else subpagename=tabProfileObject.currentTab+" Tab "+getTabNumber(tabProfileObject.currentTab);return subpagename}function getTabNumber(tabName){var tabNumber;if(tabName.toString().toLowerCase()=="basic")tabNumber="1";else if(tabName.toString().toLowerCase()=="lifestyle")tabNumber="2";else if(tabName.toString().toLowerCase()=="interests")tabNumber="3";else if(tabName.toString().toLowerCase()=="relationship")tabNumber="4";else if(tabName.toString().toLowerCase()=="colorcode")tabNumber="5";else if(tabName.toString().toLowerCase()=="questions"&&tabProfileObject.IsColorCodeEnabled)tabNumber="6";else if(tabName.toString().toLowerCase()=="questions")tabNumber="5";else if(tabName.toString().toLowerCase()=="photo"&&tabProfileObject.IsQuestionAnswerEnabled&&tabProfileObject.IsColorCodeEnabled)tabNumber="7";else if(tabName.toString().toLowerCase()=="photo"&&tabProfileObject.IsQuestionAnswerEnabled&&!tabProfileObject.IsColorCodeEnabled)tabNumber="6";else if(tabName.toString().toLowerCase()=="photo"&&!tabProfileObject.IsQuestionAnswerEnabled&&tabProfileObject.IsColorCodeEnabled)tabNumber="6";else if(tabName.toString().toLowerCase()=="photo")tabNumber="5";return tabNumber}function profile_resizePhoto(image){var newImage=new Image;if(jQuery.ieDetection.browserTypeIEAll){newImage.src=image.src;profile_setPhotoSize(image,newImage)}else jQuery(newImage).attr({src:image.src}).load(function(){profile_setPhotoSize(image,newImage)})}function profile_setPhotoSize(pImage,pNewImage){if(pNewImage.width>246){pImage.height=pNewImage.height*246/pNewImage.width;pImage.width=246}else if(pNewImage.height>328){pImage.width=pNewImage.width*328/pNewImage.height;pImage.height=328}else{pImage.width=pNewImage.width;pImage.height=pNewImage.height}swapMemberPhoto()}function swapMemberPhoto(){jQuery("#memberPhotoSwap img").removeAttr("onload");var imageSwap=jQuery("#memberPhotoSwap").html();jQuery("#memberPhotoLarge").html(imageSwap)}function showLargePhoto(){}(function(){__createNamespace__=function(namespace){for(var components=namespace.split(/[^a-z0-9]+/ig),context=window,i=0,l=components.length;i<l;i+=1){var component=components[i];if(!context[component])context[component]={};context=context[component]}return context};__addToNamespace__=function(ns,o){var initFunc=null,myns=__createNamespace__(ns);for(var i in o)if(i+""=="__init__")initFunc=o[i];else myns[i]=o[i];initFunc&&initFunc();initFunc=null};__addToNamespace__("spark.util",{extend:function(ChildClass,ParentClass){function I(){}I.prototype=ParentClass.prototype;ChildClass.prototype=new I;ChildClass.prototype.constructor=ChildClass},addItem:function(arr,item){arr[arr.length]=item;return arr},deleteItem:function(arr,item){var tmpArr=[];for(var idx in arr){if(arr[idx]===item)continue;spark.util.addItem(tmpArr,arr[idx])}arr=null;return tmpArr},ellipsis:function(str,maxLength){if(str&&str.length>maxLength)str=str.substring(0,maxLength-3)+"...";return str},alphaNumericSort:function(a,b){var re=/(-?[0-9\.]+)/g,x=a.toString().toLowerCase()||"",y=b.toString().toLowerCase()||"",nC=String.fromCharCode(0),xN=x.replace(re,nC+"$1"+nC).split(nC),yN=y.replace(re,nC+"$1"+nC).split(nC),xD=(new Date(x)).getTime(),yD=xD?(new Date(y)).getTime():null;if(yD)if(xD<yD)return-1;else if(xD>yD)return 1;for(var cLoc=0,numS=Math.max(xN.length,yN.length);cLoc<numS;cLoc++){oFxNcL=parseFloat(xN[cLoc])||xN[cLoc];oFyNcL=parseFloat(yN[cLoc])||yN[cLoc];if(oFxNcL<oFyNcL)return-1;else if(oFxNcL>oFyNcL)return 1}return 0},mapSize:function(map){var i=0;for(var y in map)i++;return i},mapSort:function(map,sortField,reverse){if(spark.util.mapSize(map)<2)return map;var tmp=[];for(var key in map){var sortVal=sortField&&sortField.length>0?map[key][sortField]:map[key];tmp.push([sortVal,key])}tmp.sort(function(a,b){return spark.util.alphaNumericSort(a[0],b[0])});reverse&&tmp.reverse();for(var sortedMap={},len=tmp.length,i=0;i<len;i++){var a=tmp[i];sortedMap[a[1]]=map[a[1]]}tmp=null;return sortedMap},mapPrint:function(map,field){for(var key in map){var val=field?map[key][field]:map[key];print&&print(key+"->"+val)}},__init__:function(){}});__addToNamespace__("spark.log",{logError:function(e){window.console&&window.console.log&&console.log(e)}});__addToNamespace__("spark.observers",{Observer:function(){},Subject:function(){this.observers=[]},__init__:function(){spark.observers.Observer.prototype.Update=function(){};spark.observers.Subject.prototype.notify=function(context){for(var i=0;i<this.observers.length;i++)this.observers[i].Update(context)};spark.observers.Subject.prototype.addObserver=function(observer){observer instanceof spark.observers.Observer&&spark.util.addItem(this.observers,observer)};spark.observers.Subject.prototype.removeObserver=function(observer){observer instanceof spark.observers.Observer&&spark.util.deleteItem(this.observers,observer)}}});__addToNamespace__("spark.slideshows",{SlideShow:function(){this.arr=[];this.currentIndex=0},__init__:function(){spark.slideshows.SlideShow.prototype.addSlide=function(slide){spark.util.addItem(this.arr,slide)};spark.slideshows.SlideShow.prototype.getSlide=function(){return this.arr[this.currentIndex]};spark.slideshows.SlideShow.prototype.getSlideAt=function(idx){if(idx>=0||idx<this.arr.length)this.currentIndex=idx;return this.getSlide()};spark.slideshows.SlideShow.prototype.nextSlide=function(){this.increment();return this.getSlide()};spark.slideshows.SlideShow.prototype.previousSlide=function(){this.decrement();return this.getSlide()};spark.slideshows.SlideShow.prototype.increment=function(){this.currentIndex++;if(this.currentIndex>this.arr.length-1)this.currentIndex=0};spark.slideshows.SlideShow.prototype.decrement=function(){this.currentIndex--;if(this.currentIndex<0)this.currentIndex=this.arr.length-1};spark.slideshows.SlideShow.prototype.size=function(){return this.arr.length}}})})();function timedHideControls(){setTimeout("showMoreControls('secondaryControls','more_close','more_open');",700)}function showMoreControls(sDivId,sDivId2,hDivId){var sDiv=document.getElementById(sDivId),sDiv2=document.getElementById(sDivId2),hDiv=document.getElementById(hDivId);if(sDiv!=null)sDiv.style.display="block";if(sDiv2!=null)sDiv2.style.display="block";if(hDiv!=null)hDiv.style.display="none"}function showLessControls(sDivId,hDivId,hDivId2){var sDiv=document.getElementById(sDivId),hDiv=document.getElementById(hDivId),hDiv2=document.getElementById(hDivId2);if(sDiv!=null)sDiv.style.display="block";if(hDiv!=null)hDiv.style.display="none";if(hDiv2!=null)hDiv2.style.display="none"}function scrollingDetector(){try{var browser=navigator.appName,adHeight=0;if(tabProfileObject.adunitPanelID!=""&&document.getElementById(tabProfileObject.adunitPanelID)!=null)adHeight=document.getElementById(tabProfileObject.adunitPanelID).offsetHeight;var mastheadHeight=document.getElementById("profileMasthead").offsetHeight,photoBox=document.getElementById("profileControls");if(browser=="Microsoft Internet Explorer"){if(window.XMLHttpRequest)if(document.documentElement.scrollTop>=adHeight+mastheadHeight)photoBox.className="pinned";else photoBox.className=""}else if(window.pageYOffset>=adHeight+mastheadHeight)photoBox.className="pinned";else photoBox.className=""}catch(e){}}function fullWindowDiv(){var pageHeight=800,pageWidth=100;if(window.innerHeight&&window.scrollMaxY)pageHeight=window.innerHeight+window.scrollMaxY;else if(document.body.scrollHeight>document.body.offsetHeight)pageHeight=document.body.scrollHeight;else pageHeight=document.body.offsetHeight+document.body.offsetTop;var full_div=document.getElementById("blockUI");if(full_div!=null){full_div.style.height=pageHeight+"px";full_div.style.visibility="visible"}var content_div=document.getElementById("blockUI_adunit");if(content_div!=null)content_div.style.display="block"}function TogglePopupDiv(id){if(!document.getElementById(id))return;else{toggleId=document.getElementById(id);toggleId.style.visibility=toggleId.style.visibility=="visible"?"hidden":"visible"}}function TogglePopupDivDisplay(id){if(!document.getElementById(id))return;else{toggleId=document.getElementById(id);toggleId.style.display=toggleId.style.display==""?"none":""}}function setPromotionAction(action){var exListDiv=document.getElementById("exListDiv");if(action=="show")exListDiv.style.visibility="visible";else exListDiv.style.display="none"}function OpenPopupDivDisplay(id){if(!document.getElementById(id))return;else{toggleId=document.getElementById(id);if(toggleId.getAttribute("closed")!="true")toggleId.style.display=""}}function ClosePopupDivDisplay(id){if(!document.getElementById(id))return;else{toggleId=document.getElementById(id);toggleId.style.display="none";toggleId.setAttribute("closed","true")}}function ExitPopupDivDisplayArea(id){if(!document.getElementById(id))return;else{toggleId=document.getElementById(id);toggleId.setAttribute("closed","false")}}function containsDOM(container,containee){var isParent=false;do{if(isParent=container==containee)break;containee=containee.parentNode}while(containee!=null);return isParent}function checkMouseEnter(element,evt){return element.contains&&evt.fromElement?!element.contains(evt.fromElement):evt.relatedTarget?!containsDOM(element,evt.relatedTarget):void 0}function checkMouseLeave(element,evt){return element.contains&&evt.toElement?!element.contains(evt.toElement):evt.relatedTarget?!containsDOM(element,evt.relatedTarget):void 0}dg_appendOnloadEvent_appendOnloadEvent(fullWindowDiv);var AdminAdjustTabEnum=new function(){this.adjust="Adjust";this.buycredit="BuyCredit";this.buycheck="BuyCheck";this.renewal="Renewal";this.buyadminonlycredit="AdminOnlyCredit"},AdminAdjustObject=new function(){this.currentTab="";this.currentTabID="";this.currentTabContentID="";this.tabTrackerID="";this.adjustTabID="";this.buycreditTabID="";this.buycheckTabID="";this.renewalTabID="";this.buyadminonlycreditTabID="";this.adjustTabContentID="";this.buycreditTabContentID="";this.buycheckTabContentID="";this.renewalTabContentID="";this.buyadminonlycreditTabContentID=""};function AdminAdjustTabClick(newTab){try{var newContentID="",newTabID="";if(newTab==AdminAdjustTabEnum.adjust){newContentID=AdminAdjustObject.adjustTabContentID;newTabID=AdminAdjustObject.adjustTabID}else if(newTab==AdminAdjustTabEnum.buycheck){newContentID=AdminAdjustObject.buycheckTabContentID;newTabID=AdminAdjustObject.buycheckTabID}else if(newTab==AdminAdjustTabEnum.buycredit){newContentID=AdminAdjustObject.buycreditTabContentID;newTabID=AdminAdjustObject.buycreditTabID}else if(newTab==AdminAdjustTabEnum.renewal){newContentID=AdminAdjustObject.renewalTabContentID;newTabID=AdminAdjustObject.renewalTabID}else if(newTab==AdminAdjustTabEnum.buyadminonlycredit){newContentID=AdminAdjustObject.buyadminonlycreditTabContentID;newTabID=AdminAdjustObject.buyadminonlycreditTabID}if(newContentID!=""&&newTabID!=""){HidePopupDiv(AdminAdjustObject.currentTabContentID);changeClassStyle(AdminAdjustObject.currentTabID,"");ShowPopupDiv(newContentID);changeClassStyle(newTabID,"selected");AdminAdjustObject.currentTab=newTab;AdminAdjustObject.currentTabID=newTabID;AdminAdjustObject.currentTabContentID=newContentID;varTabTracker=document.getElementById(AdminAdjustObject.tabTrackerID);if(varTabTracker!=null)varTabTracker.value=newTab}}catch(e){}return false}function getElementsByClassName(clsName,htmltag){for(var arr=[],elems=document.getElementsByTagName(htmltag),cls,i=0;elem=elems[i];i++)if(elem.className==clsName)arr[arr.length]=elem;return arr}function updateTop728by90SR(topIframeID,newAdUnitSrc,isGAM){updateAdFrameSR(topIframeID,newAdUnitSrc,isGAM)}function updateRight300by250SR(rightIframeID,newAdUnitSrc,isGAM){updateAdFrameSR(rightIframeID,newAdUnitSrc,isGAM)}function updateAdFrameSR(IframeID,newAdUnitSrc,isGAM){try{var iframeObj=eval("window."+IframeID);if(iframeObj!=null)if(isGAM==false){var iframeRandom="&ptrdm="+Math.floor(Math.random()*1e3);iframeObj.location.replace(newAdUnitSrc+iframeRandom)}else if(newAdUnitSrc!=null&&newAdUnitSrc!="")iframeObj.location.replace("/framework/ui/advertising/gamiframe.aspx?GAMAdSlot="+newAdUnitSrc);else iframeObj.location.replace(iframeObj.location)}catch(e){}}function refreshTop728by90SR(){try{updateAdFrameSR(topAd728x90IFrameID,"",true)}catch(e){}}function refreshRight300by250SR(){try{updateAdFrameSR(rightAd300x250IFrameID,"",true)}catch(e){}}function CustomLinkTracking(control,action,pagename,subpagename){var linkName="";if(subpagename!=null&&subpagename!="")linkName=action+" ("+pagename+" - "+subpagename+")";else linkName=action+" ("+pagename+")"}var clientProfile;function GetProfile(params){try{clientProfile&&clientProfile.readyState!=0&&clientProfile.abort();clientProfile=getXHR();if(clientProfile){var url="/Applications/MemberProfile/ProfileTabs20/StandardTabGroupAPI.aspx?"+params;clientProfile.open("GET",url,true);clientProfile.onreadystatechange=function(){try{var done=4,ok=200;if(clientProfile.readyState==done)if(clientProfile.status==ok&&clientProfile.responseText)UpdateProfileContent();else{isAjaxVerboseModeMS&&alert("Error returned from server:"+clientProfile.statusText);clientProfile=null}}catch(e){isAjaxVerboseModeMS&&alert(e.description)}};clientProfile.send(null)}}catch(e){isAjaxVerboseModeMS&&alert(e.description)}}function UpdateProfileContent(){try{var d=document.getElementById("divProfileContent");if(d!=null)d.innerHTML=clientProfile.responseText;else isAjaxVerboseModeMS&&alert("Error: divProfileContent used to support Ajax is not found");clientProfile=null}catch(e){isAjaxVerboseModeMS&&alert(e.description)}}var clientMiniS,isAjaxVerboseModeMS=false;function GetMiniSearch(params,nav,isVis){try{if(isVis)window.document.location="/Default.aspx";else{ShowPopupDiv("divMiniSearchAjaxLoading");document.getElementById("photos-min").style.visibility="hidden";refreshTop728by90SR();refreshRight300by250SR();if(s!=null&&s!=undefined){originalPageName=s.pageName;PopulateS(true);s.events="event24";s.pageName=originalPageName;if(nav=="prev")s.prop14="Mini Search - Previous Button";else s.prop14="Mini Search - Next Button";s.t()}clientMiniS&&clientMiniS.readyState!=0&&clientMiniS.abort();clientMiniS=getXHR();if(clientMiniS){var url="/Applications/MemberProfile/MiniSearchAPI.aspx?ajxmode=true&random="+randomNumber()+"&"+params;clientMiniS.open("GET",url,true);clientMiniS.onreadystatechange=function(){try{var done=4,ok=200;if(clientMiniS.readyState==done)if(clientMiniS.status==ok&&clientMiniS.responseText)UpdateMiniSearchContent();else{isAjaxVerboseModeMS&&alert("Error returned from server:"+clientMiniS.statusText);HidePopupDiv("divMiniSearchAjaxLoading");document.getElementById("photos-min").style.visibility="visible";clientMiniS=null}}catch(e){isAjaxVerboseModeMS&&alert(e.description)}};clientMiniS.send(null)}}}catch(e){isAjaxVerboseModeMS&&alert(e.description)}}function UpdateMiniSearchContent(){try{var d=document.getElementById("divMiniSearch");if(d!=null)d.innerHTML=clientMiniS.responseText;else isAjaxVerboseModeMS&&alert("Error: divMiniSearch used to support Ajax is not found");clientMiniS=null}catch(e){isAjaxVerboseModeMS&&alert(e.description)}}function preloading(){var myImagesPreloader=[];for(x=0;x<preloading.arguments.length;x++){myImagesPreloader[x]=new Image;myImagesPreloader[x].src=preloading.arguments[x]}}var AccountHistoryTabEnum=new function(){this.allfinancialhistory="AllFinancialHistory";this.financialhistory="FinancialHistory";this.nonfinancialhistory="NonFinancialHistory"},AccountHistoryObject=new function(){this.currentTab="";this.currentTabID="";this.currentTabContentID="";this.tabTrackerID="";this.allFinancialHistoryTabID="";this.financialHistoryTabID="";this.nonFinancialHistoryTabID="";this.allFinancialHistoryTabContentID="";this.financialHistoryTabContentID="";this.nonFinancialHistoryTabContentID=""};function AccountHistoryTabClick(newTab){try{var newContentID="",newTabID="";if(newTab==AccountHistoryTabEnum.allfinancialhistory){newContentID=AccountHistoryObject.allFinancialHistoryTabContentID;newTabID=AccountHistoryObject.allFinancialHistoryTabID}else if(newTab==AccountHistoryTabEnum.financialhistory){newContentID=AccountHistoryObject.financialHistoryTabContentID;newTabID=AccountHistoryObject.financialHistoryTabID}else if(newTab==AccountHistoryTabEnum.nonfinancialhistory){newContentID=AccountHistoryObject.nonFinancialHistoryTabContentID;newTabID=AccountHistoryObject.nonFinancialHistoryTabID}if(newContentID!=""&&newTabID!=""){HidePopupDiv(AccountHistoryObject.currentTabContentID);changeClassStyle(AccountHistoryObject.currentTabID,"");ShowPopupDiv(newContentID);changeClassStyle(newTabID,"selected");AccountHistoryObject.currentTab=newTab;AccountHistoryObject.currentTabID=newTabID;AccountHistoryObject.currentTabContentID=newContentID;varTabTracker=document.getElementById(AccountHistoryObject.tabTrackerID);if(varTabTracker!=null)varTabTracker.value=newTab}}catch(e){}return false}__addToNamespace__("spark.favorites",{configs:[],getConfig:function(idKey,idValue){for(var config=null,idx=0;idx<spark.favorites.configs.length;idx++)if(spark.favorites.configs[idx][idKey]&&spark.favorites.configs[idx][idKey]==idValue)config=spark.favorites.configs[idx];return config},addConfig:function(config){null!=config&&spark.util.addItem(spark.favorites.configs,config);return spark.favorites.configs},onlineIndicatorIds:[],totalFavs:function(config){var count=spark.util.mapSize;return count(config.onlineFavs)+count(config.idleFavs)+count(config.offlineFavs)}});__addToNamespace__("spark.tracking",{addKeyAndValue:function(key,val,overwrite){if(s)if(s[key]&&s[key].toLowerCase()!="none"&&!overwrite){var str=s[key]+"";if(str.indexOf(val)==-1)s[key]+=","+val}else s[key]=val},addEvent:function(evt,overwrite){spark.tracking.addKeyAndValue("events",evt,overwrite)},addLinkTrackVar:function(ltv,overwrite){spark.tracking.addKeyAndValue("linkTrackVars",ltv,overwrite)},addLinkTrackEvent:function(lte,overwrite){spark.tracking.addKeyAndValue("linkTrackEvents",lte,overwrite)},addProp:function(num,val){spark.tracking.addKeyAndValue("prop"+num,val,true)},track:function(){s&&s.t()},trackLink:function(params){s&&s.tl(params.firstParam,"o",params.linkName)}})