<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>






<head profile="http://www.w3.org/2005/10/profile">
    <link rel="shortcut icon" href="http://wac.2659.edgecastcdn.net/802659/production93/images/icons/favicon.ico">
    <link rel="stylesheet" type="text/css" href="http://wac.2659.edgecastcdn.net/802659/production93/css/main.css?ts=1318972343154">
	<!--[if IE 7]>
	    <link rel="stylesheet" type="text/css" href="http://wac.2659.edgecastcdn.net/802659/production93/css/ie7.css?ts=1318972343154">
	<![endif]-->
	<!--[if lte IE 8]>
	    <style type="text/css">
	    	.profile div.bio ul, .profile div.bio ol { height:0; overflow:visible; }
			.profile div.bio ul, .profile div.bio ol { height:1%; }
	    </style>
	<![endif]-->
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <meta name="robots" content="index">
    <title>Al Bryce (albryce) on about.me</title><style type="text/css">
		div.profile .profile-content {
			width: 450px;
		}
		.profile #profile-bevel {
			opacity: 0.53;
			-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=53)";/*ie8*/
			filter: alpha(opacity=53);/*ie7*/
		}
		.profile div.profile-head h1.name {
			font-family: proxima-nova-1,proxima-nova-2, "proxima-nova-1", "proxima-nova-2", Tahoma, Helvetica, Verdana, sans-serif;
			font-size: 80px;
			color: #FFF;
		}
		.profile div.profile-head h2.headline {
			font-family: proxima-nova-1,proxima-nova-2, "proxima-nova-1", "proxima-nova-2", Tahoma, Helvetica, Verdana, sans-serif;
			font-size: 22px;
			color: #FFF;
		}
		.profile div.profile_photo {
			padding-top: 4.0px;
		}
		.profile div.bio {
			font-family: proxima-nova-1,proxima-nova-2, "proxima-nova-1", "proxima-nova-2", Tahoma, Helvetica, Verdana, sans-serif;
			font-size: 14px;
			color: #FFF;
		}
		.profile div.bio p {
			/* margin-bottom: 21.0px; */
		}
		.profile div.bio a {
			color: #2B82AD;
		}
		.profile div.services {
			color: #FFF;
		}
		.profile ul.links {
			font-family: proxima-nova-1,proxima-nova-2, "proxima-nova-1", "proxima-nova-2", Tahoma, Helvetica, Verdana, sans-serif;
			font-size: 14px;
		}
		.profile ul.links a {
			color: #2B82AD;
		}
		body.profilepage {
			background-color: #000;
		}
		/*tiled*/
		.profilepage .background-container {
			background-image: url(http://d13pix9kaak6wt.cloudfront.net/background/allthefunofthefairground.jpg);
		}
    </style><meta name="description" content="By day a start-up business adviser and digital marketing specialist, by night a web entrepreneur in training. &amp;nbsp;Connect with me below."><meta property="og:description" content="By day a start-up business adviser and digital marketing specialist, by night a web entrepreneur in training. &amp;nbsp;Connect with me below."><meta property="og:title" content="Al Bryce (albryce) on about.me"><meta property="og:image" content="http://d13pix9kaak6wt.cloudfront.net/profile/albryce_1314986566_06.jpg"><meta name="viewport" content="width=1024"><meta name="keywords" content="Al Bryce albryce about.me profile"><meta name="author" content="Al Bryce (albryce)"><link rel="stylesheet" media="only screen and (min-device-width: 320px) and (max-device-width: 480px)" type="text/css" href="http://wac.2659.edgecastcdn.net/802659/production93/css/mobile.css"><link rel="stylesheet" media="only screen and (device-width: 768px)" type="text/css" href="http://wac.2659.edgecastcdn.net/802659/production93/css/ipad.css"><script type="text/javascript" src="http://use.typekit.net/vfg7kbz.js"></script><script type="text/javascript">try{Typekit.load();}catch(e){}</script>
    <script type="text/javascript">
        (function() {
        var aa = document.createElement('script'); aa.type = 'text/javascript'; aa.async = true;
        aa.src = '/jst/inbound.js?referer=' + escape(document.referrer) + '&random='+ Math.random();
        var as = document.getElementsByTagName('script')[0]; as.parentNode.insertBefore(aa, as);
        })();
    </script>
</head>
<body class="profilepage">
<div id="header-background"></div>
<div id="header-wrap">
    <div id="header" class="clearfix">
        <ul class="nav accountlinks">
				<li>
					<a href="/" class="nav-item plain yellow">
						Sign up to claim your username!
					</a>
				</li>
				<li class="signin">
					<a href="/login" class="nav-item plain">Sign In</a>
				</li>
        </ul>
        <div class="logo"><a href="/"> </a></div>
        <ul class="nav applinks">
			<li class="menu peoplemenu">
            	<span class="nav-item menu-toggle fauxfield"><span class="magnifier">Find People</span></span>
            	<div class="menu-content">
            		<div class="menu-head"><span class="nav-item menu-toggle"><span class="magnifier">Find People</span></span></div>
            		<ul class="menu-items">
						<li class="findform">
							<form onsubmit="return false">
								<input type="text" name="findpeople" value="" id="findpeople" class="text">
								<button class="button" type="submit"><span class="button-content">Go</span></button>
							</form>
						</li>
						<li class="separator"><hr></li>
						<li class="item"><a href="/directory/">Browse the Featured Directory</a></li>
            		</ul>
            	</div>
            </li>
			<li class="randomprofile">
                    <a href="/random/?q=1320085162.19" class="button button-dark icon-button km-randomprofile" title="View a Random Profile">
					<span class="button-content"> </span>
				</a>
			</li>
        </ul>
    </div>
</div>
<div id="msg" style="display:none;">
<p id="msg-confirm">
	<span class="msg-confirmtext"></span>
</p>
</div>
<!-- <div class="content"> -->
<div class="background-container centered">
	<div class="profile" id="profile_box" style="margin-left: -598px; top: 46px;">
		<div class="profile-head">
			<!--name-->
			<h1 class="name typekit">Al Bryce</h1>
			<!--end name-->
			<!--headline-->
			<h2 class="headline typekit">Digital Marketer</h2>
			<!--end headline-->
		</div>
		<div class="profile-content bio-container">
			<div class="profile_photo">
				<img src="http://d13pix9kaak6wt.cloudfront.net/avatar/albryce_1314986566_06.jpg" id="profile_picture" alt="Al Bryce picture">
			</div>
			<!--bio-->
			<div class="bio typekit">
				<p>By day a start-up business adviser and digital marketing specialist, by night a web entrepreneur in training. &nbsp;Connect with me below.</p>
			</div>
			<!--end bio-->
			<div class="clear zero"></div>
				<div id="profile-bevel"><hr></div>
			<div class="services">
					<ul id="service-icons" class="services clearfix">
					</ul>
				<!--hidden, used for invisible menu creation-->
				<ul id="service-icons-setup">
						<li class="service-icon site_2" rel="2" data-platform="linkedin" data-name="LinkedIn">
							<a href="#show_linkedin" class="icon linkedin"> <span class="service-icon-overlay"> </span></a>
						</li>
				</ul>
			</div>
		</div>
		<ul class="links clearfix">
				<li class="site_6" style="background-image: url(http://d15rluch0y3zzq.cloudfront.net/favicon/default.png)">
					<a href="http://kitchenmonsters.co.uk" target="_blank" class="website site_6">
						<span class="displayname">http://kitchenmonsters.co.uk</span></a>
				</li>
				<li class="site_7" style="background-image: url(http://d15rluch0y3zzq.cloudfront.net/favicon/5da583dbf5095af37d57ca6cddabcf66.png)">
					<a href="http://twitter.com/KitchenMonsters" target="_blank" class="website site_7">
						<span class="displayname">http://twitter.com/KitchenMonsters</span></a>
				</li>
				<li class="site_8" style="background-image: url(http://d15rluch0y3zzq.cloudfront.net/favicon/5da583dbf5095af37d57ca6cddabcf66.png)">
					<a href="http://twitter.com/albryce" target="_blank" class="website site_8">
						<span class="displayname">http://twitter.com/albryce</span></a>
				</li>
				<li class="site_4" style="background-image: url(http://d15rluch0y3zzq.cloudfront.net/favicon/c3c8744a0ccffcabcda452387dbf58e9.png)">
					<a href="http://facebook.com/al.bryce" target="_blank" class="website site_4">
						<span class="displayname">http://facebook.com/al.bryce</span></a>
				</li>
				<li class="site_9" style="background-image: url(http://d15rluch0y3zzq.cloudfront.net/favicon/c3c8744a0ccffcabcda452387dbf58e9.png)">
					<a href="http://facebook.com/BizEastLothian" target="_blank" class="website site_9">
						<span class="displayname">http://facebook.com/BizEastLothian</span></a>
				</li>
				<li class="site_10" style="background-image: url(http://d15rluch0y3zzq.cloudfront.net/favicon/5da583dbf5095af37d57ca6cddabcf66.png)">
					<a href="http://twitter.com/BizEastLothian" target="_blank" class="website site_10">
						<span class="displayname">http://twitter.com/BizEastLothian</span></a>
				</li>
		</ul>
		<div class="profile-content">
			<div class="actions clearfix">
				<div class="actionbar buttonbar">
					<span class="button button-small button-dark icon-button favebutton km-favebutton button-disabled">
						<span class="button-content"> </span>
					</span>
					<span class="button button-small button-dark icon-button menu profileactionmenu">
						<span class="button-content menu-toggle"> </span>
						<div class="menu-content">
							<span class="menu-head menu-toggle"><span class="button-content"> </span></span>
							<ul class="menu-items">
										<li class="item shareprofilelink"><a href="#" id="share-profile-modal">Share this Profile</a></li>
								<li class="separator"><hr></li>
									<li class="disabled flagprofilelink"><a href="#" id="flag-profile-link">Flag this Profile for Abuse</a></li>
							</ul>
						</div>
					</span>
				</div>
				<div class="contactbar buttonbar">
					<span class="button button-dark button-small emailmebutton km-profile-emailme"><span class="button-content">Email Me</span></span>
				</div>
			</div>
		</div>
	</div><!-- /profile -->
</div><!--/end background-container-->
<!--</div> /content -->
<div class="displayname invisible">Al Bryce</div>
    <div id="services_modal" class="content invisible">
    <div id="container_nav" class="invisible">
        <ul class="tabheader">
            <li class="site site_2" rel="2">
                <a href="#switch_linkedin_2" class="tab tab_2">LinkedIn</a>
            </li>
        </ul>
    </div>
    <div class="wrapper">
		<!--
		new method of generating service modals
		1. loop all services in websites_info
		2. change py:if on ind. serv. containers to check current websites_info 'platform' to determine which type of modal to show
		3. get tricky
        ^- Awesome! - Jake
		-->
        <!-- New style services - Jake -->
        <div id="container_2" class="container invisible linkedin" rel="linkedin">
            <div class="top_section">
                <h1>Al Bryce's LinkedIn</h1>
                <div class="invite">
                    <a href="http://www.linkedin.com/in/albryce" target="_blank" class="view-link">View Public Profile</a>
                </div>
            </div>
            <div class="section linkedin-info">
                <h2>Digital Marketer, Start-up &amp; SME Specialist, Social Entrepreneur</h2>
                <p>Edinburgh, United Kingdom<span class="spacer">:</span>Marketing and Advertising<span class="spacer">:</span>280 Connections</p>
            </div>
            <div class="hr"></div><!--ie7-compatible cheat, removes extra 7px top/bottom margin over using hr-->
            <div class="section linkedin-bio">
                <div class="leftcol">
	                <h3>Current</h3>
	                <ul>
	                    <li>
	                        Owner<span class="spacer">:</span><strong>Kitchen Monsters</strong>
	                    </li><li>
	                        Start-up Business Adviser<span class="spacer">:</span><strong>East Lothian Council</strong>
	                    </li><li>
	                        Start-up Business Adviser<span class="spacer">:</span><strong>Business Gateway</strong>
	                    </li>
	                </ul>
	            </div>
	            <div class="rightcol">
	                <h3>Education</h3>
	                <ul>
	                    <li>
	                        Institute of Leadership and Management
	                    </li><li>
	                        University of Aberdeen
	                    </li><li>
	                        George Watson's College
	                    </li>
	                </ul>
                </div>
                <div class="newclear"> </div>
            </div>
            <div class="hr"></div><!--ie7-compatible cheat-->
            <div class="section linkedin-experience">
            	<h3>Experience</h3>
            	<ul>
                    <li>
                        Volunteer Business Adviser<span class="spacer">:</span><strong>Young Enterprise Scotland</strong>
                        <br><span>September 2009 – October 2010</span>
                    </li><li>
                        Marketing Manager<span class="spacer">:</span><strong>Alpha Plus Group</strong>
                        <br><span>June 2007 – November 2008</span>
                    </li><li>
                        Co-Owner<span class="spacer">:</span><strong>Pure H2O Plumbing</strong>
                        <br><span>2004 – 2007</span>
                    </li><li>
                        Marketing Manager<span class="spacer">:</span><strong>Eventful (Scotland) Ltd</strong>
                        <br><span>December 2002 – 2004</span>
                    </li><li>
                        Kitchen Porter<span class="spacer">:</span><strong>Buckingham Palace</strong>
                        <br><span>June 1998 – August 1998</span>
                    </li>
            	</ul>
            </div>
		<!-- #container_linkedin -->
        </div>
        <!-- New style services - Jake -->
        <!-- New style services - Jake -->
        <!-- New style services - Jake -->
        <!-- New style services - Jake -->
        <!-- New style services - Jake -->
        <!-- New style services - Jake -->
		<!--end websites_info loop-->
	</div>
</div>
<div id="service_removal_container" class="container invisible">
    <h3>Are you sure?</h3>
    <p></p>
    <div class="cbm_controls">
    <a href="#" id="service_removal_ok_button">OK</a> or <a href="#" id="service_removal_cancel_button">Cancel</a>
    </div>
</div>
<div id="colorpicker_modal" class="invisible">
	<div class="ui-dialog-inside">
	    <div id="colorpicker_instance"></div>
	    <br>
	    <span id="colorpicker_submit" class="button button-default button-medium"><span class="button-content">Confirm</span></span>
	<span style="line-height: 30px; height: 30px; margin: 0px 0px 0px 5px;" class="inline small middle">
	        or <a href="#cancel" onclick="$('#colorpicker_modal').dialog('close')">Cancel</a>
	    </span>
	</div>
</div>
<div id="share-profile" class="clearfix">
	<h2>Share this Profile</h2>
	<p>Tell your friends you found Al Bryce's profile!</p>
	<p class="help-text">Will open a new window.</p>
	<div class="buttonbar">
		<a href="http://twitter.com/intent/tweet?text=I+found+Al Bryce's+profile+on+@aboutdotme+–+check+it+out!+http://about.me/albryce" class="button button-first km-sharemodal-twitter" id="share-twitter" target="_blank"><span class="button-content">Twitter</span></a>
		<a href="http://www.facebook.com/share.php?u=http://about.me/albryce" class="button button-last km-sharemodal-facebook" id="share-facebook"><span class="button-content">Facebook</span></a>
		<!-- <a href="#" class="button button-last" id="share-email"><span class="button-content">Email</span></a> -->
	</div>
</div>
<div id="large_avatar_container" class="container avatar-large invisible">
    <img src="http://d13pix9kaak6wt.cloudfront.net/avatar/albryce_1314986566_06.jpg" id="avatar_picture" alt="Al Bryce large">
</div>
	<!-- <img src='${user_profile.background_image}' class='bg-image-size-test' alt='${user.display_name}' /> -->
<div id="emailme" class="invisible message-modal">
	<h2 class="title">Send me a message</h2>
    <fieldset>
		<label for="message_text">Message (max 1000 characters)</label>
		<textarea id="message_text" name="message_text" style="width:504px;" rows="5" cols="80" onkeypress="return imposeMaxLength(event, this, 1000);"></textarea>
		<span id="message_invalid" class="alarum invisible">Must contain a message</span>
	</fieldset>
    <fieldset>
		<label for="message_name">Your Name</label>
		<input type="text" id="message_name" name="message_name" class="mintext" style="width: 500px;" maxlength="254">
		<span id="name_invalid" class="alarum invisible">Must contain a name</span>
	</fieldset>
    <fieldset>
		<label for="message_email">Your Email</label>
		<input type="text" id="message_email" name="message_email" class="mintext" style="width: 500px;" maxlength="254">
		<span id="email_invalid" class="alarum invisible">Must be a valid email address</span>
	</fieldset>
	<p id="message_error" class="alarum invisible"></p>
    <span class="loader invisible middle normal medium" style="margin: 0px 0px 0px 30px;" id="send_message_loader">
        <img src="http://wac.2659.edgecastcdn.net/802659/production93/images/ajax/ajax-loader-alt2.gif" style="margin: 0px 5px 0px 0px;" alt="Activity indicator"> Loading...
    </span>
</div>
<div id="askmeaquestion" class="invisible message-modal">
	<h2 class="title">
		<span class="charactercount">255</span>
		Ask me a question
	</h2>
    <fieldset>
		<textarea id="question_text" name="question_text" rows="5" cols="80" onkeypress="return imposeMaxLength(event, this, 255);"></textarea>
		<span id="question_text_invalid" class="alarum">Please enter a question</span>
	</fieldset>
    <fieldset>
		<label for="ask_anonymously">
			<input type="checkbox" id="ask_anonymously" name="ask_anonymously">
			<span class="labeltext">Ask anonymously</span>
		</label>
	</fieldset>
</div>
    <script type="text/javascript" src="http://wac.2659.edgecastcdn.net/802659/production93/js/jquery_plus.min.js?ts=1318972343154"></script>
    <script type="text/javascript" src="http://wac.2659.edgecastcdn.net/802659/production93/js/aboutme.js?ts=1318972343154"></script>
	<script type="text/javascript" src="http://wac.2659.edgecastcdn.net/802659/production93/js/closure/closure.compiled.js?ts=1318972343154"></script>
    <script language="javascript" type="text/javascript">
        AboutMe.g = {};
        AboutMe.g.DOMAIN_NAME = "http://about.me";
        AboutMe.g.STATIC_HOSTNAME = "http://wac.2659.edgecastcdn.net/802659/production93";
        AboutMe.g.AWS_THUMBNAIL = "http://d3mod6n032mdiz.cloudfront.net";
        AboutMe.g.AWS_IMAGES = "http://d13pix9kaak6wt.cloudfront.net";
        AboutMe.g.JS_DEBUG = false;
        AboutMe.g.NAV_HEIGHT = 32;
        AboutMe.g.OMNITURE_ON = true;
        AboutMe.g.OMNITURE_SERVER = "Prod";
        AboutMe.g.ENVIRONMENT = "production";
        AboutMe.g.user_profile = {};
    </script>
    <!--KISSmetrics-->
    <script type="text/javascript">
	  var _kmq = _kmq || [];
	  function _kms(u){
	    setTimeout(function(){
	      var s = document.createElement('script'); var f = document.getElementsByTagName('script')[0]; s.type = 'text/javascript'; s.async = true;
	      s.src = u; f.parentNode.insertBefore(s, f);
	    }, 1);
	  }
	  _kms('//i.kissmetrics.com/i.js');_kms('//doug1izaerwt3.cloudfront.net/fd27a0b2f6652a46eed1ad15f26aed09717cd6b5.1.js');
		_kmq.push(function(){
		  var params = KM.uprts(KM.u()).params;
		  if(param = params['NCID'] || params['ncid']) {
		    _kmq.push(['set', { 'NCID': param }]);
		  }
		});
	  </script>
    <!--/KISSmetrics-->
<script type="text/javascript">
    $(function () {
        $('.tw_ds div:first').css('border','0');
        $('.tw_ds div:eq(1)').css('width','650px');
        //$('.tw_ds').children('div:first').remove();
        $('.tw_ds .snap_noshots').remove();
    });
</script>
<script type="text/javascript">
//
// do we need the stuff in this script block anymore? can we refactor it into a code module somewhere?
  // Functions for profile box tab navigation
  toggle_tab_active = function(el) {
    $(el).parent().siblings().removeClass("active");
    $(el).parent().addClass("active");
    if (el.id === 'twitter_tab') {
            $('.ib_name').hide();
        }
    else if (el.id === 'tumblr_tab') {
      $('.ib_name').hide();
    } else {
        $('.ib_name').show();
    }
  }
//
</script>
<script type="text/javascript">
//
function imposeMaxLength(Event, Object, MaxLen){
	return (Object.value.length <= MaxLen)||(Event.keyCode == 8 ||Event.keyCode==46||(Event.keyCode>=35&&Event.keyCode<=40))
}
function checkRegexp(o,regexp,n) {
            if ( !( regexp.test( o ) ) ) {
                return false;
            } else {
                return true;
            }
}
function checkLength(value,min,max) {
            if ( value.length > max || value.length < min ) {
                return false;
            } else {
                return true;
            }
}
email_validate = function (value) {
    var bValid = checkLength(value,6,254);
    // From jquery.validate.js (by joern), contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/
    bValid = bValid && checkRegexp(value,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"eg. ui@jquery.com");
    return bValid;
};
//$("#services_modal").dialog();
$("#large_avatar_container").dialog({
    autoOpen: false,
    dialogClass: "avatar",
    bgiframe: true,
    modal: true,
    draggable: false,
    position: 'center',
    resizable: false,
    height: 'auto',
    width: 'auto',
    closeOnEscape: true,
    open: function(event, ui){
    	//following fixes ie7 titlebar bug since width isn't defined
    	var avatarWidth = parseInt($("#large_avatar_container").width());
    	$("#large_avatar_container").siblings("div.ui-dialog-titlebar").css("width",avatarWidth+20+"px");
    },
    close: function (event, ui) {
    	$("#large_avatar_container").siblings("div.ui-dialog-titlebar").css("width","auto");
    }
});
var ServicesModal = {
	init: function() {
		ServicesModal.services.init();
		$("#services_modal").dialog({
		    autoOpen: false,
		    dialogClass: "services_modal",
		    bgiframe: true,
		    modal: true,
		    height: 'auto',
		    width: 580,
		    title: $('#container_nav').html(),
		    draggable: false,
		    position: 'top',
		    resizable: false,
		    closeOnEscape: true,
		    open: function(event,ui) {
				var profile = $(".profile"),
					ctn = $(".background-container"),
					hd = $("#header-background, #header-wrap");
				profile.css("position","fixed");
				ctn.css("position","fixed");
				hd.css("position","fixed");
		    },
		    close: function (event, ui) {
				var profile = $(".profile"),
					ctn = $(".background-container"),
					hd = $("#header-background, #header-wrap");
				profile.css("position","absolute");
				ctn.css("position","absolute");
				hd.css("position","absolute");
		        //remove all active classes
		        $(".services_modal ul.tabheader li").removeClass('active');
				$("ul.body-more-menu").remove();
		        //reset any playing video
				Carousel.stopPlayback();
				//UserProfile.offScreenFix();
		    }
		});
		// services modal nav has been copied into dialog title - remove it now to avoid duplication
		$('#container_nav').remove();
		$('.services_modal ul.tabheader li a.tab, .moreservicesmenu li a.tab').live("click",function() {
			AboutMe.menu.hide();
			var service = $(this).closest('li').attr('rel');
			//reset any playing video
			Carousel.stopPlayback();
			ServicesModal.showService(service);
			return false;
		});
		$("#service-icons").find("li:not(.service-icon-parent) .icon").live("click",function(e){
			e.preventDefault();
			var service = $(this).closest('li').attr('rel');
			ServicesModal.showService(service);
			$(".service-icon-parent").trigger("closeMenu");
		});
		// have to re-assign these handlers because tab headers are copied by jQuery UI when the modal is created, but it loses the click handlers in the process
		$('.services_modal ul.tabheader li a.tab').click(function () {
			$.getJSON('/jst/outbound.js?callback=?',{'location':this.href,'random':Math.random()});
		});
		ServicesModal.setupInternalTabs();
		//stacking IE service modal css fixes here
		$(".services_modal .twitter span.divider:last").hide();
		ServicesModal.createMoreMenu();
	},
	showService: function(service_id) {
		var container = "#container_" + service_id;
		var tab = ".tab_" + service_id;
		// open the dialog
		$("#services_modal").dialog('open');
		// hide everything
		$('#services_modal div.wrapper div.container').hide();
		// remove all active classes
		$(".services_modal ul.tabheader li").removeClass('active');
		// add active class to the service we clicked
		$(tab).parents(".services_modal ul.tabheader li").addClass('active');
		//make active unclickable
		$('.services_modal ul.tabheader li a').bind('click', function() { return true; });
		$('.services_modal ul.tabheader li.active a').unbind('click', function() { return true; });
		// show the service container
		$(container).show(0,function(){
			var service_type = $(this).attr("rel");
			//hotload images/videos
			Carousel.hotLoad(service_id, service_type);
		});
	},
	createMoreMenu: function() {
         var tabheader = $(".services_modal ul.tabheader");
        //temporarily show modal offscreen to get correct calcs
        $((".services_modal")).css({
                display: "block",
                marginLeft: "-9999px"
        });
        // remove previous more menu if needed
        ServicesModal.removeMoreMenu();
        //create menu
        tabheader.find("li.site a").each(function(){
        	$(this).truncate({width:"200"});
        });
        tabheader.find("li.site").each(function(i, e){
            var thisRight = $(this).position().left + $(this).width();
            if(thisRight > 450){
                if(tabheader.find("li.moreservicesmenu").length < 1){
                    //wrap all remaining li's in moreservicesmenu and stop loop
                	tabheader.find("li.site:gt("+(i-1)+")").wrapAll('<li class="menu moreservicesmenu"><div class="menu-content"><ul class="menu-items"></ul></div></li>');
                	tabheader.find("li.moreservicesmenu").prepend('<a href="#moreservicesmenu" class="menu-toggle">More</a>');
                	tabheader.find("li.moreservicesmenu .menu-content").prepend('<span class="menu-head"><a href="#moreservicesmenu" class="menu-toggle">More</a>');
                	return;
                }
            }
        });
        //re-hide modal
        $((".services_modal")).hide();
	},
	removeMoreMenu: function() {
		// move any links in more menu back out to tabheader
		$(".services_modal li.moreservicesmenu li.site").detach().appendTo('.services_modal ul.tabheader');
		//remove more menu
		$(".services_modal li.moreservicesmenu").remove();
	},
	setupInternalTabs: function(){
		var tabbar = $(".services_modal .in-modal-tabbar");
		tabbar.each(function(i,e){
			var e = $(e);
			var tabs = e.find("li");
			if(tabs.length > 1){
				tabs.live("click", function(){
					ServicesModal.internalTab($(this));
					return false;
				});
			} else {
				e.hide();
			}
		});
	},
	internalTab: function(tab) {
		//function of tab bars within modals (lastfm, facebook pages, fitbit etc.)
		//tabs expected to be li
		//panes expected to be siblings of tab ul/ol
		$(tab).siblings("li").removeClass("active");
		$(tab).addClass("active");
		$(tab).closest(".container").find(".in-modal-tab-pane").removeClass("active");
		var newTab = $(tab).attr("id").replace(/in-modal-tab_/, "");
		$("."+newTab).addClass("active");
		//UserProfile.offScreenFix();
	},
	codeStyle: function(platform, codewidth){
		//add line numbers, etc to snippets
		$("."+platform+" .code-snippet").each(function(){
			var ctn = $(this);
			var code = ctn.html();
			var lines = code.replace(/^(.*)$/mg, "<li>$1</li>");
			ctn.html("<ol class='code'></ol>");
			ctn.find(".code").html(lines);
			var li = ctn.find("li");
			li.each(function(){
				$(this).truncate({width: codewidth, format: 'html'});
				//$(this).text($(this).html());
				$(this).wrapInner("<span class='code-line' />");
			});
		});
	},
	//add service-specific functions here
	services: {
		init: function(){
			ServicesModal.services.twitter();
			ServicesModal.services.fitbit();
			ServicesModal.services.facebookpage();
			ServicesModal.services.googleplus();
			ServicesModal.services.github();
		},
		twitter: function(){
			//
			//
		},
		fitbit: function(){
			//
			//
		},
		googleplus: function(){
			//
			//
		},
		facebookpage: function(){
			//
			//
		},
		github: function(){
			//
			//
		}
	}
};
$(window).bind("load", ServicesModal.init);
var UserProfile = {
	init: function() {
		UserProfile.createIconMenus();
		UserProfile.setLinkLineHeight();
		TypeTools.checkProfileWidth();
	    Bevel.updateBevel('000000');
		// bind avatar to large avatar dialog
		$('#profile_picture').live('click',function () {
			$("#large_avatar_container").dialog('open');
		});
	    $('.emailmebutton').click(function() {
	    	$('#emailme').dialog('open');
	    });
	    $('.askmeaquestionbutton').click(function() {
	    	$('#askmeaquestion').dialog('open');
	    });
	    //process dates
		$(".dateProcessThis").each(function(){
			var date = $(this).text();
			$(this).text(UserProfile.dateProcess(date));
		});
	    //UserProfile.offScreenFix();
	},
	createIconMenus: function(){
		var setup =	$("#service-icons-setup");
		var icons = $("#service-icons");
		icons.find(".service-icon").remove();
		//insert into visible home
		icons.prepend(setup.html());
		//combine facebookpage and facebook into single set
		icons.find("li.service-icon[data-platform=facebookpage]").attr("data-platform","facebook");
		icons.find('li.service-icon').each(function(i,e){
			e = $(e);
			//get platform name
			var platform = e.attr("data-platform");
			//find all with same name
			var others = icons.find('li.service-icon[data-platform='+platform+']');
			//if multiples
			var extras = others.not(':first').removeClass("service-icon").detach();
			if(extras.length){
				var first = others.first().clone().detach();
				first.removeClass("service-icon");
				others.first()
					.addClass('service-icon-parent menu')
					.find("a.icon")
					.addClass('menu-toggle')
					.end()
					.append("<ul class='service-icon-group menu-content menu-items'></ul>");
				icons.find('li.service-icon[data-platform='+platform+'] ul').append(first,extras);
				icons.find('li.service-icon[data-platform='+platform+'] ul li').each(function(idx,el){
					el = $(el);
					var name = el.attr("data-name");
					el.find("a").css("background-image","none").text(name);
				});
			}
		});
	},
	//profile & customize box offscreen fix
	offScreenFix: function(resize) {
		//fix profile
		var profile = $('.profile'),
			ctn = $('.background-container'),
			hd = $('#header-background, #header-wrap');
		if(resize){
			ctn.css({
				width: '100%',
				height: '100%'
			});
			hd.css({ width: '100%' });
		}
		var	pl = profile.offset().left,
			pt = profile.offset().top,
			pw = profile.width(),
			ph = profile.height(),
			pb = pt+ph,
			pr = pl+pw,
			cw = ctn.width(),
			ch = ctn.height();
		if(pr > cw) {
			pr = pr + (pr-cw) + 50;
			ctn.css({ width: pr+'px' });
			hd.css({ width: pr+'px' });
		} else {
			ctn.css({ width: '100%' });
			hd.css({ width: '100%' });
		}
		//these 150's are due to height not calculated correctly because fonts are rendered fully yet
		if((pb+150) > ch) {
			pb = pb+150;
			ctn.css({ height: pb+'px' });
		} else {
			ctn.css({ height: '100%' });
		}
		if(pl < 0 && !resize) {
			var off = (Math.abs(pl) * 2) + 20;
			cw = cw + off;
			ctn.css({ width: cw+'px' });
			hd.css({ width: cw+'px' });
		}
		//fix edit
		var ed = $('.customize');
		if(ed.length > 0){
			var	ew = ed.width(),
				el = ed.offset().left,
				eh = ed.height(),
				et = ed.offset().top,
				eb = et+eh,
				er = ew+el;
			if(el < 0) { ed.css({ left: '20px', marginLeft: '0px' }); }
			if(er > cw) { ed.css({ left: (cw-ew-20)+'px', marginLeft: '0px' }); }
			if((eb+150) > ch && eb > pb) {
				eb = eb+150;
				ctn.css({ height: eb+'px' });
			}
		}
/*
		//selector variables
		var navBar = $("#header-background");
		var profileBox = $("div.profile");
		var bgDiv = $(".profilepage div.background-container");
		var bgImgTest = $(".bg-image-size-test");
		var custDiv = $(".profilepage .customize");
		var servDiv = $("#services_modal");
		//reset
		navBar.css("width","auto");
		profileBox.css('margin-left',UserSettings.profile.text_left+"px");
		if(bgDiv.hasClass("legacy")){
			bgDiv.css({ width:"100%", paddingRight:"0px", backgroundPosition:"50% 50%", height: UserSettings.images.background_height+"px" });//backgroundPosition:"50% 50%"
		} else if (bgDiv.hasClass("repeat") || bgDiv.hasClass("centered")) {
			bgDiv.css({ paddingRight:"0px", height:"100%", width:"100%", backgroundPosition: "50% 30px" });//backgroundPosition: "50% 30px"
		} else {
			bgDiv.css({ height:"100%" });
		}
		//set profilebox variables
		var profilePosition = profileBox.offset();
		var profileLeft = profilePosition.left;
		var profileTop = profilePosition.top;
		var profileMargin = profileBox.css("margin-left").replace(/px/,'');
		var profileHeight = profileBox.height();
		var profileWidth = profileBox.width();
		var profileRight = profileLeft+profileWidth;
		var profileBottom = profileTop+profileHeight;
		//width of page
		var pageWidth = $(window).width();
		//right and bottom fix
		//get right/bottom calcs
		var bgWidth = bgDiv.width();
		var bgHeight = bgDiv.height();
		var bgBottom = bgHeight+30;
		var bgRight = bgWidth;
		var bgHalfWidth = bgWidth/2;
		//could use position:fixed but then offscreen to the right fix breaks
		//adjust height of bgDiv if offscreen to the bottom
		if(!bgDiv.hasClass("scaled")){
			if(profileBottom > (bgBottom-20)) {
				bgDiv.css("height",(profileBottom+20)+"px");
			}
			//get background image width
			var bgImgWidth = bgImgTest.width();
			var bgImgHalfWidth = bgImgWidth/2;
			//adjust viewport for mobile/ipad, defaults to min 1024, adjust to show full background
			if(UserSettings.images.background_repeat=='center' && bgImgWidth > 1024){
				if(bgImgWidth <= 1480){
					$('head').append('<meta name="viewport" content="width='+bgImgWidth+'">');
				} else {
					$('head').append('<meta name="viewport" content="width=1480">');
				}
			}
			if( profileRight > bgWidth ) {
				//make nav bar match bg width
				//navBar.css("width",(profileRight+20)+"px");
				//get 50% of bgDiv, subtract half of image to get px pos
				bgPos = (bgWidth/2) - bgImgHalfWidth;
				if(bgDiv.hasClass('legacy')){
					bgDiv.css('background-position',bgPos+"px 50%");
				} else {
					bgDiv.css('background-position',bgPos+"px 30px");
				}
				//set bg container width to right side of profile box + 20px for padding
				bgDiv.css( "width", profileRight+20+"px" );
			}
			//if 900 or smaller, keep at 900 to allow for nav
			if(pageWidth <= 900){
				//set nav background to 900
				navBar.css("width","900px");
				//instead of setting width, adding equal padding to keep bg pos correct
				bgDiv.css("padding-right",(900-bgWidth)+"px");
			}
		} else {
			if( profileRight > bgWidth ){
				navBar.css("width", profileRight+20+"px");
			}
		}
		//if profile box offscreen to left (or, where the magic happens)
		if(profileLeft < 20){
			//adjust profile box
			profileMargin = (Math.abs(profileMargin)-Math.abs(profileLeft)-20);
			profileBox.css("margin-left","-"+profileMargin+"px");
			//adjust background image position
			if(UserSettings.images.background_image && !bgDiv.hasClass("scaled")){
				//get background position in px instead of %
				bgPos = (bgHalfWidth - bgImgHalfWidth) + Math.abs(profileLeft)+20;
				//set background position using px - need this nonsense since Firefox doesn't support background-position-x. still.
				if(bgDiv.hasClass('legacy')){
					bgDiv.css('background-position',bgPos+"px 50%");
				} else {
					bgDiv.css('background-position',bgPos+"px 30px");
				}
			}
		}
		//services modal fix (height only since not draggable)
		if(servDiv.is(":visible") && servDiv.height() > 0){
			var servPosition = servDiv.offset();
			var servTop = servPosition.top;
			var servHeight = servDiv.height();
			var servBottom = servHeight + servTop;
			//if offscreen to bottom, adjust height of background div to cover
			if(servBottom > (bgBottom-20)){
				bgDiv.css("height",(servBottom+20)+"px");
			}
		}
		//customize modal fix
		if(custDiv.is(":visible") && custDiv.height() > 0){
			//get customize modal values
			var custPosition = custDiv.offset();
			var custLeft = custPosition.left;
			var custTop = custPosition.top;
			var custWidth = custDiv.width();
			var custHeight = custDiv.height();
			var custBottom = custHeight + custTop;
			var custRight = custWidth + custLeft;
			var custMargin = custDiv.css("margin-left").replace(/px/,'');
			//could use position:fixed but then offscreen to the right fix breaks
			//if offscreen to bottom, adjust height of background div to cover
			if(custBottom > (bgBottom-20)){
				bgDiv.css("height",(custBottom+20)+"px");
			}
			//only adjust right offscreen if page is bigger than 900px, prevents conflict with profileBox fix
			if(pageWidth > 900){
				//if offscreen to right
				if(custRight > (bgWidth-20)) {
					//simply move modal inside right edge of window
					custMargin = custMargin-(Math.abs(custRight-bgWidth)+20);
					custDiv.animate({marginLeft:custMargin+"px"},200);
				}
			}
			//if offscreen to left
			if(custLeft < 20){
				//simply modal inside left edge of window
				custMargin = (Math.abs(custMargin)-Math.abs(custLeft)-20);
				custDiv.animate({marginLeft:"-"+custMargin+"px"},200);
			}
		}
*/
	},
	windowResizeFix: function() {
		//slight delay to allow for browser resize event firing method
		$.doTimeout('window-resize-fix', 50, function() {
			UserProfile.offScreenFix(true);
		});
	},
	dateProcess: function(ds,format){
    	//datestamp
    	var regex = /\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d/;
    	if (ds.match(regex)) {
    		// date string is in expected format
    		ds = ds.replace(/-/g,'/');
    		var dateobj = new Date(Date.parse(ds));
    		if(!format){
	    		ds = dateobj.format('mmmm d, yyyy');
	    	} else {
	    		ds = dateobj.format(format);
	    	}
    		return ds;
    	} else {
    		//if doesn't match pattern, just return string for now
    		return ds;
    	}
	},
	setLinkLineHeight: function() {
		// this function ensures that link text is always centered relative to the favicon
		var h = $('.profile ul.links li span.displayname').height();
		h = Math.max(h,20);
		$('.profile ul.links li').css('line-height',h+'px');
	}
};
$(document).ready(UserProfile.init);
$(window).bind("load", function(){ UserProfile.offScreenFix(false) });
$(window).resize(UserProfile.windowResizeFix);
var UserSettings = {
	colors: {
		color_input				: '',
		background_color		: '000',
		profile_color			: '000000',
		profile_opacity			: 53,
		heading_color			: 'FFF',
		bio_color				: 'FFF',
		name_color				: 'FFF',
		links_color				: '2B82AD'
	},
	fonts: {
		typekitEnabled: true,
		font_name: 'proxima-nova-1,proxima-nova-2',
		font_name_size: 80,
		font_heading: 'proxima-nova-1,proxima-nova-2',
		font_heading_size: 22,
		font_bio: 'proxima-nova-1,proxima-nova-2',
		font_bio_size: 14,
		font_findme: 'proxima-nova-1,proxima-nova-2',
		font_findme_size: 14,
		font_kit: 'vfg7kbz'
	},
	profile: {
		profile_width: 450,
		text_left: -598,
		text_top: -598,
		bg_offset: 0
	},
	images: {
		background_image: 'http://d13pix9kaak6wt.cloudfront.net/background/allthefunofthefairground.jpg',
		background_height: 1050,
		background_width: 1680,
		background_repeat: 'center',
		profile_image: 'http://d13pix9kaak6wt.cloudfront.net/profile/albryce_1314986566_06.jpg',
		avatar_image: 'http://d13pix9kaak6wt.cloudfront.net/avatar/albryce_1314986566_06.jpg'
	},
	getAvatarSize: function() {
		UserSettings.images.avatar_width = $('.avatartest img').width();
		UserSettings.images.avatar_height = $('.avatartest img').height();
		TypeTools.updateAvatarHeight();
	}
};
// Twitter follow
/*
$('#twitter_follow').click(function () {
    $('#twitter_follow').hide();
    $('#twitter_follow_loader').show();
    $.ajax({
        type: 'POST',
        url: '/twitter/follow',
        data: {'target_id': ''},
        success: function (data) {
            // AJAX loader hide
            $('.loader').hide();
            if (data['success'] == true) {
                $('.twitter.invite').html('You are now following ');
            } else {
                $('#twitter_follow').show();
                $('.twitter.invite').html(data['error']);
            }
        },
        dataType: "json"
    });
});
*/
// Instagram follow
$('#instagram_follow').click(function () {
    $('#instagram_follow').hide();
    $('#instagram_follow_loader').show();
    $.ajax({
        type: 'POST',
        url: '/instagram/follow',
        data: {'target_id': ''},
        success: function (data) {
            // AJAX loader hide
            $('.loader').hide();
            if (data['success'] == true) {
                $('#instagram_follow_div').html('You are now following ');
            } else {
                $('#instagram_follow').show();
                $('#instagram_follow_div').html(data['error']);
            }
        },
        dataType: "json"
    });
});
// Foursquare Friend Request
$('#foursquare_friend_request').click(function(){
    $('#foursquare_friend_request').hide();
    $('#foursquare_friend_request_loader').show();
    $.ajax({
        type: 'POST',
        url: '/foursquare/send_friend_request',
        data: {'target_id': ''},
        success: function (data) {
            // AJAX loader hide
            $('#foursquare_friend_request_loader').hide();
            if (data['success'] == true) {
                $('#foursquare_follow').html('You are now following this user');
            } else {
                $('#foursquare_friend_request').show();
                $('#foursquare_follow').html(data['error']);
            }
        },
        dataType: "json"
    });
    return false;
});
// Send a Message modal
$("#emailme").dialog({
    autoOpen: false,
    bgiframe: true,
    modal: true,
    width: 550,
    draggable: true,
    resizable: false,
    buttons: {
    	"Send": function() {
    		$('.alarum').hide();
		    valid = true;
		    if ($("#message_text").val().length == 0) {
		        valid = false;
		        $('#message_invalid').show();
		    }
		    if ($("#message_name").val().length == 0) {
		        valid = false;
		        $('#name_invalid').show();
		    }
		    if ($("#message_email").val().length == 0 || !email_validate($("#message_email").val()) ) {
		        valid = false;
		        $('#email_invalid').show();
		    }
		    if (!valid) {
		        return;
		    }
		    // AJAX loader show and hide send message button
		    $('#emailme').parent().find('.ui-dialog-buttonpane').hide();
		    $('#send_message_loader').show();
		    $.ajax({
		        type: 'POST',
		        url: '/send_message/albryce',
		        data: {'message': $("#message_text").val(), 'name': $("#message_name").val(), 'email': $("#message_email").val()},
		        success: function (data) {
		            // AJAX loader hide
		            $('.loader').hide();
		            if (data['success'] == true) {
		            	$("#emailme").dialog('close');
		            	$('#emailme').html("<p>You cannot email this user again right now. Please try again tomorrrow.</p>")
		            	AboutMe.banner('Your message has been sent!');
		            } else {
		                $('#message_error').show().html(data['error']);
		                $('#emailme').parent().find('.ui-dialog-buttonpane').show();
		            }
		        },
		        dataType: "json"
		    });
    	}
	},
	open: function(event, ui) {
		$("#emailme .alarum").hide();
		$(".ui-dialog-cancel-link").remove();
    	$("#emailme").parent().find('.ui-dialog-buttonpane').append('<span class="ui-dialog-cancel-link">or <a href="#" id="send_no">Cancel</a></span>');
        $('#send_no').click(function() {
            $("#emailme").dialog('close');
        });
	}
});
$("#askmeaquestion").dialog({
    autoOpen: false,
    bgiframe: true,
    modal: true,
    width: 550,
    draggable: true,
    resizable: false,
    buttons: {
    	"Ask": function() {
    		$('.alarum').hide();
		    valid = true;
		    if ($("#question_text").val().length == 0){
		        valid = false;
		        $('#question_text_invalid').show();
		    }
		    if (!valid) {
		        return;
		    }
		    // AJAX loader show and hide send message button
		    $('#emailme').parent().find('.ui-dialog-buttonpane').hide();
		    $('#send_message_loader').show();
		    $.ajax({
		        type: 'POST',
		        url: '/send_message/albryce',
		        data: {'question': $("#message_subject").val(), 'message': $("#message_text").val(), 'name': $("#message_name").val(), 'email': $("#message_email").val()},
		        success: function (data) {
		            // AJAX loader hide
		            $('.loader').hide();
		            if (data['success'] == true) {
		                $('#emailme').html('<div class="clear skip twenty"></div><div>Your message has been sent!</div>');
		                $('#emailme').parent().find('.ui-dialog-buttonpane').empty();
		                $('#emailme').parent().find('.ui-dialog-buttonpane').append('<button type="submit" onclick="$(\'#emailme\').dialog(\'close\')" class="button">Ok, Thanks!</button>');
		                //setTimeout("$('#emailme').dialog('close')",5000);//commented out until all dialogs can match behavior
		            } else {
		                $('#message_error').show().html(data['error']);
		                $('#emailme').parent().find('.ui-dialog-buttonpane').show();
		            }
		        },
		        dataType: "json"
		    });
    	}
	},
	open: function(event, ui) {
		$("#emailme .alarum").hide();
		$(".ui-dialog-cancel-link").remove();
    	$("#emailme").parent().find('.ui-dialog-buttonpane').append('<span class="ui-dialog-cancel-link">or <a href="#" id="send_no">Cancel</a></span>');
        $('#send_no').click(function() {
            $("#emailme").dialog('close');
        });
	}
});
//Share This Profile Dialog
$("#share-profile").dialog({
    autoOpen: false,
    bgiframe: true,
    modal: true,
    width: 430,
    draggable: false,
    resizable: false,
    open:function(event, ui) {
    	$('#share-profile #share-facebook').click(function() {
			u = "http://about.me/albryce";
			window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u), "sharer", "toolbar=0, status=0 , width=626, height=436"); return false;
		});
    }
});
$("#share-profile-modal").click(function(){ $("#share-profile").dialog('open'); });
Carousel.userPopulate = function(){
//
//
//dailybooth populate
//
//
//end dailybooth populate
//flickr populate
//
//
//end flickr populate
//facebookpage photo populate
//
//
//end facebookpage photo populate
//facebookpage video populate
//
//
//end facebookpage video populate
//instagram populate
//
//
//end instagram populate
//facebook_photos populate
//
//
//end facebook_photos populate
//facebook_friends populate
//
//
//end facebook_friends populate
//foursquare_friends populate
//
//
//end foursquare_friends populate
//foursquare_badges populate
//
//
//end foursquare_badges populate
//vimeo populate
//
//
//end vimeo populate
//youtube populate
//
//
//end youtube populate
//
//
//dailybooth populate
//
//
//end dailybooth populate
//flickr populate
//
//
//end flickr populate
//facebookpage photo populate
//
//
//end facebookpage photo populate
//facebookpage video populate
//
//
//end facebookpage video populate
//instagram populate
//
//
//end instagram populate
//facebook_photos populate
//
//
//end facebook_photos populate
//facebook_friends populate
//
//
//end facebook_friends populate
//foursquare_friends populate
//
//
//end foursquare_friends populate
//foursquare_badges populate
//
//
//end foursquare_badges populate
//vimeo populate
//
//
//end vimeo populate
//youtube populate
//
//
//end youtube populate
//
//
//dailybooth populate
//
//
//end dailybooth populate
//flickr populate
//
//
//end flickr populate
//facebookpage photo populate
//
//
//end facebookpage photo populate
//facebookpage video populate
//
//
//end facebookpage video populate
//instagram populate
//
//
//end instagram populate
//facebook_photos populate
//
//
//end facebook_photos populate
//facebook_friends populate
//
//
//end facebook_friends populate
//foursquare_friends populate
//
//
//end foursquare_friends populate
//foursquare_badges populate
//
//
//end foursquare_badges populate
//vimeo populate
//
//
//end vimeo populate
//youtube populate
//
//
//end youtube populate
//
//
//dailybooth populate
//
//
//end dailybooth populate
//flickr populate
//
//
//end flickr populate
//facebookpage photo populate
//
//
//end facebookpage photo populate
//facebookpage video populate
//
//
//end facebookpage video populate
//instagram populate
//
//
//end instagram populate
//facebook_photos populate
//
//
//end facebook_photos populate
//facebook_friends populate
//
//
//end facebook_friends populate
//foursquare_friends populate
//
//
//end foursquare_friends populate
//foursquare_badges populate
//
//
//end foursquare_badges populate
//vimeo populate
//
//
//end vimeo populate
//youtube populate
//
//
//end youtube populate
//
//
//dailybooth populate
//
//
//end dailybooth populate
//flickr populate
//
//
//end flickr populate
//facebookpage photo populate
//
//
//end facebookpage photo populate
//facebookpage video populate
//
//
//end facebookpage video populate
//instagram populate
//
//
//end instagram populate
//facebook_photos populate
//
//
//end facebook_photos populate
//facebook_friends populate
//
//
//end facebook_friends populate
//foursquare_friends populate
//
//
//end foursquare_friends populate
//foursquare_badges populate
//
//
//end foursquare_badges populate
//vimeo populate
//
//
//end vimeo populate
//youtube populate
//
//
//end youtube populate
//
//
//dailybooth populate
//
//
//end dailybooth populate
//flickr populate
//
//
//end flickr populate
//facebookpage photo populate
//
//
//end facebookpage photo populate
//facebookpage video populate
//
//
//end facebookpage video populate
//instagram populate
//
//
//end instagram populate
//facebook_photos populate
//
//
//end facebook_photos populate
//facebook_friends populate
//
//
//end facebook_friends populate
//foursquare_friends populate
//
//
//end foursquare_friends populate
//foursquare_badges populate
//
//
//end foursquare_badges populate
//vimeo populate
//
//
//end vimeo populate
//youtube populate
//
//
//end youtube populate
//
//
//dailybooth populate
//
//
//end dailybooth populate
//flickr populate
//
//
//end flickr populate
//facebookpage photo populate
//
//
//end facebookpage photo populate
//facebookpage video populate
//
//
//end facebookpage video populate
//instagram populate
//
//
//end instagram populate
//facebook_photos populate
//
//
//end facebook_photos populate
//facebook_friends populate
//
//
//end facebook_friends populate
//foursquare_friends populate
//
//
//end foursquare_friends populate
//foursquare_badges populate
//
//
//end foursquare_badges populate
//vimeo populate
//
//
//end vimeo populate
//youtube populate
//
//
//end youtube populate
//
//
};
$(document).ready(function(){ Carousel.userPopulate();Carousel.mainNavButtons(); });
//
</script>
<script type="text/javascript">
//
// do we need the stuff in this script block anymore? can we refactor it into a code module somewhere?
$('#facebook_tab').click(function() {
    toggle_tab_active(this);
    $('#facebook_container').show().siblings().hide();
});
$('#twitter_expand').click(function() {
    if ($(this).hasClass("expand")) {
        $(this).html("See Less");
        $(this).attr('href', '#twitter_datastack_expand');
        $('.hidden.twds_item').slideDown();
    } else {
        $(this).html("See More");
        $(this).attr('href', '#twitter_datastack_expand');
        $('.hidden.twds_item').slideUp();
    }
    $(this).toggleClass("expand");
});
//
</script>
<script type="text/javascript">
//
var FaveProfile = {
	init: function() {
		//$('a#add-profile-button').closest('li').not('.disabled').find('a').bind('click.add',FaveProfile.add);
		FaveProfile.button = $('.profile .actions .favebutton').click(FaveProfile.toggle);
	},
	toggle: function() {
		if (FaveProfile.button.hasClass('button-busy')) return;
		if (FaveProfile.button.hasClass('button-disabled')) return;
		FaveProfile.button.addClass('button-busy');
		if (FaveProfile.button.hasClass('faved')) {
			FaveProfile.submit('remove');
		} else {
			FaveProfile.submit('add');
		}
	},
	submit: function(action) {
		if (action != 'add' && action != 'remove') throw "Invalid fave action.";
		var input = {
			action: action,
			user: 'albryce'
		};
		var options = {
			success: function(output,options,api_call,textStatus) {
				FaveProfile.success(input,output);
			},
			error: function(output,options,api_call,textStatus) {
				FaveProfile.error(input,output);
			}
		};
		AboutMe.ajax.post('personal_directory', input, options);
		return false;
	},
	success: function(input,output) {
		FaveProfile.button.removeClass('button-busy');
		switch(input.action) {
			case 'add':
				FaveProfile.button.addClass('faved');
				AboutMe.banner($('div.displayname').text()+' has been added to your <a href="/dashboard/#!/favorites">Favorites</a>.');
				break;
			case 'remove':
				FaveProfile.button.removeClass('faved');
				AboutMe.banner($('div.displayname').text()+' has been removed from your <a href="/dashboard/#!/favorites">Favorites</a>.');
				break;
		}
	},
	error: function(input,output) {
		FaveProfile.button.removeClass('button-busy');
		if (output.error == 100) {
			FaveProfile.button.addClass('faved');
			AboutMe.banner($('div.displayname').text()+' is already in your <a href="/dashboard/#!/favorites">Favorites</a>.',{status:'warning'});
		} else if (output.error == 101) {
			FaveProfile.button.addClass('button-disabled');
			AboutMe.banner('You can\'t fave yourself.',{status:'warning'});
		} else {
			switch(input.action) {
				case 'add':
					AboutMe.banner('There was a problem adding '+$('div.displayname').text()+' to your Favorites. Please try again later.',{status:'error'});
					break;
				case 'remove':
					AboutMe.banner('There was a problem removing '+$('div.displayname').text()+' from your Favorites. Please try again later.',{status:'error'});
					break;
			}
		}
	},
	disableMenuItem: function() {
		$('a#add-profile-button').unbind('click.add').closest('li').addClass('disabled');
	}
};
$(document).ready(FaveProfile.init);
var FlagProfile = {
	init: function() {
		$('a#flag-profile-link').closest('li').not('.disabled').find('a').bind('click.flag',FlagProfile.confirm);
	},
	confirm: function() {
		AboutMe.confirm('Are you sure you want to flag this profile for abuse?',FlagProfile.flag);
		return false;
	},
	flag: function(confirmed) {
		if (confirmed != true) return;
		var input = {
			action: 'flag',
			user: 'albryce'
		};
		var options = {
			success: function(output,options,api_call,textStatus) {
				FlagProfile.success(input,output);
			},
			error: function(output,options,api_call,textStatus) {
				FlagProfile.error(input,output);
			}
		};
		AboutMe.ajax.post('flag', input, options);
		return false;
	},
	success: function(input,output) {
		FlagProfile.disableMenuItem();
		AboutMe.banner('This profile has been flagged for review.');
	},
	error: function(input,output) {
		AboutMe.banner('There was a problem flagging this profile. Please try again later.',{status:'warning'});
		debug(output);
	},
	disableMenuItem: function() {
		$('a#flag-profile-link').unbind('click.flag').closest('li').addClass('disabled');
	}
};
$(document).ready(FlagProfile.init);
//
</script>
<script type="text/javascript" charset="utf-8">
//
$(".button").disableSelection();
$(function() {
	rgbaSupport();
	rgbaFallback("000000", 53);
	var bioBoxHex = "000000";
	var bioBoxRGB = hexToRGB(bioBoxHex);
	var bioBoxOpacity = 53;
	var bioBoxOpacityIE = Math.floor((bioBoxOpacity/100) * 255).toString(16);
	if(bioBoxOpacity<7) {
		bioBoxOpacityIE = "0"+bioBoxOpacityIE;
	}
	bioBoxOpacity = bioBoxOpacity/100;
	if($.browser.msie && ($.browser.version < 9)) {
		$("div.profile").css("background","transparent").css("filter", "progid:DXImageTransform.Microsoft.gradient(startColorstr=#"+bioBoxOpacityIE+"000000,endColorstr=#"+bioBoxOpacityIE+"000000)"); //ie7
		$("div.profile").css("-ms-filter", "progid:DXImageTransform.Microsoft.gradient(startColorstr=#"+bioBoxOpacityIE+"000000, endColorstr=#"+bioBoxOpacityIE+"000000)"); //ie8
	} else {
		$("div.profile").css( "background", "rgba("+bioBoxRGB + "," + bioBoxOpacity+")" );
	}
});
/*determines browser rgba support*/
function rgbaSupport() {
	$('body').append('<div id="rgbatest"></div>');
	var testColor = "rgba(0,0,0,0.5)";
	try {
		$('#rgbatest').css("color",testColor);
		var testingColor = $('#rgbatest').css("color");
		var rgbResult = /^rgba/.test(testingColor);
	} catch(e) {}
	$('div#rgba_test').remove();
	if(rgbResult === false && !$.browser.msie) { $('body').addClass('no-rgba'); }
}
/*converts hex to rgb*/
function hexToRGB(hex) {
	if(hex.charAt(0) == "#") hex = hex.slice(1); //Remove the '#' char - if there is one.
	hex = hex.toUpperCase();
	var hex_alphabets = "0123456789ABCDEF";
	var value = new Array(3);
	var k = 0;
	var int1,int2;
	for(var i=0;i<6;i+=2) {
		int1 = hex_alphabets.indexOf(hex.charAt(i));
		int2 = hex_alphabets.indexOf(hex.charAt(i+1));
		value[k] = (int1 * 16) + int2;
		k++;
	}
	return(value);
}
// fallback function when rgba isn't available
function rgbaFallback(color, opacity) {
	if($('body').hasClass('no-rgba')) {
		if(opacity <= 10) {
			$("div.profile").css("background", "none");
			$("#profile-bevel").css("visibility", "hidden");
		} else {
			$("div.profile").css("background", color);
			Bevel.updateBevel(color);
		}
	}
}
//
</script>
<script type="text/javascript">
	var where_from = document.referrer;
	if(where_from.match("/directory/")) debug("from directory");
    function runOmni()
    {
    s_265.pfxID="ame";
    s_265.pageName="view profile";
    s_265.channel="us.aboutme";
    s_265.linkInternalFilters="javascript:,about.me";
    s_265.prop1="profile";
    s_265.prop2="view";
    s_265.prop12=document.URL.split('?')[0];
    s_265.prop16="/albryce";
    if(where_from.match("/directory/")) s_265.prop17 = "spotlight";
    s_265.mmxcustom="http://about.me/profile";
    s_265.mmxtitle="View profile on about.me";
    s_265.mmxgo=true;
    var s_code=s_265.t();
    }
    if(AboutMe.g.OMNITURE_SERVER == 'Test'){
        s_account ="aoltestdev,devaolsvc";
    } else if (AboutMe.g.OMNITURE_SERVER == 'Prod') {
        s_account ="aolaboutme,aolsvc";
    }
    (function(){
        var d = document, s = d.createElement('script');
        s.type = 'text/javascript';
        s.src = (location.protocol == 'https:' ? 'https://s' : 'http://o') + '.aolcdn.com/omniunih.js';
        d.getElementsByTagName('head')[0].appendChild(s);
    })();
