<!--
//alert('a');
iev='appVersion:'+navigator.appVersion+' appName:'+navigator.appName+' platform:'+navigator.platform;
//alert(iev);
var iet=iev.indexOf('MSIE') ;
if (iet==-1) {iet=iev.indexOf('Chrome');}
var chrome=iev.indexOf('Chrome');
var wc=iev.indexOf('WinCE') ; if(wc==-1){wc=iev.indexOf('Windows CE');} if(wc==-1){wc=iev.indexOf('PPC');} if(wc==-1){wc=iev.indexOf('Mobile');}
//wc=1;
var player='not-set' ;

if (iet>=0)
{
   if (iev.indexOf('MSIE 4.01')>=0)
   {iet=-1}
}
//iet=-1;
//if (iev.indexOf('Opera')!=-1){wc=1;iet=1}

// ---------- Cookie ---------
function GetCookie(name,vall) 
{
try
{
	var result = vall;
	var myCookie = " " + document.cookie + ";";
	var searchName = " " + name + "=";
	var startOfCookie = myCookie.indexOf(searchName);
	var endOfCookie;
	if (startOfCookie != -1) 
	{
		startOfCookie += searchName.length; 
		endOfCookie = myCookie.indexOf(";", startOfCookie);
		result = unescape(myCookie.substring(startOfCookie, endOfCookie));
	}
	return result;
}catch(e)
{
  alert('chyba cokies');
};
}

function SetCookie(name, value) 
{
//alert(value);
try
{	if (name)
	{	
		var never = new Date();

		if (value)
		{
			never.setDate (1); 
			never.setMonth (1); 
			never.setYear (2037);
		}
		else 
			never.setTime(never.getTime() - 1);

		var expString = "; expires=" + never.toGMTString();
		document.cookie = name + "=" + value + expString + "; path=/";
	}
}catch(e)
{
  //alert('chyba cokies');
}
}

function IsCookieEnabled() 
{
	SetCookie("testKey", "1");
	if (GetCookie("testKey") == "1")
	{return 1;}
	else
	{return 0;}
}

//if (iet!=-1)
{
  if (IsCookieEnabled()==1)
  {
    player=GetCookie('player','not-set'); 
    if (player=='external'){iet=-1;}
    if (player=='internal'){
    //if (iev.indexOf('MSIE')>=0)
    {iet=1;}
    }
  }
}

//alert(player);
var iw = 0 ;
var ih = 0 ;
//var xxx=155;var yyy=28;var plus=60; var start=0;var ie=0;
  var xxx=155;var yyy=28;var plus=60; var start=0;var ie=0;

var siroko=false;ind=0.75;ind2=1.33;kor=0;kor2=0;
try{siroko=(-1!=name.indexOf('Z1'));}catch(e){};

//if (siroko==false) {ind=0.75;ind2=1.33;kor=160;kor2=124;} else {ind=0.57;ind2=1.78;kor=160;kor2=92;}
if (siroko==false) {ind=0.75;ind2=1.33;kor=0  ;kor2=  0;} else {ind=0.57;ind2=1.78;kor=  0;kor2= 0;}

function initresize()
{
try
{
 if (wc==-1)
 {
  if(((document.body.offsetWidth-yyy)*ind)>=(document.body.offsetHeight-xxx-12))
  {
  iw=(document.body.offsetHeight-xxx)*ind2
  ih=document.body.offsetHeight-xxx+64;
  }
  else
  {
  iw=  (document.body.offsetWidth-32);
  ih= ((document.body.offsetWidth   )*ind)+41;
  }
 }
 else
 {
//try {alert(screen.height+' w:'+screen.width);}catch(e){alert('NoNoNo')};
  if (screen.width==240){ iw=230; ih=200; }
  if (screen.width==320){ iw=310; ih=240; }
  if (screen.width==480){ iw=470; ih=420; }
  if (screen.width==640){ iw=630; ih=480; }
//alert(screen.width+':'+iw+' '+ih)
 }
}catch(e){};

}
initresize();
try{ofw=document.body.offsetWidth}catch(e){ofw=400};
  //if (screen.width==240){ iw=230; ih=200; }
  //if (screen.width==320){ iw=310; ih=240; }
  //if (screen.width==480){ iw=470; ih=420; }
  //if (screen.width==640){ iw=630; ih=480; }
  //alert(iw+'---'+ih);
