<!--
function Get_Cookie(name) {
   var start = document.cookie.indexOf(name+"=");
   var len = start+name.length+1;
   if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
   if (start == -1) return null;
   var end = document.cookie.indexOf(";",len);
   if (end == -1) end = document.cookie.length;
   return unescape(document.cookie.substring(len,end));
}

function Set_Cookie(name,value,expires,path,domain,secure) {
    var cookieString = name + "=" +escape(value) +
       ( (expires) ? ";expires=" + expires.toGMTString() : "") +
       ( (path) ? ";path=" + path : "") +
       ( (domain) ? ";domain=" + domain : "") +
       ( (secure) ? ";secure" : "");
    document.cookie = cookieString;
}

start='1';
if (!Get_Cookie('SessionID')) {
  start='0';
  Set_Cookie('SessionID',Math.random());
}

var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
var path = "";
var oeTags = '<!--[if !IE]> -->'
 + '<object type="application/x-shockwave-flash" data="'+path+'admira.swf?root=&anim='+start+'&" width="1000" height="160" wmode="transparent">'
 + '<param name="wmode" value="transparent" />'
 + '<!-- <![endif]-->'
 + '<!--[if IE]>'
 + '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="1000" height="160">'
 + '  <param name="movie" value="'+path+'admira.swf?root=&anim='+start+'&" />'
 + '<!--><!---->'
 + '<param name="quality" value="high" />'
 + '<param name="loop" value="false" />'
 + '<param name="wmode" value="transparent" />'
 + '<param name="menu" value="false" />'
 + '</object>'
 + '<!-- <![endif]-->';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<a href="http://www.macromedia.com/go/getflashplayer"><img src="img/AdmiraHead.jpg" alt="AdmiraHead.jpg, 29 kB" title="Stažení: Flash Player" border="0" height="154" width="1000"></a>'
	+ '';
    document.write(alternateContent);  // insert non-flash content
  }
// -->
