
if(typeof(window.QiXeoCount)=='undefined'){window.QiXeo=[];window.QiXeoCount=0;}
else window.QiXeoCount++;window.QiXeo[window.QiXeoCount]=new function()
{var BASE_URL='http://widget.qixeo.com';var LINKS_URL=BASE_URL+'/links.php';var CLICK_URL=BASE_URL+'/click.php';function getLinks()
{var script=document.createElement('script');if(typeof(qixeo_permalink)=='undefined')qixeo_permalink='';if(typeof(qixeo_lang)=='undefined')qixeo_lang='en';LINKS_URL=LINKS_URL+'?'+'api_key='+qixeo_api_key+'&widget_id='+window.QiXeoCount+'&permalink='+encodeURIComponent(qixeo_permalink)+'&location='+encodeURIComponent(document.location)+'&referrer='+encodeURIComponent(document.referrer)+'&lang='+qixeo_lang;script.src=LINKS_URL;document.getElementsByTagName('head')[0].appendChild(script);}
this.renderLinks=function(id,data)
{if(!data)return;if(data.length==0)return;var div=document.getElementById('qixeo_widget'+id);var txt='<div>Related Posts:</div>';txt+='<ul>';for(var i=0;i<data.length;i++){txt+='<li><a href="'+data[i].link+'" onclick="window.QiXeo['+id+'].click(\''+data[i].cid+'\');" rel="nofollow">'+data[i].title+'</a></li>'}
txt+='</ul>';div.innerHTML=txt;div.style.display='block';}
this.click=function(cid)
{var i=new Image();i.src=CLICK_URL+'?cid='+encodeURIComponent(cid);return false;}
document.write('<div id="qixeo_widget'+window.QiXeoCount+'" style="display:none"></div>');getLinks();}