
var menu315={divclass:'sociallinks315',inlinestyle:'visibility:hidden',linktarget:'secwin'};menu315.cols={divclass:'column',inlinestyle:''};menu315.items=[["Blip.fm","146","http://blip.fm/AlexMerced"],["YouTube","113","http://www.youtube.com/user/AlexMerced"],["Twitter","106","http://www.twitter.com/alexmerced"],["Tumblr","144","http://alexmerced.tumblr.com"],["Ning","140","http://alexmercedrocks.ning.com"],["Myspace","92","http://www.myspace.com/alexmerced2"],["Mashable","143","http://my.mashable.com/alexmerced","efc"],["LinkedIn","120","http://www.linkedin.com/in/alexmerced"],["Last.fm","150","http://www.last.fm/user/alexmerced"],["Google Profile","167","http://www.google.com/profiles/AlexMercedFNM"],["FriendFeed","126","http://friendfeed.com/alexmerced"],["Flickr","123","http://www.flickr.com/photos/27891213@N06/"],["Facebook","75","http://www.facebook.com/pages/AlexMercedcom/75061568585"],["All Social Sites...","","popUp(400,100,600,300,1);"]];var socialfollow={menusmap:{},effects:{delayhide:200,shadow:{enabled:true,opacity:0.3,depth:[5,5]},fade:{enabled:false,duration:500}},dimensions:{},getoffset:function(what,offsettype){return(what.offsetParent)?what[offsettype]+this.getoffset(what.offsetParent,offsettype):what[offsettype]},getoffsetof:function(el){el._offsets={left:this.getoffset(el,"offsetLeft"),top:this.getoffset(el,"offsetTop"),h:el.offsetHeight}},getdimensions:function(menu){this.dimensions={anchorw:menu.anchorobj.offsetWidth,anchorh:menu.anchorobj.offsetHeight,docwidth:(window.innerWidth||this.standardbody.clientWidth)-20,docheight:(window.innerHeight||this.standardbody.clientHeight)-15,docscrollx:window.pageXOffset||this.standardbody.scrollLeft,docscrolly:window.pageYOffset||this.standardbody.scrollTop}
if(!this.dimensions.dropmenuw){this.dimensions.dropmenuw=menu.dropmenu.offsetWidth;this.dimensions.dropmenuh=menu.dropmenu.offsetHeight;}},isContained:function(m,e){var e=window.event||e;var c=e.relatedTarget||((e.type=="mouseover")?e.fromElement:e.toElement)
while(c&&c!=m)try{c=c.parentNode}catch(e){c=m}
return(c==m)?true:false;},setopacity:function(el,value){el.style.opacity=value;if(typeof el.style.opacity!="string"){el.style.MozOpacity=value;if(el.filters)el.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+value*100+")"}},showmenu:function(menuid){var menu=socialfollow.menusmap[menuid];clearTimeout(menu.hidetimer);this.getoffsetof(menu.anchorobj);this.getdimensions(menu);var posx=menu.anchorobj._offsets.left+(menu.orientation=="lr"?this.dimensions.anchorw:0);var posy=menu.anchorobj._offsets.top+this.dimensions.anchorh-(menu.orientation=="lr"?this.dimensions.anchorh:0)
if(posx+this.dimensions.dropmenuw+this.effects.shadow.depth[0]>this.dimensions.docscrollx+this.dimensions.docwidth){posx=posx-this.dimensions.dropmenuw+(menu.orientation=="lr"?-this.dimensions.anchorw:this.dimensions.anchorw);}
if(posy+this.dimensions.dropmenuh>this.dimensions.docscrolly+this.dimensions.docheight){posy=Math.max(posy-this.dimensions.dropmenuh-(menu.orientation=="lr"?-this.dimensions.anchorh:this.dimensions.anchorh),this.dimensions.docscrolly);}
if(this.effects.fade.enabled){this.setopacity(menu.dropmenu,0);if(this.effects.shadow.enabled)this.setopacity(menu.shadow,0);}
menu.dropmenu.setcss({left:posx+'px',top:posy+'px',visibility:'visible'});if(this.effects.shadow.enabled){menu.shadow.setcss({left:posx+socialfollow.effects.shadow.depth[0]+'px',top:posy+socialfollow.effects.shadow.depth[1]+'px',visibility:'visible'});}
if(this.effects.fade.enabled){clearInterval(menu.animatetimer);menu.curanimatedegree=0;menu.starttime=new Date().getTime();menu.animatetimer=setInterval(function(){socialfollow.revealmenu(menuid)},20);}},revealmenu:function(menuid){var menu=socialfollow.menusmap[menuid];var elapsed=new Date().getTime()-menu.starttime;if(elapsed<this.effects.fade.duration){this.setopacity(menu.dropmenu,menu.curanimatedegree);if(this.effects.shadow.enabled)this.setopacity(menu.shadow,menu.curanimatedegree*this.effects.shadow.opacity);}else{clearInterval(menu.animatetimer);this.setopacity(menu.dropmenu,1);menu.dropmenu.style.filter="";}
menu.curanimatedegree=(1-Math.cos((elapsed/this.effects.fade.duration)*Math.PI))/2;},setcss:function(param){for(prop in param){this.style[prop]=param[prop];}},hidemenu:function(menuid){var menu=socialfollow.menusmap[menuid];clearInterval(menu.animatetimer);menu.dropmenu.setcss({visibility:'hidden',left:0,top:0});menu.shadow.setcss({visibility:'hidden',left:0,top:0});},getElementsByClass:function(targetclass){if(document.querySelectorAll){return document.querySelectorAll("."+targetclass);}else{var classnameRE=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)","i");var pieces=[];var alltags=document.all?document.all:document.getElementsByTagName("*");for(var i=0;i<alltags.length;i++){if(typeof alltags[i].className=="string"&&alltags[i].className.search(classnameRE)!=-1)pieces[pieces.length]=alltags[i];}
return pieces;}},addDiv:function(divid,divclass,inlinestyle){var el=document.createElement("div");if(divid)el.id=divid;el.className=divclass;el.style.cssText=inlinestyle;document.body.appendChild(el);return el;},getmenuHTML:function(menuobj){var menucontent=[];var frag="";for(var i=0;i<menuobj.items.length;i++){if(menuobj.items[i][0]=="All Social Sites..."){frag+='<li><a href="javascript:popUp(400,100,600,300,1);" class="allSites">'+menuobj.items[i][0]+'</a></li>\n';menucontent.push(frag);frag="";}else{var socialSite=menuobj.items[i][0];var socialSiteID=menuobj.items[i][1];var socialSiteLink=menuobj.items[i][2];frag+='<li><a class="c'+socialSiteID+'" href="http://www.socialfollow.com/button/link?b=315&amp;l='+socialSiteLink+'&amp;r='+document.referrer+'&amp;s='+socialSiteID+'" target="'+menuobj.linktarget+'">'+socialSite+'</a></li>\n';if(menuobj.items[i][3]=="efc"||i==menuobj.items.length-1){menucontent.push(frag);frag="";}}}
if(typeof menuobj.cols=="undefined"){return'<ul>\n'+menucontent.join('')+'\n</ul>';}else{frag="<div style='padding: 0 3px;'>";for(var i=0;i<menucontent.length;i++){frag+='<div class="'+menuobj.cols.divclass+'" style="'+menuobj.cols.inlinestyle+'">\n<ul>\n'+menucontent[i]+'</ul>\n</div>\n';}
frag+="</div>";frag+='<div class="paddingSmall"><div class="socialFollowLink"><a href="http://www.socialfollow.com/" target="_blank"><img src="http://www.socialfollow.com/button/image-link/?b=315&amp;r='+document.referrer+'" border="0" alt="Get your own Social Follow button!" /></a></div></div>';frag+='<div class="bottomBorder">&nbsp;</div>';return frag;}},addEvent:function(targetarr,functionref,tasktype){if(targetarr.length>0){var target=targetarr.shift()
if(target.addEventListener){target.addEventListener(tasktype,functionref,false);}else if(target.attachEvent){target.attachEvent('on'+tasktype,function(){return functionref.call(target,window.event)});}
this.addEvent(targetarr,functionref,tasktype);}},setupmenu:function(targetclass,anchorobj,pos){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var relattr='menu315';dropmenuid='menu315';var dropmenuvar=window[dropmenuid];var dropmenu=this.addDiv(null,dropmenuvar.divclass,dropmenuvar.inlinestyle);dropmenu.innerHTML=this.getmenuHTML(dropmenuvar);var menu=this.menusmap[targetclass+pos]={id:targetclass+pos,anchorobj:anchorobj,dropmenu:dropmenu,revealtype:(relattr.length!=dropmenuid.length&&RegExp.$1=="click")?"click":"mouseover",orientation:anchorobj.getAttribute("rev")=="lr"?"lr":"ud",shadow:this.addDiv(null,"anylinkshadow",null)}
menu.anchorobj._internalID=targetclass+pos;menu.anchorobj._isanchor=true;menu.dropmenu._internalID=targetclass+pos;menu.shadow._internalID=targetclass+pos;menu.dropmenu.setcss=this.setcss;menu.shadow.style.display="none";menu.shadow.setcss=this.setcss;menu.shadow.setcss({display:"block"});this.setopacity(menu.shadow,this.effects.shadow.opacity);this.addEvent([menu.anchorobj,menu.dropmenu,menu.shadow],function(e){var menu=socialfollow.menusmap[this._internalID];if(this._isanchor&&menu.revealtype=="mouseover"&&!socialfollow.isContained(this,e)){socialfollow.showmenu(menu.id);}else if(typeof this._isanchor=="undefined"){clearTimeout(menu.hidetimer);}},"mouseover");this.addEvent([menu.anchorobj,menu.dropmenu,menu.shadow],function(e){if(!socialfollow.isContained(this,e)){var menu=socialfollow.menusmap[this._internalID];menu.hidetimer=setTimeout(function(){socialfollow.hidemenu(menu.id)},socialfollow.effects.delayhide);}},"mouseout");this.addEvent([menu.anchorobj,menu.dropmenu],function(e){var menu=socialfollow.menusmap[this._internalID];if(this._isanchor&&menu.revealtype=="click"){if(menu.dropmenu.style.visibility=="visible"){socialfollow.hidemenu(menu.id);}else{socialfollow.showmenu(menu.id);}
if(e.preventDefault){e.preventDefault();}
return false}else{menu.hidetimer=setTimeout(function(){socialfollow.hidemenu(menu.id)},socialfollow.effects.delayhide);}},"click");},init:function(targetclass){var headID=document.getElementsByTagName("head")[0];var cssNode=document.createElement('link');cssNode.type='text/css';cssNode.rel='stylesheet';cssNode.href='http://www.socialfollow.com/button/css/?b=315&n=18&socialSites=146%3Ablipfm.png%7C113%3Ayoutube.gif%7C106%3Atwitter.png%7C144%3Atumblr.gif%7C140%3Aning.gif%7C92%3Amyspace.png%7C143%3Amashable.gif%7C120%3Alinkedin.gif%7C150%3Alastfm.png%7C167%3Agoogle-profile.png%7C126%3Afriendfeed.gif%7C123%3Aflickr.gif%7C75%3Afacebook.gif%7C73%3Adiigo.gif%7C71%3Adelicious.gif%7C147%3Abrightkite.png%7C168%3Ablog.png%7C169%3Asficon.gif';cssNode.media='screen';headID.appendChild(cssNode);var anchors=this.getElementsByClass(targetclass);for(var i=0;i<anchors.length;i++){this.setupmenu(targetclass,anchors[i],i);this.border="0";}}}
function openwindow(url){document.body.removeChild(document.getElementById('popup'));document.body.removeChild(document.getElementById('popup1'));window.open(url);}
var popup315={divclass:'sociallinks',inlinestyle:'',linktarget:'secwin'};popup315.cols={divclass:'column',inlinestyle:''};popup315.items1=[["Blip.fm","146","http://blip.fm/AlexMerced"],["YouTube","113","http://www.youtube.com/user/AlexMerced"],["Twitter","106","http://www.twitter.com/alexmerced"],["Tumblr","144","http://alexmerced.tumblr.com"],["Ning","140","http://alexmercedrocks.ning.com"],["Myspace","92","http://www.myspace.com/alexmerced2","efc"],["Mashable","143","http://my.mashable.com/alexmerced"],["LinkedIn","120","http://www.linkedin.com/in/alexmerced"],["Last.fm","150","http://www.last.fm/user/alexmerced"],["Google Profile","167","http://www.google.com/profiles/AlexMercedFNM"],["FriendFeed","126","http://friendfeed.com/alexmerced"],["Flickr","123","http://www.flickr.com/photos/27891213@N06/","efc"],["Facebook","75","http://www.facebook.com/pages/AlexMercedcom/75061568585"],["diigo","73","http://www.diigo.com/profile/alexmerced"],["del.icio.us","71","http://delicious.com/alexmerced"],["BrightKite","147","http://brightkite.com/people/alexmerced"],["Blog","168","http://www.alexmerced.com"],["Social Follow","169","http://www.socialfollow.com/profiles/alex-merced/","efc"]];var w3c=(document.getElementById)?true:false;var ie5=(w3c&&document.all)?true:false;var ns6=(w3c&&(navigator.appName=="Netscape"))?true:false;currIDb=null;xoff=0;yoff=0;currRS=null;rsxoff=0;rsyoff=0;oldac=null;newac=null;zdx=1;mx=0;my=0;function getScrollXY(){var scrOfX=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}
return[scrOfX,scrOfY];}
function showbookmark(popup){var i=0;var menu="";var menuitems=[];for(var i=0;i<popup315.items1.length;i++){if(popup315.items1[i][0]!=null){var socialSite=popup315.items1[i][0];var socialSiteID=popup315.items1[i][1];var socialSiteLink=popup315.items1[i][2];menu+='<li><a class="c'+socialSiteID+'" href="http://www.socialfollow.com/button/link?b=315&amp;l='+socialSiteLink+'&amp;r='+document.referrer+'&amp;s='+socialSiteID+'" target="secwin">'+socialSite+'</a></li>\n';if(popup315.items1[i][3]=="efc"||i==popup315.items1.length-1){menuitems.push(menu);menu="";}}}
frag="";for(var i=0;i<menuitems.length;i++){frag+='<ul>'+menuitems[i]+'</ul>';}
winXY=getScrollXY();menu="";menu='<div id="sfWrapper315" style="top:'+winXY[1]+'px">';menu+='<div id="page">';menu+='<div id="bigWindow">';menu+='<div class="mainWindow">';menu+='<div class="padding">';menu+='<div class="hstyle">Follow Me | All Social Sites</div>';menu+='<a href="javascript:;" class="crossBtn"><img src="http://www.socialfollow.com/images/windowCross.gif" border="0" onclick="removeElement()" width="23" height="20" alt="Close" /></a>';menu+='<div class="listBox">';menu+=frag;menu+='</div>';menu+='</div>';menu+='<div class="paddingSmall"><div class="socialFollowLink"><a href="http://www.socialfollow.com/" target="_blank"><img src="http://www.socialfollow.com/images/sf-link.gif" border="0" alt="Get your own Social Follow button!" /></a></div></div>';menu+='<div class="bottomBorder">&nbsp;</div>';menu+='</div>';menu+='</div>';menu+='</div>';menu+='</div>';return menu;}
function subBox(x,y,w,h,id){var v=document.createElement('div');v.setAttribute('id',id);v.style.position='absolute';v.style.left=x+'px';v.style.top=y+'px';v.style.visibility='visible';v.style.padding='0px 0px 0px 0px';return v;}
function get_cookie(Name){var search=Name+"=";var returnvalue="";if(document.cookie.length>0){offset=document.cookie.indexOf(search);if(offset!=-1)offset+=search.length;end=document.cookie.indexOf(";",offset)
if(end==-1){end=document.cookie.length;returnvalue=unescape(document.cookie.substring(offset,end))}}
return returnvalue;}
function popUp(x,y,w,h,cid,text,scrollcolor,isresize,POPPERSESSION){var proceedtopop=false;var viewportwidth=0;var viewportheight=0;if(POPPERSESSION){if(get_cookie(cid)==""){proceedtopop=true;document.cookie=cid+"=yes";}}else{proceedtopop=true;}
var zdx=1000;if(proceedtopop){if(w3c){var outerdiv=new subBox(x,y,w,h,'popup');outerdiv.style.zIndex=++zdx;outerdiv.innerHTML=showbookmark('popup');if(typeof window.innerWidth!='undefined'&&typeof window.innerHeigh!='undefined'){viewportwidth=window.innerWidth;viewportheight=window.innerHeigh;}else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0){viewportwidth=document.documentElement.clientWidth;viewportheight=document.documentElement.clientHeight;if(viewportheight<500)viewportheight="533";}else{viewportwidth=document.getElementsByTagName('body')[0].clientWidth;viewportheight=document.getElementsByTagName('body')[0].clientHeight;}
var outerdiv1=new subBox(0,0,viewportwidth,viewportheight,'popup1');outerdiv1.style.borderStyle="solid";outerdiv1.style.borderWidth="0px";outerdiv1.style.borderColor="#FF0000";outerdiv1.style.zIndex=--zdx;outerdiv1.style.visibility='visible';document.body.appendChild(outerdiv);document.body.appendChild(outerdiv1);}}}
function removeElement(){document.body.removeChild(document.getElementById('popup'));document.body.removeChild(document.getElementById('popup1'));}
function xhtml_10(){var re=/\s+(X?HTML)\s+([\d\.]+)\s*([^\/]+)*\//gi;var res=false;if(typeof document.namespaces!="undefined"){res=(8==document.all[0].nodeType)?re.test(document.all[0].nodeValue):false;}else{res=(null!=document.doctype)?re.test(document.doctype.publicId):false;}
if(res){res=new Object();return('XHTML'==RegExp.$1&&'1.0'==RegExp.$2)?true:false;}else{return false;}}