﻿var ViewCodeAdUrl='http://33.pcpop.com/statistic/viewcodead.aspx';
var blankImgAddress='http://33.pcpop.com/statistic/bg.gif';
var shouCountPageAddress='';
var randNumber=Math.random();

document.write('<scr'+'ipt id=cSrt></scr'+'ipt>');

function recEnc(eid, gugaid){
document.write('<iframe width=0 height=0 src=http://33.pcpop.com/statistic/enhccount.aspx?id='+eid+'&adid='+gugaid+'&rnd'+Math.random()+'></iframe>');
}

function BeginLoadAdvertise(){
LoadGuGa();
}
function LoadGuGa(){
var ShowCountAds = '';

document.write('<iframe frameborder=0 height=0 src=http://33.pcpop.com/statistic/showcount.aspx?id='+ShowCountAds+'></iframe>');
}

function gugaOnClick(gugaid, url, recHit, newWin){
if(newWin) window.open(url);
if(recHit) SendToPage('http://33.pcpop.com/statistic/hitcount.aspx?id='+gugaid+'&rnd='+Math.random());
}
function SendToPage(fullurl)
{ 
	var SendPageImg = new Image();
	SendPageImg.src = fullurl;
}
function WriteAdSpan(AdSpanId)
{	eval('var AdHeight;if(typeof(n'+AdSpanId+')==\'string\'){AdHeight=n'+ AdSpanId+';}else{AdHeight=0;}');
	if ( AdHeight != 0 )
	{
	document.write('<div id=' + AdSpanId + ' style=height:' + AdHeight + 'px;z-index:0></div>');
	}
	else
	{
		document.write('<div id=' + AdSpanId + ' style=height:1px;z-index:0><spacer></spacer></div>');
	}
}
function WriteAdSpan(AdSpanId,AdHeight)
{	eval('if(typeof(n'+AdSpanId+')==\'string\'){if (!AdHeight){AdHeight=n'+ AdSpanId+';}}else{AdHeight=0;}');
	if ( AdHeight != 0 )
	{
	document.write('<div id=' + AdSpanId + ' style=height:' + AdHeight + 'px;z-index:0></div>');
	}
	else
	{
		document.write('<div id=' + AdSpanId + ' style=height:1px;z-index:0><spacer></spacer></div>');
	}
}