function testSWF()
{
var isPlay = false;
var flashV = 6;

var ie = (navigator.userAgent && (navigator.userAgent.indexOf("MSIE") >= 0) && (navigator.appVersion.indexOf("Win") != -1)) ? 1 : 0;
	
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if(plugin){
	var pluginVersion = parseInt(plugin.description.substring(plugin.description.indexOf(".") - 1));
	var isPlay = (pluginVersion >= flashV);
}
else if(ie){
	document.write('<sc'+'ript type="text/vbscript"> \n');
	document.write('on error resume next \n');
	document.write('isPlay = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashV+'")) \n');
	document.write('</sc'+'ript> \n');
}
			
if(window.IEonly && (IEonly == 1) && !ie) isPlay = 0;
}

var status_height = 0;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
window.onerror = null;
window.onload = onResizeWindow;
window.onresize = onResizeWindow;

function updateHeight() {

var kredital1Obj = document.getElementById('kredital1');
var width;
var height1;
var height2;

if (self.innerHeight) // all except Explorer
{
  width = self.innerWidth;
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
  width = document.documentElement.clientWidth;
}
else if (document.body) // other Explorers
{
  width = document.body.clientWidth;
}
height1 = 50;
height2 = 200;
//if (width > 1004) {
  height1 = Math.round(50*width/1004);
  height2 = Math.round(200*width/1004);
//}
if (kredital1Obj)
if (status_height == 1) {
  kredital1Obj.height = height2;
  document.getElementById('block0').style.top = height2 + 'px';
  document.getElementById('block1').style.top = height2 + 'px';
  document.getElementById('block2').style.top = height2 + 'px';
  document.getElementById('block3').style.top = height2 + 'px';
  document.getElementById('block4').style.top = height2 + 'px';
} else {
  kredital1Obj.height = height1;
  document.getElementById('block0').style.top = height1 + 'px';
  document.getElementById('block1').style.top = height1 + 'px';
  document.getElementById('block2').style.top = height1 + 'px';
  document.getElementById('block3').style.top = height1 + 'px';
  document.getElementById('block4').style.top = height1 + 'px';
}

}

function onResizeWindow() { updateHeight(); }

function kredital1_DoFSCommand(command, args) {
  var kredital1Obj = InternetExplorer ? kredital1 : document.kredital1;

  if (command  == "banOver") {
      if (args == 1) {
	  status_height = 1;
      }
      if (args == 0) {
	  status_height = 0;
      }
    updateHeight();
  }
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub kredital1_FSCommand(ByVal command, ByVal args)\n');
  document.write('  call kredital1_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
}