window.onload=autoPOP;

function autoPOP()
{
	var x = document.getElementsByTagName('a');
	for (var i=0;i<x.length;i++)
	{
		if (x[i].getAttribute('className') == 'popup' || x[i].getAttribute('class') == 'popup')
		{
			x[i].onclick = function () {
			return winOpen(this.href,800,620,1)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'popup_uzel' || x[i].getAttribute('class') == 'popup_uzel')
		{
			x[i].onclick = function () {
			return winOpen(this.href,800,690,1)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'flash' || x[i].getAttribute('class') == 'flash')
		{
			x[i].onclick = function () {
			return winOpen(this.href,800,600,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'flash_ipd' || x[i].getAttribute('class') == 'flash_ipd')
		{
			x[i].onclick = function () {
			return winOpen(this.href,600,550,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'flash_none' || x[i].getAttribute('class') == 'flash_none')
		{
			x[i].onclick = function () {
			return winOpen(this.href,800,600,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'proteca_tv' || x[i].getAttribute('class') == 'proteca_tv')
		{
			x[i].onclick = function () {
			return winOpen(this.href,840,700,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'proteca_tv2' || x[i].getAttribute('class') == 'proteca_tv2')
		{
			x[i].onclick = function () {
			return winOpen(this.href,840,720,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'proteca_flash01' || x[i].getAttribute('class') == 'proteca_flash01')
		{
			x[i].onclick = function () {
			return winOpen(this.href,800,700,1)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'proteca_flash02' || x[i].getAttribute('class') == 'proteca_flash02')
		{
			x[i].onclick = function () {
			return winOpen(this.href,720,730,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'bup-4_s' || x[i].getAttribute('class') == 'bup-4_s')
		{
			x[i].onclick = function () {
			return winOpen(this.href,566,600,1)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'bup-4_sub' || x[i].getAttribute('class') == 'bup-4_sub')
		{
			x[i].onclick = function () {
			return winOpen(this.href,740,500,1)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'bup-4_sub2' || x[i].getAttribute('class') == 'bup-4_sub2')
		{
			x[i].onclick = function () {
			return winOpen(this.href,800,600,1)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'bup-4_WC' || x[i].getAttribute('class') == 'bup-4_WC')
		{
			x[i].onclick = function () {
			return winOpen(this.href,905,625,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'InnerLinkclover' || x[i].getAttribute('class') == 'InnerLinkclover')
		{
			x[i].onclick = function () {
			return winOpen(this.href,860,660,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'dif_sub' || x[i].getAttribute('class') == 'dif_sub')
		{
			x[i].onclick = function () {
			return winOpen(this.href,800,450,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'lab_oab' || x[i].getAttribute('class') == 'lab_oab')
		{
			x[i].onclick = function () {
			return winOpen(this.href,980,860,0)
			}
			x[i].title += '(Popup)';
		}
		if (x[i].getAttribute('className') == 'quiz' || x[i].getAttribute('class') == 'quiz')
		{
			x[i].onclick = function () {
			return winOpen(this.href,870,660,0)
			}
			x[i].title += '(Popup)';
		}
	}
};

function winOpen(url,width,height,scrollbars) {
	window.open(
		url,
		'popup',
		'width='+ width +',height='+ height +',scrollbars='+ scrollbars +',resizable=0'
	);

	return false;
};
