
var menu12617={divclass:'sociallinks12617',inlinestyle:'visibility:hidden',linktarget:'secwin'};menu12617.cols={divclass:'column',inlinestyle:''};menu12617.items=[["BlogCatalog","275","http://www.blogcatalog.com/user/JLMON"],["Facebook","75","http://www.facebook.com/joseluis.monteroguadilla"],["Twitter","106","http://twitter.com/#!/JLMON53"],["LinkedIn","120","http://www.linkedin.com/home?trk=hb_tab_home_top"],["Social Follow","169","http://www.socialfollow.com/profiles/jlmon/"]];var icons12617=["blogcatalog.gif","facebook.gif","twitter.png"];var socialfollow={init:function(targetclass){socialfollow12617.init(targetclass);}}
var socialfollow12617={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=socialfollow12617.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+socialfollow12617.effects.shadow.depth[0]+'px',top:posy+socialfollow12617.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(){socialfollow12617.revealmenu(menuid)},20);}},revealmenu:function(menuid){var menu=socialfollow12617.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=socialfollow12617.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=12617&amp;r='+document.referrer+'&amp;s='+socialSiteID+'&amp;l='+socialSiteLink+'" 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 class='show' style='padding: 0 3px;display:none'>";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 show" style="display:none"><div class="socialFollowLink"><a href="http://www.socialfollow.com/" target="_blank"><img src="http://www.socialfollow.com/button/image-link/?b=12617&amp;r='+document.referrer+'" border="0" alt="Get your own Social Follow button!" /></a></div></div>';frag+='<div class="bottomBorder show" style="display:none">&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='menu12617';dropmenuid='menu12617';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=socialfollow12617.menusmap[this._internalID];if(this._isanchor&&menu.revealtype=="mouseover"&&!socialfollow12617.isContained(this,e)){socialfollow12617.showmenu(menu.id);}else if(typeof this._isanchor=="undefined"){clearTimeout(menu.hidetimer);}},"mouseover");this.addEvent([menu.anchorobj,menu.dropmenu,menu.shadow],function(e){if(!socialfollow12617.isContained(this,e)){var menu=socialfollow12617.menusmap[this._internalID];menu.hidetimer=setTimeout(function(){socialfollow12617.hidemenu(menu.id)},socialfollow12617.effects.delayhide);}},"mouseout");this.addEvent([menu.anchorobj,menu.dropmenu],function(e){var menu=socialfollow12617.menusmap[this._internalID];if(this._isanchor&&menu.revealtype=="click"){if(menu.dropmenu.style.visibility=="visible"){socialfollow12617.hidemenu(menu.id);}else{socialfollow12617.showmenu(menu.id);}
if(e.preventDefault){e.preventDefault();}
return false}else{menu.hidetimer=setTimeout(function(){socialfollow12617.hidemenu(menu.id)},socialfollow12617.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=12617&n=5&socialSites=275%3Ablogcatalog.gif%7C75%3Afacebook.gif%7C106%3Atwitter.png%7C120%3Alinkedin.gif%7C169%3Asocial-follow.png';cssNode.media='screen';headID.appendChild(cssNode);var imgs=this.getElementsByClass(targetclass);for(var i=0;i<imgs.length;i++){if('done'!=imgs[i].getAttribute('rel')){imgs[i].setAttribute('rel','done');var img=imgs[i].cloneNode(false);var image_wrapper=document.createElement('div');image_wrapper.id='sfImageWrapper';var icon_1=document.createElement('img');icon_1.src='http://www.socialfollow.com/button/images/'+icons12617[0];icon_1.id='sf_icon1';icon_1.width='14';icon_1.height='14';icon_1.style.left='91px';icon_1.style.display='none';var icon_2=document.createElement('img');icon_2.src='http://www.socialfollow.com/button/images/'+icons12617[1];icon_2.id='sf_icon2';icon_2.width='14';icon_2.height='14';icon_2.style.left='110px';icon_2.style.display='none';var icon_3=document.createElement('img');icon_3.src='http://www.socialfollow.com/button/images/'+icons12617[2];icon_3.id='sf_icon3';icon_3.width='14';icon_3.height='14';icon_3.style.left='129px';icon_3.style.display='none';image_wrapper.appendChild(img);image_wrapper.appendChild(icon_1);image_wrapper.appendChild(icon_2);image_wrapper.appendChild(icon_3);imgs[i].parentNode.replaceChild(image_wrapper,imgs[i]);this.setupmenu(targetclass,image_wrapper,i);this.border="0";var hidden_divs=this.getElementsByClass('show');setTimeout(function(){for(var i=0;i<hidden_divs.length;i++){if('undefined'!=typeof(hidden_divs[i].style))
hidden_divs[i].style.display='';}},200);}}}}
function openwindow(url){document.body.removeChild(document.getElementById('popup'));document.body.removeChild(document.getElementById('popup1'));window.open(url);}
function check_browser(){var re=/\s+(X?HTML)\s+([\d\.]+)\s*([^\/]+)*\/(?:[^"]+"\s"([^"]+)")?/gi;var res=false;metaCollection=document.getElementsByTagName('meta');for(i=0;i<metaCollection.length;i++){if('X-UA-Compatible'==metaCollection[i].httpEquiv&&'IE=EmulateIE7'==metaCollection[i].content)
return 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();var type=RegExp.$1;var version=RegExp.$2;var doctype_extended=RegExp.$3.toLowerCase();var doctype_url=RegExp.$4
if((/strict\.dtd/.test(doctype_url)||'strict'==doctype_extended)||(('HTML'==type&&'4.01'==version)&&!/http:\/\//.test(doctype_url)))
return false;return(('XHTML'==type&&'1.0'==version)||('HTML'==type&&'4.01'==version))?true:false;return result;}else{return false;}}