function run_flash(swf,idname,w,h,bgcolor) 
{ 
text = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + w + "\" height=\"" + h + "\" name=\"" + idname + "\">\r\n";
text+= "<param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"movie\" value=\"" + swf + "\"><param name=\"menu\" value=\"false\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><param name=\"bgcolor\" value=\"" + bgcolor + "\">\r\n";
text+="<embed src=\"" + swf + "\" quality=\"high\" swLiveconnect=true name=\"menu\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + w + "\" height=\"" + h + "\" menu=\"false\" bgcolor=\"" + bgcolor + "\" allowScriptAccess=\"sameDomain\">\r\n";
text+="</object>\r\n";
document.write(text);
return 1;
}

function getParm(t)
{
window.document.menu.SetVariable('title', t);
}

function getPars(m)
{
window.document.submenu.SetVariable('cursy', m);
}

function getPar2(v1, t1, c1, c2, h1, m1)
{
window.document.infa.SetVariable("v1", v1);
window.document.infa.SetVariable("t1", t1);
window.document.infa.SetVariable("c1", c1);
window.document.infa.SetVariable("c2", c2);
window.document.infa.SetVariable("t.ltime", h1);
window.document.infa.SetVariable("t.lmin", m1);
window.document.infa.SetVariable("t.dd", 777);
}

function openb(source,title,name,w,h)
{
window.open('openb.htm?'+source+'|'+title,name,'width='+w+',height='+h+',location=no,menubar=no,resizeable=no,scrollbars=no,status=no,toolbar=no'); 
void(0);
}

function openf(url,name,w,h)
{
window.open(url,name,'width='+w+',height='+h+',location=no,menubar=no,resizeable=no,scrollbars=no,status=no,toolbar=no'); 
void(0);
}
function openPHotos(sourcePar)
{
window.open("Photos.asp" + sourcePar,'Photos','width=800,height=540,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no'); 
void(0);
}
function openw(source,name,w,h)
{
window.open(source,name,'width='+w+',height='+h+',location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no'); 
void(0);
}

