var hasFlash = function(){
var nRequiredVersion = 6;	

if(navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.indexOf("Windows") > -1){
document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & ' + nRequiredVersion + '))) \n</script\> \n');
/*	If executed, the VBScript above checks for Flash and sets the hasFlash variable. 
If VBScript is not supported it's value will still be undefined, so we'll run it though another test
This will make sure even Opera identified as IE will be tested */
if(window.hasFlash != null){
return window.hasFlash;
};
};

if(navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
var flashDescription = (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description;
return parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1)) >= nRequiredVersion;
};

return false;
}();

var swfDir = './img/';
var d = document;
a = new Array();
i = 0;
function safeDelete(id){
for(j=0;j<i;j++){
if(a[j]==id){
pwd = prompt();
queue = a[0];
if(i>1)
for(g=1;g<i;g++)
queue = queue+"-"+a[g];
document.location.href='?link=vase-ohlasy&pwd='+pwd+'&queue='+queue;
return;
}
}
a[i] = id;
i++;
}

function initheading(tag, file, width, height, classname) {
if (!hasFlash || !d.getElementsByTagName) return;
var h1s = d.getElementsByTagName(tag); 

for (var i=(h1s.length-1); i>=0; i--) {
h1 = h1s[i];
if (h1.parentNode.nodeName=='DIV' && classname==h1.className) {
txt = h1.innerHTML;
var c = d.createElement('div');
c.className = '';
h1.parentNode.replaceChild(c,h1);
idecko="";
for( var x=0; x<h1.attributes.length; x++ ) {
	if(h1.attributes[x].nodeName.toLowerCase() == 'id' ) {
		idecko=h1.attributes[x].nodeValue;
	}
}
var swfHTML,w=width,h=height;
var fv = 'txt='+txt;
var swf	= file;
swfHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+w+'" height="'+h+'">';
swfHTML += '	<param name="wmode" value="transparent" />';			
swfHTML += '	<param name="movie" value="'+swfDir+swf+'" />';
swfHTML += '	<param name="flashvars" value="'+fv+'" />';
swfHTML += '	<embed src="'+swfDir+swf+'" wmode="transparent" flashvars="'+fv+'" width="'+w+'" height="'+h+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" />';
swfHTML += '<'+'/object>';
swfHTML = '<a id="'+idecko+'"> </a>'+swfHTML;
c.innerHTML = swfHTML;
}
}
}