</script>
<script type="text/javascript">
var fontsToLoad = {
	items: [
		["font_name", "proxima-nova-1,proxima-nova-2"],
		["font_heading", "proxima-nova-1,proxima-nova-2"],
		["font_findme", "proxima-nova-1,proxima-nova-2"],
		["font_bio", "proxima-nova-1,proxima-nova-2"]
	]
};
$(window).bind("load",function(){TypeTools.fontLoad(fontsToLoad);});
</script>
    <!--Google analytics-->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-17228769-1']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
    <script type="text/javascript">
    //
        $(function () {
            $('a').not('.stats-notrack').click(function () {
                $.getJSON('/jst/outbound.js?callback=?',{'location':this.href,'random':Math.random()});
            });
        });
        var _kiq = _kiq || [];
        (function(u){
            var s = document.createElement('script'), f = document.getElementsByTagName('script')[0];
            s.type = 'text/javascript'; s.async = true;
            s.src = '//s3.amazonaws.com/j.kissinsights.com/u/' + u + '.js?' + (5*Math.floor(new Date().getMinutes()/5));
            f.parentNode.insertBefore(s, f);
        })('134/01ee118052a9f5cc58b7534ca204e1b29e390145');
    //
    </script>
	<!-- KISSinsights for about.me -->
	<script type="text/javascript" charset="utf-8">
		_kiq.push(['showSurvey', 34467]);
	</script>
	<!-- billboard contest voting -->
