// aconnect dragable  panels //
var showip = function(id){
	var configip = {width: "655px",
					zIndex:"10",
					fixedcenter: true, 
					constraintoviewport: true, 
					visible: false,
					effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.3},
					context: {element:"col_2"} 
					};

    var $ = YAHOO.util.Dom.get;
	YAHOO.util.Dom.setStyle($(id), 'display', 'block');
	
	if($(id) != null){
    	var oPanel = new YAHOO.widget.Panel(id, configip );
    	oPanel.render();
		oPanel.show();
	}	
}
YAHOO.util.Event.onDOMReady(function () {
 
	var $ = YAHOO.util.Dom.get;							  
									 
    var config = { 	width: "460px",
					zIndex:"10",
					fixedcenter: true, 
					constraintoviewport: true, 
					visible: false,
					effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.3},
					context: {element:"col_2"} 
					};
   //general panels
    if($("a1") != null){
    	var oPanel1 = new YAHOO.widget.Panel("p1", config );
    	oPanel1.render();
		YAHOO.util.Event.on("a1", "click", oPanel1.show, null, oPanel1);
	}
   
    if($("a2") != null){
		var oPanel2 = new YAHOO.widget.Panel("p2",config );
    	oPanel2.render();
		YAHOO.util.Event.on("a2", "click", oPanel2.show, null, oPanel2);
	}
	
	 if($("a3") != null){
    	var oPanel3 = new YAHOO.widget.Panel("p3", config );
    	oPanel3.render();
		YAHOO.util.Event.on("a3", "click", oPanel3.show, null, oPanel3);
	}
   
    if($("a4") != null){
		var oPanel4 = new YAHOO.widget.Panel("p4",config);
    	oPanel4.render();
		YAHOO.util.Event.on("a4", "click", oPanel4.show, null, oPanel4);
	}
	
	 if($("a5") != null){
    	var oPanel5 = new YAHOO.widget.Panel("p5", config );
    	oPanel5.render();
		YAHOO.util.Event.on("a5", "click", oPanel5.show, null, oPanel5);
	}
   
    if($("a6") != null){
		var oPanel6 = new YAHOO.widget.Panel("p6", config );
    	oPanel6.render();
		YAHOO.util.Event.on("a6", "click", oPanel6.show, null, oPanel6);
	}
	//maps
	if($("pm1") != null){
		var oPm1 = new YAHOO.widget.Panel("pm1", { width: "780px",
					zIndex:"10",
					fixedcenter: true, 
					visible: false,
					effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.3}
					} );
		oPm1.render();
		oPm1.cfg.setProperty("fixedcenter",false); 
		oPm1.cfg.setProperty("y",40); 
		YAHOO.util.Event.on("am1", "click", oPm1.show, null, oPm1);
		}
	
	 if($("pm2") != null){
		var oPm2 = new YAHOO.widget.Panel("pm2", { width: "785px",
					zIndex:"10",
					fixedcenter: true, 
					visible: false,
					effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.3}
					} );
    	oPm2.render();
		oPm2.cfg.setProperty("fixedcenter",false); 
		oPm2.cfg.setProperty("y",40); 
		YAHOO.util.Event.on("am2", "click", oPm2.show, null, oPm2);
	}
	
	 if($("pm3") != null){
		var oPm3 = new YAHOO.widget.Panel("pm3", { width: "726px",
					zIndex:"10",
					fixedcenter: true, 
					visible: false,
					effect:{effect:YAHOO.widget.ContainerEffect.FADE, duration:0.3}
					} );
    	oPm3.render();
		oPm3.cfg.setProperty("fixedcenter",false); 
		oPm3.cfg.setProperty("y",40); 
		YAHOO.util.Event.on("am3", "click", oPm3.show, null, oPm3);
	}
});