// alert('1');
//iet=1;
//alert(iev)
if (((iev.indexOf('xOpera')!=-1)||(iet!=-1))&&(iev.indexOf('xWinCE')==-1))
{
 if (iev.indexOf('Opera')!=-1)
 {
  //alert(document.body.offsetWidth)
  if (wc!=-1){iw=640;ih=240;}
  //try {ppplayer.height=ih;ppplayer.width=iw;}catch(e){};
  
  document.writeln('<object WIDTH="100%" HEIGHT="'+ih+'" CLASSID="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" ID="video0">');
  //document.writeln('<object WIDTH="100%" HEIGHT="'+ih+'" CLASSID="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ID="video0">');
  //alert('x');
  //document.writeln('<OBJECT ID="video0" WIDTH="'+iw+'" HEIGHT="'+ih+'" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" border="0" type="application/x-oleobject" align="middle">');
  //document.writeln('<param name="URL" value="'+name+'">');
  if(asx!="")
  if(asx!="[asx]")
  {
   document.writeln(' <param name="URL" value="'+asx+'">');
   document.writeln(' <param name="autoStart" value="0">');
  }
  document.writeln(' <param name="playCount" value="1">');
  document.writeln(' <param name="uiMode" value="full">');
  document.writeln(' <param name="stretchToFit" value="-1">');
  document.writeln(' <param name="windowlessVideo" value="1">');
 }
 else
 {
  //alert('a');
  document.writeln('<OBJECT ID="video0" WIDTH='+iw+' HEIGHT="'+ih+'" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" border="0" type="application/x-oleobject" align="middle">');
  //document.writeln('<param name="URL" value="">');
 }
 //document.writeln('<param name="balance" value="0">');
 //if (iev.indexOf('WinCE')==-1)
 //{document.writeln('<param name="uiMode" value="full">');}
 //else
 //{document.writeln('<param name="uiMode" value="full">');}
 document.writeln('<param name="stretchToFit" value="-1">');
 //document.writeln('<param name="enableErrorDialogs" value="0">');
 //document.writeln('<param name="volume" value="50">');
 //document.writeln('<param name="rate" value="1">');
 //document.writeln('<param name="currentPosition" value="0">');
 //document.writeln('<param name="defaultFrame" value>');
 //document.writeln('<param name="playCount" value="100">');
 //document.writeln('<param name="autoStart" value="-1">');
 //document.writeln('<param name="currentMarker" value="0">');
 //document.writeln('<param name="invokeURLs" value="-1">');
 //document.writeln('<param name="baseURL" value>');
 //document.writeln('<param name="mute" value="0">');
 //document.writeln('<param name="windowlessVideo" value="0">');
 //document.writeln('<param name="enabled" value="-1">');
 //document.writeln('<param name="enableContextMenu" value="-1">');
 //document.writeln('<param name="fullScreen" value="0">');
 //document.writeln('<param name="SAMIStyle" value>');
 //document.writeln('<param name="SAMILang" value>');
 //document.writeln('<param name="SAMIFilename" value>');
 //document.writeln('<param name="captioningID" value>');
 //document.writeln('<param name="ShowStatusBar" value="true">');
 document.writeln('</OBJECT>');
//alert('a');
}
else
{
  if (iev.indexOf('WinCE')==-1)
  {
    document.writeln('<img id="video0x" border="0" src="/images/wmp.png" width="487" height="339">');
  }
  else
  {
    document.writeln('<img id="video0x" border="0" src="/images/WinCeWmp.png" xwidth="487" xheight="339">');
  }
} ;

//-->

