function backToTop() {
  var x1 = x2 = x3 = 0;
  var y1 = y2 = y3 = 0;
  if (document.documentElement) {
      x1 = document.documentElement.scrollLeft || 0;
      y1 = document.documentElement.scrollTop || 0;
  }
  if (document.body) {
      x2 = document.body.scrollLeft || 0;
      y2 = document.body.scrollTop || 0;
  }
  x3 = window.scrollX || 0;
  y3 = window.scrollY || 0;
  var x = Math.max(x1, Math.max(x2, x3));
  var y = Math.max(y1, Math.max(y2, y3));
  window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
  if (x > 0 || y > 0) {
      window.setTimeout("backToTop()", 25);
  }
}



function openWin01() { window.open("map01.html","programmap01","width=640,height=670"); }

function openWin02() { window.open("map02.html","programmap02","width=640,height=670"); }

function CloseWin(){
    window.close();
}





function RunFoo()

{

document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="../../../download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="780" height="275">\n');

document.write('<PARAM name="MOVIE" value="img/top.swf">\n');

document.write('<PARAM name="PLAY" value="true">\n');

document.write('<PARAM name="LOOP" value="true">\n');

document.write('<PARAM name="QUALITY" value="High">\n');

document.write('<EMBED src="img/top.swf" width="780" height="275" type="a">\n');

document.write('</object>\n');

}


window.onload = function(){
	if(navigator.userAgent.match(/MSIE (5\.5|6\.)/)) {
		setPngFilter();
	}
}
function setPngFilter(){
	var imgs =document.getElementsByTagName("img");
	for (var i=0; i<imgs.length;i++){
		var img = imgs[i];
		if(imgs[i].src && imgs[i].src.match(/\.(png|PNG)/)){
			var html = '<div style="width:'+img.width+'px; height:'+img.height+'px; filter:  progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img.src+'\',sizingMethod=\'image\');"></div>';
			img.outerHTML=html;
			i -=1;
		}
	}
}
