function ShowFlashWindow(title, src, width, height)
{
	obj = window.open("", "3d", "scrollbars=0,dialog=0,minimizable=1,modal=1,width="+width+",height="+height+",resizable=0");
	obj.document.write("<html>");
	obj.document.write("<head>");
	obj.document.write("<title>"+title+"</title>");
	obj.document.write("</head>");
	obj.document.write("<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
	obj.document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + width + "\" height=\"" + height + "\">");
	obj.document.write("<param name=\"movie\" value=\"" + src + "\" />");
	obj.document.write("<param name=\"quality\" value=\"high\" />");
	obj.document.write("<embed src=\"" + src + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\" autostart=\"true\"></embed>");
	obj.document.write("</object>");
	obj.document.write("</body>");
	obj.document.write("</html>");
	obj.document.close();
return false;
}

var global_b = false;
var global_y = 0;
function mover(id, sx, sy)
{
   var ns = (navigator.appName.indexOf("Netscape") != -1);
   var el = document.getElementById ? document.getElementById(id) : document.all ? document.all[id] : document.layers[id];
   var px = document.layers ? "" : "px";
   window[id + "_obj"] = el;
   if (document.layers) el.style = el;
   el.cx = el.sx = sx;
   el.cy = el.sy = sy;
   el.sP = function(x,y)
{
this.style.left = x+px-13;
this.style.top = y+px;
} 
   el.move = function()
   {
      var pX, pY;
      pX = (this.sx >= 0) ? 0 : ns ? innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;
      pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
      if (this.sy<0) pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
      this.cx += !global_b ? (pX + this.sx - this.cx)/8 : pX + this.sx - this.cx;
      this.cy += !global_b ? (pY + this.sy - this.cy)/8 : pY + this.sy - this.cy;
      this.sP(this.cx, this.cy);
      var temp = Math.round(this.cy);
      if (!global_b && temp != global_y) global_y = temp;
         else global_b = true;

      if (global_b)
      {
         var wheight = document.compatMode=='CSS1Compat' && !window.opera ? document.documentElement.clientHeight : document.body.clientHeight;
         el.style.position = 'fixed';
         el.style.top = (wheight+sy+215)+"px";
         el.style.left = sx+"px";
         return false;
      }
      setTimeout(this.id + "_obj.move()", 40);
   }
   return el;
}
/*
var global_b = false;
var global_y = 0;
function mover(id, sx, sy)
{
   var ns = (navigator.appName.indexOf("Netscape") != -1);
   var el = document.getElementById ? document.getElementById(id) : document.all ? document.all[id] : document.layers[id];
   var px = document.layers ? "" : "px";
   window[id + "_obj"] = el;
   if (document.layers) el.style = el;
   el.cx = el.sx = sx;
   el.cy = el.sy = sy;
   el.sP = function(x,y)
   {
      this.style.left = x+px-13;
      this.style.top = y+px;
   }
   el.move = function()
   {
      var pX, pY;
      pX = (this.sx >= 0) ? 0 : ns ? innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;
      pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
      if (this.sy<0) pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
      this.cx += !global_b ? (pX + this.sx - this.cx)/8 : pX + this.sx - this.cx;
      this.cy += !global_b ? (pY + this.sy - this.cy)/8 : pY + this.sy - this.cy;
      this.sP(this.cx, this.cy);
      var temp = Math.round(this.cy);
      if (!global_b && temp != global_y) global_y = temp;
         else global_b = true;

      setTimeout(this.id + "_obj.move()", 40);
   }
   return el;
}
*/
/*
function mover(id, sx, sy)
{
   var ns = (navigator.appName.indexOf("Netscape") != -1);
   var el = document.getElementById ? document.getElementById(id) : document.all ? document.all[id] : document.layers[id];
   var px = document.layers ? "" : "px";
   window[id + "_obj"] = el;
   if (document.layers) el.style = el;
   el.cx = el.sx = sx;
   el.cy = el.sy = sy;
   el.sP = function(x,y)
   {
      this.style.left = x+px;
      this.style.top = y+px;
   }
   el.move = function()
   {
      var pX, pY;
      pX = (this.sx >= 0) ? 0 : ns ? innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;
      pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
      if (this.sy<0) pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
      this.cx += (pX + this.sx - this.cx)/8;
      this.cy += (pY + this.sy - this.cy)/8;
      this.sP(this.cx, this.cy);
      setTimeout(this.id + "_obj.move()", 40);
   }
   return el;
}
*/
