
var friendPhoto=new Object();var memberPhoto=new Object();window.onload=function(){var c=document.getElementsByTagName("A");if(typeof c!="undefined"){for(var d=0;d<c.length;d++){var b=c[d];if(!b.className.contains("ctx")){b.onmousedown=function(){this.blur();this.hideFocus=true;this.style.outline="none"};b.onmouseout=b.onmouseup=function(){this.blur();this.hideFocus=false;if(!document.all){this.style.outline=null}}}}}};function launchMemberConnectOverlay(b,c,e,d){var a="/network/connect/"+b+"?";if(c){a+="successFunc="+c}if(e){if(!a.match(/\?$/)){a+="&"}a+="errorFunc="+e}overlay.load({name:"dialog",content:false,url:a,closeFunc:d,width:584,version:"v4"})}function makeCompatibleSelector(b){var a=parseFloat(jQuery.fn.jquery.substring(0,3));if(b.indexOf("@")>=0&&a>1.2){b=b.replace(/@/,"")}return b}function limitText(b,a){if(b.value.length>a){b.value=b.value.substring(0,a)}}function isNonDigit(a){return(/\D/).test(a)}function setCityPref(c,d){var b=document.location.hostname.match(/([^.]*.[^.]*)$/)[1];if(b.indexOf(".")<0){b=""}else{b="."+document.location.hostname.match(/([^.]*.[^.]*)$/)[1]}if(!d){d=36500}var a=new Date();a.setTime(a.getTime()+(d*24*60*60*1000));cookie="city_pref="+c+(b?"; domain="+b:"")+"; expires="+a.toGMTString()+"; path=/";document.cookie=cookie}function hideFirefoxScrollbars(c,b,a){if(navigator.platform.toLowerCase().indexOf("mac")>=0&&YAHOO.env.ua.gecko&&YAHOO.env.ua.gecko<=1.8){for(i=0;i<a.length;i++){el=a[i];if(c!=null){xScrollbarVisibility=(c)?"hidden":"auto";jQuery(el).css({"overflow-x":xScrollbarVisibility})}if(b!=null){yScrollbarVisibility=(b)?"hidden":"auto";jQuery(el).css({"overflow-y":yScrollbarVisibility})}}}}function hideDropdowns(c,a){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<7){if(a){var b=document.getElementsByTagName("select");for(i=0;i<b.length;i++){el=b[i];overlayDiv=document.getElementById("overlay-window");elParent=el.parentNode;while(elParent!=overlayDiv&&elParent.nodeName!="BODY"){prev=elParent;elParent=elParent.parentNode;if(elParent==null){elParent=prev;break}}if(elParent!=overlayDiv){el.style.visibility=(c)?"hidden":"visible"}}}else{var b=document.getElementsByTagName("select");for(i=0;i<b.length;i++){b[i].style.visibility=(c)?"hidden":"visible"}}}}function setMagazineMenuWidth(a){if(window.Core.Client.os=="Mac"){if(window.Core.Client.browser=="Firefox"&&window.Core.Client.version>2){padVal=20}else{padVal=14}switch(a){case"msg-few":padVal-=3;break;case"msg-tens":case"msg-hundreds":padVal-=2;break;case"msg-thousands":padVal-=1;break}magMenuItem=YAHOO.util.Dom.getElementsByClassName("nav-asw-magazine","li")[0];magMenuItem.style.paddingLeft=padVal+"px";magMenuItem.style.paddingRight=padVal+"px"}}function toggleOnlineIcon(b){var a=document.getElementById("online-icon-"+b);if($defined(a)){if(!a.style.left||!a.style.left.contains("em")){a.style.left="-999em"}else{a.style.left="2px"}}}function toggleOffscreen(a){if(jQuery(a).hasClass("offscreen")){jQuery(a).removeClass("offscreen")}else{jQuery(a).addClass("offscreen")}}function toggleContent(b,e,d,g){var c=($type(e)=="string"&&e.charAt(0)=="#")?jQuery(e)[0]:e;if(g!=null&&b=="replace"&&$type(g)!="array"){var a=($type(g)=="string"&&g.charAt(0)=="#")?jQuery(g)[0]:g}if(this!=null&&d!=null){var f=($type(d)=="string"&&d.charAt(0)=="#")?jQuery(d)[0]:d;jQuery(f).toggle();jQuery(this).toggle()}if(b=="replace"){if($type(g)=="array"){for(i=0;i<g.length;i++){a=jQuery(g[i])[0];if(jQuery(g[i]).css("display")=="block"){jQuery(a).toggle()}}}else{jQuery(a).toggle()}}jQuery(c).toggle()}function createScript(d,c){var a=document.getElementsByTagName("head").item(0);var b=document.createElement("script");b.setAttribute("language","javascript");b.setAttribute("type","text/javascript");if(c!=null){b.setAttribute("id",c)}b.setAttribute("src",d);a.appendChild(b)}function FLEACheck(a){if(!document.getElementById("flea-js")){createScript(static_server+"/javascript/flea/library.js","flea-js")}document.write('<div id="'+a+'"></div>')}function getNumericAttributeValue(type){var val=(jQuery(this).attr(type))?jQuery(this).attr(type):eval("this.offset"+type);if($type(val)=="string"){val=parseInt(val.replace(/['"]/gi,""))}return val}function getLineHeight(){var a=jQuery(this).css("line-height");if(a=="normal"){return getFontSize.call(this)+2}else{return getPixelValue(a)}}function getPaddingTop(){return getPixelValue(jQuery(this).css("padding-top"))}function getPaddingBottom(){return getPixelValue(jQuery(this).css("padding-bottom"))}function getPaddingLeft(){return getPixelValue(jQuery(this).css("padding-left"))}function getPaddingRight(){return getPixelValue(jQuery(this).css("padding-right"))}function getBorderTop(){return getPixelValue(jQuery(this).css("border-top-width"))}function getBorderBottom(){return getPixelValue(jQuery(this).css("border-bottom-width"))}function getBorderLeft(){return getPixelValue(jQuery(this).css("border-left-width"))}function getBorderRight(){return getPixelValue(jQuery(this).css("border-right-width"))}function getFontSize(){return getPixelValue(jQuery(this).css("font-size"))}function getHorizonatalBorder(){var b=getBorderLeft.call(this);var a=getBorderRight.call(this);return b+a}function getVerticalBorder(){var b=getBorderTop.call(this);var a=getBorderBottom.call(this);return b+a}function getHorizonatalPadding(){var b=getPaddingLeft.call(this);var a=getPaddingRight.call(this);return b+a}function getVerticalPadding(){var a=getPaddingTop.call(this);var b=getPaddingBottom.call(this);return a+b}function getTotalLineHeight(){var a=getLineHeight.call(this);var b=getVerticalPadding.call(this);return a+b}function getPixelValue(a){if(a.contains("px")){a=a.substr(0,a.length-2)}return parseInt(a)}function truncateList(b){if(YAHOO.env.ua.gecko){var a=truncateContainerHeight=paddingTop=null;jQuery(b).each(function(){try{truncateContainer=jQuery(this).find(".truncate-container")[0];containerWidth=truncateContainer.offsetWidth-getHorizonatalPadding.call(truncateContainer);truncateText=jQuery(truncateContainer).find(".truncate-text .overflow-text")[0];truncateTextWidth=truncateText.offsetWidth+getHorizonatalPadding.call(truncateText);if(truncateTextWidth>containerWidth){jQuery(truncateContainer).addClass("ellipsis");var c=YAHOO.util.Dom.getXY(truncateText)[1]-YAHOO.util.Dom.getXY(truncateContainer)[1];jQuery(truncateContainer).css({"background-position":"right "+(getFontSize.call(truncateText)+getPaddingTop.call(truncateText)+c-2)+"px"})}}catch(d){return}})}}function replaceWithDefaultPhoto(b,a){if(a=="events"){replaceHTML='<div class="default-photo"><div class="default-photo-title">Photo Not Available</div></div>';jQuery(b).replaceWith(replaceHTML)}if(a=="profile-photo-large"){jQuery(b).attr("src",static_server+"/images/profile/portrait_default_large.gif")}if((a=="profile-photo")||(a=="profile-photo-medium")){jQuery(b).attr("src",static_server+"/images/profile/portrait_default_medium.gif")}if(a=="profile-photo-small"){jQuery(b).attr("src",static_server+"/images/profile/portrait_default_small.gif")}}function replaceImageSource(a){if(a){if(jQuery(a).attr("url")!=""){jQuery(a).attr("src",jQuery(a).attr("url"));jQuery(a).attr("url","")}}}function each(c,e){for(var d=0,b=c.length;d<b;d++){e(c[d])}}each("a big blockquote br b center code div em form h1 h2 h3 h4 h5 h6 hr img iframe input i li ol option pre p script select small span strong style sub sup table tbody td textarea tr ul u".split(" "),function(a){window[a]=function(){var b=document.createElement(a);each(arguments,function(d){if(d.nodeType){b.appendChild(d)}else{if(typeof d=="string"||typeof d=="number"){b.innerHTML+=d}else{for(var c in d){if(c=="style"){for(var e in d[c]){b[c][e]=d[c][e]}}else{b[c]=d[c]}}}}});return b}});function json2string(d){var h,e,a,f="",b,g;switch(typeof d){case"object":if(d){if(d.length&&typeof d.length=="number"){for(e=0;e<d.length;++e){b=json2string(d[e]);if(f){f+=","}f+=b}return"["+f+"]"}else{if(typeof d.toString!="undefined"){for(e in d){b=d[e];if(typeof b!="undefined"&&typeof b!="function"){b=json2string(b);if(f){f+=","}f+=json2string(e)+":"+b}}return"{"+f+"}"}}}return"null";case"number":return isFinite(d)?String(d):"null";case"string":a=d.length;f='"';for(e=0;e<a;e+=1){h=d.charAt(e);if(h>=" "){if(h=="\\"||h=='"'){f+="\\"}f+=h}else{switch(h){case"\b":f+="\\b";break;case"\f":f+="\\f";break;case"\n":f+="\\n";break;case"\r":f+="\\r";break;case"\t":f+="\\t";break;default:h=h.charCodeAt();f+="\\u00"+Math.floor(h/16).toString(16)+(h%16).toString(16)}}}return f+'"';case"boolean":return String(d);default:return"null"}}function isEmptyObject(a){if(!isType(a,"object")){return false}for(var b in a){return false}return true}function getScrollBarWidth(){var c=document.createElement("p");c.style.width="100%";c.style.height="200px";var d=document.createElement("div");d.style.position="absolute";d.style.top="0px";d.style.left="0px";d.style.visibility="hidden";d.style.width="200px";d.style.height="150px";d.style.overflow="hidden";d.appendChild(c);document.body.appendChild(d);var b=c.offsetWidth;d.style.overflow="scroll";var a=c.offsetWidth;if(b==a){a=d.clientWidth}document.body.removeChild(d);return(b-a)}function getViewportDimensions(){var b;var a;if(typeof window.innerWidth!="undefined"){b=window.innerWidth,a=window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){b=document.documentElement.clientWidth,a=document.documentElement.clientHeight}else{b=document.getElementsByTagName("body")[0].clientWidth,a=document.getElementsByTagName("body")[0].clientHeight}}return Array(b,a)}function findPos(a){var b=curtop=0;if(a.offsetParent){b=a.offsetLeft;curtop=a.offsetTop;curwidth=a.offsetWidth;curheight=a.offsetHeight;while(a=a.offsetParent){b+=a.offsetLeft;curtop+=a.offsetTop}}return[b,curtop,curwidth,curheight]}function clipValues(b,c){var a=b.style.clip.replace(/,/gi,"");a=a.replace(/pt/gi,"px");a=a.replace(/ /gi,"");var d=a.split("rect(")[1].split(")")[0].split("px");if(c=="t"){return parseInt(d[0])}if(c=="r"){return parseInt(d[1])}if(c=="b"){return parseInt(d[2])}if(c=="l"){return parseInt(d[3])}}function getAbsolutePosition(a){var b={x:a.offsetLeft,y:a.offsetTop};return b}function getRelativeCoordinates(d,b){var a,j;d=d||window.event;var c=d.target||d.srcElement;if(!window.opera&&typeof d.offsetX!="undefined"){var h={x:d.offsetX,y:d.offsetY};var f=c;while(f){f.mouseX=h.x;f.mouseY=h.y;h.x+=f.offsetLeft;h.y+=f.offsetTop;f=f.offsetParent}var f=b;var g={x:0,y:0};while(f){if(typeof f.mouseX!="undefined"){a=f.mouseX-g.x;j=f.mouseY-g.y;break}g.x+=f.offsetLeft;g.y+=f.offsetTop;f=f.offsetParent}f=c;while(f){f.mouseX=undefined;f.mouseY=undefined;f=f.offsetParent}}else{var h=getAbsolutePosition(b);a=d.pageX-h.x;j=d.pageY-h.y}return{x:a,y:j}}function findMousePos(b){var a=0;var c=0;if(!b){var b=window.event}if(b.pageX||b.pageY){a=b.pageX;c=b.pageY}else{if(b.clientX||b.clientY){a=b.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;c=b.clientY+document.body.scrollTop+document.documentElement.scrollTop}}return[a,c]}function pop_window(c,b,d,a){if(b==null){b=450}if(d==null){d=500}var e=new Date().getMilliseconds();newwindow=window.open(c,"ASW_popup_"+e,"toolbar=0,menubar=no,location=0,directories=no,resizable=yes,width="+b+",height="+d+",scrollbars=yes");if(a!=null){newwindow.window.opener_win=a}if(window.focus){newwindow.focus()}}if(null==document.ELEMENT_NODE){document.ELEMENT_NODE=1;document.ATTRIBUTE_NODE=2;document.TEXT_NODE=3;document.CDATA_SECTION_NODE=4;document.ENTITY_REFERENCE_NODE=5;document.ENTITY_NODE=6;document.PROCESSING_INSTRUCTION_NODE=7;document.COMMENT_NODE=8;document.DOCUMENT_NODE=9;document.DOCUMENT_TYPE_NODE=10;document.DOCUMENT_FRAGMENT_NODE=11;document.NOTATION_NODE=12}window.Core=function(){var a=0;return{VERSION:"1.0",HTML_BODY_ID:"body",Biz:{},Constants:{},Client:function(){var c="";var f=[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}];var e=[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}];var d=function(k){for(var g=0;g<k.length;g++){var h=k[g]["string"],j=k[g]["prop"];c=k[g]["versionSearch"]||k[g]["identity"];if(h){if(h.indexOf(k[g]["subString"])!=-1){return k[g]["identity"]}}else{if(j){return k[g]["identity"]}}}};var b=function(h){var g=h.indexOf(c);return(-1==g)?null:parseFloat(h.substring(g+c.length+1))};return{browser:d(f)||"An unknown browser",version:b(navigator.userAgent)||b(navigator.appVersion)||"an unknown version",os:d(e)||"an unknown OS",createCookie:function(j,k,l){var g=null;if(l){var h=new Date();h.setTime(h.getTime()+(l*24*60*60*1000));g="; expires="+h.toGMTString()}else{g=""}document.cookie=j+"="+k+g+"; path=/"},eraseCookie:function(g){this.createCookie(g,"",-1)},getBody:function(){var g=window.document.body||window.document.childNodes[0].childNodes[1]||window.document.getElementsByTagName("body")[0]||window.document;Mint.Client.getBody=function(){return g};return Mint.Client.getBody()},getScrollOffset:function(){var h=document.documentElement,g=Mint.Client.getBody();if(h&&(h.scrollTop||h.scrollLeft)){Mint.Client.getScrollOffset=function(){return{x:dd.scrollLeft,y:dd.scrollTop}}}else{if(g){Mint.Client.getScrollOffset=function(){return{x:g.scrollLeft,y:g.scrollTop}}}else{Mint.Client.getScrollOffset=function(){return{x:0,y:0}}}}return Mint.Client.getScrollOffset()},isIE:function(){return this.browser=="Explorer"},isOpera:function(){return this.browser=="Opera"},readCookie:function(h){var k=h+"=";var g=document.cookie.split(";");for(var j=0;j<g.length;j++){var l=g[j];while(l.charAt(0)==" "){l=l.substring(1,l.length)}if(l.indexOf(k)==0){return l.substring(k.length,l.length)}}return null}}}(),Debug:{ALL:0,ERROR:1,DEBUG:2,PRODUCTION:5},Model:{},Widget:{},Util:{},emptyFunction:function(){},batch:function(g,f){if(!g.length){return}var d=Array.prototype.slice.apply(arguments,[2]);d.unshift(null,null);for(var e=0,c=g.length;e<c;e++){d[0]=g[e];d[1]=e;var b=f.apply(this,d);if(b){return b}}},extend:function(e,f,d){if(!f||!e){throw new Error("Core.extend failed, please check that all dependencies are included.")}var c=function(){};c.prototype=f.prototype;e.prototype=new c();e.prototype.constructor=e;e.prototype.parent=f.prototype;if(d){for(var b in d){e.prototype[b]=d[b]}}},getImage:function(c){var b=new Image();b.src=c;return b},getDebugLevel:function(){return a},setDebugLevel:function(b){a=b}}}();function $defined(a){return(a!=undefined&&a!=null)}function $type(b){if(!$defined(b)){return null}if(b.htmlElement){return"element"}var a=typeof b;if(a=="object"&&b.nodeName){switch(b.nodeType){case 1:return"element";case 3:return(/\S/).test(b.nodeValue)?"textnode":"whitespace"}}if(a=="object"||a=="function"){switch(b.constructor){case Array:return"array";case RegExp:return"regexp";case Date:return"date"}if(typeof b.length=="number"){if(b.item){return"collection"}if(b.callee){return"arguments"}}}return a}function isType(b,a){return a==$type(b)}YAHOO.lang.augmentObject(String.prototype,{capitalize:function(a){var c=this.split(/\b/g),b=[];Core.batch(c,function(d,e){if(d.trim()){b[e]=d.charAt(0).toUpperCase()+(a?d.substring(1).toLowerCase():d.substring(1))}});return b.join(" ")},contains:function(){var a=false;var b=this.toString();Core.batch(arguments,function(c){a=-1<b.indexOf(c);return a});return a},remove:function(a){return this.replace(a,"")},stripNonAlpha:function(){return this.remove(/[^A-Za-z ]+/g)},stripNonAlphaNumeric:function(){return this.remove(/[^A-Za-z0-9 ]+/g)},stripNonNumeric:function(){return this.remove(/[^0-9\-\.]/g)},stripNumeric:function(){return this.remove(/[0-9]/g)},stripScripts:function(){return this.remove(new RegExp("(?:)((\n|\r|.)*?)(?:<\/script>)","img"))},stripTags:function(){return this.remove(/<\/?[^>]+>/gi)},trim:function(){return this.remove(/^\s\s*/).remove(/\s\s*$/)}});