﻿function replace(string,text,by){var strLength=string.length,txtLength=text.length;if((strLength==0)||(txtLength==0))return string;var i=string.indexOf(text);if((!i)&&(text!=string.substring(0,txtLength)))return string;if(i==-1)return string;var newstr=string.substring(0,i)+by;if(i+txtLength<strLength)newstr+=replace(string.substring(i+txtLength,strLength),text,by);return newstr}function forcelink(){var iLink='<a href="http://www.fwicki.com" target=_blank>fwicki rss tag cloud</a>';xElm1=null;xElm1=document.getElementById('FwickiFeedCloud');if(xElm1!=null){document.getElementById('FwickiFeedCloud').innerHTML=iLink}else{document.write(iLink)}}xElm=null;xElm=document.getElementById('FwickiLink');if(xElm!=null){var fLink=document.getElementById('FwickiLink').innerHTML;fLink=fLink.toLowerCase();fLink=replace(fLink,'"','');if(fLink.indexOf('www.fwicki.com')<1){forcelink()}else{}}else{forcelink()}