function Guid() {	return S4()+S4()+S4()+S4()+S4()+S4()+S4()+S4();  }


function S4() {return (((1+Math.random())*0x10000)|0).toString(16).substring(1) }


if (navigator.cookieEnabled)
	if (document.cookie.lastIndexOf('o2.ad.session') == -1) 
	{
		//if (document.cookie) document.cookie += '; ';
		document.cookie = "o2.ad.session=id="+Guid();
	}


var info = (navigator.cookieEnabled == true) ? '' : '&info=nocookies';
	
function placeholder(theme, position, format, width, height) 
{	
	document.write('<IFRAME WIDTH='+width+' HEIGHT='+height+' MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=0 HSPACE=0 VSPACE=0 SCROLLING=no');
	document.write(' SRC="http://ad.o2active.cz/ad.aspx?theme='+theme+'&position='+position+'&format='+format+info+'">\n');
	document.write('</IFRAME>');
}
	
