function LoadFlash(url,wmode,width,Height,param)
{
var fstrs='';
fstrs+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ width +'" height="'+ Height +'">';
fstrs+='<param name="movie" value="'+ url + '" />';
fstrs+='<param name="quality" value="high" />';
fstrs+='<param name="menu" value="false" />';
fstrs+='<param name="allowfullscreen" value="true" />';
fstrs+='<param name="wmode" value="'+ wmode +'" />';
fstrs+='<param name="FlashVars" value="'+param+'" />';
fstrs+='<embed src="'+ url + '" wmode="'+ wmode +'" FlashVars="'+param+'" menu="false" quality="high" width="'+ width +'" height="'+ Height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
fstrs+='</object>';
document.write (fstrs);
}
//LoadFlash("vcastr3.swf","opaque","320","290","xml=vcastr.xml");
//LoadFlash("flv2.swf","opaque","230","190","file=sp.flv&image=sp.JPG&autostart=true&width=230&height=190&backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0xffffff");

function ImgAuto(i,MaxW,MaxH){var o=new Image();o.src=i.src;var w=o.width;var h=o.height;var t;if(w>MaxW){t=MaxW;}else{t=w;}if((h*t/w)>MaxH){i.height=MaxH;i.width=MaxH/h*w;}else{i.width=t;i.height=t/w*h;i.style.marginTop=(MaxH-i.height)/1.3+'px';}}
function rzi(e,h,w){
e.style.height='';e.style.weight='';w1=e.width;h1=e.height;b1=h1/w1;if(b1>=1){e.style.height=h+'px';e.style.width=w/b1+'px';}else{e.style.width=h+'px';e.style.height=h*b1+'px';e.style.marginTop=(h-e.height)/1.5+'px';}
}
function eventHandler(e){return true;}
