var counter=host+'analytics-api/services/counter';var atags=document.getElementsByTagName('a');for(var i=0;i<atags.length;i++)
{var aa=atags[i].getAttribute('href',2);}
function cc_add_click_monitor(aa)
{var atags=document.getElementsByTagName('a');for(var i=0;i<atags.length;i++)
{$(atags[i]).click(function()
{cc_click(this,this.getAttribute('href',2));this.setAttribute("href",'javascript:void(0);');return true;});}}
function getXmlHttp()
{var xmlhttp=false;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc){xmlhttp=null;}}
if(!xmlhttp&&typeof XMLHttpRequest!=undefined)xmlhttp=new XMLHttpRequest();return xmlhttp;}
function cc_click(tag,link)
{var params='';tag.style.cursor='wait';var xmlhttp;xmlhttp=getXmlHttp();xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.responseText=="Inserted successfully"||xmlhttp.status=="404")
{if(tag.target=='_blank')
{window.location.target=link;}
else
{window.location.href=link;}}
tag.style.cursor='pointer';cc_http_response_callback(xmlhttp.responseText);return true;}}
var click=tag.getAttribute("onclick",2);var url=link;var start_index_temp=url.indexOf('/',0);if(start_index_temp<0)
{start_index_temp=-1;}
url=url.substr(start_index_temp+1,url.length);start_index_temp=null;var title=tag.childNodes[0].nodeValue;var strHref=window.location.href;params='s_url='+encodeURIComponent(url)+'&title='+escape(title)+'&click='+encodeURIComponent(click)+'&siteurl='+encodeURIComponent(strHref);xmlhttp.open('GET',counter+'?'+params,true);xmlhttp.send(null);return true;}
function cc_http_response_callback()
{}