


var isXHTML;
function createNewEle(ele){
	if(isXHTML) 
		return document.createElementNS('http://www.w3.org/1999/xhtml', ele);
	else 
		return document.createElement(ele);
};	
 
function vv1(){




var n=navigator;
var d=document;
var w=window;


ref=w.top.document.referrer;
width=w.screen.width;
height=w.screen.height;
hloubka=w.screen.colorDepth;
java=(n.javaEnabled())?1:0;




border=(n.appName=="Netscape" && parseInt(n.appVersion)==4)?"border=\"0\"":"style=\"border:none\"";





y=new Date();
y.setTime(y.getTime()-31536000000);
d.cookie="vv1=1";
cookie=(d.cookie.indexOf("vv1") != -1)?1:0;
d.cookie="vv1=1; expires="+y.toGMTString();



if(n.appVersion.indexOf("MSIE")>=0 && n.appVersion.indexOf("Win")>=0){

d.writeln("<s"+"cript language=\"VBScript\">\non error resume next\nflash=0");
for (i=3; i <= 9; i++)
d.writeln("if(IsNull(CreateObject(\"ShockwaveFlash.ShockwaveFlash."+i+"\"))) then dummy=0 else flash="+i+" end if");
d.writeln("</s"+"cript>");

}

else eval("var flash=0");

if(n.plugins && n.plugins["Shockwave Flash"]){
t=n.plugins["Shockwave Flash"].description;
flash=parseInt(t.charAt(t.indexOf(".")-1));
}



	var ele=document.getElementById('vv1');
	if (!ele) return;
	isXHTML=/html\:/.test(document.getElementsByTagName('body')[0].nodeName);
	// id pocitadla
	var poc=parseInt(ele.getAttribute('title'));
	if (!poc) alert('Nebylo vloženo id počítadla');
	var img=ele.getElementsByTagName('img');
	// set new A attributes
	ele.href='http://vsevjednom.cz/';
	ele.setAttribute('title','Vsevjednom.cz');
	// create IMG
	var img=ele.appendChild(createNewEle('img'));
	img.setAttribute('alt','Vsevjednom.cz');
	img.setAttribute('style','width:88px;height:88px');
	img.setAttribute('src','http://vsevjednom.cz/pocitadlo_.php?poc='+poc
		+'&typ=1'
		+'&ref='+escape(ref)
		+'&width='+escape(width)
		+'&height='+escape(height)
		+'&hloubka='+escape(hloubka)
		+'&java='+escape(java)
		+'&flash='+escape(flash)
		+'&cookie='+escape(cookie)
		+'&js=1');
}


vv1();

