var clsid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";

function run_flash(holderid,name,w,h,vars)
{
document.getElementById(holderid).innerHTML='<object classid='+clsid+' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width='+w+' height='+h+'><param name="allowFullScreen" value="true"><PARAM NAME=FlashVars VALUE="'+vars+'"><param name="allowScriptAccess" value="sameDomain"><param name="wmode" value="transparent"><param name="src" value="'+name+'.swf"><embed src="'+name+'.swf" FlashVars="'+vars+'" allowFullScreen="true" width='+w+' height='+h+' wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';
}

function show_pic(pic_url,pic_width,pic_height,alt)
{
if(pic_height==0){pic_height=pic_width/4*3;}
var w=window.open("","","toolbar=no,location=no,top=50,left=50,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width="+pic_width+",height="+pic_height+"");
w.document.write("<html><head></head><body style='margin:0px;padding:0px;background-color:#e3e8ed;'><table width='100%' height='100%' cellspacing='0' cellpadding='0'><tr><td align='center' valign='middle'><img src='"+pic_url+"' alt='"+alt+"' onclick='window.close();'></img></td></tr></table></body></html>");
}

function open_window(path,wdth,hght,title,scrolls)
{
var w=wdth,h=hght,scrlls=scrolls;if(w==undefined||w==0)
{
w=screen.availWidth;
h=screen.availHeight;
}
if(scrlls!="yes"){scrlls="no";}
window.open(path,title,"toolbar=no,location=no,top=0,left=0,directories=no,scrollbars=no,status="+scrlls+",resizable="+scrlls+",width="+w+",height="+h);
}

function href2js(event_id){document.getElementById(event_id).href='javascript:popup_event("'+event_id+'")';}

///////////////////////////////////////////////////////////


function set_read_cookie(mode,name,val,exp)
{
if(mode=='set')
{
	var date = new Date();
	date.setTime(date.getTime()+exp*1000);
	var expires=''+date.toGMTString();
	document.cookie=''+name+'='+val+'; expires='+date.toGMTString()+'; path=/';
	return true;
}else
{
if(document.cookie.indexOf(name)==-1){return false;}else
	{
	var splitted0=document.cookie.split(name+'=');
	var splitted1=splitted0[1].split(';');
	return splitted1[0]*1;
	}
}
return;
}

////////////////////////////////////////////////////


function findPosX(objname)
{
obj=document.getElementById(objname);
var curleft=0;
if(obj.offsetParent)
while(1) 
{
curleft+=obj.offsetLeft;
if(!obj.offsetParent)break;obj=obj.offsetParent;
}else
if(obj.x)curleft+=obj.x;return curleft;
}

function findPosY(objname)
{
obj=document.getElementById(objname);
var curtop=0;
if(obj.offsetParent)
while(1) 
{
curtop+=obj.offsetTop;
if(!obj.offsetParent)break;obj=obj.offsetParent;
}else
if(obj.y)curtop+=obj.y;return curtop;
}

function check_menu()
{
if(m_flag1==0)
{document.getElementById('m_body').innerHTML='';cur_obj=null;}else
{window.setTimeout('check_menu()',500);}
}