function flash(file,width,height,flashvars,winmode,id,classs,alternative) {
	var shockmode = false;
	if(id!=''){
		id=" id=\""+id+"\"";
	}
	if(classs!=''){
		classs=' class="'+classs+'"';
	}
	var mimetype = 'application/x-shockwave-flash';

	if (navigator.mimeTypes) {
		if (navigator.mimeTypes[mimetype] != null) {
			if (navigator.mimeTypes[mimetype].enabledPlugin != null) {
				shockmode = true;
		      }
		}
	}

	if (!shockmode && navigator.appVersion.indexOf('MSIE') !=-1) {
		shockmode = true;
	}
	if (shockmode) {
		document.write("<object"+id+" type=\"application/x-shockwave-flash\" data=\""+file+"\""+classs+" width=\""+width+"\" height=\""+height+"\">");
		document.write("<param name=\"movie\" value=\""+file+"\" />");
		document.write("<param name=\"menu\" value=\"false\" />");
		document.write("<param name=\"wmode\" value=\""+winmode+"\" />");
		if(flashvars!=''){
			document.write("<param name=\"flashvars\" value=\""+flashvars+"\" />");
		}
		document.write(alternative);
		document.write("</object>");
	}
	else {
		document.write(alternative);
	}
}

function zoom(URL,winName,features) {
	okno=window.open('',winName,features);
	okno.document.write('<HTML><TITLE>Tatramat</TITLE><BODY style="margin:0; padding:0; font-family: Arial, Helvetica, sans-serif; color: white;">');
	okno.document.write('<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" style="font-size: 75%;">');
	okno.document.write('<a href="javascript:window.close()"><IMG SRC="'+URL+'" border="0" alt=":: zatvoriť okno ::" title=":: zatvoriť okno ::"></a><br>');
	okno.document.write('<td><tr></table></BODY></HTML>');
	okno.document.close();
	okno.focus();
	okno.document.bgColor="FFFFFF";

}
