function initswitch() {
	var playerVersion = swfobject.getFlashPlayerVersion();
	var majorVersion = playerVersion.major;
	if (majorVersion != 0) {
		for (var i=1; i<(max+1); i++) {
		    artid = "art" + i;
			hdrid = "hdr" + i;
			if (document.getElementById(artid)) document.getElementById(artid).style.display = 'none';
			if (document.getElementById(hdrid)) document.getElementById(hdrid).style.display = 'none';
		}
		if (show) {
			if (document.getElementById("art" + show)) document.getElementById("art" + show).style.display = 'block';
			if (document.getElementById("hdr" + show)) document.getElementById("hdr" + show).style.display = 'block';
		}
	}
}

function switcher(show) {
	for (var i=1; i<(max+1); i++) {
	    artid = "art" + i;
		hdrid = "hdr" + i;
		if (document.getElementById(artid)) document.getElementById(artid).style.display = 'none';
		if (document.getElementById(hdrid)) document.getElementById(hdrid).style.display = 'none';
	}

	if (show) {
		if (document.getElementById("art" + show)) document.getElementById("art" + show).style.display = 'block';
		if (document.getElementById("hdr" + show)) document.getElementById("hdr" + show).style.display = 'block';
	}
}

function setHeight(height) {
		document.documentElement.className = "flashOn";
		el =document.getElementById('flashmenu');
		h = parseFloat(el.style.height);
		if (!h) h = 305;
		el.style.height = (h+height) + 'px';
		if (el.getElementsByTagName('object')[0])	el.getElementsByTagName('object')[0].style.height = (h+height) + 'px';
		else el.getElementsByTagName('embed')[0].style.height = (h+height) + 'px';
}

function testFlash() {
	var playerVersion = swfobject.getFlashPlayerVersion();
	var majorVersion = playerVersion.major;
	if (majorVersion != 0) {
		document.documentElement.className = "flashOn";
	}
}

swfobject.addDomLoadEvent(testFlash);

$(document).ready(function() {
	$('.cz .print').html("<a href='#'>Tisk</a>");
	$('.en .print').html("<a href='#'>Print</a>");	
	$('.print').click(function(){
		window.print();
		return false;
	});
});