function gtUP(strPNm){
  var strRet = "";
  //var strHref = window.location.href;
  var strHref = document.getElementById("_VC").src;
  if ( strHref.indexOf("?") > -1 ){
    var strQS = strHref.substr(strHref.indexOf("?")).toLowerCase();
    var aQS = strQS.split("&");
    for ( var iPrm = 0; iPrm < aQS.length; iPrm++ ){
      if (aQS[iPrm].indexOf(strPNm.toLowerCase() + "=") > -1 ){
        var aPrm = aQS[iPrm].split("=");
        strRet = aPrm[1];
        break;
      }
    }
  }
  return unescape(strRet);
} 
function dgetDocW() {
	if (document.body.scrollWidth) return document.body.scrollWidth;
	else {
		var w=document.documentElement.offsetWidth;
		if (window.scrollMaxX) w+=window.scrollMaxX;
		return w;
	}
};
function dgetDocH() {
	return (document.body.scrollHeight) ? document.body.scrollHeight : document.documentElement.offsetHeight;
};
org=gtUP("o"); 
p=gtUP("p"); 
var vstR = new Object();
vstR.org=(org && org!='') ? org : 0;
vstR.p=(p && p!='') ? Math.floor(parseInt(p)) : 1;
var ran_number=Math.floor(Math.random()*vstR.p); 
vstR.h=screen.height;
vstR.w=screen.width;
vstR.referer=document.referrer;
if (ran_number==(vstR.p-1)) {
	vstR.counter ='';
	vstR.counter+=(document.images) ? document.images.length+"|" : "-1|";
	vstR.counter+=(document.links) ? document.links.length+"|" : "-1|";
	vstR.counter+=(document.forms) ? document.forms.length+"|" : "-1|";
	vstR.counter+=(document.applets) ? document.applets.length+"|" : "-1|";
	vstR.counter+=(document.embeds) ? document.embeds.length+"|" : "-1|";
	vstR.counter+=(document.plugins) ? document.plugins.length+"|" : "-1|";
	vstR.counter+=(document.anchors) ? document.anchors.length+"|" : "-1|";
	vstR.counter+=(window.frames) ? window.frames.length+"|" : "-1|";
	vstR.counter+=(document.iframes) ? document.iframes.length+"|" : "-1|";
	size=0;
	if (document.fileSize) size+=Number(document.fileSize);
	if (document.images) {
		for(i=0;i<document.images.length;i++)
		size+=Number(document.images[i].fileSize);
	}
	if (document.embeds) {
		for(j=0;j<document.embeds.length;j++)
		size+=Number(document.embeds[j].fileSize);
	}
	vstR.counter+=(document.fileSize) ? size+"|" : "-1|";
	vstR.title=document.title;
	dw = dgetDocW;
	dh = dgetDocH;
	vstR.counter+=(dw && dw.length>0) ? dw + "|" : "-1|";
	vstR.counter+=(dh && dh.length>0) ? dh + "|" : "-1|";
	if (document.domain) vstR.domain=document.domain;
	if (document.styleSheets) vstR.styles=document.styleSheets.length;
}
//vstR.lastmod=document.lastModified;
vstR.page = location.href;
vstR.ua = navigator.userAgent;
vstR.putObjects = function () {
// <promoSmall>
document.write('<div id="_SV" style="position:absolute;width:1px;height:1px;z-index:9999;left:0px;top:0px;">');
// object
if (ran_number==(vstR.p-1)) document.write('<iframe id="_VCF" width="1px" height="1px" frameborder="0" src="http://www.countingopinions.com/survey/visitors.php?o='+vstR.org+'&w='+vstR.w+'&h='+vstR.h+'&c='+vstR.counter+'&d='+vstR.domain+'&s='+vstR.styles+'&t='+encodeURIComponent(vstR.title)+'&r='+encodeURIComponent(vstR.referer)+'&u='+encodeURIComponent(vstR.ua)+'&p='+encodeURIComponent(vstR.page)+'"');
else document.write('<iframe id="_VCF" width="1px" height="1px" frameborder="0" src="http://www.countingopinions.com/survey/visitors.php?o='+vstR.org+'&w='+vstR.w+'&h='+vstR.h+'&r='+encodeURIComponent(vstR.referer)+'&u='+encodeURIComponent(vstR.ua)+'&p='+encodeURIComponent(vstR.page)+'"');
document.write('</iframe></div>');
}
vstR.putObjects();