
<public:component>
<public:attach event="oncontentready" onevent="init();" />
<public:attach event=onclick onevent="showPartMenu();" />
</public:component>
<script language="javascript">
function init()
{
var v=0;
}
var Items=new Array();
function PartItem(pid,name,title,selected)
{
 this.PartID=pid;
 this.Name=name;
 this.Title=title;
 this.Selected=selected;
 }
function showPartMenu()
{
var vs=element.document.getElementById('system_parts_menu');
if(vs==null)
{
var menu = element.document.createElement("DIV");
menu.style.top=event.y +10+"px";
	menu.style.left=event.x+"px";
	//menu.style.top="1px";
	//menu.style.left="1px";
	menu.style.width="159px";
	menu.style.left="72px";
	menu.style.height='500px';
	menu.style.overflow='auto';
    menu.style.border='solid 1px #698AAA';
	menu.style.display='block';
	menu.style.position='absolute';
	menu.className='customizePopup xSmallFont Spaces_Customize_ItemList Web_Bindings_Base Msn_UI_Popup';
	menu.id="system_parts_menu";
	
	
     var submenu=element.document.createElement("DIV");
     submenu.className='subMenu';
     var subf=element.document.createElement("DIV");
     subf.style.overflow='auto';

     for(var i=0;i<10;i++)
	{
	 subf.appendChild(createItem());
	}
	submenu.appendChild(subf);
	menu.appendChild(submenu);
	element.document.body.appendChild(menu);
    
	return;
	}
	if(vs.style.display=='none')
	{
	 vs.style.display='block';
	}else
	{
	 vs.style.display='none';
	}
}
function createItem()
{
 var content=document.createElement("div");


 content.className='Spaces_Customize_PartMenuItem Web_Bindings_Base';

content.style.left='1px';
content.style.POSITION='absolute';
content.style.top='49px';
content.style.height='17px';
var link=document.createElement("a");
link.className='moduleItem';
link.title='测试';
link.style.color='#000000';
link.href='#';

 var s1=document.createElement("div");
 s1.style.FLOAT='right';
 s1.style.cssFloat='right';
 s1.innerText='移除';
 link.appendChild(s1);
 var s2=document.createElement("div");
 s2.className='bold';
 s2.style.height='20px';
  s2.innerText='我的模块';
 link.appendChild(s2);
 content.appendChild(link);
 return content;
}
</script>