// JavaScript Document
YAHOO.namespace("help.container");

function helpPanel() {
					
					// Define various event handlers for Dialog
					var handleSubmit = function() {
						//mySAF();
					};
					var handleCancel = function() {
						this.cancel();
					};
					var handleSuccess = function(o) {
						//alert("Submission success: " + o.status);
					};
					var handleFailure = function(o) {
						//alert("Submission failed: " + o.status);
					};
					
						
					// Instantiate the Dialog
					YAHOO.help.container.helpBox = new YAHOO.widget.Panel("helpBox", 
																				{ width : "375px",
																				  fixedcenter : true,
																				  modal : true,
																				  draggable : false,
																				  visible : false, 
																				  constraintoviewport : true,
																				  effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.45}
																				 } );
					

					// Wire up the success and failure handlers
					YAHOO.help.container.helpBox.callback = { success: handleSuccess,
																 failure: handleFailure };
					
					// Render the Dialog
					YAHOO.help.container.helpBox.render();
					YAHOO.util.Dom.setStyle(['HelpBoxInside'], 'overflow', 'hidden');
					//YAHOO.util.Event.addListener("myHelpbtn", "click", YAHOO.help.container.helpBox.show, YAHOO.help.container.helpBox, true);
					//YAHOO.util.Event.addListener("helpclosebtn", "click", YAHOO.help.container.helpBox.hide, YAHOO.help.container.helpBox, true);
				}

myHelpclose = function(){
	YAHOO.util.Dom.setStyle(['HelpBoxInside'], 'overflow', 'hidden');
	YAHOO.help.container.helpBox.hide();
}

myHelpopen = function(){
	YAHOO.util.Dom.setStyle(['HelpBoxInside'], 'overflow', 'auto');
	YAHOO.help.container.helpBox.show();
}

