var clicky_obj=clicky_obj||(function(){var instance=null;function _ins(){var _self=this,site_ids=[],pageviews_fired=[],monitors=0,ossassets=0,ossdata=0;this.domain='http://web.archive.org/web/20121206184529/http://in.getclicky.com';if(document.location.protocol==='https:'){this.domain='http://web.archive.org/web/20121206184529/https://in.getclicky.com';this.secure=1;}this.init=function(site_id){site_ids.push(site_id);_self.setup_site_id(site_id);};this.setup_site_id=function(site_id){if(clicky_custom.async){setTimeout(_self.advanced,1000);}else{this.add_event(window,'load',_self.advanced);}if(clicky_custom.cookies_disable){_self.set_referrer(document.referrer);}else if(!_self.get_cookie('first_pv_'+site_id)){_self.set_cookie('first_pv_'+site_id,1,1200);_self.set_referrer(document.referrer);}_self.start_monitors();if(!clicky_custom.pageview_disable){if(window.olark){olark('api.boot.onIdentityReady',function(s,v,c){_self.olark(s,v,c,1);});setTimeout(_self.pageview,2000);}else{_self.pageview();}}if(location.hash.match(/^#_heatmap/))_self.heatmap();};this.base=function(site_id_index,type){var url=_self.domain+'/in.php?site_id='+site_ids[site_id_index];if(type=='ping')return url;url+="&res="+screen.width+"x"+screen.height+"&lang="+(navigator.language||navigator.browserLanguage||'en').substr(0,2)+(_self.secure?"&secure=1":"");if(clicky_custom.session){for(var i in clicky_custom.session){if(clicky_custom.session.hasOwnProperty&&clicky_custom.session.hasOwnProperty(i))url+="&custom["+_self.enc(i)+"]="+_self.enc(clicky_custom.session[i]);}}return url;};this.set_referrer=function(r){_self.ref=r?(RegExp("^https?://[^/]*"+location.host.replace(/^www\./i,"")+"/","i").test(r)?'':this.enc(r)):'';};this.olark=function(s,v,c,do_pageview){var o=s+','+v+','+c,c=_self.get_cookie('clicky_olark');if(c&&c==o){if(do_pageview)_self.pageview();return;}else{if(c)_self.set_cookie('clicky_olark',c,-3600);_self.set_cookie('clicky_olark',o,600);c=_self.get_cookie('clicky_olark');}if(do_pageview||pageviews_fired.length==0){_self.pageview('&olark='+o);}else if(c){_self.beacon('ping','&olark='+o);}};this.pageview=function(extra){var href=_self.get_href();if(_self.facebook_is_lame(href))return;_self.beacon('','&href='+_self.enc(href)+'&title='+_self.enc(clicky_custom.title||document.title)+'&ref='+(_self.ref||'')+(extra||''),1);for(var p=0;p=5&&clicky_custom.timeout<=240)?((clicky_custom.timeout*60)-120)+5:485;setTimeout(_self.ping,30000);setTimeout(_self.ping,60000);setTimeout(_self.ping_set,120000);};this.get_cookie=function(name){var ca=document.cookie.split(';');for(var i=0,l=ca.length;i