	
	function panel(){
	 //this.pwidth="300px";
	 this.p=null;
	  this.shows=function(e,obj){  
	//  this.pwidth=obj.width;
	  this.p.setHeader(obj.header);
	 // this.p.setBody(obj.bodys);
	  this.p.cfg.setProperty("width", obj.width);  
      this.p.cfg.setProperty("x", YAHOO.util.Event.getPageX(e)+8);  
      this.p.cfg.setProperty("y", YAHOO.util.Event.getPageY(e)+18)
	  this.p.show();
	   }
	  this.closes=function(){
		   this.p.hide();
	  }
	}
	var ps=new panel();
	YAHOO.namespace("itweb");
    YAHOO.util.Event.onDOMReady(function () {
	YAHOO.itweb.panel = new YAHOO.widget.Panel("panel",
	 { 
	visible:false,
	  zindex:4,  
	  modal:true, 
	   close:false, 
	  constraintoviewport:true 
	 } );
		YAHOO.itweb.panel.render();
		ps.p=YAHOO.itweb.panel;
	//YAHOO.util.Event.addListener("show1", "click",showpanel, YAHOO.itweb.panel1, true);
    // YAHOO.util.Event.addListener("hide1", "click", YAHOO.itweb.panel1.show, YAHOO.itweb.panel1, true);

	});
	
function pp(width,header,pra){

this.width=width;
this.header=header;
this.pra=pra;

}
var sts=function(e,obj){
  ps.shows(e,obj);
 getExample('panel_body','posting.php?act='+obj.pra);
};


var postEdit=function(formid,url,con){
	postExample(formid,url,con);
	//ps.closes();
};
var hiddenPanel=function(){
	ps.closes();
};


//// menu

function menu(){
	 this.menu=null;
	  this.shows=function(e,arrayobj){  

	  this.menu.addItems(arrayobj);  
	     this.menu.cfg.setProperty("x", YAHOO.util.Event.getPageX(e)+0);  
        this.menu.cfg.setProperty("y", YAHOO.util.Event.getPageY(e)+0);  
	    
		  this.menu.show();
		 
	}
	}
   var m=new menu();
   
    YAHOO.util.Event.onContentReady("basicmenu", function () {
        var oMenu = new YAHOO.widget.Menu("basicmenu", 
		{ fixedcenter: false
		});
		
      oMenu.render();
       m.menu=oMenu ;    
    });
var menus=function (e,pageid){
    // $('madd').href="http://www.google.com";
	//getExample('menubox','posting.php?act=cmenu&pageid='+pageid);
	
	 var arrayobj=Array(  
        { text: "Create document here", url: "pageSet?act=ff" },   
        { text: "Edit  document", url: "http://addressbook.yahoo.com" },   
        { text: "Move document", url: "http://calendar.yahoo.com" },   
        { text: "Delete  document",  url: "http://notepad.yahoo.com" },   
        { text: "Publish    document",  url: "http://notepad.yahoo.com" },
	    { text: "Un-Publish  document",  url: "http://notepad.yahoo.com" } 
    );
	 m.shows(e,arrayobj);
	};

	
	