<script>
//
	var BillboardVote = {
		config: {
			sticky: true,
			minimized: $.cookie('billboard_minimized',{path:'/'}),
			type: 'billboard',
			mintext: 'Vote!',
			width: 250
		},
		init: function() {
			var o = $.extend({}, BillboardVote.config,o);
			if ('False' == '') o.mintext = "Sign up!";
			if ($.cookie('billboard_minimized',{path:'/'}) == null) {
				$.cookie('billboard_minimized','false',{ expires: 7, path:'/'});
			}
			//move over modal IF user hasn't moved it yet (defaults to -35) and it's overlapping bubble
			if ($('.customize').length && '-35' === '-35'){
				var offsetRight = $(window).width() - ($('.customize').offset().left + $('.customize').outerWidth());
				var targetOffsetRight = o.width + 35;
				var overlap =  targetOffsetRight - offsetRight ;
				if (overlap > 0){
				   $('.customize').stop(true).css('margin-left', -35-overlap );
				}
			};
            if ('' && 'albryce' == AboutMe.g.user_profile.user_name.toLowerCase()){  //if logged in and viewing own profile/stats/edit
				if ('False' == 'True') {
					BillboardVote.display_tally(o);
				} else {
					BillboardVote.display_opt_in(o);
				};
			} else if ('False' == 'True') { //either logged-in and and viewing a profile that is not your own, or not logged-in and viewing any profile (either way, profile is opted-in)
				BillboardVote.display_vote(o);
			};
		},
		display_tally: function(o, data){
            var stats = {
                count: 0,
                percent: 99
            };
            $.extend(stats, data);
			var hh = ''
			hh += '<h4>Be the face of about.me</h4>';
			if (stats.percent < 51 ){
				hh += '<h5>You’re in the top ' + stats.percent + '%<br>with'
			} else {
				hh += '<h5>You have';
			};
			hh += ' ' + stats.count + ' vote';
			hh += stats.count != 1 ? 's' : '';
			hh += '!</h5>'
			hh += '<p class="share">Share your page to get more:</p>';
			hh += '<ul class="share-buttons clearfix">';
			hh += '	<li><a class="button button-icon button-twitter" title="Share your page on Twitter" href="http://twitter.com/intent/tweet?text=Vote+for+me+to+be+the+face+of+&#64;aboutdotme+on+a+Times+Square+billboard:+http://about.me/albryce" target="_blank"><span class="button-content"></span></a></li>';
			hh += '	<li><a class="button button-icon button-facebook" title="Share your page on Facebook" href="http://www.facebook.com/share.php?u=http://about.me/albryce" target="_blank"><span class="button-content"></span></a></li>';
			hh += '	<li><a class="button button-icon button-email" title="Share your page via email" href="/share?msg=billboard_in"><span class="button-content"></span></a></li>';
			hh += '</ul>';
			hh += '<p><a href="/inTimesSquare">Contest Information</a></p>';
			hh += '<p class="fineprint">Numbers subject to confirmation</p>';
			if ($('.bubble-billboard').length) {
				$('.bubble-billboard').find('.bubble-max span').html('Share!');
				$('.bubble-billboard').find('.message-content').html(hh);
			} else {
				o.mintext = "Share!"
				AboutMe.bubble(hh,o);
			};
		},
		display_opt_in: function(o){
			var hh = '';
			hh += '<h4>Be the face of about.me</h4>';
			hh += '<p>Enter our contest for a chance to be the face of about.me and star on a Times Square billboard.<br><a href="/inTimesSquare">More information...</a></p>';
			hh += '<ul class="opt_in-offer clearfix">';
			hh += '	<li>';
			hh += '<span class="button opt_in button-medlarge button-default km-billboard-optin">';
			hh += '	<span class="button-content">Opt-in Now</span>';
			hh += '</span>';
			hh += '</li>'
			hh += '	<li><span class="opt_out"><a href="#">No Thanks</a></span></a></li>';
			hh += '</ul>';
			$('.bubble-billboard').remove();
			var dd = AboutMe.bubble(hh,o);
			dd.find('.opt_in').click(BillboardVote.set_opt_in);
			dd.find('.opt_out').click(BillboardVote.set_opt_out);
		},
		display_vote: function(o){
			var hh = ''
			hh += '<h4>Be the face of about.me</h4>';
			hh += '<p class="buttons">';
			hh += '<span class="button button-vote button-medlarge button-default">';
			hh += '	<span class="button-content">Vote for this profile!</span>';
			hh += '</span>';
			hh += '</p>';
			hh += '<p class="moreinfo"><a href="/inTimesSquare">What is This?</a></p>';
			$('.bubble-billboard').remove();
			var dd = AboutMe.bubble(hh,o);
			dd.find('.button-vote').click(BillboardVote.submit_vote);
		},
		set_opt_in: function(e){
			var dd = $(e.target).closest('.bubble');
			var options = {
				success: function(output,options,api_call,textStatus){
					BillboardVote.display_tally(dd, output);
				},
				error: function(output,options,api_call,textStatus) {
				}
			}
			AboutMe.ajax.post('billboard_offer',{opt_in: true},options);
		},
		set_opt_out: function(e){
			var options = {
				success: function(output,options,api_call,textStatus){
					var dd = $(e.target).closest('.bubble');
					dd.fadeOut();
				},
				error: function(output,options,api_call,textStatus) {
				}
			}
			AboutMe.ajax.post('billboard_offer',{opt_in: false},options);
		},
		submit_vote: function() {
			var data = {
				election: 'billboard',
				vote: '570596'
			};
			var options = {
				success: function(returneddata,options,api_call,textStatus) {
					var hh = '';
					hh += '<h4>Be the face of about.me</h4>';
					hh += '<div>';
					hh += '<h5>Thanks for Voting!</h5>';
					if (!'') hh += '<p class="cta"><a href="/?NCID=billboardbubble">Create your own about.me page and enter to win.</a></p>';
					hh += '<ul class="share-buttons clearfix">';
					hh += '<li>Share your vote:</li>';
					hh += '<li><a class="button button-icon button-twitter" title="Share your vote on Twitter" href="http://twitter.com/intent/tweet?text=I+just+voted+for+http://about.me/albryce+to+be+the+face+of+&#64;aboutdotme+on+a+Times+Square+billboard.+Vote+for+this+profile!" target="_blank"><span class="button-content"></span></a></li>';
					hh += '<li><a class="button button-icon button-facebook" title="Share your vote on Facebook" href="http://www.facebook.com/share.php?u=http://about.me/albryce" target="_blank"><span class="button-content"></span></a></li>';
					if ('') hh += '<li><a class="button button-icon button-email" title="Share your vote via email" href="/share?msg=billboard_voted&profile=albryce"><span class="button-content"></span></a></li>';
					hh += '</ul>';
					hh += '</div>';
					$('.bubble-billboard .message-content').html(hh);
				},
				error: function(returneddata,options,api_call,textStatus) {
					debug("error: "+returneddata.error);
					var hh = '';
					hh += '<h4>Be the face of about.me</h4>';
					hh += '<div>';
					switch (returneddata.error) {
						case 100:
							hh += '<h5>Oops!</h5>';
							hh += '<p class="cta">You\'ve already voted for this page today, but come back tomorrow to vote again.</p>';
							if (!'') hh += '<p class="cta"><a href="/?NCID=billboardbubble">Create your own about.me page and enter to win.</a></p>';
							break;
						default:
							hh += '<h5>Sorry, there\'s been an error</h5>';
					}
					hh += '</div>';
					$('.bubble-billboard .message-content').html(hh);
				}
			};
			AboutMe.ajax.post('vote', data, options);
		}
	};
//
</script>
</body>
</html>